@flowselections/floriday-verkoop-module 1.0.40 → 1.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist-lib/components/verkoop/EngineBufferCard.d.ts.map +1 -1
  2. package/dist-lib/components/verkoop/EngineBufferCard.js +2 -2
  3. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts +3 -0
  4. package/dist-lib/components/verkoop/InvoiceTimingSettings.d.ts.map +1 -0
  5. package/dist-lib/components/verkoop/InvoiceTimingSettings.js +54 -0
  6. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  7. package/dist-lib/components/verkoop/SalesOrdersTable.js +44 -91
  8. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  9. package/dist-lib/components/verkoop/VerkoopOrdersPage.js +59 -23
  10. package/dist-lib/index.d.ts +1 -0
  11. package/dist-lib/index.d.ts.map +1 -1
  12. package/dist-lib/index.js +3 -1
  13. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1429 -159
  14. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  15. package/dist-lib/integrations/supabase/client.d.ts +1429 -159
  16. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  17. package/dist-lib/integrations/supabase/client.server.d.ts +1429 -159
  18. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  19. package/dist-lib/integrations/supabase/types.d.ts +1436 -161
  20. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  21. package/dist-lib/integrations/supabase/types.js +12 -1
  22. package/dist-lib/lib/cart-lock.functions.d.ts +1429 -159
  23. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/cart-planning-settings.functions.d.ts +15410 -1440
  25. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/cart-replan.functions.d.ts +4290 -480
  27. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/create-order.functions.d.ts +42631 -1921
  29. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/create-order.functions.js +30 -0
  31. package/dist-lib/lib/cron/index.d.ts +1 -0
  32. package/dist-lib/lib/cron/index.d.ts.map +1 -1
  33. package/dist-lib/lib/cron/index.js +1 -0
  34. package/dist-lib/lib/cron/invoice-due.d.ts +4 -0
  35. package/dist-lib/lib/cron/invoice-due.d.ts.map +1 -0
  36. package/dist-lib/lib/cron/invoice-due.js +21 -0
  37. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +4290 -480
  38. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/floriday-fulfillment-status.server.d.ts +28 -0
  40. package/dist-lib/lib/floriday-fulfillment-status.server.d.ts.map +1 -0
  41. package/dist-lib/lib/floriday-fulfillment-status.server.js +91 -0
  42. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +1429 -159
  43. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/floriday-mirror.functions.d.ts +1429 -159
  45. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/floriday-mirror.functions.js +27 -4
  47. package/dist-lib/lib/floriday-public.functions.d.ts +9850 -960
  48. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/floriday-writes.functions.d.ts +7070 -720
  50. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  51. package/dist-lib/lib/invoice-timing.d.ts +38 -0
  52. package/dist-lib/lib/invoice-timing.d.ts.map +1 -0
  53. package/dist-lib/lib/invoice-timing.functions.d.ts +86633 -0
  54. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -0
  55. package/dist-lib/lib/invoice-timing.functions.js +88 -0
  56. package/dist-lib/lib/invoice-timing.js +139 -0
  57. package/dist-lib/lib/invoice-timing.server.d.ts +22 -0
  58. package/dist-lib/lib/invoice-timing.server.d.ts.map +1 -0
  59. package/dist-lib/lib/invoice-timing.server.js +154 -0
  60. package/dist-lib/lib/load-carriers.functions.d.ts +1429 -159
  61. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/logistics-engine.functions.d.ts +7072 -722
  63. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/logistics-stock.functions.d.ts +2900 -360
  65. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  66. package/dist-lib/lib/order-addresses.functions.d.ts +1429 -159
  67. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/order-buffers.functions.d.ts +4290 -480
  69. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/order-carrier.functions.d.ts +2900 -360
  71. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  72. package/dist-lib/lib/order-pickup.functions.d.ts +2900 -360
  73. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  74. package/dist-lib/lib/order-shipments.functions.d.ts +5680 -600
  75. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  76. package/dist-lib/lib/order-status.d.ts +33 -0
  77. package/dist-lib/lib/order-status.d.ts.map +1 -0
  78. package/dist-lib/lib/order-status.js +77 -0
  79. package/dist-lib/lib/salesorders-list.functions.d.ts +1430 -160
  80. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  81. package/dist-lib/lib/salesorders-list.functions.js +1 -1
  82. package/dist-lib/lib/salesorders-list.server.d.ts +2 -1
  83. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  84. package/dist-lib/lib/salesorders-list.server.js +145 -58
  85. package/dist-lib/lib/salesorders-mapping.d.ts +19 -0
  86. package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
  87. package/dist-lib/lib/salesorders-mapping.js +19 -7
  88. package/dist-lib/lib/salesorders.functions.d.ts +7070 -720
  89. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  90. package/dist-lib/lib/tradeitems.functions.d.ts +1429 -159
  91. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  92. package/dist-lib/lib/useSalesOrdersQuery.d.ts +2 -1
  93. package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
  94. package/package.json +10 -2
@@ -881,6 +881,126 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
881
881
  };
882
882
  Relationships: [];
883
883
  };
884
+ cao_holidays: {
885
+ Row: {
886
+ created_at: string;
887
+ description: string | null;
888
+ holiday_date: string;
889
+ id: string;
890
+ updated_at: string;
891
+ };
892
+ Insert: {
893
+ created_at?: string;
894
+ description?: string | null;
895
+ holiday_date: string;
896
+ id?: string;
897
+ updated_at?: string;
898
+ };
899
+ Update: {
900
+ created_at?: string;
901
+ description?: string | null;
902
+ holiday_date?: string;
903
+ id?: string;
904
+ updated_at?: string;
905
+ };
906
+ Relationships: [];
907
+ };
908
+ cao_settings: {
909
+ Row: {
910
+ auto_break_after_hours: number;
911
+ auto_break_minutes: number;
912
+ auto_break_unpaid: boolean;
913
+ auto_stop_after_hours: number;
914
+ callout_fee: number;
915
+ created_at: string;
916
+ daily_regular_hours: number;
917
+ default_hourly_rate: number;
918
+ id: string;
919
+ materials_markup_percent: number;
920
+ max_daily_hours: number;
921
+ max_weekly_hours: number;
922
+ meal_allowance_amount: number;
923
+ overtime_pct_178: number;
924
+ overtime_pct_189: number;
925
+ overtime_pct_212: number;
926
+ reminder_after_hours: number;
927
+ standby_evening_amount: number;
928
+ standby_weekend_amount: number;
929
+ travel_cost_per_km: number | null;
930
+ travel_cost_threshold_km: number | null;
931
+ travel_counts_as_work: boolean;
932
+ travel_hourly_rate: number;
933
+ travel_rate_per_hour: number;
934
+ travel_threshold_minutes: number;
935
+ updated_at: string;
936
+ weekend_always_212: boolean;
937
+ window_end: string;
938
+ window_start: string;
939
+ };
940
+ Insert: {
941
+ auto_break_after_hours?: number;
942
+ auto_break_minutes?: number;
943
+ auto_break_unpaid?: boolean;
944
+ auto_stop_after_hours?: number;
945
+ callout_fee?: number;
946
+ created_at?: string;
947
+ daily_regular_hours?: number;
948
+ default_hourly_rate?: number;
949
+ id?: string;
950
+ materials_markup_percent?: number;
951
+ max_daily_hours?: number;
952
+ max_weekly_hours?: number;
953
+ meal_allowance_amount?: number;
954
+ overtime_pct_178?: number;
955
+ overtime_pct_189?: number;
956
+ overtime_pct_212?: number;
957
+ reminder_after_hours?: number;
958
+ standby_evening_amount?: number;
959
+ standby_weekend_amount?: number;
960
+ travel_cost_per_km?: number | null;
961
+ travel_cost_threshold_km?: number | null;
962
+ travel_counts_as_work?: boolean;
963
+ travel_hourly_rate?: number;
964
+ travel_rate_per_hour?: number;
965
+ travel_threshold_minutes?: number;
966
+ updated_at?: string;
967
+ weekend_always_212?: boolean;
968
+ window_end?: string;
969
+ window_start?: string;
970
+ };
971
+ Update: {
972
+ auto_break_after_hours?: number;
973
+ auto_break_minutes?: number;
974
+ auto_break_unpaid?: boolean;
975
+ auto_stop_after_hours?: number;
976
+ callout_fee?: number;
977
+ created_at?: string;
978
+ daily_regular_hours?: number;
979
+ default_hourly_rate?: number;
980
+ id?: string;
981
+ materials_markup_percent?: number;
982
+ max_daily_hours?: number;
983
+ max_weekly_hours?: number;
984
+ meal_allowance_amount?: number;
985
+ overtime_pct_178?: number;
986
+ overtime_pct_189?: number;
987
+ overtime_pct_212?: number;
988
+ reminder_after_hours?: number;
989
+ standby_evening_amount?: number;
990
+ standby_weekend_amount?: number;
991
+ travel_cost_per_km?: number | null;
992
+ travel_cost_threshold_km?: number | null;
993
+ travel_counts_as_work?: boolean;
994
+ travel_hourly_rate?: number;
995
+ travel_rate_per_hour?: number;
996
+ travel_threshold_minutes?: number;
997
+ updated_at?: string;
998
+ weekend_always_212?: boolean;
999
+ window_end?: string;
1000
+ window_start?: string;
1001
+ };
1002
+ Relationships: [];
1003
+ };
884
1004
  carrier_shipping_rates: {
885
1005
  Row: {
886
1006
  carrier_id: string;
@@ -1693,7 +1813,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
1693
1813
  city: string | null;
1694
1814
  country: string | null;
1695
1815
  created_at: string;
1696
- customer_id: string | null;
1816
+ customer_id: string;
1697
1817
  external_key: string | null;
1698
1818
  external_provider: string | null;
1699
1819
  floriday_location_id: string | null;
@@ -1717,7 +1837,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
1717
1837
  city?: string | null;
1718
1838
  country?: string | null;
1719
1839
  created_at?: string;
1720
- customer_id?: string | null;
1840
+ customer_id: string;
1721
1841
  external_key?: string | null;
1722
1842
  external_provider?: string | null;
1723
1843
  floriday_location_id?: string | null;
@@ -1741,7 +1861,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
1741
1861
  city?: string | null;
1742
1862
  country?: string | null;
1743
1863
  created_at?: string;
1744
- customer_id?: string | null;
1864
+ customer_id?: string;
1745
1865
  external_key?: string | null;
1746
1866
  external_provider?: string | null;
1747
1867
  floriday_location_id?: string | null;
@@ -5704,12 +5824,17 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
5704
5824
  attempts: number;
5705
5825
  connection_id: string;
5706
5826
  created_at: string;
5827
+ desired_available: boolean | null;
5707
5828
  gateway_attempt_id: string | null;
5708
5829
  id: string;
5709
5830
  last_error: string | null;
5831
+ locked_at: string | null;
5832
+ locked_by: string | null;
5833
+ next_attempt_at: string;
5710
5834
  number_of_pieces: number;
5711
5835
  sent_at: string | null;
5712
5836
  status: string;
5837
+ superseded_by: string | null;
5713
5838
  trade_item_id: string;
5714
5839
  updated_at: string;
5715
5840
  user_id: string;
@@ -5718,12 +5843,17 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
5718
5843
  attempts?: number;
5719
5844
  connection_id: string;
5720
5845
  created_at?: string;
5846
+ desired_available?: boolean | null;
5721
5847
  gateway_attempt_id?: string | null;
5722
5848
  id?: string;
5723
5849
  last_error?: string | null;
5850
+ locked_at?: string | null;
5851
+ locked_by?: string | null;
5852
+ next_attempt_at?: string;
5724
5853
  number_of_pieces?: number;
5725
5854
  sent_at?: string | null;
5726
5855
  status?: string;
5856
+ superseded_by?: string | null;
5727
5857
  trade_item_id: string;
5728
5858
  updated_at?: string;
5729
5859
  user_id: string;
@@ -5732,12 +5862,17 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
5732
5862
  attempts?: number;
5733
5863
  connection_id?: string;
5734
5864
  created_at?: string;
5865
+ desired_available?: boolean | null;
5735
5866
  gateway_attempt_id?: string | null;
5736
5867
  id?: string;
5737
5868
  last_error?: string | null;
5869
+ locked_at?: string | null;
5870
+ locked_by?: string | null;
5871
+ next_attempt_at?: string;
5738
5872
  number_of_pieces?: number;
5739
5873
  sent_at?: string | null;
5740
5874
  status?: string;
5875
+ superseded_by?: string | null;
5741
5876
  trade_item_id?: string;
5742
5877
  updated_at?: string;
5743
5878
  user_id?: string;
@@ -6474,6 +6609,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
6474
6609
  Row: {
6475
6610
  buyer_organization_id: string | null;
6476
6611
  connection_id: string;
6612
+ controlled_at: string | null;
6477
6613
  created_at: string;
6478
6614
  data: import("../integrations/supabase/types").Json;
6479
6615
  floriday_id: string;
@@ -6485,6 +6621,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
6485
6621
  Insert: {
6486
6622
  buyer_organization_id?: string | null;
6487
6623
  connection_id: string;
6624
+ controlled_at?: string | null;
6488
6625
  created_at?: string;
6489
6626
  data: import("../integrations/supabase/types").Json;
6490
6627
  floriday_id: string;
@@ -6496,6 +6633,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
6496
6633
  Update: {
6497
6634
  buyer_organization_id?: string | null;
6498
6635
  connection_id?: string;
6636
+ controlled_at?: string | null;
6499
6637
  created_at?: string;
6500
6638
  data?: import("../integrations/supabase/types").Json;
6501
6639
  floriday_id?: string;
@@ -7397,6 +7535,54 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
7397
7535
  };
7398
7536
  Relationships: [];
7399
7537
  };
7538
+ invoice_timing_settings: {
7539
+ Row: {
7540
+ anchor: string;
7541
+ business_days_only: boolean;
7542
+ created_at: string;
7543
+ enabled: boolean;
7544
+ id: string;
7545
+ offset_days: number;
7546
+ pickup_anchor: string;
7547
+ pickup_business_days_only: boolean;
7548
+ pickup_offset_days: number;
7549
+ pickup_time_of_day: string;
7550
+ singleton: boolean;
7551
+ time_of_day: string;
7552
+ updated_at: string;
7553
+ };
7554
+ Insert: {
7555
+ anchor?: string;
7556
+ business_days_only?: boolean;
7557
+ created_at?: string;
7558
+ enabled?: boolean;
7559
+ id?: string;
7560
+ offset_days?: number;
7561
+ pickup_anchor?: string;
7562
+ pickup_business_days_only?: boolean;
7563
+ pickup_offset_days?: number;
7564
+ pickup_time_of_day?: string;
7565
+ singleton?: boolean;
7566
+ time_of_day?: string;
7567
+ updated_at?: string;
7568
+ };
7569
+ Update: {
7570
+ anchor?: string;
7571
+ business_days_only?: boolean;
7572
+ created_at?: string;
7573
+ enabled?: boolean;
7574
+ id?: string;
7575
+ offset_days?: number;
7576
+ pickup_anchor?: string;
7577
+ pickup_business_days_only?: boolean;
7578
+ pickup_offset_days?: number;
7579
+ pickup_time_of_day?: string;
7580
+ singleton?: boolean;
7581
+ time_of_day?: string;
7582
+ updated_at?: string;
7583
+ };
7584
+ Relationships: [];
7585
+ };
7400
7586
  itk_contact_persons: {
7401
7587
  Row: {
7402
7588
  created_at: string;
@@ -7709,7 +7895,6 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
7709
7895
  start_date: string;
7710
7896
  start_time: string | null;
7711
7897
  status: string;
7712
- tenant_id: string;
7713
7898
  updated_at: string;
7714
7899
  user_id: string;
7715
7900
  };
@@ -7727,7 +7912,6 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
7727
7912
  start_date: string;
7728
7913
  start_time?: string | null;
7729
7914
  status?: string;
7730
- tenant_id?: string;
7731
7915
  updated_at?: string;
7732
7916
  user_id: string;
7733
7917
  };
@@ -7745,7 +7929,6 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
7745
7929
  start_date?: string;
7746
7930
  start_time?: string | null;
7747
7931
  status?: string;
7748
- tenant_id?: string;
7749
7932
  updated_at?: string;
7750
7933
  user_id?: string;
7751
7934
  };
@@ -7753,13 +7936,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
7753
7936
  foreignKeyName: "leave_requests_monteur_id_fkey";
7754
7937
  columns: ["monteur_id"];
7755
7938
  isOneToOne: false;
7756
- referencedRelation: "monteurs";
7939
+ referencedRelation: "profiles";
7757
7940
  referencedColumns: ["id"];
7758
7941
  }, {
7759
7942
  foreignKeyName: "leave_requests_user_id_fkey";
7760
7943
  columns: ["user_id"];
7761
7944
  isOneToOne: false;
7762
- referencedRelation: "monteurs";
7945
+ referencedRelation: "profiles";
7763
7946
  referencedColumns: ["id"];
7764
7947
  }];
7765
7948
  };
@@ -8486,6 +8669,69 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
8486
8669
  };
8487
8670
  Relationships: [];
8488
8671
  };
8672
+ logistics_floriday_pushes: {
8673
+ Row: {
8674
+ attempts: number;
8675
+ created_at: string;
8676
+ first_queued_at: string;
8677
+ fulfillment_order_id: string | null;
8678
+ id: string;
8679
+ last_error: string | null;
8680
+ last_error_at: string | null;
8681
+ last_sent_hash: string | null;
8682
+ locked_by: string | null;
8683
+ locked_until: string | null;
8684
+ next_attempt_at: string;
8685
+ order_ref: string;
8686
+ payload: import("../integrations/supabase/types").Json;
8687
+ payload_hash: string | null;
8688
+ revision: number;
8689
+ sent_at: string | null;
8690
+ status: string;
8691
+ updated_at: string;
8692
+ };
8693
+ Insert: {
8694
+ attempts?: number;
8695
+ created_at?: string;
8696
+ first_queued_at?: string;
8697
+ fulfillment_order_id?: string | null;
8698
+ id?: string;
8699
+ last_error?: string | null;
8700
+ last_error_at?: string | null;
8701
+ last_sent_hash?: string | null;
8702
+ locked_by?: string | null;
8703
+ locked_until?: string | null;
8704
+ next_attempt_at?: string;
8705
+ order_ref: string;
8706
+ payload?: import("../integrations/supabase/types").Json;
8707
+ payload_hash?: string | null;
8708
+ revision?: number;
8709
+ sent_at?: string | null;
8710
+ status?: string;
8711
+ updated_at?: string;
8712
+ };
8713
+ Update: {
8714
+ attempts?: number;
8715
+ created_at?: string;
8716
+ first_queued_at?: string;
8717
+ fulfillment_order_id?: string | null;
8718
+ id?: string;
8719
+ last_error?: string | null;
8720
+ last_error_at?: string | null;
8721
+ last_sent_hash?: string | null;
8722
+ locked_by?: string | null;
8723
+ locked_until?: string | null;
8724
+ next_attempt_at?: string;
8725
+ order_ref?: string;
8726
+ payload?: import("../integrations/supabase/types").Json;
8727
+ payload_hash?: string | null;
8728
+ revision?: number;
8729
+ sent_at?: string | null;
8730
+ status?: string;
8731
+ updated_at?: string;
8732
+ };
8733
+ Relationships: [];
8734
+ };
8489
8735
  logistics_formulas: {
8490
8736
  Row: {
8491
8737
  created_at: string;
@@ -8564,6 +8810,45 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
8564
8810
  };
8565
8811
  Relationships: [];
8566
8812
  };
8813
+ logistics_plan_queue: {
8814
+ Row: {
8815
+ attempts: number;
8816
+ claimed_at: string | null;
8817
+ enqueued_at: string;
8818
+ error: string | null;
8819
+ id: string;
8820
+ next_attempt_at: string;
8821
+ order_id: string;
8822
+ reason: string;
8823
+ status: string;
8824
+ updated_at: string;
8825
+ };
8826
+ Insert: {
8827
+ attempts?: number;
8828
+ claimed_at?: string | null;
8829
+ enqueued_at?: string;
8830
+ error?: string | null;
8831
+ id?: string;
8832
+ next_attempt_at?: string;
8833
+ order_id: string;
8834
+ reason?: string;
8835
+ status?: string;
8836
+ updated_at?: string;
8837
+ };
8838
+ Update: {
8839
+ attempts?: number;
8840
+ claimed_at?: string | null;
8841
+ enqueued_at?: string;
8842
+ error?: string | null;
8843
+ id?: string;
8844
+ next_attempt_at?: string;
8845
+ order_id?: string;
8846
+ reason?: string;
8847
+ status?: string;
8848
+ updated_at?: string;
8849
+ };
8850
+ Relationships: [];
8851
+ };
8567
8852
  logistics_plan_runs: {
8568
8853
  Row: {
8569
8854
  created_at: string;
@@ -8639,6 +8924,24 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
8639
8924
  referencedColumns: ["id"];
8640
8925
  }];
8641
8926
  };
