@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
@@ -871,6 +871,126 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
871
871
  };
872
872
  Relationships: [];
873
873
  };
874
+ cao_holidays: {
875
+ Row: {
876
+ created_at: string;
877
+ description: string | null;
878
+ holiday_date: string;
879
+ id: string;
880
+ updated_at: string;
881
+ };
882
+ Insert: {
883
+ created_at?: string;
884
+ description?: string | null;
885
+ holiday_date: string;
886
+ id?: string;
887
+ updated_at?: string;
888
+ };
889
+ Update: {
890
+ created_at?: string;
891
+ description?: string | null;
892
+ holiday_date?: string;
893
+ id?: string;
894
+ updated_at?: string;
895
+ };
896
+ Relationships: [];
897
+ };
898
+ cao_settings: {
899
+ Row: {
900
+ auto_break_after_hours: number;
901
+ auto_break_minutes: number;
902
+ auto_break_unpaid: boolean;
903
+ auto_stop_after_hours: number;
904
+ callout_fee: number;
905
+ created_at: string;
906
+ daily_regular_hours: number;
907
+ default_hourly_rate: number;
908
+ id: string;
909
+ materials_markup_percent: number;
910
+ max_daily_hours: number;
911
+ max_weekly_hours: number;
912
+ meal_allowance_amount: number;
913
+ overtime_pct_178: number;
914
+ overtime_pct_189: number;
915
+ overtime_pct_212: number;
916
+ reminder_after_hours: number;
917
+ standby_evening_amount: number;
918
+ standby_weekend_amount: number;
919
+ travel_cost_per_km: number | null;
920
+ travel_cost_threshold_km: number | null;
921
+ travel_counts_as_work: boolean;
922
+ travel_hourly_rate: number;
923
+ travel_rate_per_hour: number;
924
+ travel_threshold_minutes: number;
925
+ updated_at: string;
926
+ weekend_always_212: boolean;
927
+ window_end: string;
928
+ window_start: string;
929
+ };
930
+ Insert: {
931
+ auto_break_after_hours?: number;
932
+ auto_break_minutes?: number;
933
+ auto_break_unpaid?: boolean;
934
+ auto_stop_after_hours?: number;
935
+ callout_fee?: number;
936
+ created_at?: string;
937
+ daily_regular_hours?: number;
938
+ default_hourly_rate?: number;
939
+ id?: string;
940
+ materials_markup_percent?: number;
941
+ max_daily_hours?: number;
942
+ max_weekly_hours?: number;
943
+ meal_allowance_amount?: number;
944
+ overtime_pct_178?: number;
945
+ overtime_pct_189?: number;
946
+ overtime_pct_212?: number;
947
+ reminder_after_hours?: number;
948
+ standby_evening_amount?: number;
949
+ standby_weekend_amount?: number;
950
+ travel_cost_per_km?: number | null;
951
+ travel_cost_threshold_km?: number | null;
952
+ travel_counts_as_work?: boolean;
953
+ travel_hourly_rate?: number;
954
+ travel_rate_per_hour?: number;
955
+ travel_threshold_minutes?: number;
956
+ updated_at?: string;
957
+ weekend_always_212?: boolean;
958
+ window_end?: string;
959
+ window_start?: string;
960
+ };
961
+ Update: {
962
+ auto_break_after_hours?: number;
963
+ auto_break_minutes?: number;
964
+ auto_break_unpaid?: boolean;
965
+ auto_stop_after_hours?: number;
966
+ callout_fee?: number;
967
+ created_at?: string;
968
+ daily_regular_hours?: number;
969
+ default_hourly_rate?: number;
970
+ id?: string;
971
+ materials_markup_percent?: number;
972
+ max_daily_hours?: number;
973
+ max_weekly_hours?: number;
974
+ meal_allowance_amount?: number;
975
+ overtime_pct_178?: number;
976
+ overtime_pct_189?: number;
977
+ overtime_pct_212?: number;
978
+ reminder_after_hours?: number;
979
+ standby_evening_amount?: number;
980
+ standby_weekend_amount?: number;
981
+ travel_cost_per_km?: number | null;
982
+ travel_cost_threshold_km?: number | null;
983
+ travel_counts_as_work?: boolean;
984
+ travel_hourly_rate?: number;
985
+ travel_rate_per_hour?: number;
986
+ travel_threshold_minutes?: number;
987
+ updated_at?: string;
988
+ weekend_always_212?: boolean;
989
+ window_end?: string;
990
+ window_start?: string;
991
+ };
992
+ Relationships: [];
993
+ };
874
994
  carrier_shipping_rates: {
875
995
  Row: {
876
996
  carrier_id: string;
@@ -1683,7 +1803,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1683
1803
  city: string | null;
1684
1804
  country: string | null;
1685
1805
  created_at: string;
1686
- customer_id: string | null;
1806
+ customer_id: string;
1687
1807
  external_key: string | null;
1688
1808
  external_provider: string | null;
1689
1809
  floriday_location_id: string | null;
@@ -1707,7 +1827,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1707
1827
  city?: string | null;
1708
1828
  country?: string | null;
1709
1829
  created_at?: string;
1710
- customer_id?: string | null;
1830
+ customer_id: string;
1711
1831
  external_key?: string | null;
1712
1832
  external_provider?: string | null;
1713
1833
  floriday_location_id?: string | null;
@@ -1731,7 +1851,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1731
1851
  city?: string | null;
1732
1852
  country?: string | null;
1733
1853
  created_at?: string;
1734
- customer_id?: string | null;
1854
+ customer_id?: string;
1735
1855
  external_key?: string | null;
1736
1856
  external_provider?: string | null;
1737
1857
  floriday_location_id?: string | null;
@@ -6479,6 +6599,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6479
6599
  Row: {
6480
6600
  buyer_organization_id: string | null;
6481
6601
  connection_id: string;
6602
+ controlled_at: string | null;
6482
6603
  created_at: string;
6483
6604
  data: import("./types").Json;
6484
6605
  floriday_id: string;
@@ -6490,6 +6611,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6490
6611
  Insert: {
6491
6612
  buyer_organization_id?: string | null;
6492
6613
  connection_id: string;
6614
+ controlled_at?: string | null;
6493
6615
  created_at?: string;
6494
6616
  data: import("./types").Json;
6495
6617
  floriday_id: string;
@@ -6501,6 +6623,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6501
6623
  Update: {
6502
6624
  buyer_organization_id?: string | null;
6503
6625
  connection_id?: string;
6626
+ controlled_at?: string | null;
6504
6627
  created_at?: string;
6505
6628
  data?: import("./types").Json;
6506
6629
  floriday_id?: string;
@@ -7402,6 +7525,54 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7402
7525
  };
7403
7526
  Relationships: [];
7404
7527
  };
7528
+ invoice_timing_settings: {
7529
+ Row: {
7530
+ anchor: string;
7531
+ business_days_only: boolean;
7532
+ created_at: string;
7533
+ enabled: boolean;
7534
+ id: string;
7535
+ offset_days: number;
7536
+ pickup_anchor: string;
7537
+ pickup_business_days_only: boolean;
7538
+ pickup_offset_days: number;
7539
+ pickup_time_of_day: string;
7540
+ singleton: boolean;
7541
+ time_of_day: string;
7542
+ updated_at: string;
7543
+ };
7544
+ Insert: {
7545
+ anchor?: string;
7546
+ business_days_only?: boolean;
7547
+ created_at?: string;
7548
+ enabled?: boolean;
7549
+ id?: string;
7550
+ offset_days?: number;
7551
+ pickup_anchor?: string;
7552
+ pickup_business_days_only?: boolean;
7553
+ pickup_offset_days?: number;
7554
+ pickup_time_of_day?: string;
7555
+ singleton?: boolean;
7556
+ time_of_day?: string;
7557
+ updated_at?: string;
7558
+ };
7559
+ Update: {
7560
+ anchor?: string;
7561
+ business_days_only?: boolean;
7562
+ created_at?: string;
7563
+ enabled?: boolean;
7564
+ id?: string;
7565
+ offset_days?: number;
7566
+ pickup_anchor?: string;
7567
+ pickup_business_days_only?: boolean;
7568
+ pickup_offset_days?: number;
7569
+ pickup_time_of_day?: string;
7570
+ singleton?: boolean;
7571
+ time_of_day?: string;
7572
+ updated_at?: string;
7573
+ };
7574
+ Relationships: [];
7575
+ };
7405
7576
  itk_contact_persons: {
7406
7577
  Row: {
7407
7578
  created_at: string;
@@ -7714,7 +7885,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7714
7885
  start_date: string;
7715
7886
  start_time: string | null;
7716
7887
  status: string;
7717
- tenant_id: string;
7718
7888
  updated_at: string;
7719
7889
  user_id: string;
7720
7890
  };
@@ -7732,7 +7902,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7732
7902
  start_date: string;
7733
7903
  start_time?: string | null;
7734
7904
  status?: string;
7735
- tenant_id?: string;
7736
7905
  updated_at?: string;
7737
7906
  user_id: string;
7738
7907
  };
@@ -7750,7 +7919,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7750
7919
  start_date?: string;
7751
7920
  start_time?: string | null;
7752
7921
  status?: string;
7753
- tenant_id?: string;
7754
7922
  updated_at?: string;
7755
7923
  user_id?: string;
7756
7924
  };
@@ -7758,13 +7926,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7758
7926
  foreignKeyName: "leave_requests_monteur_id_fkey";
7759
7927
  columns: ["monteur_id"];
7760
7928
  isOneToOne: false;
7761
- referencedRelation: "monteurs";
7929
+ referencedRelation: "profiles";
7762
7930
  referencedColumns: ["id"];
7763
7931
  }, {
7764
7932
  foreignKeyName: "leave_requests_user_id_fkey";
7765
7933
  columns: ["user_id"];
7766
7934
  isOneToOne: false;
7767
- referencedRelation: "monteurs";
7935
+ referencedRelation: "profiles";
7768
7936
  referencedColumns: ["id"];
7769
7937
  }];
