@flowselections/logistiek-engine 1.0.6 → 1.0.8

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 (38) hide show
  1. package/dist-lib/components/LogistiekEnginePage.d.ts.map +1 -1
  2. package/dist-lib/components/LogistiekEnginePage.js +19 -4
  3. package/dist-lib/components/RuleEnginePage.d.ts +1 -1
  4. package/dist-lib/components/RuleEnginePage.d.ts.map +1 -1
  5. package/dist-lib/components/RuleEnginePage.js +22 -2
  6. package/dist-lib/components/StrategieDialog.d.ts.map +1 -1
  7. package/dist-lib/components/StrategieDialog.js +1 -1
  8. package/dist-lib/hooks/useLogistiekStrategieen.d.ts +2 -1
  9. package/dist-lib/hooks/useLogistiekStrategieen.d.ts.map +1 -1
  10. package/dist-lib/hooks/useLogistiekStrategieen.js +72 -2
  11. package/dist-lib/hooks/useRuleEngine.d.ts.map +1 -1
  12. package/dist-lib/hooks/useRuleEngine.js +3 -1
  13. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1092 -121
  14. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.d.ts +1092 -121
  16. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.server.d.ts +1092 -121
  18. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/types.d.ts +1122 -146
  20. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  21. package/dist-lib/lib/floridayDocuments.functions.d.ts +3270 -357
  22. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floridayPush.functions.d.ts +1092 -121
  24. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  26. package/dist-lib/lib/handlers/logistics-tick.server.js +12 -1
  27. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +5450 -595
  28. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +2180 -238
  30. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +1092 -121
  32. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  34. package/dist-lib/lib/modulePrompts.js +25 -0
  35. package/dist-lib/lib/planQueue.server.d.ts +17 -0
  36. package/dist-lib/lib/planQueue.server.d.ts.map +1 -0
  37. package/dist-lib/lib/planQueue.server.js +124 -0
  38. package/package.json +1 -1
@@ -872,6 +872,126 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
872
872
  };
873
873
  Relationships: [];
874
874
  };
875
+ cao_holidays: {
876
+ Row: {
877
+ created_at: string;
878
+ description: string | null;
879
+ holiday_date: string;
880
+ id: string;
881
+ updated_at: string;
882
+ };
883
+ Insert: {
884
+ created_at?: string;
885
+ description?: string | null;
886
+ holiday_date: string;
887
+ id?: string;
888
+ updated_at?: string;
889
+ };
890
+ Update: {
891
+ created_at?: string;
892
+ description?: string | null;
893
+ holiday_date?: string;
894
+ id?: string;
895
+ updated_at?: string;
896
+ };
897
+ Relationships: [];
898
+ };
899
+ cao_settings: {
900
+ Row: {
901
+ auto_break_after_hours: number;
902
+ auto_break_minutes: number;
903
+ auto_break_unpaid: boolean;
904
+ auto_stop_after_hours: number;
905
+ callout_fee: number;
906
+ created_at: string;
907
+ daily_regular_hours: number;
908
+ default_hourly_rate: number;
909
+ id: string;
910
+ materials_markup_percent: number;
911
+ max_daily_hours: number;
912
+ max_weekly_hours: number;
913
+ meal_allowance_amount: number;
914
+ overtime_pct_178: number;
915
+ overtime_pct_189: number;
916
+ overtime_pct_212: number;
917
+ reminder_after_hours: number;
918
+ standby_evening_amount: number;
919
+ standby_weekend_amount: number;
920
+ travel_cost_per_km: number | null;
921
+ travel_cost_threshold_km: number | null;
922
+ travel_counts_as_work: boolean;
923
+ travel_hourly_rate: number;
924
+ travel_rate_per_hour: number;
925
+ travel_threshold_minutes: number;
926
+ updated_at: string;
927
+ weekend_always_212: boolean;
928
+ window_end: string;
929
+ window_start: string;
930
+ };
931
+ Insert: {
932
+ auto_break_after_hours?: number;
933
+ auto_break_minutes?: number;
934
+ auto_break_unpaid?: boolean;
935
+ auto_stop_after_hours?: number;
936
+ callout_fee?: number;
937
+ created_at?: string;
938
+ daily_regular_hours?: number;
939
+ default_hourly_rate?: number;
940
+ id?: string;
941
+ materials_markup_percent?: number;
942
+ max_daily_hours?: number;
943
+ max_weekly_hours?: number;
944
+ meal_allowance_amount?: number;
945
+ overtime_pct_178?: number;
946
+ overtime_pct_189?: number;
947
+ overtime_pct_212?: number;
948
+ reminder_after_hours?: number;
949
+ standby_evening_amount?: number;
950
+ standby_weekend_amount?: number;
951
+ travel_cost_per_km?: number | null;
952
+ travel_cost_threshold_km?: number | null;
953
+ travel_counts_as_work?: boolean;
954
+ travel_hourly_rate?: number;
955
+ travel_rate_per_hour?: number;
956
+ travel_threshold_minutes?: number;
957
+ updated_at?: string;
958
+ weekend_always_212?: boolean;
959
+ window_end?: string;
960
+ window_start?: string;
961
+ };
962
+ Update: {
963
+ auto_break_after_hours?: number;
964
+ auto_break_minutes?: number;
965
+ auto_break_unpaid?: boolean;
966
+ auto_stop_after_hours?: number;
967
+ callout_fee?: number;
968
+ created_at?: string;
969
+ daily_regular_hours?: number;
970
+ default_hourly_rate?: number;
971
+ id?: string;
972
+ materials_markup_percent?: number;
973
+ max_daily_hours?: number;
974
+ max_weekly_hours?: number;
975
+ meal_allowance_amount?: number;
976
+ overtime_pct_178?: number;
977
+ overtime_pct_189?: number;
978
+ overtime_pct_212?: number;
979
+ reminder_after_hours?: number;
980
+ standby_evening_amount?: number;
981
+ standby_weekend_amount?: number;
982
+ travel_cost_per_km?: number | null;
983
+ travel_cost_threshold_km?: number | null;
984
+ travel_counts_as_work?: boolean;
985
+ travel_hourly_rate?: number;
986
+ travel_rate_per_hour?: number;
987
+ travel_threshold_minutes?: number;
988
+ updated_at?: string;
989
+ weekend_always_212?: boolean;
990
+ window_end?: string;
991
+ window_start?: string;
992
+ };
993
+ Relationships: [];
994
+ };
875
995
  carrier_shipping_rates: {
876
996
  Row: {
877
997
  carrier_id: string;
@@ -1684,7 +1804,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
1684
1804
  city: string | null;
1685
1805
  country: string | null;
1686
1806
  created_at: string;
1687
- customer_id: string | null;
1807
+ customer_id: string;
1688
1808
  external_key: string | null;
1689
1809
  external_provider: string | null;
1690
1810
  floriday_location_id: string | null;
@@ -1708,7 +1828,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
1708
1828
  city?: string | null;
1709
1829
  country?: string | null;
1710
1830
  created_at?: string;
1711
- customer_id?: string | null;
1831
+ customer_id: string;
1712
1832
  external_key?: string | null;
1713
1833
  external_provider?: string | null;
1714
1834
  floriday_location_id?: string | null;
@@ -1732,7 +1852,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
1732
1852
  city?: string | null;
1733
1853
  country?: string | null;
1734
1854
  created_at?: string;
1735
- customer_id?: string | null;
1855
+ customer_id?: string;
1736
1856
  external_key?: string | null;
1737
1857
  external_provider?: string | null;
1738
1858
  floriday_location_id?: string | null;
@@ -6480,6 +6600,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
6480
6600
  Row: {
6481
6601
  buyer_organization_id: string | null;
6482
6602
  connection_id: string;
6603
+ controlled_at: string | null;
6483
6604
  created_at: string;
6484
6605
  data: import("../integrations/supabase/types").Json;
6485
6606
  floriday_id: string;
@@ -6491,6 +6612,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
6491
6612
  Insert: {
6492
6613
  buyer_organization_id?: string | null;
6493
6614
  connection_id: string;
6615
+ controlled_at?: string | null;
6494
6616
  created_at?: string;
6495
6617
  data: import("../integrations/supabase/types").Json;
6496
6618
  floriday_id: string;
@@ -6502,6 +6624,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
6502
6624
  Update: {
6503
6625
  buyer_organization_id?: string | null;
6504
6626
  connection_id?: string;
6627
+ controlled_at?: string | null;
6505
6628
  created_at?: string;
6506
6629
  data?: import("../integrations/supabase/types").Json;
6507
6630
  floriday_id?: string;
@@ -7403,6 +7526,54 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
7403
7526
  };
7404
7527
  Relationships: [];
7405
7528
  };
7529
+ invoice_timing_settings: {
7530
+ Row: {
7531
+ anchor: string;
7532
+ business_days_only: boolean;
7533
+ created_at: string;
7534
+ enabled: boolean;
7535
+ id: string;
7536
+ offset_days: number;
7537
+ pickup_anchor: string;
7538
+ pickup_business_days_only: boolean;
7539
+ pickup_offset_days: number;
7540
+ pickup_time_of_day: string;
7541
+ singleton: boolean;
7542
+ time_of_day: string;
7543
+ updated_at: string;
7544
+ };
7545
+ Insert: {
7546
+ anchor?: string;
7547
+ business_days_only?: boolean;
7548
+ created_at?: string;
7549
+ enabled?: boolean;
7550
+ id?: string;
7551
+ offset_days?: number;
7552
+ pickup_anchor?: string;
7553
+ pickup_business_days_only?: boolean;
7554
+ pickup_offset_days?: number;
7555
+ pickup_time_of_day?: string;
7556
+ singleton?: boolean;
7557
+ time_of_day?: string;
7558
+ updated_at?: string;
7559
+ };
7560
+ Update: {
7561
+ anchor?: string;
7562
+ business_days_only?: boolean;
7563
+ created_at?: string;
7564
+ enabled?: boolean;
7565
+ id?: string;
7566
+ offset_days?: number;
7567
+ pickup_anchor?: string;
7568
+ pickup_business_days_only?: boolean;
7569
+ pickup_offset_days?: number;
7570
+ pickup_time_of_day?: string;
7571
+ singleton?: boolean;
7572
+ time_of_day?: string;
7573
+ updated_at?: string;
7574
+ };
7575
+ Relationships: [];
7576
+ };
7406
7577
  itk_contact_persons: {
7407
7578
  Row: {
7408
7579
  created_at: string;
@@ -7715,7 +7886,6 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
7715
7886
  start_date: string;
7716
7887
  start_time: string | null;
7717
7888
  status: string;
7718
- tenant_id: string;
7719
7889
  updated_at: string;
7720
7890
  user_id: string;
7721
7891
  };
@@ -7733,7 +7903,6 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
7733
7903
  start_date: string;
7734
7904
  start_time?: string | null;
7735
7905
  status?: string;
7736
- tenant_id?: string;
7737
7906
  updated_at?: string;
7738
7907
  user_id: string;
7739
7908
  };
@@ -7751,7 +7920,6 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
7751
7920
  start_date?: string;
7752
7921
  start_time?: string | null;
7753
7922
  status?: string;
7754
- tenant_id?: string;
7755
7923
  updated_at?: string;
7756
7924
  user_id?: string;
7757
7925
  };
@@ -7759,13 +7927,13 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
7759
7927
  foreignKeyName: "leave_requests_monteur_id_fkey";
7760
7928
  columns: ["monteur_id"];
7761
7929
  isOneToOne: false;
7762
- referencedRelation: "monteurs";
7930
+ referencedRelation: "profiles";
7763
7931
  referencedColumns: ["id"];
7764
7932
  }, {
7765
7933
  foreignKeyName: "leave_requests_user_id_fkey";
7766
7934
  columns: ["user_id"];
7767
7935
  isOneToOne: false;
7768
- referencedRelation: "monteurs";
7936
+ referencedRelation: "profiles";
7769
7937
  referencedColumns: ["id"];
7770
7938
  }];
