@flowselections/logistiek-engine 1.0.28 → 1.0.30

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 (56) hide show
  1. package/README.md +24 -24
  2. package/dist-lib/components/GeblokkeerdeOrdersCard.d.ts +2 -0
  3. package/dist-lib/components/GeblokkeerdeOrdersCard.d.ts.map +1 -0
  4. package/dist-lib/components/GeblokkeerdeOrdersCard.js +44 -0
  5. package/dist-lib/components/LogistiekEnginePage.d.ts.map +1 -1
  6. package/dist-lib/components/LogistiekEnginePage.js +2 -1
  7. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  8. package/dist-lib/components/RegiePage.js +2 -1
  9. package/dist-lib/components/WerkwijzeHerindelingCard.d.ts +2 -0
  10. package/dist-lib/components/WerkwijzeHerindelingCard.d.ts.map +1 -0
  11. package/dist-lib/components/WerkwijzeHerindelingCard.js +36 -0
  12. package/dist-lib/hooks/useGeblokkeerdeOrders.d.ts +28 -0
  13. package/dist-lib/hooks/useGeblokkeerdeOrders.d.ts.map +1 -0
  14. package/dist-lib/hooks/useGeblokkeerdeOrders.js +94 -0
  15. package/dist-lib/hooks/useRuleEngine.d.ts.map +1 -1
  16. package/dist-lib/hooks/useRuleEngine.js +7 -4
  17. package/dist-lib/hooks/useWerkwijzeStatus.d.ts +17 -0
  18. package/dist-lib/hooks/useWerkwijzeStatus.d.ts.map +1 -0
  19. package/dist-lib/hooks/useWerkwijzeStatus.js +58 -0
  20. package/dist-lib/index.d.ts +3 -0
  21. package/dist-lib/index.d.ts.map +1 -1
  22. package/dist-lib/index.js +3 -0
  23. package/dist-lib/integrations/supabase/auth-middleware.d.ts +206 -0
  24. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  25. package/dist-lib/integrations/supabase/client.d.ts +1516 -159
  26. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  27. package/dist-lib/integrations/supabase/client.server.d.ts +206 -0
  28. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  29. package/dist-lib/integrations/supabase/moduleClient.d.ts +206 -0
  30. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  31. package/dist-lib/integrations/supabase/types.d.ts +206 -0
  32. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  33. package/dist-lib/lib/floridayDocuments.functions.d.ts +618 -0
  34. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/floridayDocuments.server.d.ts +7 -1
  36. package/dist-lib/lib/floridayDocuments.server.d.ts.map +1 -1
  37. package/dist-lib/lib/floridayDocuments.server.js +25 -1
  38. package/dist-lib/lib/floridayPush.functions.d.ts +206 -0
  39. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/floridayPush.server.d.ts.map +1 -1
  41. package/dist-lib/lib/floridayPush.server.js +28 -0
  42. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  43. package/dist-lib/lib/handlers/logistics-tick.server.js +21 -0
  44. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +1030 -0
  45. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  47. package/dist-lib/lib/loadCarrierPlanning.server.js +23 -3
  48. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +412 -0
  49. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +206 -0
  51. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  53. package/dist-lib/lib/modulePrompts.js +2613 -2406
  54. package/dist-lib/lib/ruleEngineSchema.d.ts.map +1 -1
  55. package/dist-lib/lib/ruleEngineSchema.js +7 -0
  56. package/package.json +1 -1
@@ -871,6 +871,126 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
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 supabase: import("@supabase/supabase-js").SupabaseClient<Da
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 supabase: import("@supabase/supabase-js").SupabaseClient<Da
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 supabase: import("@supabase/supabase-js").SupabaseClient<Da
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;
@@ -5694,12 +5814,17 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5694
5814
  attempts: number;
5695
5815
  connection_id: string;
5696
5816
  created_at: string;
5817
+ desired_available: boolean | null;
5697
5818
  gateway_attempt_id: string | null;
5698
5819
  id: string;
5699
5820
  last_error: string | null;
5821
+ locked_at: string | null;
5822
+ locked_by: string | null;
5823
+ next_attempt_at: string;
5700
5824
  number_of_pieces: number;
5701
5825
  sent_at: string | null;
5702
5826
  status: string;
5827
+ superseded_by: string | null;
5703
5828
  trade_item_id: string;
5704
5829
  updated_at: string;
5705
5830
  user_id: string;
@@ -5708,12 +5833,17 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5708
5833
  attempts?: number;
5709
5834
  connection_id: string;
5710
5835
  created_at?: string;
5836
+ desired_available?: boolean | null;
5711
5837
  gateway_attempt_id?: string | null;
5712
5838
  id?: string;
5713
5839
  last_error?: string | null;
5840
+ locked_at?: string | null;
5841
+ locked_by?: string | null;
5842
+ next_attempt_at?: string;
5714
5843
  number_of_pieces?: number;
5715
5844
  sent_at?: string | null;
5716
5845
  status?: string;
5846
+ superseded_by?: string | null;
5717
5847
  trade_item_id: string;
5718
5848
  updated_at?: string;
5719
5849
  user_id: string;
@@ -5722,12 +5852,17 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5722
5852
  attempts?: number;
5723
5853
  connection_id?: string;
5724
5854
  created_at?: string;
5855
+ desired_available?: boolean | null;
5725
5856
  gateway_attempt_id?: string | null;
5726
5857
  id?: string;
5727
5858
  last_error?: string | null;
5859
+ locked_at?: string | null;
5860
+ locked_by?: string | null;
5861
+ next_attempt_at?: string;
5728
5862
  number_of_pieces?: number;
5729
5863
  sent_at?: string | null;
5730
5864
  status?: string;
5865
+ superseded_by?: string | null;
5731
5866
  trade_item_id?: string;
5732
5867
  updated_at?: string;
5733
5868
  user_id?: string;
@@ -6464,6 +6599,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6464
6599
  Row: {
6465
6600
  buyer_organization_id: string | null;
6466
6601
  connection_id: string;
6602
+ controlled_at: string | null;
6467
6603
  created_at: string;
6468
6604
  data: import("./types").Json;
6469
6605
  floriday_id: string;
@@ -6475,6 +6611,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6475
6611
  Insert: {
6476
6612
  buyer_organization_id?: string | null;
6477
6613
  connection_id: string;
6614
+ controlled_at?: string | null;
6478
6615
  created_at?: string;
6479
6616
  data: import("./types").Json;
6480
6617
  floriday_id: string;
@@ -6486,6 +6623,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6486
6623
  Update: {
6487
6624
  buyer_organization_id?: string | null;
6488
6625
  connection_id?: string;
6626
+ controlled_at?: string | null;
6489
6627
  created_at?: string;
6490
6628
  data?: import("./types").Json;
6491
6629
  floriday_id?: string;
@@ -7387,6 +7525,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7387
7525
  };
7388
7526
  Relationships: [];
7389
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
+ };
7390
7576
  itk_contact_persons: {
7391
7577
  Row: {
7392
7578
  created_at: string;
@@ -7699,7 +7885,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7699
7885
  start_date: string;
7700
7886
  start_time: string | null;
7701
7887
  status: string;
7702
- tenant_id: string;
7703
7888
  updated_at: string;
7704
7889
  user_id: string;
7705
7890
  };
@@ -7717,7 +7902,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7717
7902
  start_date: string;
7718
7903
  start_time?: string | null;
7719
7904
  status?: string;
7720
- tenant_id?: string;
7721
7905
  updated_at?: string;
7722
7906
  user_id: string;
7723
7907
  };
@@ -7735,7 +7919,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7735
7919
  start_date?: string;
7736
7920
  start_time?: string | null;
7737
7921
  status?: string;
7738
- tenant_id?: string;
7739
7922
  updated_at?: string;
7740
7923
  user_id?: string;
7741
7924
  };
@@ -7743,13 +7926,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7743
7926
  foreignKeyName: "leave_requests_monteur_id_fkey";
7744
7927
  columns: ["monteur_id"];
7745
7928
  isOneToOne: false;
7746
- referencedRelation: "monteurs";
7929
+ referencedRelation: "profiles";
7747
7930
  referencedColumns: ["id"];
7748
7931
  }, {
7749
7932
  foreignKeyName: "leave_requests_user_id_fkey";
7750
7933
  columns: ["user_id"];
7751
7934
  isOneToOne: false;
7752
- referencedRelation: "monteurs";
7935
+ referencedRelation: "profiles";
7753
7936
  referencedColumns: ["id"];
7754
7937
  }];
7755
7938
  };
@@ -8476,6 +8659,69 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8476
8659
  };
8477
8660
  Relationships: [];
8478
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
+ };
8479
8725
  logistics_formulas: {
8480
8726
  Row: {
8481
8727
  created_at: string;
@@ -8554,6 +8800,45 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8554
8800
  };
8555
8801
  Relationships: [];
8556
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
+ };
8557
8842
  logistics_plan_runs: {
8558
8843
  Row: {
8559
8844
  created_at: string;
@@ -8629,6 +8914,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8629
8914
  referencedColumns: ["id"];
8630
8915
  }];
