@flowselections/floriday-verkoop-module 1.0.40 → 1.0.42

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 (94) hide show
  1. package/dist-lib/components/verkoop/EngineBufferCard.d.ts.map +1 -1
  2. package/dist-lib/components/verkoop/EngineBufferCard.js +2 -2
  3. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts +3 -0
  4. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts.map +1 -0
  5. package/dist-lib/components/verkoop/InvoiceTimingSettings.js +54 -0
  6. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  7. package/dist-lib/components/verkoop/SalesOrdersTable.js +44 -91
  8. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  9. package/dist-lib/components/verkoop/VerkoopOrdersPage.js +59 -23
  10. package/dist-lib/index.d.ts +1 -0
  11. package/dist-lib/index.d.ts.map +1 -1
  12. package/dist-lib/index.js +3 -1
  13. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1429 -159
  14. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.d.ts +1429 -159
  16. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.server.d.ts +1429 -159
  18. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/types.d.ts +1436 -161
  20. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/types.js +12 -1
  22. package/dist-lib/lib/cart-lock.functions.d.ts +1429 -159
  23. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/cart-planning-settings.functions.d.ts +15410 -1440
  25. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/cart-replan.functions.d.ts +4290 -480
  27. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/create-order.functions.d.ts +42631 -1921
  29. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/create-order.functions.js +30 -0
  31. package/dist-lib/lib/cron/index.d.ts +1 -0
  32. package/dist-lib/lib/cron/index.d.ts.map +1 -1
  33. package/dist-lib/lib/cron/index.js +1 -0
  34. package/dist-lib/lib/cron/invoice-due.d.ts +4 -0
  35. package/dist-lib/lib/cron/invoice-due.d.ts.map +1 -0
  36. package/dist-lib/lib/cron/invoice-due.js +21 -0
  37. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +4290 -480
  38. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/floriday-fulfillment-status.server.d.ts +28 -0
  40. package/dist-lib/lib/floriday-fulfillment-status.server.d.ts.map +1 -0
  41. package/dist-lib/lib/floriday-fulfillment-status.server.js +91 -0
  42. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +1429 -159
  43. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/floriday-mirror.functions.d.ts +1429 -159
  45. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/floriday-mirror.functions.js +27 -4
  47. package/dist-lib/lib/floriday-public.functions.d.ts +9850 -960
  48. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/floriday-writes.functions.d.ts +7070 -720
  50. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  51. package/dist-lib/lib/invoice-timing.d.ts +38 -0
  52. package/dist-lib/lib/invoice-timing.d.ts.map +1 -0
  53. package/dist-lib/lib/invoice-timing.functions.d.ts +86633 -0
  54. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -0
  55. package/dist-lib/lib/invoice-timing.functions.js +88 -0
  56. package/dist-lib/lib/invoice-timing.js +139 -0
  57. package/dist-lib/lib/invoice-timing.server.d.ts +22 -0
  58. package/dist-lib/lib/invoice-timing.server.d.ts.map +1 -0
  59. package/dist-lib/lib/invoice-timing.server.js +154 -0
  60. package/dist-lib/lib/load-carriers.functions.d.ts +1429 -159
  61. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/logistics-engine.functions.d.ts +7072 -722
  63. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/logistics-stock.functions.d.ts +2900 -360
  65. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  66. package/dist-lib/lib/order-addresses.functions.d.ts +1429 -159
  67. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/order-buffers.functions.d.ts +4290 -480
  69. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/order-carrier.functions.d.ts +2900 -360
  71. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  72. package/dist-lib/lib/order-pickup.functions.d.ts +2900 -360
  73. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  74. package/dist-lib/lib/order-shipments.functions.d.ts +5680 -600
  75. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  76. package/dist-lib/lib/order-status.d.ts +33 -0
  77. package/dist-lib/lib/order-status.d.ts.map +1 -0
  78. package/dist-lib/lib/order-status.js +77 -0
  79. package/dist-lib/lib/salesorders-list.functions.d.ts +1430 -160
  80. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  81. package/dist-lib/lib/salesorders-list.functions.js +1 -1
  82. package/dist-lib/lib/salesorders-list.server.d.ts +2 -1
  83. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  84. package/dist-lib/lib/salesorders-list.server.js +145 -58
  85. package/dist-lib/lib/salesorders-mapping.d.ts +19 -0
  86. package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
  87. package/dist-lib/lib/salesorders-mapping.js +19 -7
  88. package/dist-lib/lib/salesorders.functions.d.ts +7070 -720
  89. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  90. package/dist-lib/lib/tradeitems.functions.d.ts +1429 -159
  91. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  92. package/dist-lib/lib/useSalesOrdersQuery.d.ts +2 -1
  93. package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
  94. package/package.json +10 -2
@@ -881,6 +881,126 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
881
881
  };
882
882
  Relationships: [];
883
883
  };