7771
7939
  };
@@ -8633,6 +8801,45 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
8633
8801
  };
8634
8802
  Relationships: [];
8635
8803
  };
8804
+ logistics_plan_queue: {
8805
+ Row: {
8806
+ attempts: number;
8807
+ claimed_at: string | null;
8808
+ enqueued_at: string;
8809
+ error: string | null;
8810
+ id: string;
8811
+ next_attempt_at: string;
8812
+ order_id: string;
8813
+ reason: string;
8814
+ status: string;
8815
+ updated_at: string;
8816
+ };
8817
+ Insert: {
8818
+ attempts?: number;
8819
+ claimed_at?: string | null;
8820
+ enqueued_at?: string;
8821
+ error?: string | null;
8822
+ id?: string;
8823
+ next_attempt_at?: string;
8824
+ order_id: string;
8825
+ reason?: string;
8826
+ status?: string;
8827
+ updated_at?: string;
8828
+ };
8829
+ Update: {
8830
+ attempts?: number;
8831
+ claimed_at?: string | null;
8832
+ enqueued_at?: string;
8833
+ error?: string | null;
8834
+ id?: string;
8835
+ next_attempt_at?: string;
8836
+ order_id?: string;
8837
+ reason?: string;
8838
+ status?: string;
8839
+ updated_at?: string;
8840
+ };
8841
+ Relationships: [];
8842
+ };
8636
8843
  logistics_plan_runs: {
8637
8844
  Row: {
8638
8845
  created_at: string;
@@ -8708,6 +8915,24 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
8708
8915
  referencedColumns: ["id"];
8709
8916
  }];
8710
8917
  };
8918
+ logistics_plan_settings: {
8919
+ Row: {
8920
+ key: string;
8921
+ updated_at: string;
8922
+ value: string;
8923
+ };
8924
+ Insert: {
8925
+ key: string;
8926
+ updated_at?: string;
8927
+ value: string;
8928
+ };
8929
+ Update: {
8930
+ key?: string;
8931
+ updated_at?: string;
8932
+ value?: string;
8933
+ };
8934
+ Relationships: [];
8935
+ };
8711
8936
  logistics_rebuffer_state: {
8712
8937
  Row: {
8713
8938
  created_at: string;
@@ -9418,14 +9643,17 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
9418
9643
  };
9419
9644
  mailbox_messages: {
9420
9645
  Row: {
9646
+ attachments: import("../integrations/supabase/types").Json;
9421
9647
  body_html: string | null;
9422
9648
  body_text: string | null;
9649
+ cc_recipients: import("../integrations/supabase/types").Json;
9423
9650
  connection_id: string | null;
9424
9651
  created_at: string;
9425
9652
  error_message: string | null;
9426
9653
  external_id: string | null;
9427
9654
  from_email: string | null;
9428
9655
  from_name: string | null;
9656
+ has_attachments: boolean;
9429
9657
  id: string;
9430
9658
  message_id: string | null;
9431
9659
  profile_id: string | null;
@@ -9433,18 +9661,22 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
9433
9661
  received_at: string | null;
9434
9662
  status: string;
9435
9663
  subject: string | null;
9664
+ to_recipients: import("../integrations/supabase/types").Json;
9436
9665
  uid: number | null;
9437
9666
  updated_at: string;
9438
9667
  };
9439
9668
  Insert: {
9669
+ attachments?: import("../integrations/supabase/types").Json;
9440
9670
  body_html?: string | null;
9441
9671
  body_text?: string | null;
9672
+ cc_recipients?: import("../integrations/supabase/types").Json;
9442
9673
  connection_id?: string | null;
9443
9674
  created_at?: string;
9444
9675
  error_message?: string | null;
9445
9676
  external_id?: string | null;
9446
9677
  from_email?: string | null;
9447
9678
  from_name?: string | null;
9679
+ has_attachments?: boolean;
9448
9680
  id?: string;
9449
9681
  message_id?: string | null;
9450
9682
  profile_id?: string | null;
@@ -9452,18 +9684,22 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
9452
9684
  received_at?: string | null;
9453
9685
  status?: string;
9454
9686
  subject?: string | null;
9687
+ to_recipients?: import("../integrations/supabase/types").Json;
9455
9688
  uid?: number | null;
9456
9689
  updated_at?: string;
9457
9690
  };
9458
9691
  Update: {
9692
+ attachments?: import("../integrations/supabase/types").Json;
9459
9693
  body_html?: string | null;
9460
9694
  body_text?: string | null;
9695
+ cc_recipients?: import("../integrations/supabase/types").Json;
9461
9696
  connection_id?: string | null;
9462
9697
  created_at?: string;
9463
9698
  error_message?: string | null;
9464
9699
  external_id?: string | null;
9465
9700
  from_email?: string | null;
9466
9701
  from_name?: string | null;
9702
+ has_attachments?: boolean;
9467
9703
  id?: string;
9468
9704
  message_id?: string | null;
9469
9705
  profile_id?: string | null;
@@ -9471,6 +9707,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
9471
9707
  received_at?: string | null;
9472
9708
  status?: string;
9473
9709
  subject?: string | null;
9710
+ to_recipients?: import("../integrations/supabase/types").Json;
9474
9711
  uid?: number | null;
9475
9712
  updated_at?: string;
9476
9713
  };
@@ -9851,6 +10088,90 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
9851
10088
  };
9852
10089
  Relationships: [];
9853
10090
  };