8631
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
+ };
8632
8935
  logistics_rebuffer_state: {
8633
8936
  Row: {
8634
8937
  created_at: string;
@@ -9087,6 +9390,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9087
9390
  };
9088
9391
  logistics_tasks: {
9089
9392
  Row: {
9393
+ attempt_log: import("./types").Json;
9394
+ attempts: number;
9090
9395
  buffer_ref: string | null;
9091
9396
  claimed_at: string | null;
9092
9397
  claimed_by: string | null;
@@ -9096,6 +9401,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9096
9401
  due_at: string | null;
9097
9402
  error: string | null;
9098
9403
  id: string;
9404
+ last_error: string | null;
9405
+ next_attempt_at: string | null;
9099
9406
  order_ref: string;
9100
9407
  owner_module: string;
9101
9408
  payload: import("./types").Json;
@@ -9116,6 +9423,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9116
9423
  user_id: string;
9117
9424
  };
9118
9425
  Insert: {
9426
+ attempt_log?: import("./types").Json;
9427
+ attempts?: number;
9119
9428
  buffer_ref?: string | null;
9120
9429
  claimed_at?: string | null;
9121
9430
  claimed_by?: string | null;
@@ -9125,6 +9434,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9125
9434
  due_at?: string | null;
9126
9435
  error?: string | null;
9127
9436
  id?: string;
9437
+ last_error?: string | null;
9438
+ next_attempt_at?: string | null;
9128
9439
  order_ref: string;
9129
9440
  owner_module: string;
9130
9441
  payload?: import("./types").Json;
@@ -9145,6 +9456,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9145
9456
  user_id?: string;
9146
9457
  };
9147
9458
  Update: {
9459
+ attempt_log?: import("./types").Json;
9460
+ attempts?: number;
9148
9461
  buffer_ref?: string | null;
9149
9462
  claimed_at?: string | null;
9150
9463
  claimed_by?: string | null;
@@ -9154,6 +9467,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9154
9467
  due_at?: string | null;
9155
9468
  error?: string | null;
9156
9469
  id?: string;
9470
+ last_error?: string | null;
9471
+ next_attempt_at?: string | null;
9157
9472
  order_ref?: string;
9158
9473
  owner_module?: string;
9159
9474
  payload?: import("./types").Json;
@@ -9327,14 +9642,17 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9327
9642
  };
9328
9643
  mailbox_messages: {
9329
9644
  Row: {
9645
+ attachments: import("./types").Json;
9330
9646
  body_html: string | null;
9331
9647
  body_text: string | null;
9648
+ cc_recipients: import("./types").Json;
9332
9649
  connection_id: string | null;
9333
9650
  created_at: string;
9334
9651
  error_message: string | null;
9335
9652
  external_id: string | null;
9336
9653
  from_email: string | null;
9337
9654
  from_name: string | null;
9655
+ has_attachments: boolean;
9338
9656
  id: string;
9339
9657
  message_id: string | null;
9340
9658
  profile_id: string | null;
@@ -9342,18 +9660,22 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9342
9660
  received_at: string | null;
9343
9661
  status: string;
9344
9662
  subject: string | null;
9663
+ to_recipients: import("./types").Json;
9345
9664
  uid: number | null;
9346
9665
  updated_at: string;
9347
9666
  };
9348
9667
  Insert: {
9668
+ attachments?: import("./types").Json;
9349
9669
  body_html?: string | null;
9350
9670
  body_text?: string | null;
9671
+ cc_recipients?: import("./types").Json;
9351
9672
  connection_id?: string | null;
9352
9673
  created_at?: string;
9353
9674
  error_message?: string | null;
9354
9675
  external_id?: string | null;
9355
9676
  from_email?: string | null;
9356
9677
  from_name?: string | null;
9678
+ has_attachments?: boolean;
9357
9679
  id?: string;
9358
9680
  message_id?: string | null;
9359
9681
  profile_id?: string | null;
@@ -9361,18 +9683,22 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9361
9683
  received_at?: string | null;
9362
9684
  status?: string;
9363
9685
  subject?: string | null;
9686
+ to_recipients?: import("./types").Json;
9364
9687
  uid?: number | null;
9365
9688
  updated_at?: string;
9366
9689
  };
9367
9690
  Update: {
9691
+ attachments?: import("./types").Json;
9368
9692
  body_html?: string | null;
9369
9693
  body_text?: string | null;
9694
+ cc_recipients?: import("./types").Json;
9370
9695
  connection_id?: string | null;
9371
9696
  created_at?: string;
9372
9697
  error_message?: string | null;
9373
9698
  external_id?: string | null;
9374
9699
  from_email?: string | null;
9375
9700
  from_name?: string | null;
9701
+ has_attachments?: boolean;
9376
9702
  id?: string;
9377
9703
  message_id?: string | null;
9378
9704
  profile_id?: string | null;
@@ -9380,6 +9706,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9380
9706
  received_at?: string | null;
9381
9707
  status?: string;
9382
9708
  subject?: string | null;
9709
+ to_recipients?: import("./types").Json;
9383
9710
  uid?: number | null;
9384
9711
  updated_at?: string;
9385
9712
  };
@@ -9760,140 +10087,200 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9760
10087
  };
9761
10088
  Relationships: [];
9762
10089
  };
9763
- module_permissions: {
10090
+ material_usage: {
9764
10091
  Row: {
9765
10092
  created_at: string;
9766
10093
  id: string;
9767
- module_id: string;
9768
- permission: string;
9769
- role: Database["public"]["Enums"]["app_role"];
10094
+ material_name: string;
10095
+ monteur_id: string | null;
10096
+ price_at_time: number;
10097
+ quantity_used: number;
9770
10098
  updated_at: string;
10099
+ van_inventory_id: string | null;
10100
+ work_order_id: string;
9771
10101
  };
9772
10102
  Insert: {
9773
10103
  created_at?: string;
9774
10104
  id?: string;
9775
- module_id: string;
9776
- permission: string;
9777
- role: Database["public"]["Enums"]["app_role"];
10105
+ material_name: string;
10106
+ monteur_id?: string | null;
10107
+ price_at_time?: number;
10108
+ quantity_used?: number;
9778
10109
  updated_at?: string;
10110
+ van_inventory_id?: string | null;
10111
+ work_order_id: string;
9779
10112
  };
9780
10113
  Update: {
9781
10114
  created_at?: string;
9782
10115
  id?: string;
9783
- module_id?: string;
9784
- permission?: string;
9785
- role?: Database["public"]["Enums"]["app_role"];
10116
+ material_name?: string;
10117
+ monteur_id?: string | null;
10118
+ price_at_time?: number;
10119
+ quantity_used?: number;
9786
10120
  updated_at?: string;
10121
+ van_inventory_id?: string | null;
10122
+ work_order_id?: string;
9787
10123
  };
9788
- Relationships: [];
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
+ }];
9789
10143
  };