8927
+ logistics_plan_settings: {
8928
+ Row: {
8929
+ key: string;
8930
+ updated_at: string;
8931
+ value: string;
8932
+ };
8933
+ Insert: {
8934
+ key: string;
8935
+ updated_at?: string;
8936
+ value: string;
8937
+ };
8938
+ Update: {
8939
+ key?: string;
8940
+ updated_at?: string;
8941
+ value?: string;
8942
+ };
8943
+ Relationships: [];
8944
+ };
8642
8945
  logistics_rebuffer_state: {
8643
8946
  Row: {
8644
8947
  created_at: string;
@@ -9349,14 +9652,17 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
9349
9652
  };
9350
9653
  mailbox_messages: {
9351
9654
  Row: {
9655
+ attachments: import("../integrations/supabase/types").Json;
9352
9656
  body_html: string | null;
9353
9657
  body_text: string | null;
9658
+ cc_recipients: import("../integrations/supabase/types").Json;
9354
9659
  connection_id: string | null;
9355
9660
  created_at: string;
9356
9661
  error_message: string | null;
9357
9662
  external_id: string | null;
9358
9663
  from_email: string | null;
9359
9664
  from_name: string | null;
9665
+ has_attachments: boolean;
9360
9666
  id: string;
9361
9667
  message_id: string | null;
9362
9668
  profile_id: string | null;
@@ -9364,18 +9670,22 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
9364
9670
  received_at: string | null;
9365
9671
  status: string;
9366
9672
  subject: string | null;
9673
+ to_recipients: import("../integrations/supabase/types").Json;
9367
9674
  uid: number | null;
9368
9675
  updated_at: string;
9369
9676
  };
9370
9677
  Insert: {
9678
+ attachments?: import("../integrations/supabase/types").Json;
9371
9679
  body_html?: string | null;
9372
9680
  body_text?: string | null;
9681
+ cc_recipients?: import("../integrations/supabase/types").Json;
9373
9682
  connection_id?: string | null;
9374
9683
  created_at?: string;
9375
9684
  error_message?: string | null;
9376
9685
  external_id?: string | null;
9377
9686
  from_email?: string | null;
9378
9687
  from_name?: string | null;
9688
+ has_attachments?: boolean;
9379
9689
  id?: string;
9380
9690
  message_id?: string | null;
9381
9691
  profile_id?: string | null;
@@ -9383,18 +9693,22 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
9383
9693
  received_at?: string | null;
9384
9694
  status?: string;
9385
9695
  subject?: string | null;
9696
+ to_recipients?: import("../integrations/supabase/types").Json;
9386
9697
  uid?: number | null;
9387
9698
  updated_at?: string;
9388
9699
  };
9389
9700
  Update: {
9701
+ attachments?: import("../integrations/supabase/types").Json;
9390
9702
  body_html?: string | null;
9391
9703
  body_text?: string | null;
9704
+ cc_recipients?: import("../integrations/supabase/types").Json;
9392
9705
  connection_id?: string | null;
9393
9706
  created_at?: string;
9394
9707
  error_message?: string | null;
9395
9708
  external_id?: string | null;
9396
9709
  from_email?: string | null;
9397
9710
  from_name?: string | null;
9711
+ has_attachments?: boolean;
9398
9712
  id?: string;
9399
9713
  message_id?: string | null;
9400
9714
  profile_id?: string | null;
@@ -9402,6 +9716,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
9402
9716
  received_at?: string | null;
9403
9717
  status?: string;
9404
9718
  subject?: string | null;
9719
+ to_recipients?: import("../integrations/supabase/types").Json;
9405
9720
  uid?: number | null;
9406
9721
  updated_at?: string;
9407
9722
  };
@@ -9782,6 +10097,90 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
9782
10097
  };
9783
10098
  Relationships: [];
9784
10099
  };
10100
+ material_usage: {
10101
+ Row: {
10102
+ created_at: string;
10103
+ id: string;
10104
+ material_name: string;
10105
+ monteur_id: string | null;
10106
+ price_at_time: number;
10107
+ quantity_used: number;
10108
+ updated_at: string;
10109
+ van_inventory_id: string | null;
10110
+ work_order_id: string;
10111
+ };
10112
+ Insert: {
10113
+ created_at?: string;
10114
+ id?: string;
10115
+ material_name: string;
10116
+ monteur_id?: string | null;
10117
+ price_at_time?: number;
10118
+ quantity_used?: number;
10119
+ updated_at?: string;
10120
+ van_inventory_id?: string | null;
10121
+ work_order_id: string;
10122
+ };
10123
+ Update: {
10124
+ created_at?: string;
10125
+ id?: string;
10126
+ material_name?: string;
10127
+ monteur_id?: string | null;
10128
+ price_at_time?: number;
10129
+ quantity_used?: number;
10130
+ updated_at?: string;
10131
+ van_inventory_id?: string | null;
10132
+ work_order_id?: string;
10133
+ };
10134
+ Relationships: [{
10135
+ foreignKeyName: "material_usage_monteur_id_fkey";
10136
+ columns: ["monteur_id"];
10137
+ isOneToOne: false;
10138
+ referencedRelation: "profiles";
10139
+ referencedColumns: ["id"];
10140
+ }, {
10141
+ foreignKeyName: "material_usage_van_inventory_id_fkey";
10142
+ columns: ["van_inventory_id"];
10143
+ isOneToOne: false;
10144
+ referencedRelation: "van_inventories";
10145
+ referencedColumns: ["id"];
10146
+ }, {
10147
+ foreignKeyName: "material_usage_work_order_id_fkey";
10148
+ columns: ["work_order_id"];
10149
+ isOneToOne: false;
10150
+ referencedRelation: "work_orders";
10151
+ referencedColumns: ["id"];
10152
+ }];
10153
+ };
10154
+ module_features: {
10155
+ Row: {
10156
+ created_at: string;
10157
+ feature_id: string;
10158
+ id: string;
10159
+ is_active: boolean;
10160
+ last_seen_at: string;
10161
+ module_id: string;
10162
+ name: string;
10163
+ };
10164
+ Insert: {
10165
+ created_at?: string;
10166
+ feature_id: string;
10167
+ id?: string;
10168
+ is_active?: boolean;
10169
+ last_seen_at?: string;
10170
+ module_id: string;
10171
+ name: string;
10172
+ };
10173
+ Update: {
10174
+ created_at?: string;
10175
+ feature_id?: string;
10176
+ id?: string;
10177
+ is_active?: boolean;
10178
+ last_seen_at?: string;
10179
+ module_id?: string;
10180
+ name?: string;
10181
+ };
10182
+ Relationships: [];
10183
+ };
9785
10184
  module_permissions: {
9786
10185
  Row: {
9787
10186
  created_at: string;
@@ -9809,6 +10208,39 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
9809
10208
  };
9810
10209
  Relationships: [];
9811
10210
  };
10211
+ module_registry: {
10212
+ Row: {
10213
+ created_at: string;
10214
+ enforce: boolean;
10215
+ is_active: boolean;
10216
+ last_seen_at: string;
10217
+ module_id: string;
10218
+ name: string;
10219
+ shell_id: string | null;
10220
+ sort_order: number | null;
10221
+ };
10222
+ Insert: {
10223
+ created_at?: string;
10224
+ enforce?: boolean;
10225
+ is_active?: boolean;
10226
+ last_seen_at?: string;
10227
+ module_id: string;
10228
+ name: string;
10229
+ shell_id?: string | null;
10230
+ sort_order?: number | null;
10231
+ };
10232
+ Update: {
10233
+ created_at?: string;
10234
+ enforce?: boolean;
10235
+ is_active?: boolean;
10236
+ last_seen_at?: string;
10237
+ module_id?: string;
10238
+ name?: string;
10239
+ shell_id?: string | null;
10240
+ sort_order?: number | null;
10241
+ };
10242
+ Relationships: [];
10243
+ };
9812
10244
  module_runtime_config: {
9813
10245
  Row: {
9814
10246
  key: string;
@@ -9860,63 +10292,6 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
9860
10292
  };
9861
10293
  Relationships: [];
9862
10294
  };
9863
- monteurs: {
9864
- Row: {
9865
- avatar_url: string | null;
9866
- color: string | null;
9867
- created_at: string;
9868
- email: string | null;
9869
- id: string;
9870
- is_active: boolean;
9871
- leave_balance_hours: number;
9872
- name: string;
9873
- persnr: number | null;
9874
- phone: string | null;
9875
- role: string;
9876
- tenant_id: string;
9877
- updated_at: string;
9878
- user_id: string | null;
9879
- };
9880
- Insert: {
9881
- avatar_url?: string | null;
9882
- color?: string | null;
9883
- created_at?: string;
9884
- email?: string | null;
9885
- id?: string;
9886
- is_active?: boolean;
9887
- leave_balance_hours?: number;
9888
- name: string;
9889
- persnr?: number | null;
9890
- phone?: string | null;
9891
- role?: string;
9892
- tenant_id: string;
9893
- updated_at?: string;
9894
- user_id?: string | null;
9895
- };
9896
- Update: {
9897
- avatar_url?: string | null;
9898
- color?: string | null;
9899
- created_at?: string;
9900
- email?: string | null;
9901
- id?: string;
9902
- is_active?: boolean;
9903
- leave_balance_hours?: number;
9904
- name?: string;
9905
- persnr?: number | null;
9906
- phone?: string | null;
9907
- role?: string;
9908
- tenant_id?: string;
9909
- updated_at?: string;
9910
- user_id?: string | null;
9911
- };
9912
- Relationships: [{
9913
- foreignKeyName: "monteurs_tenant_id_fkey";
9914
- columns: ["tenant_id"];
9915
- isOneToOne: false;
9916
- referencedRelation: "tenants";
9917
- referencedColumns: ["id"];
9918
- }];
9919
- };
9920
10295
  nmbrs_component_mapping: {
9921
10296
  Row: {
9922
10297
  created_at: string;
@@ -9987,13 +10362,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
9987
10362
  nmbrs_employee_number?: string;
9988
10363
  updated_at?: string;
9989
10364
  };
9990
- Relationships: [{
9991
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
9992
- columns: ["monteur_id"];
9993
- isOneToOne: true;
9994
- referencedRelation: "monteurs";
9995
- referencedColumns: ["id"];
9996
- }];
10365
+ Relationships: [];
9997
10366
  };
9998
10367
  nmbrs_export_lines: {
9999
10368
  Row: {
@@ -10042,12 +10411,6 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
10042
10411
  wage_code?: string;
10043
10412
  };
10044
10413
  Relationships: [{
10045
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10046
- columns: ["monteur_id"];
10047
- isOneToOne: false;
10048
- referencedRelation: "monteurs";
10049
- referencedColumns: ["id"];
10050
- }, {
10051
10414
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10052
10415
  columns: ["run_id"];
10053
10416
  isOneToOne: false;
@@ -10868,6 +11231,45 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
10868
11231
  };
10869
11232
  Relationships: [];
10870
11233
  };
11234
+ order_invoice_links: {
11235
+ Row: {
11236
+ attempts: number;
11237
+ created_at: string;
11238
+ error_message: string | null;
11239
+ id: string;
11240
+ invoice_number: string | null;
11241
+ next_attempt_at: string;
11242
+ order_id: string;
11243
+ processed_at: string | null;
11244
+ status: string;
11245
+ updated_at: string;
11246
+ };
11247
+ Insert: {
11248
+ attempts?: number;
11249
+ created_at?: string;
11250
+ error_message?: string | null;
11251
+ id?: string;
11252
+ invoice_number?: string | null;
11253
+ next_attempt_at?: string;
11254
+ order_id: string;
11255
+ processed_at?: string | null;
11256
+ status?: string;
11257
+ updated_at?: string;
11258
+ };
11259
+ Update: {
11260
+ attempts?: number;
11261
+ created_at?: string;
11262
+ error_message?: string | null;
11263
+ id?: string;
11264
+ invoice_number?: string | null;
11265
+ next_attempt_at?: string;
11266
+ order_id?: string;
11267
+ processed_at?: string | null;
11268
+ status?: string;
11269
+ updated_at?: string;
11270
+ };
11271
+ Relationships: [];
11272
+ };
10871
11273
  order_items: {
10872
11274
  Row: {
10873
11275
  crates_per_layer: number | null;
@@ -11050,6 +11452,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
11050
11452
  delivery_date: string | null;
11051
11453
  floriday_sales_order_id: string | null;
11052
11454
  id: string;
11455
+ invoice_due_at: string | null;
11053
11456
  is_reservation: boolean;
11054
11457
  notes: string | null;
11055
11458
  order_date: string;
@@ -11071,6 +11474,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
11071
11474
  delivery_date?: string | null;
11072
11475
  floriday_sales_order_id?: string | null;
11073
11476
  id?: string;
11477
+ invoice_due_at?: string | null;
11074
11478
  is_reservation?: boolean;
11075
11479
  notes?: string | null;
11076
11480
  order_date?: string;
@@ -11092,6 +11496,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
11092
11496
  delivery_date?: string | null;
11093
11497
  floriday_sales_order_id?: string | null;
11094
11498
  id?: string;
11499
+ invoice_due_at?: string | null;
11095
11500
  is_reservation?: boolean;
11096
11501
  notes?: string | null;
11097
11502
  order_date?: string;
@@ -12288,22 +12693,27 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
12288
12693
  created_at: string;
12289
12694
  documentnaam: string;
12290
12695
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12696
+ extern_job_id: string | null;
12291
12697
  foutmelding: string | null;
12292
12698
  gebruiker_id: string | null;
12293
12699
  gebruiker_naam: string;
12294
12700
  gestart_op: string | null;
12295
12701
  id: string;
12702
+ idempotentie_sleutel: string | null;
12296
12703
  is_herprint: boolean;
12297
12704
  kopieen: number;
12298
12705
  layout_id: string | null;
12299
12706
  opgepakt_op: string | null;
12300
12707
  paginas: number;
12301
12708
  payload: import("../integrations/supabase/types").Json;
12709
+ pdf_base64: string | null;
12710
+ pdf_url: string | null;
12302
12711
  pogingen: number;
12303
12712
  printer_id: string | null;
12304
12713
  render_html: string | null;
12305
12714
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12306
12715
  updated_at: string;
12716
+ volgende_poging: string | null;
12307
12717
  voltooid_op: string | null;
12308
12718
  };
12309
12719
  Insert: {
@@ -12312,22 +12722,27 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
12312
12722
  created_at?: string;
12313
12723
  documentnaam?: string;
12314
12724
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12725
+ extern_job_id?: string | null;
12315
12726
  foutmelding?: string | null;
12316
12727
  gebruiker_id?: string | null;
12317
12728
  gebruiker_naam?: string;
12318
12729
  gestart_op?: string | null;
12319
12730
  id?: string;
12731
+ idempotentie_sleutel?: string | null;
12320
12732
  is_herprint?: boolean;
12321
12733
  kopieen?: number;
12322
12734
  layout_id?: string | null;
12323
12735
  opgepakt_op?: string | null;
12324
12736
  paginas?: number;
12325
12737
  payload?: import("../integrations/supabase/types").Json;
12738
+ pdf_base64?: string | null;
12739
+ pdf_url?: string | null;
12326
12740
  pogingen?: number;
12327
12741
  printer_id?: string | null;
12328
12742
  render_html?: string | null;
12329
12743
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12330
12744
  updated_at?: string;
12745
+ volgende_poging?: string | null;
12331
12746
  voltooid_op?: string | null;
12332
12747
  };
12333
12748
  Update: {
@@ -12336,22 +12751,27 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
12336
12751
  created_at?: string;
12337
12752
  documentnaam?: string;
12338
12753
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
12754
+ extern_job_id?: string | null;
12339
12755
  foutmelding?: string | null;
12340
12756
  gebruiker_id?: string | null;
12341
12757
  gebruiker_naam?: string;
12342
12758
  gestart_op?: string | null;
12343
12759
  id?: string;
12760
+ idempotentie_sleutel?: string | null;
12344
12761
  is_herprint?: boolean;
12345
12762
  kopieen?: number;
12346
12763
  layout_id?: string | null;
12347
12764
  opgepakt_op?: string | null;
12348
12765
  paginas?: number;
12349
12766
  payload?: import("../integrations/supabase/types").Json;
12767
+ pdf_base64?: string | null;
12768
+ pdf_url?: string | null;
12350
12769
  pogingen?: number;
12351
12770
  printer_id?: string | null;
12352
12771
  render_html?: string | null;
12353
12772
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
12354
12773
  updated_at?: string;
12774
+ volgende_poging?: string | null;
12355
12775
  voltooid_op?: string | null;
12356
12776
  };
12357
12777
  Relationships: [{
@@ -12374,6 +12794,72 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
12374
12794
  referencedColumns: ["id"];
12375
12795
  }];
12376
12796
  };
12797
+ print_queue_runners: {
12798
+ Row: {
12799
+ actief: boolean;
12800
+ basis_url: string;
12801
+ created_at: string;
12802
+ id: string;
12803
+ laatst_gezien: string;
12804
+ laatste_fout: string | null;
12805
+ laatste_request_id: number | null;
12806
+ mislukte_posts: number;
12807
+ tick_sleutel: string;
12808
+ updated_at: string;
12809
+ };
12810
+ Insert: {
12811
+ actief?: boolean;
12812
+ basis_url: string;
12813
+ created_at?: string;
12814
+ id?: string;
12815
+ laatst_gezien?: string;
12816
+ laatste_fout?: string | null;
12817
+ laatste_request_id?: number | null;
12818
+ mislukte_posts?: number;
12819
+ tick_sleutel?: string;
12820
+ updated_at?: string;
12821
+ };
12822
+ Update: {
12823
+ actief?: boolean;
12824
+ basis_url?: string;
12825
+ created_at?: string;
12826
+ id?: string;
12827
+ laatst_gezien?: string;
12828
+ laatste_fout?: string | null;
12829
+ laatste_request_id?: number | null;
12830
+ mislukte_posts?: number;
12831
+ tick_sleutel?: string;
12832
+ updated_at?: string;
12833
+ };
12834
+ Relationships: [];
12835
+ };
12836
+ print_queue_settings: {
12837
+ Row: {
12838
+ bewaar_bestanden_dagen: number;
12839
+ bewaar_opdrachten_dagen: number;
12840
+ created_at: string;
12841
+ dubbel_venster_minuten: number;
12842
+ id: string;
12843
+ updated_at: string;
12844
+ };
12845
+ Insert: {
12846
+ bewaar_bestanden_dagen?: number;
12847
+ bewaar_opdrachten_dagen?: number;
12848
+ created_at?: string;
12849
+ dubbel_venster_minuten?: number;
12850
+ id?: string;
12851
+ updated_at?: string;
12852
+ };
12853
+ Update: {
12854
+ bewaar_bestanden_dagen?: number;
12855
+ bewaar_opdrachten_dagen?: number;
12856
+ created_at?: string;
12857
+ dubbel_venster_minuten?: number;
12858
+ id?: string;
12859
+ updated_at?: string;
12860
+ };
12861
+ Relationships: [];
12862
+ };
12377
12863
  print_rules: {
12378
12864
  Row: {
12379
12865
  actief: boolean;
@@ -12534,6 +13020,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
12534
13020
  agent_id: string | null;
12535
13021
  created_at: string;
12536
13022
  driver: string;
13023
+ extern_printer_id: string | null;
12537
13024
  id: string;
12538
13025
  ip_adres: string | null;
12539
13026
  laatst_gezien: string | null;
@@ -12555,6 +13042,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
12555
13042
  agent_id?: string | null;
12556
13043
  created_at?: string;
12557
13044
  driver?: string;
13045
+ extern_printer_id?: string | null;
12558
13046
  id?: string;
12559
13047
  ip_adres?: string | null;
12560
13048
  laatst_gezien?: string | null;
@@ -12576,6 +13064,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
12576
13064
  agent_id?: string | null;
12577
13065
  created_at?: string;
12578
13066
  driver?: string;
13067
+ extern_printer_id?: string | null;
12579
13068
  id?: string;
12580
13069
  ip_adres?: string | null;
12581
13070
  laatst_gezien?: string | null;
@@ -13847,6 +14336,96 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
13847
14336
  referencedColumns: ["id"];
13848
14337
  }];
13849
14338
  };
14339
+ role_assignments: {
14340
+ Row: {
14341
+ created_at: string;
14342
+ id: string;
14343
+ role_id: string;
14344
+ user_id: string;
14345
+ };
14346
+ Insert: {
14347
+ created_at?: string;
14348
+ id?: string;
14349
+ role_id: string;
14350
+ user_id: string;
14351
+ };
14352
+ Update: {
14353
+ created_at?: string;
14354
+ id?: string;
14355
+ role_id?: string;
14356
+ user_id?: string;
14357
+ };
14358
+ Relationships: [{
14359
+ foreignKeyName: "role_assignments_role_id_fkey";
14360
+ columns: ["role_id"];
14361
+ isOneToOne: false;
14362
+ referencedRelation: "roles";
14363
+ referencedColumns: ["id"];
14364
+ }];
14365
+ };
14366
+ role_permissions: {
14367
+ Row: {
14368
+ can_edit: boolean;
14369
+ can_view: boolean;
14370
+ feature_id: string;
14371
+ id: string;
14372
+ module_id: string;
14373
+ role_id: string;
14374
+ updated_at: string;
14375
+ };
14376
+ Insert: {
14377
+ can_edit?: boolean;
14378
+ can_view?: boolean;
14379
+ feature_id?: string;
14380
+ id?: string;
14381
+ module_id: string;
14382
+ role_id: string;
14383
+ updated_at?: string;
14384
+ };
14385
+ Update: {
14386
+ can_edit?: boolean;
14387
+ can_view?: boolean;
14388
+ feature_id?: string;
14389
+ id?: string;
14390
+ module_id?: string;
14391
+ role_id?: string;
14392
+ updated_at?: string;
14393
+ };
14394
+ Relationships: [{
14395
+ foreignKeyName: "role_permissions_role_id_fkey";
14396
+ columns: ["role_id"];
14397
+ isOneToOne: false;
14398
+ referencedRelation: "roles";
14399
+ referencedColumns: ["id"];
14400
+ }];
14401
+ };
14402
+ roles: {
14403
+ Row: {
14404
+ created_at: string;
14405
+ id: string;
14406
+ is_protected: boolean;
14407
+ key: string;
14408
+ name: string;
14409
+ updated_at: string;
14410
+ };
14411
+ Insert: {
14412
+ created_at?: string;
14413
+ id?: string;
14414
+ is_protected?: boolean;
14415
+ key: string;
14416
+ name: string;
14417
+ updated_at?: string;
14418
+ };
14419
+ Update: {
14420
+ created_at?: string;
14421
+ id?: string;
14422
+ is_protected?: boolean;
14423
+ key?: string;
14424
+ name?: string;
14425
+ updated_at?: string;
14426
+ };
14427
+ Relationships: [];
14428
+ };
13850
14429
  rooms: {
13851
14430
  Row: {
13852
14431
  capacity: number;
@@ -14516,6 +15095,54 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
14516
15095
  };
14517
15096
  Relationships: [];
14518
15097
  };