10091
+ material_usage: {
10092
+ Row: {
10093
+ created_at: string;
10094
+ id: string;
10095
+ material_name: string;
10096
+ monteur_id: string | null;
10097
+ price_at_time: number;
10098
+ quantity_used: number;
10099
+ updated_at: string;
10100
+ van_inventory_id: string | null;
10101
+ work_order_id: string;
10102
+ };
10103
+ Insert: {
10104
+ created_at?: string;
10105
+ id?: string;
10106
+ material_name: string;
10107
+ monteur_id?: string | null;
10108
+ price_at_time?: number;
10109
+ quantity_used?: number;
10110
+ updated_at?: string;
10111
+ van_inventory_id?: string | null;
10112
+ work_order_id: string;
10113
+ };
10114
+ Update: {
10115
+ created_at?: string;
10116
+ id?: string;
10117
+ material_name?: string;
10118
+ monteur_id?: string | null;
10119
+ price_at_time?: number;
10120
+ quantity_used?: number;
10121
+ updated_at?: string;
10122
+ van_inventory_id?: string | null;
10123
+ work_order_id?: string;
10124
+ };
10125
+ Relationships: [{
10126
+ foreignKeyName: "material_usage_monteur_id_fkey";
10127
+ columns: ["monteur_id"];
10128
+ isOneToOne: false;
10129
+ referencedRelation: "profiles";
10130
+ referencedColumns: ["id"];
10131
+ }, {
10132
+ foreignKeyName: "material_usage_van_inventory_id_fkey";
10133
+ columns: ["van_inventory_id"];
10134
+ isOneToOne: false;
10135
+ referencedRelation: "van_inventories";
10136
+ referencedColumns: ["id"];
10137
+ }, {
10138
+ foreignKeyName: "material_usage_work_order_id_fkey";
10139
+ columns: ["work_order_id"];
10140
+ isOneToOne: false;
10141
+ referencedRelation: "work_orders";
10142
+ referencedColumns: ["id"];
10143
+ }];
10144
+ };
10145
+ module_features: {
10146
+ Row: {
10147
+ created_at: string;
10148
+ feature_id: string;
10149
+ id: string;
10150
+ is_active: boolean;
10151
+ last_seen_at: string;
10152
+ module_id: string;
10153
+ name: string;
10154
+ };
10155
+ Insert: {
10156
+ created_at?: string;
10157
+ feature_id: string;
10158
+ id?: string;
10159
+ is_active?: boolean;
10160
+ last_seen_at?: string;
10161
+ module_id: string;
10162
+ name: string;
10163
+ };
10164
+ Update: {
10165
+ created_at?: string;
10166
+ feature_id?: string;
10167
+ id?: string;
10168
+ is_active?: boolean;
10169
+ last_seen_at?: string;
10170
+ module_id?: string;
10171
+ name?: string;
10172
+ };
10173
+ Relationships: [];
10174
+ };
9854
10175
  module_permissions: {
9855
10176
  Row: {
9856
10177
  created_at: string;
@@ -9878,6 +10199,39 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
9878
10199
  };
9879
10200
  Relationships: [];
9880
10201
  };
10202
+ module_registry: {
10203
+ Row: {
10204
+ created_at: string;
10205
+ enforce: boolean;
10206
+ is_active: boolean;
10207
+ last_seen_at: string;
10208
+ module_id: string;
10209
+ name: string;
10210
+ shell_id: string | null;
10211
+ sort_order: number | null;
10212
+ };
10213
+ Insert: {
10214
+ created_at?: string;
10215
+ enforce?: boolean;
10216
+ is_active?: boolean;
10217
+ last_seen_at?: string;
10218
+ module_id: string;
10219
+ name: string;
10220
+ shell_id?: string | null;
10221
+ sort_order?: number | null;
10222
+ };
10223
+ Update: {
10224
+ created_at?: string;
10225
+ enforce?: boolean;
10226
+ is_active?: boolean;
10227
+ last_seen_at?: string;
10228
+ module_id?: string;
10229
+ name?: string;
10230
+ shell_id?: string | null;
10231
+ sort_order?: number | null;
10232
+ };
10233
+ Relationships: [];
10234
+ };
9881
10235
  module_runtime_config: {
9882
10236
  Row: {
9883
10237
  key: string;
@@ -9929,63 +10283,6 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
9929
10283
  };
9930
10284
  Relationships: [];
9931
10285
  };
9932
- monteurs: {
9933
- Row: {
9934
- avatar_url: string | null;
9935
- color: string | null;
9936
- created_at: string;
9937
- email: string | null;
9938
- id: string;
9939
- is_active: boolean;
9940
- leave_balance_hours: number;
9941
- name: string;
9942
- persnr: number | null;
9943
- phone: string | null;
9944
- role: string;
9945
- tenant_id: string;
9946
- updated_at: string;
9947
- user_id: string | null;
9948
- };
9949
- Insert: {
9950
- avatar_url?: string | null;
9951
- color?: string | null;
9952
- created_at?: string;
9953
- email?: string | null;
9954
- id?: string;
9955
- is_active?: boolean;
9956
- leave_balance_hours?: number;
9957
- name: string;
9958
- persnr?: number | null;
9959
- phone?: string | null;
9960
- role?: string;
9961
- tenant_id: string;
9962
- updated_at?: string;
9963
- user_id?: string | null;
9964
- };
9965
- Update: {
9966
- avatar_url?: string | null;
9967
- color?: string | null;
9968
- created_at?: string;
9969
- email?: string | null;
9970
- id?: string;
9971
- is_active?: boolean;
9972
- leave_balance_hours?: number;
9973
- name?: string;
9974
- persnr?: number | null;
9975
- phone?: string | null;
9976
- role?: string;
9977
- tenant_id?: string;
9978
- updated_at?: string;
9979
- user_id?: string | null;
9980
- };
9981
- Relationships: [{
9982
- foreignKeyName: "monteurs_tenant_id_fkey";
9983
- columns: ["tenant_id"];
9984
- isOneToOne: false;
9985
- referencedRelation: "tenants";
9986
- referencedColumns: ["id"];
9987
- }];
9988
- };
9989
10286
  nmbrs_component_mapping: {
9990
10287
  Row: {
9991
10288
  created_at: string;
@@ -10056,13 +10353,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
10056
10353
  nmbrs_employee_number?: string;
10057
10354
  updated_at?: string;
10058
10355
  };
10059
- Relationships: [{
10060
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
10061
- columns: ["monteur_id"];
10062
- isOneToOne: true;
10063
- referencedRelation: "monteurs";
10064
- referencedColumns: ["id"];
10065
- }];
10356
+ Relationships: [];
10066
10357
  };