7770
7938
  };
@@ -8491,6 +8659,69 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8491
8659
  };
8492
8660
  Relationships: [];
8493
8661
  };
8662
+ logistics_floriday_pushes: {
8663
+ Row: {
8664
+ attempts: number;
8665
+ created_at: string;
8666
+ first_queued_at: string;
8667
+ fulfillment_order_id: string | null;
8668
+ id: string;
8669
+ last_error: string | null;
8670
+ last_error_at: string | null;
8671
+ last_sent_hash: string | null;
8672
+ locked_by: string | null;
8673
+ locked_until: string | null;
8674
+ next_attempt_at: string;
8675
+ order_ref: string;
8676
+ payload: import("./types").Json;
8677
+ payload_hash: string | null;
8678
+ revision: number;
8679
+ sent_at: string | null;
8680
+ status: string;
8681
+ updated_at: string;
8682
+ };
8683
+ Insert: {
8684
+ attempts?: number;
8685
+ created_at?: string;
8686
+ first_queued_at?: string;
8687
+ fulfillment_order_id?: string | null;
8688
+ id?: string;
8689
+ last_error?: string | null;
8690
+ last_error_at?: string | null;
8691
+ last_sent_hash?: string | null;
8692
+ locked_by?: string | null;
8693
+ locked_until?: string | null;
8694
+ next_attempt_at?: string;
8695
+ order_ref: string;
8696
+ payload?: import("./types").Json;
8697
+ payload_hash?: string | null;
8698
+ revision?: number;
8699
+ sent_at?: string | null;
8700
+ status?: string;
8701
+ updated_at?: string;
8702
+ };
8703
+ Update: {
8704
+ attempts?: number;
8705
+ created_at?: string;
8706
+ first_queued_at?: string;
8707
+ fulfillment_order_id?: string | null;
8708
+ id?: string;
8709
+ last_error?: string | null;
8710
+ last_error_at?: string | null;
8711
+ last_sent_hash?: string | null;
8712
+ locked_by?: string | null;
8713
+ locked_until?: string | null;
8714
+ next_attempt_at?: string;
8715
+ order_ref?: string;
8716
+ payload?: import("./types").Json;
8717
+ payload_hash?: string | null;
8718
+ revision?: number;
8719
+ sent_at?: string | null;
8720
+ status?: string;
8721
+ updated_at?: string;
8722
+ };
8723
+ Relationships: [];
8724
+ };
8494
8725
  logistics_formulas: {
8495
8726
  Row: {
8496
8727
  created_at: string;
@@ -8569,6 +8800,45 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8569
8800
  };
8570
8801
  Relationships: [];
8571
8802
  };
8803
+ logistics_plan_queue: {
8804
+ Row: {
8805
+ attempts: number;
8806
+ claimed_at: string | null;
8807
+ enqueued_at: string;
8808
+ error: string | null;
8809
+ id: string;
8810
+ next_attempt_at: string;
8811
+ order_id: string;
8812
+ reason: string;
8813
+ status: string;
8814
+ updated_at: string;
8815
+ };
8816
+ Insert: {
8817
+ attempts?: number;
8818
+ claimed_at?: string | null;
8819
+ enqueued_at?: string;
8820
+ error?: string | null;
8821
+ id?: string;
8822
+ next_attempt_at?: string;
8823
+ order_id: string;
8824
+ reason?: string;
8825
+ status?: string;
8826
+ updated_at?: string;
8827
+ };
8828
+ Update: {
8829
+ attempts?: number;
8830
+ claimed_at?: string | null;
8831
+ enqueued_at?: string;
8832
+ error?: string | null;
8833
+ id?: string;
8834
+ next_attempt_at?: string;
8835
+ order_id?: string;
8836
+ reason?: string;
8837
+ status?: string;
8838
+ updated_at?: string;
8839
+ };
8840
+ Relationships: [];
8841
+ };
8572
8842
  logistics_plan_runs: {
8573
8843
  Row: {
8574
8844
  created_at: string;
@@ -8644,6 +8914,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8644
8914
  referencedColumns: ["id"];
8645
8915
  }];
8646
8916
  };
8917
+ logistics_plan_settings: {
8918
+ Row: {
8919
+ key: string;
8920
+ updated_at: string;
8921
+ value: string;
8922
+ };
8923
+ Insert: {
8924
+ key: string;
8925
+ updated_at?: string;
8926
+ value: string;
8927
+ };
8928
+ Update: {
8929
+ key?: string;
8930
+ updated_at?: string;
8931
+ value?: string;
8932
+ };
8933
+ Relationships: [];
8934
+ };
8647
8935
  logistics_rebuffer_state: {
8648
8936
  Row: {
8649
8937
  created_at: string;
@@ -9354,14 +9642,17 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9354
9642
  };
9355
9643
  mailbox_messages: {
9356
9644
  Row: {
9645
+ attachments: import("./types").Json;
9357
9646
  body_html: string | null;
9358
9647
  body_text: string | null;
9648
+ cc_recipients: import("./types").Json;
9359
9649
  connection_id: string | null;
9360
9650
  created_at: string;
9361
9651
  error_message: string | null;
9362
9652
  external_id: string | null;
9363
9653
  from_email: string | null;
9364
9654
  from_name: string | null;
9655
+ has_attachments: boolean;
9365
9656
  id: string;
9366
9657
  message_id: string | null;
9367
9658
  profile_id: string | null;
@@ -9369,18 +9660,22 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9369
9660
  received_at: string | null;
9370
9661
  status: string;
9371
9662
  subject: string | null;
9663
+ to_recipients: import("./types").Json;
9372
9664
  uid: number | null;
9373
9665
  updated_at: string;
9374
9666
  };
9375
9667
  Insert: {
9668
+ attachments?: import("./types").Json;
9376
9669
  body_html?: string | null;
9377
9670
  body_text?: string | null;
9671
+ cc_recipients?: import("./types").Json;
9378
9672
  connection_id?: string | null;
9379
9673
  created_at?: string;
9380
9674
  error_message?: string | null;
9381
9675
  external_id?: string | null;
9382
9676
  from_email?: string | null;
9383
9677
  from_name?: string | null;
9678
+ has_attachments?: boolean;
9384
9679
  id?: string;
9385
9680
  message_id?: string | null;
9386
9681
  profile_id?: string | null;
@@ -9388,18 +9683,22 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9388
9683
  received_at?: string | null;
9389
9684
  status?: string;
9390
9685
  subject?: string | null;
9686
+ to_recipients?: import("./types").Json;
9391
9687
  uid?: number | null;
9392
9688
  updated_at?: string;
9393
9689
  };
9394
9690
  Update: {
9691
+ attachments?: import("./types").Json;
9395
9692
  body_html?: string | null;
9396
9693
  body_text?: string | null;
9694
+ cc_recipients?: import("./types").Json;
9397
9695
  connection_id?: string | null;
9398
9696
  created_at?: string;
9399
9697
  error_message?: string | null;
9400
9698
  external_id?: string | null;
9401
9699
  from_email?: string | null;
9402
9700
  from_name?: string | null;
9701
+ has_attachments?: boolean;
9403
9702
  id?: string;
9404
9703
  message_id?: string | null;
9405
9704
  profile_id?: string | null;
@@ -9407,6 +9706,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9407
9706
  received_at?: string | null;
9408
9707
  status?: string;
9409
9708
  subject?: string | null;
9709
+ to_recipients?: import("./types").Json;
9410
9710
  uid?: number | null;
9411
9711
  updated_at?: string;
9412
9712
  };
@@ -9787,6 +10087,90 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9787
10087
  };
9788
10088
  Relationships: [];
9789
10089
  };
10090
+ material_usage: {
10091
+ Row: {
10092
+ created_at: string;
10093
+ id: string;
10094
+ material_name: string;
10095
+ monteur_id: string | null;
10096
+ price_at_time: number;
10097
+ quantity_used: number;
10098
+ updated_at: string;
10099
+ van_inventory_id: string | null;
10100
+ work_order_id: string;
10101
+ };
10102
+ Insert: {
10103
+ created_at?: string;
10104
+ id?: string;
10105
+ material_name: string;
10106
+ monteur_id?: string | null;
10107
+ price_at_time?: number;
10108
+ quantity_used?: number;
10109
+ updated_at?: string;
10110
+ van_inventory_id?: string | null;
10111
+ work_order_id: string;
10112
+ };
10113
+ Update: {
10114
+ created_at?: string;
10115
+ id?: string;
10116
+ material_name?: string;
10117
+ monteur_id?: string | null;
10118
+ price_at_time?: number;
10119
+ quantity_used?: number;
10120
+ updated_at?: string;
10121
+ van_inventory_id?: string | null;
10122
+ work_order_id?: string;
10123
+ };
10124
+ Relationships: [{
10125
+ foreignKeyName: "material_usage_monteur_id_fkey";
10126
+ columns: ["monteur_id"];
10127
+ isOneToOne: false;
10128
+ referencedRelation: "profiles";
10129
+ referencedColumns: ["id"];
10130
+ }, {
10131
+ foreignKeyName: "material_usage_van_inventory_id_fkey";
10132
+ columns: ["van_inventory_id"];
10133
+ isOneToOne: false;
10134
+ referencedRelation: "van_inventories";
10135
+ referencedColumns: ["id"];
10136
+ }, {
10137
+ foreignKeyName: "material_usage_work_order_id_fkey";
10138
+ columns: ["work_order_id"];
10139
+ isOneToOne: false;
10140
+ referencedRelation: "work_orders";
10141
+ referencedColumns: ["id"];
10142
+ }];
10143
+ };
10144
+ module_features: {
10145
+ Row: {
10146
+ created_at: string;
10147
+ feature_id: string;
10148
+ id: string;
10149
+ is_active: boolean;
10150
+ last_seen_at: string;
10151
+ module_id: string;
10152
+ name: string;
10153
+ };
10154
+ Insert: {
10155
+ created_at?: string;
10156
+ feature_id: string;
10157
+ id?: string;
10158
+ is_active?: boolean;
10159
+ last_seen_at?: string;
10160
+ module_id: string;
10161
+ name: string;
10162
+ };
10163
+ Update: {
10164
+ created_at?: string;
10165
+ feature_id?: string;
10166
+ id?: string;
10167
+ is_active?: boolean;
10168
+ last_seen_at?: string;
10169
+ module_id?: string;
10170
+ name?: string;
10171
+ };
10172
+ Relationships: [];
10173
+ };
9790
10174
  module_permissions: {
9791
10175
  Row: {
9792
10176
  created_at: string;
@@ -9814,6 +10198,36 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9814
10198
  };
9815
10199
  Relationships: [];
9816
10200
  };