15098
+ time_compensation_entries: {
15099
+ Row: {
15100
+ created_at: string;
15101
+ employee_id: string;
15102
+ entry_date: string;
15103
+ id: string;
15104
+ km: number;
15105
+ meal_allowance: number;
15106
+ notes: string | null;
15107
+ standby_evening: number;
15108
+ standby_weekend: number;
15109
+ tvt_change: number;
15110
+ updated_at: string;
15111
+ };
15112
+ Insert: {
15113
+ created_at?: string;
15114
+ employee_id: string;
15115
+ entry_date: string;
15116
+ id?: string;
15117
+ km?: number;
15118
+ meal_allowance?: number;
15119
+ notes?: string | null;
15120
+ standby_evening?: number;
15121
+ standby_weekend?: number;
15122
+ tvt_change?: number;
15123
+ updated_at?: string;
15124
+ };
15125
+ Update: {
15126
+ created_at?: string;
15127
+ employee_id?: string;
15128
+ entry_date?: string;
15129
+ id?: string;
15130
+ km?: number;
15131
+ meal_allowance?: number;
15132
+ notes?: string | null;
15133
+ standby_evening?: number;
15134
+ standby_weekend?: number;
15135
+ tvt_change?: number;
15136
+ updated_at?: string;
15137
+ };
15138
+ Relationships: [{
15139
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
15140
+ columns: ["employee_id"];
15141
+ isOneToOne: false;
15142
+ referencedRelation: "profiles";
15143
+ referencedColumns: ["id"];
15144
+ }];
15145
+ };
14519
15146
  time_entries: {
14520
15147
  Row: {
14521
15148
  created_at: string;
@@ -14550,65 +15177,170 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
14550
15177
  undertime?: number;
14551
15178
  updated_at?: string;
14552
15179
  };
15180
+ Relationships: [];
15181
+ };
15182
+ time_log_week_approvals: {
15183
+ Row: {
15184
+ approved_at: string | null;
15185
+ approved_by: string | null;
15186
+ created_at: string;
15187
+ employee_id: string;
15188
+ id: string;
15189
+ locked: boolean;
15190
+ notes: string | null;
15191
+ status: string;
15192
+ submitted_at: string | null;
15193
+ updated_at: string;
15194
+ week_start: string;
15195
+ };
15196
+ Insert: {
15197
+ approved_at?: string | null;
15198
+ approved_by?: string | null;
15199
+ created_at?: string;
15200
+ employee_id: string;
15201
+ id?: string;
15202
+ locked?: boolean;
15203
+ notes?: string | null;
15204
+ status?: string;
15205
+ submitted_at?: string | null;
15206
+ updated_at?: string;
15207
+ week_start: string;
15208
+ };
15209
+ Update: {
15210
+ approved_at?: string | null;
15211
+ approved_by?: string | null;
15212
+ created_at?: string;
15213
+ employee_id?: string;
15214
+ id?: string;
15215
+ locked?: boolean;
15216
+ notes?: string | null;
15217
+ status?: string;
15218
+ submitted_at?: string | null;
15219
+ updated_at?: string;
15220
+ week_start?: string;
15221
+ };
14553
15222
  Relationships: [{
14554
- foreignKeyName: "time_entries_employee_id_fkey";
15223
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
14555
15224
  columns: ["employee_id"];
14556
15225
  isOneToOne: false;
14557
- referencedRelation: "monteurs";
15226
+ referencedRelation: "profiles";
14558
15227
  referencedColumns: ["id"];
14559
15228
  }];
14560
15229
  };
14561
15230
  time_logs: {
14562
15231
  Row: {
15232
+ auto_stop_reason: string | null;
15233
+ auto_stopped: boolean;
14563
15234
  created_at: string;
15235
+ current_latitude: number | null;
15236
+ current_longitude: number | null;
15237
+ current_position_updated_at: string | null;
14564
15238
  employee_id: string;
15239
+ end_latitude: number | null;
15240
+ end_longitude: number | null;
14565
15241
  end_time: string | null;
15242
+ eta_distance_km: number | null;
15243
+ eta_minutes: number | null;
15244
+ eta_updated_at: string | null;
15245
+ hour_category: string | null;
14566
15246
  id: string;
15247
+ last_reminder_at: string | null;
14567
15248
  notes: string | null;
14568
15249
  overtime_hours: number;
14569
15250
  overtime_type: string | null;
14570
15251
  regular_hours: number;
15252
+ reminder_count: number;
15253
+ requires_review: boolean;
15254
+ start_latitude: number | null;
15255
+ start_longitude: number | null;
14571
15256
  start_time: string;
14572
15257
  travel_cost: number | null;
14573
15258
  travel_distance_km: number | null;
15259
+ travel_duration_min: number | null;
15260
+ travel_time_minutes: number | null;
14574
15261
  type: string;
14575
15262
  updated_at: string;
15263
+ work_order_id: string | null;
14576
15264
  };
14577
15265
  Insert: {
15266
+ auto_stop_reason?: string | null;
15267
+ auto_stopped?: boolean;
14578
15268
  created_at?: string;
15269
+ current_latitude?: number | null;
15270
+ current_longitude?: number | null;
15271
+ current_position_updated_at?: string | null;
14579
15272
  employee_id: string;
15273
+ end_latitude?: number | null;
15274
+ end_longitude?: number | null;
14580
15275
  end_time?: string | null;
15276
+ eta_distance_km?: number | null;
15277
+ eta_minutes?: number | null;
15278
+ eta_updated_at?: string | null;
15279
+ hour_category?: string | null;
14581
15280
  id?: string;
15281
+ last_reminder_at?: string | null;
14582
15282
  notes?: string | null;
14583
15283
  overtime_hours?: number;
14584
15284
  overtime_type?: string | null;
14585
15285
  regular_hours?: number;
15286
+ reminder_count?: number;
15287
+ requires_review?: boolean;
15288
+ start_latitude?: number | null;
15289
+ start_longitude?: number | null;
14586
15290
  start_time?: string;
14587
15291
  travel_cost?: number | null;
14588
15292
  travel_distance_km?: number | null;
15293
+ travel_duration_min?: number | null;
15294
+ travel_time_minutes?: number | null;
14589
15295
  type: string;
14590
15296
  updated_at?: string;
15297
+ work_order_id?: string | null;
14591
15298
  };
14592
15299
  Update: {
15300
+ auto_stop_reason?: string | null;
15301
+ auto_stopped?: boolean;
14593
15302
  created_at?: string;
15303
+ current_latitude?: number | null;
15304
+ current_longitude?: number | null;
15305
+ current_position_updated_at?: string | null;
14594
15306
  employee_id?: string;
15307
+ end_latitude?: number | null;
15308
+ end_longitude?: number | null;
14595
15309
  end_time?: string | null;
15310
+ eta_distance_km?: number | null;
15311
+ eta_minutes?: number | null;
15312
+ eta_updated_at?: string | null;
15313
+ hour_category?: string | null;
14596
15314
  id?: string;
15315
+ last_reminder_at?: string | null;
14597
15316
  notes?: string | null;
14598
15317
  overtime_hours?: number;
14599
15318
  overtime_type?: string | null;
14600
15319
  regular_hours?: number;
15320
+ reminder_count?: number;
15321
+ requires_review?: boolean;
15322
+ start_latitude?: number | null;
15323
+ start_longitude?: number | null;
14601
15324
  start_time?: string;
14602
15325
  travel_cost?: number | null;
14603
15326
  travel_distance_km?: number | null;
15327
+ travel_duration_min?: number | null;
15328
+ travel_time_minutes?: number | null;
14604
15329
  type?: string;
14605
15330
  updated_at?: string;
15331
+ work_order_id?: string | null;
14606
15332
  };
14607
15333
  Relationships: [{
14608
15334
  foreignKeyName: "time_logs_employee_id_fkey";
14609
15335
  columns: ["employee_id"];
14610
15336
  isOneToOne: false;
14611
- referencedRelation: "monteurs";
15337
+ referencedRelation: "profiles";
15338
+ referencedColumns: ["id"];
15339
+ }, {
15340
+ foreignKeyName: "time_logs_work_order_id_fkey";
15341
+ columns: ["work_order_id"];
15342
+ isOneToOne: false;
15343
+ referencedRelation: "work_orders";
14612
15344
  referencedColumns: ["id"];
14613
15345
  }];
14614
15346
  };
@@ -14647,7 +15379,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
14647
15379
  foreignKeyName: "time_off_entries_employee_id_fkey";
14648
15380
  columns: ["employee_id"];
14649
15381
  isOneToOne: false;
14650
- referencedRelation: "monteurs";
15382
+ referencedRelation: "profiles";
14651
15383
  referencedColumns: ["id"];
14652
15384
  }];
14653
15385
  };
@@ -14957,6 +15689,39 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
14957
15689
  };
14958
15690
  Relationships: [];
14959
15691
  };
15692
+ twinfield_cron_locks: {
15693
+ Row: {
15694
+ created_at: string;
15695
+ heartbeat_at: string;
15696
+ job_name: string;
15697
+ last_error: string | null;
15698
+ last_finished_at: string | null;
15699
+ locked_at: string;
15700
+ run_id: string;
15701
+ updated_at: string;
15702
+ };
15703
+ Insert: {
15704
+ created_at?: string;
15705
+ heartbeat_at?: string;
15706
+ job_name: string;
15707
+ last_error?: string | null;
15708
+ last_finished_at?: string | null;
15709
+ locked_at?: string;
15710
+ run_id?: string;
15711
+ updated_at?: string;
15712
+ };
15713
+ Update: {
15714
+ created_at?: string;
15715
+ heartbeat_at?: string;
15716
+ job_name?: string;
15717
+ last_error?: string | null;
15718
+ last_finished_at?: string | null;
15719
+ locked_at?: string;
15720
+ run_id?: string;
15721
+ updated_at?: string;
15722
+ };
15723
+ Relationships: [];
15724
+ };
14960
15725
  twinfield_customers: {
14961
15726
  Row: {
14962
15727
  address: string | null;
@@ -15211,6 +15976,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
15211
15976
  };
15212
15977
  twinfield_invoice_settings: {
15213
15978
  Row: {
15979
+ auto_invoice_enabled: boolean;
15980
+ auto_invoice_trigger_statuses: string[];
15214
15981
  created_at: string;
15215
15982
  debtor_gl_account: string;
15216
15983
  default_credit_invoice_type: string | null;
@@ -15231,6 +15998,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
15231
15998
  vat_code_export: string | null;
15232
15999
  };
15233
16000
  Insert: {
16001
+ auto_invoice_enabled?: boolean;
16002
+ auto_invoice_trigger_statuses?: string[];
15234
16003
  created_at?: string;
15235
16004
  debtor_gl_account?: string;
15236
16005
  default_credit_invoice_type?: string | null;
@@ -15251,6 +16020,8 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
15251
16020
  vat_code_export?: string | null;
15252
16021
  };
15253
16022
  Update: {
16023
+ auto_invoice_enabled?: boolean;
16024
+ auto_invoice_trigger_statuses?: string[];
15254
16025
  created_at?: string;
15255
16026
  debtor_gl_account?: string;
15256
16027
  default_credit_invoice_type?: string | null;
@@ -15551,6 +16322,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
15551
16322
  twinfield_push_queue: {
15552
16323
  Row: {
15553
16324
  action: string;
16325
+ attempt_started_at: string | null;
15554
16326
  attempts: number;
15555
16327
  connection_id: string | null;
15556
16328
  created_at: string;
@@ -15567,6 +16339,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
15567
16339
  };
15568
16340
  Insert: {
15569
16341
  action?: string;
16342
+ attempt_started_at?: string | null;
15570
16343
  attempts?: number;
15571
16344
  connection_id?: string | null;
15572
16345
  created_at?: string;
@@ -15583,6 +16356,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
15583
16356
  };
15584
16357
  Update: {
15585
16358
  action?: string;
16359
+ attempt_started_at?: string | null;
15586
16360
  attempts?: number;
15587
16361
  connection_id?: string | null;
15588
16362
  created_at?: string;
@@ -15780,13 +16554,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
15780
16554
  workday_end?: string | null;
15781
16555
  workday_start?: string | null;
15782
16556
  };
15783
- Relationships: [{
15784
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
15785
- columns: ["monteur_id"];
15786
- isOneToOne: true;
15787
- referencedRelation: "monteurs";
15788
- referencedColumns: ["id"];
15789
- }];
16557
+ Relationships: [];
15790
16558
  };
15791
16559
  uren_entries: {
15792
16560
  Row: {
@@ -15832,12 +16600,6 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
15832
16600
  werkbon_id?: string | null;
15833
16601
  };
15834
16602
  Relationships: [{
15835
- foreignKeyName: "uren_entries_monteur_id_fkey";
15836
- columns: ["monteur_id"];
15837
- isOneToOne: false;
15838
- referencedRelation: "monteurs";
15839
- referencedColumns: ["id"];
15840
- }, {
15841
16603
  foreignKeyName: "uren_entries_werkbon_id_fkey";
15842
16604
  columns: ["werkbon_id"];
15843
16605
  isOneToOne: false;
@@ -16305,13 +17067,37 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
16305
17067
  submitted_at?: string | null;
16306
17068
  updated_at?: string;
16307
17069
  };
16308
- Relationships: [{
16309
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16310
- columns: ["monteur_id"];
16311
- isOneToOne: false;
16312
- referencedRelation: "monteurs";
16313
- referencedColumns: ["id"];
16314
- }];
17070
+ Relationships: [];
17071
+ };
17072
+ user_module_permissions: {
17073
+ Row: {
17074
+ created_at: string;
17075
+ feature_id: string;
17076
+ id: string;
17077
+ module_id: string;
17078
+ permission: string;
17079
+ updated_at: string;
17080
+ user_id: string;
17081
+ };
17082
+ Insert: {
17083
+ created_at?: string;
17084
+ feature_id?: string;
17085
+ id?: string;
17086
+ module_id: string;
17087
+ permission: string;
17088
+ updated_at?: string;
17089
+ user_id: string;
17090
+ };
17091
+ Update: {
17092
+ created_at?: string;
17093
+ feature_id?: string;
17094
+ id?: string;
17095
+ module_id?: string;
17096
+ permission?: string;
17097
+ updated_at?: string;
17098
+ user_id?: string;
17099
+ };
17100
+ Relationships: [];
16315
17101
  };
16316
17102
  user_roles: {
16317
17103
  Row: {
@@ -16340,6 +17126,51 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
16340
17126
  referencedColumns: ["id"];
16341
17127
  }];
16342
17128
  };
17129
+ van_inventories: {
17130
+ Row: {
17131
+ barcode: string | null;
17132
+ created_at: string;
17133
+ id: string;
17134
+ monteur_id: string | null;
17135
+ price_per_unit: number;
17136
+ product_name: string;
17137
+ quantity_current: number;
17138
+ quantity_min: number;
17139
+ unit: string;
17140
+ updated_at: string;
17141
+ };
17142
+ Insert: {
17143
+ barcode?: string | null;
17144
+ created_at?: string;
17145
+ id?: string;
17146
+ monteur_id?: string | null;
17147
+ price_per_unit?: number;
17148
+ product_name: string;
17149
+ quantity_current?: number;
17150
+ quantity_min?: number;
17151
+ unit?: string;
17152
+ updated_at?: string;
17153
+ };
17154
+ Update: {
17155
+ barcode?: string | null;
17156
+ created_at?: string;
17157
+ id?: string;
17158
+ monteur_id?: string | null;
17159
+ price_per_unit?: number;
17160
+ product_name?: string;
17161
+ quantity_current?: number;
17162
+ quantity_min?: number;
17163
+ unit?: string;
17164
+ updated_at?: string;
17165
+ };
17166
+ Relationships: [{
17167
+ foreignKeyName: "van_inventories_monteur_id_fkey";
17168
+ columns: ["monteur_id"];
17169
+ isOneToOne: false;
17170
+ referencedRelation: "profiles";
17171
+ referencedColumns: ["id"];
17172
+ }];
17173
+ };
16343
17174
  voorraad_custom_fields: {
16344
17175
  Row: {
16345
17176
  created_at: string;
@@ -17290,7 +18121,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
17290
18121
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17291
18122
  columns: ["monteur_id"];
17292
18123
  isOneToOne: false;
17293
- referencedRelation: "monteurs";
18124
+ referencedRelation: "profiles";
17294
18125
  referencedColumns: ["id"];
17295
18126
  }, {
17296
18127
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17300,6 +18131,60 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
17300
18131
  referencedColumns: ["id"];
17301
18132
  }];
17302
18133
  };
18134
+ work_order_photos: {
18135
+ Row: {
18136
+ ai_caption: string | null;
18137
+ ai_categorized_at: string | null;
18138
+ ai_labels: import("../integrations/supabase/types").Json | null;
18139
+ caption: string | null;
18140
+ created_at: string;
18141
+ id: string;
18142
+ monteur_id: string | null;
18143
+ photo_type: string;
18144
+ storage_path: string;
18145
+ updated_at: string;
18146
+ work_order_id: string;
18147
+ };
18148
+ Insert: {
18149
+ ai_caption?: string | null;
18150
+ ai_categorized_at?: string | null;
18151
+ ai_labels?: import("../integrations/supabase/types").Json | null;
18152
+ caption?: string | null;
18153
+ created_at?: string;
18154
+ id?: string;
18155
+ monteur_id?: string | null;
18156
+ photo_type?: string;
18157
+ storage_path: string;
18158
+ updated_at?: string;
18159
+ work_order_id: string;
18160
+ };
18161
+ Update: {
18162
+ ai_caption?: string | null;
18163
+ ai_categorized_at?: string | null;
18164
+ ai_labels?: import("../integrations/supabase/types").Json | null;
18165
+ caption?: string | null;
18166
+ created_at?: string;
18167
+ id?: string;
18168
+ monteur_id?: string | null;
18169
+ photo_type?: string;
18170
+ storage_path?: string;
18171
+ updated_at?: string;
18172
+ work_order_id?: string;
18173
+ };
18174
+ Relationships: [{
18175
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
18176
+ columns: ["monteur_id"];
18177
+ isOneToOne: false;
18178
+ referencedRelation: "profiles";
18179
+ referencedColumns: ["id"];
18180
+ }, {
18181
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
18182
+ columns: ["work_order_id"];
18183
+ isOneToOne: false;
18184
+ referencedRelation: "work_orders";
18185
+ referencedColumns: ["id"];
18186
+ }];
18187
+ };
17303
18188
  work_orders: {
17304
18189
  Row: {
17305
18190
  assigned_to: string | null;
@@ -17331,7 +18216,6 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
17331
18216
  scheduled_end_time: string | null;
17332
18217
  scheduled_start_time: string | null;
17333
18218
  status: string;
17334
- tenant_id: string;
17335
18219
  total_hours_worked: number | null;
17336
18220
  total_price: number | null;
17337
18221
  travel_time_minutes: number | null;
@@ -17369,7 +18253,6 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
17369
18253
  scheduled_end_time?: string | null;
17370
18254
  scheduled_start_time?: string | null;
17371
18255
  status?: string;
17372
- tenant_id: string;
17373
18256
  total_hours_worked?: number | null;
17374
18257
  total_price?: number | null;
17375
18258
  travel_time_minutes?: number | null;
@@ -17407,7 +18290,6 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
17407
18290
  scheduled_end_time?: string | null;
17408
18291
  scheduled_start_time?: string | null;
17409
18292
  status?: string;
17410
- tenant_id?: string;
17411
18293
  total_hours_worked?: number | null;
17412
18294
  total_price?: number | null;
17413
18295
  travel_time_minutes?: number | null;
@@ -17421,12 +18303,6 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
17421
18303
  isOneToOne: false;
17422
18304
  referencedRelation: "work_orders";
17423
18305
  referencedColumns: ["id"];
17424
- }, {
17425
- foreignKeyName: "work_orders_tenant_id_fkey";
17426
- columns: ["tenant_id"];
17427
- isOneToOne: false;
17428
- referencedRelation: "tenants";
17429
- referencedColumns: ["id"];
17430
18306
  }];
17431
18307
  };
17432
18308
  };
@@ -18111,6 +18987,19 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18111
18987
  };
18112
18988
  Returns: undefined;
18113
18989
  };
18990
+ approve_mailbox_order_proposal: {
18991
+ Args: {
18992
+ p_custom_fields: import("../integrations/supabase/types").Json;
18993
+ p_customer_id: string;
18994
+ p_delivery_date: string;
18995
+ p_field_values?: import("../integrations/supabase/types").Json;
18996
+ p_lines: import("../integrations/supabase/types").Json;
18997
+ p_notes: string;
18998
+ p_proposal_id: string;
18999
+ p_reviewed_by: string;
19000
+ };
19001
+ Returns: import("../integrations/supabase/types").Json;
19002
+ };
18114
19003
  assign_cart_numbers: {
18115
19004
  Args: {
18116
19005
  p_carts: import("../integrations/supabase/types").Json;
@@ -18146,6 +19035,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18146
19035
  processed_items: number;
18147
19036
  }[];
18148
19037
  };
