@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
@@ -872,6 +872,126 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
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 listAllowedLoadCarriers: import("@tanstack/start-client-cor
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 listAllowedLoadCarriers: import("@tanstack/start-client-cor
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 listAllowedLoadCarriers: import("@tanstack/start-client-cor
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;
@@ -5695,12 +5815,17 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
5695
5815
  attempts: number;
5696
5816
  connection_id: string;
5697
5817
  created_at: string;
5818
+ desired_available: boolean | null;
5698
5819
  gateway_attempt_id: string | null;
5699
5820
  id: string;
5700
5821
  last_error: string | null;
5822
+ locked_at: string | null;
5823
+ locked_by: string | null;
5824
+ next_attempt_at: string;
5701
5825
  number_of_pieces: number;
5702
5826
  sent_at: string | null;
5703
5827
  status: string;
5828
+ superseded_by: string | null;
5704
5829
  trade_item_id: string;
5705
5830
  updated_at: string;
5706
5831
  user_id: string;
@@ -5709,12 +5834,17 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
5709
5834
  attempts?: number;
5710
5835
  connection_id: string;
5711
5836
  created_at?: string;
5837
+ desired_available?: boolean | null;
5712
5838
  gateway_attempt_id?: string | null;
5713
5839
  id?: string;
5714
5840
  last_error?: string | null;
5841
+ locked_at?: string | null;
5842
+ locked_by?: string | null;
5843
+ next_attempt_at?: string;
5715
5844
  number_of_pieces?: number;
5716
5845
  sent_at?: string | null;
5717
5846
  status?: string;
5847
+ superseded_by?: string | null;
5718
5848
  trade_item_id: string;
5719
5849
  updated_at?: string;
5720
5850
  user_id: string;
@@ -5723,12 +5853,17 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
5723
5853
  attempts?: number;
5724
5854
  connection_id?: string;
5725
5855
  created_at?: string;
5856
+ desired_available?: boolean | null;
5726
5857
  gateway_attempt_id?: string | null;
5727
5858
  id?: string;
5728
5859
  last_error?: string | null;
5860
+ locked_at?: string | null;
5861
+ locked_by?: string | null;
5862
+ next_attempt_at?: string;
5729
5863
  number_of_pieces?: number;
5730
5864
  sent_at?: string | null;
5731
5865
  status?: string;
5866
+ superseded_by?: string | null;
5732
5867
  trade_item_id?: string;
5733
5868
  updated_at?: string;
5734
5869
  user_id?: string;
@@ -6465,6 +6600,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
6465
6600
  Row: {
6466
6601
  buyer_organization_id: string | null;
6467
6602
  connection_id: string;
6603
+ controlled_at: string | null;
6468
6604
  created_at: string;
6469
6605
  data: import("../integrations/supabase/types").Json;
6470
6606
  floriday_id: string;
@@ -6476,6 +6612,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
6476
6612
  Insert: {
6477
6613
  buyer_organization_id?: string | null;
6478
6614
  connection_id: string;
6615
+ controlled_at?: string | null;
6479
6616
  created_at?: string;
6480
6617
  data: import("../integrations/supabase/types").Json;
6481
6618
  floriday_id: string;
@@ -6487,6 +6624,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
6487
6624
  Update: {
6488
6625
  buyer_organization_id?: string | null;
6489
6626
  connection_id?: string;
6627
+ controlled_at?: string | null;
6490
6628
  created_at?: string;
6491
6629
  data?: import("../integrations/supabase/types").Json;
6492
6630
  floriday_id?: string;
@@ -7388,6 +7526,54 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
7388
7526
  };
7389
7527
  Relationships: [];
7390
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
+ };
7391
7577
  itk_contact_persons: {
7392
7578
  Row: {
7393
7579
  created_at: string;
@@ -7700,7 +7886,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
7700
7886
  start_date: string;
7701
7887
  start_time: string | null;
7702
7888
  status: string;
7703
- tenant_id: string;
7704
7889
  updated_at: string;
7705
7890
  user_id: string;
7706
7891
  };
@@ -7718,7 +7903,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
7718
7903
  start_date: string;
7719
7904
  start_time?: string | null;
7720
7905
  status?: string;
7721
- tenant_id?: string;
7722
7906
  updated_at?: string;
7723
7907
  user_id: string;
7724
7908
  };
@@ -7736,7 +7920,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
7736
7920
  start_date?: string;
7737
7921
  start_time?: string | null;
7738
7922
  status?: string;
7739
- tenant_id?: string;
7740
7923
  updated_at?: string;
7741
7924
  user_id?: string;
7742
7925
  };
@@ -7744,13 +7927,13 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
7744
7927
  foreignKeyName: "leave_requests_monteur_id_fkey";
7745
7928
  columns: ["monteur_id"];
7746
7929
  isOneToOne: false;
7747
- referencedRelation: "monteurs";
7930
+ referencedRelation: "profiles";
7748
7931
  referencedColumns: ["id"];
7749
7932
  }, {
7750
7933
  foreignKeyName: "leave_requests_user_id_fkey";
7751
7934
  columns: ["user_id"];
7752
7935
  isOneToOne: false;
7753
- referencedRelation: "monteurs";
7936
+ referencedRelation: "profiles";
7754
7937
  referencedColumns: ["id"];
7755
7938
  }];
7756
7939
  };
@@ -8477,6 +8660,69 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
8477
8660
  };
8478
8661
  Relationships: [];
8479
8662
  };