10201
+ module_registry: {
10202
+ Row: {
10203
+ created_at: string;
10204
+ is_active: boolean;
10205
+ last_seen_at: string;
10206
+ module_id: string;
10207
+ name: string;
10208
+ shell_id: string | null;
10209
+ sort_order: number | null;
10210
+ };
10211
+ Insert: {
10212
+ created_at?: string;
10213
+ is_active?: boolean;
10214
+ last_seen_at?: string;
10215
+ module_id: string;
10216
+ name: string;
10217
+ shell_id?: string | null;
10218
+ sort_order?: number | null;
10219
+ };
10220
+ Update: {
10221
+ created_at?: string;
10222
+ is_active?: boolean;
10223
+ last_seen_at?: string;
10224
+ module_id?: string;
10225
+ name?: string;
10226
+ shell_id?: string | null;
10227
+ sort_order?: number | null;
10228
+ };
10229
+ Relationships: [];
10230
+ };
9817
10231
  module_runtime_config: {
9818
10232
  Row: {
9819
10233
  key: string;
@@ -9865,69 +10279,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9865
10279
  };
9866
10280
  Relationships: [];
9867
10281
  };
9868
- monteurs: {
10282
+ nmbrs_component_mapping: {
9869
10283
  Row: {
9870
- avatar_url: string | null;
9871
- color: string | null;
9872
10284
  created_at: string;
9873
- email: string | null;
9874
10285
  id: string;
9875
- is_active: boolean;
9876
- leave_balance_hours: number;
9877
- name: string;
9878
- persnr: number | null;
9879
- phone: string | null;
9880
- role: string;
9881
- tenant_id: string;
9882
- updated_at: string;
9883
- user_id: string | null;
9884
- };
9885
- Insert: {
9886
- avatar_url?: string | null;
9887
- color?: string | null;
9888
- created_at?: string;
9889
- email?: string | null;
9890
- id?: string;
9891
- is_active?: boolean;
9892
- leave_balance_hours?: number;
9893
- name: string;
9894
- persnr?: number | null;
9895
- phone?: string | null;
9896
- role?: string;
9897
- tenant_id: string;
9898
- updated_at?: string;
9899
- user_id?: string | null;
9900
- };
9901
- Update: {
9902
- avatar_url?: string | null;
9903
- color?: string | null;
9904
- created_at?: string;
9905
- email?: string | null;
9906
- id?: string;
9907
- is_active?: boolean;
9908
- leave_balance_hours?: number;
9909
- name?: string;
9910
- persnr?: number | null;
9911
- phone?: string | null;
9912
- role?: string;
9913
- tenant_id?: string;
9914
- updated_at?: string;
9915
- user_id?: string | null;
9916
- };
9917
- Relationships: [{
9918
- foreignKeyName: "monteurs_tenant_id_fkey";
9919
- columns: ["tenant_id"];
9920
- isOneToOne: false;
9921
- referencedRelation: "tenants";
9922
- referencedColumns: ["id"];
9923
- }];
9924
- };
9925
- nmbrs_component_mapping: {
9926
- Row: {
9927
- created_at: string;
9928
- id: string;
9929
- source_kind: string;
9930
- source_value: string | null;
10286
+ source_kind: string;
10287
+ source_value: string | null;
9931
10288
  updated_at: string;
9932
10289
  wage_code: string;
9933
10290
  };
@@ -9992,13 +10349,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
9992
10349
  nmbrs_employee_number?: string;
9993
10350
  updated_at?: string;
9994
10351
  };
9995
- Relationships: [{
9996
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
9997
- columns: ["monteur_id"];
9998
- isOneToOne: true;
9999
- referencedRelation: "monteurs";
10000
- referencedColumns: ["id"];
10001
- }];
10352
+ Relationships: [];
10002
10353
  };