10067
10358
  nmbrs_export_lines: {
10068
10359
  Row: {
@@ -10111,14 +10402,8 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
10111
10402
  wage_code?: string;
10112
10403
  };
10113
10404
  Relationships: [{
10114
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10115
- columns: ["monteur_id"];
10116
- isOneToOne: false;
10117
- referencedRelation: "monteurs";
10118
- referencedColumns: ["id"];
10119
- }, {
10120
- foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10121
- columns: ["run_id"];
10405
+ foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10406
+ columns: ["run_id"];
10122
10407
  isOneToOne: false;
10123
10408
  referencedRelation: "nmbrs_export_runs";
10124
10409
  referencedColumns: ["id"];
@@ -10937,6 +11222,45 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
10937
11222
  };
10938
11223
  Relationships: [];
10939
11224
  };
11225
+ order_invoice_links: {
11226
+ Row: {
11227
+ attempts: number;
11228
+ created_at: string;
11229
+ error_message: string | null;
11230
+ id: string;
11231
+ invoice_number: string | null;
11232
+ next_attempt_at: string;
11233
+ order_id: string;
11234
+ processed_at: string | null;
11235
+ status: string;
11236
+ updated_at: string;
11237
+ };
11238
+ Insert: {
11239
+ attempts?: number;
11240
+ created_at?: string;
11241
+ error_message?: string | null;
11242
+ id?: string;
11243
+ invoice_number?: string | null;
11244
+ next_attempt_at?: string;
11245
+ order_id: string;
11246
+ processed_at?: string | null;
11247
+ status?: string;
11248
+ updated_at?: string;
11249
+ };
11250
+ Update: {
11251
+ attempts?: number;
11252
+ created_at?: string;
11253
+ error_message?: string | null;
11254
+ id?: string;
11255
+ invoice_number?: string | null;
11256
+ next_attempt_at?: string;
11257
+ order_id?: string;
11258
+ processed_at?: string | null;
11259
+ status?: string;
11260
+ updated_at?: string;
11261
+ };
11262
+ Relationships: [];
11263
+ };
10940
11264
  order_items: {
10941
11265
  Row: {
10942
11266
  crates_per_layer: number | null;
@@ -11119,6 +11443,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
11119
11443
  delivery_date: string | null;
11120
11444
  floriday_sales_order_id: string | null;
11121
11445
  id: string;
11446
+ invoice_due_at: string | null;
11122
11447
  is_reservation: boolean;
11123
11448
  notes: string | null;
11124
11449
  order_date: string;
@@ -11140,6 +11465,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
11140
11465
  delivery_date?: string | null;
11141
11466
  floriday_sales_order_id?: string | null;
11142
11467
  id?: string;
11468
+ invoice_due_at?: string | null;
11143
11469
  is_reservation?: boolean;
11144
11470
  notes?: string | null;
11145
11471
  order_date?: string;
@@ -11161,6 +11487,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
11161
11487
  delivery_date?: string | null;
11162
11488
  floriday_sales_order_id?: string | null;
11163
11489
  id?: string;
11490
+ invoice_due_at?: string | null;
11164
11491
  is_reservation?: boolean;
11165
11492
  notes?: string | null;
11166
11493
  order_date?: string;
@@ -12458,6 +12785,72 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
12458
12785
  referencedColumns: ["id"];
12459
12786
  }];
12460
12787
  };
12788
+ print_queue_runners: {
12789
+ Row: {
12790
+ actief: boolean;
12791
+ basis_url: string;
12792
+ created_at: string;
12793
+ id: string;
12794
+ laatst_gezien: string;
12795
+ laatste_fout: string | null;
12796
+ laatste_request_id: number | null;
12797
+ mislukte_posts: number;
12798
+ tick_sleutel: string;
12799
+ updated_at: string;
12800
+ };
12801
+ Insert: {
12802
+ actief?: boolean;
12803
+ basis_url: string;
12804
+ created_at?: string;
12805
+ id?: string;
12806
+ laatst_gezien?: string;
12807
+ laatste_fout?: string | null;
12808
+ laatste_request_id?: number | null;
12809
+ mislukte_posts?: number;
12810
+ tick_sleutel?: string;
12811
+ updated_at?: string;
12812
+ };
12813
+ Update: {
12814
+ actief?: boolean;
12815
+ basis_url?: string;
12816
+ created_at?: string;
12817
+ id?: string;
12818
+ laatst_gezien?: string;
12819
+ laatste_fout?: string | null;
12820
+ laatste_request_id?: number | null;
12821
+ mislukte_posts?: number;
12822
+ tick_sleutel?: string;
12823
+ updated_at?: string;
12824
+ };
12825
+ Relationships: [];
12826
+ };
12827
+ print_queue_settings: {
12828
+ Row: {
12829
+ bewaar_bestanden_dagen: number;
12830
+ bewaar_opdrachten_dagen: number;
12831
+ created_at: string;
12832
+ dubbel_venster_minuten: number;
12833
+ id: string;
12834
+ updated_at: string;
12835
+ };
12836
+ Insert: {
12837
+ bewaar_bestanden_dagen?: number;
12838
+ bewaar_opdrachten_dagen?: number;
12839
+ created_at?: string;
12840
+ dubbel_venster_minuten?: number;
12841
+ id?: string;
12842
+ updated_at?: string;
12843
+ };
12844
+ Update: {
12845
+ bewaar_bestanden_dagen?: number;
12846
+ bewaar_opdrachten_dagen?: number;
12847
+ created_at?: string;
12848
+ dubbel_venster_minuten?: number;
12849
+ id?: string;
12850
+ updated_at?: string;
12851
+ };
12852
+ Relationships: [];
12853
+ };
12461
12854
  print_rules: {
12462
12855
  Row: {
12463
12856
  actief: boolean;
@@ -13934,6 +14327,96 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
13934
14327
  referencedColumns: ["id"];
13935
14328
  }];
13936
14329
  };
14330
+ role_assignments: {
14331
+ Row: {
14332
+ created_at: string;
14333
+ id: string;
14334
+ role_id: string;
14335
+ user_id: string;
14336
+ };
14337
+ Insert: {
14338
+ created_at?: string;
14339
+ id?: string;
14340
+ role_id: string;
14341
+ user_id: string;
14342
+ };
14343
+ Update: {
14344
+ created_at?: string;
14345
+ id?: string;
14346
+ role_id?: string;
14347
+ user_id?: string;
14348
+ };
14349
+ Relationships: [{
14350
+ foreignKeyName: "role_assignments_role_id_fkey";
14351
+ columns: ["role_id"];
14352
+ isOneToOne: false;
14353
+ referencedRelation: "roles";
14354
+ referencedColumns: ["id"];
14355
+ }];
14356
+ };
14357
+ role_permissions: {
14358
+ Row: {
14359
+ can_edit: boolean;
14360
+ can_view: boolean;
14361
+ feature_id: string;
14362
+ id: string;
14363
+ module_id: string;
14364
+ role_id: string;
14365
+ updated_at: string;
14366
+ };
14367
+ Insert: {
14368
+ can_edit?: boolean;
14369
+ can_view?: boolean;
14370
+ feature_id?: string;
14371
+ id?: string;
14372
+ module_id: string;
14373
+ role_id: string;
14374
+ updated_at?: string;
14375
+ };
14376
+ Update: {
14377
+ can_edit?: boolean;
14378
+ can_view?: boolean;
14379
+ feature_id?: string;
14380
+ id?: string;
14381
+ module_id?: string;
14382
+ role_id?: string;
14383
+ updated_at?: string;
14384
+ };
14385
+ Relationships: [{
14386
+ foreignKeyName: "role_permissions_role_id_fkey";
14387
+ columns: ["role_id"];
14388
+ isOneToOne: false;
14389
+ referencedRelation: "roles";
14390
+ referencedColumns: ["id"];
14391
+ }];
14392
+ };
14393
+ roles: {
14394
+ Row: {
14395
+ created_at: string;
14396
+ id: string;
14397
+ is_protected: boolean;
14398
+ key: string;
14399
+ name: string;
14400
+ updated_at: string;
14401
+ };
14402
+ Insert: {
14403
+ created_at?: string;
14404
+ id?: string;
14405
+ is_protected?: boolean;
14406
+ key: string;
14407
+ name: string;
14408
+ updated_at?: string;
14409
+ };
14410
+ Update: {
14411
+ created_at?: string;
14412
+ id?: string;
14413
+ is_protected?: boolean;
14414
+ key?: string;
14415
+ name?: string;
14416
+ updated_at?: string;
14417
+ };
14418
+ Relationships: [];
14419
+ };
13937
14420
  rooms: {
13938
14421
  Row: {
13939
14422
  capacity: number;
@@ -14603,6 +15086,54 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
14603
15086
  };
14604
15087
  Relationships: [];
14605
15088
  };