8663
+ logistics_floriday_pushes: {
8664
+ Row: {
8665
+ attempts: number;
8666
+ created_at: string;
8667
+ first_queued_at: string;
8668
+ fulfillment_order_id: string | null;
8669
+ id: string;
8670
+ last_error: string | null;
8671
+ last_error_at: string | null;
8672
+ last_sent_hash: string | null;
8673
+ locked_by: string | null;
8674
+ locked_until: string | null;
8675
+ next_attempt_at: string;
8676
+ order_ref: string;
8677
+ payload: import("../integrations/supabase/types").Json;
8678
+ payload_hash: string | null;
8679
+ revision: number;
8680
+ sent_at: string | null;
8681
+ status: string;
8682
+ updated_at: string;
8683
+ };
8684
+ Insert: {
8685
+ attempts?: number;
8686
+ created_at?: string;
8687
+ first_queued_at?: string;
8688
+ fulfillment_order_id?: string | null;
8689
+ id?: string;
8690
+ last_error?: string | null;
8691
+ last_error_at?: string | null;
8692
+ last_sent_hash?: string | null;
8693
+ locked_by?: string | null;
8694
+ locked_until?: string | null;
8695
+ next_attempt_at?: string;
8696
+ order_ref: string;
8697
+ payload?: import("../integrations/supabase/types").Json;
8698
+ payload_hash?: string | null;
8699
+ revision?: number;
8700
+ sent_at?: string | null;
8701
+ status?: string;
8702
+ updated_at?: string;
8703
+ };
8704
+ Update: {
8705
+ attempts?: number;
8706
+ created_at?: string;
8707
+ first_queued_at?: string;
8708
+ fulfillment_order_id?: string | null;
8709
+ id?: string;
8710
+ last_error?: string | null;
8711
+ last_error_at?: string | null;
8712
+ last_sent_hash?: string | null;
8713
+ locked_by?: string | null;
8714
+ locked_until?: string | null;
8715
+ next_attempt_at?: string;
8716
+ order_ref?: string;
8717
+ payload?: import("../integrations/supabase/types").Json;
8718
+ payload_hash?: string | null;
8719
+ revision?: number;
8720
+ sent_at?: string | null;
8721
+ status?: string;
8722
+ updated_at?: string;
8723
+ };
8724
+ Relationships: [];
8725
+ };
8480
8726
  logistics_formulas: {
8481
8727
  Row: {
8482
8728
  created_at: string;
@@ -8555,6 +8801,45 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
8555
8801
  };
8556
8802
  Relationships: [];
8557
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
+ };
8558
8843
  logistics_plan_runs: {
8559
8844
  Row: {
8560
8845
  created_at: string;
@@ -8630,6 +8915,24 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
8630
8915
  referencedColumns: ["id"];
8631
8916
  }];
8632
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
+ };
8633
8936
  logistics_rebuffer_state: {
8634
8937
  Row: {
8635
8938
  created_at: string;
@@ -9340,14 +9643,17 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
9340
9643
  };
9341
9644
  mailbox_messages: {
9342
9645
  Row: {
9646
+ attachments: import("../integrations/supabase/types").Json;
9343
9647
  body_html: string | null;
9344
9648
  body_text: string | null;
9649
+ cc_recipients: import("../integrations/supabase/types").Json;
9345
9650
  connection_id: string | null;
9346
9651
  created_at: string;
9347
9652
  error_message: string | null;
9348
9653
  external_id: string | null;
9349
9654
  from_email: string | null;
9350
9655
  from_name: string | null;
9656
+ has_attachments: boolean;
9351
9657
  id: string;
9352
9658
  message_id: string | null;
9353
9659
  profile_id: string | null;
@@ -9355,18 +9661,22 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
9355
9661
  received_at: string | null;
9356
9662
  status: string;
9357
9663
  subject: string | null;
9664
+ to_recipients: import("../integrations/supabase/types").Json;
9358
9665
  uid: number | null;
9359
9666
  updated_at: string;
9360
9667
  };
9361
9668
  Insert: {
9669
+ attachments?: import("../integrations/supabase/types").Json;
9362
9670
  body_html?: string | null;
9363
9671
  body_text?: string | null;
9672
+ cc_recipients?: import("../integrations/supabase/types").Json;
9364
9673
  connection_id?: string | null;
9365
9674
  created_at?: string;
9366
9675
  error_message?: string | null;
9367
9676
  external_id?: string | null;
9368
9677
  from_email?: string | null;
9369
9678
  from_name?: string | null;
9679
+ has_attachments?: boolean;
9370
9680
  id?: string;
9371
9681
  message_id?: string | null;
9372
9682
  profile_id?: string | null;
@@ -9374,18 +9684,22 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
9374
9684
  received_at?: string | null;
9375
9685
  status?: string;
9376
9686
  subject?: string | null;
9687
+ to_recipients?: import("../integrations/supabase/types").Json;
9377
9688
  uid?: number | null;
9378
9689
  updated_at?: string;
9379
9690
  };
9380
9691
  Update: {
9692
+ attachments?: import("../integrations/supabase/types").Json;
9381
9693
  body_html?: string | null;
9382
9694
  body_text?: string | null;
9695
+ cc_recipients?: import("../integrations/supabase/types").Json;
9383
9696
  connection_id?: string | null;
9384
9697
  created_at?: string;
9385
9698
  error_message?: string | null;
9386
9699
  external_id?: string | null;
9387
9700
  from_email?: string | null;
9388
9701
  from_name?: string | null;
9702
+ has_attachments?: boolean;
9389
9703
  id?: string;
9390
9704
  message_id?: string | null;
9391
9705
  profile_id?: string | null;
@@ -9393,6 +9707,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
9393
9707
  received_at?: string | null;
9394
9708
  status?: string;
9395
9709
  subject?: string | null;
9710
+ to_recipients?: import("../integrations/supabase/types").Json;
9396
9711
  uid?: number | null;
9397
9712
  updated_at?: string;
9398
9713
  };
@@ -9773,6 +10088,90 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
9773
10088
  };
9774
10089
  Relationships: [];
9775
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
+ };
9776
10175
  module_permissions: {
9777
10176
  Row: {
9778
10177
  created_at: string;
@@ -9800,6 +10199,39 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
9800
10199
  };
9801
10200
  Relationships: [];
9802
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
+ };
9803
10235
  module_runtime_config: {
9804
10236
  Row: {
9805
10237
  key: string;
@@ -9851,64 +10283,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
9851
10283
  };
9852
10284
  Relationships: [];
9853
10285
  };