10003
10354
  nmbrs_export_lines: {
10004
10355
  Row: {
@@ -10047,12 +10398,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10047
10398
  wage_code?: string;
10048
10399
  };
10049
10400
  Relationships: [{
10050
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10051
- columns: ["monteur_id"];
10052
- isOneToOne: false;
10053
- referencedRelation: "monteurs";
10054
- referencedColumns: ["id"];
10055
- }, {
10056
10401
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10057
10402
  columns: ["run_id"];
10058
10403
  isOneToOne: false;
@@ -10873,6 +11218,45 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
10873
11218
  };
10874
11219
  Relationships: [];
10875
11220
  };
11221
+ order_invoice_links: {
11222
+ Row: {
11223
+ attempts: number;
11224
+ created_at: string;
11225
+ error_message: string | null;
11226
+ id: string;
11227
+ invoice_number: string | null;
11228
+ next_attempt_at: string;
11229
+ order_id: string;
11230
+ processed_at: string | null;
11231
+ status: string;
11232
+ updated_at: string;
11233
+ };
11234
+ Insert: {
11235
+ attempts?: number;
11236
+ created_at?: string;
11237
+ error_message?: string | null;
11238
+ id?: string;
11239
+ invoice_number?: string | null;
11240
+ next_attempt_at?: string;
11241
+ order_id: string;
11242
+ processed_at?: string | null;
11243
+ status?: string;
11244
+ updated_at?: string;
11245
+ };
11246
+ Update: {
11247
+ attempts?: number;
11248
+ created_at?: string;
11249
+ error_message?: string | null;
11250
+ id?: string;
11251
+ invoice_number?: string | null;
11252
+ next_attempt_at?: string;
11253
+ order_id?: string;
11254
+ processed_at?: string | null;
11255
+ status?: string;
11256
+ updated_at?: string;
11257
+ };
11258
+ Relationships: [];
11259
+ };
10876
11260
  order_items: {
10877
11261
  Row: {
10878
11262
  crates_per_layer: number | null;
@@ -11055,6 +11439,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11055
11439
  delivery_date: string | null;
11056
11440
  floriday_sales_order_id: string | null;
11057
11441
  id: string;
11442
+ invoice_due_at: string | null;
11058
11443
  is_reservation: boolean;
11059
11444
  notes: string | null;
11060
11445
  order_date: string;
@@ -11076,6 +11461,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11076
11461
  delivery_date?: string | null;
11077
11462
  floriday_sales_order_id?: string | null;
11078
11463
  id?: string;
11464
+ invoice_due_at?: string | null;
11079
11465
  is_reservation?: boolean;
11080
11466
  notes?: string | null;
11081
11467
  order_date?: string;
@@ -11097,6 +11483,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
11097
11483
  delivery_date?: string | null;
11098
11484
  floriday_sales_order_id?: string | null;
11099
11485
  id?: string;
11486
+ invoice_due_at?: string | null;
11100
11487
  is_reservation?: boolean;
11101
11488
  notes?: string | null;
11102
11489
  order_date?: string;
@@ -12293,22 +12680,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12293
12680
  created_at: string;
12294
12681
  documentnaam: string;
12295
12682
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
12683
+ extern_job_id: string | null;
12296
12684
  foutmelding: string | null;
12297
12685
  gebruiker_id: string | null;
12298
12686
  gebruiker_naam: string;
12299
12687
  gestart_op: string | null;
12300
12688
  id: string;
12689
+ idempotentie_sleutel: string | null;
12301
12690
  is_herprint: boolean;
12302
12691
  kopieen: number;
12303
12692
  layout_id: string | null;
12304
12693
  opgepakt_op: string | null;
12305
12694
  paginas: number;
12306
12695
  payload: import("./types").Json;
12696
+ pdf_base64: string | null;
12697
+ pdf_url: string | null;
12307
12698
  pogingen: number;
12308
12699
  printer_id: string | null;
12309
12700
  render_html: string | null;
12310
12701
  status: Database["public"]["Enums"]["print_job_status"];
12311
12702
  updated_at: string;
12703
+ volgende_poging: string | null;
12312
12704
  voltooid_op: string | null;
12313
12705
  };
12314
12706
  Insert: {
@@ -12317,22 +12709,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12317
12709
  created_at?: string;
12318
12710
  documentnaam?: string;
12319
12711
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12712
+ extern_job_id?: string | null;
12320
12713
  foutmelding?: string | null;
12321
12714
  gebruiker_id?: string | null;
12322
12715
  gebruiker_naam?: string;
12323
12716
  gestart_op?: string | null;
12324
12717
  id?: string;
12718
+ idempotentie_sleutel?: string | null;
12325
12719
  is_herprint?: boolean;
12326
12720
  kopieen?: number;
12327
12721
  layout_id?: string | null;
12328
12722
  opgepakt_op?: string | null;
12329
12723
  paginas?: number;
12330
12724
  payload?: import("./types").Json;
12725
+ pdf_base64?: string | null;
12726
+ pdf_url?: string | null;
12331
12727
  pogingen?: number;
12332
12728
  printer_id?: string | null;
12333
12729
  render_html?: string | null;
12334
12730
  status?: Database["public"]["Enums"]["print_job_status"];
12335
12731
  updated_at?: string;
12732
+ volgende_poging?: string | null;
12336
12733
  voltooid_op?: string | null;
12337
12734
  };
12338
12735
  Update: {
@@ -12341,22 +12738,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12341
12738
  created_at?: string;
12342
12739
  documentnaam?: string;
12343
12740
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12741
+ extern_job_id?: string | null;
12344
12742
  foutmelding?: string | null;
12345
12743
  gebruiker_id?: string | null;
12346
12744
  gebruiker_naam?: string;
12347
12745
  gestart_op?: string | null;
12348
12746
  id?: string;
12747
+ idempotentie_sleutel?: string | null;
12349
12748
  is_herprint?: boolean;
12350
12749
  kopieen?: number;
12351
12750
  layout_id?: string | null;
12352
12751
  opgepakt_op?: string | null;
12353
12752
  paginas?: number;
12354
12753
  payload?: import("./types").Json;
12754
+ pdf_base64?: string | null;
12755
+ pdf_url?: string | null;
12355
12756
  pogingen?: number;
12356
12757
  printer_id?: string | null;
12357
12758
  render_html?: string | null;
12358
12759
  status?: Database["public"]["Enums"]["print_job_status"];
12359
12760
  updated_at?: string;
12761
+ volgende_poging?: string | null;
12360
12762
  voltooid_op?: string | null;
12361
12763
  };
12362
12764
  Relationships: [{
@@ -12379,6 +12781,72 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12379
12781
  referencedColumns: ["id"];
12380
12782
  }];
12381
12783
  };
12784
+ print_queue_runners: {
12785
+ Row: {
12786
+ actief: boolean;
12787
+ basis_url: string;
12788
+ created_at: string;
12789
+ id: string;
12790
+ laatst_gezien: string;
12791
+ laatste_fout: string | null;
12792
+ laatste_request_id: number | null;
12793
+ mislukte_posts: number;
12794
+ tick_sleutel: string;
12795
+ updated_at: string;
12796
+ };
12797
+ Insert: {
12798
+ actief?: boolean;
12799
+ basis_url: string;
12800
+ created_at?: string;
12801
+ id?: string;
12802
+ laatst_gezien?: string;
12803
+ laatste_fout?: string | null;
12804
+ laatste_request_id?: number | null;
12805
+ mislukte_posts?: number;
12806
+ tick_sleutel?: string;
12807
+ updated_at?: string;
12808
+ };
12809
+ Update: {
12810
+ actief?: boolean;
12811
+ basis_url?: string;
12812
+ created_at?: string;
12813
+ id?: string;
12814
+ laatst_gezien?: string;
12815
+ laatste_fout?: string | null;
12816
+ laatste_request_id?: number | null;
12817
+ mislukte_posts?: number;
12818
+ tick_sleutel?: string;
12819
+ updated_at?: string;
12820
+ };
12821
+ Relationships: [];
12822
+ };
12823
+ print_queue_settings: {
12824
+ Row: {
12825
+ bewaar_bestanden_dagen: number;
12826
+ bewaar_opdrachten_dagen: number;
12827
+ created_at: string;
12828
+ dubbel_venster_minuten: number;
12829
+ id: string;
12830
+ updated_at: string;
12831
+ };
12832
+ Insert: {
12833
+ bewaar_bestanden_dagen?: number;
12834
+ bewaar_opdrachten_dagen?: number;
12835
+ created_at?: string;
12836
+ dubbel_venster_minuten?: number;
12837
+ id?: string;
12838
+ updated_at?: string;
12839
+ };
12840
+ Update: {
12841
+ bewaar_bestanden_dagen?: number;
12842
+ bewaar_opdrachten_dagen?: number;
12843
+ created_at?: string;
12844
+ dubbel_venster_minuten?: number;
12845
+ id?: string;
12846
+ updated_at?: string;
12847
+ };
12848
+ Relationships: [];
12849
+ };
12382
12850
  print_rules: {
12383
12851
  Row: {
12384
12852
  actief: boolean;
@@ -12539,6 +13007,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12539
13007
  agent_id: string | null;
12540
13008
  created_at: string;
12541
13009
  driver: string;
13010
+ extern_printer_id: string | null;
12542
13011
  id: string;
12543
13012
  ip_adres: string | null;
12544
13013
  laatst_gezien: string | null;
@@ -12560,6 +13029,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12560
13029
  agent_id?: string | null;
12561
13030
  created_at?: string;
12562
13031
  driver?: string;
13032
+ extern_printer_id?: string | null;
12563
13033
  id?: string;
12564
13034
  ip_adres?: string | null;
12565
13035
  laatst_gezien?: string | null;
@@ -12581,6 +13051,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
12581
13051
  agent_id?: string | null;
12582
13052
  created_at?: string;
12583
13053
  driver?: string;
13054
+ extern_printer_id?: string | null;
12584
13055
  id?: string;
12585
13056
  ip_adres?: string | null;
12586
13057
  laatst_gezien?: string | null;
@@ -13852,6 +14323,96 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13852
14323
  referencedColumns: ["id"];
13853
14324
  }];
13854
14325
  };
14326
+ role_assignments: {
14327
+ Row: {
14328
+ created_at: string;
14329
+ id: string;
14330
+ role_id: string;
14331
+ user_id: string;
14332
+ };
14333
+ Insert: {
14334
+ created_at?: string;
14335
+ id?: string;
14336
+ role_id: string;
14337
+ user_id: string;
14338
+ };
14339
+ Update: {
14340
+ created_at?: string;
14341
+ id?: string;
14342
+ role_id?: string;
14343
+ user_id?: string;
14344
+ };
14345
+ Relationships: [{
14346
+ foreignKeyName: "role_assignments_role_id_fkey";
14347
+ columns: ["role_id"];
14348
+ isOneToOne: false;
14349
+ referencedRelation: "roles";
14350
+ referencedColumns: ["id"];
14351
+ }];
14352
+ };
14353
+ role_permissions: {
14354
+ Row: {
14355
+ can_edit: boolean;
14356
+ can_view: boolean;
14357
+ feature_id: string;
14358
+ id: string;
14359
+ module_id: string;
14360
+ role_id: string;
14361
+ updated_at: string;
14362
+ };
14363
+ Insert: {
14364
+ can_edit?: boolean;
14365
+ can_view?: boolean;
14366
+ feature_id?: string;
14367
+ id?: string;
14368
+ module_id: string;
14369
+ role_id: string;
14370
+ updated_at?: string;
14371
+ };
14372
+ Update: {
14373
+ can_edit?: boolean;
14374
+ can_view?: boolean;
14375
+ feature_id?: string;
14376
+ id?: string;
14377
+ module_id?: string;
14378
+ role_id?: string;
14379
+ updated_at?: string;
14380
+ };
14381
+ Relationships: [{
14382
+ foreignKeyName: "role_permissions_role_id_fkey";
14383
+ columns: ["role_id"];
14384
+ isOneToOne: false;
14385
+ referencedRelation: "roles";
14386
+ referencedColumns: ["id"];
14387
+ }];
14388
+ };
14389
+ roles: {
14390
+ Row: {
14391
+ created_at: string;
14392
+ id: string;
14393
+ is_protected: boolean;
14394
+ key: string;
14395
+ name: string;
14396
+ updated_at: string;
14397
+ };
14398
+ Insert: {
14399
+ created_at?: string;
14400
+ id?: string;
14401
+ is_protected?: boolean;
14402
+ key: string;
14403
+ name: string;
14404
+ updated_at?: string;
14405
+ };
14406
+ Update: {
14407
+ created_at?: string;
14408
+ id?: string;
14409
+ is_protected?: boolean;
14410
+ key?: string;
14411
+ name?: string;
14412
+ updated_at?: string;
14413
+ };
14414
+ Relationships: [];
14415
+ };
13855
14416
  rooms: {
13856
14417
  Row: {
13857
14418
  capacity: number;
@@ -14521,101 +15082,254 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14521
15082
  };
14522
15083
  Relationships: [];
14523
15084
  };