9790
- module_runtime_config: {
10144
+ module_features: {
9791
10145
  Row: {
9792
- key: string;
9793
- updated_at: string;
9794
- value: string;
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;
9795
10153
  };
9796
10154
  Insert: {
9797
- key: string;
9798
- updated_at?: string;
9799
- value: string;
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;
9800
10162
  };
9801
10163
  Update: {
9802
- key?: string;
9803
- updated_at?: string;
9804
- value?: string;
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;
9805
10171
  };
9806
10172
  Relationships: [];
9807
10173
  };
9808
- modules: {
10174
+ module_permissions: {
9809
10175
  Row: {
9810
10176
  created_at: string;
9811
- description: string | null;
9812
10177
  id: string;
9813
- is_active: boolean;
9814
- last_seen_at: string | null;
9815
- module_key: string;
9816
- module_name: string;
10178
+ module_id: string;
10179
+ permission: string;
10180
+ role: Database["public"]["Enums"]["app_role"];
9817
10181
  updated_at: string;
9818
10182
  };
9819
10183
  Insert: {
9820
10184
  created_at?: string;
9821
- description?: string | null;
9822
10185
  id?: string;
9823
- is_active?: boolean;
9824
- last_seen_at?: string | null;
9825
- module_key: string;
9826
- module_name: string;
10186
+ module_id: string;
10187
+ permission: string;
10188
+ role: Database["public"]["Enums"]["app_role"];
9827
10189
  updated_at?: string;
9828
10190
  };
9829
10191
  Update: {
9830
10192
  created_at?: string;
9831
- description?: string | null;
9832
10193
  id?: string;
9833
- is_active?: boolean;
9834
- last_seen_at?: string | null;
9835
- module_key?: string;
9836
- module_name?: string;
10194
+ module_id?: string;
10195
+ permission?: string;
10196
+ role?: Database["public"]["Enums"]["app_role"];
9837
10197
  updated_at?: string;
9838
10198
  };
9839
10199
  Relationships: [];
9840
10200
  };
9841
- monteurs: {
10201
+ module_registry: {
9842
10202
  Row: {
9843
- avatar_url: string | null;
9844
- color: string | null;
9845
10203
  created_at: string;
9846
- email: string | null;
9847
- id: string;
10204
+ enforce: boolean;
9848
10205
  is_active: boolean;
9849
- leave_balance_hours: number;
10206
+ last_seen_at: string;
10207
+ module_id: string;
9850
10208
  name: string;
9851
- persnr: number | null;
9852
- phone: string | null;
9853
- role: string;
9854
- tenant_id: string;
10209
+ shell_id: string | null;
10210
+ sort_order: number | null;
10211
+ };
10212
+ Insert: {
10213
+ created_at?: string;
10214
+ enforce?: boolean;
10215
+ is_active?: boolean;
10216
+ last_seen_at?: string;
10217
+ module_id: string;
10218
+ name: string;
10219
+ shell_id?: string | null;
10220
+ sort_order?: number | null;
10221
+ };
10222
+ Update: {
10223
+ created_at?: string;
10224
+ enforce?: boolean;
10225
+ is_active?: boolean;
10226
+ last_seen_at?: string;
10227
+ module_id?: string;
10228
+ name?: string;
10229
+ shell_id?: string | null;
10230
+ sort_order?: number | null;
10231
+ };
10232
+ Relationships: [];
10233
+ };
10234
+ module_runtime_config: {
10235
+ Row: {
10236
+ key: string;
10237
+ updated_at: string;
10238
+ value: string;
10239
+ };
10240
+ Insert: {
10241
+ key: string;
10242
+ updated_at?: string;
10243
+ value: string;
10244
+ };
10245
+ Update: {
10246
+ key?: string;
10247
+ updated_at?: string;
10248
+ value?: string;
10249
+ };
10250
+ Relationships: [];
10251
+ };
10252
+ modules: {
10253
+ Row: {
10254
+ created_at: string;
10255
+ description: string | null;
10256
+ id: string;
10257
+ is_active: boolean;
10258
+ last_seen_at: string | null;
10259
+ module_key: string;
10260
+ module_name: string;
9855
10261
  updated_at: string;
9856
- user_id: string | null;
9857
10262
  };
9858
10263
  Insert: {
9859
- avatar_url?: string | null;
9860
- color?: string | null;
9861
10264
  created_at?: string;
9862
- email?: string | null;
10265
+ description?: string | null;
9863
10266
  id?: string;
9864
10267
  is_active?: boolean;
9865
- leave_balance_hours?: number;
9866
- name: string;
9867
- persnr?: number | null;
9868
- phone?: string | null;
9869
- role?: string;
9870
- tenant_id: string;
10268
+ last_seen_at?: string | null;
10269
+ module_key: string;
10270
+ module_name: string;
9871
10271
  updated_at?: string;
9872
- user_id?: string | null;
9873
10272
  };
9874
10273
  Update: {
9875
- avatar_url?: string | null;
9876
- color?: string | null;
9877
10274
  created_at?: string;
9878
- email?: string | null;
10275
+ description?: string | null;
9879
10276
  id?: string;
9880
10277
  is_active?: boolean;
9881
- leave_balance_hours?: number;
9882
- name?: string;
9883
- persnr?: number | null;
9884
- phone?: string | null;
9885
- role?: string;
9886
- tenant_id?: string;
10278
+ last_seen_at?: string | null;
10279
+ module_key?: string;
10280
+ module_name?: string;
9887
10281
  updated_at?: string;
9888
- user_id?: string | null;
9889
10282
  };
9890
- Relationships: [{
9891
- foreignKeyName: "monteurs_tenant_id_fkey";
9892
- columns: ["tenant_id"];
9893
- isOneToOne: false;
9894
- referencedRelation: "tenants";
9895
- referencedColumns: ["id"];
9896
- }];
10283
+ Relationships: [];
9897
10284
  };
9898
10285
  nmbrs_component_mapping: {
9899
10286
  Row: {
@@ -9965,13 +10352,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
9965
10352
  nmbrs_employee_number?: string;
9966
10353
  updated_at?: string;
9967
10354
  };
9968
- Relationships: [{
9969
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
9970
- columns: ["monteur_id"];
9971
- isOneToOne: true;
9972
- referencedRelation: "monteurs";
9973
- referencedColumns: ["id"];
9974
- }];
10355
+ Relationships: [];
9975
10356
  };
9976
10357
  nmbrs_export_lines: {
9977
10358
  Row: {
@@ -10020,12 +10401,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10020
10401
  wage_code?: string;
10021
10402
  };
10022
10403
  Relationships: [{
10023
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10024
- columns: ["monteur_id"];
10025
- isOneToOne: false;
10026
- referencedRelation: "monteurs";
10027
- referencedColumns: ["id"];
10028
- }, {
10029
10404
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10030
10405
  columns: ["run_id"];
10031
10406
  isOneToOne: false;
@@ -10503,6 +10878,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10503
10878
  };
10504
10879
  offer_settings: {
10505
10880
  Row: {
10881
+ brand_name: string | null;
10506
10882
  button_color: string;
10507
10883
  created_at: string;
10508
10884
  default_countries: string[];
@@ -10524,6 +10900,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10524
10900
  updated_at: string;
10525
10901
  };
10526
10902
  Insert: {
10903
+ brand_name?: string | null;
10527
10904
  button_color?: string;
10528
10905
  created_at?: string;
10529
10906
  default_countries?: string[];
@@ -10545,6 +10922,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10545
10922
  updated_at?: string;
10546
10923
  };
10547
10924
  Update: {
10925
+ brand_name?: string | null;
10548
10926
  button_color?: string;
10549
10927
  created_at?: string;
10550
10928
  default_countries?: string[];
@@ -10843,6 +11221,45 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
10843
11221
  };
10844
11222
  Relationships: [];
10845
11223
  };
11224
+ order_invoice_links: {
11225
+ Row: {
11226
+ attempts: number;
11227
+ created_at: string;
11228
+ error_message: string | null;
11229
+ id: string;
11230
+ invoice_number: string | null;
11231
+ next_attempt_at: string;
11232
+ order_id: string;
11233
+ processed_at: string | null;
11234
+ status: string;
11235
+ updated_at: string;
11236
+ };
11237
+ Insert: {
11238
+ attempts?: number;
11239
+ created_at?: string;
11240
+ error_message?: string | null;
11241
+ id?: string;
11242
+ invoice_number?: string | null;
11243
+ next_attempt_at?: string;
11244
+ order_id: string;
11245
+ processed_at?: string | null;
11246
+ status?: string;
11247
+ updated_at?: string;
11248
+ };
11249
+ Update: {
11250
+ attempts?: number;
11251
+ created_at?: string;
11252
+ error_message?: string | null;
11253
+ id?: string;
11254
+ invoice_number?: string | null;
11255
+ next_attempt_at?: string;
11256
+ order_id?: string;
11257
+ processed_at?: string | null;
11258
+ status?: string;
11259
+ updated_at?: string;
11260
+ };
11261
+ Relationships: [];
11262
+ };
10846
11263
  order_items: {
10847
11264
  Row: {
10848
11265
  crates_per_layer: number | null;
@@ -11025,6 +11442,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11025
11442
  delivery_date: string | null;
11026
11443
  floriday_sales_order_id: string | null;
11027
11444
  id: string;
11445
+ invoice_due_at: string | null;
11028
11446
  is_reservation: boolean;
11029
11447
  notes: string | null;
11030
11448
  order_date: string;
@@ -11046,6 +11464,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11046
11464
  delivery_date?: string | null;
11047
11465
  floriday_sales_order_id?: string | null;
11048
11466
  id?: string;
11467
+ invoice_due_at?: string | null;
11049
11468
  is_reservation?: boolean;
11050
11469
  notes?: string | null;
11051
11470
  order_date?: string;
@@ -11067,6 +11486,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
11067
11486
  delivery_date?: string | null;
11068
11487
  floriday_sales_order_id?: string | null;
11069
11488
  id?: string;
11489
+ invoice_due_at?: string | null;
11070
11490
  is_reservation?: boolean;
11071
11491
  notes?: string | null;
11072
11492
  order_date?: string;
@@ -12263,22 +12683,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12263
12683
  created_at: string;
12264
12684
  documentnaam: string;
12265
12685
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
12686
+ extern_job_id: string | null;
12266
12687
  foutmelding: string | null;
12267
12688
  gebruiker_id: string | null;
12268
12689
  gebruiker_naam: string;
12269
12690
  gestart_op: string | null;
12270
12691
  id: string;
12692
+ idempotentie_sleutel: string | null;
12271
12693
  is_herprint: boolean;
12272
12694
  kopieen: number;
12273
12695
  layout_id: string | null;
12274
12696
  opgepakt_op: string | null;
12275
12697
  paginas: number;
12276
12698
  payload: import("./types").Json;
12699
+ pdf_base64: string | null;
12700
+ pdf_url: string | null;
12277
12701
  pogingen: number;
12278
12702
  printer_id: string | null;
12279
12703
  render_html: string | null;
12280
12704
  status: Database["public"]["Enums"]["print_job_status"];
12281
12705
  updated_at: string;
12706
+ volgende_poging: string | null;
12282
12707
  voltooid_op: string | null;
12283
12708
  };
12284
12709
  Insert: {
@@ -12287,22 +12712,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12287
12712
  created_at?: string;
12288
12713
  documentnaam?: string;
12289
12714
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12715
+ extern_job_id?: string | null;
12290
12716
  foutmelding?: string | null;
12291
12717
  gebruiker_id?: string | null;
12292
12718
  gebruiker_naam?: string;
12293
12719
  gestart_op?: string | null;
12294
12720
  id?: string;
12721
+ idempotentie_sleutel?: string | null;
12295
12722
  is_herprint?: boolean;
12296
12723
  kopieen?: number;
12297
12724
  layout_id?: string | null;
12298
12725
  opgepakt_op?: string | null;
12299
12726
  paginas?: number;
12300
12727
  payload?: import("./types").Json;
12728
+ pdf_base64?: string | null;
12729
+ pdf_url?: string | null;
12301
12730
  pogingen?: number;
12302
12731
  printer_id?: string | null;
12303
12732
  render_html?: string | null;
12304
12733
  status?: Database["public"]["Enums"]["print_job_status"];
12305
12734
  updated_at?: string;
12735
+ volgende_poging?: string | null;
12306
12736
  voltooid_op?: string | null;
12307
12737
  };
12308
12738
  Update: {
@@ -12311,22 +12741,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12311
12741
  created_at?: string;
12312
12742
  documentnaam?: string;
12313
12743
  documenttype?: Database["public"]["Enums"]["doc_layout_type"];
12744
+ extern_job_id?: string | null;
12314
12745
  foutmelding?: string | null;
12315
12746
  gebruiker_id?: string | null;
12316
12747
  gebruiker_naam?: string;
12317
12748
  gestart_op?: string | null;
12318
12749
  id?: string;
12750
+ idempotentie_sleutel?: string | null;
12319
12751
  is_herprint?: boolean;
12320
12752
  kopieen?: number;
12321
12753
  layout_id?: string | null;
12322
12754
  opgepakt_op?: string | null;
12323
12755
  paginas?: number;
12324
12756
  payload?: import("./types").Json;
12757
+ pdf_base64?: string | null;
12758
+ pdf_url?: string | null;
12325
12759
  pogingen?: number;
12326
12760
  printer_id?: string | null;
12327
12761
  render_html?: string | null;
12328
12762
  status?: Database["public"]["Enums"]["print_job_status"];
12329
12763
  updated_at?: string;
12764
+ volgende_poging?: string | null;
12330
12765
  voltooid_op?: string | null;
12331
12766
  };
12332
12767
  Relationships: [{
@@ -12349,6 +12784,72 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12349
12784
  referencedColumns: ["id"];
12350
12785
  }];
12351
12786
  };
12787
+ print_queue_runners: {
12788
+ Row: {
12789
+ actief: boolean;
12790
+ basis_url: string;
12791
+ created_at: string;
12792
+ id: string;
12793
+ laatst_gezien: string;
12794
+ laatste_fout: string | null;
12795
+ laatste_request_id: number | null;
12796
+ mislukte_posts: number;
12797
+ tick_sleutel: string;
12798
+ updated_at: string;
12799
+ };
12800
+ Insert: {
12801
+ actief?: boolean;
12802
+ basis_url: string;
12803
+ created_at?: string;
12804
+ id?: string;
12805
+ laatst_gezien?: string;
12806
+ laatste_fout?: string | null;
12807
+ laatste_request_id?: number | null;
12808
+ mislukte_posts?: number;
12809
+ tick_sleutel?: string;
12810
+ updated_at?: string;
12811
+ };
12812
+ Update: {
12813
+ actief?: boolean;
12814
+ basis_url?: string;
12815
+ created_at?: string;
12816
+ id?: string;
12817
+ laatst_gezien?: string;
12818
+ laatste_fout?: string | null;
12819
+ laatste_request_id?: number | null;
12820
+ mislukte_posts?: number;
12821
+ tick_sleutel?: string;
12822
+ updated_at?: string;
12823
+ };
12824
+ Relationships: [];
12825
+ };
12826
+ print_queue_settings: {
12827
+ Row: {
12828
+ bewaar_bestanden_dagen: number;
12829
+ bewaar_opdrachten_dagen: number;
12830
+ created_at: string;
12831
+ dubbel_venster_minuten: number;
12832
+ id: string;
12833
+ updated_at: string;
12834
+ };
12835
+ Insert: {
12836
+ bewaar_bestanden_dagen?: number;
12837
+ bewaar_opdrachten_dagen?: number;
12838
+ created_at?: string;
12839
+ dubbel_venster_minuten?: number;
12840
+ id?: string;
12841
+ updated_at?: string;
12842
+ };
12843
+ Update: {
12844
+ bewaar_bestanden_dagen?: number;
12845
+ bewaar_opdrachten_dagen?: number;
12846
+ created_at?: string;
12847
+ dubbel_venster_minuten?: number;
12848
+ id?: string;
12849
+ updated_at?: string;
12850
+ };
12851
+ Relationships: [];
12852
+ };
12352
12853
  print_rules: {
12353
12854
  Row: {
12354
12855
  actief: boolean;
@@ -12509,6 +13010,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12509
13010
  agent_id: string | null;
12510
13011
  created_at: string;
12511
13012
  driver: string;
13013
+ extern_printer_id: string | null;
12512
13014
  id: string;
12513
13015
  ip_adres: string | null;
12514
13016
  laatst_gezien: string | null;
@@ -12530,6 +13032,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12530
13032
  agent_id?: string | null;
12531
13033
  created_at?: string;
12532
13034
  driver?: string;
13035
+ extern_printer_id?: string | null;
12533
13036
  id?: string;
12534
13037
  ip_adres?: string | null;
12535
13038
  laatst_gezien?: string | null;
@@ -12551,6 +13054,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
12551
13054
  agent_id?: string | null;
12552
13055
  created_at?: string;
12553
13056
  driver?: string;
13057
+ extern_printer_id?: string | null;
12554
13058
  id?: string;
12555
13059
  ip_adres?: string | null;
12556
13060
  laatst_gezien?: string | null;
@@ -13822,6 +14326,96 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
13822
14326
  referencedColumns: ["id"];
13823
14327
  }];
13824
14328
  };
14329
+ role_assignments: {
14330
+ Row: {
14331
+ created_at: string;
14332
+ id: string;
14333
+ role_id: string;
14334
+ user_id: string;
14335
+ };
14336
+ Insert: {
14337
+ created_at?: string;
14338
+ id?: string;
14339
+ role_id: string;
14340
+ user_id: string;
14341
+ };
14342
+ Update: {
14343
+ created_at?: string;
14344
+ id?: string;
14345
+ role_id?: string;
14346
+ user_id?: string;
14347
+ };
14348
+ Relationships: [{
14349
+ foreignKeyName: "role_assignments_role_id_fkey";
14350
+ columns: ["role_id"];
14351
+ isOneToOne: false;
14352
+ referencedRelation: "roles";
14353
+ referencedColumns: ["id"];
14354
+ }];
14355
+ };
14356
+ role_permissions: {
14357
+ Row: {
14358
+ can_edit: boolean;
14359
+ can_view: boolean;
14360
+ feature_id: string;
14361
+ id: string;
14362
+ module_id: string;
14363
+ role_id: string;
14364
+ updated_at: string;
14365
+ };
14366
+ Insert: {
14367
+ can_edit?: boolean;
14368
+ can_view?: boolean;
14369
+ feature_id?: string;
14370
+ id?: string;
14371
+ module_id: string;
14372
+ role_id: string;
14373
+ updated_at?: string;
14374
+ };
14375
+ Update: {
14376
+ can_edit?: boolean;
14377
+ can_view?: boolean;
14378
+ feature_id?: string;
14379
+ id?: string;
14380
+ module_id?: string;
14381
+ role_id?: string;
14382
+ updated_at?: string;
14383
+ };
14384
+ Relationships: [{
14385
+ foreignKeyName: "role_permissions_role_id_fkey";
14386
+ columns: ["role_id"];
14387
+ isOneToOne: false;
14388
+ referencedRelation: "roles";
14389
+ referencedColumns: ["id"];
14390
+ }];
14391
+ };
14392
+ roles: {
14393
+ Row: {
14394
+ created_at: string;
14395
+ id: string;
14396
+ is_protected: boolean;
14397
+ key: string;
14398
+ name: string;
14399
+ updated_at: string;
14400
+ };
14401
+ Insert: {
14402
+ created_at?: string;
14403
+ id?: string;
14404
+ is_protected?: boolean;
14405
+ key: string;
14406
+ name: string;
14407
+ updated_at?: string;
14408
+ };
14409
+ Update: {
14410
+ created_at?: string;
14411
+ id?: string;
14412
+ is_protected?: boolean;
14413
+ key?: string;
14414
+ name?: string;
14415
+ updated_at?: string;
14416
+ };
14417
+ Relationships: [];
14418
+ };
13825
14419
  rooms: {
13826
14420
  Row: {
13827
14421
  capacity: number;
@@ -14491,99 +15085,252 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14491
15085
  };
14492
15086
  Relationships: [];
14493
15087
  };
14494
- time_entries: {
15088
+ time_compensation_entries: {
14495
15089
  Row: {
14496
15090
  created_at: string;
14497
15091
  employee_id: string;
14498
15092
  entry_date: string;
14499
- hours: number;
14500
15093
  id: string;
15094
+ km: number;
15095
+ meal_allowance: number;
14501
15096
  notes: string | null;
14502
- overtime: number;
14503
- undertime: number;
15097
+ standby_evening: number;
15098
+ standby_weekend: number;
15099
+ tvt_change: number;
14504
15100
  updated_at: string;
14505
15101
  };
14506
15102
  Insert: {
14507
15103
  created_at?: string;
14508
15104
  employee_id: string;
14509
15105
  entry_date: string;
14510
- hours?: number;
14511
15106
  id?: string;
15107
+ km?: number;
15108
+ meal_allowance?: number;
14512
15109
  notes?: string | null;
14513
- overtime?: number;
14514
- undertime?: number;
15110
+ standby_evening?: number;
15111
+ standby_weekend?: number;
15112
+ tvt_change?: number;
14515
15113
  updated_at?: string;
14516
15114
  };
14517
15115
  Update: {
14518
15116
  created_at?: string;
14519
15117
  employee_id?: string;
14520
15118
  entry_date?: string;
14521
- hours?: number;
14522
15119
  id?: string;
15120
+ km?: number;
15121
+ meal_allowance?: number;
14523
15122
  notes?: string | null;
14524
- overtime?: number;
14525
- undertime?: number;
15123
+ standby_evening?: number;
15124
+ standby_weekend?: number;
15125
+ tvt_change?: number;
14526
15126
  updated_at?: string;
14527
15127
  };
14528
15128
  Relationships: [{
14529
- foreignKeyName: "time_entries_employee_id_fkey";
15129
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
14530
15130
  columns: ["employee_id"];
14531
15131
  isOneToOne: false;
14532
- referencedRelation: "monteurs";
15132
+ referencedRelation: "profiles";
15133
+ referencedColumns: ["id"];
15134
+ }];
15135
+ };
15136
+ time_entries: {
15137
+ Row: {
15138
+ created_at: string;
15139
+ employee_id: string;
15140
+ entry_date: string;
15141
+ hours: number;
15142
+ id: string;
15143
+ notes: string | null;
15144
+ overtime: number;
15145
+ undertime: number;
15146
+ updated_at: string;
15147
+ };
15148
+ Insert: {
15149
+ created_at?: string;
15150
+ employee_id: string;
15151
+ entry_date: string;
15152
+ hours?: number;
15153
+ id?: string;
15154
+ notes?: string | null;
15155
+ overtime?: number;
15156
+ undertime?: number;
15157
+ updated_at?: string;
15158
+ };
15159
+ Update: {
15160
+ created_at?: string;
15161
+ employee_id?: string;
15162
+ entry_date?: string;
15163
+ hours?: number;
15164
+ id?: string;
15165
+ notes?: string | null;
15166
+ overtime?: number;
15167
+ undertime?: number;
15168
+ updated_at?: string;
15169
+ };
15170
+ Relationships: [];
15171
+ };
15172
+ time_log_week_approvals: {
15173
+ Row: {
15174
+ approved_at: string | null;
15175
+ approved_by: string | null;
15176
+ created_at: string;
15177
+ employee_id: string;
15178
+ id: string;
15179
+ locked: boolean;
15180
+ notes: string | null;
15181
+ status: string;
15182
+ submitted_at: string | null;
15183
+ updated_at: string;
15184
+ week_start: string;
15185
+ };
15186
+ Insert: {
15187
+ approved_at?: string | null;
15188
+ approved_by?: string | null;
15189
+ created_at?: string;
15190
+ employee_id: string;
15191
+ id?: string;
15192
+ locked?: boolean;
15193
+ notes?: string | null;
15194
+ status?: string;
15195
+ submitted_at?: string | null;
15196
+ updated_at?: string;
15197
+ week_start: string;
15198
+ };
15199
+ Update: {
15200
+ approved_at?: string | null;
15201
+ approved_by?: string | null;
15202
+ created_at?: string;
15203
+ employee_id?: string;
15204
+ id?: string;
15205
+ locked?: boolean;
15206
+ notes?: string | null;
15207
+ status?: string;
15208
+ submitted_at?: string | null;
15209
+ updated_at?: string;
15210
+ week_start?: string;
15211
+ };
15212
+ Relationships: [{
15213
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
15214
+ columns: ["employee_id"];
15215
+ isOneToOne: false;
15216
+ referencedRelation: "profiles";
14533
15217
  referencedColumns: ["id"];
14534
15218
  }];
14535
15219
  };
14536
15220
  time_logs: {
14537
15221
  Row: {
15222
+ auto_stop_reason: string | null;
15223
+ auto_stopped: boolean;
14538
15224
  created_at: string;
15225
+ current_latitude: number | null;
15226
+ current_longitude: number | null;
15227
+ current_position_updated_at: string | null;
14539
15228
  employee_id: string;
15229
+ end_latitude: number | null;
15230
+ end_longitude: number | null;
14540
15231
  end_time: string | null;
15232
+ eta_distance_km: number | null;
15233
+ eta_minutes: number | null;
15234
+ eta_updated_at: string | null;
15235
+ hour_category: string | null;
14541
15236
  id: string;
15237
+ last_reminder_at: string | null;
14542
15238
  notes: string | null;
14543
15239
  overtime_hours: number;
14544
15240
  overtime_type: string | null;
14545
15241
  regular_hours: number;
15242
+ reminder_count: number;
15243
+ requires_review: boolean;
15244
+ start_latitude: number | null;
15245
+ start_longitude: number | null;
14546
15246
  start_time: string;
14547
15247
  travel_cost: number | null;
14548
15248
  travel_distance_km: number | null;
15249
+ travel_duration_min: number | null;
15250
+ travel_time_minutes: number | null;
14549
15251
  type: string;
14550
15252
  updated_at: string;
15253
+ work_order_id: string | null;
14551
15254
  };
14552
15255
  Insert: {
15256
+ auto_stop_reason?: string | null;
15257
+ auto_stopped?: boolean;
14553
15258
  created_at?: string;
15259
+ current_latitude?: number | null;
15260
+ current_longitude?: number | null;
15261
+ current_position_updated_at?: string | null;
14554
15262
  employee_id: string;
15263
+ end_latitude?: number | null;
15264
+ end_longitude?: number | null;
14555
15265
  end_time?: string | null;
15266
+ eta_distance_km?: number | null;
15267
+ eta_minutes?: number | null;
15268
+ eta_updated_at?: string | null;
15269
+ hour_category?: string | null;
14556
15270
  id?: string;
15271
+ last_reminder_at?: string | null;
14557
15272
  notes?: string | null;
14558
15273
  overtime_hours?: number;
14559
15274
  overtime_type?: string | null;
14560
15275
  regular_hours?: number;
15276
+ reminder_count?: number;
15277
+ requires_review?: boolean;
15278
+ start_latitude?: number | null;
15279
+ start_longitude?: number | null;
14561
15280
  start_time?: string;
14562
15281
  travel_cost?: number | null;
14563
15282
  travel_distance_km?: number | null;
15283
+ travel_duration_min?: number | null;
15284
+ travel_time_minutes?: number | null;
14564
15285
  type: string;
14565
15286
  updated_at?: string;
15287
+ work_order_id?: string | null;
14566
15288
  };
14567
15289
  Update: {
15290
+ auto_stop_reason?: string | null;
15291
+ auto_stopped?: boolean;
14568
15292
  created_at?: string;
15293
+ current_latitude?: number | null;
15294
+ current_longitude?: number | null;
15295
+ current_position_updated_at?: string | null;
14569
15296
  employee_id?: string;
15297
+ end_latitude?: number | null;
15298
+ end_longitude?: number | null;
14570
15299
  end_time?: string | null;
15300
+ eta_distance_km?: number | null;
15301
+ eta_minutes?: number | null;
15302
+ eta_updated_at?: string | null;
15303
+ hour_category?: string | null;
14571
15304
  id?: string;
15305
+ last_reminder_at?: string | null;
14572
15306
  notes?: string | null;
14573
15307
  overtime_hours?: number;
14574
15308
  overtime_type?: string | null;
14575
15309
  regular_hours?: number;
15310
+ reminder_count?: number;
15311
+ requires_review?: boolean;
15312
+ start_latitude?: number | null;
15313
+ start_longitude?: number | null;
14576
15314
  start_time?: string;
14577
15315
  travel_cost?: number | null;
14578
15316
  travel_distance_km?: number | null;
15317
+ travel_duration_min?: number | null;
15318
+ travel_time_minutes?: number | null;
14579
15319
  type?: string;
14580
15320
  updated_at?: string;
15321
+ work_order_id?: string | null;
14581
15322
  };
14582
15323
  Relationships: [{
14583
15324
  foreignKeyName: "time_logs_employee_id_fkey";
14584
15325
  columns: ["employee_id"];
14585
15326
  isOneToOne: false;
14586
- referencedRelation: "monteurs";
15327
+ referencedRelation: "profiles";
15328
+ referencedColumns: ["id"];
15329
+ }, {
15330
+ foreignKeyName: "time_logs_work_order_id_fkey";
15331
+ columns: ["work_order_id"];
15332
+ isOneToOne: false;
15333
+ referencedRelation: "work_orders";
14587
15334
  referencedColumns: ["id"];
14588
15335
  }];
14589
15336
  };
@@ -14622,7 +15369,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14622
15369
  foreignKeyName: "time_off_entries_employee_id_fkey";
14623
15370
  columns: ["employee_id"];
14624
15371
  isOneToOne: false;
14625
- referencedRelation: "monteurs";
15372
+ referencedRelation: "profiles";
14626
15373
  referencedColumns: ["id"];
14627
15374
  }];
14628
15375
  };
@@ -14932,6 +15679,39 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
14932
15679
  };
14933
15680
  Relationships: [];
14934
15681
  };