9854
- monteurs: {
9855
- Row: {
9856
- avatar_url: string | null;
9857
- color: string | null;
9858
- created_at: string;
9859
- email: string | null;
9860
- id: string;
9861
- is_active: boolean;
9862
- leave_balance_hours: number;
9863
- name: string;
9864
- persnr: number | null;
9865
- phone: string | null;
9866
- role: string;
9867
- tenant_id: string;
9868
- updated_at: string;
9869
- user_id: string | null;
9870
- };
9871
- Insert: {
9872
- avatar_url?: string | null;
9873
- color?: string | null;
9874
- created_at?: string;
9875
- email?: string | null;
9876
- id?: string;
9877
- is_active?: boolean;
9878
- leave_balance_hours?: number;
9879
- name: string;
9880
- persnr?: number | null;
9881
- phone?: string | null;
9882
- role?: string;
9883
- tenant_id: string;
9884
- updated_at?: string;
9885
- user_id?: string | null;
9886
- };
9887
- Update: {
9888
- avatar_url?: string | null;
9889
- color?: string | null;
9890
- created_at?: string;
9891
- email?: string | null;
9892
- id?: string;
9893
- is_active?: boolean;
9894
- leave_balance_hours?: number;
9895
- name?: string;
9896
- persnr?: number | null;
9897
- phone?: string | null;
9898
- role?: string;
9899
- tenant_id?: string;
9900
- updated_at?: string;
9901
- user_id?: string | null;
9902
- };
9903
- Relationships: [{
9904
- foreignKeyName: "monteurs_tenant_id_fkey";
9905
- columns: ["tenant_id"];
9906
- isOneToOne: false;
9907
- referencedRelation: "tenants";
9908
- referencedColumns: ["id"];
9909
- }];
9910
- };
9911
- nmbrs_component_mapping: {
10286
+ nmbrs_component_mapping: {
9912
10287
  Row: {
9913
10288
  created_at: string;
9914
10289
  id: string;
@@ -9978,13 +10353,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
9978
10353
  nmbrs_employee_number?: string;
9979
10354
  updated_at?: string;
9980
10355
  };
9981
- Relationships: [{
9982
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
9983
- columns: ["monteur_id"];
9984
- isOneToOne: true;
9985
- referencedRelation: "monteurs";
9986
- referencedColumns: ["id"];
9987
- }];
10356
+ Relationships: [];
9988
10357
  };
9989
10358
  nmbrs_export_lines: {
9990
10359
  Row: {
@@ -10033,12 +10402,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
10033
10402
  wage_code?: string;
10034
10403
  };
10035
10404
  Relationships: [{
10036
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10037
- columns: ["monteur_id"];
10038
- isOneToOne: false;
10039
- referencedRelation: "monteurs";
10040
- referencedColumns: ["id"];
10041
- }, {
10042
10405
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10043
10406
  columns: ["run_id"];
10044
10407
  isOneToOne: false;
@@ -10859,6 +11222,45 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
10859
11222
  };
10860
11223
  Relationships: [];
10861
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
+ };
10862
11264
  order_items: {
10863
11265
  Row: {
10864
11266
  crates_per_layer: number | null;
@@ -11041,6 +11443,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
11041
11443
  delivery_date: string | null;
11042
11444
  floriday_sales_order_id: string | null;
11043
11445
  id: string;
11446
+ invoice_due_at: string | null;
11044
11447
  is_reservation: boolean;
11045
11448
  notes: string | null;
11046
11449
  order_date: string;
@@ -11062,6 +11465,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
11062
11465
  delivery_date?: string | null;
11063
11466
  floriday_sales_order_id?: string | null;
11064
11467
  id?: string;
11468
+ invoice_due_at?: string | null;
11065
11469
  is_reservation?: boolean;
11066
11470
  notes?: string | null;
11067
11471
  order_date?: string;
@@ -11083,6 +11487,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
11083
11487
  delivery_date?: string | null;
11084
11488
  floriday_sales_order_id?: string | null;
11085
11489
  id?: string;
11490
+ invoice_due_at?: string | null;
11086
11491
  is_reservation?: boolean;
11087
11492
  notes?: string | null;
11088
11493
  order_date?: string;
@@ -12279,22 +12684,27 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
12279
12684
  created_at: string;
12280
12685
  documentnaam: string;
12281
12686
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12687
+ extern_job_id: string | null;
12282
12688
  foutmelding: string | null;
12283
12689
  gebruiker_id: string | null;
12284
12690
  gebruiker_naam: string;
12285
12691
  gestart_op: string | null;
12286
12692
  id: string;
12693
+ idempotentie_sleutel: string | null;
12287
12694
  is_herprint: boolean;
12288
12695
  kopieen: number;
12289
12696
  layout_id: string | null;
12290
12697
  opgepakt_op: string | null;
12291
12698
  paginas: number;
12292
12699
  payload: import("../integrations/supabase/types").Json;
12700
+ pdf_base64: string | null;
12701
+ pdf_url: string | null;
12293
12702
  pogingen: number;
12294
12703
  printer_id: string | null;
12295
12704
  render_html: string | null;
12296
12705
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12297
12706
  updated_at: string;
12707
+ volgende_poging: string | null;
12298
12708
  voltooid_op: string | null;
12299
12709
  };
12300
12710
  Insert: {
@@ -12303,22 +12713,27 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
12303
12713
  created_at?: string;
12304
12714
  documentnaam?: string;
12305
12715
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12716
+ extern_job_id?: string | null;
12306
12717
  foutmelding?: string | null;
12307
12718
  gebruiker_id?: string | null;
12308
12719
  gebruiker_naam?: string;
12309
12720
  gestart_op?: string | null;
12310
12721
  id?: string;
12722
+ idempotentie_sleutel?: string | null;
12311
12723
  is_herprint?: boolean;
12312
12724
  kopieen?: number;
12313
12725
  layout_id?: string | null;
12314
12726
  opgepakt_op?: string | null;
12315
12727
  paginas?: number;
12316
12728
  payload?: import("../integrations/supabase/types").Json;
12729
+ pdf_base64?: string | null;
12730
+ pdf_url?: string | null;
12317
12731
  pogingen?: number;
12318
12732
  printer_id?: string | null;
12319
12733
  render_html?: string | null;
12320
12734
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12321
12735
  updated_at?: string;
12736
+ volgende_poging?: string | null;
12322
12737
  voltooid_op?: string | null;
12323
12738
  };
12324
12739
  Update: {
@@ -12327,22 +12742,27 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
12327
12742
  created_at?: string;
12328
12743
  documentnaam?: string;
12329
12744
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12745
+ extern_job_id?: string | null;
12330
12746
  foutmelding?: string | null;
12331
12747
  gebruiker_id?: string | null;
12332
12748
  gebruiker_naam?: string;
12333
12749
  gestart_op?: string | null;
12334
12750
  id?: string;
12751
+ idempotentie_sleutel?: string | null;
12335
12752
  is_herprint?: boolean;
12336
12753
  kopieen?: number;
12337
12754
  layout_id?: string | null;
12338
12755
  opgepakt_op?: string | null;
12339
12756
  paginas?: number;
12340
12757
  payload?: import("../integrations/supabase/types").Json;
12758
+ pdf_base64?: string | null;
12759
+ pdf_url?: string | null;
12341
12760
  pogingen?: number;
12342
12761
  printer_id?: string | null;
12343
12762
  render_html?: string | null;
12344
12763
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12345
12764
  updated_at?: string;
12765
+ volgende_poging?: string | null;
12346
12766
  voltooid_op?: string | null;
12347
12767
  };
12348
12768
  Relationships: [{
@@ -12365,6 +12785,72 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
12365
12785
  referencedColumns: ["id"];
12366
12786
  }];
12367
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
+ };
12368
12854
  print_rules: {
12369
12855
  Row: {
12370
12856
  actief: boolean;
@@ -12525,6 +13011,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
12525
13011
  agent_id: string | null;
12526
13012
  created_at: string;
12527
13013
  driver: string;
13014
+ extern_printer_id: string | null;
12528
13015
  id: string;
12529
13016
  ip_adres: string | null;
12530
13017
  laatst_gezien: string | null;
@@ -12546,6 +13033,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
12546
13033
  agent_id?: string | null;
12547
13034
  created_at?: string;
12548
13035
  driver?: string;
13036
+ extern_printer_id?: string | null;
12549
13037
  id?: string;
12550
13038
  ip_adres?: string | null;
12551
13039
  laatst_gezien?: string | null;
@@ -12567,6 +13055,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
12567
13055
  agent_id?: string | null;
12568
13056
  created_at?: string;
12569
13057
  driver?: string;
13058
+ extern_printer_id?: string | null;
12570
13059
  id?: string;
12571
13060
  ip_adres?: string | null;
12572
13061
  laatst_gezien?: string | null;
@@ -13838,6 +14327,96 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
13838
14327
  referencedColumns: ["id"];
13839
14328
  }];
13840
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
+ };
13841
14420
  rooms: {
13842
14421
  Row: {
13843
14422
  capacity: number;
@@ -14507,99 +15086,252 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
14507
15086
  };
14508
15087
  Relationships: [];
14509
15088
  };
14510
- time_entries: {
15089
+ time_compensation_entries: {
14511
15090
  Row: {
14512
15091
  created_at: string;
14513
15092
  employee_id: string;
14514
15093
  entry_date: string;
14515
- hours: number;
14516
15094
  id: string;
15095
+ km: number;
15096
+ meal_allowance: number;
14517
15097
  notes: string | null;
14518
- overtime: number;
14519
- undertime: number;
15098
+ standby_evening: number;
15099
+ standby_weekend: number;
15100
+ tvt_change: number;
14520
15101
  updated_at: string;
14521
15102
  };
14522
15103
  Insert: {
14523
15104
  created_at?: string;
14524
15105
  employee_id: string;
14525
15106
  entry_date: string;
14526
- hours?: number;
14527
15107
  id?: string;
15108
+ km?: number;
15109
+ meal_allowance?: number;
14528
15110
  notes?: string | null;
14529
- overtime?: number;
14530
- undertime?: number;
15111
+ standby_evening?: number;
15112
+ standby_weekend?: number;
15113
+ tvt_change?: number;
14531
15114
  updated_at?: string;
14532
15115
  };
14533
15116
  Update: {
14534
15117
  created_at?: string;
14535
15118
  employee_id?: string;
14536
15119
  entry_date?: string;
14537
- hours?: number;
14538
15120
  id?: string;
15121
+ km?: number;
15122
+ meal_allowance?: number;
14539
15123
  notes?: string | null;
14540
- overtime?: number;
14541
- undertime?: number;
15124
+ standby_evening?: number;
15125
+ standby_weekend?: number;
15126
+ tvt_change?: number;
14542
15127
  updated_at?: string;
14543
15128
  };
14544
15129
  Relationships: [{
14545
- foreignKeyName: "time_entries_employee_id_fkey";
15130
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
14546
15131
  columns: ["employee_id"];
14547
15132
  isOneToOne: false;
14548
- referencedRelation: "monteurs";
15133
+ referencedRelation: "profiles";
14549
15134
  referencedColumns: ["id"];
14550
15135
  }];
14551
15136
  };
14552
- time_logs: {
15137
+ time_entries: {
14553
15138
  Row: {
14554
15139
  created_at: string;
14555
15140
  employee_id: string;
14556
- end_time: string | null;
15141
+ entry_date: string;
15142
+ hours: number;
14557
15143
  id: string;
14558
15144
  notes: string | null;
14559
- overtime_hours: number;
14560
- overtime_type: string | null;
14561
- regular_hours: number;
14562
- start_time: string;
14563
- travel_cost: number | null;
14564
- travel_distance_km: number | null;
14565
- type: string;
15145
+ overtime: number;
15146
+ undertime: number;
14566
15147
  updated_at: string;
14567
15148
  };
14568
15149
  Insert: {
14569
15150
  created_at?: string;
14570
15151
  employee_id: string;
14571
- end_time?: string | null;
15152
+ entry_date: string;
15153
+ hours?: number;
14572
15154
  id?: string;
14573
15155
  notes?: string | null;
14574
- overtime_hours?: number;
14575
- overtime_type?: string | null;
14576
- regular_hours?: number;
14577
- start_time?: string;
14578
- travel_cost?: number | null;
14579
- travel_distance_km?: number | null;
14580
- type: string;
15156
+ overtime?: number;
15157
+ undertime?: number;
14581
15158
  updated_at?: string;
14582
15159
  };
14583
15160
  Update: {
14584
15161
  created_at?: string;
14585
15162
  employee_id?: string;
14586
- end_time?: string | null;
15163
+ entry_date?: string;
15164
+ hours?: number;
14587
15165
  id?: string;
14588
15166
  notes?: string | null;
14589
- overtime_hours?: number;
14590
- overtime_type?: string | null;
14591
- regular_hours?: number;
14592
- start_time?: string;
14593
- travel_cost?: number | null;
14594
- travel_distance_km?: number | null;
14595
- type?: string;
15167
+ overtime?: number;
15168
+ undertime?: number;
14596
15169
  updated_at?: string;
14597
15170
  };
14598
- Relationships: [{
14599
- foreignKeyName: "time_logs_employee_id_fkey";
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
+ };
15213
+ Relationships: [{
15214
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
15215
+ columns: ["employee_id"];
15216
+ isOneToOne: false;
15217
+ referencedRelation: "profiles";
15218
+ referencedColumns: ["id"];
15219
+ }];
15220
+ };
15221
+ time_logs: {
15222
+ Row: {
15223
+ auto_stop_reason: string | null;
15224
+ auto_stopped: boolean;
15225
+ created_at: string;
15226
+ current_latitude: number | null;
15227
+ current_longitude: number | null;
15228
+ current_position_updated_at: string | null;
15229
+ employee_id: string;
15230
+ end_latitude: number | null;
15231
+ end_longitude: number | null;
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;
15237
+ id: string;
15238
+ last_reminder_at: string | null;
15239
+ notes: string | null;
15240
+ overtime_hours: number;
15241
+ overtime_type: string | null;
15242
+ regular_hours: number;
15243
+ reminder_count: number;
15244
+ requires_review: boolean;
15245
+ start_latitude: number | null;
15246
+ start_longitude: number | null;
15247
+ start_time: string;
15248
+ travel_cost: number | null;
15249
+ travel_distance_km: number | null;
15250
+ travel_duration_min: number | null;
15251
+ travel_time_minutes: number | null;
15252
+ type: string;
15253
+ updated_at: string;
15254
+ work_order_id: string | null;
15255
+ };
15256
+ Insert: {
15257
+ auto_stop_reason?: string | null;
15258
+ auto_stopped?: boolean;
15259
+ created_at?: string;
15260
+ current_latitude?: number | null;
15261
+ current_longitude?: number | null;
15262
+ current_position_updated_at?: string | null;
15263
+ employee_id: string;
15264
+ end_latitude?: number | null;
15265
+ end_longitude?: number | null;
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;
15271
+ id?: string;
15272
+ last_reminder_at?: string | null;
15273
+ notes?: string | null;
15274
+ overtime_hours?: number;
15275
+ overtime_type?: string | null;
15276
+ regular_hours?: number;
15277
+ reminder_count?: number;
15278
+ requires_review?: boolean;
15279
+ start_latitude?: number | null;
15280
+ start_longitude?: number | null;
15281
+ start_time?: string;
15282
+ travel_cost?: number | null;
15283
+ travel_distance_km?: number | null;
15284
+ travel_duration_min?: number | null;
15285
+ travel_time_minutes?: number | null;
15286
+ type: string;
15287
+ updated_at?: string;
15288
+ work_order_id?: string | null;
15289
+ };
15290
+ Update: {
15291
+ auto_stop_reason?: string | null;
15292
+ auto_stopped?: boolean;
15293
+ created_at?: string;
15294
+ current_latitude?: number | null;
15295
+ current_longitude?: number | null;
15296
+ current_position_updated_at?: string | null;
15297
+ employee_id?: string;
15298
+ end_latitude?: number | null;
15299
+ end_longitude?: number | null;
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;
15305
+ id?: string;
15306
+ last_reminder_at?: string | null;
15307
+ notes?: string | null;
15308
+ overtime_hours?: number;
15309
+ overtime_type?: string | null;
15310
+ regular_hours?: number;
15311
+ reminder_count?: number;
15312
+ requires_review?: boolean;
15313
+ start_latitude?: number | null;
15314
+ start_longitude?: number | null;
15315
+ start_time?: string;
15316
+ travel_cost?: number | null;
15317
+ travel_distance_km?: number | null;
15318
+ travel_duration_min?: number | null;
15319
+ travel_time_minutes?: number | null;
15320
+ type?: string;
15321
+ updated_at?: string;
15322
+ work_order_id?: string | null;
15323
+ };
15324
+ Relationships: [{
15325
+ foreignKeyName: "time_logs_employee_id_fkey";
14600
15326
  columns: ["employee_id"];
14601
15327
  isOneToOne: false;
14602
- 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";
14603
15335
  referencedColumns: ["id"];
14604
15336
  }];
14605
15337
  };
@@ -14638,7 +15370,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
14638
15370
  foreignKeyName: "time_off_entries_employee_id_fkey";
14639
15371
  columns: ["employee_id"];
14640
15372
  isOneToOne: false;
14641
- referencedRelation: "monteurs";
15373
+ referencedRelation: "profiles";
14642
15374
  referencedColumns: ["id"];
14643
15375
  }];
14644
15376
  };
@@ -14948,6 +15680,39 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
14948
15680
  };