14524
- time_entries: {
15085
+ time_compensation_entries: {
14525
15086
  Row: {
14526
15087
  created_at: string;
14527
15088
  employee_id: string;
14528
15089
  entry_date: string;
14529
- hours: number;
14530
15090
  id: string;
15091
+ km: number;
15092
+ meal_allowance: number;
14531
15093
  notes: string | null;
14532
- overtime: number;
14533
- undertime: number;
15094
+ standby_evening: number;
15095
+ standby_weekend: number;
15096
+ tvt_change: number;
14534
15097
  updated_at: string;
14535
15098
  };
14536
15099
  Insert: {
14537
15100
  created_at?: string;
14538
15101
  employee_id: string;
14539
15102
  entry_date: string;
14540
- hours?: number;
14541
15103
  id?: string;
15104
+ km?: number;
15105
+ meal_allowance?: number;
14542
15106
  notes?: string | null;
14543
- overtime?: number;
14544
- undertime?: number;
15107
+ standby_evening?: number;
15108
+ standby_weekend?: number;
15109
+ tvt_change?: number;
14545
15110
  updated_at?: string;
14546
15111
  };
14547
15112
  Update: {
14548
15113
  created_at?: string;
14549
15114
  employee_id?: string;
14550
15115
  entry_date?: string;
14551
- hours?: number;
14552
15116
  id?: string;
15117
+ km?: number;
15118
+ meal_allowance?: number;
14553
15119
  notes?: string | null;
14554
- overtime?: number;
14555
- undertime?: number;
15120
+ standby_evening?: number;
15121
+ standby_weekend?: number;
15122
+ tvt_change?: number;
14556
15123
  updated_at?: string;
14557
15124
  };
14558
15125
  Relationships: [{
14559
- foreignKeyName: "time_entries_employee_id_fkey";
15126
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
14560
15127
  columns: ["employee_id"];
14561
15128
  isOneToOne: false;
14562
- referencedRelation: "monteurs";
15129
+ referencedRelation: "profiles";
14563
15130
  referencedColumns: ["id"];
14564
15131
  }];
14565
15132
  };
14566
- time_logs: {
15133
+ time_entries: {
14567
15134
  Row: {
14568
15135
  created_at: string;
14569
15136
  employee_id: string;
14570
- end_time: string | null;
15137
+ entry_date: string;
15138
+ hours: number;
14571
15139
  id: string;
14572
15140
  notes: string | null;
14573
- overtime_hours: number;
14574
- overtime_type: string | null;
14575
- regular_hours: number;
14576
- start_time: string;
14577
- travel_cost: number | null;
14578
- travel_distance_km: number | null;
14579
- type: string;
15141
+ overtime: number;
15142
+ undertime: number;
14580
15143
  updated_at: string;
14581
15144
  };
14582
15145
  Insert: {
14583
15146
  created_at?: string;
14584
15147
  employee_id: string;
14585
- end_time?: string | null;
15148
+ entry_date: string;
15149
+ hours?: number;
14586
15150
  id?: string;
14587
15151
  notes?: string | null;
14588
- overtime_hours?: number;
14589
- overtime_type?: string | null;
14590
- regular_hours?: number;
14591
- start_time?: string;
14592
- travel_cost?: number | null;
14593
- travel_distance_km?: number | null;
14594
- type: string;
15152
+ overtime?: number;
15153
+ undertime?: number;
14595
15154
  updated_at?: string;
14596
15155
  };
14597
15156
  Update: {
14598
15157
  created_at?: string;
14599
15158
  employee_id?: string;
14600
- end_time?: string | null;
15159
+ entry_date?: string;
15160
+ hours?: number;
14601
15161
  id?: string;
14602
15162
  notes?: string | null;
14603
- overtime_hours?: number;
14604
- overtime_type?: string | null;
14605
- regular_hours?: number;
14606
- start_time?: string;
14607
- travel_cost?: number | null;
14608
- travel_distance_km?: number | null;
14609
- type?: string;
15163
+ overtime?: number;
15164
+ undertime?: number;
14610
15165
  updated_at?: string;
14611
15166
  };
14612
- Relationships: [{
14613
- foreignKeyName: "time_logs_employee_id_fkey";
14614
- columns: ["employee_id"];
14615
- isOneToOne: false;
14616
- referencedRelation: "monteurs";
14617
- referencedColumns: ["id"];
14618
- }];
15167
+ Relationships: [];
15168
+ };
15169
+ time_log_week_approvals: {
15170
+ Row: {
15171
+ approved_at: string | null;
15172
+ approved_by: string | null;
15173
+ created_at: string;
15174
+ employee_id: string;
15175
+ id: string;
15176
+ locked: boolean;
15177
+ notes: string | null;
15178
+ status: string;
15179
+ submitted_at: string | null;
15180
+ updated_at: string;
15181
+ week_start: string;
15182
+ };
15183
+ Insert: {
15184
+ approved_at?: string | null;
15185
+ approved_by?: string | null;
15186
+ created_at?: string;
15187
+ employee_id: string;
15188
+ id?: string;
15189
+ locked?: boolean;
15190
+ notes?: string | null;
15191
+ status?: string;
15192
+ submitted_at?: string | null;
15193
+ updated_at?: string;
15194
+ week_start: string;
15195
+ };
15196
+ Update: {
15197
+ approved_at?: string | null;
15198
+ approved_by?: string | null;
15199
+ created_at?: string;
15200
+ employee_id?: string;
15201
+ id?: string;
15202
+ locked?: boolean;
15203
+ notes?: string | null;
15204
+ status?: string;
15205
+ submitted_at?: string | null;
15206
+ updated_at?: string;
15207
+ week_start?: string;
15208
+ };
15209
+ Relationships: [{
15210
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
15211
+ columns: ["employee_id"];
15212
+ isOneToOne: false;
15213
+ referencedRelation: "profiles";
15214
+ referencedColumns: ["id"];
15215
+ }];
15216
+ };
15217
+ time_logs: {
15218
+ Row: {
15219
+ auto_stop_reason: string | null;
15220
+ auto_stopped: boolean;
15221
+ created_at: string;
15222
+ current_latitude: number | null;
15223
+ current_longitude: number | null;
15224
+ current_position_updated_at: string | null;
15225
+ employee_id: string;
15226
+ end_latitude: number | null;
15227
+ end_longitude: number | null;
15228
+ end_time: string | null;
15229
+ eta_distance_km: number | null;
15230
+ eta_minutes: number | null;
15231
+ eta_updated_at: string | null;
15232
+ hour_category: string | null;
15233
+ id: string;
15234
+ last_reminder_at: string | null;
15235
+ notes: string | null;
15236
+ overtime_hours: number;
15237
+ overtime_type: string | null;
15238
+ regular_hours: number;
15239
+ reminder_count: number;
15240
+ requires_review: boolean;
15241
+ start_latitude: number | null;
15242
+ start_longitude: number | null;
15243
+ start_time: string;
15244
+ travel_cost: number | null;
15245
+ travel_distance_km: number | null;
15246
+ travel_duration_min: number | null;
15247
+ travel_time_minutes: number | null;
15248
+ type: string;
15249
+ updated_at: string;
15250
+ work_order_id: string | null;
15251
+ };
15252
+ Insert: {
15253
+ auto_stop_reason?: string | null;
15254
+ auto_stopped?: boolean;
15255
+ created_at?: string;
15256
+ current_latitude?: number | null;
15257
+ current_longitude?: number | null;
15258
+ current_position_updated_at?: string | null;
15259
+ employee_id: string;
15260
+ end_latitude?: number | null;
15261
+ end_longitude?: number | null;
15262
+ end_time?: string | null;
15263
+ eta_distance_km?: number | null;
15264
+ eta_minutes?: number | null;
15265
+ eta_updated_at?: string | null;
15266
+ hour_category?: string | null;
15267
+ id?: string;
15268
+ last_reminder_at?: string | null;
15269
+ notes?: string | null;
15270
+ overtime_hours?: number;
15271
+ overtime_type?: string | null;
15272
+ regular_hours?: number;
15273
+ reminder_count?: number;
15274
+ requires_review?: boolean;
15275
+ start_latitude?: number | null;
15276
+ start_longitude?: number | null;
15277
+ start_time?: string;
15278
+ travel_cost?: number | null;
15279
+ travel_distance_km?: number | null;
15280
+ travel_duration_min?: number | null;
15281
+ travel_time_minutes?: number | null;
15282
+ type: string;
15283
+ updated_at?: string;
15284
+ work_order_id?: string | null;
15285
+ };
15286
+ Update: {
15287
+ auto_stop_reason?: string | null;
15288
+ auto_stopped?: boolean;
15289
+ created_at?: string;
15290
+ current_latitude?: number | null;
15291
+ current_longitude?: number | null;
15292
+ current_position_updated_at?: string | null;
15293
+ employee_id?: string;
15294
+ end_latitude?: number | null;
15295
+ end_longitude?: number | null;
15296
+ end_time?: string | null;
15297
+ eta_distance_km?: number | null;
15298
+ eta_minutes?: number | null;
15299
+ eta_updated_at?: string | null;
15300
+ hour_category?: string | null;
15301
+ id?: string;
15302
+ last_reminder_at?: string | null;
15303
+ notes?: string | null;
15304
+ overtime_hours?: number;
15305
+ overtime_type?: string | null;
15306
+ regular_hours?: number;
15307
+ reminder_count?: number;
15308
+ requires_review?: boolean;
15309
+ start_latitude?: number | null;
15310
+ start_longitude?: number | null;
15311
+ start_time?: string;
15312
+ travel_cost?: number | null;
15313
+ travel_distance_km?: number | null;
15314
+ travel_duration_min?: number | null;
15315
+ travel_time_minutes?: number | null;
15316
+ type?: string;
15317
+ updated_at?: string;
15318
+ work_order_id?: string | null;
15319
+ };
15320
+ Relationships: [{
15321
+ foreignKeyName: "time_logs_employee_id_fkey";
15322
+ columns: ["employee_id"];
15323
+ isOneToOne: false;
15324
+ referencedRelation: "profiles";
15325
+ referencedColumns: ["id"];
15326
+ }, {
15327
+ foreignKeyName: "time_logs_work_order_id_fkey";
15328
+ columns: ["work_order_id"];
15329
+ isOneToOne: false;
15330
+ referencedRelation: "work_orders";
15331
+ referencedColumns: ["id"];
15332
+ }];
14619
15333
  };
14620
15334
  time_off_entries: {
14621
15335
  Row: {
@@ -14652,7 +15366,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14652
15366
  foreignKeyName: "time_off_entries_employee_id_fkey";
14653
15367
  columns: ["employee_id"];
14654
15368
  isOneToOne: false;
14655
- referencedRelation: "monteurs";
15369
+ referencedRelation: "profiles";
14656
15370
  referencedColumns: ["id"];
14657
15371
  }];
14658
15372
  };
@@ -14962,6 +15676,39 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14962
15676
  };