15682
+ twinfield_cron_locks: {
15683
+ Row: {
15684
+ created_at: string;
15685
+ heartbeat_at: string;
15686
+ job_name: string;
15687
+ last_error: string | null;
15688
+ last_finished_at: string | null;
15689
+ locked_at: string;
15690
+ run_id: string;
15691
+ updated_at: string;
15692
+ };
15693
+ Insert: {
15694
+ created_at?: string;
15695
+ heartbeat_at?: string;
15696
+ job_name: string;
15697
+ last_error?: string | null;
15698
+ last_finished_at?: string | null;
15699
+ locked_at?: string;
15700
+ run_id?: string;
15701
+ updated_at?: string;
15702
+ };
15703
+ Update: {
15704
+ created_at?: string;
15705
+ heartbeat_at?: string;
15706
+ job_name?: string;
15707
+ last_error?: string | null;
15708
+ last_finished_at?: string | null;
15709
+ locked_at?: string;
15710
+ run_id?: string;
15711
+ updated_at?: string;
15712
+ };
15713
+ Relationships: [];
15714
+ };
14935
15715
  twinfield_customers: {
14936
15716
  Row: {
14937
15717
  address: string | null;
@@ -15186,6 +15966,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15186
15966
  };
15187
15967
  twinfield_invoice_settings: {
15188
15968
  Row: {
15969
+ auto_invoice_enabled: boolean;
15970
+ auto_invoice_trigger_statuses: string[];
15189
15971
  created_at: string;
15190
15972
  debtor_gl_account: string;
15191
15973
  default_credit_invoice_type: string | null;
@@ -15206,6 +15988,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15206
15988
  vat_code_export: string | null;
15207
15989
  };
15208
15990
  Insert: {
15991
+ auto_invoice_enabled?: boolean;
15992
+ auto_invoice_trigger_statuses?: string[];
15209
15993
  created_at?: string;
15210
15994
  debtor_gl_account?: string;
15211
15995
  default_credit_invoice_type?: string | null;
@@ -15226,6 +16010,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15226
16010
  vat_code_export?: string | null;
15227
16011
  };
15228
16012
  Update: {
16013
+ auto_invoice_enabled?: boolean;
16014
+ auto_invoice_trigger_statuses?: string[];
15229
16015
  created_at?: string;
15230
16016
  debtor_gl_account?: string;
15231
16017
  default_credit_invoice_type?: string | null;
@@ -15526,6 +16312,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15526
16312
  twinfield_push_queue: {
15527
16313
  Row: {
15528
16314
  action: string;
16315
+ attempt_started_at: string | null;
15529
16316
  attempts: number;
15530
16317
  connection_id: string | null;
15531
16318
  created_at: string;
@@ -15542,6 +16329,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15542
16329
  };
15543
16330
  Insert: {
15544
16331
  action?: string;
16332
+ attempt_started_at?: string | null;
15545
16333
  attempts?: number;
15546
16334
  connection_id?: string | null;
15547
16335
  created_at?: string;
@@ -15558,6 +16346,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15558
16346
  };
15559
16347
  Update: {
15560
16348
  action?: string;
16349
+ attempt_started_at?: string | null;
15561
16350
  attempts?: number;
15562
16351
  connection_id?: string | null;
15563
16352
  created_at?: string;
@@ -15755,13 +16544,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15755
16544
  workday_end?: string | null;
15756
16545
  workday_start?: string | null;
15757
16546
  };
15758
- Relationships: [{
15759
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
15760
- columns: ["monteur_id"];
15761
- isOneToOne: true;
15762
- referencedRelation: "monteurs";
15763
- referencedColumns: ["id"];
15764
- }];
16547
+ Relationships: [];
15765
16548
  };
15766
16549
  uren_entries: {
15767
16550
  Row: {
@@ -15807,12 +16590,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
15807
16590
  werkbon_id?: string | null;
15808
16591
  };
15809
16592
  Relationships: [{
15810
- foreignKeyName: "uren_entries_monteur_id_fkey";
15811
- columns: ["monteur_id"];
15812
- isOneToOne: false;
15813
- referencedRelation: "monteurs";
15814
- referencedColumns: ["id"];
15815
- }, {
15816
16593
  foreignKeyName: "uren_entries_werkbon_id_fkey";
15817
16594
  columns: ["werkbon_id"];
15818
16595
  isOneToOne: false;
@@ -16280,13 +17057,37 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16280
17057
  submitted_at?: string | null;
16281
17058
  updated_at?: string;
16282
17059
  };
16283
- Relationships: [{
16284
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16285
- columns: ["monteur_id"];
16286
- isOneToOne: false;
16287
- referencedRelation: "monteurs";
16288
- referencedColumns: ["id"];
16289
- }];
17060
+ Relationships: [];
17061
+ };
17062
+ user_module_permissions: {
17063
+ Row: {
17064
+ created_at: string;
17065
+ feature_id: string;
17066
+ id: string;
17067
+ module_id: string;
17068
+ permission: string;
17069
+ updated_at: string;
17070
+ user_id: string;
17071
+ };
17072
+ Insert: {
17073
+ created_at?: string;
17074
+ feature_id?: string;
17075
+ id?: string;
17076
+ module_id: string;
17077
+ permission: string;
17078
+ updated_at?: string;
17079
+ user_id: string;
17080
+ };
17081
+ Update: {
17082
+ created_at?: string;
17083
+ feature_id?: string;
17084
+ id?: string;
17085
+ module_id?: string;
17086
+ permission?: string;
17087
+ updated_at?: string;
17088
+ user_id?: string;
17089
+ };
17090
+ Relationships: [];
16290
17091
  };
16291
17092
  user_roles: {
16292
17093
  Row: {
@@ -16315,6 +17116,51 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
16315
17116
  referencedColumns: ["id"];
16316
17117
  }];
16317
17118
  };
17119
+ van_inventories: {
17120
+ Row: {
17121
+ barcode: string | null;
17122
+ created_at: string;
17123
+ id: string;
17124
+ monteur_id: string | null;
17125
+ price_per_unit: number;
17126
+ product_name: string;
17127
+ quantity_current: number;
17128
+ quantity_min: number;
17129
+ unit: string;
17130
+ updated_at: string;
17131
+ };
17132
+ Insert: {
17133
+ barcode?: string | null;
17134
+ created_at?: string;
17135
+ id?: string;
17136
+ monteur_id?: string | null;
17137
+ price_per_unit?: number;
17138
+ product_name: string;
17139
+ quantity_current?: number;
17140
+ quantity_min?: number;
17141
+ unit?: string;
17142
+ updated_at?: string;
17143
+ };
17144
+ Update: {
17145
+ barcode?: string | null;
17146
+ created_at?: string;
17147
+ id?: string;
17148
+ monteur_id?: string | null;
17149
+ price_per_unit?: number;
17150
+ product_name?: string;
17151
+ quantity_current?: number;
17152
+ quantity_min?: number;
17153
+ unit?: string;
17154
+ updated_at?: string;
17155
+ };
17156
+ Relationships: [{
17157
+ foreignKeyName: "van_inventories_monteur_id_fkey";
17158
+ columns: ["monteur_id"];
17159
+ isOneToOne: false;
17160
+ referencedRelation: "profiles";
17161
+ referencedColumns: ["id"];
17162
+ }];
17163
+ };
16318
17164
  voorraad_custom_fields: {
16319
17165
  Row: {
16320
17166
  created_at: string;
@@ -17265,7 +18111,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17265
18111
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17266
18112
  columns: ["monteur_id"];
17267
18113
  isOneToOne: false;
17268
- referencedRelation: "monteurs";
18114
+ referencedRelation: "profiles";
17269
18115
  referencedColumns: ["id"];
17270
18116
  }, {
17271
18117
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17275,6 +18121,60 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17275
18121
  referencedColumns: ["id"];
17276
18122
  }];
17277
18123
  };
18124
+ work_order_photos: {
18125
+ Row: {
18126
+ ai_caption: string | null;
18127
+ ai_categorized_at: string | null;
18128
+ ai_labels: import("./types").Json | null;
18129
+ caption: string | null;
18130
+ created_at: string;
18131
+ id: string;
18132
+ monteur_id: string | null;
18133
+ photo_type: string;
18134
+ storage_path: string;
18135
+ updated_at: string;
18136
+ work_order_id: string;
18137
+ };
18138
+ Insert: {
18139
+ ai_caption?: string | null;
18140
+ ai_categorized_at?: string | null;
18141
+ ai_labels?: import("./types").Json | null;
18142
+ caption?: string | null;
18143
+ created_at?: string;
18144
+ id?: string;
18145
+ monteur_id?: string | null;
18146
+ photo_type?: string;
18147
+ storage_path: string;
18148
+ updated_at?: string;
18149
+ work_order_id: string;
18150
+ };
18151
+ Update: {
18152
+ ai_caption?: string | null;
18153
+ ai_categorized_at?: string | null;
18154
+ ai_labels?: import("./types").Json | null;
18155
+ caption?: string | null;
18156
+ created_at?: string;
18157
+ id?: string;
18158
+ monteur_id?: string | null;
18159
+ photo_type?: string;
18160
+ storage_path?: string;
18161
+ updated_at?: string;
18162
+ work_order_id?: string;
18163
+ };
18164
+ Relationships: [{
18165
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
18166
+ columns: ["monteur_id"];
18167
+ isOneToOne: false;
18168
+ referencedRelation: "profiles";
18169
+ referencedColumns: ["id"];
18170
+ }, {
18171
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
18172
+ columns: ["work_order_id"];
18173
+ isOneToOne: false;
18174
+ referencedRelation: "work_orders";
18175
+ referencedColumns: ["id"];
18176
+ }];
18177
+ };
17278
18178
  work_orders: {
17279
18179
  Row: {
17280
18180
  assigned_to: string | null;
@@ -17306,7 +18206,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17306
18206
  scheduled_end_time: string | null;
17307
18207
  scheduled_start_time: string | null;
17308
18208
  status: string;
17309
- tenant_id: string;
17310
18209
  total_hours_worked: number | null;
17311
18210
  total_price: number | null;
17312
18211
  travel_time_minutes: number | null;
@@ -17344,7 +18243,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17344
18243
  scheduled_end_time?: string | null;
17345
18244
  scheduled_start_time?: string | null;
17346
18245
  status?: string;
17347
- tenant_id: string;
17348
18246
  total_hours_worked?: number | null;
17349
18247
  total_price?: number | null;
17350
18248
  travel_time_minutes?: number | null;
@@ -17382,7 +18280,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17382
18280
  scheduled_end_time?: string | null;
17383
18281
  scheduled_start_time?: string | null;
17384
18282
  status?: string;
17385
- tenant_id?: string;
17386
18283
  total_hours_worked?: number | null;
17387
18284
  total_price?: number | null;
17388
18285
  travel_time_minutes?: number | null;
@@ -17396,12 +18293,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
17396
18293
  isOneToOne: false;
17397
18294
  referencedRelation: "work_orders";
17398
18295
  referencedColumns: ["id"];
17399
- }, {
17400
- foreignKeyName: "work_orders_tenant_id_fkey";
17401
- columns: ["tenant_id"];
17402
- isOneToOne: false;
17403
- referencedRelation: "tenants";
17404
- referencedColumns: ["id"];
17405
18296
  }];
17406
18297
  };
17407
18298
  };