14949
15681
  Relationships: [];
14950
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
+ };
14951
15716
  twinfield_customers: {
14952
15717
  Row: {
14953
15718
  address: string | null;
@@ -15202,6 +15967,8 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
15202
15967
  };
15203
15968
  twinfield_invoice_settings: {
15204
15969
  Row: {
15970
+ auto_invoice_enabled: boolean;
15971
+ auto_invoice_trigger_statuses: string[];
15205
15972
  created_at: string;
15206
15973
  debtor_gl_account: string;
15207
15974
  default_credit_invoice_type: string | null;
@@ -15222,6 +15989,8 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
15222
15989
  vat_code_export: string | null;
15223
15990
  };
15224
15991
  Insert: {
15992
+ auto_invoice_enabled?: boolean;
15993
+ auto_invoice_trigger_statuses?: string[];
15225
15994
  created_at?: string;
15226
15995
  debtor_gl_account?: string;
15227
15996
  default_credit_invoice_type?: string | null;
@@ -15242,6 +16011,8 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
15242
16011
  vat_code_export?: string | null;
15243
16012
  };
15244
16013
  Update: {
16014
+ auto_invoice_enabled?: boolean;
16015
+ auto_invoice_trigger_statuses?: string[];
15245
16016
  created_at?: string;
15246
16017
  debtor_gl_account?: string;
15247
16018
  default_credit_invoice_type?: string | null;
@@ -15542,6 +16313,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
15542
16313
  twinfield_push_queue: {
15543
16314
  Row: {
15544
16315
  action: string;
16316
+ attempt_started_at: string | null;
15545
16317
  attempts: number;
15546
16318
  connection_id: string | null;
15547
16319
  created_at: string;
@@ -15558,6 +16330,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
15558
16330
  };
15559
16331
  Insert: {
15560
16332
  action?: string;
16333
+ attempt_started_at?: string | null;
15561
16334
  attempts?: number;
15562
16335
  connection_id?: string | null;
15563
16336
  created_at?: string;
@@ -15574,6 +16347,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
15574
16347
  };
15575
16348
  Update: {
15576
16349
  action?: string;
16350
+ attempt_started_at?: string | null;
15577
16351
  attempts?: number;
15578
16352
  connection_id?: string | null;
15579
16353
  created_at?: string;
@@ -15771,13 +16545,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
15771
16545
  workday_end?: string | null;
15772
16546
  workday_start?: string | null;
15773
16547
  };
15774
- Relationships: [{
15775
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
15776
- columns: ["monteur_id"];
15777
- isOneToOne: true;
15778
- referencedRelation: "monteurs";
15779
- referencedColumns: ["id"];
15780
- }];
16548
+ Relationships: [];
15781
16549
  };
15782
16550
  uren_entries: {
15783
16551
  Row: {
@@ -15823,12 +16591,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
15823
16591
  werkbon_id?: string | null;
15824
16592
  };
15825
16593
  Relationships: [{
15826
- foreignKeyName: "uren_entries_monteur_id_fkey";
15827
- columns: ["monteur_id"];
15828
- isOneToOne: false;
15829
- referencedRelation: "monteurs";
15830
- referencedColumns: ["id"];
15831
- }, {
15832
16594
  foreignKeyName: "uren_entries_werkbon_id_fkey";
15833
16595
  columns: ["werkbon_id"];
15834
16596
  isOneToOne: false;
@@ -16296,13 +17058,37 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
16296
17058
  submitted_at?: string | null;
16297
17059
  updated_at?: string;
16298
17060
  };
16299
- Relationships: [{
16300
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16301
- columns: ["monteur_id"];
16302
- isOneToOne: false;
16303
- referencedRelation: "monteurs";
16304
- referencedColumns: ["id"];
16305
- }];
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: [];
16306
17092
  };
16307
17093
  user_roles: {
16308
17094
  Row: {
@@ -16331,6 +17117,51 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
16331
17117
  referencedColumns: ["id"];
16332
17118
  }];
16333
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
+ };
16334
17165
  voorraad_custom_fields: {
16335
17166
  Row: {
16336
17167
  created_at: string;
@@ -17281,7 +18112,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
17281
18112
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17282
18113
  columns: ["monteur_id"];
17283
18114
  isOneToOne: false;
17284
- referencedRelation: "monteurs";
18115
+ referencedRelation: "profiles";
17285
18116
  referencedColumns: ["id"];
17286
18117
  }, {
17287
18118
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17291,6 +18122,60 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
17291
18122
  referencedColumns: ["id"];
17292
18123
  }];
17293
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
+ };
17294
18179
  work_orders: {
17295
18180
  Row: {
17296
18181
  assigned_to: string | null;
@@ -17322,7 +18207,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
17322
18207
  scheduled_end_time: string | null;
17323
18208
  scheduled_start_time: string | null;
17324
18209
  status: string;
17325
- tenant_id: string;
17326
18210
  total_hours_worked: number | null;
17327
18211
  total_price: number | null;
17328
18212
  travel_time_minutes: number | null;
@@ -17360,7 +18244,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
17360
18244
  scheduled_end_time?: string | null;
17361
18245
  scheduled_start_time?: string | null;
17362
18246
  status?: string;
17363
- tenant_id: string;
17364
18247
  total_hours_worked?: number | null;
17365
18248
  total_price?: number | null;
17366
18249
  travel_time_minutes?: number | null;
@@ -17398,7 +18281,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
17398
18281
  scheduled_end_time?: string | null;
17399
18282
  scheduled_start_time?: string | null;
17400
18283
  status?: string;
17401
- tenant_id?: string;
17402
18284
  total_hours_worked?: number | null;
17403
18285
  total_price?: number | null;
17404
18286
  travel_time_minutes?: number | null;
@@ -17412,12 +18294,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
17412
18294
  isOneToOne: false;
17413
18295
  referencedRelation: "work_orders";
17414
18296
  referencedColumns: ["id"];
17415
- }, {
17416
- foreignKeyName: "work_orders_tenant_id_fkey";
17417
- columns: ["tenant_id"];
17418
- isOneToOne: false;
17419
- referencedRelation: "tenants";
17420
- referencedColumns: ["id"];
17421
18297
  }];
17422
18298
  };
17423
18299
  };