14963
15677
  Relationships: [];
14964
15678
  };
15679
+ twinfield_cron_locks: {
15680
+ Row: {
15681
+ created_at: string;
15682
+ heartbeat_at: string;
15683
+ job_name: string;
15684
+ last_error: string | null;
15685
+ last_finished_at: string | null;
15686
+ locked_at: string;
15687
+ run_id: string;
15688
+ updated_at: string;
15689
+ };
15690
+ Insert: {
15691
+ created_at?: string;
15692
+ heartbeat_at?: string;
15693
+ job_name: string;
15694
+ last_error?: string | null;
15695
+ last_finished_at?: string | null;
15696
+ locked_at?: string;
15697
+ run_id?: string;
15698
+ updated_at?: string;
15699
+ };
15700
+ Update: {
15701
+ created_at?: string;
15702
+ heartbeat_at?: string;
15703
+ job_name?: string;
15704
+ last_error?: string | null;
15705
+ last_finished_at?: string | null;
15706
+ locked_at?: string;
15707
+ run_id?: string;
15708
+ updated_at?: string;
15709
+ };
15710
+ Relationships: [];
15711
+ };
14965
15712
  twinfield_customers: {
14966
15713
  Row: {
14967
15714
  address: string | null;
@@ -15216,6 +15963,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15216
15963
  };
15217
15964
  twinfield_invoice_settings: {
15218
15965
  Row: {
15966
+ auto_invoice_enabled: boolean;
15967
+ auto_invoice_trigger_statuses: string[];
15219
15968
  created_at: string;
15220
15969
  debtor_gl_account: string;
15221
15970
  default_credit_invoice_type: string | null;
@@ -15236,6 +15985,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15236
15985
  vat_code_export: string | null;
15237
15986
  };
15238
15987
  Insert: {
15988
+ auto_invoice_enabled?: boolean;
15989
+ auto_invoice_trigger_statuses?: string[];
15239
15990
  created_at?: string;
15240
15991
  debtor_gl_account?: string;
15241
15992
  default_credit_invoice_type?: string | null;
@@ -15256,6 +16007,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15256
16007
  vat_code_export?: string | null;
15257
16008
  };
15258
16009
  Update: {
16010
+ auto_invoice_enabled?: boolean;
16011
+ auto_invoice_trigger_statuses?: string[];
15259
16012
  created_at?: string;
15260
16013
  debtor_gl_account?: string;
15261
16014
  default_credit_invoice_type?: string | null;
@@ -15556,6 +16309,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15556
16309
  twinfield_push_queue: {
15557
16310
  Row: {
15558
16311
  action: string;
16312
+ attempt_started_at: string | null;
15559
16313
  attempts: number;
15560
16314
  connection_id: string | null;
15561
16315
  created_at: string;
@@ -15572,6 +16326,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15572
16326
  };
15573
16327
  Insert: {
15574
16328
  action?: string;
16329
+ attempt_started_at?: string | null;
15575
16330
  attempts?: number;
15576
16331
  connection_id?: string | null;
15577
16332
  created_at?: string;
@@ -15588,6 +16343,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15588
16343
  };
15589
16344
  Update: {
15590
16345
  action?: string;
16346
+ attempt_started_at?: string | null;
15591
16347
  attempts?: number;
15592
16348
  connection_id?: string | null;
15593
16349
  created_at?: string;
@@ -15785,13 +16541,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15785
16541
  workday_end?: string | null;
15786
16542
  workday_start?: string | null;
15787
16543
  };
15788
- Relationships: [{
15789
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
15790
- columns: ["monteur_id"];
15791
- isOneToOne: true;
15792
- referencedRelation: "monteurs";
15793
- referencedColumns: ["id"];
15794
- }];
16544
+ Relationships: [];
15795
16545
  };
15796
16546
  uren_entries: {
15797
16547
  Row: {
@@ -15837,12 +16587,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
15837
16587
  werkbon_id?: string | null;
15838
16588
  };
15839
16589
  Relationships: [{
15840
- foreignKeyName: "uren_entries_monteur_id_fkey";
15841
- columns: ["monteur_id"];
15842
- isOneToOne: false;
15843
- referencedRelation: "monteurs";
15844
- referencedColumns: ["id"];
15845
- }, {
15846
16590
  foreignKeyName: "uren_entries_werkbon_id_fkey";
15847
16591
  columns: ["werkbon_id"];
15848
16592
  isOneToOne: false;
@@ -16310,13 +17054,37 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16310
17054
  submitted_at?: string | null;
16311
17055
  updated_at?: string;
16312
17056
  };
16313
- Relationships: [{
16314
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16315
- columns: ["monteur_id"];
16316
- isOneToOne: false;
16317
- referencedRelation: "monteurs";
16318
- referencedColumns: ["id"];
16319
- }];
17057
+ Relationships: [];
17058
+ };
17059
+ user_module_permissions: {
17060
+ Row: {
17061
+ created_at: string;
17062
+ feature_id: string;
17063
+ id: string;
17064
+ module_id: string;
17065
+ permission: string;
17066
+ updated_at: string;
17067
+ user_id: string;
17068
+ };
17069
+ Insert: {
17070
+ created_at?: string;
17071
+ feature_id?: string;
17072
+ id?: string;
17073
+ module_id: string;
17074
+ permission: string;
17075
+ updated_at?: string;
17076
+ user_id: string;
17077
+ };
17078
+ Update: {
17079
+ created_at?: string;
17080
+ feature_id?: string;
17081
+ id?: string;
17082
+ module_id?: string;
17083
+ permission?: string;
17084
+ updated_at?: string;
17085
+ user_id?: string;
17086
+ };
17087
+ Relationships: [];
16320
17088
  };
16321
17089
  user_roles: {
16322
17090
  Row: {
@@ -16345,6 +17113,51 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
16345
17113
  referencedColumns: ["id"];
16346
17114
  }];
16347
17115
  };
17116
+ van_inventories: {
17117
+ Row: {
17118
+ barcode: string | null;
17119
+ created_at: string;
17120
+ id: string;
17121
+ monteur_id: string | null;
17122
+ price_per_unit: number;
17123
+ product_name: string;
17124
+ quantity_current: number;
17125
+ quantity_min: number;
17126
+ unit: string;
17127
+ updated_at: string;
17128
+ };
17129
+ Insert: {
17130
+ barcode?: string | null;
17131
+ created_at?: string;
17132
+ id?: string;
17133
+ monteur_id?: string | null;
17134
+ price_per_unit?: number;
17135
+ product_name: string;
17136
+ quantity_current?: number;
17137
+ quantity_min?: number;
17138
+ unit?: string;
17139
+ updated_at?: string;
17140
+ };
17141
+ Update: {
17142
+ barcode?: string | null;
17143
+ created_at?: string;
17144
+ id?: string;
17145
+ monteur_id?: string | null;
17146
+ price_per_unit?: number;
17147
+ product_name?: string;
17148
+ quantity_current?: number;
17149
+ quantity_min?: number;
17150
+ unit?: string;
17151
+ updated_at?: string;
17152
+ };
17153
+ Relationships: [{
17154
+ foreignKeyName: "van_inventories_monteur_id_fkey";
17155
+ columns: ["monteur_id"];
17156
+ isOneToOne: false;
17157
+ referencedRelation: "profiles";
17158
+ referencedColumns: ["id"];
17159
+ }];
17160
+ };
16348
17161
  voorraad_custom_fields: {
16349
17162
  Row: {
16350
17163
  created_at: string;
@@ -17295,7 +18108,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17295
18108
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17296
18109
  columns: ["monteur_id"];
17297
18110
  isOneToOne: false;
17298
- referencedRelation: "monteurs";
18111
+ referencedRelation: "profiles";
17299
18112
  referencedColumns: ["id"];
17300
18113
  }, {
17301
18114
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17305,6 +18118,60 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17305
18118
  referencedColumns: ["id"];
17306
18119
  }];
17307
18120
  };
18121
+ work_order_photos: {
18122
+ Row: {
18123
+ ai_caption: string | null;
18124
+ ai_categorized_at: string | null;
18125
+ ai_labels: import("./types").Json | null;
18126
+ caption: string | null;
18127
+ created_at: string;
18128
+ id: string;
18129
+ monteur_id: string | null;
18130
+ photo_type: string;
18131
+ storage_path: string;
18132
+ updated_at: string;
18133
+ work_order_id: string;
18134
+ };
18135
+ Insert: {
18136
+ ai_caption?: string | null;
18137
+ ai_categorized_at?: string | null;
18138
+ ai_labels?: import("./types").Json | null;
18139
+ caption?: string | null;
18140
+ created_at?: string;
18141
+ id?: string;
18142
+ monteur_id?: string | null;
18143
+ photo_type?: string;
18144
+ storage_path: string;
18145
+ updated_at?: string;
18146
+ work_order_id: string;
18147
+ };
18148
+ Update: {
18149
+ ai_caption?: string | null;
18150
+ ai_categorized_at?: string | null;
18151
+ ai_labels?: import("./types").Json | null;
18152
+ caption?: string | null;
18153
+ created_at?: string;
18154
+ id?: string;
18155
+ monteur_id?: string | null;
18156
+ photo_type?: string;
18157
+ storage_path?: string;
18158
+ updated_at?: string;
18159
+ work_order_id?: string;
18160
+ };
18161
+ Relationships: [{
18162
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
18163
+ columns: ["monteur_id"];
18164
+ isOneToOne: false;
18165
+ referencedRelation: "profiles";
18166
+ referencedColumns: ["id"];
18167
+ }, {
18168
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
18169
+ columns: ["work_order_id"];
18170
+ isOneToOne: false;
18171
+ referencedRelation: "work_orders";
18172
+ referencedColumns: ["id"];
18173
+ }];
18174
+ };
17308
18175
  work_orders: {
17309
18176
  Row: {
17310
18177
  assigned_to: string | null;
@@ -17336,7 +18203,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17336
18203
  scheduled_end_time: string | null;
17337
18204
  scheduled_start_time: string | null;
17338
18205
  status: string;
17339
- tenant_id: string;
17340
18206
  total_hours_worked: number | null;
17341
18207
  total_price: number | null;
17342
18208
  travel_time_minutes: number | null;
@@ -17374,7 +18240,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17374
18240
  scheduled_end_time?: string | null;
17375
18241
  scheduled_start_time?: string | null;
17376
18242
  status?: string;
17377
- tenant_id: string;
17378
18243
  total_hours_worked?: number | null;
17379
18244
  total_price?: number | null;
17380
18245
  travel_time_minutes?: number | null;
@@ -17412,7 +18277,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17412
18277
  scheduled_end_time?: string | null;
17413
18278
  scheduled_start_time?: string | null;
17414
18279
  status?: string;
17415
- tenant_id?: string;
17416
18280
  total_hours_worked?: number | null;
17417
18281
  total_price?: number | null;
17418
18282
  travel_time_minutes?: number | null;
@@ -17426,12 +18290,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
17426
18290
  isOneToOne: false;
17427
18291
  referencedRelation: "work_orders";
17428
18292
  referencedColumns: ["id"];
17429
- }, {
17430
- foreignKeyName: "work_orders_tenant_id_fkey";
17431
- columns: ["tenant_id"];
17432
- isOneToOne: false;
17433
- referencedRelation: "tenants";
17434
- referencedColumns: ["id"];
17435
18293
  }];
17436
18294
  };
17437
18295
  };