19038
+ backfill_order_auto_invoice_queue: {
19039
+ Args: never;
19040
+ Returns: number;
19041
+ };
18149
19042
  calculate_layer_stock: {
18150
19043
  Args: {
18151
19044
  p_product_id: string;
@@ -18158,6 +19051,10 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18158
19051
  };
18159
19052
  Returns: number;
18160
19053
  };
19054
+ can_manage_hours: {
19055
+ Args: never;
19056
+ Returns: boolean;
19057
+ };
18161
19058
  check_offer_product_available_stock: {
18162
19059
  Args: {
18163
19060
  p_campaign_product_id: string;
@@ -18180,6 +19077,77 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18180
19077
  };
18181
19078
  Returns: import("../integrations/supabase/types").Json;
18182
19079
  };
19080
+ claim_cloud_print_jobs: {
19081
+ Args: {
19082
+ _max?: number;
19083
+ };
19084
+ Returns: {
19085
+ agent_id: string | null;
19086
+ bron_job_id: string | null;
19087
+ created_at: string;
19088
+ documentnaam: string;
19089
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
19090
+ extern_job_id: string | null;
19091
+ foutmelding: string | null;
19092
+ gebruiker_id: string | null;
19093
+ gebruiker_naam: string;
19094
+ gestart_op: string | null;
19095
+ id: string;
19096
+ idempotentie_sleutel: string | null;
19097
+ is_herprint: boolean;
19098
+ kopieen: number;
19099
+ layout_id: string | null;
19100
+ opgepakt_op: string | null;
19101
+ paginas: number;
19102
+ payload: import("../integrations/supabase/types").Json;
19103
+ pdf_base64: string | null;
19104
+ pdf_url: string | null;
19105
+ pogingen: number;
19106
+ printer_id: string | null;
19107
+ render_html: string | null;
19108
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
19109
+ updated_at: string;
19110
+ volgende_poging: string | null;
19111
+ voltooid_op: string | null;
19112
+ }[];
19113
+ SetofOptions: {
19114
+ from: "*";
19115
+ to: "print_jobs";
19116
+ isOneToOne: false;
19117
+ isSetofReturn: true;
19118
+ };
19119
+ };
19120
+ claim_floriday_stock_queue: {
19121
+ Args: {
19122
+ p_limit?: number;
19123
+ p_worker?: string;
19124
+ };
19125
+ Returns: {
19126
+ attempts: number;
19127
+ connection_id: string;
19128
+ created_at: string;
19129
+ desired_available: boolean | null;
19130
+ gateway_attempt_id: string | null;
19131
+ id: string;
19132
+ last_error: string | null;
19133
+ locked_at: string | null;
19134
+ locked_by: string | null;
19135
+ next_attempt_at: string;
19136
+ number_of_pieces: number;
19137
+ sent_at: string | null;
19138
+ status: string;
19139
+ superseded_by: string | null;
19140
+ trade_item_id: string;
19141
+ updated_at: string;
19142
+ user_id: string;
19143
+ }[];
19144
+ SetofOptions: {
19145
+ from: "*";
19146
+ to: "floriday_continuous_stock_queue";
19147
+ isOneToOne: false;
19148
+ isSetofReturn: true;
19149
+ };
19150
+ };
18183
19151
  claim_logistics_tasks: {
18184
19152
  Args: {
18185
19153
  _limit?: number;
@@ -18239,22 +19207,27 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18239
19207
  created_at: string;
18240
19208
  documentnaam: string;
18241
19209
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
19210
+ extern_job_id: string | null;
18242
19211
  foutmelding: string | null;
18243
19212
  gebruiker_id: string | null;
18244
19213
  gebruiker_naam: string;
18245
19214
  gestart_op: string | null;
18246
19215
  id: string;
19216
+ idempotentie_sleutel: string | null;
18247
19217
  is_herprint: boolean;
18248
19218
  kopieen: number;
18249
19219
  layout_id: string | null;
18250
19220
  opgepakt_op: string | null;
18251
19221
  paginas: number;
18252
19222
  payload: import("../integrations/supabase/types").Json;
19223
+ pdf_base64: string | null;
19224
+ pdf_url: string | null;
18253
19225
  pogingen: number;
18254
19226
  printer_id: string | null;
18255
19227
  render_html: string | null;
18256
19228
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
18257
19229
  updated_at: string;
19230
+ volgende_poging: string | null;
18258
19231
  voltooid_op: string | null;
18259
19232
  }[];
18260
19233
  SetofOptions: {
@@ -18271,6 +19244,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18271
19244
  };
18272
19245
  Returns: {
18273
19246
  action: string;
19247
+ attempt_started_at: string | null;
18274
19248
  attempts: number;
18275
19249
  connection_id: string | null;
18276
19250
  created_at: string;
@@ -18292,10 +19266,28 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18292
19266
  isSetofReturn: true;
18293
19267
  };
18294
19268
  };
19269
+ cleanup_floriday_stock_queue: {
19270
+ Args: never;
19271
+ Returns: undefined;
19272
+ };
18295
19273
  cleanup_old_bookings: {
18296
19274
  Args: never;
18297
19275
  Returns: undefined;
18298
19276
  };
19277
+ cleanup_voorraad_module_history: {
19278
+ Args: never;
19279
+ Returns: undefined;
19280
+ };
19281
+ complete_floriday_stock_queue: {
19282
+ Args: {
19283
+ p_attempt_id?: string;
19284
+ p_error?: string;
19285
+ p_id: string;
19286
+ p_ok: boolean;
19287
+ p_permanent?: boolean;
19288
+ };
19289
+ Returns: undefined;
19290
+ };
18299
19291
  consume_bom_for_production: {
18300
19292
  Args: {
18301
19293
  p_connection_id: string;
@@ -18340,6 +19332,30 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18340
19332
  agent_naam: string;
18341
19333
  }[];
18342
19334
  };
19335
+ consume_van_inventory: {
19336
+ Args: {
19337
+ p_inventory_id: string;
19338
+ p_quantity: number;
19339
+ };
19340
+ Returns: {
19341
+ barcode: string | null;
19342
+ created_at: string;
19343
+ id: string;
19344
+ monteur_id: string | null;
19345
+ price_per_unit: number;
19346
+ product_name: string;
19347
+ quantity_current: number;
19348
+ quantity_min: number;
19349
+ unit: string;
19350
+ updated_at: string;
19351
+ };
19352
+ SetofOptions: {
19353
+ from: "*";
19354
+ to: "van_inventories";
19355
+ isOneToOne: true;
19356
+ isSetofReturn: false;
19357
+ };
19358
+ };
18343
19359
  control_get_todays_carts: {
18344
19360
  Args: never;
18345
19361
  Returns: {
@@ -18407,6 +19423,20 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18407
19423
  };
18408
19424
  Returns: import("../integrations/supabase/types").Json;
18409
19425
  };
19426
+ effective_module_permission: {
19427
+ Args: {
19428
+ _module_id: string;
19429
+ _user_id: string;
19430
+ };
19431
+ Returns: string;
19432
+ } | {
19433
+ Args: {
19434
+ _feature_id: string;
19435
+ _module_id: string;
19436
+ _user_id: string;
19437
+ };
19438
+ Returns: string;
19439
+ };
18410
19440
  email_auth_decrypt: {
18411
19441
  Args: {
18412
19442
  cipher: string;
@@ -18757,12 +19787,6 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18757
19787
  Args: never;
18758
19788
  Returns: string;
18759
19789
  };
18760
- get_work_order_tenant_id: {
18761
- Args: {
18762
- wo_id: string;
18763
- };
18764
- Returns: string;
18765
- };
18766
19790
  has_module_permission: {
18767
19791
  Args: {
18768
19792
  _min: string;
@@ -18796,6 +19820,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18796
19820
  };
18797
19821
  Returns: boolean;
18798
19822
  };
19823
+ is_time_log_week_locked: {
19824
+ Args: {
19825
+ p_employee_id: string;
19826
+ p_start_time: string;
19827
+ };
19828
+ Returns: boolean;
19829
+ };
18799
19830
  is_user_admin: {
18800
19831
  Args: never;
18801
19832
  Returns: boolean;
@@ -18810,13 +19841,14 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
18810
19841
  };
18811
19842
  Returns: boolean;
18812
19843
  };
18813
- list_monteurs: {
19844
+ list_medewerkers: {
18814
19845
  Args: never;
18815
19846
  Returns: {
18816
19847
  avatar_url: string;
18817
19848
  display_name: string;
18818
19849
  email: string;
18819
19850
  id: string;
19851
+ roles: string[];
18820
19852
  }[];
18821
19853
  };
18822
19854
  list_my_planning_items: {
@@ -19210,6 +20242,51 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
19210
20242
  isSetofReturn: false;
19211
20243
  };
19212
20244
  };
20245
+ logistics_floriday_claim_pushes: {
20246
+ Args: {
20247
+ _lease_seconds?: number;
20248
+ _limit?: number;
20249
+ _worker?: string;
20250
+ };
20251
+ Returns: {
20252
+ attempts: number;
20253
+ fulfillment_order_id: string;
20254
+ id: string;
20255
+ last_sent_hash: string;
20256
+ order_ref: string;
20257
+ payload: import("../integrations/supabase/types").Json;
20258
+ payload_hash: string;
20259
+ revision: number;
20260
+ }[];
20261
+ };
20262
+ logistics_floriday_finish_push: {
20263
+ Args: {
20264
+ _error?: string;
20265
+ _fulfillment_order_id?: string;
20266
+ _id: string;
20267
+ _max_age_hours?: number;
20268
+ _max_attempts?: number;
20269
+ _ok: boolean;
20270
+ _permanent?: boolean;
20271
+ _revision: number;
20272
+ _sent_hash?: string;
20273
+ };
20274
+ Returns: string;
20275
+ };
20276
+ logistics_floriday_prune_pushes: {
20277
+ Args: {
20278
+ _days?: number;
20279
+ };
20280
+ Returns: number;
20281
+ };
20282
+ logistics_floriday_queue_push: {
20283
+ Args: {
20284
+ _order_ref: string;
20285
+ _payload?: import("../integrations/supabase/types").Json;
20286
+ _payload_hash?: string;
20287
+ };
20288
+ Returns: string;
20289
+ };
19213
20290
  logistics_live_carriers: {
19214
20291
  Args: {
19215
20292
  p_order_ref: string;
@@ -19262,6 +20339,65 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
19262
20339
  };
19263
20340
  Returns: number;
19264
20341
  };
20342
+ logistics_plan_claim: {
20343
+ Args: {
20344
+ p_limit?: number;
20345
+ };
20346
+ Returns: {
20347
+ attempts: number;
20348
+ id: string;
20349
+ order_id: string;
20350
+ }[];
20351
+ };
20352
+ logistics_plan_enqueue: {
20353
+ Args: {
20354
+ p_order_id: string;
20355
+ p_reason?: string;
20356
+ };
20357
+ Returns: undefined;
20358
+ };
20359
+ logistics_plan_ensure_event: {
20360
+ Args: {
20361
+ p_order_id: string;
20362
+ };
20363
+ Returns: boolean;
20364
+ };
20365
+ logistics_plan_finish: {
20366
+ Args: {
20367
+ p_error?: string;
20368
+ p_id: string;
20369
+ };
20370
+ Returns: undefined;
20371
+ };
20372
+ logistics_plan_impact_orders: {
20373
+ Args: {
20374
+ p_order_id: string;
20375
+ };
20376
+ Returns: {
20377
+ buffer_id: string;
20378
+ order_id: string;
20379
+ plan_date: string;
20380
+ }[];
20381
+ };
20382
+ logistics_plan_kick: {
20383
+ Args: never;
20384
+ Returns: undefined;
20385
+ };
20386
+ logistics_plan_prune: {
20387
+ Args: never;
20388
+ Returns: number;
20389
+ };
20390
+ logistics_plan_release_stale: {
20391
+ Args: never;
20392
+ Returns: number;
20393
+ };
20394
+ logistics_plan_setting: {
20395
+ Args: {
20396
+ p_default: number;
20397
+ p_key: string;
20398
+ };
20399
+ Returns: number;
20400
+ };
19265
20401
  logistics_queue_capacity_email: {
19266
20402
  Args: {
19267
20403
  p_alert_id: string;
@@ -19500,6 +20636,14 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
19500
20636
  };
19501
20637
  Returns: undefined;
19502
20638
  };
20639
+ my_module_permissions: {
20640
+ Args: never;
20641
+ Returns: {
20642
+ feature_id: string;
20643
+ module_id: string;
20644
+ permission: string;
20645
+ }[];
20646
+ };
19503
20647
  next_manufacture_partij: {
19504
20648
  Args: {
19505
20649
  _tenant_id: string;
@@ -19550,6 +20694,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
19550
20694
  };
19551
20695
  Returns: boolean;
19552
20696
  };
20697
+ opruim_print_historie: {
20698
+ Args: never;
20699
+ Returns: {
20700
+ ontdaan: number;
20701
+ verwijderd: number;
20702
+ }[];
20703
+ };
19553
20704
  order_number_prefix: {
19554
20705
  Args: {
19555
20706
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -19557,6 +20708,15 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
19557
20708
  };
19558
20709
  Returns: string;
19559
20710
  };
20711
+ pick_active_printers: {
20712
+ Args: never;
20713
+ Returns: {
20714
+ id: string;
20715
+ locatie: string;
20716
+ naam: string;
20717
+ online: boolean;
20718
+ }[];
20719
+ };
19560
20720
  pick_claim_document: {
19561
20721
  Args: {
19562
20722
  _queue_item_id: string;
@@ -19743,6 +20903,52 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
19743
20903
  };
19744
20904
  Returns: undefined;
19745
20905
  };
20906
+ pick_reset_print: {
20907
+ Args: {
20908
+ _queue_item_id: string;
20909
+ _session_id: string;
20910
+ };
20911
+ Returns: {
20912
+ announced_at: string;
20913
+ assigned_user_id: string | null;
20914
+ barcode: string | null;
20915
+ cancelled_at: string | null;
20916
+ cart_count: number;
20917
+ completed_at: string | null;
20918
+ country_code: string | null;
20919
+ created_at: string;
20920
+ customer_name: string | null;
20921
+ delivery_address: string | null;
20922
+ document_number: string | null;
20923
+ document_type_id: string | null;
20924
+ due_at: string | null;
20925
+ id: string;
20926
+ is_urgent: boolean;
20927
+ line_count: number;
20928
+ order_number: string | null;
20929
+ order_type: string | null;
20930
+ payload: import("../integrations/supabase/types").Json;
20931
+ print_count: number;
20932
+ print_job_id: string | null;
20933
+ printed_at: string | null;
20934
+ printed_by: string | null;
20935
+ printer_id: string | null;
20936
+ priority: number;
20937
+ reference: string | null;
20938
+ route: string | null;
20939
+ screen_id: string | null;
20940
+ station_id: string | null;
20941
+ status_id: string | null;
20942
+ updated_at: string;
20943
+ warnings: import("../integrations/supabase/types").Json;
20944
+ };
20945
+ SetofOptions: {
20946
+ from: "*";
20947
+ to: "pick_queue";
20948
+ isOneToOne: true;
20949
+ isSetofReturn: false;
20950
+ };
20951
+ };
19746
20952
  pick_station_dashboard: {
19747
20953
  Args: never;
19748
20954
  Returns: {
@@ -19889,6 +21095,12 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
19889
21095
  };
19890
21096
  Returns: undefined;
19891
21097
  };
21098
+ reset_stalled_floriday_stock_queue: {
21099
+ Args: {
21100
+ p_include_failed?: boolean;
21101
+ };
21102
+ Returns: number;
21103
+ };
19892
21104
  resolve_group_allocation: {
19893
21105
  Args: {
19894
21106
  _needed: number;
@@ -19933,14 +21145,28 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
19933
21145
  };
19934
21146
  Returns: import("../integrations/supabase/types").Json;
19935
21147
  };
21148
+ ruim_print_jobs_op: {
21149
+ Args: {
21150
+ _bewaar_dagen?: number;
21151
+ };
21152
+ Returns: number;
21153
+ };
19936
21154
  run_floriday_continuous_stock_sync: {
19937
21155
  Args: never;
19938
21156
  Returns: undefined;
19939
21157
  };
21158
+ run_floriday_stock_queue_process: {
21159
+ Args: never;
21160
+ Returns: undefined;
21161
+ };
19940
21162
  run_logistics_tasks_dispatch: {
19941
21163
  Args: never;
19942
21164
  Returns: undefined;
19943
21165
  };
21166
+ run_print_queue_ticks: {
21167
+ Args: never;
21168
+ Returns: number;
21169
+ };
19944
21170
  run_twinfield_queue_tick: {
19945
21171
  Args: never;
19946
21172
  Returns: undefined;
@@ -20181,6 +21407,13 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
20181
21407
  };
20182
21408
  Returns: number;
20183
21409
  };
21410
+ schedule_floriday_stock_queue_process: {
21411
+ Args: {
21412
+ p_apikey: string;
21413
+ p_url: string;
21414
+ };
21415
+ Returns: number;
21416
+ };
20184
21417
  schedule_floriday_token_refresh: {
20185
21418
  Args: {
20186
21419
  p_apikey: string;
@@ -20287,6 +21520,16 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
20287
21520
  };
20288
21521
  Returns: string[];
20289
21522
  };
21523
+ switch_time_log: {
21524
+ Args: {
21525
+ p_employee_id: string;
21526
+ p_start_lat?: number;
21527
+ p_start_lng?: number;
21528
+ p_type: string;
21529
+ p_work_order_id?: string;
21530
+ };
21531
+ Returns: import("../integrations/supabase/types").Json;
21532
+ };
20290
21533
  sync_all_layer_stocks: {
20291
21534
  Args: never;
20292
21535
  Returns: undefined;
@@ -20321,6 +21564,15 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
20321
21564
  };
20322
21565
  Returns: undefined;
20323
21566
  };
21567
+ trade_item_stock_duplicates: {
21568
+ Args: never;
21569
+ Returns: {
21570
+ keys: string[];
21571
+ product_id: string;
21572
+ product_name: string;
21573
+ row_count: number;
21574
+ }[];
21575
+ };
20324
21576
  try_debtor_lock: {
20325
21577
  Args: {
20326
21578
  _group_key: string;
@@ -20328,6 +21580,24 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
20328
21580
  };
20329
21581
  Returns: boolean;
20330
21582
  };
21583
+ twinfield_cron_lock_acquire: {
21584
+ Args: {
21585
+ _job_name: string;
21586
+ _stale_seconds?: number;
21587
+ };
21588
+ Returns: boolean;
21589
+ };
21590
+ twinfield_cron_lock_release: {
21591
+ Args: {
21592
+ _error?: string;
21593
+ _job_name: string;
21594
+ };
21595
+ Returns: undefined;
21596
+ };
21597
+ twinfield_prune_push_queue: {
21598
+ Args: never;
21599
+ Returns: number;
21600
+ };
20331
21601
  twinfield_register_cron: {
20332
21602
  Args: {
20333
21603
  apikey?: string;
@@ -20370,7 +21640,7 @@ export declare const getOrderPickupMoment: import("@tanstack/start-client-core")
20370
21640
  };
20371
21641
  Enums: {
20372
21642
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20373
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
21643
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20374
21644
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
20375
21645
  doc_orientation: "portrait" | "landscape";
20376
21646
  exact_env: "staging" | "live";
@@ -21275,6 +22545,126 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
21275
22545
  };
21276
22546
  Relationships: [];
21277
22547
  };