884
+ cao_holidays: {
885
+ Row: {
886
+ created_at: string;
887
+ description: string | null;
888
+ holiday_date: string;
889
+ id: string;
890
+ updated_at: string;
891
+ };
892
+ Insert: {
893
+ created_at?: string;
894
+ description?: string | null;
895
+ holiday_date: string;
896
+ id?: string;
897
+ updated_at?: string;
898
+ };
899
+ Update: {
900
+ created_at?: string;
901
+ description?: string | null;
902
+ holiday_date?: string;
903
+ id?: string;
904
+ updated_at?: string;
905
+ };
906
+ Relationships: [];
907
+ };
908
+ cao_settings: {
909
+ Row: {
910
+ auto_break_after_hours: number;
911
+ auto_break_minutes: number;
912
+ auto_break_unpaid: boolean;
913
+ auto_stop_after_hours: number;
914
+ callout_fee: number;
915
+ created_at: string;
916
+ daily_regular_hours: number;
917
+ default_hourly_rate: number;
918
+ id: string;
919
+ materials_markup_percent: number;
920
+ max_daily_hours: number;
921
+ max_weekly_hours: number;
922
+ meal_allowance_amount: number;
923
+ overtime_pct_178: number;
924
+ overtime_pct_189: number;
925
+ overtime_pct_212: number;
926
+ reminder_after_hours: number;
927
+ standby_evening_amount: number;
928
+ standby_weekend_amount: number;
929
+ travel_cost_per_km: number | null;
930
+ travel_cost_threshold_km: number | null;
931
+ travel_counts_as_work: boolean;
932
+ travel_hourly_rate: number;
933
+ travel_rate_per_hour: number;
934
+ travel_threshold_minutes: number;
935
+ updated_at: string;
936
+ weekend_always_212: boolean;
937
+ window_end: string;
938
+ window_start: string;
939
+ };
940
+ Insert: {
941
+ auto_break_after_hours?: number;
942
+ auto_break_minutes?: number;
943
+ auto_break_unpaid?: boolean;
944
+ auto_stop_after_hours?: number;
945
+ callout_fee?: number;
946
+ created_at?: string;
947
+ daily_regular_hours?: number;
948
+ default_hourly_rate?: number;
949
+ id?: string;
950
+ materials_markup_percent?: number;
951
+ max_daily_hours?: number;
952
+ max_weekly_hours?: number;
953
+ meal_allowance_amount?: number;
954
+ overtime_pct_178?: number;
955
+ overtime_pct_189?: number;
956
+ overtime_pct_212?: number;
957
+ reminder_after_hours?: number;
958
+ standby_evening_amount?: number;
959
+ standby_weekend_amount?: number;
960
+ travel_cost_per_km?: number | null;
961
+ travel_cost_threshold_km?: number | null;
962
+ travel_counts_as_work?: boolean;
963
+ travel_hourly_rate?: number;
964
+ travel_rate_per_hour?: number;
965
+ travel_threshold_minutes?: number;
966
+ updated_at?: string;
967
+ weekend_always_212?: boolean;
968
+ window_end?: string;
969
+ window_start?: string;
970
+ };
971
+ Update: {
972
+ auto_break_after_hours?: number;
973
+ auto_break_minutes?: number;
974
+ auto_break_unpaid?: boolean;
975
+ auto_stop_after_hours?: number;
976
+ callout_fee?: number;
977
+ created_at?: string;
978
+ daily_regular_hours?: number;
979
+ default_hourly_rate?: number;
980
+ id?: string;
981
+ materials_markup_percent?: number;
982
+ max_daily_hours?: number;
983
+ max_weekly_hours?: number;
984
+ meal_allowance_amount?: number;
985
+ overtime_pct_178?: number;
986
+ overtime_pct_189?: number;
987
+ overtime_pct_212?: number;
988
+ reminder_after_hours?: number;
989
+ standby_evening_amount?: number;
990
+ standby_weekend_amount?: number;
991
+ travel_cost_per_km?: number | null;
992
+ travel_cost_threshold_km?: number | null;
993
+ travel_counts_as_work?: boolean;
994
+ travel_hourly_rate?: number;
995
+ travel_rate_per_hour?: number;
996
+ travel_threshold_minutes?: number;
997
+ updated_at?: string;
998
+ weekend_always_212?: boolean;
999
+ window_end?: string;
1000
+ window_start?: string;
1001
+ };
1002
+ Relationships: [];
1003
+ };
884
1004
  carrier_shipping_rates: {
885
1005
  Row: {
886
1006
  carrier_id: string;
@@ -1693,7 +1813,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
1693
1813
  city: string | null;
1694
1814
  country: string | null;
1695
1815
  created_at: string;
1696
- customer_id: string | null;
1816
+ customer_id: string;
1697
1817
  external_key: string | null;
1698
1818
  external_provider: string | null;
1699
1819
  floriday_location_id: string | null;
@@ -1717,7 +1837,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
1717
1837
  city?: string | null;
1718
1838
  country?: string | null;
1719
1839
  created_at?: string;
1720
- customer_id?: string | null;
1840
+ customer_id: string;
1721
1841
  external_key?: string | null;
1722
1842
  external_provider?: string | null;
1723
1843
  floriday_location_id?: string | null;
@@ -1741,7 +1861,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
1741
1861
  city?: string | null;
1742
1862
  country?: string | null;
1743
1863
  created_at?: string;
1744
- customer_id?: string | null;
1864
+ customer_id?: string;
1745
1865
  external_key?: string | null;
1746
1866
  external_provider?: string | null;
1747
1867
  floriday_location_id?: string | null;
@@ -5704,12 +5824,17 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
5704
5824
  attempts: number;
5705
5825
  connection_id: string;
5706
5826
  created_at: string;
5827
+ desired_available: boolean | null;
5707
5828
  gateway_attempt_id: string | null;
5708
5829
  id: string;
5709
5830
  last_error: string | null;
5831
+ locked_at: string | null;
5832
+ locked_by: string | null;
5833
+ next_attempt_at: string;
5710
5834
  number_of_pieces: number;
5711
5835
  sent_at: string | null;
5712
5836
  status: string;
5837
+ superseded_by: string | null;
5713
5838
  trade_item_id: string;
5714
5839
  updated_at: string;
5715
5840
  user_id: string;
@@ -5718,12 +5843,17 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
5718
5843
  attempts?: number;
5719
5844
  connection_id: string;
5720
5845
  created_at?: string;
5846
+ desired_available?: boolean | null;
5721
5847
  gateway_attempt_id?: string | null;
5722
5848
  id?: string;
5723
5849
  last_error?: string | null;
5850
+ locked_at?: string | null;
5851
+ locked_by?: string | null;
5852
+ next_attempt_at?: string;
5724
5853
  number_of_pieces?: number;
5725
5854
  sent_at?: string | null;
5726
5855
  status?: string;
5856
+ superseded_by?: string | null;
5727
5857
  trade_item_id: string;
5728
5858
  updated_at?: string;
5729
5859
  user_id: string;
@@ -5732,12 +5862,17 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
5732
5862
  attempts?: number;
5733
5863
  connection_id?: string;
5734
5864
  created_at?: string;
5865
+ desired_available?: boolean | null;
5735
5866
  gateway_attempt_id?: string | null;
5736
5867
  id?: string;
5737
5868
  last_error?: string | null;
5869
+ locked_at?: string | null;
5870
+ locked_by?: string | null;
5871
+ next_attempt_at?: string;
5738
5872
  number_of_pieces?: number;
5739
5873
  sent_at?: string | null;
5740
5874
  status?: string;
5875
+ superseded_by?: string | null;
5741
5876
  trade_item_id?: string;
5742
5877
  updated_at?: string;
5743
5878
  user_id?: string;
@@ -6474,6 +6609,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
6474
6609
  Row: {
6475
6610
  buyer_organization_id: string | null;
6476
6611
  connection_id: string;
6612
+ controlled_at: string | null;
6477
6613
  created_at: string;
6478
6614
  data: import("../integrations/supabase/types").Json;
6479
6615
  floriday_id: string;
@@ -6485,6 +6621,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
6485
6621
  Insert: {
6486
6622
  buyer_organization_id?: string | null;
6487
6623
  connection_id: string;
6624
+ controlled_at?: string | null;
6488
6625
  created_at?: string;
6489
6626
  data: import("../integrations/supabase/types").Json;
6490
6627
  floriday_id: string;
@@ -6496,6 +6633,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
6496
6633
  Update: {
6497
6634
  buyer_organization_id?: string | null;
6498
6635
  connection_id?: string;
6636
+ controlled_at?: string | null;
6499
6637
  created_at?: string;
6500
6638
  data?: import("../integrations/supabase/types").Json;
6501
6639
  floriday_id?: string;
@@ -7397,6 +7535,54 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
7397
7535
  };
7398
7536
  Relationships: [];
7399
7537
  };
7538
+ invoice_timing_settings: {
7539
+ Row: {
7540
+ anchor: string;
7541
+ business_days_only: boolean;
7542
+ created_at: string;
7543
+ enabled: boolean;
7544
+ id: string;
7545
+ offset_days: number;
7546
+ pickup_anchor: string;
7547
+ pickup_business_days_only: boolean;
7548
+ pickup_offset_days: number;
7549
+ pickup_time_of_day: string;
7550
+ singleton: boolean;
7551
+ time_of_day: string;
7552
+ updated_at: string;
7553
+ };
7554
+ Insert: {
7555
+ anchor?: string;
7556
+ business_days_only?: boolean;
7557
+ created_at?: string;
7558
+ enabled?: boolean;
7559
+ id?: string;
7560
+ offset_days?: number;
7561
+ pickup_anchor?: string;
7562
+ pickup_business_days_only?: boolean;
7563
+ pickup_offset_days?: number;
7564
+ pickup_time_of_day?: string;
7565
+ singleton?: boolean;
7566
+ time_of_day?: string;
7567
+ updated_at?: string;
7568
+ };
7569
+ Update: {
7570
+ anchor?: string;
7571
+ business_days_only?: boolean;
7572
+ created_at?: string;
7573
+ enabled?: boolean;
7574
+ id?: string;
7575
+ offset_days?: number;
7576
+ pickup_anchor?: string;
7577
+ pickup_business_days_only?: boolean;
7578
+ pickup_offset_days?: number;
7579
+ pickup_time_of_day?: string;
7580
+ singleton?: boolean;
7581
+ time_of_day?: string;
7582
+ updated_at?: string;
7583
+ };
7584
+ Relationships: [];
7585
+ };
7400
7586
  itk_contact_persons: {
7401
7587
  Row: {
7402
7588
  created_at: string;
@@ -7709,7 +7895,6 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
7709
7895
  start_date: string;
7710
7896
  start_time: string | null;
7711
7897
  status: string;
7712
- tenant_id: string;
7713
7898
  updated_at: string;
7714
7899
  user_id: string;
7715
7900
  };
@@ -7727,7 +7912,6 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
7727
7912
  start_date: string;
7728
7913
  start_time?: string | null;
7729
7914
  status?: string;
7730
- tenant_id?: string;
7731
7915
  updated_at?: string;
7732
7916
  user_id: string;
7733
7917
  };
@@ -7745,7 +7929,6 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
7745
7929
  start_date?: string;
7746
7930
  start_time?: string | null;
7747
7931
  status?: string;
7748
- tenant_id?: string;
7749
7932
  updated_at?: string;
7750
7933
  user_id?: string;
7751
7934
  };
@@ -7753,13 +7936,13 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
7753
7936
  foreignKeyName: "leave_requests_monteur_id_fkey";
7754
7937
  columns: ["monteur_id"];
7755
7938
  isOneToOne: false;
7756
- referencedRelation: "monteurs";
7939
+ referencedRelation: "profiles";
7757
7940
  referencedColumns: ["id"];
7758
7941
  }, {
7759
7942
  foreignKeyName: "leave_requests_user_id_fkey";
7760
7943
  columns: ["user_id"];
7761
7944
  isOneToOne: false;
7762
- referencedRelation: "monteurs";
7945
+ referencedRelation: "profiles";
7763
7946
  referencedColumns: ["id"];
7764
7947
  }];
7765
7948
  };
@@ -8486,6 +8669,69 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
8486
8669
  };
8487
8670
  Relationships: [];
8488
8671
  };
8672
+ logistics_floriday_pushes: {
8673
+ Row: {
8674
+ attempts: number;
8675
+ created_at: string;
8676
+ first_queued_at: string;
8677
+ fulfillment_order_id: string | null;
8678
+ id: string;
8679
+ last_error: string | null;
8680
+ last_error_at: string | null;
8681
+ last_sent_hash: string | null;
8682
+ locked_by: string | null;
8683
+ locked_until: string | null;
8684
+ next_attempt_at: string;
8685
+ order_ref: string;
8686
+ payload: import("../integrations/supabase/types").Json;
8687
+ payload_hash: string | null;
8688
+ revision: number;
8689
+ sent_at: string | null;
8690
+ status: string;
8691
+ updated_at: string;
8692
+ };
8693
+ Insert: {
8694
+ attempts?: number;
8695
+ created_at?: string;
8696
+ first_queued_at?: string;
8697
+ fulfillment_order_id?: string | null;
8698
+ id?: string;
8699
+ last_error?: string | null;
8700
+ last_error_at?: string | null;
8701
+ last_sent_hash?: string | null;
8702
+ locked_by?: string | null;
8703
+ locked_until?: string | null;
8704
+ next_attempt_at?: string;
8705
+ order_ref: string;
8706
+ payload?: import("../integrations/supabase/types").Json;
8707
+ payload_hash?: string | null;
8708
+ revision?: number;
8709
+ sent_at?: string | null;
8710
+ status?: string;
8711
+ updated_at?: string;
8712
+ };
8713
+ Update: {
8714
+ attempts?: number;
8715
+ created_at?: string;
8716
+ first_queued_at?: string;
8717
+ fulfillment_order_id?: string | null;
8718
+ id?: string;
8719
+ last_error?: string | null;
8720
+ last_error_at?: string | null;
8721
+ last_sent_hash?: string | null;
8722
+ locked_by?: string | null;
8723
+ locked_until?: string | null;
8724
+ next_attempt_at?: string;
8725
+ order_ref?: string;
8726
+ payload?: import("../integrations/supabase/types").Json;
8727
+ payload_hash?: string | null;
8728
+ revision?: number;
8729
+ sent_at?: string | null;
8730
+ status?: string;
8731
+ updated_at?: string;
8732
+ };
8733
+ Relationships: [];
8734
+ };
8489
8735
  logistics_formulas: {
8490
8736
  Row: {
8491
8737
  created_at: string;
@@ -8564,6 +8810,45 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
8564
8810
  };
8565
8811
  Relationships: [];
8566
8812
  };
8813
+ logistics_plan_queue: {
8814
+ Row: {
8815
+ attempts: number;
8816
+ claimed_at: string | null;
8817
+ enqueued_at: string;
8818
+ error: string | null;
8819
+ id: string;
8820
+ next_attempt_at: string;
8821
+ order_id: string;
8822
+ reason: string;
8823
+ status: string;
8824
+ updated_at: string;
8825
+ };
8826
+ Insert: {
8827
+ attempts?: number;
8828
+ claimed_at?: string | null;
8829
+ enqueued_at?: string;
8830
+ error?: string | null;
8831
+ id?: string;
8832
+ next_attempt_at?: string;
8833
+ order_id: string;
8834
+ reason?: string;
8835
+ status?: string;
8836
+ updated_at?: string;
8837
+ };
8838
+ Update: {
8839
+ attempts?: number;
8840
+ claimed_at?: string | null;
8841
+ enqueued_at?: string;
8842
+ error?: string | null;
8843
+ id?: string;
8844
+ next_attempt_at?: string;
8845
+ order_id?: string;
8846
+ reason?: string;
8847
+ status?: string;
8848
+ updated_at?: string;
8849
+ };
8850
+ Relationships: [];
8851
+ };
8567
8852
  logistics_plan_runs: {
8568
8853
  Row: {
8569
8854
  created_at: string;
@@ -8639,6 +8924,24 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
8639
8924
  referencedColumns: ["id"];
8640
8925
  }];
8641
8926
  };