@@ -18151,6 +19009,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18151
19009
  processed_items: number;
18152
19010
  }[];
18153
19011
  };
19012
+ backfill_order_auto_invoice_queue: {
19013
+ Args: never;
19014
+ Returns: number;
19015
+ };
18154
19016
  calculate_layer_stock: {
18155
19017
  Args: {
18156
19018
  p_product_id: string;
@@ -18163,6 +19025,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18163
19025
  };
18164
19026
  Returns: number;
18165
19027
  };
19028
+ can_manage_hours: {
19029
+ Args: never;
19030
+ Returns: boolean;
19031
+ };
18166
19032
  check_offer_product_available_stock: {
18167
19033
  Args: {
18168
19034
  p_campaign_product_id: string;
@@ -18185,6 +19051,46 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18185
19051
  };
18186
19052
  Returns: import("./types").Json;
18187
19053
  };
19054
+ claim_cloud_print_jobs: {
19055
+ Args: {
19056
+ _max?: number;
19057
+ };
19058
+ Returns: {
19059
+ agent_id: string | null;
19060
+ bron_job_id: string | null;
19061
+ created_at: string;
19062
+ documentnaam: string;
19063
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
19064
+ extern_job_id: string | null;
19065
+ foutmelding: string | null;
19066
+ gebruiker_id: string | null;
19067
+ gebruiker_naam: string;
19068
+ gestart_op: string | null;
19069
+ id: string;
19070
+ idempotentie_sleutel: string | null;
19071
+ is_herprint: boolean;
19072
+ kopieen: number;
19073
+ layout_id: string | null;
19074
+ opgepakt_op: string | null;
19075
+ paginas: number;
19076
+ payload: import("./types").Json;
19077
+ pdf_base64: string | null;
19078
+ pdf_url: string | null;
19079
+ pogingen: number;
19080
+ printer_id: string | null;
19081
+ render_html: string | null;
19082
+ status: Database["public"]["Enums"]["print_job_status"];
19083
+ updated_at: string;
19084
+ volgende_poging: string | null;
19085
+ voltooid_op: string | null;
19086
+ }[];
19087
+ SetofOptions: {
19088
+ from: "*";
19089
+ to: "print_jobs";
19090
+ isOneToOne: false;
19091
+ isSetofReturn: true;
19092
+ };
19093
+ };
18188
19094
  claim_floriday_stock_queue: {
18189
19095
  Args: {
18190
19096
  p_limit?: number;
@@ -18275,22 +19181,27 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18275
19181
  created_at: string;
18276
19182
  documentnaam: string;
18277
19183
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
19184
+ extern_job_id: string | null;
18278
19185
  foutmelding: string | null;
18279
19186
  gebruiker_id: string | null;
18280
19187
  gebruiker_naam: string;
18281
19188
  gestart_op: string | null;
18282
19189
  id: string;
19190
+ idempotentie_sleutel: string | null;
18283
19191
  is_herprint: boolean;
18284
19192
  kopieen: number;
18285
19193
  layout_id: string | null;
18286
19194
  opgepakt_op: string | null;
18287
19195
  paginas: number;
18288
19196
  payload: import("./types").Json;
19197
+ pdf_base64: string | null;
19198
+ pdf_url: string | null;
18289
19199
  pogingen: number;
18290
19200
  printer_id: string | null;
18291
19201
  render_html: string | null;
18292
19202
  status: Database["public"]["Enums"]["print_job_status"];
18293
19203
  updated_at: string;
19204
+ volgende_poging: string | null;
18294
19205
  voltooid_op: string | null;
18295
19206
  }[];
18296
19207
  SetofOptions: {
@@ -18307,6 +19218,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18307
19218
  };
18308
19219
  Returns: {
18309
19220
  action: string;
19221
+ attempt_started_at: string | null;
18310
19222
  attempts: number;
18311
19223
  connection_id: string | null;
18312
19224
  created_at: string;
@@ -18336,6 +19248,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18336
19248
  Args: never;
18337
19249
  Returns: undefined;
18338
19250
  };
19251
+ cleanup_voorraad_module_history: {
19252
+ Args: never;
19253
+ Returns: undefined;
19254
+ };
18339
19255
  complete_floriday_stock_queue: {
18340
19256
  Args: {
18341
19257
  p_attempt_id?: string;
@@ -18390,6 +19306,30 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18390
19306
  agent_naam: string;
18391
19307
  }[];
18392
19308
  };
19309
+ consume_van_inventory: {
19310
+ Args: {
19311
+ p_inventory_id: string;
19312
+ p_quantity: number;
19313
+ };
19314
+ Returns: {
19315
+ barcode: string | null;
19316
+ created_at: string;
19317
+ id: string;
19318
+ monteur_id: string | null;
19319
+ price_per_unit: number;
19320
+ product_name: string;
19321
+ quantity_current: number;
19322
+ quantity_min: number;
19323
+ unit: string;
19324
+ updated_at: string;
19325
+ };
19326
+ SetofOptions: {
19327
+ from: "*";
19328
+ to: "van_inventories";
19329
+ isOneToOne: true;
19330
+ isSetofReturn: false;
19331
+ };
19332
+ };
18393
19333
  control_get_todays_carts: {
18394
19334
  Args: never;
18395
19335
  Returns: {
@@ -18457,6 +19397,20 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18457
19397
  };
18458
19398
  Returns: import("./types").Json;
18459
19399
  };
19400
+ effective_module_permission: {
19401
+ Args: {
19402
+ _module_id: string;
19403
+ _user_id: string;
19404
+ };
19405
+ Returns: string;
19406
+ } | {
19407
+ Args: {
19408
+ _feature_id?: string;
19409
+ _module_id: string;
19410
+ _user_id: string;
19411
+ };
19412
+ Returns: string;
19413
+ };
18460
19414
  email_auth_decrypt: {
18461
19415
  Args: {
18462
19416
  cipher: string;
@@ -18807,12 +19761,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18807
19761
  Args: never;
18808
19762
  Returns: string;
18809
19763
  };
18810
- get_work_order_tenant_id: {
18811
- Args: {
18812
- wo_id: string;
18813
- };
18814
- Returns: string;
18815
- };
18816
19764
  has_module_permission: {
18817
19765
  Args: {
18818
19766
  _min: string;
@@ -18846,6 +19794,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18846
19794
  };
18847
19795
  Returns: boolean;
18848
19796
  };
19797
+ is_time_log_week_locked: {
19798
+ Args: {
19799
+ p_employee_id: string;
19800
+ p_start_time: string;
19801
+ };
19802
+ Returns: boolean;
19803
+ };
18849
19804
  is_user_admin: {
18850
19805
  Args: never;
18851
19806
  Returns: boolean;
@@ -18860,13 +19815,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
18860
19815
  };
18861
19816
  Returns: boolean;
18862
19817
  };
18863
- list_monteurs: {
19818
+ list_medewerkers: {
18864
19819
  Args: never;
18865
19820
  Returns: {
18866
19821
  avatar_url: string;
18867
19822
  display_name: string;
18868
19823
  email: string;
18869
19824
  id: string;
19825
+ roles: string[];
18870
19826
  }[];
18871
19827
  };
18872
19828
  list_my_planning_items: {
@@ -19260,6 +20216,51 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19260
20216
  isSetofReturn: false;
19261
20217
  };
19262
20218
  };
20219
+ logistics_floriday_claim_pushes: {
20220
+ Args: {
20221
+ _lease_seconds?: number;
20222
+ _limit?: number;
20223
+ _worker?: string;
20224
+ };
20225
+ Returns: {
20226
+ attempts: number;
20227
+ fulfillment_order_id: string;
20228
+ id: string;
20229
+ last_sent_hash: string;
20230
+ order_ref: string;
20231
+ payload: import("./types").Json;
20232
+ payload_hash: string;
20233
+ revision: number;
20234
+ }[];
20235
+ };
20236
+ logistics_floriday_finish_push: {
20237
+ Args: {
20238
+ _error?: string;
20239
+ _fulfillment_order_id?: string;
20240
+ _id: string;
20241
+ _max_age_hours?: number;
20242
+ _max_attempts?: number;
20243
+ _ok: boolean;
20244
+ _permanent?: boolean;
20245
+ _revision: number;
20246
+ _sent_hash?: string;
20247
+ };
20248
+ Returns: string;
20249
+ };
20250
+ logistics_floriday_prune_pushes: {
20251
+ Args: {
20252
+ _days?: number;
20253
+ };
20254
+ Returns: number;
20255
+ };
20256
+ logistics_floriday_queue_push: {
20257
+ Args: {
20258
+ _order_ref: string;
20259
+ _payload?: import("./types").Json;
20260
+ _payload_hash?: string;
20261
+ };
20262
+ Returns: string;
20263
+ };
19263
20264
  logistics_live_carriers: {
19264
20265
  Args: {
19265
20266
  p_order_ref: string;
@@ -19312,6 +20313,65 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19312
20313
  };
19313
20314
  Returns: number;
19314
20315
  };
20316
+ logistics_plan_claim: {
20317
+ Args: {
20318
+ p_limit?: number;
20319
+ };
20320
+ Returns: {
20321
+ attempts: number;
20322
+ id: string;
20323
+ order_id: string;
20324
+ }[];
20325
+ };
20326
+ logistics_plan_enqueue: {
20327
+ Args: {
20328
+ p_order_id: string;
20329
+ p_reason?: string;
20330
+ };
20331
+ Returns: undefined;
20332
+ };
20333
+ logistics_plan_ensure_event: {
20334
+ Args: {
20335
+ p_order_id: string;
20336
+ };
20337
+ Returns: boolean;
20338
+ };
20339
+ logistics_plan_finish: {
20340
+ Args: {
20341
+ p_error?: string;
20342
+ p_id: string;
20343
+ };
20344
+ Returns: undefined;
20345
+ };
20346
+ logistics_plan_impact_orders: {
20347
+ Args: {
20348
+ p_order_id: string;
20349
+ };
20350
+ Returns: {
20351
+ buffer_id: string;
20352
+ order_id: string;
20353
+ plan_date: string;
20354
+ }[];
20355
+ };
20356
+ logistics_plan_kick: {
20357
+ Args: never;
20358
+ Returns: undefined;
20359
+ };
20360
+ logistics_plan_prune: {
20361
+ Args: never;
20362
+ Returns: number;
20363
+ };
20364
+ logistics_plan_release_stale: {
20365
+ Args: never;
20366
+ Returns: number;
20367
+ };
20368
+ logistics_plan_setting: {
20369
+ Args: {
20370
+ p_default: number;
20371
+ p_key: string;
20372
+ };
20373
+ Returns: number;
20374
+ };
19315
20375
  logistics_queue_capacity_email: {
19316
20376
  Args: {
19317
20377
  p_alert_id: string;
@@ -19550,6 +20610,14 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19550
20610
  };
19551
20611
  Returns: undefined;
19552
20612
  };
20613
+ my_module_permissions: {
20614
+ Args: never;
20615
+ Returns: {
20616
+ feature_id: string;
20617
+ module_id: string;
20618
+ permission: string;
20619
+ }[];
20620
+ };
19553
20621
  next_manufacture_partij: {
19554
20622
  Args: {
19555
20623
  _tenant_id: string;
@@ -19600,6 +20668,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19600
20668
  };
19601
20669
  Returns: boolean;
19602
20670
  };
20671
+ opruim_print_historie: {
20672
+ Args: never;
20673
+ Returns: {
20674
+ ontdaan: number;
20675
+ verwijderd: number;
20676
+ }[];
20677
+ };
19603
20678
  order_number_prefix: {
19604
20679
  Args: {
19605
20680
  p_custom_fields?: import("./types").Json;
@@ -19607,6 +20682,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19607
20682
  };
19608
20683
  Returns: string;
19609
20684
  };
20685
+ pick_active_printers: {
20686
+ Args: never;
20687
+ Returns: {
20688
+ id: string;
20689
+ locatie: string;
20690
+ naam: string;
20691
+ online: boolean;
20692
+ }[];
20693
+ };
19610
20694
  pick_claim_document: {
19611
20695
  Args: {
19612
20696
  _queue_item_id: string;
@@ -19793,6 +20877,52 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19793
20877
  };
19794
20878
  Returns: undefined;
19795
20879
  };
20880
+ pick_reset_print: {
20881
+ Args: {
20882
+ _queue_item_id: string;
20883
+ _session_id: string;
20884
+ };
20885
+ Returns: {
20886
+ announced_at: string;
20887
+ assigned_user_id: string | null;
20888
+ barcode: string | null;
20889
+ cancelled_at: string | null;
20890
+ cart_count: number;
20891
+ completed_at: string | null;
20892
+ country_code: string | null;
20893
+ created_at: string;
20894
+ customer_name: string | null;
20895
+ delivery_address: string | null;
20896
+ document_number: string | null;
20897
+ document_type_id: string | null;
20898
+ due_at: string | null;
20899
+ id: string;
20900
+ is_urgent: boolean;
20901
+ line_count: number;
20902
+ order_number: string | null;
20903
+ order_type: string | null;
20904
+ payload: import("./types").Json;
20905
+ print_count: number;
20906
+ print_job_id: string | null;
20907
+ printed_at: string | null;
20908
+ printed_by: string | null;
20909
+ printer_id: string | null;
20910
+ priority: number;
20911
+ reference: string | null;
20912
+ route: string | null;
20913
+ screen_id: string | null;
20914
+ station_id: string | null;
20915
+ status_id: string | null;
20916
+ updated_at: string;
20917
+ warnings: import("./types").Json;
20918
+ };
20919
+ SetofOptions: {
20920
+ from: "*";
20921
+ to: "pick_queue";
20922
+ isOneToOne: true;
20923
+ isSetofReturn: false;
20924
+ };
20925
+ };
19796
20926
  pick_station_dashboard: {
19797
20927
  Args: never;
19798
20928
  Returns: {
@@ -19939,6 +21069,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19939
21069
  };
19940
21070
  Returns: undefined;
19941
21071
  };
21072
+ reset_stalled_floriday_stock_queue: {
21073
+ Args: {
21074
+ p_include_failed?: boolean;
21075
+ };
21076
+ Returns: number;
21077
+ };
19942
21078
  resolve_group_allocation: {
19943
21079
  Args: {
19944
21080
  _needed: number;
@@ -19983,14 +21119,28 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
19983
21119
  };
19984
21120
  Returns: import("./types").Json;
19985
21121
  };
21122
+ ruim_print_jobs_op: {
21123
+ Args: {
21124
+ _bewaar_dagen?: number;
21125
+ };
21126
+ Returns: number;
21127
+ };
19986
21128
  run_floriday_continuous_stock_sync: {
19987
21129
  Args: never;
19988
21130
  Returns: undefined;
19989
21131
  };
21132
+ run_floriday_stock_queue_process: {
21133
+ Args: never;
21134
+ Returns: undefined;
21135
+ };
19990
21136
  run_logistics_tasks_dispatch: {
19991
21137
  Args: never;
19992
21138
  Returns: undefined;
19993
21139
  };
21140
+ run_print_queue_ticks: {
21141
+ Args: never;
21142
+ Returns: number;
21143
+ };
19994
21144
  run_twinfield_queue_tick: {
19995
21145
  Args: never;
19996
21146
  Returns: undefined;
@@ -20344,6 +21494,16 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20344
21494
  };
20345
21495
  Returns: string[];
20346
21496
  };