15089
+ time_compensation_entries: {
15090
+ Row: {
15091
+ created_at: string;
15092
+ employee_id: string;
15093
+ entry_date: string;
15094
+ id: string;
15095
+ km: number;
15096
+ meal_allowance: number;
15097
+ notes: string | null;
15098
+ standby_evening: number;
15099
+ standby_weekend: number;
15100
+ tvt_change: number;
15101
+ updated_at: string;
15102
+ };
15103
+ Insert: {
15104
+ created_at?: string;
15105
+ employee_id: string;
15106
+ entry_date: string;
15107
+ id?: string;
15108
+ km?: number;
15109
+ meal_allowance?: number;
15110
+ notes?: string | null;
15111
+ standby_evening?: number;
15112
+ standby_weekend?: number;
15113
+ tvt_change?: number;
15114
+ updated_at?: string;
15115
+ };
15116
+ Update: {
15117
+ created_at?: string;
15118
+ employee_id?: string;
15119
+ entry_date?: string;
15120
+ id?: string;
15121
+ km?: number;
15122
+ meal_allowance?: number;
15123
+ notes?: string | null;
15124
+ standby_evening?: number;
15125
+ standby_weekend?: number;
15126
+ tvt_change?: number;
15127
+ updated_at?: string;
15128
+ };
15129
+ Relationships: [{
15130
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
15131
+ columns: ["employee_id"];
15132
+ isOneToOne: false;
15133
+ referencedRelation: "profiles";
15134
+ referencedColumns: ["id"];
15135
+ }];
15136
+ };
14606
15137
  time_entries: {
14607
15138
  Row: {
14608
15139
  created_at: string;
@@ -14637,65 +15168,170 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
14637
15168
  undertime?: number;
14638
15169
  updated_at?: string;
14639
15170
  };
15171
+ Relationships: [];
15172
+ };
15173
+ time_log_week_approvals: {
15174
+ Row: {
15175
+ approved_at: string | null;
15176
+ approved_by: string | null;
15177
+ created_at: string;
15178
+ employee_id: string;
15179
+ id: string;
15180
+ locked: boolean;
15181
+ notes: string | null;
15182
+ status: string;
15183
+ submitted_at: string | null;
15184
+ updated_at: string;
15185
+ week_start: string;
15186
+ };
15187
+ Insert: {
15188
+ approved_at?: string | null;
15189
+ approved_by?: string | null;
15190
+ created_at?: string;
15191
+ employee_id: string;
15192
+ id?: string;
15193
+ locked?: boolean;
15194
+ notes?: string | null;
15195
+ status?: string;
15196
+ submitted_at?: string | null;
15197
+ updated_at?: string;
15198
+ week_start: string;
15199
+ };
15200
+ Update: {
15201
+ approved_at?: string | null;
15202
+ approved_by?: string | null;
15203
+ created_at?: string;
15204
+ employee_id?: string;
15205
+ id?: string;
15206
+ locked?: boolean;
15207
+ notes?: string | null;
15208
+ status?: string;
15209
+ submitted_at?: string | null;
15210
+ updated_at?: string;
15211
+ week_start?: string;
15212
+ };
14640
15213
  Relationships: [{
14641
- foreignKeyName: "time_entries_employee_id_fkey";
15214
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
14642
15215
  columns: ["employee_id"];
14643
15216
  isOneToOne: false;
14644
- referencedRelation: "monteurs";
15217
+ referencedRelation: "profiles";
14645
15218
  referencedColumns: ["id"];
14646
15219
  }];
14647
15220
  };
14648
15221
  time_logs: {
14649
15222
  Row: {
15223
+ auto_stop_reason: string | null;
15224
+ auto_stopped: boolean;
14650
15225
  created_at: string;
15226
+ current_latitude: number | null;
15227
+ current_longitude: number | null;
15228
+ current_position_updated_at: string | null;
14651
15229
  employee_id: string;
15230
+ end_latitude: number | null;
15231
+ end_longitude: number | null;
14652
15232
  end_time: string | null;
15233
+ eta_distance_km: number | null;
15234
+ eta_minutes: number | null;
15235
+ eta_updated_at: string | null;
15236
+ hour_category: string | null;
14653
15237
  id: string;
15238
+ last_reminder_at: string | null;
14654
15239
  notes: string | null;
14655
15240
  overtime_hours: number;
14656
15241
  overtime_type: string | null;
14657
15242
  regular_hours: number;
15243
+ reminder_count: number;
15244
+ requires_review: boolean;
15245
+ start_latitude: number | null;
15246
+ start_longitude: number | null;
14658
15247
  start_time: string;
14659
15248
  travel_cost: number | null;
14660
15249
  travel_distance_km: number | null;
15250
+ travel_duration_min: number | null;
15251
+ travel_time_minutes: number | null;
14661
15252
  type: string;
14662
15253
  updated_at: string;
15254
+ work_order_id: string | null;
14663
15255
  };
14664
15256
  Insert: {
15257
+ auto_stop_reason?: string | null;
15258
+ auto_stopped?: boolean;
14665
15259
  created_at?: string;
15260
+ current_latitude?: number | null;
15261
+ current_longitude?: number | null;
15262
+ current_position_updated_at?: string | null;
14666
15263
  employee_id: string;
15264
+ end_latitude?: number | null;
15265
+ end_longitude?: number | null;
14667
15266
  end_time?: string | null;
15267
+ eta_distance_km?: number | null;
15268
+ eta_minutes?: number | null;
15269
+ eta_updated_at?: string | null;
15270
+ hour_category?: string | null;
14668
15271
  id?: string;
15272
+ last_reminder_at?: string | null;
14669
15273
  notes?: string | null;
14670
15274
  overtime_hours?: number;
14671
15275
  overtime_type?: string | null;
14672
15276
  regular_hours?: number;
15277
+ reminder_count?: number;
15278
+ requires_review?: boolean;
15279
+ start_latitude?: number | null;
15280
+ start_longitude?: number | null;
14673
15281
  start_time?: string;
14674
15282
  travel_cost?: number | null;
14675
15283
  travel_distance_km?: number | null;
15284
+ travel_duration_min?: number | null;
15285
+ travel_time_minutes?: number | null;
14676
15286
  type: string;
14677
15287
  updated_at?: string;
15288
+ work_order_id?: string | null;
14678
15289
  };
14679
15290
  Update: {
15291
+ auto_stop_reason?: string | null;
15292
+ auto_stopped?: boolean;
14680
15293
  created_at?: string;
15294
+ current_latitude?: number | null;
15295
+ current_longitude?: number | null;
15296
+ current_position_updated_at?: string | null;
14681
15297
  employee_id?: string;
15298
+ end_latitude?: number | null;
15299
+ end_longitude?: number | null;
14682
15300
  end_time?: string | null;
15301
+ eta_distance_km?: number | null;
15302
+ eta_minutes?: number | null;
15303
+ eta_updated_at?: string | null;
15304
+ hour_category?: string | null;
14683
15305
  id?: string;
15306
+ last_reminder_at?: string | null;
14684
15307
  notes?: string | null;
14685
15308
  overtime_hours?: number;
14686
15309
  overtime_type?: string | null;
14687
15310
  regular_hours?: number;
15311
+ reminder_count?: number;
15312
+ requires_review?: boolean;
15313
+ start_latitude?: number | null;
15314
+ start_longitude?: number | null;
14688
15315
  start_time?: string;
14689
15316
  travel_cost?: number | null;
14690
15317
  travel_distance_km?: number | null;
15318
+ travel_duration_min?: number | null;
15319
+ travel_time_minutes?: number | null;
14691
15320
  type?: string;
14692
15321
  updated_at?: string;
15322
+ work_order_id?: string | null;
14693
15323
  };
14694
15324
  Relationships: [{
14695
15325
  foreignKeyName: "time_logs_employee_id_fkey";
14696
15326
  columns: ["employee_id"];
14697
15327
  isOneToOne: false;
14698
- referencedRelation: "monteurs";
15328
+ referencedRelation: "profiles";
15329
+ referencedColumns: ["id"];
15330
+ }, {
15331
+ foreignKeyName: "time_logs_work_order_id_fkey";
15332
+ columns: ["work_order_id"];
15333
+ isOneToOne: false;
15334
+ referencedRelation: "work_orders";
14699
15335
  referencedColumns: ["id"];
14700
15336
  }];
14701
15337
  };