22548
+ cao_holidays: {
22549
+ Row: {
22550
+ created_at: string;
22551
+ description: string | null;
22552
+ holiday_date: string;
22553
+ id: string;
22554
+ updated_at: string;
22555
+ };
22556
+ Insert: {
22557
+ created_at?: string;
22558
+ description?: string | null;
22559
+ holiday_date: string;
22560
+ id?: string;
22561
+ updated_at?: string;
22562
+ };
22563
+ Update: {
22564
+ created_at?: string;
22565
+ description?: string | null;
22566
+ holiday_date?: string;
22567
+ id?: string;
22568
+ updated_at?: string;
22569
+ };
22570
+ Relationships: [];
22571
+ };
22572
+ cao_settings: {
22573
+ Row: {
22574
+ auto_break_after_hours: number;
22575
+ auto_break_minutes: number;
22576
+ auto_break_unpaid: boolean;
22577
+ auto_stop_after_hours: number;
22578
+ callout_fee: number;
22579
+ created_at: string;
22580
+ daily_regular_hours: number;
22581
+ default_hourly_rate: number;
22582
+ id: string;
22583
+ materials_markup_percent: number;
22584
+ max_daily_hours: number;
22585
+ max_weekly_hours: number;
22586
+ meal_allowance_amount: number;
22587
+ overtime_pct_178: number;
22588
+ overtime_pct_189: number;
22589
+ overtime_pct_212: number;
22590
+ reminder_after_hours: number;
22591
+ standby_evening_amount: number;
22592
+ standby_weekend_amount: number;
22593
+ travel_cost_per_km: number | null;
22594
+ travel_cost_threshold_km: number | null;
22595
+ travel_counts_as_work: boolean;
22596
+ travel_hourly_rate: number;
22597
+ travel_rate_per_hour: number;
22598
+ travel_threshold_minutes: number;
22599
+ updated_at: string;
22600
+ weekend_always_212: boolean;
22601
+ window_end: string;
22602
+ window_start: string;
22603
+ };
22604
+ Insert: {
22605
+ auto_break_after_hours?: number;
22606
+ auto_break_minutes?: number;
22607
+ auto_break_unpaid?: boolean;
22608
+ auto_stop_after_hours?: number;
22609
+ callout_fee?: number;
22610
+ created_at?: string;
22611
+ daily_regular_hours?: number;
22612
+ default_hourly_rate?: number;
22613
+ id?: string;
22614
+ materials_markup_percent?: number;
22615
+ max_daily_hours?: number;
22616
+ max_weekly_hours?: number;
22617
+ meal_allowance_amount?: number;
22618
+ overtime_pct_178?: number;
22619
+ overtime_pct_189?: number;
22620
+ overtime_pct_212?: number;
22621
+ reminder_after_hours?: number;
22622
+ standby_evening_amount?: number;
22623
+ standby_weekend_amount?: number;
22624
+ travel_cost_per_km?: number | null;
22625
+ travel_cost_threshold_km?: number | null;
22626
+ travel_counts_as_work?: boolean;
22627
+ travel_hourly_rate?: number;
22628
+ travel_rate_per_hour?: number;
22629
+ travel_threshold_minutes?: number;
22630
+ updated_at?: string;
22631
+ weekend_always_212?: boolean;
22632
+ window_end?: string;
22633
+ window_start?: string;
22634
+ };
22635
+ Update: {
22636
+ auto_break_after_hours?: number;
22637
+ auto_break_minutes?: number;
22638
+ auto_break_unpaid?: boolean;
22639
+ auto_stop_after_hours?: number;
22640
+ callout_fee?: number;
22641
+ created_at?: string;
22642
+ daily_regular_hours?: number;
22643
+ default_hourly_rate?: number;
22644
+ id?: string;
22645
+ materials_markup_percent?: number;
22646
+ max_daily_hours?: number;
22647
+ max_weekly_hours?: number;
22648
+ meal_allowance_amount?: number;
22649
+ overtime_pct_178?: number;
22650
+ overtime_pct_189?: number;
22651
+ overtime_pct_212?: number;
22652
+ reminder_after_hours?: number;
22653
+ standby_evening_amount?: number;
22654
+ standby_weekend_amount?: number;
22655
+ travel_cost_per_km?: number | null;
22656
+ travel_cost_threshold_km?: number | null;
22657
+ travel_counts_as_work?: boolean;
22658
+ travel_hourly_rate?: number;
22659
+ travel_rate_per_hour?: number;
22660
+ travel_threshold_minutes?: number;
22661
+ updated_at?: string;
22662
+ weekend_always_212?: boolean;
22663
+ window_end?: string;
22664
+ window_start?: string;
22665
+ };
22666
+ Relationships: [];
22667
+ };
21278
22668
  carrier_shipping_rates: {
21279
22669
  Row: {
21280
22670
  carrier_id: string;
@@ -22087,7 +23477,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
22087
23477
  city: string | null;
22088
23478
  country: string | null;
22089
23479
  created_at: string;
22090
- customer_id: string | null;
23480
+ customer_id: string;
22091
23481
  external_key: string | null;
22092
23482
  external_provider: string | null;
22093
23483
  floriday_location_id: string | null;
@@ -22111,7 +23501,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
22111
23501
  city?: string | null;
22112
23502
  country?: string | null;
22113
23503
  created_at?: string;
22114
- customer_id?: string | null;
23504
+ customer_id: string;
22115
23505
  external_key?: string | null;
22116
23506
  external_provider?: string | null;
22117
23507
  floriday_location_id?: string | null;
@@ -22135,7 +23525,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
22135
23525
  city?: string | null;
22136
23526
  country?: string | null;
22137
23527
  created_at?: string;
22138
- customer_id?: string | null;
23528
+ customer_id?: string;
22139
23529
  external_key?: string | null;
22140
23530
  external_provider?: string | null;
22141
23531
  floriday_location_id?: string | null;
@@ -26098,12 +27488,17 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
26098
27488
  attempts: number;
26099
27489
  connection_id: string;
26100
27490
  created_at: string;
27491
+ desired_available: boolean | null;
26101
27492
  gateway_attempt_id: string | null;
26102
27493
  id: string;
26103
27494
  last_error: string | null;
27495
+ locked_at: string | null;
27496
+ locked_by: string | null;
27497
+ next_attempt_at: string;
26104
27498
  number_of_pieces: number;
26105
27499
  sent_at: string | null;
26106
27500
  status: string;
27501
+ superseded_by: string | null;
26107
27502
  trade_item_id: string;
26108
27503
  updated_at: string;
26109
27504
  user_id: string;
@@ -26112,12 +27507,17 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
26112
27507
  attempts?: number;
26113
27508
  connection_id: string;
26114
27509
  created_at?: string;
27510
+ desired_available?: boolean | null;
26115
27511
  gateway_attempt_id?: string | null;
26116
27512
  id?: string;
26117
27513
  last_error?: string | null;
27514
+ locked_at?: string | null;
27515
+ locked_by?: string | null;
27516
+ next_attempt_at?: string;
26118
27517
  number_of_pieces?: number;
26119
27518
  sent_at?: string | null;
26120
27519
  status?: string;
27520
+ superseded_by?: string | null;
26121
27521
  trade_item_id: string;
26122
27522
  updated_at?: string;
26123
27523
  user_id: string;
@@ -26126,12 +27526,17 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
26126
27526
  attempts?: number;
26127
27527
  connection_id?: string;
26128
27528
  created_at?: string;
27529
+ desired_available?: boolean | null;
26129
27530
  gateway_attempt_id?: string | null;
26130
27531
  id?: string;
26131
27532
  last_error?: string | null;
27533
+ locked_at?: string | null;
27534
+ locked_by?: string | null;
27535
+ next_attempt_at?: string;
26132
27536
  number_of_pieces?: number;
26133
27537
  sent_at?: string | null;
26134
27538
  status?: string;
27539
+ superseded_by?: string | null;
26135
27540
  trade_item_id?: string;
26136
27541
  updated_at?: string;
26137
27542
  user_id?: string;
@@ -26868,6 +28273,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
26868
28273
  Row: {
26869
28274
  buyer_organization_id: string | null;
26870
28275
  connection_id: string;
28276
+ controlled_at: string | null;
26871
28277
  created_at: string;
26872
28278
  data: import("../integrations/supabase/types").Json;
26873
28279
  floriday_id: string;
@@ -26879,6 +28285,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
26879
28285
  Insert: {
26880
28286
  buyer_organization_id?: string | null;
26881
28287
  connection_id: string;
28288
+ controlled_at?: string | null;
26882
28289
  created_at?: string;
26883
28290
  data: import("../integrations/supabase/types").Json;
26884
28291
  floriday_id: string;
@@ -26890,6 +28297,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
26890
28297
  Update: {
26891
28298
  buyer_organization_id?: string | null;
26892
28299
  connection_id?: string;
28300
+ controlled_at?: string | null;
26893
28301
  created_at?: string;
26894
28302
  data?: import("../integrations/supabase/types").Json;
26895
28303
  floriday_id?: string;
@@ -27791,6 +29199,54 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
27791
29199
  };
27792
29200
  Relationships: [];
27793
29201
  };
29202
+ invoice_timing_settings: {
29203
+ Row: {
29204
+ anchor: string;
29205
+ business_days_only: boolean;
29206
+ created_at: string;
29207
+ enabled: boolean;
29208
+ id: string;
29209
+ offset_days: number;
29210
+ pickup_anchor: string;
29211
+ pickup_business_days_only: boolean;
29212
+ pickup_offset_days: number;
29213
+ pickup_time_of_day: string;
29214
+ singleton: boolean;
29215
+ time_of_day: string;
29216
+ updated_at: string;
29217
+ };
29218
+ Insert: {
29219
+ anchor?: string;
29220
+ business_days_only?: boolean;
29221
+ created_at?: string;
29222
+ enabled?: boolean;
29223
+ id?: string;
29224
+ offset_days?: number;
29225
+ pickup_anchor?: string;
29226
+ pickup_business_days_only?: boolean;
29227
+ pickup_offset_days?: number;
29228
+ pickup_time_of_day?: string;
29229
+ singleton?: boolean;
29230
+ time_of_day?: string;
29231
+ updated_at?: string;
29232
+ };
29233
+ Update: {
29234
+ anchor?: string;
29235
+ business_days_only?: boolean;
29236
+ created_at?: string;
29237
+ enabled?: boolean;
29238
+ id?: string;
29239
+ offset_days?: number;
29240
+ pickup_anchor?: string;
29241
+ pickup_business_days_only?: boolean;
29242
+ pickup_offset_days?: number;
29243
+ pickup_time_of_day?: string;
29244
+ singleton?: boolean;
29245
+ time_of_day?: string;
29246
+ updated_at?: string;
29247
+ };
29248
+ Relationships: [];
29249
+ };
27794
29250
  itk_contact_persons: {
27795
29251
  Row: {
27796
29252
  created_at: string;
@@ -28103,7 +29559,6 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
28103
29559
  start_date: string;
28104
29560
  start_time: string | null;
28105
29561
  status: string;
28106
- tenant_id: string;
28107
29562
  updated_at: string;
28108
29563
  user_id: string;
28109
29564
  };
@@ -28121,7 +29576,6 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
28121
29576
  start_date: string;
28122
29577
  start_time?: string | null;
28123
29578
  status?: string;
28124
- tenant_id?: string;
28125
29579
  updated_at?: string;
28126
29580
  user_id: string;
28127
29581
  };
@@ -28139,7 +29593,6 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
28139
29593
  start_date?: string;
28140
29594
  start_time?: string | null;
28141
29595
  status?: string;
28142
- tenant_id?: string;
28143
29596
  updated_at?: string;
28144
29597
  user_id?: string;
28145
29598
  };
@@ -28147,13 +29600,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
28147
29600
  foreignKeyName: "leave_requests_monteur_id_fkey";
28148
29601
  columns: ["monteur_id"];
28149
29602
  isOneToOne: false;
28150
- referencedRelation: "monteurs";
29603
+ referencedRelation: "profiles";
28151
29604
  referencedColumns: ["id"];
28152
29605
  }, {
28153
29606
  foreignKeyName: "leave_requests_user_id_fkey";
28154
29607
  columns: ["user_id"];
28155
29608
  isOneToOne: false;
28156
- referencedRelation: "monteurs";
29609
+ referencedRelation: "profiles";
28157
29610
  referencedColumns: ["id"];
28158
29611
  }];
28159
29612
  };
@@ -28880,6 +30333,69 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
28880
30333
  };
28881
30334
  Relationships: [];
28882
30335
  };
30336
+ logistics_floriday_pushes: {
30337
+ Row: {
30338
+ attempts: number;
30339
+ created_at: string;
30340
+ first_queued_at: string;
30341
+ fulfillment_order_id: string | null;
30342
+ id: string;
30343
+ last_error: string | null;
30344
+ last_error_at: string | null;
30345
+ last_sent_hash: string | null;
30346
+ locked_by: string | null;
30347
+ locked_until: string | null;
30348
+ next_attempt_at: string;
30349
+ order_ref: string;
30350
+ payload: import("../integrations/supabase/types").Json;
30351
+ payload_hash: string | null;
30352
+ revision: number;
30353
+ sent_at: string | null;
30354
+ status: string;
30355
+ updated_at: string;
30356
+ };
30357
+ Insert: {
30358
+ attempts?: number;
30359
+ created_at?: string;
30360
+ first_queued_at?: string;
30361
+ fulfillment_order_id?: string | null;
30362
+ id?: string;
30363
+ last_error?: string | null;
30364
+ last_error_at?: string | null;
30365
+ last_sent_hash?: string | null;
30366
+ locked_by?: string | null;
30367
+ locked_until?: string | null;
30368
+ next_attempt_at?: string;
30369
+ order_ref: string;
30370
+ payload?: import("../integrations/supabase/types").Json;
30371
+ payload_hash?: string | null;
30372
+ revision?: number;
30373
+ sent_at?: string | null;
30374
+ status?: string;
30375
+ updated_at?: string;
30376
+ };
30377
+ Update: {
30378
+ attempts?: number;
30379
+ created_at?: string;
30380
+ first_queued_at?: string;
30381
+ fulfillment_order_id?: string | null;
30382
+ id?: string;
30383
+ last_error?: string | null;
30384
+ last_error_at?: string | null;
30385
+ last_sent_hash?: string | null;
30386
+ locked_by?: string | null;
30387
+ locked_until?: string | null;
30388
+ next_attempt_at?: string;
30389
+ order_ref?: string;
30390
+ payload?: import("../integrations/supabase/types").Json;
30391
+ payload_hash?: string | null;
30392
+ revision?: number;
30393
+ sent_at?: string | null;
30394
+ status?: string;
30395
+ updated_at?: string;
30396
+ };
30397
+ Relationships: [];
30398
+ };
28883
30399
  logistics_formulas: {
28884
30400
  Row: {
28885
30401
  created_at: string;
@@ -28958,6 +30474,45 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
28958
30474
  };
28959
30475
  Relationships: [];
28960
30476
  };
30477
+ logistics_plan_queue: {
30478
+ Row: {
30479
+ attempts: number;
30480
+ claimed_at: string | null;
30481
+ enqueued_at: string;
30482
+ error: string | null;
30483
+ id: string;
30484
+ next_attempt_at: string;
30485
+ order_id: string;
30486
+ reason: string;
30487
+ status: string;
30488
+ updated_at: string;
30489
+ };
30490
+ Insert: {
30491
+ attempts?: number;
30492
+ claimed_at?: string | null;
30493
+ enqueued_at?: string;
30494
+ error?: string | null;
30495
+ id?: string;
30496
+ next_attempt_at?: string;
30497
+ order_id: string;
30498
+ reason?: string;
30499
+ status?: string;
30500
+ updated_at?: string;
30501
+ };
30502
+ Update: {
30503
+ attempts?: number;
30504
+ claimed_at?: string | null;
30505
+ enqueued_at?: string;
30506
+ error?: string | null;
30507
+ id?: string;
30508
+ next_attempt_at?: string;
30509
+ order_id?: string;
30510
+ reason?: string;
30511
+ status?: string;
30512
+ updated_at?: string;
30513
+ };
30514
+ Relationships: [];
30515
+ };
28961
30516
  logistics_plan_runs: {
28962
30517
  Row: {
28963
30518
  created_at: string;
@@ -29033,6 +30588,24 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29033
30588
  referencedColumns: ["id"];
29034
30589
  }];
29035
30590
  };
30591
+ logistics_plan_settings: {
30592
+ Row: {
30593
+ key: string;
30594
+ updated_at: string;
30595
+ value: string;
30596
+ };
30597
+ Insert: {
30598
+ key: string;
30599
+ updated_at?: string;
30600
+ value: string;
30601
+ };
30602
+ Update: {
30603
+ key?: string;
30604
+ updated_at?: string;
30605
+ value?: string;
30606
+ };
30607
+ Relationships: [];
30608
+ };
29036
30609
  logistics_rebuffer_state: {
29037
30610
  Row: {
29038
30611
  created_at: string;
@@ -29743,14 +31316,17 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29743
31316
  };
29744
31317
  mailbox_messages: {
29745
31318
  Row: {
31319
+ attachments: import("../integrations/supabase/types").Json;
29746
31320
  body_html: string | null;
29747
31321
  body_text: string | null;
31322
+ cc_recipients: import("../integrations/supabase/types").Json;
29748
31323
  connection_id: string | null;
29749
31324
  created_at: string;
29750
31325
  error_message: string | null;
29751
31326
  external_id: string | null;
29752
31327
  from_email: string | null;
29753
31328
  from_name: string | null;
31329
+ has_attachments: boolean;
29754
31330
  id: string;
29755
31331
  message_id: string | null;
29756
31332
  profile_id: string | null;
@@ -29758,18 +31334,22 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29758
31334
  received_at: string | null;
29759
31335
  status: string;
29760
31336
  subject: string | null;
31337
+ to_recipients: import("../integrations/supabase/types").Json;
29761
31338
  uid: number | null;
29762
31339
  updated_at: string;
29763
31340
  };
29764
31341
  Insert: {
31342
+ attachments?: import("../integrations/supabase/types").Json;
29765
31343
  body_html?: string | null;
29766
31344
  body_text?: string | null;
31345
+ cc_recipients?: import("../integrations/supabase/types").Json;
29767
31346
  connection_id?: string | null;
29768
31347
  created_at?: string;
29769
31348
  error_message?: string | null;
29770
31349
  external_id?: string | null;
29771
31350
  from_email?: string | null;
29772
31351
  from_name?: string | null;
31352
+ has_attachments?: boolean;
29773
31353
  id?: string;
29774
31354
  message_id?: string | null;
29775
31355
  profile_id?: string | null;
@@ -29777,18 +31357,22 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29777
31357
  received_at?: string | null;
29778
31358
  status?: string;
29779
31359
  subject?: string | null;
31360
+ to_recipients?: import("../integrations/supabase/types").Json;
29780
31361
  uid?: number | null;
29781
31362
  updated_at?: string;
29782
31363
  };
29783
31364
  Update: {
31365
+ attachments?: import("../integrations/supabase/types").Json;
29784
31366
  body_html?: string | null;
29785
31367
  body_text?: string | null;
31368
+ cc_recipients?: import("../integrations/supabase/types").Json;
29786
31369
  connection_id?: string | null;
29787
31370
  created_at?: string;
29788
31371
  error_message?: string | null;
29789
31372
  external_id?: string | null;
29790
31373
  from_email?: string | null;
29791
31374
  from_name?: string | null;
31375
+ has_attachments?: boolean;
29792
31376
  id?: string;
29793
31377
  message_id?: string | null;
29794
31378
  profile_id?: string | null;
@@ -29796,6 +31380,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
29796
31380
  received_at?: string | null;
29797
31381
  status?: string;
29798
31382
  subject?: string | null;
31383
+ to_recipients?: import("../integrations/supabase/types").Json;
29799
31384
  uid?: number | null;
29800
31385
  updated_at?: string;
29801
31386
  };
@@ -30176,6 +31761,90 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
30176
31761
  };
30177
31762
  Relationships: [];
30178
31763
  };
31764
+ material_usage: {
31765
+ Row: {
31766
+ created_at: string;
31767
+ id: string;
31768
+ material_name: string;
31769
+ monteur_id: string | null;
31770
+ price_at_time: number;
31771
+ quantity_used: number;
31772
+ updated_at: string;
31773
+ van_inventory_id: string | null;
31774
+ work_order_id: string;
31775
+ };
31776
+ Insert: {
31777
+ created_at?: string;
31778
+ id?: string;
31779
+ material_name: string;
31780
+ monteur_id?: string | null;
31781
+ price_at_time?: number;
31782
+ quantity_used?: number;
31783
+ updated_at?: string;
31784
+ van_inventory_id?: string | null;
31785
+ work_order_id: string;
31786
+ };
31787
+ Update: {
31788
+ created_at?: string;
31789
+ id?: string;
31790
+ material_name?: string;
31791
+ monteur_id?: string | null;
31792
+ price_at_time?: number;
31793
+ quantity_used?: number;
31794
+ updated_at?: string;
31795
+ van_inventory_id?: string | null;
31796
+ work_order_id?: string;
31797
+ };
31798
+ Relationships: [{
31799
+ foreignKeyName: "material_usage_monteur_id_fkey";
31800
+ columns: ["monteur_id"];
31801
+ isOneToOne: false;
31802
+ referencedRelation: "profiles";
31803
+ referencedColumns: ["id"];
31804
+ }, {
31805
+ foreignKeyName: "material_usage_van_inventory_id_fkey";
31806
+ columns: ["van_inventory_id"];
31807
+ isOneToOne: false;
31808
+ referencedRelation: "van_inventories";
31809
+ referencedColumns: ["id"];
31810
+ }, {
31811
+ foreignKeyName: "material_usage_work_order_id_fkey";
31812
+ columns: ["work_order_id"];
31813
+ isOneToOne: false;
31814
+ referencedRelation: "work_orders";
31815
+ referencedColumns: ["id"];
31816
+ }];
31817
+ };
31818
+ module_features: {
31819
+ Row: {
31820
+ created_at: string;
31821
+ feature_id: string;
31822
+ id: string;
31823
+ is_active: boolean;
31824
+ last_seen_at: string;
31825
+ module_id: string;
31826
+ name: string;
31827
+ };
31828
+ Insert: {
31829
+ created_at?: string;
31830
+ feature_id: string;
31831
+ id?: string;
31832
+ is_active?: boolean;
31833
+ last_seen_at?: string;
31834
+ module_id: string;
31835
+ name: string;
31836
+ };
31837
+ Update: {
31838
+ created_at?: string;
31839
+ feature_id?: string;
31840
+ id?: string;
31841
+ is_active?: boolean;
31842
+ last_seen_at?: string;
31843
+ module_id?: string;
31844
+ name?: string;
31845
+ };
31846
+ Relationships: [];
31847
+ };
30179
31848
  module_permissions: {
30180
31849
  Row: {
30181
31850
  created_at: string;
@@ -30203,6 +31872,39 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
30203
31872
  };
30204
31873
  Relationships: [];
30205
31874
  };
31875
+ module_registry: {
31876
+ Row: {
31877
+ created_at: string;
31878
+ enforce: boolean;
31879
+ is_active: boolean;
31880
+ last_seen_at: string;
31881
+ module_id: string;
31882
+ name: string;
31883
+ shell_id: string | null;
31884
+ sort_order: number | null;
31885
+ };
31886
+ Insert: {
31887
+ created_at?: string;
31888
+ enforce?: boolean;
31889
+ is_active?: boolean;
31890
+ last_seen_at?: string;
31891
+ module_id: string;
31892
+ name: string;
31893
+ shell_id?: string | null;
31894
+ sort_order?: number | null;
31895
+ };
31896
+ Update: {
31897
+ created_at?: string;
31898
+ enforce?: boolean;
31899
+ is_active?: boolean;
31900
+ last_seen_at?: string;
31901
+ module_id?: string;
31902
+ name?: string;
31903
+ shell_id?: string | null;
31904
+ sort_order?: number | null;
31905
+ };
31906
+ Relationships: [];
31907
+ };
30206
31908
  module_runtime_config: {
30207
31909
  Row: {
30208
31910
  key: string;
@@ -30254,63 +31956,6 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
30254
31956
  };
30255
31957
  Relationships: [];
30256
31958
  };