21497
+ switch_time_log: {
21498
+ Args: {
21499
+ p_employee_id: string;
21500
+ p_start_lat?: number;
21501
+ p_start_lng?: number;
21502
+ p_type: string;
21503
+ p_work_order_id?: string;
21504
+ };
21505
+ Returns: import("./types").Json;
21506
+ };
20347
21507
  sync_all_layer_stocks: {
20348
21508
  Args: never;
20349
21509
  Returns: undefined;
@@ -20378,6 +21538,15 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20378
21538
  };
20379
21539
  Returns: undefined;
20380
21540
  };
21541
+ trade_item_stock_duplicates: {
21542
+ Args: never;
21543
+ Returns: {
21544
+ keys: string[];
21545
+ product_id: string;
21546
+ product_name: string;
21547
+ row_count: number;
21548
+ }[];
21549
+ };
20381
21550
  try_debtor_lock: {
20382
21551
  Args: {
20383
21552
  _group_key: string;
@@ -20385,6 +21554,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20385
21554
  };
20386
21555
  Returns: boolean;
20387
21556
  };
21557
+ twinfield_cron_lock_acquire: {
21558
+ Args: {
21559
+ _job_name: string;
21560
+ _stale_seconds?: number;
21561
+ };
21562
+ Returns: boolean;
21563
+ };
21564
+ twinfield_cron_lock_release: {
21565
+ Args: {
21566
+ _error?: string;
21567
+ _job_name: string;
21568
+ };
21569
+ Returns: undefined;
21570
+ };
21571
+ twinfield_prune_push_queue: {
21572
+ Args: never;
21573
+ Returns: number;
21574
+ };
20388
21575
  twinfield_register_cron: {
20389
21576
  Args: {
20390
21577
  apikey?: string;
@@ -20427,7 +21614,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20427
21614
  };
20428
21615
  Enums: {
20429
21616
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20430
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
21617
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20431
21618
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20432
21619
  doc_orientation: "portrait" | "landscape";
20433
21620
  exact_env: "staging" | "live";