8927
+ logistics_plan_settings: {
8928
+ Row: {
8929
+ key: string;
8930
+ updated_at: string;
8931
+ value: string;
8932
+ };
8933
+ Insert: {
8934
+ key: string;
8935
+ updated_at?: string;
8936
+ value: string;
8937
+ };
8938
+ Update: {
8939
+ key?: string;
8940
+ updated_at?: string;
8941
+ value?: string;
8942
+ };
8943
+ Relationships: [];
8944
+ };
8642
8945
  logistics_rebuffer_state: {
8643
8946
  Row: {
8644
8947
  created_at: string;
@@ -9349,14 +9652,17 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
9349
9652
  };
9350
9653
  mailbox_messages: {
9351
9654
  Row: {
9655
+ attachments: import("../integrations/supabase/types").Json;
9352
9656
  body_html: string | null;
9353
9657
  body_text: string | null;
9658
+ cc_recipients: import("../integrations/supabase/types").Json;
9354
9659
  connection_id: string | null;
9355
9660
  created_at: string;
9356
9661
  error_message: string | null;
9357
9662
  external_id: string | null;
9358
9663
  from_email: string | null;
9359
9664
  from_name: string | null;
9665
+ has_attachments: boolean;
9360
9666
  id: string;
9361
9667
  message_id: string | null;
9362
9668
  profile_id: string | null;
@@ -9364,18 +9670,22 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
9364
9670
  received_at: string | null;
9365
9671
  status: string;
9366
9672
  subject: string | null;
9673
+ to_recipients: import("../integrations/supabase/types").Json;
9367
9674
  uid: number | null;
9368
9675
  updated_at: string;
9369
9676
  };
9370
9677
  Insert: {
9678
+ attachments?: import("../integrations/supabase/types").Json;
9371
9679
  body_html?: string | null;
9372
9680
  body_text?: string | null;
9681
+ cc_recipients?: import("../integrations/supabase/types").Json;
9373
9682
  connection_id?: string | null;
9374
9683
  created_at?: string;
9375
9684
  error_message?: string | null;
9376
9685
  external_id?: string | null;
9377
9686
  from_email?: string | null;
9378
9687
  from_name?: string | null;
9688
+ has_attachments?: boolean;
9379
9689
  id?: string;
9380
9690
  message_id?: string | null;
9381
9691
  profile_id?: string | null;
@@ -9383,18 +9693,22 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
9383
9693
  received_at?: string | null;
9384
9694
  status?: string;
9385
9695
  subject?: string | null;
9696
+ to_recipients?: import("../integrations/supabase/types").Json;
9386
9697
  uid?: number | null;
9387
9698
  updated_at?: string;
9388
9699
  };
9389
9700
  Update: {
9701
+ attachments?: import("../integrations/supabase/types").Json;
9390
9702
  body_html?: string | null;
9391
9703
  body_text?: string | null;
9704
+ cc_recipients?: import("../integrations/supabase/types").Json;
9392
9705
  connection_id?: string | null;
9393
9706
  created_at?: string;
9394
9707
  error_message?: string | null;
9395
9708
  external_id?: string | null;
9396
9709
  from_email?: string | null;
9397
9710
  from_name?: string | null;
9711
+ has_attachments?: boolean;
9398
9712
  id?: string;
9399
9713
  message_id?: string | null;
9400
9714
  profile_id?: string | null;
@@ -9402,6 +9716,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
9402
9716
  received_at?: string | null;
9403
9717
  status?: string;
9404
9718
  subject?: string | null;
9719
+ to_recipients?: import("../integrations/supabase/types").Json;
9405
9720
  uid?: number | null;
9406
9721
  updated_at?: string;
9407
9722
  };
@@ -9782,6 +10097,90 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
9782
10097
  };
9783
10098
  Relationships: [];
9784
10099
  };
10100
+ material_usage: {
10101
+ Row: {
10102
+ created_at: string;
10103
+ id: string;
10104
+ material_name: string;
10105
+ monteur_id: string | null;
10106
+ price_at_time: number;
10107
+ quantity_used: number;
10108
+ updated_at: string;
10109
+ van_inventory_id: string | null;
10110
+ work_order_id: string;
10111
+ };
10112
+ Insert: {
10113
+ created_at?: string;
10114
+ id?: string;
10115
+ material_name: string;
10116
+ monteur_id?: string | null;
10117
+ price_at_time?: number;
10118
+ quantity_used?: number;
10119
+ updated_at?: string;
10120
+ van_inventory_id?: string | null;
10121
+ work_order_id: string;
10122
+ };
10123
+ Update: {
10124
+ created_at?: string;
10125
+ id?: string;
10126
+ material_name?: string;
10127
+ monteur_id?: string | null;
10128
+ price_at_time?: number;
10129
+ quantity_used?: number;
10130
+ updated_at?: string;
10131
+ van_inventory_id?: string | null;
10132
+ work_order_id?: string;
10133
+ };
10134
+ Relationships: [{
10135
+ foreignKeyName: "material_usage_monteur_id_fkey";
10136
+ columns: ["monteur_id"];
10137
+ isOneToOne: false;
10138
+ referencedRelation: "profiles";
10139
+ referencedColumns: ["id"];
10140
+ }, {
10141
+ foreignKeyName: "material_usage_van_inventory_id_fkey";
10142
+ columns: ["van_inventory_id"];
10143
+ isOneToOne: false;
10144
+ referencedRelation: "van_inventories";
10145
+ referencedColumns: ["id"];
10146
+ }, {
10147
+ foreignKeyName: "material_usage_work_order_id_fkey";
10148
+ columns: ["work_order_id"];
10149
+ isOneToOne: false;
10150
+ referencedRelation: "work_orders";
10151
+ referencedColumns: ["id"];
10152
+ }];
10153
+ };
10154
+ module_features: {
10155
+ Row: {
10156
+ created_at: string;
10157
+ feature_id: string;
10158
+ id: string;
10159
+ is_active: boolean;
10160
+ last_seen_at: string;
10161
+ module_id: string;
10162
+ name: string;
10163
+ };
10164
+ Insert: {
10165
+ created_at?: string;
10166
+ feature_id: string;
10167
+ id?: string;
10168
+ is_active?: boolean;
10169
+ last_seen_at?: string;
10170
+ module_id: string;
10171
+ name: string;
10172
+ };
10173
+ Update: {
10174
+ created_at?: string;
10175
+ feature_id?: string;
10176
+ id?: string;
10177
+ is_active?: boolean;
10178
+ last_seen_at?: string;
10179
+ module_id?: string;
10180
+ name?: string;
10181
+ };
10182
+ Relationships: [];
10183
+ };
9785
10184
  module_permissions: {
9786
10185
  Row: {
9787
10186
  created_at: string;
@@ -9809,6 +10208,39 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
9809
10208
  };
9810
10209
  Relationships: [];
9811
10210
  };