@@ -18102,6 +18978,19 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
18102
18978
  };
18103
18979
  Returns: undefined;
18104
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
+ };
18105
18994
  assign_cart_numbers: {
18106
18995
  Args: {
18107
18996
  p_carts: import("../integrations/supabase/types").Json;
@@ -18137,6 +19026,10 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
18137
19026
  processed_items: number;
18138
19027
  }[];
18139
19028
  };
19029
+ backfill_order_auto_invoice_queue: {
19030
+ Args: never;
19031
+ Returns: number;
19032
+ };
18140
19033
  calculate_layer_stock: {
18141
19034
  Args: {
18142
19035
  p_product_id: string;
@@ -18149,6 +19042,10 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
18149
19042
  };
18150
19043
  Returns: number;
18151
19044
  };
19045
+ can_manage_hours: {
19046
+ Args: never;
19047
+ Returns: boolean;
19048
+ };
18152
19049
  check_offer_product_available_stock: {
18153
19050
  Args: {
18154
19051
  p_campaign_product_id: string;
@@ -18171,7 +19068,78 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
18171
19068
  };
18172
19069
  Returns: import("../integrations/supabase/types").Json;
18173
19070
  };
18174
- claim_logistics_tasks: {
19071
+ claim_cloud_print_jobs: {
19072
+ Args: {
19073
+ _max?: number;
19074
+ };
19075
+ Returns: {
19076
+ agent_id: string | null;
19077
+ bron_job_id: string | null;
19078
+ created_at: string;
19079
+ documentnaam: string;
19080
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
19081
+ extern_job_id: string | null;
19082
+ foutmelding: string | null;
19083
+ gebruiker_id: string | null;
19084
+ gebruiker_naam: string;
19085
+ gestart_op: string | null;
19086
+ id: string;
19087
+ idempotentie_sleutel: string | null;
19088
+ is_herprint: boolean;
19089
+ kopieen: number;
19090
+ layout_id: string | null;
19091
+ opgepakt_op: string | null;
19092
+ paginas: number;
19093
+ payload: import("../integrations/supabase/types").Json;
19094
+ pdf_base64: string | null;
19095
+ pdf_url: string | null;
19096
+ pogingen: number;
19097
+ printer_id: string | null;
19098
+ render_html: string | null;
19099
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
19100
+ updated_at: string;
19101
+ volgende_poging: string | null;
19102
+ voltooid_op: string | null;
19103
+ }[];
19104
+ SetofOptions: {
19105
+ from: "*";
19106
+ to: "print_jobs";
19107
+ isOneToOne: false;
19108
+ isSetofReturn: true;
19109
+ };
19110
+ };
19111
+ claim_floriday_stock_queue: {
19112
+ Args: {
19113
+ p_limit?: number;
19114
+ p_worker?: string;
19115
+ };
19116
+ Returns: {
19117
+ attempts: number;
19118
+ connection_id: string;
19119
+ created_at: string;
19120
+ desired_available: boolean | null;
19121
+ gateway_attempt_id: string | null;
19122
+ id: string;
19123
+ last_error: string | null;
19124
+ locked_at: string | null;
19125
+ locked_by: string | null;
19126
+ next_attempt_at: string;
19127
+ number_of_pieces: number;
19128
+ sent_at: string | null;
19129
+ status: string;
19130
+ superseded_by: string | null;
19131
+ trade_item_id: string;
19132
+ updated_at: string;
19133
+ user_id: string;
19134
+ }[];
19135
+ SetofOptions: {
19136
+ from: "*";
19137
+ to: "floriday_continuous_stock_queue";
19138
+ isOneToOne: false;
19139
+ isSetofReturn: true;
19140
+ };
19141
+ };
19142
+ claim_logistics_tasks: {
18175
19143
  Args: {
18176
19144
  _limit?: number;
18177
19145
  _owner_module: string;
@@ -18230,22 +19198,27 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
18230
19198
  created_at: string;
18231
19199
  documentnaam: string;
18232
19200
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
19201
+ extern_job_id: string | null;
18233
19202
  foutmelding: string | null;
18234
19203
  gebruiker_id: string | null;
18235
19204
  gebruiker_naam: string;
18236
19205
  gestart_op: string | null;
18237
19206
  id: string;
19207
+ idempotentie_sleutel: string | null;
18238
19208
  is_herprint: boolean;
18239
19209
  kopieen: number;
18240
19210
  layout_id: string | null;
18241
19211
  opgepakt_op: string | null;
18242
19212
  paginas: number;
18243
19213
  payload: import("../integrations/supabase/types").Json;
19214
+ pdf_base64: string | null;
19215
+ pdf_url: string | null;
18244
19216
  pogingen: number;
18245
19217
  printer_id: string | null;
18246
19218
  render_html: string | null;
18247
19219
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18248
19220
  updated_at: string;
19221
+ volgende_poging: string | null;
18249
19222
  voltooid_op: string | null;
18250
19223
  }[];
18251
19224
  SetofOptions: {
@@ -18262,6 +19235,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
18262
19235
  };
18263
19236
  Returns: {
18264
19237
  action: string;
19238
+ attempt_started_at: string | null;
18265
19239
  attempts: number;
18266
19240
  connection_id: string | null;
18267
19241
  created_at: string;
@@ -18283,10 +19257,28 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
18283
19257
  isSetofReturn: true;
18284
19258
  };
18285
19259
  };
19260
+ cleanup_floriday_stock_queue: {
19261
+ Args: never;
19262
+ Returns: undefined;
19263
+ };
18286
19264
  cleanup_old_bookings: {
18287
19265
  Args: never;
18288
19266
  Returns: undefined;
18289
19267
  };
19268
+ cleanup_voorraad_module_history: {
19269
+ Args: never;
19270
+ Returns: undefined;
19271
+ };
19272
+ complete_floriday_stock_queue: {
19273
+ Args: {
19274
+ p_attempt_id?: string;
19275
+ p_error?: string;
19276
+ p_id: string;
19277
+ p_ok: boolean;
19278
+ p_permanent?: boolean;
19279
+ };
19280
+ Returns: undefined;
19281
+ };
18290
19282
  consume_bom_for_production: {
18291
19283
  Args: {
18292
19284
  p_connection_id: string;
@@ -18331,6 +19323,30 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
18331
19323
  agent_naam: string;
18332
19324
  }[];
18333
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
+ };
18334
19350
  control_get_todays_carts: {
18335
19351
  Args: never;
18336
19352
  Returns: {
@@ -18398,6 +19414,20 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
18398
19414
  };
18399
19415
  Returns: import("../integrations/supabase/types").Json;
18400
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
+ };
18401
19431
  email_auth_decrypt: {
18402
19432
  Args: {
18403
19433
  cipher: string;
@@ -18748,12 +19778,6 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
18748
19778
  Args: never;
18749
19779
  Returns: string;
18750
19780
  };
18751
- get_work_order_tenant_id: {
18752
- Args: {
18753
- wo_id: string;
18754
- };
18755
- Returns: string;
18756
- };
18757
19781
  has_module_permission: {
18758
19782
  Args: {
18759
19783
  _min: string;
@@ -18787,6 +19811,13 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
18787
19811
  };
18788
19812
  Returns: boolean;
18789
19813
  };
19814
+ is_time_log_week_locked: {
19815
+ Args: {
19816
+ p_employee_id: string;
19817
+ p_start_time: string;
19818
+ };
19819
+ Returns: boolean;
19820
+ };
18790
19821
  is_user_admin: {
18791
19822
  Args: never;
18792
19823
  Returns: boolean;
@@ -18801,13 +19832,14 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
18801
19832
  };
18802
19833
  Returns: boolean;
18803
19834
  };
18804
- list_monteurs: {
19835
+ list_medewerkers: {
18805
19836
  Args: never;
18806
19837
  Returns: {
18807
19838
  avatar_url: string;
18808
19839
  display_name: string;
18809
19840
  email: string;
18810
19841
  id: string;
19842
+ roles: string[];
18811
19843
  }[];
18812
19844
  };
18813
19845
  list_my_planning_items: {
@@ -19201,6 +20233,51 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
19201
20233
  isSetofReturn: false;
19202
20234
  };
19203
20235
  };
20236
+ logistics_floriday_claim_pushes: {
20237
+ Args: {
20238
+ _lease_seconds?: number;
20239
+ _limit?: number;
20240
+ _worker?: string;
20241
+ };
20242
+ Returns: {
20243
+ attempts: number;
20244
+ fulfillment_order_id: string;
20245
+ id: string;
20246
+ last_sent_hash: string;
20247
+ order_ref: string;
20248
+ payload: import("../integrations/supabase/types").Json;
20249
+ payload_hash: string;
20250
+ revision: number;
20251
+ }[];
20252
+ };
20253
+ logistics_floriday_finish_push: {
20254
+ Args: {
20255
+ _error?: string;
20256
+ _fulfillment_order_id?: string;
20257
+ _id: string;
20258
+ _max_age_hours?: number;
20259
+ _max_attempts?: number;
20260
+ _ok: boolean;
20261
+ _permanent?: boolean;
20262
+ _revision: number;
20263
+ _sent_hash?: string;
20264
+ };
20265
+ Returns: string;
20266
+ };
20267
+ logistics_floriday_prune_pushes: {
20268
+ Args: {
20269
+ _days?: number;
20270
+ };
20271
+ Returns: number;
20272
+ };
20273
+ logistics_floriday_queue_push: {
20274
+ Args: {
20275
+ _order_ref: string;
20276
+ _payload?: import("../integrations/supabase/types").Json;
20277
+ _payload_hash?: string;
20278
+ };
20279
+ Returns: string;
20280
+ };
19204
20281
  logistics_live_carriers: {
19205
20282
  Args: {
19206
20283
  p_order_ref: string;
@@ -19253,6 +20330,65 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
19253
20330
  };
19254
20331
  Returns: number;
19255
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
+ };
19256
20392
  logistics_queue_capacity_email: {
19257
20393
  Args: {
19258
20394
  p_alert_id: string;
@@ -19491,6 +20627,14 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
19491
20627
  };
19492
20628
  Returns: undefined;
19493
20629
  };
20630
+ my_module_permissions: {
20631
+ Args: never;
20632
+ Returns: {
20633
+ feature_id: string;
20634
+ module_id: string;
20635
+ permission: string;
20636
+ }[];
20637
+ };
19494
20638
  next_manufacture_partij: {
19495
20639
  Args: {
19496
20640
  _tenant_id: string;
@@ -19541,6 +20685,13 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
19541
20685
  };
19542
20686
  Returns: boolean;
19543
20687
  };
20688
+ opruim_print_historie: {
20689
+ Args: never;
20690
+ Returns: {
20691
+ ontdaan: number;
20692
+ verwijderd: number;
20693
+ }[];
20694
+ };
19544
20695
  order_number_prefix: {
19545
20696
  Args: {
19546
20697
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -19548,6 +20699,15 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
19548
20699
  };
19549
20700
  Returns: string;
19550
20701
  };
20702
+ pick_active_printers: {
20703
+ Args: never;
20704
+ Returns: {
20705
+ id: string;
20706
+ locatie: string;
20707
+ naam: string;
20708
+ online: boolean;
20709
+ }[];
20710
+ };
19551
20711
  pick_claim_document: {
19552
20712
  Args: {
19553
20713
  _queue_item_id: string;
@@ -19734,6 +20894,52 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
19734
20894
  };
19735
20895
  Returns: undefined;
19736
20896
  };
20897
+ pick_reset_print: {
20898
+ Args: {
20899
+ _queue_item_id: string;
20900
+ _session_id: string;
20901
+ };
20902
+ Returns: {
20903
+ announced_at: string;
20904
+ assigned_user_id: string | null;
20905
+ barcode: string | null;
20906
+ cancelled_at: string | null;
20907
+ cart_count: number;
20908
+ completed_at: string | null;
20909
+ country_code: string | null;
20910
+ created_at: string;
20911
+ customer_name: string | null;
20912
+ delivery_address: string | null;
20913
+ document_number: string | null;
20914
+ document_type_id: string | null;
20915
+ due_at: string | null;
20916
+ id: string;
20917
+ is_urgent: boolean;
20918
+ line_count: number;
20919
+ order_number: string | null;
20920
+ order_type: string | null;
20921
+ payload: import("../integrations/supabase/types").Json;
20922
+ print_count: number;
20923
+ print_job_id: string | null;
20924
+ printed_at: string | null;
20925
+ printed_by: string | null;
20926
+ printer_id: string | null;
20927
+ priority: number;
20928
+ reference: string | null;
20929
+ route: string | null;
20930
+ screen_id: string | null;
20931
+ station_id: string | null;
20932
+ status_id: string | null;
20933
+ updated_at: string;
20934
+ warnings: import("../integrations/supabase/types").Json;
20935
+ };
20936
+ SetofOptions: {
20937
+ from: "*";
20938
+ to: "pick_queue";
20939
+ isOneToOne: true;
20940
+ isSetofReturn: false;
20941
+ };
20942
+ };
19737
20943
  pick_station_dashboard: {
19738
20944
  Args: never;
19739
20945
  Returns: {
@@ -19880,6 +21086,12 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
19880
21086
  };
19881
21087
  Returns: undefined;
19882
21088
  };
21089
+ reset_stalled_floriday_stock_queue: {
21090
+ Args: {
21091
+ p_include_failed?: boolean;
21092
+ };
21093
+ Returns: number;
21094
+ };
19883
21095
  resolve_group_allocation: {
19884
21096
  Args: {
19885
21097
  _needed: number;
@@ -19924,14 +21136,28 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
19924
21136
  };
19925
21137
  Returns: import("../integrations/supabase/types").Json;
19926
21138
  };
21139
+ ruim_print_jobs_op: {
21140
+ Args: {
21141
+ _bewaar_dagen?: number;
21142
+ };
21143
+ Returns: number;
21144
+ };
19927
21145
  run_floriday_continuous_stock_sync: {
19928
21146
  Args: never;
19929
21147
  Returns: undefined;
19930
21148
  };
21149
+ run_floriday_stock_queue_process: {
21150
+ Args: never;
21151
+ Returns: undefined;
21152
+ };
19931
21153
  run_logistics_tasks_dispatch: {
19932
21154
  Args: never;
19933
21155
  Returns: undefined;
19934
21156
  };
21157
+ run_print_queue_ticks: {
21158
+ Args: never;
21159
+ Returns: number;
21160
+ };
19935
21161
  run_twinfield_queue_tick: {
19936
21162
  Args: never;
19937
21163
  Returns: undefined;
@@ -20172,6 +21398,13 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
20172
21398
  };
20173
21399
  Returns: number;
20174
21400
  };