@@ -18086,6 +18977,19 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18086
18977
  };
18087
18978
  Returns: undefined;
18088
18979
  };
18980
+ approve_mailbox_order_proposal: {
18981
+ Args: {
18982
+ p_custom_fields: import("./types").Json;
18983
+ p_customer_id: string;
18984
+ p_delivery_date: string;
18985
+ p_field_values?: import("./types").Json;
18986
+ p_lines: import("./types").Json;
18987
+ p_notes: string;
18988
+ p_proposal_id: string;
18989
+ p_reviewed_by: string;
18990
+ };
18991
+ Returns: import("./types").Json;
18992
+ };
18089
18993
  assign_cart_numbers: {
18090
18994
  Args: {
18091
18995
  p_carts: import("./types").Json;
@@ -18121,6 +19025,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18121
19025
  processed_items: number;
18122
19026
  }[];
18123
19027
  };
19028
+ backfill_order_auto_invoice_queue: {
19029
+ Args: never;
19030
+ Returns: number;
19031
+ };
18124
19032
  calculate_layer_stock: {
18125
19033
  Args: {
18126
19034
  p_product_id: string;
@@ -18133,6 +19041,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18133
19041
  };
18134
19042
  Returns: number;
18135
19043
  };
19044
+ can_manage_hours: {
19045
+ Args: never;
19046
+ Returns: boolean;
19047
+ };
18136
19048
  check_offer_product_available_stock: {
18137
19049
  Args: {
18138
19050
  p_campaign_product_id: string;
@@ -18155,9 +19067,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18155
19067
  };
18156
19068
  Returns: import("./types").Json;
18157
19069
  };