30257
- monteurs: {
30258
- Row: {
30259
- avatar_url: string | null;
30260
- color: string | null;
30261
- created_at: string;
30262
- email: string | null;
30263
- id: string;
30264
- is_active: boolean;
30265
- leave_balance_hours: number;
30266
- name: string;
30267
- persnr: number | null;
30268
- phone: string | null;
30269
- role: string;
30270
- tenant_id: string;
30271
- updated_at: string;
30272
- user_id: string | null;
30273
- };
30274
- Insert: {
30275
- avatar_url?: string | null;
30276
- color?: string | null;
30277
- created_at?: string;
30278
- email?: string | null;
30279
- id?: string;
30280
- is_active?: boolean;
30281
- leave_balance_hours?: number;
30282
- name: string;
30283
- persnr?: number | null;
30284
- phone?: string | null;
30285
- role?: string;
30286
- tenant_id: string;
30287
- updated_at?: string;
30288
- user_id?: string | null;
30289
- };
30290
- Update: {
30291
- avatar_url?: string | null;
30292
- color?: string | null;
30293
- created_at?: string;
30294
- email?: string | null;
30295
- id?: string;
30296
- is_active?: boolean;
30297
- leave_balance_hours?: number;
30298
- name?: string;
30299
- persnr?: number | null;
30300
- phone?: string | null;
30301
- role?: string;
30302
- tenant_id?: string;
30303
- updated_at?: string;
30304
- user_id?: string | null;
30305
- };
30306
- Relationships: [{
30307
- foreignKeyName: "monteurs_tenant_id_fkey";
30308
- columns: ["tenant_id"];
30309
- isOneToOne: false;
30310
- referencedRelation: "tenants";
30311
- referencedColumns: ["id"];
30312
- }];
30313
- };
30314
31959
  nmbrs_component_mapping: {
30315
31960
  Row: {
30316
31961
  created_at: string;
@@ -30381,13 +32026,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
30381
32026
  nmbrs_employee_number?: string;
30382
32027
  updated_at?: string;
30383
32028
  };
30384
- Relationships: [{
30385
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
30386
- columns: ["monteur_id"];
30387
- isOneToOne: true;
30388
- referencedRelation: "monteurs";
30389
- referencedColumns: ["id"];
30390
- }];
32029
+ Relationships: [];
30391
32030
  };
30392
32031
  nmbrs_export_lines: {
30393
32032
  Row: {
@@ -30436,12 +32075,6 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
30436
32075
  wage_code?: string;
30437
32076
  };
30438
32077
  Relationships: [{
30439
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
30440
- columns: ["monteur_id"];
30441
- isOneToOne: false;
30442
- referencedRelation: "monteurs";
30443
- referencedColumns: ["id"];
30444
- }, {
30445
32078
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
30446
32079
  columns: ["run_id"];
30447
32080
  isOneToOne: false;
@@ -31262,6 +32895,45 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
31262
32895
  };
31263
32896
  Relationships: [];
31264
32897
  };
32898
+ order_invoice_links: {
32899
+ Row: {
32900
+ attempts: number;
32901
+ created_at: string;
32902
+ error_message: string | null;
32903
+ id: string;
32904
+ invoice_number: string | null;
32905
+ next_attempt_at: string;
32906
+ order_id: string;
32907
+ processed_at: string | null;
32908
+ status: string;
32909
+ updated_at: string;
32910
+ };
32911
+ Insert: {
32912
+ attempts?: number;
32913
+ created_at?: string;
32914
+ error_message?: string | null;
32915
+ id?: string;
32916
+ invoice_number?: string | null;
32917
+ next_attempt_at?: string;
32918
+ order_id: string;
32919
+ processed_at?: string | null;
32920
+ status?: string;
32921
+ updated_at?: string;
32922
+ };
32923
+ Update: {
32924
+ attempts?: number;
32925
+ created_at?: string;
32926
+ error_message?: string | null;
32927
+ id?: string;
32928
+ invoice_number?: string | null;
32929
+ next_attempt_at?: string;
32930
+ order_id?: string;
32931
+ processed_at?: string | null;
32932
+ status?: string;
32933
+ updated_at?: string;
32934
+ };
32935
+ Relationships: [];
32936
+ };
31265
32937
  order_items: {
31266
32938
  Row: {
31267
32939
  crates_per_layer: number | null;
@@ -31444,6 +33116,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
31444
33116
  delivery_date: string | null;
31445
33117
  floriday_sales_order_id: string | null;
31446
33118
  id: string;
33119
+ invoice_due_at: string | null;
31447
33120
  is_reservation: boolean;
31448
33121
  notes: string | null;
31449
33122
  order_date: string;
@@ -31465,6 +33138,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
31465
33138
  delivery_date?: string | null;
31466
33139
  floriday_sales_order_id?: string | null;
31467
33140
  id?: string;
33141
+ invoice_due_at?: string | null;
31468
33142
  is_reservation?: boolean;
31469
33143
  notes?: string | null;
31470
33144
  order_date?: string;
@@ -31486,6 +33160,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
31486
33160
  delivery_date?: string | null;
31487
33161
  floriday_sales_order_id?: string | null;
31488
33162
  id?: string;
33163
+ invoice_due_at?: string | null;
31489
33164
  is_reservation?: boolean;
31490
33165
  notes?: string | null;
31491
33166
  order_date?: string;
@@ -32682,22 +34357,27 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
32682
34357
  created_at: string;
32683
34358
  documentnaam: string;
32684
34359
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
34360
+ extern_job_id: string | null;
32685
34361
  foutmelding: string | null;
32686
34362
  gebruiker_id: string | null;
32687
34363
  gebruiker_naam: string;
32688
34364
  gestart_op: string | null;
32689
34365
  id: string;
34366
+ idempotentie_sleutel: string | null;
32690
34367
  is_herprint: boolean;
32691
34368
  kopieen: number;
32692
34369
  layout_id: string | null;
32693
34370
  opgepakt_op: string | null;
32694
34371
  paginas: number;
32695
34372
  payload: import("../integrations/supabase/types").Json;
34373
+ pdf_base64: string | null;
34374
+ pdf_url: string | null;
32696
34375
  pogingen: number;
32697
34376
  printer_id: string | null;
32698
34377
  render_html: string | null;
32699
34378
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32700
34379
  updated_at: string;
34380
+ volgende_poging: string | null;
32701
34381
  voltooid_op: string | null;
32702
34382
  };
32703
34383
  Insert: {
@@ -32706,22 +34386,27 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
32706
34386
  created_at?: string;
32707
34387
  documentnaam?: string;
32708
34388
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
34389
+ extern_job_id?: string | null;
32709
34390
  foutmelding?: string | null;
32710
34391
  gebruiker_id?: string | null;
32711
34392
  gebruiker_naam?: string;
32712
34393
  gestart_op?: string | null;
32713
34394
  id?: string;
34395
+ idempotentie_sleutel?: string | null;
32714
34396
  is_herprint?: boolean;
32715
34397
  kopieen?: number;
32716
34398
  layout_id?: string | null;
32717
34399
  opgepakt_op?: string | null;
32718
34400
  paginas?: number;
32719
34401
  payload?: import("../integrations/supabase/types").Json;
34402
+ pdf_base64?: string | null;
34403
+ pdf_url?: string | null;
32720
34404
  pogingen?: number;
32721
34405
  printer_id?: string | null;
32722
34406
  render_html?: string | null;
32723
34407
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32724
34408
  updated_at?: string;
34409
+ volgende_poging?: string | null;
32725
34410
  voltooid_op?: string | null;
32726
34411
  };
32727
34412
  Update: {
@@ -32730,22 +34415,27 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
32730
34415
  created_at?: string;
32731
34416
  documentnaam?: string;
32732
34417
  documenttype?: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
34418
+ extern_job_id?: string | null;
32733
34419
  foutmelding?: string | null;
32734
34420
  gebruiker_id?: string | null;
32735
34421
  gebruiker_naam?: string;
32736
34422
  gestart_op?: string | null;
32737
34423
  id?: string;
34424
+ idempotentie_sleutel?: string | null;
32738
34425
  is_herprint?: boolean;
32739
34426
  kopieen?: number;
32740
34427
  layout_id?: string | null;
32741
34428
  opgepakt_op?: string | null;
32742
34429
  paginas?: number;
32743
34430
  payload?: import("../integrations/supabase/types").Json;
34431
+ pdf_base64?: string | null;
34432
+ pdf_url?: string | null;
32744
34433
  pogingen?: number;
32745
34434
  printer_id?: string | null;
32746
34435
  render_html?: string | null;
32747
34436
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
32748
34437
  updated_at?: string;
34438
+ volgende_poging?: string | null;
32749
34439
  voltooid_op?: string | null;
32750
34440
  };
32751
34441
  Relationships: [{
@@ -32768,6 +34458,72 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
32768
34458
  referencedColumns: ["id"];
32769
34459
  }];
32770
34460
  };
34461
+ print_queue_runners: {
34462
+ Row: {
34463
+ actief: boolean;
34464
+ basis_url: string;
34465
+ created_at: string;
34466
+ id: string;
34467
+ laatst_gezien: string;
34468
+ laatste_fout: string | null;
34469
+ laatste_request_id: number | null;
34470
+ mislukte_posts: number;
34471
+ tick_sleutel: string;
34472
+ updated_at: string;
34473
+ };
34474
+ Insert: {
34475
+ actief?: boolean;
34476
+ basis_url: string;
34477
+ created_at?: string;
34478
+ id?: string;
34479
+ laatst_gezien?: string;
34480
+ laatste_fout?: string | null;
34481
+ laatste_request_id?: number | null;
34482
+ mislukte_posts?: number;
34483
+ tick_sleutel?: string;
34484
+ updated_at?: string;
34485
+ };
34486
+ Update: {
34487
+ actief?: boolean;
34488
+ basis_url?: string;
34489
+ created_at?: string;
34490
+ id?: string;
34491
+ laatst_gezien?: string;
34492
+ laatste_fout?: string | null;
34493
+ laatste_request_id?: number | null;
34494
+ mislukte_posts?: number;
34495
+ tick_sleutel?: string;
34496
+ updated_at?: string;
34497
+ };
34498
+ Relationships: [];
34499
+ };
34500
+ print_queue_settings: {
34501
+ Row: {
34502
+ bewaar_bestanden_dagen: number;
34503
+ bewaar_opdrachten_dagen: number;
34504
+ created_at: string;
34505
+ dubbel_venster_minuten: number;
34506
+ id: string;
34507
+ updated_at: string;
34508
+ };
34509
+ Insert: {
34510
+ bewaar_bestanden_dagen?: number;
34511
+ bewaar_opdrachten_dagen?: number;
34512
+ created_at?: string;
34513
+ dubbel_venster_minuten?: number;
34514
+ id?: string;
34515
+ updated_at?: string;
34516
+ };
34517
+ Update: {
34518
+ bewaar_bestanden_dagen?: number;
34519
+ bewaar_opdrachten_dagen?: number;
34520
+ created_at?: string;
34521
+ dubbel_venster_minuten?: number;
34522
+ id?: string;
34523
+ updated_at?: string;
34524
+ };
34525
+ Relationships: [];
34526
+ };
32771
34527
  print_rules: {
32772
34528
  Row: {
32773
34529
  actief: boolean;
@@ -32928,6 +34684,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
32928
34684
  agent_id: string | null;
32929
34685
  created_at: string;
32930
34686
  driver: string;
34687
+ extern_printer_id: string | null;
32931
34688
  id: string;
32932
34689
  ip_adres: string | null;
32933
34690
  laatst_gezien: string | null;
@@ -32949,6 +34706,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
32949
34706
  agent_id?: string | null;
32950
34707
  created_at?: string;
32951
34708
  driver?: string;
34709
+ extern_printer_id?: string | null;
32952
34710
  id?: string;
32953
34711
  ip_adres?: string | null;
32954
34712
  laatst_gezien?: string | null;
@@ -32970,6 +34728,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
32970
34728
  agent_id?: string | null;
32971
34729
  created_at?: string;
32972
34730
  driver?: string;
34731
+ extern_printer_id?: string | null;
32973
34732
  id?: string;
32974
34733
  ip_adres?: string | null;
32975
34734
  laatst_gezien?: string | null;
@@ -34241,6 +36000,96 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
34241
36000
  referencedColumns: ["id"];
34242
36001
  }];
34243
36002
  };
36003
+ role_assignments: {
36004
+ Row: {
36005
+ created_at: string;
36006
+ id: string;
36007
+ role_id: string;
36008
+ user_id: string;
36009
+ };
36010
+ Insert: {
36011
+ created_at?: string;
36012
+ id?: string;
36013
+ role_id: string;
36014
+ user_id: string;
36015
+ };
36016
+ Update: {
36017
+ created_at?: string;
36018
+ id?: string;
36019
+ role_id?: string;
36020
+ user_id?: string;
36021
+ };
36022
+ Relationships: [{
36023
+ foreignKeyName: "role_assignments_role_id_fkey";
36024
+ columns: ["role_id"];
36025
+ isOneToOne: false;
36026
+ referencedRelation: "roles";
36027
+ referencedColumns: ["id"];
36028
+ }];
36029
+ };
36030
+ role_permissions: {
36031
+ Row: {
36032
+ can_edit: boolean;
36033
+ can_view: boolean;
36034
+ feature_id: string;
36035
+ id: string;
36036
+ module_id: string;
36037
+ role_id: string;
36038
+ updated_at: string;
36039
+ };
36040
+ Insert: {
36041
+ can_edit?: boolean;
36042
+ can_view?: boolean;
36043
+ feature_id?: string;
36044
+ id?: string;
36045
+ module_id: string;
36046
+ role_id: string;
36047
+ updated_at?: string;
36048
+ };
36049
+ Update: {
36050
+ can_edit?: boolean;
36051
+ can_view?: boolean;
36052
+ feature_id?: string;
36053
+ id?: string;
36054
+ module_id?: string;
36055
+ role_id?: string;
36056
+ updated_at?: string;
36057
+ };
36058
+ Relationships: [{
36059
+ foreignKeyName: "role_permissions_role_id_fkey";
36060
+ columns: ["role_id"];
36061
+ isOneToOne: false;
36062
+ referencedRelation: "roles";
36063
+ referencedColumns: ["id"];
36064
+ }];
36065
+ };
36066
+ roles: {
36067
+ Row: {
36068
+ created_at: string;
36069
+ id: string;
36070
+ is_protected: boolean;
36071
+ key: string;
36072
+ name: string;
36073
+ updated_at: string;
36074
+ };
36075
+ Insert: {
36076
+ created_at?: string;
36077
+ id?: string;
36078
+ is_protected?: boolean;
36079
+ key: string;
36080
+ name: string;
36081
+ updated_at?: string;
36082
+ };
36083
+ Update: {
36084
+ created_at?: string;
36085
+ id?: string;
36086
+ is_protected?: boolean;
36087
+ key?: string;
36088
+ name?: string;
36089
+ updated_at?: string;
36090
+ };
36091
+ Relationships: [];
36092
+ };
34244
36093
  rooms: {
34245
36094
  Row: {
34246
36095
  capacity: number;
@@ -34910,6 +36759,54 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
34910
36759
  };
34911
36760
  Relationships: [];
34912
36761
  };
36762
+ time_compensation_entries: {
36763
+ Row: {
36764
+ created_at: string;
36765
+ employee_id: string;
36766
+ entry_date: string;
36767
+ id: string;
36768
+ km: number;
36769
+ meal_allowance: number;
36770
+ notes: string | null;
36771
+ standby_evening: number;
36772
+ standby_weekend: number;
36773
+ tvt_change: number;
36774
+ updated_at: string;
36775
+ };
36776
+ Insert: {
36777
+ created_at?: string;
36778
+ employee_id: string;
36779
+ entry_date: string;
36780
+ id?: string;
36781
+ km?: number;
36782
+ meal_allowance?: number;
36783
+ notes?: string | null;
36784
+ standby_evening?: number;
36785
+ standby_weekend?: number;
36786
+ tvt_change?: number;
36787
+ updated_at?: string;
36788
+ };
36789
+ Update: {
36790
+ created_at?: string;
36791
+ employee_id?: string;
36792
+ entry_date?: string;
36793
+ id?: string;
36794
+ km?: number;
36795
+ meal_allowance?: number;
36796
+ notes?: string | null;
36797
+ standby_evening?: number;
36798
+ standby_weekend?: number;
36799
+ tvt_change?: number;
36800
+ updated_at?: string;
36801
+ };
36802
+ Relationships: [{
36803
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
36804
+ columns: ["employee_id"];
36805
+ isOneToOne: false;
36806
+ referencedRelation: "profiles";
36807
+ referencedColumns: ["id"];
36808
+ }];
36809
+ };
34913
36810
  time_entries: {
34914
36811
  Row: {
34915
36812
  created_at: string;
@@ -34944,65 +36841,170 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
34944
36841
  undertime?: number;
34945
36842
  updated_at?: string;
34946
36843
  };
36844
+ Relationships: [];
36845
+ };
36846
+ time_log_week_approvals: {
36847
+ Row: {
36848
+ approved_at: string | null;
36849
+ approved_by: string | null;
36850
+ created_at: string;
36851
+ employee_id: string;
36852
+ id: string;
36853
+ locked: boolean;
36854
+ notes: string | null;
36855
+ status: string;
36856
+ submitted_at: string | null;
36857
+ updated_at: string;
36858
+ week_start: string;
36859
+ };
36860
+ Insert: {
36861
+ approved_at?: string | null;
36862
+ approved_by?: string | null;
36863
+ created_at?: string;
36864
+ employee_id: string;
36865
+ id?: string;
36866
+ locked?: boolean;
36867
+ notes?: string | null;
36868
+ status?: string;
36869
+ submitted_at?: string | null;
36870
+ updated_at?: string;
36871
+ week_start: string;
36872
+ };
36873
+ Update: {
36874
+ approved_at?: string | null;
36875
+ approved_by?: string | null;
36876
+ created_at?: string;
36877
+ employee_id?: string;
36878
+ id?: string;
36879
+ locked?: boolean;
36880
+ notes?: string | null;
36881
+ status?: string;
36882
+ submitted_at?: string | null;
36883
+ updated_at?: string;
36884
+ week_start?: string;
36885
+ };
34947
36886
  Relationships: [{
34948
- foreignKeyName: "time_entries_employee_id_fkey";
36887
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
34949
36888
  columns: ["employee_id"];
34950
36889
  isOneToOne: false;
34951
- referencedRelation: "monteurs";
36890
+ referencedRelation: "profiles";
34952
36891
  referencedColumns: ["id"];
34953
36892
  }];
34954
36893
  };
34955
36894
  time_logs: {
34956
36895
  Row: {
36896
+ auto_stop_reason: string | null;
36897
+ auto_stopped: boolean;
34957
36898
  created_at: string;
36899
+ current_latitude: number | null;
36900
+ current_longitude: number | null;
36901
+ current_position_updated_at: string | null;
34958
36902
  employee_id: string;
36903
+ end_latitude: number | null;
36904
+ end_longitude: number | null;
34959
36905
  end_time: string | null;
36906
+ eta_distance_km: number | null;
36907
+ eta_minutes: number | null;
36908
+ eta_updated_at: string | null;
36909
+ hour_category: string | null;
34960
36910
  id: string;
36911
+ last_reminder_at: string | null;
34961
36912
  notes: string | null;
34962
36913
  overtime_hours: number;
34963
36914
  overtime_type: string | null;
34964
36915
  regular_hours: number;
36916
+ reminder_count: number;
36917
+ requires_review: boolean;
36918
+ start_latitude: number | null;
36919
+ start_longitude: number | null;
34965
36920
  start_time: string;
34966
36921
  travel_cost: number | null;
34967
36922
  travel_distance_km: number | null;
36923
+ travel_duration_min: number | null;
36924
+ travel_time_minutes: number | null;
34968
36925
  type: string;
34969
36926
  updated_at: string;
36927
+ work_order_id: string | null;
34970
36928
  };
34971
36929
  Insert: {
36930
+ auto_stop_reason?: string | null;
36931
+ auto_stopped?: boolean;
34972
36932
  created_at?: string;
36933
+ current_latitude?: number | null;
36934
+ current_longitude?: number | null;
36935
+ current_position_updated_at?: string | null;
34973
36936
  employee_id: string;
36937
+ end_latitude?: number | null;
36938
+ end_longitude?: number | null;
34974
36939
  end_time?: string | null;
36940
+ eta_distance_km?: number | null;
36941
+ eta_minutes?: number | null;
36942
+ eta_updated_at?: string | null;
36943
+ hour_category?: string | null;
34975
36944
  id?: string;
36945
+ last_reminder_at?: string | null;
34976
36946
  notes?: string | null;
34977
36947
  overtime_hours?: number;
34978
36948
  overtime_type?: string | null;
34979
36949
  regular_hours?: number;
36950
+ reminder_count?: number;
36951
+ requires_review?: boolean;
36952
+ start_latitude?: number | null;
36953
+ start_longitude?: number | null;
34980
36954
  start_time?: string;
34981
36955
  travel_cost?: number | null;
34982
36956
  travel_distance_km?: number | null;
36957
+ travel_duration_min?: number | null;
36958
+ travel_time_minutes?: number | null;
34983
36959
  type: string;
34984
36960
  updated_at?: string;
36961
+ work_order_id?: string | null;
34985
36962
  };
34986
36963
  Update: {
36964
+ auto_stop_reason?: string | null;
36965
+ auto_stopped?: boolean;
34987
36966
  created_at?: string;
36967
+ current_latitude?: number | null;
36968
+ current_longitude?: number | null;
36969
+ current_position_updated_at?: string | null;
34988
36970
  employee_id?: string;
36971
+ end_latitude?: number | null;
36972
+ end_longitude?: number | null;
34989
36973
  end_time?: string | null;
36974
+ eta_distance_km?: number | null;
36975
+ eta_minutes?: number | null;
36976
+ eta_updated_at?: string | null;
36977
+ hour_category?: string | null;
34990
36978
  id?: string;
36979
+ last_reminder_at?: string | null;
34991
36980
  notes?: string | null;
34992
36981
  overtime_hours?: number;
34993
36982
  overtime_type?: string | null;
34994
36983
  regular_hours?: number;
36984
+ reminder_count?: number;
36985
+ requires_review?: boolean;
36986
+ start_latitude?: number | null;
36987
+ start_longitude?: number | null;
34995
36988
  start_time?: string;
34996
36989
  travel_cost?: number | null;
34997
36990
  travel_distance_km?: number | null;
36991
+ travel_duration_min?: number | null;
36992
+ travel_time_minutes?: number | null;
34998
36993
  type?: string;
34999
36994
  updated_at?: string;
36995
+ work_order_id?: string | null;
35000
36996
  };
35001
36997
  Relationships: [{
35002
36998
  foreignKeyName: "time_logs_employee_id_fkey";
35003
36999
  columns: ["employee_id"];
35004
37000
  isOneToOne: false;
35005
- referencedRelation: "monteurs";
37001
+ referencedRelation: "profiles";
37002
+ referencedColumns: ["id"];
37003
+ }, {
37004
+ foreignKeyName: "time_logs_work_order_id_fkey";
37005
+ columns: ["work_order_id"];
37006
+ isOneToOne: false;
37007
+ referencedRelation: "work_orders";
35006
37008
  referencedColumns: ["id"];
35007
37009
  }];
35008
37010
  };