21401
+ schedule_floriday_stock_queue_process: {
21402
+ Args: {
21403
+ p_apikey: string;
21404
+ p_url: string;
21405
+ };
21406
+ Returns: number;
21407
+ };
20175
21408
  schedule_floriday_token_refresh: {
20176
21409
  Args: {
20177
21410
  p_apikey: string;
@@ -20278,6 +21511,16 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
20278
21511
  };
20279
21512
  Returns: string[];
20280
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
+ };
20281
21524
  sync_all_layer_stocks: {
20282
21525
  Args: never;
20283
21526
  Returns: undefined;
@@ -20312,6 +21555,15 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
20312
21555
  };
20313
21556
  Returns: undefined;
20314
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
+ };
20315
21567
  try_debtor_lock: {
20316
21568
  Args: {
20317
21569
  _group_key: string;
@@ -20319,6 +21571,24 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
20319
21571
  };
20320
21572
  Returns: boolean;
20321
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
+ };
20322
21592
  twinfield_register_cron: {
20323
21593
  Args: {
20324
21594
  apikey?: string;
@@ -20361,7 +21631,7 @@ export declare const listAllowedLoadCarriers: import("@tanstack/start-client-cor
20361
21631
  };
20362
21632
  Enums: {
20363
21633
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20364
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
21634
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20365
21635
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20366
21636
  doc_orientation: "portrait" | "landscape";
20367
21637
  exact_env: "staging" | "live";