18158
- claim_print_jobs: {
19070
+ claim_cloud_print_jobs: {
18159
19071
  Args: {
18160
- _agent_id: string;
18161
19072
  _max?: number;
18162
19073
  };
18163
19074
  Returns: {
@@ -18166,22 +19077,27 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18166
19077
  created_at: string;
18167
19078
  documentnaam: string;
18168
19079
  documenttype: Database["public"]["Enums"]["doc_layout_type"];
19080
+ extern_job_id: string | null;
18169
19081
  foutmelding: string | null;
18170
19082
  gebruiker_id: string | null;
18171
19083
  gebruiker_naam: string;
18172
19084
  gestart_op: string | null;
18173
19085
  id: string;
19086
+ idempotentie_sleutel: string | null;
18174
19087
  is_herprint: boolean;
18175
19088
  kopieen: number;
18176
19089
  layout_id: string | null;
18177
19090
  opgepakt_op: string | null;
18178
19091
  paginas: number;
18179
19092
  payload: import("./types").Json;
19093
+ pdf_base64: string | null;
19094
+ pdf_url: string | null;
18180
19095
  pogingen: number;
18181
19096
  printer_id: string | null;
18182
19097
  render_html: string | null;
18183
19098
  status: Database["public"]["Enums"]["print_job_status"];
18184
19099
  updated_at: string;
19100
+ volgende_poging: string | null;
18185
19101
  voltooid_op: string | null;
18186
19102
  }[];
18187
19103
  SetofOptions: {
@@ -18191,22 +19107,143 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18191
19107
  isSetofReturn: true;
18192
19108
  };
18193
19109
  };
18194
- claim_twinfield_push_batch: {
19110
+ claim_floriday_stock_queue: {
18195
19111
  Args: {
18196
- _customer_id?: string;
18197
- _limit?: number;
19112
+ p_limit?: number;
19113
+ p_worker?: string;
18198
19114
  };
18199
19115
  Returns: {
18200
- action: string;
18201
19116
  attempts: number;
18202
- connection_id: string | null;
19117
+ connection_id: string;
18203
19118
  created_at: string;
18204
- customer_id: string | null;
18205
- external_id: string | null;
19119
+ desired_available: boolean | null;
19120
+ gateway_attempt_id: string | null;
18206
19121
  id: string;
18207
- idempotency_key: string;
18208
19122
  last_error: string | null;
18209
- next_attempt_at: string;
19123
+ locked_at: string | null;
19124
+ locked_by: string | null;
19125
+ next_attempt_at: string;
19126
+ number_of_pieces: number;
19127
+ sent_at: string | null;
19128
+ status: string;
19129
+ superseded_by: string | null;
19130
+ trade_item_id: string;
19131
+ updated_at: string;
19132
+ user_id: string;
19133
+ }[];
19134
+ SetofOptions: {
19135
+ from: "*";
19136
+ to: "floriday_continuous_stock_queue";
19137
+ isOneToOne: false;
19138
+ isSetofReturn: true;
19139
+ };
19140
+ };
19141
+ claim_logistics_tasks: {
19142
+ Args: {
19143
+ _limit?: number;
19144
+ _owner_module: string;
19145
+ _stale_minutes?: number;
19146
+ _task_type: string;
19147
+ _worker: string;
19148
+ };
19149
+ Returns: {
19150
+ attempt_log: import("./types").Json;
19151
+ attempts: number;
19152
+ buffer_ref: string | null;
19153
+ claimed_at: string | null;
19154
+ claimed_by: string | null;
19155
+ completed_at: string | null;
19156
+ created_at: string;
19157
+ depends_on: string[];
19158
+ due_at: string | null;
19159
+ error: string | null;
19160
+ id: string;
19161
+ last_error: string | null;
19162
+ next_attempt_at: string | null;
19163
+ order_ref: string;
19164
+ owner_module: string;
19165
+ payload: import("./types").Json;
19166
+ plan_run_id: string | null;
19167
+ planned_end: string | null;
19168
+ planned_start: string | null;
19169
+ priority: number;
19170
+ result: import("./types").Json | null;
19171
+ rule_config_id: string | null;
19172
+ rule_version: number | null;
19173
+ sequence: number;
19174
+ shadow: boolean;
19175
+ started_at: string | null;
19176
+ status: string;
19177
+ strategy_id: string | null;
19178
+ task_type: string;
19179
+ updated_at: string;
19180
+ user_id: string;
19181
+ }[];
19182
+ SetofOptions: {
19183
+ from: "*";
19184
+ to: "logistics_tasks";
19185
+ isOneToOne: false;
19186
+ isSetofReturn: true;
19187
+ };
19188
+ };
19189
+ claim_print_jobs: {
19190
+ Args: {
19191
+ _agent_id: string;
19192
+ _max?: number;
19193
+ };
19194
+ Returns: {
19195
+ agent_id: string | null;
19196
+ bron_job_id: string | null;
19197
+ created_at: string;
19198
+ documentnaam: string;
19199
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
19200
+ extern_job_id: string | null;
19201
+ foutmelding: string | null;
19202
+ gebruiker_id: string | null;
19203
+ gebruiker_naam: string;
19204
+ gestart_op: string | null;
19205
+ id: string;
19206
+ idempotentie_sleutel: string | null;
19207
+ is_herprint: boolean;
19208
+ kopieen: number;
19209
+ layout_id: string | null;
19210
+ opgepakt_op: string | null;
19211
+ paginas: number;
19212
+ payload: import("./types").Json;
19213
+ pdf_base64: string | null;
19214
+ pdf_url: string | null;
19215
+ pogingen: number;
19216
+ printer_id: string | null;
19217
+ render_html: string | null;
19218
+ status: Database["public"]["Enums"]["print_job_status"];
19219
+ updated_at: string;
19220
+ volgende_poging: string | null;
19221
+ voltooid_op: string | null;
19222
+ }[];
19223
+ SetofOptions: {
19224
+ from: "*";
19225
+ to: "print_jobs";
19226
+ isOneToOne: false;
19227
+ isSetofReturn: true;
19228
+ };
19229
+ };
19230
+ claim_twinfield_push_batch: {
19231
+ Args: {
19232
+ _customer_id?: string;
19233
+ _limit?: number;
19234
+ };
19235
+ Returns: {
19236
+ action: string;
19237
+ attempt_started_at: string | null;
19238
+ attempts: number;
19239
+ connection_id: string | null;
19240
+ created_at: string;
19241
+ customer_id: string | null;
19242
+ external_id: string | null;
19243
+ id: string;
19244
+ idempotency_key: string;
19245
+ last_error: string | null;
19246
+ next_attempt_at: string;
18210
19247
  office_code: string | null;
18211
19248
  payload: import("./types").Json;
18212
19249
  status: string;
@@ -18219,10 +19256,28 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18219
19256
  isSetofReturn: true;
18220
19257
  };
18221
19258
  };
19259
+ cleanup_floriday_stock_queue: {
19260
+ Args: never;
19261
+ Returns: undefined;
19262
+ };
18222
19263
  cleanup_old_bookings: {
18223
19264
  Args: never;
18224
19265
  Returns: undefined;
18225
19266
  };
19267
+ cleanup_voorraad_module_history: {
19268
+ Args: never;
19269
+ Returns: undefined;
19270
+ };
19271
+ complete_floriday_stock_queue: {
19272
+ Args: {
19273
+ p_attempt_id?: string;
19274
+ p_error?: string;
19275
+ p_id: string;
19276
+ p_ok: boolean;
19277
+ p_permanent?: boolean;
19278
+ };
19279
+ Returns: undefined;
19280
+ };
18226
19281
  consume_bom_for_production: {
18227
19282
  Args: {
18228
19283
  p_connection_id: string;
@@ -18267,6 +19322,30 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18267
19322
  agent_naam: string;
18268
19323
  }[];
18269
19324
  };
19325
+ consume_van_inventory: {
19326
+ Args: {
19327
+ p_inventory_id: string;
19328
+ p_quantity: number;
19329
+ };
19330
+ Returns: {
19331
+ barcode: string | null;
19332
+ created_at: string;
19333
+ id: string;
19334
+ monteur_id: string | null;
19335
+ price_per_unit: number;
19336
+ product_name: string;
19337
+ quantity_current: number;
19338
+ quantity_min: number;
19339
+ unit: string;
19340
+ updated_at: string;
19341
+ };
19342
+ SetofOptions: {
19343
+ from: "*";
19344
+ to: "van_inventories";
19345
+ isOneToOne: true;
19346
+ isSetofReturn: false;
19347
+ };
19348
+ };
18270
19349
  control_get_todays_carts: {
18271
19350
  Args: never;
18272
19351
  Returns: {
@@ -18334,6 +19413,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18334
19413
  };
18335
19414
  Returns: import("./types").Json;
18336
19415
  };
19416
+ effective_module_permission: {
19417
+ Args: {
19418
+ _module_id: string;
19419
+ _user_id: string;
19420
+ };
19421
+ Returns: string;
19422
+ } | {
19423
+ Args: {
19424
+ _feature_id: string;
19425
+ _module_id: string;
19426
+ _user_id: string;
19427
+ };
19428
+ Returns: string;
19429
+ };
18337
19430
  email_auth_decrypt: {
18338
19431
  Args: {
18339
19432
  cipher: string;
@@ -18619,6 +19712,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18619
19712
  };
18620
19713
  Returns: number;
18621
19714
  };
19715
+ get_offer_branding: {
19716
+ Args: never;
19717
+ Returns: import("./types").Json;
19718
+ };
18622
19719
  get_offer_by_link_code: {
18623
19720
  Args: {
18624
19721
  p_code: string;
@@ -18680,12 +19777,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18680
19777
  Args: never;
18681
19778
  Returns: string;
18682
19779
  };
18683
- get_work_order_tenant_id: {
18684
- Args: {
18685
- wo_id: string;
18686
- };
18687
- Returns: string;
18688
- };
18689
19780
  has_module_permission: {
18690
19781
  Args: {
18691
19782
  _min: string;
@@ -18719,6 +19810,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18719
19810
  };
18720
19811
  Returns: boolean;
18721
19812
  };
19813
+ is_time_log_week_locked: {
19814
+ Args: {
19815
+ p_employee_id: string;
19816
+ p_start_time: string;
19817
+ };
19818
+ Returns: boolean;
19819
+ };
18722
19820
  is_user_admin: {
18723
19821
  Args: never;
18724
19822
  Returns: boolean;
@@ -18733,13 +19831,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18733
19831
  };
18734
19832
  Returns: boolean;
18735
19833
  };
18736
- list_monteurs: {
19834
+ list_medewerkers: {
18737
19835
  Args: never;
18738
19836
  Returns: {
18739
19837
  avatar_url: string;
18740
19838
  display_name: string;
18741
19839
  email: string;
18742
19840
  id: string;
19841
+ roles: string[];
18743
19842
  }[];
18744
19843
  };
18745
19844
  list_my_planning_items: {
@@ -18910,6 +20009,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18910
20009
  p_worker?: string;
18911
20010
  };
18912
20011
  Returns: {
20012
+ attempt_log: import("./types").Json;
20013
+ attempts: number;
18913
20014
  buffer_ref: string | null;
18914
20015
  claimed_at: string | null;
18915
20016
  claimed_by: string | null;
@@ -18919,6 +20020,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18919
20020
  due_at: string | null;
18920
20021
  error: string | null;
18921
20022
  id: string;
20023
+ last_error: string | null;
20024
+ next_attempt_at: string | null;
18922
20025
  order_ref: string;
18923
20026
  owner_module: string;
18924
20027
  payload: import("./types").Json;
@@ -18951,6 +20054,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18951
20054
  p_worker?: string;
18952
20055
  };
18953
20056
  Returns: {
20057
+ attempt_log: import("./types").Json;
20058
+ attempts: number;
18954
20059
  buffer_ref: string | null;
18955
20060
  claimed_at: string | null;
18956
20061
  claimed_by: string | null;
@@ -18960,6 +20065,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18960
20065
  due_at: string | null;
18961
20066
  error: string | null;
18962
20067
  id: string;
20068
+ last_error: string | null;
20069
+ next_attempt_at: string | null;
18963
20070
  order_ref: string;
18964
20071
  owner_module: string;
18965
20072
  payload: import("./types").Json;
@@ -18992,6 +20099,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18992
20099
  p_task_id: string;
18993
20100
  };
18994
20101
  Returns: {
20102
+ attempt_log: import("./types").Json;
20103
+ attempts: number;
18995
20104
  buffer_ref: string | null;
18996
20105
  claimed_at: string | null;
18997
20106
  claimed_by: string | null;
@@ -19001,6 +20110,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19001
20110
  due_at: string | null;
19002
20111
  error: string | null;
19003
20112
  id: string;
20113
+ last_error: string | null;
20114
+ next_attempt_at: string | null;
19004
20115
  order_ref: string;
19005
20116
  owner_module: string;
19006
20117
  payload: import("./types").Json;
@@ -19082,6 +20193,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19082
20193
  p_task_id: string;
19083
20194
  };
19084
20195
  Returns: {
20196
+ attempt_log: import("./types").Json;
20197
+ attempts: number;
19085
20198
  buffer_ref: string | null;
19086
20199
  claimed_at: string | null;
19087
20200
  claimed_by: string | null;
@@ -19091,6 +20204,8 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19091
20204
  due_at: string | null;
19092
20205
  error: string | null;
19093
20206
  id: string;
20207
+ last_error: string | null;
20208
+ next_attempt_at: string | null;
19094
20209
  order_ref: string;
19095
20210
  owner_module: string;
19096
20211
  payload: import("./types").Json;
@@ -19117,6 +20232,51 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19117
20232
  isSetofReturn: false;
19118
20233
  };
19119
20234
  };
20235
+ logistics_floriday_claim_pushes: {
20236
+ Args: {
20237
+ _lease_seconds?: number;
20238
+ _limit?: number;
20239
+ _worker?: string;
20240
+ };
20241
+ Returns: {
20242
+ attempts: number;
20243
+ fulfillment_order_id: string;
20244
+ id: string;
20245
+ last_sent_hash: string;
20246
+ order_ref: string;
20247
+ payload: import("./types").Json;
20248
+ payload_hash: string;
20249
+ revision: number;
20250
+ }[];
20251
+ };
20252
+ logistics_floriday_finish_push: {
20253
+ Args: {
20254
+ _error?: string;
20255
+ _fulfillment_order_id?: string;
20256
+ _id: string;
20257
+ _max_age_hours?: number;
20258
+ _max_attempts?: number;
20259
+ _ok: boolean;
20260
+ _permanent?: boolean;
20261
+ _revision: number;
20262
+ _sent_hash?: string;
20263
+ };
20264
+ Returns: string;
20265
+ };
20266
+ logistics_floriday_prune_pushes: {
20267
+ Args: {
20268
+ _days?: number;
20269
+ };
20270
+ Returns: number;
20271
+ };
20272
+ logistics_floriday_queue_push: {
20273
+ Args: {
20274
+ _order_ref: string;
20275
+ _payload?: import("./types").Json;
20276
+ _payload_hash?: string;
20277
+ };
20278
+ Returns: string;
20279
+ };
19120
20280
  logistics_live_carriers: {
19121
20281
  Args: {
19122
20282
  p_order_ref: string;
@@ -19169,6 +20329,65 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19169
20329
  };
19170
20330
  Returns: number;
19171
20331
  };
20332
+ logistics_plan_claim: {
20333
+ Args: {
20334
+ p_limit?: number;
20335
+ };
20336
+ Returns: {
20337
+ attempts: number;
20338
+ id: string;
20339
+ order_id: string;
20340
+ }[];
20341
+ };
20342
+ logistics_plan_enqueue: {
20343
+ Args: {
20344
+ p_order_id: string;
20345
+ p_reason?: string;
20346
+ };
20347
+ Returns: undefined;
20348
+ };
20349
+ logistics_plan_ensure_event: {
20350
+ Args: {
20351
+ p_order_id: string;
20352
+ };
20353
+ Returns: boolean;
20354
+ };
20355
+ logistics_plan_finish: {
20356
+ Args: {
20357
+ p_error?: string;
20358
+ p_id: string;
20359
+ };
20360
+ Returns: undefined;
20361
+ };
20362
+ logistics_plan_impact_orders: {
20363
+ Args: {
20364
+ p_order_id: string;
20365
+ };
20366
+ Returns: {
20367
+ buffer_id: string;
20368
+ order_id: string;
20369
+ plan_date: string;
20370
+ }[];
20371
+ };
20372
+ logistics_plan_kick: {
20373
+ Args: never;
20374
+ Returns: undefined;
20375
+ };
20376
+ logistics_plan_prune: {
20377
+ Args: never;
20378
+ Returns: number;
20379
+ };
20380
+ logistics_plan_release_stale: {
20381
+ Args: never;
20382
+ Returns: number;
20383
+ };
20384
+ logistics_plan_setting: {
20385
+ Args: {
20386
+ p_default: number;
20387
+ p_key: string;
20388
+ };
20389
+ Returns: number;
20390
+ };
19172
20391
  logistics_queue_capacity_email: {
19173
20392
  Args: {
19174
20393
  p_alert_id: string;
@@ -19407,6 +20626,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19407
20626
  };
19408
20627
  Returns: undefined;
19409
20628
  };
20629
+ my_module_permissions: {
20630
+ Args: never;
20631
+ Returns: {
20632
+ feature_id: string;
20633
+ module_id: string;
20634
+ permission: string;
20635
+ }[];
20636
+ };
19410
20637
  next_manufacture_partij: {
19411
20638
  Args: {
19412
20639
  _tenant_id: string;
@@ -19457,6 +20684,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19457
20684
  };
19458
20685
  Returns: boolean;
19459
20686
  };
20687
+ opruim_print_historie: {
20688
+ Args: never;
20689
+ Returns: {
20690
+ ontdaan: number;
20691
+ verwijderd: number;
20692
+ }[];
20693
+ };
19460
20694
  order_number_prefix: {
19461
20695
  Args: {
19462
20696
  p_custom_fields?: import("./types").Json;
@@ -19464,6 +20698,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19464
20698
  };
19465
20699
  Returns: string;
19466
20700
  };
20701
+ pick_active_printers: {
20702
+ Args: never;
20703
+ Returns: {
20704
+ id: string;
20705
+ locatie: string;
20706
+ naam: string;
20707
+ online: boolean;
20708
+ }[];
20709
+ };
19467
20710
  pick_claim_document: {
19468
20711
  Args: {
19469
20712
  _queue_item_id: string;
@@ -19650,6 +20893,52 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19650
20893
  };
19651
20894
  Returns: undefined;
19652
20895
  };
20896
+ pick_reset_print: {
20897
+ Args: {
20898
+ _queue_item_id: string;
20899
+ _session_id: string;
20900
+ };
20901
+ Returns: {
20902
+ announced_at: string;
20903
+ assigned_user_id: string | null;
20904
+ barcode: string | null;
20905
+ cancelled_at: string | null;
20906
+ cart_count: number;
20907
+ completed_at: string | null;
20908
+ country_code: string | null;
20909
+ created_at: string;
20910
+ customer_name: string | null;
20911
+ delivery_address: string | null;
20912
+ document_number: string | null;
20913
+ document_type_id: string | null;
20914
+ due_at: string | null;
20915
+ id: string;
20916
+ is_urgent: boolean;
20917
+ line_count: number;
20918
+ order_number: string | null;
20919
+ order_type: string | null;
20920
+ payload: import("./types").Json;
20921
+ print_count: number;
20922
+ print_job_id: string | null;
20923
+ printed_at: string | null;
20924
+ printed_by: string | null;
20925
+ printer_id: string | null;
20926
+ priority: number;
20927
+ reference: string | null;
20928
+ route: string | null;
20929
+ screen_id: string | null;
20930
+ station_id: string | null;
20931
+ status_id: string | null;
20932
+ updated_at: string;
20933
+ warnings: import("./types").Json;
20934
+ };
20935
+ SetofOptions: {
20936
+ from: "*";
20937
+ to: "pick_queue";
20938
+ isOneToOne: true;
20939
+ isSetofReturn: false;
20940
+ };
20941
+ };
19653
20942
  pick_station_dashboard: {
19654
20943
  Args: never;
19655
20944
  Returns: {
@@ -19796,6 +21085,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19796
21085
  };
19797
21086
  Returns: undefined;
19798
21087
  };
21088
+ reset_stalled_floriday_stock_queue: {
21089
+ Args: {
21090
+ p_include_failed?: boolean;
21091
+ };
21092
+ Returns: number;
21093
+ };
19799
21094
  resolve_group_allocation: {
19800
21095
  Args: {
19801
21096
  _needed: number;
@@ -19840,10 +21135,28 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
19840
21135
  };
19841
21136
  Returns: import("./types").Json;
19842
21137
  };
21138
+ ruim_print_jobs_op: {
21139
+ Args: {
21140
+ _bewaar_dagen?: number;
21141
+ };
21142
+ Returns: number;
21143
+ };
19843
21144
  run_floriday_continuous_stock_sync: {
19844
21145
  Args: never;
19845
21146
  Returns: undefined;
19846
21147
  };
21148
+ run_floriday_stock_queue_process: {
21149
+ Args: never;
21150
+ Returns: undefined;
21151
+ };
21152
+ run_logistics_tasks_dispatch: {
21153
+ Args: never;
21154
+ Returns: undefined;
21155
+ };
21156
+ run_print_queue_ticks: {
21157
+ Args: never;
21158
+ Returns: number;
21159
+ };
19847
21160
  run_twinfield_queue_tick: {
19848
21161
  Args: never;
19849
21162
  Returns: undefined;
@@ -20084,6 +21397,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20084
21397
  };
20085
21398
  Returns: number;
20086
21399
  };
21400
+ schedule_floriday_stock_queue_process: {
21401
+ Args: {
21402
+ p_apikey: string;
21403
+ p_url: string;
21404
+ };
21405
+ Returns: number;
21406
+ };
20087
21407
  schedule_floriday_token_refresh: {
20088
21408
  Args: {
20089
21409
  p_apikey: string;
@@ -20190,6 +21510,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20190
21510
  };
20191
21511
  Returns: string[];
20192
21512
  };
21513
+ switch_time_log: {
21514
+ Args: {
21515
+ p_employee_id: string;
21516
+ p_start_lat?: number;
21517
+ p_start_lng?: number;
21518
+ p_type: string;
21519
+ p_work_order_id?: string;
21520
+ };
21521
+ Returns: import("./types").Json;
21522
+ };
20193
21523
  sync_all_layer_stocks: {
20194
21524
  Args: never;
20195
21525
  Returns: undefined;
@@ -20224,6 +21554,15 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20224
21554
  };
20225
21555
  Returns: undefined;
20226
21556
  };