@@ -35041,7 +37043,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
35041
37043
  foreignKeyName: "time_off_entries_employee_id_fkey";
35042
37044
  columns: ["employee_id"];
35043
37045
  isOneToOne: false;
35044
- referencedRelation: "monteurs";
37046
+ referencedRelation: "profiles";
35045
37047
  referencedColumns: ["id"];
35046
37048
  }];
35047
37049
  };
@@ -35351,6 +37353,39 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
35351
37353
  };
35352
37354
  Relationships: [];
35353
37355
  };
37356
+ twinfield_cron_locks: {
37357
+ Row: {
37358
+ created_at: string;
37359
+ heartbeat_at: string;
37360
+ job_name: string;
37361
+ last_error: string | null;
37362
+ last_finished_at: string | null;
37363
+ locked_at: string;
37364
+ run_id: string;
37365
+ updated_at: string;
37366
+ };
37367
+ Insert: {
37368
+ created_at?: string;
37369
+ heartbeat_at?: string;
37370
+ job_name: string;
37371
+ last_error?: string | null;
37372
+ last_finished_at?: string | null;
37373
+ locked_at?: string;
37374
+ run_id?: string;
37375
+ updated_at?: string;
37376
+ };
37377
+ Update: {
37378
+ created_at?: string;
37379
+ heartbeat_at?: string;
37380
+ job_name?: string;
37381
+ last_error?: string | null;
37382
+ last_finished_at?: string | null;
37383
+ locked_at?: string;
37384
+ run_id?: string;
37385
+ updated_at?: string;
37386
+ };
37387
+ Relationships: [];
37388
+ };
35354
37389
  twinfield_customers: {
35355
37390
  Row: {
35356
37391
  address: string | null;
@@ -35605,6 +37640,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
35605
37640
  };
35606
37641
  twinfield_invoice_settings: {
35607
37642
  Row: {
37643
+ auto_invoice_enabled: boolean;
37644
+ auto_invoice_trigger_statuses: string[];
35608
37645
  created_at: string;
35609
37646
  debtor_gl_account: string;
35610
37647
  default_credit_invoice_type: string | null;
@@ -35625,6 +37662,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
35625
37662
  vat_code_export: string | null;
35626
37663
  };
35627
37664
  Insert: {
37665
+ auto_invoice_enabled?: boolean;
37666
+ auto_invoice_trigger_statuses?: string[];
35628
37667
  created_at?: string;
35629
37668
  debtor_gl_account?: string;
35630
37669
  default_credit_invoice_type?: string | null;
@@ -35645,6 +37684,8 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
35645
37684
  vat_code_export?: string | null;
35646
37685
  };
35647
37686
  Update: {
37687
+ auto_invoice_enabled?: boolean;
37688
+ auto_invoice_trigger_statuses?: string[];
35648
37689
  created_at?: string;
35649
37690
  debtor_gl_account?: string;
35650
37691
  default_credit_invoice_type?: string | null;
@@ -35945,6 +37986,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
35945
37986
  twinfield_push_queue: {
35946
37987
  Row: {
35947
37988
  action: string;
37989
+ attempt_started_at: string | null;
35948
37990
  attempts: number;
35949
37991
  connection_id: string | null;
35950
37992
  created_at: string;
@@ -35961,6 +38003,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
35961
38003
  };
35962
38004
  Insert: {
35963
38005
  action?: string;
38006
+ attempt_started_at?: string | null;
35964
38007
  attempts?: number;
35965
38008
  connection_id?: string | null;
35966
38009
  created_at?: string;
@@ -35977,6 +38020,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
35977
38020
  };
35978
38021
  Update: {
35979
38022
  action?: string;
38023
+ attempt_started_at?: string | null;
35980
38024
  attempts?: number;
35981
38025
  connection_id?: string | null;
35982
38026
  created_at?: string;
@@ -36174,13 +38218,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
36174
38218
  workday_end?: string | null;
36175
38219
  workday_start?: string | null;
36176
38220
  };
36177
- Relationships: [{
36178
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
36179
- columns: ["monteur_id"];
36180
- isOneToOne: true;
36181
- referencedRelation: "monteurs";
36182
- referencedColumns: ["id"];
36183
- }];
38221
+ Relationships: [];
36184
38222
  };
36185
38223
  uren_entries: {
36186
38224
  Row: {
@@ -36226,12 +38264,6 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
36226
38264
  werkbon_id?: string | null;
36227
38265
  };
36228
38266
  Relationships: [{
36229
- foreignKeyName: "uren_entries_monteur_id_fkey";
36230
- columns: ["monteur_id"];
36231
- isOneToOne: false;
36232
- referencedRelation: "monteurs";
36233
- referencedColumns: ["id"];
36234
- }, {
36235
38267
  foreignKeyName: "uren_entries_werkbon_id_fkey";
36236
38268
  columns: ["werkbon_id"];
36237
38269
  isOneToOne: false;
@@ -36699,13 +38731,37 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
36699
38731
  submitted_at?: string | null;
36700
38732
  updated_at?: string;
36701
38733
  };
36702
- Relationships: [{
36703
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
36704
- columns: ["monteur_id"];
36705
- isOneToOne: false;
36706
- referencedRelation: "monteurs";
36707
- referencedColumns: ["id"];
36708
- }];
38734
+ Relationships: [];
38735
+ };
38736
+ user_module_permissions: {
38737
+ Row: {
38738
+ created_at: string;
38739
+ feature_id: string;
38740
+ id: string;
38741
+ module_id: string;
38742
+ permission: string;
38743
+ updated_at: string;
38744
+ user_id: string;
38745
+ };
38746
+ Insert: {
38747
+ created_at?: string;
38748
+ feature_id?: string;
38749
+ id?: string;
38750
+ module_id: string;
38751
+ permission: string;
38752
+ updated_at?: string;
38753
+ user_id: string;
38754
+ };
38755
+ Update: {
38756
+ created_at?: string;
38757
+ feature_id?: string;
38758
+ id?: string;
38759
+ module_id?: string;
38760
+ permission?: string;
38761
+ updated_at?: string;
38762
+ user_id?: string;
38763
+ };
38764
+ Relationships: [];
36709
38765
  };
36710
38766
  user_roles: {
36711
38767
  Row: {
@@ -36734,6 +38790,51 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
36734
38790
  referencedColumns: ["id"];
36735
38791
  }];
36736
38792
  };
38793
+ van_inventories: {
38794
+ Row: {
38795
+ barcode: string | null;
38796
+ created_at: string;
38797
+ id: string;
38798
+ monteur_id: string | null;
38799
+ price_per_unit: number;
38800
+ product_name: string;
38801
+ quantity_current: number;
38802
+ quantity_min: number;
38803
+ unit: string;
38804
+ updated_at: string;
38805
+ };
38806
+ Insert: {
38807
+ barcode?: string | null;
38808
+ created_at?: string;
38809
+ id?: string;
38810
+ monteur_id?: string | null;
38811
+ price_per_unit?: number;
38812
+ product_name: string;
38813
+ quantity_current?: number;
38814
+ quantity_min?: number;
38815
+ unit?: string;
38816
+ updated_at?: string;
38817
+ };
38818
+ Update: {
38819
+ barcode?: string | null;
38820
+ created_at?: string;
38821
+ id?: string;
38822
+ monteur_id?: string | null;
38823
+ price_per_unit?: number;
38824
+ product_name?: string;
38825
+ quantity_current?: number;
38826
+ quantity_min?: number;
38827
+ unit?: string;
38828
+ updated_at?: string;
38829
+ };
38830
+ Relationships: [{
38831
+ foreignKeyName: "van_inventories_monteur_id_fkey";
38832
+ columns: ["monteur_id"];
38833
+ isOneToOne: false;
38834
+ referencedRelation: "profiles";
38835
+ referencedColumns: ["id"];
38836
+ }];
38837
+ };
36737
38838
  voorraad_custom_fields: {
36738
38839
  Row: {
36739
38840
  created_at: string;
@@ -37684,7 +39785,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37684
39785
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
37685
39786
  columns: ["monteur_id"];
37686
39787
  isOneToOne: false;
37687
- referencedRelation: "monteurs";
39788
+ referencedRelation: "profiles";
37688
39789
  referencedColumns: ["id"];
37689
39790
  }, {
37690
39791
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -37694,6 +39795,60 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37694
39795
  referencedColumns: ["id"];
37695
39796
  }];
37696
39797
  };
39798
+ work_order_photos: {
39799
+ Row: {
39800
+ ai_caption: string | null;
39801
+ ai_categorized_at: string | null;
39802
+ ai_labels: import("../integrations/supabase/types").Json | null;
39803
+ caption: string | null;
39804
+ created_at: string;
39805
+ id: string;
39806
+ monteur_id: string | null;
39807
+ photo_type: string;
39808
+ storage_path: string;
39809
+ updated_at: string;
39810
+ work_order_id: string;
39811
+ };
39812
+ Insert: {
39813
+ ai_caption?: string | null;
39814
+ ai_categorized_at?: string | null;
39815
+ ai_labels?: import("../integrations/supabase/types").Json | null;
39816
+ caption?: string | null;
39817
+ created_at?: string;
39818
+ id?: string;
39819
+ monteur_id?: string | null;
39820
+ photo_type?: string;
39821
+ storage_path: string;
39822
+ updated_at?: string;
39823
+ work_order_id: string;
39824
+ };
39825
+ Update: {
39826
+ ai_caption?: string | null;
39827
+ ai_categorized_at?: string | null;
39828
+ ai_labels?: import("../integrations/supabase/types").Json | null;
39829
+ caption?: string | null;
39830
+ created_at?: string;
39831
+ id?: string;
39832
+ monteur_id?: string | null;
39833
+ photo_type?: string;
39834
+ storage_path?: string;
39835
+ updated_at?: string;
39836
+ work_order_id?: string;
39837
+ };
39838
+ Relationships: [{
39839
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
39840
+ columns: ["monteur_id"];
39841
+ isOneToOne: false;
39842
+ referencedRelation: "profiles";
39843
+ referencedColumns: ["id"];
39844
+ }, {
39845
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
39846
+ columns: ["work_order_id"];
39847
+ isOneToOne: false;
39848
+ referencedRelation: "work_orders";
39849
+ referencedColumns: ["id"];
39850
+ }];
39851
+ };
37697
39852
  work_orders: {
37698
39853
  Row: {
37699
39854
  assigned_to: string | null;
@@ -37725,7 +39880,6 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37725
39880
  scheduled_end_time: string | null;
37726
39881
  scheduled_start_time: string | null;
37727
39882
  status: string;
37728
- tenant_id: string;
37729
39883
  total_hours_worked: number | null;
37730
39884
  total_price: number | null;
37731
39885
  travel_time_minutes: number | null;
@@ -37763,7 +39917,6 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37763
39917
  scheduled_end_time?: string | null;
37764
39918
  scheduled_start_time?: string | null;
37765
39919
  status?: string;
37766
- tenant_id: string;
37767
39920
  total_hours_worked?: number | null;
37768
39921
  total_price?: number | null;
37769
39922
  travel_time_minutes?: number | null;
@@ -37801,7 +39954,6 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37801
39954
  scheduled_end_time?: string | null;
37802
39955
  scheduled_start_time?: string | null;
37803
39956
  status?: string;
37804
- tenant_id?: string;
37805
39957
  total_hours_worked?: number | null;
37806
39958
  total_price?: number | null;
37807
39959
  travel_time_minutes?: number | null;
@@ -37815,12 +39967,6 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
37815
39967
  isOneToOne: false;
37816
39968
  referencedRelation: "work_orders";
37817
39969
  referencedColumns: ["id"];
37818
- }, {
37819
- foreignKeyName: "work_orders_tenant_id_fkey";
37820
- columns: ["tenant_id"];
37821
- isOneToOne: false;
37822
- referencedRelation: "tenants";
37823
- referencedColumns: ["id"];
37824
39970
  }];
37825
39971
  };
37826
39972
  };
@@ -38505,6 +40651,19 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38505
40651
  };
38506
40652
  Returns: undefined;
38507
40653
  };
40654
+ approve_mailbox_order_proposal: {
40655
+ Args: {
40656
+ p_custom_fields: import("../integrations/supabase/types").Json;
40657
+ p_customer_id: string;
40658
+ p_delivery_date: string;
40659
+ p_field_values?: import("../integrations/supabase/types").Json;
40660
+ p_lines: import("../integrations/supabase/types").Json;
40661
+ p_notes: string;
40662
+ p_proposal_id: string;
40663
+ p_reviewed_by: string;
40664
+ };
40665
+ Returns: import("../integrations/supabase/types").Json;
40666
+ };
38508
40667
  assign_cart_numbers: {
38509
40668
  Args: {
38510
40669
  p_carts: import("../integrations/supabase/types").Json;
@@ -38540,6 +40699,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38540
40699
  processed_items: number;
38541
40700
  }[];
38542
40701
  };
40702
+ backfill_order_auto_invoice_queue: {
40703
+ Args: never;
40704
+ Returns: number;
40705
+ };
38543
40706
  calculate_layer_stock: {
38544
40707
  Args: {
38545
40708
  p_product_id: string;
@@ -38552,6 +40715,10 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38552
40715
  };
38553
40716
  Returns: number;
38554
40717
  };
40718
+ can_manage_hours: {
40719
+ Args: never;
40720
+ Returns: boolean;
40721
+ };
38555
40722
  check_offer_product_available_stock: {
38556
40723
  Args: {
38557
40724
  p_campaign_product_id: string;
@@ -38574,6 +40741,77 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38574
40741
  };
38575
40742
  Returns: import("../integrations/supabase/types").Json;
38576
40743
  };
40744
+ claim_cloud_print_jobs: {
40745
+ Args: {
40746
+ _max?: number;
40747
+ };
40748
+ Returns: {
40749
+ agent_id: string | null;
40750
+ bron_job_id: string | null;
40751
+ created_at: string;
40752
+ documentnaam: string;
40753
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
40754
+ extern_job_id: string | null;
40755
+ foutmelding: string | null;
40756
+ gebruiker_id: string | null;
40757
+ gebruiker_naam: string;
40758
+ gestart_op: string | null;
40759
+ id: string;
40760
+ idempotentie_sleutel: string | null;
40761
+ is_herprint: boolean;
40762
+ kopieen: number;
40763
+ layout_id: string | null;
40764
+ opgepakt_op: string | null;
40765
+ paginas: number;
40766
+ payload: import("../integrations/supabase/types").Json;
40767
+ pdf_base64: string | null;
40768
+ pdf_url: string | null;
40769
+ pogingen: number;
40770
+ printer_id: string | null;
40771
+ render_html: string | null;
40772
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
40773
+ updated_at: string;
40774
+ volgende_poging: string | null;
40775
+ voltooid_op: string | null;
40776
+ }[];
40777
+ SetofOptions: {
40778
+ from: "*";
40779
+ to: "print_jobs";
40780
+ isOneToOne: false;
40781
+ isSetofReturn: true;
40782
+ };
40783
+ };
40784
+ claim_floriday_stock_queue: {
40785
+ Args: {
40786
+ p_limit?: number;
40787
+ p_worker?: string;
40788
+ };
40789
+ Returns: {
40790
+ attempts: number;
40791
+ connection_id: string;
40792
+ created_at: string;
40793
+ desired_available: boolean | null;
40794
+ gateway_attempt_id: string | null;
40795
+ id: string;
40796
+ last_error: string | null;
40797
+ locked_at: string | null;
40798
+ locked_by: string | null;
40799
+ next_attempt_at: string;
40800
+ number_of_pieces: number;
40801
+ sent_at: string | null;
40802
+ status: string;
40803
+ superseded_by: string | null;
40804
+ trade_item_id: string;
40805
+ updated_at: string;
40806
+ user_id: string;
40807
+ }[];
40808
+ SetofOptions: {
40809
+ from: "*";
40810
+ to: "floriday_continuous_stock_queue";
40811
+ isOneToOne: false;
40812
+ isSetofReturn: true;
40813
+ };
40814
+ };
38577
40815
  claim_logistics_tasks: {
38578
40816
  Args: {
38579
40817
  _limit?: number;
@@ -38633,22 +40871,27 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38633
40871
  created_at: string;
38634
40872
  documentnaam: string;
38635
40873
  documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
40874
+ extern_job_id: string | null;
38636
40875
  foutmelding: string | null;
38637
40876
  gebruiker_id: string | null;
38638
40877
  gebruiker_naam: string;
38639
40878
  gestart_op: string | null;
38640
40879
  id: string;
40880
+ idempotentie_sleutel: string | null;
38641
40881
  is_herprint: boolean;
38642
40882
  kopieen: number;
38643
40883
  layout_id: string | null;
38644
40884
  opgepakt_op: string | null;
38645
40885
  paginas: number;
38646
40886
  payload: import("../integrations/supabase/types").Json;
40887
+ pdf_base64: string | null;
40888
+ pdf_url: string | null;
38647
40889
  pogingen: number;
38648
40890
  printer_id: string | null;
38649
40891
  render_html: string | null;
38650
40892
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
38651
40893
  updated_at: string;
40894
+ volgende_poging: string | null;
38652
40895
  voltooid_op: string | null;
38653
40896
  }[];
38654
40897
  SetofOptions: {
@@ -38665,6 +40908,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38665
40908
  };
38666
40909
  Returns: {
38667
40910
  action: string;
40911
+ attempt_started_at: string | null;
38668
40912
  attempts: number;
38669
40913
  connection_id: string | null;
38670
40914
  created_at: string;
@@ -38686,10 +40930,28 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38686
40930
  isSetofReturn: true;
38687
40931
  };
38688
40932
  };
40933
+ cleanup_floriday_stock_queue: {
40934
+ Args: never;
40935
+ Returns: undefined;
40936
+ };
38689
40937
  cleanup_old_bookings: {
38690
40938
  Args: never;
38691
40939
  Returns: undefined;
38692
40940
  };
40941
+ cleanup_voorraad_module_history: {
40942
+ Args: never;
40943
+ Returns: undefined;
40944
+ };
40945
+ complete_floriday_stock_queue: {
40946
+ Args: {
40947
+ p_attempt_id?: string;
40948
+ p_error?: string;
40949
+ p_id: string;
40950
+ p_ok: boolean;
40951
+ p_permanent?: boolean;
40952
+ };
40953
+ Returns: undefined;
40954
+ };
38693
40955
  consume_bom_for_production: {
38694
40956
  Args: {
38695
40957
  p_connection_id: string;
@@ -38734,6 +40996,30 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38734
40996
  agent_naam: string;
38735
40997
  }[];
38736
40998
  };
40999
+ consume_van_inventory: {
41000
+ Args: {
41001
+ p_inventory_id: string;
41002
+ p_quantity: number;
41003
+ };
41004
+ Returns: {
41005
+ barcode: string | null;
41006
+ created_at: string;
41007
+ id: string;
41008
+ monteur_id: string | null;
41009
+ price_per_unit: number;
41010
+ product_name: string;
41011
+ quantity_current: number;
41012
+ quantity_min: number;
41013
+ unit: string;
41014
+ updated_at: string;
41015
+ };
41016
+ SetofOptions: {
41017
+ from: "*";
41018
+ to: "van_inventories";
41019
+ isOneToOne: true;
41020
+ isSetofReturn: false;
41021
+ };
41022
+ };
38737
41023
  control_get_todays_carts: {
38738
41024
  Args: never;
38739
41025
  Returns: {
@@ -38801,6 +41087,20 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
38801
41087
  };
38802
41088
  Returns: import("../integrations/supabase/types").Json;
38803
41089
  };