@@ -14734,7 +15370,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
14734
15370
  foreignKeyName: "time_off_entries_employee_id_fkey";
14735
15371
  columns: ["employee_id"];
14736
15372
  isOneToOne: false;
14737
- referencedRelation: "monteurs";
15373
+ referencedRelation: "profiles";
14738
15374
  referencedColumns: ["id"];
14739
15375
  }];
14740
15376
  };
@@ -15044,6 +15680,39 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
15044
15680
  };
15045
15681
  Relationships: [];
15046
15682
  };
15683
+ twinfield_cron_locks: {
15684
+ Row: {
15685
+ created_at: string;
15686
+ heartbeat_at: string;
15687
+ job_name: string;
15688
+ last_error: string | null;
15689
+ last_finished_at: string | null;
15690
+ locked_at: string;
15691
+ run_id: string;
15692
+ updated_at: string;
15693
+ };
15694
+ Insert: {
15695
+ created_at?: string;
15696
+ heartbeat_at?: string;
15697
+ job_name: string;
15698
+ last_error?: string | null;
15699
+ last_finished_at?: string | null;
15700
+ locked_at?: string;
15701
+ run_id?: string;
15702
+ updated_at?: string;
15703
+ };
15704
+ Update: {
15705
+ created_at?: string;
15706
+ heartbeat_at?: string;
15707
+ job_name?: string;
15708
+ last_error?: string | null;
15709
+ last_finished_at?: string | null;
15710
+ locked_at?: string;
15711
+ run_id?: string;
15712
+ updated_at?: string;
15713
+ };
15714
+ Relationships: [];
15715
+ };
15047
15716
  twinfield_customers: {
15048
15717
  Row: {
15049
15718
  address: string | null;
@@ -15298,6 +15967,8 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
15298
15967
  };
15299
15968
  twinfield_invoice_settings: {
15300
15969
  Row: {
15970
+ auto_invoice_enabled: boolean;
15971
+ auto_invoice_trigger_statuses: string[];
15301
15972
  created_at: string;
15302
15973
  debtor_gl_account: string;
15303
15974
  default_credit_invoice_type: string | null;
@@ -15318,6 +15989,8 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
15318
15989
  vat_code_export: string | null;
15319
15990
  };
15320
15991
  Insert: {
15992
+ auto_invoice_enabled?: boolean;
15993
+ auto_invoice_trigger_statuses?: string[];
15321
15994
  created_at?: string;
15322
15995
  debtor_gl_account?: string;
15323
15996
  default_credit_invoice_type?: string | null;
@@ -15338,6 +16011,8 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
15338
16011
  vat_code_export?: string | null;
15339
16012
  };
15340
16013
  Update: {
16014
+ auto_invoice_enabled?: boolean;
16015
+ auto_invoice_trigger_statuses?: string[];
15341
16016
  created_at?: string;
15342
16017
  debtor_gl_account?: string;
15343
16018
  default_credit_invoice_type?: string | null;
@@ -15638,6 +16313,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
15638
16313
  twinfield_push_queue: {
15639
16314
  Row: {
15640
16315
  action: string;
16316
+ attempt_started_at: string | null;
15641
16317
  attempts: number;
15642
16318
  connection_id: string | null;
15643
16319
  created_at: string;
@@ -15654,6 +16330,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
15654
16330
  };
15655
16331
  Insert: {
15656
16332
  action?: string;
16333
+ attempt_started_at?: string | null;
15657
16334
  attempts?: number;
15658
16335
  connection_id?: string | null;
15659
16336
  created_at?: string;
@@ -15670,6 +16347,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
15670
16347
  };
15671
16348
  Update: {
15672
16349
  action?: string;
16350
+ attempt_started_at?: string | null;
15673
16351
  attempts?: number;
15674
16352
  connection_id?: string | null;
15675
16353
  created_at?: string;
@@ -15867,13 +16545,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
15867
16545
  workday_end?: string | null;
15868
16546
  workday_start?: string | null;
15869
16547
  };
15870
- Relationships: [{
15871
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
15872
- columns: ["monteur_id"];
15873
- isOneToOne: true;
15874
- referencedRelation: "monteurs";
15875
- referencedColumns: ["id"];
15876
- }];
16548
+ Relationships: [];
15877
16549
  };
15878
16550
  uren_entries: {
15879
16551
  Row: {
@@ -15919,12 +16591,6 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
15919
16591
  werkbon_id?: string | null;
15920
16592
  };
15921
16593
  Relationships: [{
15922
- foreignKeyName: "uren_entries_monteur_id_fkey";
15923
- columns: ["monteur_id"];
15924
- isOneToOne: false;
15925
- referencedRelation: "monteurs";
15926
- referencedColumns: ["id"];
15927
- }, {
15928
16594
  foreignKeyName: "uren_entries_werkbon_id_fkey";
15929
16595
  columns: ["werkbon_id"];
15930
16596
  isOneToOne: false;
@@ -16392,13 +17058,37 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
16392
17058
  submitted_at?: string | null;
16393
17059
  updated_at?: string;
16394
17060
  };
16395
- Relationships: [{
16396
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16397
- columns: ["monteur_id"];
16398
- isOneToOne: false;
16399
- referencedRelation: "monteurs";
16400
- referencedColumns: ["id"];
16401
- }];
17061
+ Relationships: [];
17062
+ };
17063
+ user_module_permissions: {
17064
+ Row: {
17065
+ created_at: string;
17066
+ feature_id: string;
17067
+ id: string;
17068
+ module_id: string;
17069
+ permission: string;
17070
+ updated_at: string;
17071
+ user_id: string;
17072
+ };
17073
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
16402
17092
  };
16403
17093
  user_roles: {
16404
17094
  Row: {
@@ -16427,6 +17117,51 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
16427
17117
  referencedColumns: ["id"];
16428
17118
  }];
16429
17119
  };
17120
+ van_inventories: {
17121
+ Row: {
17122
+ barcode: string | null;
17123
+ created_at: string;
17124
+ id: string;
17125
+ monteur_id: string | null;
17126
+ price_per_unit: number;
17127
+ product_name: string;
17128
+ quantity_current: number;
17129
+ quantity_min: number;
17130
+ unit: string;
17131
+ updated_at: string;
17132
+ };
17133
+ Insert: {
17134
+ barcode?: string | null;
17135
+ created_at?: string;
17136
+ id?: string;
17137
+ monteur_id?: string | null;
17138
+ price_per_unit?: number;
17139
+ product_name: string;
17140
+ quantity_current?: number;
17141
+ quantity_min?: number;
17142
+ unit?: string;
17143
+ updated_at?: string;
17144
+ };
17145
+ Update: {
17146
+ barcode?: string | null;
17147
+ created_at?: string;
17148
+ id?: string;
17149
+ monteur_id?: string | null;
17150
+ price_per_unit?: number;
17151
+ product_name?: string;
17152
+ quantity_current?: number;
17153
+ quantity_min?: number;
17154
+ unit?: string;
17155
+ updated_at?: string;
17156
+ };
17157
+ Relationships: [{
17158
+ foreignKeyName: "van_inventories_monteur_id_fkey";
17159
+ columns: ["monteur_id"];
17160
+ isOneToOne: false;
17161
+ referencedRelation: "profiles";
17162
+ referencedColumns: ["id"];
17163
+ }];
17164
+ };
16430
17165
  voorraad_custom_fields: {
16431
17166
  Row: {
16432
17167
  created_at: string;
@@ -17377,7 +18112,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
17377
18112
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17378
18113
  columns: ["monteur_id"];
17379
18114
  isOneToOne: false;
17380
- referencedRelation: "monteurs";
18115
+ referencedRelation: "profiles";
17381
18116
  referencedColumns: ["id"];
17382
18117
  }, {
17383
18118
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17387,6 +18122,60 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
17387
18122
  referencedColumns: ["id"];
17388
18123
  }];
17389
18124
  };
18125
+ work_order_photos: {
18126
+ Row: {
18127
+ ai_caption: string | null;
18128
+ ai_categorized_at: string | null;
18129
+ ai_labels: import("../integrations/supabase/types").Json | null;
18130
+ caption: string | null;
18131
+ created_at: string;
18132
+ id: string;
18133
+ monteur_id: string | null;
18134
+ photo_type: string;
18135
+ storage_path: string;
18136
+ updated_at: string;
18137
+ work_order_id: string;
18138
+ };
18139
+ Insert: {
18140
+ ai_caption?: string | null;
18141
+ ai_categorized_at?: string | null;
18142
+ ai_labels?: import("../integrations/supabase/types").Json | null;
18143
+ caption?: string | null;
18144
+ created_at?: string;
18145
+ id?: string;
18146
+ monteur_id?: string | null;
18147
+ photo_type?: string;
18148
+ storage_path: string;
18149
+ updated_at?: string;
18150
+ work_order_id: string;
18151
+ };
18152
+ Update: {
18153
+ ai_caption?: string | null;
18154
+ ai_categorized_at?: string | null;
18155
+ ai_labels?: import("../integrations/supabase/types").Json | null;
18156
+ caption?: string | null;
18157
+ created_at?: string;
18158
+ id?: string;
18159
+ monteur_id?: string | null;
18160
+ photo_type?: string;
18161
+ storage_path?: string;
18162
+ updated_at?: string;
18163
+ work_order_id?: string;
18164
+ };
18165
+ Relationships: [{
18166
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
18167
+ columns: ["monteur_id"];
18168
+ isOneToOne: false;
18169
+ referencedRelation: "profiles";
18170
+ referencedColumns: ["id"];
18171
+ }, {
18172
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
18173
+ columns: ["work_order_id"];
18174
+ isOneToOne: false;
18175
+ referencedRelation: "work_orders";
18176
+ referencedColumns: ["id"];
18177
+ }];
18178
+ };
17390
18179
  work_orders: {
17391
18180
  Row: {
17392
18181
  assigned_to: string | null;
@@ -17418,7 +18207,6 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
17418
18207
  scheduled_end_time: string | null;
17419
18208
  scheduled_start_time: string | null;
17420
18209
  status: string;
17421
- tenant_id: string;
17422
18210
  total_hours_worked: number | null;
17423
18211
  total_price: number | null;
17424
18212
  travel_time_minutes: number | null;
@@ -17456,7 +18244,6 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
17456
18244
  scheduled_end_time?: string | null;
17457
18245
  scheduled_start_time?: string | null;
17458
18246
  status?: string;
17459
- tenant_id: string;
17460
18247
  total_hours_worked?: number | null;
17461
18248
  total_price?: number | null;
17462
18249
  travel_time_minutes?: number | null;
@@ -17494,7 +18281,6 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
17494
18281
  scheduled_end_time?: string | null;
17495
18282
  scheduled_start_time?: string | null;
17496
18283
  status?: string;
17497
- tenant_id?: string;
17498
18284
  total_hours_worked?: number | null;
17499
18285
  total_price?: number | null;
17500
18286
  travel_time_minutes?: number | null;
@@ -17508,12 +18294,6 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
17508
18294
  isOneToOne: false;
17509
18295
  referencedRelation: "work_orders";
17510
18296
  referencedColumns: ["id"];
17511
- }, {
17512
- foreignKeyName: "work_orders_tenant_id_fkey";
17513
- columns: ["tenant_id"];
17514
- isOneToOne: false;
17515
- referencedRelation: "tenants";
17516
- referencedColumns: ["id"];
17517
18297
  }];
17518
18298
  };
17519
18299
  };