21557
+ trade_item_stock_duplicates: {
21558
+ Args: never;
21559
+ Returns: {
21560
+ keys: string[];
21561
+ product_id: string;
21562
+ product_name: string;
21563
+ row_count: number;
21564
+ }[];
21565
+ };
20227
21566
  try_debtor_lock: {
20228
21567
  Args: {
20229
21568
  _group_key: string;
@@ -20231,6 +21570,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20231
21570
  };
20232
21571
  Returns: boolean;
20233
21572
  };
21573
+ twinfield_cron_lock_acquire: {
21574
+ Args: {
21575
+ _job_name: string;
21576
+ _stale_seconds?: number;
21577
+ };
21578
+ Returns: boolean;
21579
+ };
21580
+ twinfield_cron_lock_release: {
21581
+ Args: {
21582
+ _error?: string;
21583
+ _job_name: string;
21584
+ };
21585
+ Returns: undefined;
21586
+ };
21587
+ twinfield_prune_push_queue: {
21588
+ Args: never;
21589
+ Returns: number;
21590
+ };
20234
21591
  twinfield_register_cron: {
20235
21592
  Args: {
20236
21593
  apikey?: string;
@@ -20273,7 +21630,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
20273
21630
  };
20274
21631
  Enums: {
20275
21632
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20276
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
21633
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20277
21634
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20278
21635
  doc_orientation: "portrait" | "landscape";
20279
21636
  exact_env: "staging" | "live";