41090
+ effective_module_permission: {
41091
+ Args: {
41092
+ _module_id: string;
41093
+ _user_id: string;
41094
+ };
41095
+ Returns: string;
41096
+ } | {
41097
+ Args: {
41098
+ _feature_id: string;
41099
+ _module_id: string;
41100
+ _user_id: string;
41101
+ };
41102
+ Returns: string;
41103
+ };
38804
41104
  email_auth_decrypt: {
38805
41105
  Args: {
38806
41106
  cipher: string;
@@ -39151,12 +41451,6 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
39151
41451
  Args: never;
39152
41452
  Returns: string;
39153
41453
  };
39154
- get_work_order_tenant_id: {
39155
- Args: {
39156
- wo_id: string;
39157
- };
39158
- Returns: string;
39159
- };
39160
41454
  has_module_permission: {
39161
41455
  Args: {
39162
41456
  _min: string;
@@ -39190,6 +41484,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
39190
41484
  };
39191
41485
  Returns: boolean;
39192
41486
  };
41487
+ is_time_log_week_locked: {
41488
+ Args: {
41489
+ p_employee_id: string;
41490
+ p_start_time: string;
41491
+ };
41492
+ Returns: boolean;
41493
+ };
39193
41494
  is_user_admin: {
39194
41495
  Args: never;
39195
41496
  Returns: boolean;
@@ -39204,13 +41505,14 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
39204
41505
  };
39205
41506
  Returns: boolean;
39206
41507
  };
39207
- list_monteurs: {
41508
+ list_medewerkers: {
39208
41509
  Args: never;
39209
41510
  Returns: {
39210
41511
  avatar_url: string;
39211
41512
  display_name: string;
39212
41513
  email: string;
39213
41514
  id: string;
41515
+ roles: string[];
39214
41516
  }[];
39215
41517
  };
39216
41518
  list_my_planning_items: {
@@ -39465,144 +41767,189 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
39465
41767
  isSetofReturn: false;
39466
41768
  };
39467
41769
  };
39468
- logistics_complete_task: {
41770
+ logistics_complete_task: {
41771
+ Args: {
41772
+ p_result?: import("../integrations/supabase/types").Json;
41773
+ p_task_id: string;
41774
+ };
41775
+ Returns: {
41776
+ attempt_log: import("../integrations/supabase/types").Json;
41777
+ attempts: number;
41778
+ buffer_ref: string | null;
41779
+ claimed_at: string | null;
41780
+ claimed_by: string | null;
41781
+ completed_at: string | null;
41782
+ created_at: string;
41783
+ depends_on: string[];
41784
+ due_at: string | null;
41785
+ error: string | null;
41786
+ id: string;
41787
+ last_error: string | null;
41788
+ next_attempt_at: string | null;
41789
+ order_ref: string;
41790
+ owner_module: string;
41791
+ payload: import("../integrations/supabase/types").Json;
41792
+ plan_run_id: string | null;
41793
+ planned_end: string | null;
41794
+ planned_start: string | null;
41795
+ priority: number;
41796
+ result: import("../integrations/supabase/types").Json | null;
41797
+ rule_config_id: string | null;
41798
+ rule_version: number | null;
41799
+ sequence: number;
41800
+ shadow: boolean;
41801
+ started_at: string | null;
41802
+ status: string;
41803
+ strategy_id: string | null;
41804
+ task_type: string;
41805
+ updated_at: string;
41806
+ user_id: string;
41807
+ };
41808
+ SetofOptions: {
41809
+ from: "*";
41810
+ to: "logistics_tasks";
41811
+ isOneToOne: true;
41812
+ isSetofReturn: false;
41813
+ };
41814
+ };
41815
+ logistics_delay_customer_email: {
41816
+ Args: {
41817
+ p_customer: string;
41818
+ p_lang: string;
41819
+ p_new_date: string;
41820
+ p_order: string;
41821
+ p_partial?: boolean;
41822
+ };
41823
+ Returns: {
41824
+ body: string;
41825
+ subject: string;
41826
+ }[];
41827
+ };
41828
+ logistics_document_layout: {
41829
+ Args: {
41830
+ _document_code: string;
41831
+ };
41832
+ Returns: import("../integrations/supabase/types").Json;
41833
+ };
41834
+ logistics_document_station: {
41835
+ Args: {
41836
+ _document_code: string;
41837
+ };
41838
+ Returns: string;
41839
+ };
41840
+ logistics_emit_event: {
41841
+ Args: {
41842
+ p_event_type: string;
41843
+ p_idempotency_key?: string;
41844
+ p_order_ref: string;
41845
+ p_payload?: import("../integrations/supabase/types").Json;
41846
+ p_shadow?: boolean;
41847
+ p_source_module: string;
41848
+ p_strategy_id?: string;
41849
+ };
41850
+ Returns: import("../integrations/supabase/types").Json;
41851
+ } | {
41852
+ Args: {
41853
+ p_event_type: string;
41854
+ p_idempotency_key?: string;
41855
+ p_order_ref: string;
41856
+ p_payload?: import("../integrations/supabase/types").Json;
41857
+ p_priority?: number;
41858
+ p_shadow?: boolean;
41859
+ p_source_module: string;
41860
+ p_strategy_id?: string;
41861
+ };
41862
+ Returns: import("../integrations/supabase/types").Json;
41863
+ };
41864
+ logistics_fail_task: {
41865
+ Args: {
41866
+ p_error: string;
41867
+ p_task_id: string;
41868
+ };
41869
+ Returns: {
41870
+ attempt_log: import("../integrations/supabase/types").Json;
41871
+ attempts: number;
41872
+ buffer_ref: string | null;
41873
+ claimed_at: string | null;
41874
+ claimed_by: string | null;
41875
+ completed_at: string | null;
41876
+ created_at: string;
41877
+ depends_on: string[];
41878
+ due_at: string | null;
41879
+ error: string | null;
41880
+ id: string;
41881
+ last_error: string | null;
41882
+ next_attempt_at: string | null;
41883
+ order_ref: string;
41884
+ owner_module: string;
41885
+ payload: import("../integrations/supabase/types").Json;
41886
+ plan_run_id: string | null;
41887
+ planned_end: string | null;
41888
+ planned_start: string | null;
41889
+ priority: number;
41890
+ result: import("../integrations/supabase/types").Json | null;
41891
+ rule_config_id: string | null;
41892
+ rule_version: number | null;
41893
+ sequence: number;
41894
+ shadow: boolean;
41895
+ started_at: string | null;
41896
+ status: string;
41897
+ strategy_id: string | null;
41898
+ task_type: string;
41899
+ updated_at: string;
41900
+ user_id: string;
41901
+ };
41902
+ SetofOptions: {
41903
+ from: "*";
41904
+ to: "logistics_tasks";
41905
+ isOneToOne: true;
41906
+ isSetofReturn: false;
41907
+ };
41908
+ };
41909
+ logistics_floriday_claim_pushes: {
39469
41910
  Args: {
39470
- p_result?: import("../integrations/supabase/types").Json;
39471
- p_task_id: string;
41911
+ _lease_seconds?: number;
41912
+ _limit?: number;
41913
+ _worker?: string;
39472
41914
  };
39473
41915
  Returns: {
39474
- attempt_log: import("../integrations/supabase/types").Json;
39475
41916
  attempts: number;
39476
- buffer_ref: string | null;
39477
- claimed_at: string | null;
39478
- claimed_by: string | null;
39479
- completed_at: string | null;
39480
- created_at: string;
39481
- depends_on: string[];
39482
- due_at: string | null;
39483
- error: string | null;
41917
+ fulfillment_order_id: string;
39484
41918
  id: string;
39485
- last_error: string | null;
39486
- next_attempt_at: string | null;
41919
+ last_sent_hash: string;
39487
41920
  order_ref: string;
39488
- owner_module: string;
39489
41921
  payload: import("../integrations/supabase/types").Json;
39490
- plan_run_id: string | null;
39491
- planned_end: string | null;
39492
- planned_start: string | null;
39493
- priority: number;
39494
- result: import("../integrations/supabase/types").Json | null;
39495
- rule_config_id: string | null;
39496
- rule_version: number | null;
39497
- sequence: number;
39498
- shadow: boolean;
39499
- started_at: string | null;
39500
- status: string;
39501
- strategy_id: string | null;
39502
- task_type: string;
39503
- updated_at: string;
39504
- user_id: string;
39505
- };
39506
- SetofOptions: {
39507
- from: "*";
39508
- to: "logistics_tasks";
39509
- isOneToOne: true;
39510
- isSetofReturn: false;
39511
- };
39512
- };
39513
- logistics_delay_customer_email: {
39514
- Args: {
39515
- p_customer: string;
39516
- p_lang: string;
39517
- p_new_date: string;
39518
- p_order: string;
39519
- p_partial?: boolean;
39520
- };
39521
- Returns: {
39522
- body: string;
39523
- subject: string;
41922
+ payload_hash: string;
41923
+ revision: number;
39524
41924
  }[];
39525
41925
  };
39526
- logistics_document_layout: {
41926
+ logistics_floriday_finish_push: {
39527
41927
  Args: {
39528
- _document_code: string;
39529
- };
39530
- Returns: import("../integrations/supabase/types").Json;
39531
- };
39532
- logistics_document_station: {
39533
- Args: {
39534
- _document_code: string;
41928
+ _error?: string;
41929
+ _fulfillment_order_id?: string;
41930
+ _id: string;
41931
+ _max_age_hours?: number;
41932
+ _max_attempts?: number;
41933
+ _ok: boolean;
41934
+ _permanent?: boolean;
41935
+ _revision: number;
41936
+ _sent_hash?: string;
39535
41937
  };
39536
41938
  Returns: string;
39537
41939
  };
39538
- logistics_emit_event: {
41940
+ logistics_floriday_prune_pushes: {
39539
41941
  Args: {
39540
- p_event_type: string;
39541
- p_idempotency_key?: string;
39542
- p_order_ref: string;
39543
- p_payload?: import("../integrations/supabase/types").Json;
39544
- p_shadow?: boolean;
39545
- p_source_module: string;
39546
- p_strategy_id?: string;
41942
+ _days?: number;
39547
41943
  };
39548
- Returns: import("../integrations/supabase/types").Json;
39549
- } | {
39550
- Args: {
39551
- p_event_type: string;
39552
- p_idempotency_key?: string;
39553
- p_order_ref: string;
39554
- p_payload?: import("../integrations/supabase/types").Json;
39555
- p_priority?: number;
39556
- p_shadow?: boolean;
39557
- p_source_module: string;
39558
- p_strategy_id?: string;
39559
- };
39560
- Returns: import("../integrations/supabase/types").Json;
41944
+ Returns: number;
39561
41945
  };
39562
- logistics_fail_task: {
41946
+ logistics_floriday_queue_push: {
39563
41947
  Args: {
39564
- p_error: string;
39565
- p_task_id: string;
39566
- };
39567
- Returns: {
39568
- attempt_log: import("../integrations/supabase/types").Json;
39569
- attempts: number;
39570
- buffer_ref: string | null;
39571
- claimed_at: string | null;
39572
- claimed_by: string | null;
39573
- completed_at: string | null;
39574
- created_at: string;
39575
- depends_on: string[];
39576
- due_at: string | null;
39577
- error: string | null;
39578
- id: string;
39579
- last_error: string | null;
39580
- next_attempt_at: string | null;
39581
- order_ref: string;
39582
- owner_module: string;
39583
- payload: import("../integrations/supabase/types").Json;
39584
- plan_run_id: string | null;
39585
- planned_end: string | null;
39586
- planned_start: string | null;
39587
- priority: number;
39588
- result: import("../integrations/supabase/types").Json | null;
39589
- rule_config_id: string | null;
39590
- rule_version: number | null;
39591
- sequence: number;
39592
- shadow: boolean;
39593
- started_at: string | null;
39594
- status: string;
39595
- strategy_id: string | null;
39596
- task_type: string;
39597
- updated_at: string;
39598
- user_id: string;
39599
- };
39600
- SetofOptions: {
39601
- from: "*";
39602
- to: "logistics_tasks";
39603
- isOneToOne: true;
39604
- isSetofReturn: false;
41948
+ _order_ref: string;
41949
+ _payload?: import("../integrations/supabase/types").Json;
41950
+ _payload_hash?: string;
39605
41951
  };
41952
+ Returns: string;
39606
41953
  };
39607
41954
  logistics_live_carriers: {
39608
41955
  Args: {
@@ -39656,6 +42003,65 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
39656
42003
  };
39657
42004
  Returns: number;
39658
42005
  };
42006
+ logistics_plan_claim: {
42007
+ Args: {
42008
+ p_limit?: number;
42009
+ };
42010
+ Returns: {
42011
+ attempts: number;
42012
+ id: string;
42013
+ order_id: string;
42014
+ }[];
42015
+ };
42016
+ logistics_plan_enqueue: {
42017
+ Args: {
42018
+ p_order_id: string;
42019
+ p_reason?: string;
42020
+ };
42021
+ Returns: undefined;
42022
+ };
42023
+ logistics_plan_ensure_event: {
42024
+ Args: {
42025
+ p_order_id: string;
42026
+ };
42027
+ Returns: boolean;
42028
+ };
42029
+ logistics_plan_finish: {
42030
+ Args: {
42031
+ p_error?: string;
42032
+ p_id: string;
42033
+ };
42034
+ Returns: undefined;
42035
+ };
42036
+ logistics_plan_impact_orders: {
42037
+ Args: {
42038
+ p_order_id: string;
42039
+ };
42040
+ Returns: {
42041
+ buffer_id: string;
42042
+ order_id: string;
42043
+ plan_date: string;
42044
+ }[];
42045
+ };
42046
+ logistics_plan_kick: {
42047
+ Args: never;
42048
+ Returns: undefined;
42049
+ };
42050
+ logistics_plan_prune: {
42051
+ Args: never;
42052
+ Returns: number;
42053
+ };
42054
+ logistics_plan_release_stale: {
42055
+ Args: never;
42056
+ Returns: number;
42057
+ };
42058
+ logistics_plan_setting: {
42059
+ Args: {
42060
+ p_default: number;
42061
+ p_key: string;
42062
+ };
42063
+ Returns: number;
42064
+ };
39659
42065
  logistics_queue_capacity_email: {
39660
42066
  Args: {
39661
42067
  p_alert_id: string;
@@ -39894,6 +42300,14 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
39894
42300
  };
39895
42301
  Returns: undefined;
39896
42302
  };
42303
+ my_module_permissions: {
42304
+ Args: never;
42305
+ Returns: {
42306
+ feature_id: string;
42307
+ module_id: string;
42308
+ permission: string;
42309
+ }[];
42310
+ };
39897
42311
  next_manufacture_partij: {
39898
42312
  Args: {
39899
42313
  _tenant_id: string;
@@ -39944,6 +42358,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
39944
42358
  };
39945
42359
  Returns: boolean;
39946
42360
  };
42361
+ opruim_print_historie: {
42362
+ Args: never;
42363
+ Returns: {
42364
+ ontdaan: number;
42365
+ verwijderd: number;
42366
+ }[];
42367
+ };
39947
42368
  order_number_prefix: {
39948
42369
  Args: {
39949
42370
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -39951,6 +42372,15 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
39951
42372
  };
39952
42373
  Returns: string;
39953
42374
  };
42375
+ pick_active_printers: {
42376
+ Args: never;
42377
+ Returns: {
42378
+ id: string;
42379
+ locatie: string;
42380
+ naam: string;
42381
+ online: boolean;
42382
+ }[];
42383
+ };
39954
42384
  pick_claim_document: {
39955
42385
  Args: {
39956
42386
  _queue_item_id: string;
@@ -40137,6 +42567,52 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
40137
42567
  };
40138
42568
  Returns: undefined;
40139
42569
  };
42570
+ pick_reset_print: {
42571
+ Args: {
42572
+ _queue_item_id: string;
42573
+ _session_id: string;
42574
+ };
42575
+ Returns: {
42576
+ announced_at: string;
42577
+ assigned_user_id: string | null;
42578
+ barcode: string | null;
42579
+ cancelled_at: string | null;
42580
+ cart_count: number;
42581
+ completed_at: string | null;
42582
+ country_code: string | null;
42583
+ created_at: string;
42584
+ customer_name: string | null;
42585
+ delivery_address: string | null;
42586
+ document_number: string | null;
42587
+ document_type_id: string | null;
42588
+ due_at: string | null;
42589
+ id: string;
42590
+ is_urgent: boolean;
42591
+ line_count: number;
42592
+ order_number: string | null;
42593
+ order_type: string | null;
42594
+ payload: import("../integrations/supabase/types").Json;
42595
+ print_count: number;
42596
+ print_job_id: string | null;
42597
+ printed_at: string | null;
42598
+ printed_by: string | null;
42599
+ printer_id: string | null;
42600
+ priority: number;
42601
+ reference: string | null;
42602
+ route: string | null;
42603
+ screen_id: string | null;
42604
+ station_id: string | null;
42605
+ status_id: string | null;
42606
+ updated_at: string;
42607
+ warnings: import("../integrations/supabase/types").Json;
42608
+ };
42609
+ SetofOptions: {
42610
+ from: "*";
42611
+ to: "pick_queue";
42612
+ isOneToOne: true;
42613
+ isSetofReturn: false;
42614
+ };
42615
+ };
40140
42616
  pick_station_dashboard: {
40141
42617
  Args: never;
40142
42618
  Returns: {
@@ -40283,6 +42759,12 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
40283
42759
  };
40284
42760
  Returns: undefined;
40285
42761
  };
42762
+ reset_stalled_floriday_stock_queue: {
42763
+ Args: {
42764
+ p_include_failed?: boolean;
42765
+ };
42766
+ Returns: number;
42767
+ };
40286
42768
  resolve_group_allocation: {
40287
42769
  Args: {
40288
42770
  _needed: number;
@@ -40327,14 +42809,28 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
40327
42809
  };
40328
42810
  Returns: import("../integrations/supabase/types").Json;
40329
42811
  };
42812
+ ruim_print_jobs_op: {
42813
+ Args: {
42814
+ _bewaar_dagen?: number;
42815
+ };
42816
+ Returns: number;
42817
+ };
40330
42818
  run_floriday_continuous_stock_sync: {
40331
42819
  Args: never;
40332
42820
  Returns: undefined;
40333
42821
  };
42822
+ run_floriday_stock_queue_process: {
42823
+ Args: never;
42824
+ Returns: undefined;
42825
+ };
40334
42826
  run_logistics_tasks_dispatch: {
40335
42827
  Args: never;
40336
42828
  Returns: undefined;
40337
42829
  };
42830
+ run_print_queue_ticks: {
42831
+ Args: never;
42832
+ Returns: number;
42833
+ };
40338
42834
  run_twinfield_queue_tick: {
40339
42835
  Args: never;
40340
42836
  Returns: undefined;
@@ -40575,6 +43071,13 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
40575
43071
  };
40576
43072
  Returns: number;
40577
43073
  };
43074
+ schedule_floriday_stock_queue_process: {
43075
+ Args: {
43076
+ p_apikey: string;
43077
+ p_url: string;
43078
+ };
43079
+ Returns: number;
43080
+ };
40578
43081
  schedule_floriday_token_refresh: {
40579
43082
  Args: {
40580
43083
  p_apikey: string;
@@ -40681,6 +43184,16 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
40681
43184
  };
40682
43185
  Returns: string[];
40683
43186
  };
43187
+ switch_time_log: {
43188
+ Args: {
43189
+ p_employee_id: string;
43190
+ p_start_lat?: number;
43191
+ p_start_lng?: number;
43192
+ p_type: string;
43193
+ p_work_order_id?: string;
43194
+ };
43195
+ Returns: import("../integrations/supabase/types").Json;
43196
+ };
40684
43197
  sync_all_layer_stocks: {
40685
43198
  Args: never;
40686
43199
  Returns: undefined;
@@ -40715,6 +43228,15 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
40715
43228
  };
40716
43229
  Returns: undefined;
40717
43230
  };
43231
+ trade_item_stock_duplicates: {
43232
+ Args: never;
43233
+ Returns: {
43234
+ keys: string[];
43235
+ product_id: string;
43236
+ product_name: string;
43237
+ row_count: number;
43238
+ }[];
43239
+ };
40718
43240
  try_debtor_lock: {
40719
43241
  Args: {
40720
43242
  _group_key: string;
@@ -40722,6 +43244,24 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
40722
43244
  };
40723
43245
  Returns: boolean;
40724
43246
  };
43247
+ twinfield_cron_lock_acquire: {
43248
+ Args: {
43249
+ _job_name: string;
43250
+ _stale_seconds?: number;
43251
+ };
43252
+ Returns: boolean;
43253
+ };
43254
+ twinfield_cron_lock_release: {
43255
+ Args: {
43256
+ _error?: string;
43257
+ _job_name: string;
43258
+ };
43259
+ Returns: undefined;
43260
+ };
43261
+ twinfield_prune_push_queue: {
43262
+ Args: never;
43263
+ Returns: number;
43264
+ };
40725
43265
  twinfield_register_cron: {
40726
43266
  Args: {
40727
43267
  apikey?: string;
@@ -40764,7 +43304,7 @@ export declare const setOrderPickupMoment: import("@tanstack/start-client-core")
40764
43304
  };
40765
43305
  Enums: {
40766
43306
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
40767
- app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin";
43307
+ app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
40768
43308
  doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
40769
43309
  doc_orientation: "portrait" | "landscape";
40770
43310
  exact_env: "staging" | "live";