@@ -18198,6 +18978,19 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
18198
18978
  };
18199
18979
  Returns: undefined;
18200
18980
  };
18981
+ approve_mailbox_order_proposal: {
18982
+ Args: {
18983
+ p_custom_fields: import("../integrations/supabase/types").Json;
18984
+ p_customer_id: string;
18985
+ p_delivery_date: string;
18986
+ p_field_values?: import("../integrations/supabase/types").Json;
18987
+ p_lines: import("../integrations/supabase/types").Json;
18988
+ p_notes: string;
18989
+ p_proposal_id: string;
18990
+ p_reviewed_by: string;
18991
+ };
18992
+ Returns: import("../integrations/supabase/types").Json;
18993
+ };
18201
18994
  assign_cart_numbers: {
18202
18995
  Args: {
18203
18996
  p_carts: import("../integrations/supabase/types").Json;
@@ -18233,6 +19026,10 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
18233
19026
  processed_items: number;
18234
19027
  }[];
18235
19028
  };
19029
+ backfill_order_auto_invoice_queue: {
19030
+ Args: never;
19031
+ Returns: number;
19032
+ };
18236
19033
  calculate_layer_stock: {
18237
19034
  Args: {
18238
19035
  p_product_id: string;
@@ -18245,6 +19042,10 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
18245
19042
  };
18246
19043
  Returns: number;
18247
19044
  };