10211
+ module_registry: {
10212
+ Row: {
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
+ Insert: {
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
+ Update: {
10233
+ created_at?: string;
10234
+ enforce?: boolean;
10235
+ is_active?: boolean;
10236
+ last_seen_at?: string;
10237
+ module_id?: string;
10238
+ name?: string;
10239
+ shell_id?: string | null;
10240
+ sort_order?: number | null;
10241
+ };
10242
+ Relationships: [];
10243
+ };
9812
10244
  module_runtime_config: {
9813
10245
  Row: {
9814
10246
  key: string;
@@ -9860,64 +10292,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
9860
10292
  };
9861
10293
  Relationships: [];
9862
10294
  };
9863
- monteurs: {
9864
- Row: {
9865
- avatar_url: string | null;
9866
- color: string | null;
9867
- created_at: string;
9868
- email: string | null;
9869
- id: string;
9870
- is_active: boolean;
9871
- leave_balance_hours: number;
9872
- name: string;
9873
- persnr: number | null;
9874
- phone: string | null;
9875
- role: string;
9876
- tenant_id: string;
9877
- updated_at: string;
9878
- user_id: string | null;
9879
- };
9880
- Insert: {
9881
- avatar_url?: string | null;
9882
- color?: string | null;
9883
- created_at?: string;
9884
- email?: string | null;
9885
- id?: string;
9886
- is_active?: boolean;
9887
- leave_balance_hours?: number;
9888
- name: string;
9889
- persnr?: number | null;
9890
- phone?: string | null;
9891
- role?: string;
9892
- tenant_id: string;
9893
- updated_at?: string;
9894
- user_id?: string | null;
9895
- };
9896
- Update: {
9897
- avatar_url?: string | null;
9898
- color?: string | null;
9899
- created_at?: string;
9900
- email?: string | null;
9901
- id?: string;
9902
- is_active?: boolean;
9903
- leave_balance_hours?: number;
9904
- name?: string;
9905
- persnr?: number | null;
9906
- phone?: string | null;
9907
- role?: string;
9908
- tenant_id?: string;
9909
- updated_at?: string;
9910
- user_id?: string | null;
9911
- };
9912
- Relationships: [{
9913
- foreignKeyName: "monteurs_tenant_id_fkey";
9914
- columns: ["tenant_id"];
9915
- isOneToOne: false;
9916
- referencedRelation: "tenants";
9917
- referencedColumns: ["id"];
9918
- }];
9919
- };
9920
- nmbrs_component_mapping: {
10295
+ nmbrs_component_mapping: {
9921
10296
  Row: {
9922
10297
  created_at: string;
9923
10298
  id: string;
@@ -9987,13 +10362,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
9987
10362
  nmbrs_employee_number?: string;
9988
10363
  updated_at?: string;
9989
10364
  };
9990
- Relationships: [{
9991
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
9992
- columns: ["monteur_id"];
9993
- isOneToOne: true;
9994
- referencedRelation: "monteurs";
9995
- referencedColumns: ["id"];
9996
- }];
10365
+ Relationships: [];
9997
10366
  };
9998
10367
  nmbrs_export_lines: {
9999
10368
  Row: {
@@ -10042,12 +10411,6 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
10042
10411
  wage_code?: string;
10043
10412
  };
10044
10413
  Relationships: [{
10045
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10046
- columns: ["monteur_id"];
10047
- isOneToOne: false;
10048
- referencedRelation: "monteurs";
10049
- referencedColumns: ["id"];
10050
- }, {
10051
10414
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10052
10415
  columns: ["run_id"];
10053
10416
  isOneToOne: false;
@@ -10868,6 +11231,45 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
10868
11231
  };
10869
11232
  Relationships: [];
10870
11233
  };
11234
+ order_invoice_links: {
11235
+ Row: {
11236
+ attempts: number;
11237
+ created_at: string;
11238
+ error_message: string | null;
11239
+ id: string;
11240
+ invoice_number: string | null;
11241
+ next_attempt_at: string;
11242
+ order_id: string;
11243
+ processed_at: string | null;
11244
+ status: string;
11245
+ updated_at: string;
11246
+ };
11247
+ Insert: {
11248
+ attempts?: number;
11249
+ created_at?: string;
11250
+ error_message?: string | null;
11251
+ id?: string;
11252
+ invoice_number?: string | null;
11253
+ next_attempt_at?: string;
11254
+ order_id: string;
11255
+ processed_at?: string | null;
11256
+ status?: string;
11257
+ updated_at?: string;
11258
+ };
11259
+ Update: {
11260
+ attempts?: number;
11261
+ created_at?: string;
11262
+ error_message?: string | null;
11263
+ id?: string;
11264
+ invoice_number?: string | null;
11265
+ next_attempt_at?: string;
11266
+ order_id?: string;
11267
+ processed_at?: string | null;
11268
+ status?: string;
11269
+ updated_at?: string;
11270
+ };
11271
+ Relationships: [];
11272
+ };
10871
11273
  order_items: {
10872
11274
  Row: {
10873
11275
  crates_per_layer: number | null;
@@ -11050,6 +11452,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
11050
11452
  delivery_date: string | null;
11051
11453
  floriday_sales_order_id: string | null;
11052
11454
  id: string;
11455
+ invoice_due_at: string | null;
11053
11456
  is_reservation: boolean;
11054
11457
  notes: string | null;
11055
11458
  order_date: string;
@@ -11071,6 +11474,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
11071
11474
  delivery_date?: string | null;
11072
11475
  floriday_sales_order_id?: string | null;
11073
11476
  id?: string;
11477
+ invoice_due_at?: string | null;
11074
11478
  is_reservation?: boolean;
11075
11479
  notes?: string | null;
11076
11480
  order_date?: string;
@@ -11092,6 +11496,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
11092
11496
  delivery_date?: string | null;
11093
11497
  floriday_sales_order_id?: string | null;
11094
11498
  id?: string;
11499
+ invoice_due_at?: string | null;
11095
11500
  is_reservation?: boolean;
11096
11501
  notes?: string | null;
11097
11502
  order_date?: string;
@@ -12288,22 +12693,27 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
12288
12693
  created_at: string;
12289
12694
  documentnaam: string;
12290
12695
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12696
+ extern_job_id: string | null;
12291
12697
  foutmelding: string | null;
12292
12698
  gebruiker_id: string | null;
12293
12699
  gebruiker_naam: string;
12294
12700
  gestart_op: string | null;
12295
12701
  id: string;
12702
+ idempotentie_sleutel: string | null;
12296
12703
  is_herprint: boolean;
12297
12704
  kopieen: number;
12298
12705
  layout_id: string | null;
12299
12706
  opgepakt_op: string | null;
12300
12707
  paginas: number;
12301
12708
  payload: import("../integrations/supabase/types").Json;
12709
+ pdf_base64: string | null;
12710
+ pdf_url: string | null;
12302
12711
  pogingen: number;
12303
12712
  printer_id: string | null;
12304
12713
  render_html: string | null;
12305
12714
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12306
12715
  updated_at: string;
12716
+ volgende_poging: string | null;
12307
12717
  voltooid_op: string | null;
12308
12718
  };
12309
12719
  Insert: {
@@ -12312,22 +12722,27 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
12312
12722
  created_at?: string;
12313
12723
  documentnaam?: string;
12314
12724
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12725
+ extern_job_id?: string | null;
12315
12726
  foutmelding?: string | null;
12316
12727
  gebruiker_id?: string | null;
12317
12728
  gebruiker_naam?: string;
12318
12729
  gestart_op?: string | null;
12319
12730
  id?: string;
12731
+ idempotentie_sleutel?: string | null;
12320
12732
  is_herprint?: boolean;
12321
12733
  kopieen?: number;
12322
12734
  layout_id?: string | null;
12323
12735
  opgepakt_op?: string | null;
12324
12736
  paginas?: number;
12325
12737
  payload?: import("../integrations/supabase/types").Json;
12738
+ pdf_base64?: string | null;
12739
+ pdf_url?: string | null;
12326
12740
  pogingen?: number;
12327
12741
  printer_id?: string | null;
12328
12742
  render_html?: string | null;
12329
12743
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12330
12744
  updated_at?: string;
12745
+ volgende_poging?: string | null;
12331
12746
  voltooid_op?: string | null;
12332
12747
  };
12333
12748
  Update: {
@@ -12336,22 +12751,27 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
12336
12751
  created_at?: string;
12337
12752
  documentnaam?: string;
12338
12753
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12754
+ extern_job_id?: string | null;
12339
12755
  foutmelding?: string | null;
12340
12756
  gebruiker_id?: string | null;
12341
12757
  gebruiker_naam?: string;
12342
12758
  gestart_op?: string | null;
12343
12759
  id?: string;
12760
+ idempotentie_sleutel?: string | null;
12344
12761
  is_herprint?: boolean;
12345
12762
  kopieen?: number;
12346
12763
  layout_id?: string | null;
12347
12764
  opgepakt_op?: string | null;
12348
12765
  paginas?: number;
12349
12766
  payload?: import("../integrations/supabase/types").Json;
12767
+ pdf_base64?: string | null;
12768
+ pdf_url?: string | null;
12350
12769
  pogingen?: number;
12351
12770
  printer_id?: string | null;
12352
12771
  render_html?: string | null;
12353
12772
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12354
12773
  updated_at?: string;
12774
+ volgende_poging?: string | null;
12355
12775
  voltooid_op?: string | null;
12356
12776
  };
12357
12777
  Relationships: [{
@@ -12374,6 +12794,72 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
12374
12794
  referencedColumns: ["id"];
12375
12795
  }];
12376
12796
  };
12797
+ print_queue_runners: {
12798
+ Row: {
12799
+ actief: boolean;
12800
+ basis_url: string;
12801
+ created_at: string;
12802
+ id: string;
12803
+ laatst_gezien: string;
12804
+ laatste_fout: string | null;
12805
+ laatste_request_id: number | null;
12806
+ mislukte_posts: number;
12807
+ tick_sleutel: string;
12808
+ updated_at: string;
12809
+ };
12810
+ Insert: {
12811
+ actief?: boolean;
12812
+ basis_url: string;
12813
+ created_at?: string;
12814
+ id?: string;
12815
+ laatst_gezien?: string;
12816
+ laatste_fout?: string | null;
12817
+ laatste_request_id?: number | null;
12818
+ mislukte_posts?: number;
12819
+ tick_sleutel?: string;
12820
+ updated_at?: string;
12821
+ };
12822
+ Update: {
12823
+ actief?: boolean;
12824
+ basis_url?: string;
12825
+ created_at?: string;
12826
+ id?: string;
12827
+ laatst_gezien?: string;
12828
+ laatste_fout?: string | null;
12829
+ laatste_request_id?: number | null;
12830
+ mislukte_posts?: number;
12831
+ tick_sleutel?: string;
12832
+ updated_at?: string;
12833
+ };
12834
+ Relationships: [];
12835
+ };
12836
+ print_queue_settings: {
12837
+ Row: {
12838
+ bewaar_bestanden_dagen: number;
12839
+ bewaar_opdrachten_dagen: number;
12840
+ created_at: string;
12841
+ dubbel_venster_minuten: number;
12842
+ id: string;
12843
+ updated_at: string;
12844
+ };
12845
+ Insert: {
12846
+ bewaar_bestanden_dagen?: number;
12847
+ bewaar_opdrachten_dagen?: number;
12848
+ created_at?: string;
12849
+ dubbel_venster_minuten?: number;
12850
+ id?: string;
12851
+ updated_at?: string;
12852
+ };
12853
+ Update: {
12854
+ bewaar_bestanden_dagen?: number;
12855
+ bewaar_opdrachten_dagen?: number;
12856
+ created_at?: string;
12857
+ dubbel_venster_minuten?: number;
12858
+ id?: string;
12859
+ updated_at?: string;
12860
+ };
12861
+ Relationships: [];
12862
+ };
12377
12863
  print_rules: {
12378
12864
  Row: {
12379
12865
  actief: boolean;
@@ -12534,6 +13020,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
12534
13020
  agent_id: string | null;
12535
13021
  created_at: string;
12536
13022
  driver: string;
13023
+ extern_printer_id: string | null;
12537
13024
  id: string;
12538
13025
  ip_adres: string | null;
12539
13026
  laatst_gezien: string | null;
@@ -12555,6 +13042,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
12555
13042
  agent_id?: string | null;
12556
13043
  created_at?: string;
12557
13044
  driver?: string;
13045
+ extern_printer_id?: string | null;
12558
13046
  id?: string;
12559
13047
  ip_adres?: string | null;
12560
13048
  laatst_gezien?: string | null;
@@ -12576,6 +13064,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
12576
13064
  agent_id?: string | null;
12577
13065
  created_at?: string;
12578
13066
  driver?: string;
13067
+ extern_printer_id?: string | null;
12579
13068
  id?: string;
12580
13069
  ip_adres?: string | null;
12581
13070
  laatst_gezien?: string | null;
@@ -13847,6 +14336,96 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
13847
14336
  referencedColumns: ["id"];
13848
14337
  }];
13849
14338
  };
14339
+ role_assignments: {
14340
+ Row: {
14341
+ created_at: string;
14342
+ id: string;
14343
+ role_id: string;
14344
+ user_id: string;
14345
+ };
14346
+ Insert: {
14347
+ created_at?: string;
14348
+ id?: string;
14349
+ role_id: string;
14350
+ user_id: string;
14351
+ };
14352
+ Update: {
14353
+ created_at?: string;
14354
+ id?: string;
14355
+ role_id?: string;
14356
+ user_id?: string;
14357
+ };
14358
+ Relationships: [{
14359
+ foreignKeyName: "role_assignments_role_id_fkey";
14360
+ columns: ["role_id"];
14361
+ isOneToOne: false;
14362
+ referencedRelation: "roles";
14363
+ referencedColumns: ["id"];
14364
+ }];
14365
+ };
14366
+ role_permissions: {
14367
+ Row: {
14368
+ can_edit: boolean;
14369
+ can_view: boolean;
14370
+ feature_id: string;
14371
+ id: string;
14372
+ module_id: string;
14373
+ role_id: string;
14374
+ updated_at: string;
14375
+ };
14376
+ Insert: {
14377
+ can_edit?: boolean;
14378
+ can_view?: boolean;
14379
+ feature_id?: string;
14380
+ id?: string;
14381
+ module_id: string;
14382
+ role_id: string;
14383
+ updated_at?: string;
14384
+ };
14385
+ Update: {
14386
+ can_edit?: boolean;
14387
+ can_view?: boolean;
14388
+ feature_id?: string;
14389
+ id?: string;
14390
+ module_id?: string;
14391
+ role_id?: string;
14392
+ updated_at?: string;
14393
+ };
14394
+ Relationships: [{
14395
+ foreignKeyName: "role_permissions_role_id_fkey";
14396
+ columns: ["role_id"];
14397
+ isOneToOne: false;
14398
+ referencedRelation: "roles";
14399
+ referencedColumns: ["id"];
14400
+ }];
14401
+ };
14402
+ roles: {
14403
+ Row: {
14404
+ created_at: string;
14405
+ id: string;
14406
+ is_protected: boolean;
14407
+ key: string;
14408
+ name: string;
14409
+ updated_at: string;
14410
+ };
14411
+ Insert: {
14412
+ created_at?: string;
14413
+ id?: string;
14414
+ is_protected?: boolean;
14415
+ key: string;
14416
+ name: string;
14417
+ updated_at?: string;
14418
+ };
14419
+ Update: {
14420
+ created_at?: string;
14421
+ id?: string;
14422
+ is_protected?: boolean;
14423
+ key?: string;
14424
+ name?: string;
14425
+ updated_at?: string;
14426
+ };
14427
+ Relationships: [];
14428
+ };
13850
14429
  rooms: {
13851
14430
  Row: {
13852
14431
  capacity: number;
@@ -14516,99 +15095,252 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
14516
15095
  };
14517
15096
  Relationships: [];
14518
15097
  };
14519
- time_entries: {
15098
+ time_compensation_entries: {
14520
15099
  Row: {
14521
15100
  created_at: string;
14522
15101
  employee_id: string;
14523
15102
  entry_date: string;
14524
- hours: number;
14525
15103
  id: string;
15104
+ km: number;
15105
+ meal_allowance: number;
14526
15106
  notes: string | null;
14527
- overtime: number;
14528
- undertime: number;
15107
+ standby_evening: number;
15108
+ standby_weekend: number;
15109
+ tvt_change: number;
14529
15110
  updated_at: string;
14530
15111
  };
14531
15112
  Insert: {
14532
15113
  created_at?: string;
14533
15114
  employee_id: string;
14534
15115
  entry_date: string;
14535
- hours?: number;
14536
15116
  id?: string;
15117
+ km?: number;
15118
+ meal_allowance?: number;
14537
15119
  notes?: string | null;
14538
- overtime?: number;
14539
- undertime?: number;
15120
+ standby_evening?: number;
15121
+ standby_weekend?: number;
15122
+ tvt_change?: number;
14540
15123
  updated_at?: string;
14541
15124
  };
14542
15125
  Update: {
14543
15126
  created_at?: string;
14544
15127
  employee_id?: string;
14545
15128
  entry_date?: string;
14546
- hours?: number;
14547
15129
  id?: string;
15130
+ km?: number;
15131
+ meal_allowance?: number;
14548
15132
  notes?: string | null;
14549
- overtime?: number;
14550
- undertime?: number;
15133
+ standby_evening?: number;
15134
+ standby_weekend?: number;
15135
+ tvt_change?: number;
14551
15136
  updated_at?: string;
14552
15137
  };
14553
15138
  Relationships: [{
14554
- foreignKeyName: "time_entries_employee_id_fkey";
15139
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
14555
15140
  columns: ["employee_id"];
14556
15141
  isOneToOne: false;
14557
- referencedRelation: "monteurs";
15142
+ referencedRelation: "profiles";
14558
15143
  referencedColumns: ["id"];
14559
15144
  }];
14560
15145
  };
14561
- time_logs: {
15146
+ time_entries: {
14562
15147
  Row: {
14563
15148
  created_at: string;
14564
15149
  employee_id: string;
14565
- end_time: string | null;
15150
+ entry_date: string;
15151
+ hours: number;
14566
15152
  id: string;
14567
15153
  notes: string | null;
14568
- overtime_hours: number;
14569
- overtime_type: string | null;
14570
- regular_hours: number;
14571
- start_time: string;
14572
- travel_cost: number | null;
14573
- travel_distance_km: number | null;
14574
- type: string;
15154
+ overtime: number;
15155
+ undertime: number;
14575
15156
  updated_at: string;
14576
15157
  };
14577
15158
  Insert: {
14578
15159
  created_at?: string;
14579
15160
  employee_id: string;
14580
- end_time?: string | null;
15161
+ entry_date: string;
15162
+ hours?: number;
14581
15163
  id?: string;
14582
15164
  notes?: string | null;
14583
- overtime_hours?: number;
14584
- overtime_type?: string | null;
14585
- regular_hours?: number;
14586
- start_time?: string;
14587
- travel_cost?: number | null;
14588
- travel_distance_km?: number | null;
14589
- type: string;
15165
+ overtime?: number;
15166
+ undertime?: number;
14590
15167
  updated_at?: string;
14591
15168
  };
14592
15169
  Update: {
14593
15170
  created_at?: string;
14594
15171
  employee_id?: string;
14595
- end_time?: string | null;
15172
+ entry_date?: string;
15173
+ hours?: number;
14596
15174
  id?: string;
14597
15175
  notes?: string | null;
14598
- overtime_hours?: number;
14599
- overtime_type?: string | null;
14600
- regular_hours?: number;
14601
- start_time?: string;
14602
- travel_cost?: number | null;
14603
- travel_distance_km?: number | null;
14604
- type?: string;
15176
+ overtime?: number;
15177
+ undertime?: number;
14605
15178
  updated_at?: string;
14606
15179
  };
14607
- Relationships: [{
14608
- foreignKeyName: "time_logs_employee_id_fkey";
15180
+ Relationships: [];
15181
+ };
15182
+ time_log_week_approvals: {
15183
+ Row: {
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
+ Insert: {
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
+ Update: {
15210
+ approved_at?: string | null;
15211
+ approved_by?: string | null;
15212
+ created_at?: string;
15213
+ employee_id?: string;
15214
+ id?: string;
15215
+ locked?: boolean;
15216
+ notes?: string | null;
15217
+ status?: string;
15218
+ submitted_at?: string | null;
15219
+ updated_at?: string;
15220
+ week_start?: string;
15221
+ };
15222
+ Relationships: [{
15223
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
15224
+ columns: ["employee_id"];
15225
+ isOneToOne: false;
15226
+ referencedRelation: "profiles";
15227
+ referencedColumns: ["id"];
15228
+ }];
15229
+ };
15230
+ time_logs: {
15231
+ Row: {
15232
+ auto_stop_reason: string | null;
15233
+ auto_stopped: boolean;
15234
+ created_at: string;
15235
+ current_latitude: number | null;
15236
+ current_longitude: number | null;
15237
+ current_position_updated_at: string | null;
15238
+ employee_id: string;
15239
+ end_latitude: number | null;
15240
+ end_longitude: number | null;
15241
+ end_time: string | null;
15242
+ eta_distance_km: number | null;
15243
+ eta_minutes: number | null;
15244
+ eta_updated_at: string | null;
15245
+ hour_category: string | null;
15246
+ id: string;
15247
+ last_reminder_at: string | null;
15248
+ notes: string | null;
15249
+ overtime_hours: number;
15250
+ overtime_type: string | null;
15251
+ regular_hours: number;
15252
+ reminder_count: number;
15253
+ requires_review: boolean;
15254
+ start_latitude: number | null;
15255
+ start_longitude: number | null;
15256
+ start_time: string;
15257
+ travel_cost: number | null;
15258
+ travel_distance_km: number | null;
15259
+ travel_duration_min: number | null;
15260
+ travel_time_minutes: number | null;
15261
+ type: string;
15262
+ updated_at: string;
15263
+ work_order_id: string | null;
15264
+ };
15265
+ Insert: {
15266
+ auto_stop_reason?: string | null;
15267
+ auto_stopped?: boolean;
15268
+ created_at?: string;
15269
+ current_latitude?: number | null;
15270
+ current_longitude?: number | null;
15271
+ current_position_updated_at?: string | null;
15272
+ employee_id: string;
15273
+ end_latitude?: number | null;
15274
+ end_longitude?: number | null;
15275
+ end_time?: string | null;
15276
+ eta_distance_km?: number | null;
15277
+ eta_minutes?: number | null;
15278
+ eta_updated_at?: string | null;
15279
+ hour_category?: string | null;
15280
+ id?: string;
15281
+ last_reminder_at?: string | null;
15282
+ notes?: string | null;
15283
+ overtime_hours?: number;
15284
+ overtime_type?: string | null;
15285
+ regular_hours?: number;
15286
+ reminder_count?: number;
15287
+ requires_review?: boolean;
15288
+ start_latitude?: number | null;
15289
+ start_longitude?: number | null;
15290
+ start_time?: string;
15291
+ travel_cost?: number | null;
15292
+ travel_distance_km?: number | null;
15293
+ travel_duration_min?: number | null;
15294
+ travel_time_minutes?: number | null;
15295
+ type: string;
15296
+ updated_at?: string;
15297
+ work_order_id?: string | null;
15298
+ };
15299
+ Update: {
15300
+ auto_stop_reason?: string | null;
15301
+ auto_stopped?: boolean;
15302
+ created_at?: string;
15303
+ current_latitude?: number | null;
15304
+ current_longitude?: number | null;
15305
+ current_position_updated_at?: string | null;
15306
+ employee_id?: string;
15307
+ end_latitude?: number | null;
15308
+ end_longitude?: number | null;
15309
+ end_time?: string | null;
15310
+ eta_distance_km?: number | null;
15311
+ eta_minutes?: number | null;
15312
+ eta_updated_at?: string | null;
15313
+ hour_category?: string | null;
15314
+ id?: string;
15315
+ last_reminder_at?: string | null;
15316
+ notes?: string | null;
15317
+ overtime_hours?: number;
15318
+ overtime_type?: string | null;
15319
+ regular_hours?: number;
15320
+ reminder_count?: number;
15321
+ requires_review?: boolean;
15322
+ start_latitude?: number | null;
15323
+ start_longitude?: number | null;
15324
+ start_time?: string;
15325
+ travel_cost?: number | null;
15326
+ travel_distance_km?: number | null;
15327
+ travel_duration_min?: number | null;
15328
+ travel_time_minutes?: number | null;
15329
+ type?: string;
15330
+ updated_at?: string;
15331
+ work_order_id?: string | null;
15332
+ };
15333
+ Relationships: [{
15334
+ foreignKeyName: "time_logs_employee_id_fkey";
14609
15335
  columns: ["employee_id"];
14610
15336
  isOneToOne: false;
14611
- referencedRelation: "monteurs";
15337
+ referencedRelation: "profiles";
15338
+ referencedColumns: ["id"];
15339
+ }, {
15340
+ foreignKeyName: "time_logs_work_order_id_fkey";
15341
+ columns: ["work_order_id"];
15342
+ isOneToOne: false;
15343
+ referencedRelation: "work_orders";
14612
15344
  referencedColumns: ["id"];
14613
15345
  }];
14614
15346
  };
@@ -14647,7 +15379,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
14647
15379
  foreignKeyName: "time_off_entries_employee_id_fkey";
14648
15380
  columns: ["employee_id"];
14649
15381
  isOneToOne: false;
14650
- referencedRelation: "monteurs";
15382
+ referencedRelation: "profiles";
14651
15383
  referencedColumns: ["id"];
14652
15384
  }];
14653
15385
  };
@@ -14957,6 +15689,39 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
14957
15689
  };
14958
15690
  Relationships: [];
14959
15691
  };
15692
+ twinfield_cron_locks: {
15693
+ Row: {
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
+ Insert: {
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
+ Update: {
15714
+ created_at?: string;
15715
+ heartbeat_at?: string;
15716
+ job_name?: string;
15717
+ last_error?: string | null;
15718
+ last_finished_at?: string | null;
15719
+ locked_at?: string;
15720
+ run_id?: string;
15721
+ updated_at?: string;
15722
+ };
15723
+ Relationships: [];
15724
+ };
14960
15725
  twinfield_customers: {
14961
15726
  Row: {
14962
15727
  address: string | null;
@@ -15211,6 +15976,8 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
15211
15976
  };
15212
15977
  twinfield_invoice_settings: {
15213
15978
  Row: {
15979
+ auto_invoice_enabled: boolean;
15980
+ auto_invoice_trigger_statuses: string[];
15214
15981
  created_at: string;
15215
15982
  debtor_gl_account: string;
15216
15983
  default_credit_invoice_type: string | null;
@@ -15231,6 +15998,8 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
15231
15998
  vat_code_export: string | null;
15232
15999
  };
15233
16000
  Insert: {
16001
+ auto_invoice_enabled?: boolean;
16002
+ auto_invoice_trigger_statuses?: string[];
15234
16003
  created_at?: string;
15235
16004
  debtor_gl_account?: string;
15236
16005
  default_credit_invoice_type?: string | null;
@@ -15251,6 +16020,8 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
15251
16020
  vat_code_export?: string | null;
15252
16021
  };
15253
16022
  Update: {
16023
+ auto_invoice_enabled?: boolean;
16024
+ auto_invoice_trigger_statuses?: string[];
15254
16025
  created_at?: string;
15255
16026
  debtor_gl_account?: string;
15256
16027
  default_credit_invoice_type?: string | null;
@@ -15551,6 +16322,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
15551
16322
  twinfield_push_queue: {
15552
16323
  Row: {
15553
16324
  action: string;
16325
+ attempt_started_at: string | null;
15554
16326
  attempts: number;
15555
16327
  connection_id: string | null;
15556
16328
  created_at: string;
@@ -15567,6 +16339,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
15567
16339
  };
15568
16340
  Insert: {
15569
16341
  action?: string;
16342
+ attempt_started_at?: string | null;
15570
16343
  attempts?: number;
15571
16344
  connection_id?: string | null;
15572
16345
  created_at?: string;
@@ -15583,6 +16356,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
15583
16356
  };
15584
16357
  Update: {
15585
16358
  action?: string;
16359
+ attempt_started_at?: string | null;
15586
16360
  attempts?: number;
15587
16361
  connection_id?: string | null;
15588
16362
  created_at?: string;
@@ -15780,13 +16554,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
15780
16554
  workday_end?: string | null;
15781
16555
  workday_start?: string | null;
15782
16556
  };
15783
- Relationships: [{
15784
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
15785
- columns: ["monteur_id"];
15786
- isOneToOne: true;
15787
- referencedRelation: "monteurs";
15788
- referencedColumns: ["id"];
15789
- }];
16557
+ Relationships: [];
15790
16558
  };
15791
16559
  uren_entries: {
15792
16560
  Row: {
@@ -15832,12 +16600,6 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
15832
16600
  werkbon_id?: string | null;
15833
16601
  };
15834
16602
  Relationships: [{
15835
- foreignKeyName: "uren_entries_monteur_id_fkey";
15836
- columns: ["monteur_id"];
15837
- isOneToOne: false;
15838
- referencedRelation: "monteurs";
15839
- referencedColumns: ["id"];
15840
- }, {
15841
16603
  foreignKeyName: "uren_entries_werkbon_id_fkey";
15842
16604
  columns: ["werkbon_id"];
15843
16605
  isOneToOne: false;
@@ -16305,13 +17067,37 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
16305
17067
  submitted_at?: string | null;
16306
17068
  updated_at?: string;
16307
17069
  };
16308
- Relationships: [{
16309
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16310
- columns: ["monteur_id"];
16311
- isOneToOne: false;
16312
- referencedRelation: "monteurs";
16313
- referencedColumns: ["id"];
16314
- }];
17070
+ Relationships: [];
17071
+ };
17072
+ user_module_permissions: {
17073
+ Row: {
17074
+ created_at: string;
17075
+ feature_id: string;
17076
+ id: string;
17077
+ module_id: string;
17078
+ permission: string;
17079
+ updated_at: string;
17080
+ user_id: string;
17081
+ };
17082
+ Insert: {
17083
+ created_at?: string;
17084
+ feature_id?: string;
17085
+ id?: string;
17086
+ module_id: string;
17087
+ permission: string;
17088
+ updated_at?: string;
17089
+ user_id: string;
17090
+ };
17091
+ Update: {
17092
+ created_at?: string;
17093
+ feature_id?: string;
17094
+ id?: string;
17095
+ module_id?: string;
17096
+ permission?: string;
17097
+ updated_at?: string;
17098
+ user_id?: string;
17099
+ };
17100
+ Relationships: [];
16315
17101
  };
16316
17102
  user_roles: {
16317
17103
  Row: {
@@ -16340,6 +17126,51 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
16340
17126
  referencedColumns: ["id"];
16341
17127
  }];
16342
17128
  };
17129
+ van_inventories: {
17130
+ Row: {
17131
+ barcode: string | null;
17132
+ created_at: string;
17133
+ id: string;
17134
+ monteur_id: string | null;
17135
+ price_per_unit: number;
17136
+ product_name: string;
17137
+ quantity_current: number;
17138
+ quantity_min: number;
17139
+ unit: string;
17140
+ updated_at: string;
17141
+ };
17142
+ Insert: {
17143
+ barcode?: string | null;
17144
+ created_at?: string;
17145
+ id?: string;
17146
+ monteur_id?: string | null;
17147
+ price_per_unit?: number;
17148
+ product_name: string;
17149
+ quantity_current?: number;
17150
+ quantity_min?: number;
17151
+ unit?: string;
17152
+ updated_at?: string;
17153
+ };
17154
+ Update: {
17155
+ barcode?: string | null;
17156
+ created_at?: string;
17157
+ id?: string;
17158
+ monteur_id?: string | null;
17159
+ price_per_unit?: number;
17160
+ product_name?: string;
17161
+ quantity_current?: number;
17162
+ quantity_min?: number;
17163
+ unit?: string;
17164
+ updated_at?: string;
17165
+ };
17166
+ Relationships: [{
17167
+ foreignKeyName: "van_inventories_monteur_id_fkey";
17168
+ columns: ["monteur_id"];
17169
+ isOneToOne: false;
17170
+ referencedRelation: "profiles";
17171
+ referencedColumns: ["id"];
17172
+ }];
17173
+ };
16343
17174
  voorraad_custom_fields: {
16344
17175
  Row: {
16345
17176
  created_at: string;
@@ -17290,7 +18121,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
17290
18121
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17291
18122
  columns: ["monteur_id"];
17292
18123
  isOneToOne: false;
17293
- referencedRelation: "monteurs";
18124
+ referencedRelation: "profiles";
17294
18125
  referencedColumns: ["id"];
17295
18126
  }, {
17296
18127
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17300,6 +18131,60 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
17300
18131
  referencedColumns: ["id"];
17301
18132
  }];
17302
18133
  };
18134
+ work_order_photos: {
18135
+ Row: {
18136
+ ai_caption: string | null;
18137
+ ai_categorized_at: string | null;
18138
+ ai_labels: import("../integrations/supabase/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
+ Insert: {
18149
+ ai_caption?: string | null;
18150
+ ai_categorized_at?: string | null;
18151
+ ai_labels?: import("../integrations/supabase/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
+ Update: {
18162
+ ai_caption?: string | null;
18163
+ ai_categorized_at?: string | null;
18164
+ ai_labels?: import("../integrations/supabase/types").Json | null;
18165
+ caption?: string | null;
18166
+ created_at?: string;
18167
+ id?: string;
18168
+ monteur_id?: string | null;
18169
+ photo_type?: string;
18170
+ storage_path?: string;
18171
+ updated_at?: string;
18172
+ work_order_id?: string;
18173
+ };
18174
+ Relationships: [{
18175
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
18176
+ columns: ["monteur_id"];
18177
+ isOneToOne: false;
18178
+ referencedRelation: "profiles";
18179
+ referencedColumns: ["id"];
18180
+ }, {
18181
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
18182
+ columns: ["work_order_id"];
18183
+ isOneToOne: false;
18184
+ referencedRelation: "work_orders";
18185
+ referencedColumns: ["id"];
18186
+ }];
18187
+ };
17303
18188
  work_orders: {
17304
18189
  Row: {
17305
18190
  assigned_to: string | null;
@@ -17331,7 +18216,6 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
17331
18216
  scheduled_end_time: string | null;
17332
18217
  scheduled_start_time: string | null;
17333
18218
  status: string;
17334
- tenant_id: string;
17335
18219
  total_hours_worked: number | null;
17336
18220
  total_price: number | null;
17337
18221
  travel_time_minutes: number | null;
@@ -17369,7 +18253,6 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
17369
18253
  scheduled_end_time?: string | null;
17370
18254
  scheduled_start_time?: string | null;
17371
18255
  status?: string;
17372
- tenant_id: string;
17373
18256
  total_hours_worked?: number | null;
17374
18257
  total_price?: number | null;
17375
18258
  travel_time_minutes?: number | null;
@@ -17407,7 +18290,6 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
17407
18290
  scheduled_end_time?: string | null;
17408
18291
  scheduled_start_time?: string | null;
17409
18292
  status?: string;
17410
- tenant_id?: string;
17411
18293
  total_hours_worked?: number | null;
17412
18294
  total_price?: number | null;
17413
18295
  travel_time_minutes?: number | null;
@@ -17421,12 +18303,6 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
17421
18303
  isOneToOne: false;
17422
18304
  referencedRelation: "work_orders";
17423
18305
  referencedColumns: ["id"];
17424
- }, {
17425
- foreignKeyName: "work_orders_tenant_id_fkey";
17426
- columns: ["tenant_id"];
17427
- isOneToOne: false;
17428
- referencedRelation: "tenants";
17429
- referencedColumns: ["id"];
17430
18306
  }];
17431
18307
  };
17432
18308
  };
@@ -18111,6 +18987,19 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
18111
18987
  };
18112
18988
  Returns: undefined;
18113
18989
  };
18990
+ approve_mailbox_order_proposal: {
18991
+ Args: {
18992
+ p_custom_fields: import("../integrations/supabase/types").Json;
18993
+ p_customer_id: string;
18994
+ p_delivery_date: string;
18995
+ p_field_values?: import("../integrations/supabase/types").Json;
18996
+ p_lines: import("../integrations/supabase/types").Json;
18997
+ p_notes: string;
18998
+ p_proposal_id: string;
18999
+ p_reviewed_by: string;
19000
+ };
19001
+ Returns: import("../integrations/supabase/types").Json;
19002
+ };
18114
19003
  assign_cart_numbers: {
18115
19004
  Args: {
18116
19005
  p_carts: import("../integrations/supabase/types").Json;
@@ -18146,6 +19035,10 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
18146
19035
  processed_items: number;
18147
19036
  }[];
18148
19037
  };
19038
+ backfill_order_auto_invoice_queue: {
19039
+ Args: never;
19040
+ Returns: number;
19041
+ };
18149
19042
  calculate_layer_stock: {
18150
19043
  Args: {
18151
19044
  p_product_id: string;
@@ -18158,6 +19051,10 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
18158
19051
  };
18159
19052
  Returns: number;
18160
19053
  };
19054
+ can_manage_hours: {
19055
+ Args: never;
19056
+ Returns: boolean;
19057
+ };
18161
19058
  check_offer_product_available_stock: {
18162
19059
  Args: {
18163
19060
  p_campaign_product_id: string;
@@ -18180,7 +19077,78 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
18180
19077
  };
18181
19078
  Returns: import("../integrations/supabase/types").Json;
18182
19079
  };
18183
- claim_logistics_tasks: {
19080
+ claim_cloud_print_jobs: {
19081
+ Args: {
19082
+ _max?: number;
19083
+ };
19084
+ Returns: {
19085
+ agent_id: string | null;
19086
+ bron_job_id: string | null;
19087
+ created_at: string;
19088
+ documentnaam: string;
19089
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
19090
+ extern_job_id: string | null;
19091
+ foutmelding: string | null;
19092
+ gebruiker_id: string | null;
19093
+ gebruiker_naam: string;
19094
+ gestart_op: string | null;
19095
+ id: string;
19096
+ idempotentie_sleutel: string | null;
19097
+ is_herprint: boolean;
19098
+ kopieen: number;
19099
+ layout_id: string | null;
19100
+ opgepakt_op: string | null;
19101
+ paginas: number;
19102
+ payload: import("../integrations/supabase/types").Json;
19103
+ pdf_base64: string | null;
19104
+ pdf_url: string | null;
19105
+ pogingen: number;
19106
+ printer_id: string | null;
19107
+ render_html: string | null;
19108
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
19109
+ updated_at: string;
19110
+ volgende_poging: string | null;
19111
+ voltooid_op: string | null;
19112
+ }[];
19113
+ SetofOptions: {
19114
+ from: "*";
19115
+ to: "print_jobs";
19116
+ isOneToOne: false;
19117
+ isSetofReturn: true;
19118
+ };
19119
+ };
19120
+ claim_floriday_stock_queue: {
19121
+ Args: {
19122
+ p_limit?: number;
19123
+ p_worker?: string;
19124
+ };
19125
+ Returns: {
19126
+ attempts: number;
19127
+ connection_id: string;
19128
+ created_at: string;
19129
+ desired_available: boolean | null;
19130
+ gateway_attempt_id: string | null;
19131
+ id: string;
19132
+ last_error: string | null;
19133
+ locked_at: string | null;
19134
+ locked_by: string | null;
19135
+ next_attempt_at: string;
19136
+ number_of_pieces: number;
19137
+ sent_at: string | null;
19138
+ status: string;
19139
+ superseded_by: string | null;
19140
+ trade_item_id: string;
19141
+ updated_at: string;
19142
+ user_id: string;
19143
+ }[];
19144
+ SetofOptions: {
19145
+ from: "*";
19146
+ to: "floriday_continuous_stock_queue";
19147
+ isOneToOne: false;
19148
+ isSetofReturn: true;
19149
+ };
19150
+ };
19151
+ claim_logistics_tasks: {
18184
19152
  Args: {
18185
19153
  _limit?: number;
18186
19154
  _owner_module: string;
@@ -18239,22 +19207,27 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
18239
19207
  created_at: string;
18240
19208
  documentnaam: string;
18241
19209
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
19210
+ extern_job_id: string | null;
18242
19211
  foutmelding: string | null;
18243
19212
  gebruiker_id: string | null;
18244
19213
  gebruiker_naam: string;
18245
19214
  gestart_op: string | null;
18246
19215
  id: string;
19216
+ idempotentie_sleutel: string | null;
18247
19217
  is_herprint: boolean;
18248
19218
  kopieen: number;
18249
19219
  layout_id: string | null;
18250
19220
  opgepakt_op: string | null;
18251
19221
  paginas: number;
18252
19222
  payload: import("../integrations/supabase/types").Json;
19223
+ pdf_base64: string | null;
19224
+ pdf_url: string | null;
18253
19225
  pogingen: number;
18254
19226
  printer_id: string | null;
18255
19227
  render_html: string | null;
18256
19228
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18257
19229
  updated_at: string;
19230
+ volgende_poging: string | null;
18258
19231
  voltooid_op: string | null;
18259
19232
  }[];
18260
19233
  SetofOptions: {
@@ -18271,6 +19244,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
18271
19244
  };
18272
19245
  Returns: {
18273
19246
  action: string;
19247
+ attempt_started_at: string | null;
18274
19248
  attempts: number;
18275
19249
  connection_id: string | null;
18276
19250
  created_at: string;
@@ -18292,10 +19266,28 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
18292
19266
  isSetofReturn: true;
18293
19267
  };
18294
19268
  };
19269
+ cleanup_floriday_stock_queue: {
19270
+ Args: never;
19271
+ Returns: undefined;
19272
+ };
18295
19273
  cleanup_old_bookings: {
18296
19274
  Args: never;
18297
19275
  Returns: undefined;
18298
19276
  };
19277
+ cleanup_voorraad_module_history: {
19278
+ Args: never;
19279
+ Returns: undefined;
19280
+ };
19281
+ complete_floriday_stock_queue: {
19282
+ Args: {
19283
+ p_attempt_id?: string;
19284
+ p_error?: string;
19285
+ p_id: string;
19286
+ p_ok: boolean;
19287
+ p_permanent?: boolean;
19288
+ };
19289
+ Returns: undefined;
19290
+ };
18299
19291
  consume_bom_for_production: {
18300
19292
  Args: {
18301
19293
  p_connection_id: string;
@@ -18340,6 +19332,30 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
18340
19332
  agent_naam: string;
18341
19333
  }[];
18342
19334
  };
19335
+ consume_van_inventory: {
19336
+ Args: {
19337
+ p_inventory_id: string;
19338
+ p_quantity: number;
19339
+ };
19340
+ Returns: {
19341
+ barcode: string | null;
19342
+ created_at: string;
19343
+ id: string;
19344
+ monteur_id: string | null;
19345
+ price_per_unit: number;
19346
+ product_name: string;
19347
+ quantity_current: number;
19348
+ quantity_min: number;
19349
+ unit: string;
19350
+ updated_at: string;
19351
+ };
19352
+ SetofOptions: {
19353
+ from: "*";
19354
+ to: "van_inventories";
19355
+ isOneToOne: true;
19356
+ isSetofReturn: false;
19357
+ };
19358
+ };
18343
19359
  control_get_todays_carts: {
18344
19360
  Args: never;
18345
19361
  Returns: {
@@ -18407,6 +19423,20 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
18407
19423
  };
18408
19424
  Returns: import("../integrations/supabase/types").Json;
18409
19425
  };
19426
+ effective_module_permission: {
19427
+ Args: {
19428
+ _module_id: string;
19429
+ _user_id: string;
19430
+ };
19431
+ Returns: string;
19432
+ } | {
19433
+ Args: {
19434
+ _feature_id: string;
19435
+ _module_id: string;
19436
+ _user_id: string;
19437
+ };
19438
+ Returns: string;
19439
+ };
18410
19440
  email_auth_decrypt: {
18411
19441
  Args: {
18412
19442
  cipher: string;
@@ -18757,12 +19787,6 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
18757
19787
  Args: never;
18758
19788
  Returns: string;
18759
19789
  };
18760
- get_work_order_tenant_id: {
18761
- Args: {
18762
- wo_id: string;
18763
- };
18764
- Returns: string;
18765
- };
18766
19790
  has_module_permission: {
18767
19791
  Args: {
18768
19792
  _min: string;
@@ -18796,6 +19820,13 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
18796
19820
  };
18797
19821
  Returns: boolean;
18798
19822
  };
19823
+ is_time_log_week_locked: {
19824
+ Args: {
19825
+ p_employee_id: string;
19826
+ p_start_time: string;
19827
+ };
19828
+ Returns: boolean;
19829
+ };
18799
19830
  is_user_admin: {
18800
19831
  Args: never;
18801
19832
  Returns: boolean;
@@ -18810,13 +19841,14 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
18810
19841
  };
18811
19842
  Returns: boolean;
18812
19843
  };
18813
- list_monteurs: {
19844
+ list_medewerkers: {
18814
19845
  Args: never;
18815
19846
  Returns: {
18816
19847
  avatar_url: string;
18817
19848
  display_name: string;
18818
19849
  email: string;
18819
19850
  id: string;
19851
+ roles: string[];
18820
19852
  }[];
18821
19853
  };
18822
19854
  list_my_planning_items: {
@@ -19210,6 +20242,51 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
19210
20242
  isSetofReturn: false;
19211
20243
  };
19212
20244
  };
20245
+ logistics_floriday_claim_pushes: {
20246
+ Args: {
20247
+ _lease_seconds?: number;
20248
+ _limit?: number;
20249
+ _worker?: string;
20250
+ };
20251
+ Returns: {
20252
+ attempts: number;
20253
+ fulfillment_order_id: string;
20254
+ id: string;
20255
+ last_sent_hash: string;
20256
+ order_ref: string;
20257
+ payload: import("../integrations/supabase/types").Json;
20258
+ payload_hash: string;
20259
+ revision: number;
20260
+ }[];
20261
+ };
20262
+ logistics_floriday_finish_push: {
20263
+ Args: {
20264
+ _error?: string;
20265
+ _fulfillment_order_id?: string;
20266
+ _id: string;
20267
+ _max_age_hours?: number;
20268
+ _max_attempts?: number;
20269
+ _ok: boolean;
20270
+ _permanent?: boolean;
20271
+ _revision: number;
20272
+ _sent_hash?: string;
20273
+ };
20274
+ Returns: string;
20275
+ };
20276
+ logistics_floriday_prune_pushes: {
20277
+ Args: {
20278
+ _days?: number;
20279
+ };
20280
+ Returns: number;
20281
+ };
20282
+ logistics_floriday_queue_push: {
20283
+ Args: {
20284
+ _order_ref: string;
20285
+ _payload?: import("../integrations/supabase/types").Json;
20286
+ _payload_hash?: string;
20287
+ };
20288
+ Returns: string;
20289
+ };
19213
20290
  logistics_live_carriers: {
19214
20291
  Args: {
19215
20292
  p_order_ref: string;
@@ -19262,6 +20339,65 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
19262
20339
  };
19263
20340
  Returns: number;
19264
20341
  };
20342
+ logistics_plan_claim: {
20343
+ Args: {
20344
+ p_limit?: number;
20345
+ };
20346
+ Returns: {
20347
+ attempts: number;
20348
+ id: string;
20349
+ order_id: string;
20350
+ }[];
20351
+ };
20352
+ logistics_plan_enqueue: {
20353
+ Args: {
20354
+ p_order_id: string;
20355
+ p_reason?: string;
20356
+ };
20357
+ Returns: undefined;
20358
+ };
20359
+ logistics_plan_ensure_event: {
20360
+ Args: {
20361
+ p_order_id: string;
20362
+ };
20363
+ Returns: boolean;
20364
+ };
20365
+ logistics_plan_finish: {
20366
+ Args: {
20367
+ p_error?: string;
20368
+ p_id: string;
20369
+ };
20370
+ Returns: undefined;
20371
+ };
20372
+ logistics_plan_impact_orders: {
20373
+ Args: {
20374
+ p_order_id: string;
20375
+ };
20376
+ Returns: {
20377
+ buffer_id: string;
20378
+ order_id: string;
20379
+ plan_date: string;
20380
+ }[];
20381
+ };
20382
+ logistics_plan_kick: {
20383
+ Args: never;
20384
+ Returns: undefined;
20385
+ };
20386
+ logistics_plan_prune: {
20387
+ Args: never;
20388
+ Returns: number;
20389
+ };
20390
+ logistics_plan_release_stale: {
20391
+ Args: never;
20392
+ Returns: number;
20393
+ };
20394
+ logistics_plan_setting: {
20395
+ Args: {
20396
+ p_default: number;
20397
+ p_key: string;
20398
+ };
20399
+ Returns: number;
20400
+ };
19265
20401
  logistics_queue_capacity_email: {
19266
20402
  Args: {
19267
20403
  p_alert_id: string;
@@ -19500,6 +20636,14 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
19500
20636
  };
19501
20637
  Returns: undefined;
19502
20638
  };
20639
+ my_module_permissions: {
20640
+ Args: never;
20641
+ Returns: {
20642
+ feature_id: string;
20643
+ module_id: string;
20644
+ permission: string;
20645
+ }[];
20646
+ };
19503
20647
  next_manufacture_partij: {
19504
20648
  Args: {
19505
20649
  _tenant_id: string;
@@ -19550,6 +20694,13 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
19550
20694
  };
19551
20695
  Returns: boolean;
19552
20696
  };
20697
+ opruim_print_historie: {
20698
+ Args: never;
20699
+ Returns: {
20700
+ ontdaan: number;
20701
+ verwijderd: number;
20702
+ }[];
20703
+ };
19553
20704
  order_number_prefix: {
19554
20705
  Args: {
19555
20706
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -19557,6 +20708,15 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
19557
20708
  };
19558
20709
  Returns: string;
19559
20710
  };
20711
+ pick_active_printers: {
20712
+ Args: never;
20713
+ Returns: {
20714
+ id: string;
20715
+ locatie: string;
20716
+ naam: string;
20717
+ online: boolean;
20718
+ }[];
20719
+ };
19560
20720
  pick_claim_document: {
19561
20721
  Args: {
19562
20722
  _queue_item_id: string;
@@ -19743,6 +20903,52 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
19743
20903
  };
19744
20904
  Returns: undefined;
19745
20905
  };
20906
+ pick_reset_print: {
20907
+ Args: {
20908
+ _queue_item_id: string;
20909
+ _session_id: string;
20910
+ };
20911
+ Returns: {
20912
+ announced_at: string;
20913
+ assigned_user_id: string | null;
20914
+ barcode: string | null;
20915
+ cancelled_at: string | null;
20916
+ cart_count: number;
20917
+ completed_at: string | null;
20918
+ country_code: string | null;
20919
+ created_at: string;
20920
+ customer_name: string | null;
20921
+ delivery_address: string | null;
20922
+ document_number: string | null;
20923
+ document_type_id: string | null;
20924
+ due_at: string | null;
20925
+ id: string;
20926
+ is_urgent: boolean;
20927
+ line_count: number;
20928
+ order_number: string | null;
20929
+ order_type: string | null;
20930
+ payload: import("../integrations/supabase/types").Json;
20931
+ print_count: number;
20932
+ print_job_id: string | null;
20933
+ printed_at: string | null;
20934
+ printed_by: string | null;
20935
+ printer_id: string | null;
20936
+ priority: number;
20937
+ reference: string | null;
20938
+ route: string | null;
20939
+ screen_id: string | null;
20940
+ station_id: string | null;
20941
+ status_id: string | null;
20942
+ updated_at: string;
20943
+ warnings: import("../integrations/supabase/types").Json;
20944
+ };
20945
+ SetofOptions: {
20946
+ from: "*";
20947
+ to: "pick_queue";
20948
+ isOneToOne: true;
20949
+ isSetofReturn: false;
20950
+ };
20951
+ };
19746
20952
  pick_station_dashboard: {
19747
20953
  Args: never;
19748
20954
  Returns: {
@@ -19889,6 +21095,12 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
19889
21095
  };
19890
21096
  Returns: undefined;
19891
21097
  };
21098
+ reset_stalled_floriday_stock_queue: {
21099
+ Args: {
21100
+ p_include_failed?: boolean;
21101
+ };
21102
+ Returns: number;
21103
+ };
19892
21104
  resolve_group_allocation: {
19893
21105
  Args: {
19894
21106
  _needed: number;
@@ -19933,14 +21145,28 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
19933
21145
  };
19934
21146
  Returns: import("../integrations/supabase/types").Json;
19935
21147
  };
21148
+ ruim_print_jobs_op: {
21149
+ Args: {
21150
+ _bewaar_dagen?: number;
21151
+ };
21152
+ Returns: number;
21153
+ };
19936
21154
  run_floriday_continuous_stock_sync: {
19937
21155
  Args: never;
19938
21156
  Returns: undefined;
19939
21157
  };
21158
+ run_floriday_stock_queue_process: {
21159
+ Args: never;
21160
+ Returns: undefined;
21161
+ };
19940
21162
  run_logistics_tasks_dispatch: {
19941
21163
  Args: never;
19942
21164
  Returns: undefined;
19943
21165
  };
21166
+ run_print_queue_ticks: {
21167
+ Args: never;
21168
+ Returns: number;
21169
+ };
19944
21170
  run_twinfield_queue_tick: {
19945
21171
  Args: never;
19946
21172
  Returns: undefined;
@@ -20181,6 +21407,13 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
20181
21407
  };
20182
21408
  Returns: number;
20183
21409
  };
21410
+ schedule_floriday_stock_queue_process: {
21411
+ Args: {
21412
+ p_apikey: string;
21413
+ p_url: string;
21414
+ };
21415
+ Returns: number;
21416
+ };
20184
21417
  schedule_floriday_token_refresh: {
20185
21418
  Args: {
20186
21419
  p_apikey: string;
@@ -20287,6 +21520,16 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
20287
21520
  };
20288
21521
  Returns: string[];
20289
21522
  };
21523
+ switch_time_log: {
21524
+ Args: {
21525
+ p_employee_id: string;
21526
+ p_start_lat?: number;
21527
+ p_start_lng?: number;
21528
+ p_type: string;
21529
+ p_work_order_id?: string;
21530
+ };
21531
+ Returns: import("../integrations/supabase/types").Json;
21532
+ };
20290
21533
  sync_all_layer_stocks: {
20291
21534
  Args: never;
20292
21535
  Returns: undefined;
@@ -20321,6 +21564,15 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
20321
21564
  };
20322
21565
  Returns: undefined;
20323
21566
  };
21567
+ trade_item_stock_duplicates: {
21568
+ Args: never;
21569
+ Returns: {
21570
+ keys: string[];
21571
+ product_id: string;
21572
+ product_name: string;
21573
+ row_count: number;
21574
+ }[];
21575
+ };
20324
21576
  try_debtor_lock: {
20325
21577
  Args: {
20326
21578
  _group_key: string;
@@ -20328,6 +21580,24 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
20328
21580
  };
20329
21581
  Returns: boolean;
20330
21582
  };
21583
+ twinfield_cron_lock_acquire: {
21584
+ Args: {
21585
+ _job_name: string;
21586
+ _stale_seconds?: number;
21587
+ };
21588
+ Returns: boolean;
21589
+ };
21590
+ twinfield_cron_lock_release: {
21591
+ Args: {
21592
+ _error?: string;
21593
+ _job_name: string;
21594
+ };
21595
+ Returns: undefined;
21596
+ };
21597
+ twinfield_prune_push_queue: {
21598
+ Args: never;
21599
+ Returns: number;
21600
+ };
20331
21601
  twinfield_register_cron: {
20332
21602
  Args: {
20333
21603
  apikey?: string;
@@ -20370,7 +21640,7 @@ export declare const mirrorFloridayOrders: import("@tanstack/start-client-core")
20370
21640
  };
20371
21641
  Enums: {
20372
21642
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20373
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
21643
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20374
21644
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20375
21645
  doc_orientation: "portrait" | "landscape";
20376
21646
  exact_env: "staging" | "live";