19045
+ can_manage_hours: {
19046
+ Args: never;
19047
+ Returns: boolean;
19048
+ };
18248
19049
  check_offer_product_available_stock: {
18249
19050
  Args: {
18250
19051
  p_campaign_product_id: string;
@@ -18434,6 +19235,7 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
18434
19235
  };
18435
19236
  Returns: {
18436
19237
  action: string;
19238
+ attempt_started_at: string | null;
18437
19239
  attempts: number;
18438
19240
  connection_id: string | null;
18439
19241
  created_at: string;
@@ -18463,6 +19265,10 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
18463
19265
  Args: never;
18464
19266
  Returns: undefined;
18465
19267
  };
19268
+ cleanup_voorraad_module_history: {
19269
+ Args: never;
19270
+ Returns: undefined;
19271
+ };
18466
19272
  complete_floriday_stock_queue: {
18467
19273
  Args: {
18468
19274
  p_attempt_id?: string;
@@ -18517,6 +19323,30 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
18517
19323
  agent_naam: string;
18518
19324
  }[];
18519
19325
  };
19326
+ consume_van_inventory: {
19327
+ Args: {
19328
+ p_inventory_id: string;
19329
+ p_quantity: number;
19330
+ };
19331
+ Returns: {
19332
+ barcode: string | null;
19333
+ created_at: string;
19334
+ id: string;
19335
+ monteur_id: string | null;
19336
+ price_per_unit: number;
19337
+ product_name: string;
19338
+ quantity_current: number;
19339
+ quantity_min: number;
19340
+ unit: string;
19341
+ updated_at: string;
19342
+ };
19343
+ SetofOptions: {
19344
+ from: "*";
19345
+ to: "van_inventories";
19346
+ isOneToOne: true;
19347
+ isSetofReturn: false;
19348
+ };
19349
+ };
18520
19350
  control_get_todays_carts: {
18521
19351
  Args: never;
18522
19352
  Returns: {
@@ -18584,6 +19414,20 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
18584
19414
  };
18585
19415
  Returns: import("../integrations/supabase/types").Json;
18586
19416
  };
19417
+ effective_module_permission: {
19418
+ Args: {
19419
+ _module_id: string;
19420
+ _user_id: string;
19421
+ };
19422
+ Returns: string;
19423
+ } | {
19424
+ Args: {
19425
+ _feature_id: string;
19426
+ _module_id: string;
19427
+ _user_id: string;
19428
+ };
19429
+ Returns: string;
19430
+ };
18587
19431
  email_auth_decrypt: {
18588
19432
  Args: {
18589
19433
  cipher: string;
@@ -18934,12 +19778,6 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
18934
19778
  Args: never;
18935
19779
  Returns: string;
18936
19780
  };
18937
- get_work_order_tenant_id: {
18938
- Args: {
18939
- wo_id: string;
18940
- };
18941
- Returns: string;
18942
- };
18943
19781
  has_module_permission: {
18944
19782
  Args: {
18945
19783
  _min: string;
@@ -18973,6 +19811,13 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
18973
19811
  };
18974
19812
  Returns: boolean;
18975
19813
  };
19814
+ is_time_log_week_locked: {
19815
+ Args: {
19816
+ p_employee_id: string;
19817
+ p_start_time: string;
19818
+ };
19819
+ Returns: boolean;
19820
+ };
18976
19821
  is_user_admin: {
18977
19822
  Args: never;
18978
19823
  Returns: boolean;
@@ -18987,13 +19832,14 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
18987
19832
  };
18988
19833
  Returns: boolean;
18989
19834
  };
18990
- list_monteurs: {
19835
+ list_medewerkers: {
18991
19836
  Args: never;
18992
19837
  Returns: {
18993
19838
  avatar_url: string;
18994
19839
  display_name: string;
18995
19840
  email: string;
18996
19841
  id: string;
19842
+ roles: string[];
18997
19843
  }[];
18998
19844
  };
18999
19845
  list_my_planning_items: {
@@ -19484,6 +20330,65 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
19484
20330
  };
19485
20331
  Returns: number;
19486
20332
  };
20333
+ logistics_plan_claim: {
20334
+ Args: {
20335
+ p_limit?: number;
20336
+ };
20337
+ Returns: {
20338
+ attempts: number;
20339
+ id: string;
20340
+ order_id: string;
20341
+ }[];
20342
+ };
20343
+ logistics_plan_enqueue: {
20344
+ Args: {
20345
+ p_order_id: string;
20346
+ p_reason?: string;
20347
+ };
20348
+ Returns: undefined;
20349
+ };
20350
+ logistics_plan_ensure_event: {
20351
+ Args: {
20352
+ p_order_id: string;
20353
+ };
20354
+ Returns: boolean;
20355
+ };
20356
+ logistics_plan_finish: {
20357
+ Args: {
20358
+ p_error?: string;
20359
+ p_id: string;
20360
+ };
20361
+ Returns: undefined;
20362
+ };
20363
+ logistics_plan_impact_orders: {
20364
+ Args: {
20365
+ p_order_id: string;
20366
+ };
20367
+ Returns: {
20368
+ buffer_id: string;
20369
+ order_id: string;
20370
+ plan_date: string;
20371
+ }[];
20372
+ };
20373
+ logistics_plan_kick: {
20374
+ Args: never;
20375
+ Returns: undefined;
20376
+ };
20377
+ logistics_plan_prune: {
20378
+ Args: never;
20379
+ Returns: number;
20380
+ };
20381
+ logistics_plan_release_stale: {
20382
+ Args: never;
20383
+ Returns: number;
20384
+ };
20385
+ logistics_plan_setting: {
20386
+ Args: {
20387
+ p_default: number;
20388
+ p_key: string;
20389
+ };
20390
+ Returns: number;
20391
+ };
19487
20392
  logistics_queue_capacity_email: {
19488
20393
  Args: {
19489
20394
  p_alert_id: string;
@@ -19722,6 +20627,14 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
19722
20627
  };
19723
20628
  Returns: undefined;
19724
20629
  };
20630
+ my_module_permissions: {
20631
+ Args: never;
20632
+ Returns: {
20633
+ feature_id: string;
20634
+ module_id: string;
20635
+ permission: string;
20636
+ }[];
20637
+ };
19725
20638
  next_manufacture_partij: {
19726
20639
  Args: {
19727
20640
  _tenant_id: string;
@@ -19772,6 +20685,13 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
19772
20685
  };
19773
20686
  Returns: boolean;
19774
20687
  };
20688
+ opruim_print_historie: {
20689
+ Args: never;
20690
+ Returns: {
20691
+ ontdaan: number;
20692
+ verwijderd: number;
20693
+ }[];
20694
+ };
19775
20695
  order_number_prefix: {
19776
20696
  Args: {
19777
20697
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -20166,6 +21086,12 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
20166
21086
  };
20167
21087
  Returns: undefined;
20168
21088
  };
21089
+ reset_stalled_floriday_stock_queue: {
21090
+ Args: {
21091
+ p_include_failed?: boolean;
21092
+ };
21093
+ Returns: number;
21094
+ };
20169
21095
  resolve_group_allocation: {
20170
21096
  Args: {
20171
21097
  _needed: number;
@@ -20220,10 +21146,18 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
20220
21146
  Args: never;
20221
21147
  Returns: undefined;
20222
21148
  };
21149
+ run_floriday_stock_queue_process: {
21150
+ Args: never;
21151
+ Returns: undefined;
21152
+ };
20223
21153
  run_logistics_tasks_dispatch: {
20224
21154
  Args: never;
20225
21155
  Returns: undefined;
20226
21156
  };
21157
+ run_print_queue_ticks: {
21158
+ Args: never;
21159
+ Returns: number;
21160
+ };
20227
21161
  run_twinfield_queue_tick: {
20228
21162
  Args: never;
20229
21163
  Returns: undefined;
@@ -20577,6 +21511,16 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
20577
21511
  };
20578
21512
  Returns: string[];
20579
21513
  };
21514
+ switch_time_log: {
21515
+ Args: {
21516
+ p_employee_id: string;
21517
+ p_start_lat?: number;
21518
+ p_start_lng?: number;
21519
+ p_type: string;
21520
+ p_work_order_id?: string;
21521
+ };
21522
+ Returns: import("../integrations/supabase/types").Json;
21523
+ };
20580
21524
  sync_all_layer_stocks: {
20581
21525
  Args: never;
20582
21526
  Returns: undefined;
@@ -20611,6 +21555,15 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
20611
21555
  };
20612
21556
  Returns: undefined;
20613
21557
  };
21558
+ trade_item_stock_duplicates: {
21559
+ Args: never;
21560
+ Returns: {
21561
+ keys: string[];
21562
+ product_id: string;
21563
+ product_name: string;
21564
+ row_count: number;
21565
+ }[];
21566
+ };
20614
21567
  try_debtor_lock: {
20615
21568
  Args: {
20616
21569
  _group_key: string;
@@ -20618,6 +21571,24 @@ export declare const retryFloridayPush: import("@tanstack/start-client-core").Re
20618
21571
  };
20619
21572
  Returns: boolean;
20620
21573
  };
21574
+ twinfield_cron_lock_acquire: {
21575
+ Args: {
21576
+ _job_name: string;
21577
+ _stale_seconds?: number;
21578
+ };
21579
+ Returns: boolean;
21580
+ };
21581
+ twinfield_cron_lock_release: {
21582
+ Args: {
21583
+ _error?: string;
21584
+ _job_name: string;
21585
+ };
21586
+ Returns: undefined;
21587
+ };
21588
+ twinfield_prune_push_queue: {
21589
+ Args: never;
21590
+ Returns: number;
21591
+ };
20621
21592
  twinfield_register_cron: {
20622
21593
  Args: {
20623
21594
  apikey?: string;