@flowselections/floriday-verkoop-module 1.0.41 → 1.0.43

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 (69) hide show
  1. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts +5 -2
  2. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  3. package/dist-lib/components/verkoop/SalesOrdersTable.js +27 -13
  4. package/dist-lib/components/verkoop/VerkoopOrdersPage.d.ts.map +1 -1
  5. package/dist-lib/components/verkoop/VerkoopOrdersPage.js +141 -27
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1428 -172
  7. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  8. package/dist-lib/integrations/supabase/client.d.ts +1428 -172
  9. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/client.server.d.ts +1428 -172
  11. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/types.d.ts +1453 -170
  13. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/types.js +3 -0
  15. package/dist-lib/lib/cart-lock.functions.d.ts +1428 -172
  16. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/cart-planning-settings.functions.d.ts +15224 -1408
  18. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/cart-replan.functions.d.ts +4152 -384
  20. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/create-order.functions.d.ts +65255 -1978
  22. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/create-order.functions.js +48 -1
  24. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +4152 -384
  25. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +1428 -172
  27. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday-mirror.functions.d.ts +1428 -172
  29. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floriday-mirror.functions.js +6 -1
  31. package/dist-lib/lib/floriday-public.functions.d.ts +9688 -896
  32. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floriday-writes.functions.d.ts +6920 -640
  34. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/invoice-timing.functions.d.ts +5536 -512
  36. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/invoice-timing.server.d.ts.map +1 -1
  38. package/dist-lib/lib/invoice-timing.server.js +1 -0
  39. package/dist-lib/lib/load-carriers.functions.d.ts +1428 -172
  40. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/logistics-engine.functions.d.ts +6920 -640
  42. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/logistics-stock.functions.d.ts +2768 -256
  44. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/order-addresses.functions.d.ts +1428 -172
  46. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  47. package/dist-lib/lib/order-buffers.functions.d.ts +4152 -384
  48. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/order-cancel.server.d.ts +24 -0
  50. package/dist-lib/lib/order-cancel.server.d.ts.map +1 -0
  51. package/dist-lib/lib/order-cancel.server.js +130 -0
  52. package/dist-lib/lib/order-carrier.functions.d.ts +2768 -256
  53. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/order-pickup.functions.d.ts +2768 -256
  55. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/order-shipments.functions.d.ts +5536 -512
  57. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/salesorders-list.functions.d.ts +1428 -172
  59. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  60. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  61. package/dist-lib/lib/salesorders-list.server.js +4 -60
  62. package/dist-lib/lib/salesorders-mapping.d.ts +6 -0
  63. package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
  64. package/dist-lib/lib/salesorders-mapping.js +17 -0
  65. package/dist-lib/lib/salesorders.functions.d.ts +6920 -640
  66. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  67. package/dist-lib/lib/tradeitems.functions.d.ts +1428 -172
  68. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  69. package/package.json +1 -1
@@ -876,6 +876,126 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
876
876
  };
877
877
  Relationships: [];
878
878
  };
879
+ cao_holidays: {
880
+ Row: {
881
+ created_at: string;
882
+ description: string | null;
883
+ holiday_date: string;
884
+ id: string;
885
+ updated_at: string;
886
+ };
887
+ Insert: {
888
+ created_at?: string;
889
+ description?: string | null;
890
+ holiday_date: string;
891
+ id?: string;
892
+ updated_at?: string;
893
+ };
894
+ Update: {
895
+ created_at?: string;
896
+ description?: string | null;
897
+ holiday_date?: string;
898
+ id?: string;
899
+ updated_at?: string;
900
+ };
901
+ Relationships: [];
902
+ };
903
+ cao_settings: {
904
+ Row: {
905
+ auto_break_after_hours: number;
906
+ auto_break_minutes: number;
907
+ auto_break_unpaid: boolean;
908
+ auto_stop_after_hours: number;
909
+ callout_fee: number;
910
+ created_at: string;
911
+ daily_regular_hours: number;
912
+ default_hourly_rate: number;
913
+ id: string;
914
+ materials_markup_percent: number;
915
+ max_daily_hours: number;
916
+ max_weekly_hours: number;
917
+ meal_allowance_amount: number;
918
+ overtime_pct_178: number;
919
+ overtime_pct_189: number;
920
+ overtime_pct_212: number;
921
+ reminder_after_hours: number;
922
+ standby_evening_amount: number;
923
+ standby_weekend_amount: number;
924
+ travel_cost_per_km: number | null;
925
+ travel_cost_threshold_km: number | null;
926
+ travel_counts_as_work: boolean;
927
+ travel_hourly_rate: number;
928
+ travel_rate_per_hour: number;
929
+ travel_threshold_minutes: number;
930
+ updated_at: string;
931
+ weekend_always_212: boolean;
932
+ window_end: string;
933
+ window_start: string;
934
+ };
935
+ Insert: {
936
+ auto_break_after_hours?: number;
937
+ auto_break_minutes?: number;
938
+ auto_break_unpaid?: boolean;
939
+ auto_stop_after_hours?: number;
940
+ callout_fee?: number;
941
+ created_at?: string;
942
+ daily_regular_hours?: number;
943
+ default_hourly_rate?: number;
944
+ id?: string;
945
+ materials_markup_percent?: number;
946
+ max_daily_hours?: number;
947
+ max_weekly_hours?: number;
948
+ meal_allowance_amount?: number;
949
+ overtime_pct_178?: number;
950
+ overtime_pct_189?: number;
951
+ overtime_pct_212?: number;
952
+ reminder_after_hours?: number;
953
+ standby_evening_amount?: number;
954
+ standby_weekend_amount?: number;
955
+ travel_cost_per_km?: number | null;
956
+ travel_cost_threshold_km?: number | null;
957
+ travel_counts_as_work?: boolean;
958
+ travel_hourly_rate?: number;
959
+ travel_rate_per_hour?: number;
960
+ travel_threshold_minutes?: number;
961
+ updated_at?: string;
962
+ weekend_always_212?: boolean;
963
+ window_end?: string;
964
+ window_start?: string;
965
+ };
966
+ Update: {
967
+ auto_break_after_hours?: number;
968
+ auto_break_minutes?: number;
969
+ auto_break_unpaid?: boolean;
970
+ auto_stop_after_hours?: number;
971
+ callout_fee?: number;
972
+ created_at?: string;
973
+ daily_regular_hours?: number;
974
+ default_hourly_rate?: number;
975
+ id?: string;
976
+ materials_markup_percent?: number;
977
+ max_daily_hours?: number;
978
+ max_weekly_hours?: number;
979
+ meal_allowance_amount?: number;
980
+ overtime_pct_178?: number;
981
+ overtime_pct_189?: number;
982
+ overtime_pct_212?: number;
983
+ reminder_after_hours?: number;
984
+ standby_evening_amount?: number;
985
+ standby_weekend_amount?: number;
986
+ travel_cost_per_km?: number | null;
987
+ travel_cost_threshold_km?: number | null;
988
+ travel_counts_as_work?: boolean;
989
+ travel_hourly_rate?: number;
990
+ travel_rate_per_hour?: number;
991
+ travel_threshold_minutes?: number;
992
+ updated_at?: string;
993
+ weekend_always_212?: boolean;
994
+ window_end?: string;
995
+ window_start?: string;
996
+ };
997
+ Relationships: [];
998
+ };
879
999
  carrier_shipping_rates: {
880
1000
  Row: {
881
1001
  carrier_id: string;
@@ -4929,6 +5049,42 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
4929
5049
  };
4930
5050
  Relationships: [];
4931
5051
  };
5052
+ facturen: {
5053
+ Row: {
5054
+ bedrag_incl_btw: number;
5055
+ created_at: string;
5056
+ datum: string;
5057
+ factuurnummer: string;
5058
+ id: string;
5059
+ klantnaam: string;
5060
+ status: string;
5061
+ updated_at: string;
5062
+ user_id: string;
5063
+ };
5064
+ Insert: {
5065
+ bedrag_incl_btw: number;
5066
+ created_at?: string;
5067
+ datum?: string;
5068
+ factuurnummer: string;
5069
+ id?: string;
5070
+ klantnaam: string;
5071
+ status?: string;
5072
+ updated_at?: string;
5073
+ user_id?: string;
5074
+ };
5075
+ Update: {
5076
+ bedrag_incl_btw?: number;
5077
+ created_at?: string;
5078
+ datum?: string;
5079
+ factuurnummer?: string;
5080
+ id?: string;
5081
+ klantnaam?: string;
5082
+ status?: string;
5083
+ updated_at?: string;
5084
+ user_id?: string;
5085
+ };
5086
+ Relationships: [];
5087
+ };
4932
5088
  floricode_connection_settings: {
4933
5089
  Row: {
4934
5090
  catalog_key: string | null;
@@ -7653,6 +7809,258 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7653
7809
  };
7654
7810
  Relationships: [];
7655
7811
  };
7812
+ itk_offerte_events: {
7813
+ Row: {
7814
+ created_at: string;
7815
+ event_type: string;
7816
+ id: string;
7817
+ metadata: import("../integrations/supabase/types").Json;
7818
+ offerte_id: string;
7819
+ omschrijving: string | null;
7820
+ user_id: string | null;
7821
+ };
7822
+ Insert: {
7823
+ created_at?: string;
7824
+ event_type: string;
7825
+ id?: string;
7826
+ metadata?: import("../integrations/supabase/types").Json;
7827
+ offerte_id: string;
7828
+ omschrijving?: string | null;
7829
+ user_id?: string | null;
7830
+ };
7831
+ Update: {
7832
+ created_at?: string;
7833
+ event_type?: string;
7834
+ id?: string;
7835
+ metadata?: import("../integrations/supabase/types").Json;
7836
+ offerte_id?: string;
7837
+ omschrijving?: string | null;
7838
+ user_id?: string | null;
7839
+ };
7840
+ Relationships: [{
7841
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
7842
+ columns: ["offerte_id"];
7843
+ isOneToOne: false;
7844
+ referencedRelation: "itk_offertes";
7845
+ referencedColumns: ["id"];
7846
+ }];
7847
+ };
7848
+ itk_offerte_regels: {
7849
+ Row: {
7850
+ created_at: string;
7851
+ id: string;
7852
+ line_total_cents: number;
7853
+ offerte_id: string;
7854
+ omschrijving: string;
7855
+ package_id: string | null;
7856
+ quantity: number;
7857
+ sort_order: number;
7858
+ source: string;
7859
+ unit_price_cents: number;
7860
+ updated_at: string;
7861
+ };
7862
+ Insert: {
7863
+ created_at?: string;
7864
+ id?: string;
7865
+ line_total_cents?: number;
7866
+ offerte_id: string;
7867
+ omschrijving?: string;
7868
+ package_id?: string | null;
7869
+ quantity?: number;
7870
+ sort_order?: number;
7871
+ source?: string;
7872
+ unit_price_cents?: number;
7873
+ updated_at?: string;
7874
+ };
7875
+ Update: {
7876
+ created_at?: string;
7877
+ id?: string;
7878
+ line_total_cents?: number;
7879
+ offerte_id?: string;
7880
+ omschrijving?: string;
7881
+ package_id?: string | null;
7882
+ quantity?: number;
7883
+ sort_order?: number;
7884
+ source?: string;
7885
+ unit_price_cents?: number;
7886
+ updated_at?: string;
7887
+ };
7888
+ Relationships: [{
7889
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
7890
+ columns: ["offerte_id"];
7891
+ isOneToOne: false;
7892
+ referencedRelation: "itk_offertes";
7893
+ referencedColumns: ["id"];
7894
+ }, {
7895
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
7896
+ columns: ["package_id"];
7897
+ isOneToOne: false;
7898
+ referencedRelation: "werkbon_packages";
7899
+ referencedColumns: ["id"];
7900
+ }];
7901
+ };
7902
+ itk_offerte_settings: {
7903
+ Row: {
7904
+ auto_convert_binnen_mandaat: boolean;
7905
+ created_at: string;
7906
+ default_geldigheid_dagen: number;
7907
+ default_vat_rate: number;
7908
+ id: string;
7909
+ singleton: boolean;
7910
+ updated_at: string;
7911
+ };
7912
+ Insert: {
7913
+ auto_convert_binnen_mandaat?: boolean;
7914
+ created_at?: string;
7915
+ default_geldigheid_dagen?: number;
7916
+ default_vat_rate?: number;
7917
+ id?: string;
7918
+ singleton?: boolean;
7919
+ updated_at?: string;
7920
+ };
7921
+ Update: {
7922
+ auto_convert_binnen_mandaat?: boolean;
7923
+ created_at?: string;
7924
+ default_geldigheid_dagen?: number;
7925
+ default_vat_rate?: number;
7926
+ id?: string;
7927
+ singleton?: boolean;
7928
+ updated_at?: string;
7929
+ };
7930
+ Relationships: [];
7931
+ };
7932
+ itk_offertes: {
7933
+ Row: {
7934
+ ai_generated: boolean;
7935
+ approved_at: string | null;
7936
+ binnen_mandaat: boolean;
7937
+ contact_id: string | null;
7938
+ converted_at: string | null;
7939
+ created_at: string;
7940
+ created_by: string | null;
7941
+ customer_id: string | null;
7942
+ follow_up_werkbon_id: string | null;
7943
+ id: string;
7944
+ jaar: number;
7945
+ mandaat_restant_cents: number;
7946
+ notities: string | null;
7947
+ offerte_number: string | null;
7948
+ omschrijving: string;
7949
+ rejected_at: string | null;
7950
+ sent_at: string | null;
7951
+ source_number: string | null;
7952
+ source_ref: string | null;
7953
+ source_type: string;
7954
+ status: string;
7955
+ subtotal_cents: number;
7956
+ total_cents: number;
7957
+ updated_at: string;
7958
+ valid_until: string | null;
7959
+ vat_cents: number;
7960
+ vat_rate: number;
7961
+ viewed_at: string | null;
7962
+ volgnummer: number | null;
7963
+ werkbon_id: string | null;
7964
+ work_location_id: string | null;
7965
+ };
7966
+ Insert: {
7967
+ ai_generated?: boolean;
7968
+ approved_at?: string | null;
7969
+ binnen_mandaat?: boolean;
7970
+ contact_id?: string | null;
7971
+ converted_at?: string | null;
7972
+ created_at?: string;
7973
+ created_by?: string | null;
7974
+ customer_id?: string | null;
7975
+ follow_up_werkbon_id?: string | null;
7976
+ id?: string;
7977
+ jaar?: number;
7978
+ mandaat_restant_cents?: number;
7979
+ notities?: string | null;
7980
+ offerte_number?: string | null;
7981
+ omschrijving?: string;
7982
+ rejected_at?: string | null;
7983
+ sent_at?: string | null;
7984
+ source_number?: string | null;
7985
+ source_ref?: string | null;
7986
+ source_type?: string;
7987
+ status?: string;
7988
+ subtotal_cents?: number;
7989
+ total_cents?: number;
7990
+ updated_at?: string;
7991
+ valid_until?: string | null;
7992
+ vat_cents?: number;
7993
+ vat_rate?: number;
7994
+ viewed_at?: string | null;
7995
+ volgnummer?: number | null;
7996
+ werkbon_id?: string | null;
7997
+ work_location_id?: string | null;
7998
+ };
7999
+ Update: {
8000
+ ai_generated?: boolean;
8001
+ approved_at?: string | null;
8002
+ binnen_mandaat?: boolean;
8003
+ contact_id?: string | null;
8004
+ converted_at?: string | null;
8005
+ created_at?: string;
8006
+ created_by?: string | null;
8007
+ customer_id?: string | null;
8008
+ follow_up_werkbon_id?: string | null;
8009
+ id?: string;
8010
+ jaar?: number;
8011
+ mandaat_restant_cents?: number;
8012
+ notities?: string | null;
8013
+ offerte_number?: string | null;
8014
+ omschrijving?: string;
8015
+ rejected_at?: string | null;
8016
+ sent_at?: string | null;
8017
+ source_number?: string | null;
8018
+ source_ref?: string | null;
8019
+ source_type?: string;
8020
+ status?: string;
8021
+ subtotal_cents?: number;
8022
+ total_cents?: number;
8023
+ updated_at?: string;
8024
+ valid_until?: string | null;
8025
+ vat_cents?: number;
8026
+ vat_rate?: number;
8027
+ viewed_at?: string | null;
8028
+ volgnummer?: number | null;
8029
+ werkbon_id?: string | null;
8030
+ work_location_id?: string | null;
8031
+ };
8032
+ Relationships: [{
8033
+ foreignKeyName: "itk_offertes_contact_id_fkey";
8034
+ columns: ["contact_id"];
8035
+ isOneToOne: false;
8036
+ referencedRelation: "itk_contact_persons";
8037
+ referencedColumns: ["id"];
8038
+ }, {
8039
+ foreignKeyName: "itk_offertes_customer_id_fkey";
8040
+ columns: ["customer_id"];
8041
+ isOneToOne: false;
8042
+ referencedRelation: "itk_customers";
8043
+ referencedColumns: ["id"];
8044
+ }, {
8045
+ foreignKeyName: "itk_offertes_follow_up_werkbon_id_fkey";
8046
+ columns: ["follow_up_werkbon_id"];
8047
+ isOneToOne: false;
8048
+ referencedRelation: "werkbonnen";
8049
+ referencedColumns: ["id"];
8050
+ }, {
8051
+ foreignKeyName: "itk_offertes_werkbon_id_fkey";
8052
+ columns: ["werkbon_id"];
8053
+ isOneToOne: false;
8054
+ referencedRelation: "werkbonnen";
8055
+ referencedColumns: ["id"];
8056
+ }, {
8057
+ foreignKeyName: "itk_offertes_work_location_id_fkey";
8058
+ columns: ["work_location_id"];
8059
+ isOneToOne: false;
8060
+ referencedRelation: "itk_work_locations";
8061
+ referencedColumns: ["id"];
8062
+ }];
8063
+ };
7656
8064
  itk_work_locations: {
7657
8065
  Row: {
7658
8066
  city: string | null;
@@ -7770,7 +8178,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7770
8178
  start_date: string;
7771
8179
  start_time: string | null;
7772
8180
  status: string;
7773
- tenant_id: string;
7774
8181
  updated_at: string;
7775
8182
  user_id: string;
7776
8183
  };
@@ -7788,7 +8195,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7788
8195
  start_date: string;
7789
8196
  start_time?: string | null;
7790
8197
  status?: string;
7791
- tenant_id?: string;
7792
8198
  updated_at?: string;
7793
8199
  user_id: string;
7794
8200
  };
@@ -7806,7 +8212,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7806
8212
  start_date?: string;
7807
8213
  start_time?: string | null;
7808
8214
  status?: string;
7809
- tenant_id?: string;
7810
8215
  updated_at?: string;
7811
8216
  user_id?: string;
7812
8217
  };
@@ -7814,13 +8219,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
7814
8219
  foreignKeyName: "leave_requests_monteur_id_fkey";
7815
8220
  columns: ["monteur_id"];
7816
8221
  isOneToOne: false;
7817
- referencedRelation: "monteurs";
8222
+ referencedRelation: "profiles";
7818
8223
  referencedColumns: ["id"];
7819
8224
  }, {
7820
8225
  foreignKeyName: "leave_requests_user_id_fkey";
7821
8226
  columns: ["user_id"];
7822
8227
  isOneToOne: false;
7823
- referencedRelation: "monteurs";
8228
+ referencedRelation: "profiles";
7824
8229
  referencedColumns: ["id"];
7825
8230
  }];
7826
8231
  };
@@ -8688,21 +9093,60 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8688
9093
  };
8689
9094
  Relationships: [];
8690
9095
  };
8691
- logistics_plan_runs: {
9096
+ logistics_plan_queue: {
8692
9097
  Row: {
8693
- created_at: string;
9098
+ attempts: number;
9099
+ claimed_at: string | null;
9100
+ enqueued_at: string;
8694
9101
  error: string | null;
8695
9102
  id: string;
8696
- input: import("../integrations/supabase/types").Json;
8697
- order_ref: string;
8698
- rule_config_id: string | null;
8699
- rule_version: number | null;
8700
- settings_hash: string | null;
8701
- settings_snapshot: import("../integrations/supabase/types").Json;
8702
- source_module: string | null;
9103
+ next_attempt_at: string;
9104
+ order_id: string;
9105
+ reason: string;
8703
9106
  status: string;
8704
- strategy_id: string | null;
8705
- tasks_created: number;
9107
+ updated_at: string;
9108
+ };
9109
+ Insert: {
9110
+ attempts?: number;
9111
+ claimed_at?: string | null;
9112
+ enqueued_at?: string;
9113
+ error?: string | null;
9114
+ id?: string;
9115
+ next_attempt_at?: string;
9116
+ order_id: string;
9117
+ reason?: string;
9118
+ status?: string;
9119
+ updated_at?: string;
9120
+ };
9121
+ Update: {
9122
+ attempts?: number;
9123
+ claimed_at?: string | null;
9124
+ enqueued_at?: string;
9125
+ error?: string | null;
9126
+ id?: string;
9127
+ next_attempt_at?: string;
9128
+ order_id?: string;
9129
+ reason?: string;
9130
+ status?: string;
9131
+ updated_at?: string;
9132
+ };
9133
+ Relationships: [];
9134
+ };
9135
+ logistics_plan_runs: {
9136
+ Row: {
9137
+ created_at: string;
9138
+ error: string | null;
9139
+ id: string;
9140
+ input: import("../integrations/supabase/types").Json;
9141
+ order_ref: string;
9142
+ rule_config_id: string | null;
9143
+ rule_version: number | null;
9144
+ settings_hash: string | null;
9145
+ settings_snapshot: import("../integrations/supabase/types").Json;
9146
+ source_module: string | null;
9147
+ status: string;
9148
+ strategy_id: string | null;
9149
+ tasks_created: number;
8706
9150
  tasks_revised: number;
8707
9151
  trigger: string;
8708
9152
  updated_at: string;
@@ -8763,6 +9207,24 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
8763
9207
  referencedColumns: ["id"];
8764
9208
  }];
8765
9209
  };
9210
+ logistics_plan_settings: {
9211
+ Row: {
9212
+ key: string;
9213
+ updated_at: string;
9214
+ value: string;
9215
+ };
9216
+ Insert: {
9217
+ key: string;
9218
+ updated_at?: string;
9219
+ value: string;
9220
+ };
9221
+ Update: {
9222
+ key?: string;
9223
+ updated_at?: string;
9224
+ value?: string;
9225
+ };
9226
+ Relationships: [];
9227
+ };
8766
9228
  logistics_rebuffer_state: {
8767
9229
  Row: {
8768
9230
  created_at: string;
@@ -9918,6 +10380,147 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9918
10380
  };
9919
10381
  Relationships: [];
9920
10382
  };
10383
+ material_usage: {
10384
+ Row: {
10385
+ created_at: string;
10386
+ id: string;
10387
+ material_name: string;
10388
+ monteur_id: string | null;
10389
+ price_at_time: number;
10390
+ quantity_used: number;
10391
+ updated_at: string;
10392
+ van_inventory_id: string | null;
10393
+ work_order_id: string;
10394
+ };
10395
+ Insert: {
10396
+ created_at?: string;
10397
+ id?: string;
10398
+ material_name: string;
10399
+ monteur_id?: string | null;
10400
+ price_at_time?: number;
10401
+ quantity_used?: number;
10402
+ updated_at?: string;
10403
+ van_inventory_id?: string | null;
10404
+ work_order_id: string;
10405
+ };
10406
+ Update: {
10407
+ created_at?: string;
10408
+ id?: string;
10409
+ material_name?: string;
10410
+ monteur_id?: string | null;
10411
+ price_at_time?: number;
10412
+ quantity_used?: number;
10413
+ updated_at?: string;
10414
+ van_inventory_id?: string | null;
10415
+ work_order_id?: string;
10416
+ };
10417
+ Relationships: [{
10418
+ foreignKeyName: "material_usage_monteur_id_fkey";
10419
+ columns: ["monteur_id"];
10420
+ isOneToOne: false;
10421
+ referencedRelation: "profiles";
10422
+ referencedColumns: ["id"];
10423
+ }, {
10424
+ foreignKeyName: "material_usage_van_inventory_id_fkey";
10425
+ columns: ["van_inventory_id"];
10426
+ isOneToOne: false;
10427
+ referencedRelation: "van_inventories";
10428
+ referencedColumns: ["id"];
10429
+ }, {
10430
+ foreignKeyName: "material_usage_work_order_id_fkey";
10431
+ columns: ["work_order_id"];
10432
+ isOneToOne: false;
10433
+ referencedRelation: "work_orders";
10434
+ referencedColumns: ["id"];
10435
+ }];
10436
+ };
10437
+ medewerker_details: {
10438
+ Row: {
10439
+ color: string | null;
10440
+ created_at: string;
10441
+ hours_fri: number | null;
10442
+ hours_mon: number | null;
10443
+ hours_thu: number | null;
10444
+ hours_tue: number | null;
10445
+ hours_wed: number | null;
10446
+ id: string;
10447
+ is_active: boolean;
10448
+ leave_balance_hours: number;
10449
+ persnr: string | null;
10450
+ phone: string | null;
10451
+ profile_id: string;
10452
+ updated_at: string;
10453
+ };
10454
+ Insert: {
10455
+ color?: string | null;
10456
+ created_at?: string;
10457
+ hours_fri?: number | null;
10458
+ hours_mon?: number | null;
10459
+ hours_thu?: number | null;
10460
+ hours_tue?: number | null;
10461
+ hours_wed?: number | null;
10462
+ id?: string;
10463
+ is_active?: boolean;
10464
+ leave_balance_hours?: number;
10465
+ persnr?: string | null;
10466
+ phone?: string | null;
10467
+ profile_id: string;
10468
+ updated_at?: string;
10469
+ };
10470
+ Update: {
10471
+ color?: string | null;
10472
+ created_at?: string;
10473
+ hours_fri?: number | null;
10474
+ hours_mon?: number | null;
10475
+ hours_thu?: number | null;
10476
+ hours_tue?: number | null;
10477
+ hours_wed?: number | null;
10478
+ id?: string;
10479
+ is_active?: boolean;
10480
+ leave_balance_hours?: number;
10481
+ persnr?: string | null;
10482
+ phone?: string | null;
10483
+ profile_id?: string;
10484
+ updated_at?: string;
10485
+ };
10486
+ Relationships: [{
10487
+ foreignKeyName: "medewerker_details_profile_id_fkey";
10488
+ columns: ["profile_id"];
10489
+ isOneToOne: true;
10490
+ referencedRelation: "profiles";
10491
+ referencedColumns: ["id"];
10492
+ }];
10493
+ };
10494
+ module_features: {
10495
+ Row: {
10496
+ created_at: string;
10497
+ feature_id: string;
10498
+ id: string;
10499
+ is_active: boolean;
10500
+ last_seen_at: string;
10501
+ module_id: string;
10502
+ name: string;
10503
+ };
10504
+ Insert: {
10505
+ created_at?: string;
10506
+ feature_id: string;
10507
+ id?: string;
10508
+ is_active?: boolean;
10509
+ last_seen_at?: string;
10510
+ module_id: string;
10511
+ name: string;
10512
+ };
10513
+ Update: {
10514
+ created_at?: string;
10515
+ feature_id?: string;
10516
+ id?: string;
10517
+ is_active?: boolean;
10518
+ last_seen_at?: string;
10519
+ module_id?: string;
10520
+ name?: string;
10521
+ };
10522
+ Relationships: [];
10523
+ };
9921
10524
  module_permissions: {
9922
10525
  Row: {
9923
10526
  created_at: string;
@@ -9948,6 +10551,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9948
10551
  module_registry: {
9949
10552
  Row: {
9950
10553
  created_at: string;
10554
+ enforce: boolean;
9951
10555
  is_active: boolean;
9952
10556
  last_seen_at: string;
9953
10557
  module_id: string;
@@ -9957,6 +10561,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9957
10561
  };
9958
10562
  Insert: {
9959
10563
  created_at?: string;
10564
+ enforce?: boolean;
9960
10565
  is_active?: boolean;
9961
10566
  last_seen_at?: string;
9962
10567
  module_id: string;
@@ -9966,6 +10571,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
9966
10571
  };
9967
10572
  Update: {
9968
10573
  created_at?: string;
10574
+ enforce?: boolean;
9969
10575
  is_active?: boolean;
9970
10576
  last_seen_at?: string;
9971
10577
  module_id?: string;
@@ -10026,63 +10632,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10026
10632
  };
10027
10633
  Relationships: [];
10028
10634
  };
10029
- monteurs: {
10030
- Row: {
10031
- avatar_url: string | null;
10032
- color: string | null;
10033
- created_at: string;
10034
- email: string | null;
10035
- id: string;
10036
- is_active: boolean;
10037
- leave_balance_hours: number;
10038
- name: string;
10039
- persnr: number | null;
10040
- phone: string | null;
10041
- role: string;
10042
- tenant_id: string;
10043
- updated_at: string;
10044
- user_id: string | null;
10045
- };
10046
- Insert: {
10047
- avatar_url?: string | null;
10048
- color?: string | null;
10049
- created_at?: string;
10050
- email?: string | null;
10051
- id?: string;
10052
- is_active?: boolean;
10053
- leave_balance_hours?: number;
10054
- name: string;
10055
- persnr?: number | null;
10056
- phone?: string | null;
10057
- role?: string;
10058
- tenant_id: string;
10059
- updated_at?: string;
10060
- user_id?: string | null;
10061
- };
10062
- Update: {
10063
- avatar_url?: string | null;
10064
- color?: string | null;
10065
- created_at?: string;
10066
- email?: string | null;
10067
- id?: string;
10068
- is_active?: boolean;
10069
- leave_balance_hours?: number;
10070
- name?: string;
10071
- persnr?: number | null;
10072
- phone?: string | null;
10073
- role?: string;
10074
- tenant_id?: string;
10075
- updated_at?: string;
10076
- user_id?: string | null;
10077
- };
10078
- Relationships: [{
10079
- foreignKeyName: "monteurs_tenant_id_fkey";
10080
- columns: ["tenant_id"];
10081
- isOneToOne: false;
10082
- referencedRelation: "tenants";
10083
- referencedColumns: ["id"];
10084
- }];
10085
- };
10086
10635
  nmbrs_component_mapping: {
10087
10636
  Row: {
10088
10637
  created_at: string;
@@ -10153,13 +10702,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10153
10702
  nmbrs_employee_number?: string;
10154
10703
  updated_at?: string;
10155
10704
  };
10156
- Relationships: [{
10157
- foreignKeyName: "nmbrs_employee_mapping_monteur_id_fkey";
10158
- columns: ["monteur_id"];
10159
- isOneToOne: true;
10160
- referencedRelation: "monteurs";
10161
- referencedColumns: ["id"];
10162
- }];
10705
+ Relationships: [];
10163
10706
  };
10164
10707
  nmbrs_export_lines: {
10165
10708
  Row: {
@@ -10208,12 +10751,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
10208
10751
  wage_code?: string;
10209
10752
  };
10210
10753
  Relationships: [{
10211
- foreignKeyName: "nmbrs_export_lines_monteur_id_fkey";
10212
- columns: ["monteur_id"];
10213
- isOneToOne: false;
10214
- referencedRelation: "monteurs";
10215
- referencedColumns: ["id"];
10216
- }, {
10217
10754
  foreignKeyName: "nmbrs_export_lines_run_id_fkey";
10218
10755
  columns: ["run_id"];
10219
10756
  isOneToOne: false;
@@ -11041,6 +11578,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11041
11578
  error_message: string | null;
11042
11579
  id: string;
11043
11580
  invoice_number: string | null;
11581
+ next_attempt_at: string;
11044
11582
  order_id: string;
11045
11583
  processed_at: string | null;
11046
11584
  status: string;
@@ -11052,6 +11590,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11052
11590
  error_message?: string | null;
11053
11591
  id?: string;
11054
11592
  invoice_number?: string | null;
11593
+ next_attempt_at?: string;
11055
11594
  order_id: string;
11056
11595
  processed_at?: string | null;
11057
11596
  status?: string;
@@ -11063,6 +11602,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11063
11602
  error_message?: string | null;
11064
11603
  id?: string;
11065
11604
  invoice_number?: string | null;
11605
+ next_attempt_at?: string;
11066
11606
  order_id?: string;
11067
11607
  processed_at?: string | null;
11068
11608
  status?: string;
@@ -11244,6 +11784,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11244
11784
  orders: {
11245
11785
  Row: {
11246
11786
  buffer_id: string | null;
11787
+ cancel_reason: string | null;
11788
+ cancelled_at: string | null;
11247
11789
  created_at: string;
11248
11790
  custom_fields: import("../integrations/supabase/types").Json;
11249
11791
  customer_id: string | null;
@@ -11266,6 +11808,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11266
11808
  };
11267
11809
  Insert: {
11268
11810
  buffer_id?: string | null;
11811
+ cancel_reason?: string | null;
11812
+ cancelled_at?: string | null;
11269
11813
  created_at?: string;
11270
11814
  custom_fields?: import("../integrations/supabase/types").Json;
11271
11815
  customer_id?: string | null;
@@ -11288,6 +11832,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
11288
11832
  };
11289
11833
  Update: {
11290
11834
  buffer_id?: string | null;
11835
+ cancel_reason?: string | null;
11836
+ cancelled_at?: string | null;
11291
11837
  created_at?: string;
11292
11838
  custom_fields?: import("../integrations/supabase/types").Json;
11293
11839
  customer_id?: string | null;
@@ -12601,6 +13147,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
12601
13147
  created_at: string;
12602
13148
  id: string;
12603
13149
  laatst_gezien: string;
13150
+ laatste_fout: string | null;
13151
+ laatste_request_id: number | null;
13152
+ mislukte_posts: number;
12604
13153
  tick_sleutel: string;
12605
13154
  updated_at: string;
12606
13155
  };
@@ -12610,6 +13159,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
12610
13159
  created_at?: string;
12611
13160
  id?: string;
12612
13161
  laatst_gezien?: string;
13162
+ laatste_fout?: string | null;
13163
+ laatste_request_id?: number | null;
13164
+ mislukte_posts?: number;
12613
13165
  tick_sleutel?: string;
12614
13166
  updated_at?: string;
12615
13167
  };
@@ -12619,6 +13171,9 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
12619
13171
  created_at?: string;
12620
13172
  id?: string;
12621
13173
  laatst_gezien?: string;
13174
+ laatste_fout?: string | null;
13175
+ laatste_request_id?: number | null;
13176
+ mislukte_posts?: number;
12622
13177
  tick_sleutel?: string;
12623
13178
  updated_at?: string;
12624
13179
  };
@@ -13341,54 +13896,147 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
13341
13896
  };
13342
13897
  Relationships: [];
13343
13898
  };
13344
- profiles: {
13899
+ profile_modules: {
13345
13900
  Row: {
13346
- address: string | null;
13347
- avatar_url: string | null;
13348
13901
  created_at: string;
13349
- display_name: string | null;
13350
- email: string | null;
13351
13902
  id: string;
13352
- is_superadmin: boolean;
13353
- notification_preferences: import("../integrations/supabase/types").Json;
13354
- tenant_id: string | null;
13355
- updated_at: string;
13903
+ module_id: string;
13904
+ profile_id: string;
13356
13905
  };
13357
13906
  Insert: {
13358
- address?: string | null;
13359
- avatar_url?: string | null;
13360
13907
  created_at?: string;
13361
- display_name?: string | null;
13362
- email?: string | null;
13363
- id: string;
13364
- is_superadmin?: boolean;
13365
- notification_preferences?: import("../integrations/supabase/types").Json;
13366
- tenant_id?: string | null;
13367
- updated_at?: string;
13908
+ id?: string;
13909
+ module_id: string;
13910
+ profile_id: string;
13368
13911
  };
13369
13912
  Update: {
13370
- address?: string | null;
13371
- avatar_url?: string | null;
13372
13913
  created_at?: string;
13373
- display_name?: string | null;
13374
- email?: string | null;
13375
13914
  id?: string;
13376
- is_superadmin?: boolean;
13377
- notification_preferences?: import("../integrations/supabase/types").Json;
13378
- tenant_id?: string | null;
13379
- updated_at?: string;
13915
+ module_id?: string;
13916
+ profile_id?: string;
13380
13917
  };
13381
13918
  Relationships: [{
13382
- foreignKeyName: "profiles_tenant_id_fkey";
13383
- columns: ["tenant_id"];
13919
+ foreignKeyName: "profile_modules_profile_id_fkey";
13920
+ columns: ["profile_id"];
13384
13921
  isOneToOne: false;
13385
- referencedRelation: "tenants";
13922
+ referencedRelation: "profiles_org";
13386
13923
  referencedColumns: ["id"];
13387
13924
  }];
13388
13925
  };
13389
- projects: {
13926
+ profile_roles: {
13390
13927
  Row: {
13391
- contact_name: string | null;
13928
+ created_at: string;
13929
+ id: string;
13930
+ profile_id: string;
13931
+ role_id: string;
13932
+ };
13933
+ Insert: {
13934
+ created_at?: string;
13935
+ id?: string;
13936
+ profile_id: string;
13937
+ role_id: string;
13938
+ };
13939
+ Update: {
13940
+ created_at?: string;
13941
+ id?: string;
13942
+ profile_id?: string;
13943
+ role_id?: string;
13944
+ };
13945
+ Relationships: [{
13946
+ foreignKeyName: "profile_roles_profile_id_fkey";
13947
+ columns: ["profile_id"];
13948
+ isOneToOne: false;
13949
+ referencedRelation: "profiles_org";
13950
+ referencedColumns: ["id"];
13951
+ }, {
13952
+ foreignKeyName: "profile_roles_role_id_fkey";
13953
+ columns: ["role_id"];
13954
+ isOneToOne: false;
13955
+ referencedRelation: "roles";
13956
+ referencedColumns: ["id"];
13957
+ }];
13958
+ };
13959
+ profiles: {
13960
+ Row: {
13961
+ address: string | null;
13962
+ avatar_url: string | null;
13963
+ created_at: string;
13964
+ display_name: string | null;
13965
+ email: string | null;
13966
+ id: string;
13967
+ is_superadmin: boolean;
13968
+ notification_preferences: import("../integrations/supabase/types").Json;
13969
+ tenant_id: string | null;
13970
+ updated_at: string;
13971
+ };
13972
+ Insert: {
13973
+ address?: string | null;
13974
+ avatar_url?: string | null;
13975
+ created_at?: string;
13976
+ display_name?: string | null;
13977
+ email?: string | null;
13978
+ id: string;
13979
+ is_superadmin?: boolean;
13980
+ notification_preferences?: import("../integrations/supabase/types").Json;
13981
+ tenant_id?: string | null;
13982
+ updated_at?: string;
13983
+ };
13984
+ Update: {
13985
+ address?: string | null;
13986
+ avatar_url?: string | null;
13987
+ created_at?: string;
13988
+ display_name?: string | null;
13989
+ email?: string | null;
13990
+ id?: string;
13991
+ is_superadmin?: boolean;
13992
+ notification_preferences?: import("../integrations/supabase/types").Json;
13993
+ tenant_id?: string | null;
13994
+ updated_at?: string;
13995
+ };
13996
+ Relationships: [{
13997
+ foreignKeyName: "profiles_tenant_id_fkey";
13998
+ columns: ["tenant_id"];
13999
+ isOneToOne: false;
14000
+ referencedRelation: "tenants";
14001
+ referencedColumns: ["id"];
14002
+ }];
14003
+ };
14004
+ profiles_org: {
14005
+ Row: {
14006
+ created_at: string;
14007
+ id: string;
14008
+ is_default: boolean;
14009
+ name: string;
14010
+ tenant_id: string | null;
14011
+ updated_at: string;
14012
+ };
14013
+ Insert: {
14014
+ created_at?: string;
14015
+ id?: string;
14016
+ is_default?: boolean;
14017
+ name: string;
14018
+ tenant_id?: string | null;
14019
+ updated_at?: string;
14020
+ };
14021
+ Update: {
14022
+ created_at?: string;
14023
+ id?: string;
14024
+ is_default?: boolean;
14025
+ name?: string;
14026
+ tenant_id?: string | null;
14027
+ updated_at?: string;
14028
+ };
14029
+ Relationships: [{
14030
+ foreignKeyName: "profiles_org_tenant_id_fkey";
14031
+ columns: ["tenant_id"];
14032
+ isOneToOne: false;
14033
+ referencedRelation: "tenants";
14034
+ referencedColumns: ["id"];
14035
+ }];
14036
+ };
14037
+ projects: {
14038
+ Row: {
14039
+ contact_name: string | null;
13392
14040
  created_at: string;
13393
14041
  email: string | null;
13394
14042
  id: string;
@@ -14127,6 +14775,96 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
14127
14775
  referencedColumns: ["id"];
14128
14776
  }];
14129
14777
  };
14778
+ role_assignments: {
14779
+ Row: {
14780
+ created_at: string;
14781
+ id: string;
14782
+ role_id: string;
14783
+ user_id: string;
14784
+ };
14785
+ Insert: {
14786
+ created_at?: string;
14787
+ id?: string;
14788
+ role_id: string;
14789
+ user_id: string;
14790
+ };
14791
+ Update: {
14792
+ created_at?: string;
14793
+ id?: string;
14794
+ role_id?: string;
14795
+ user_id?: string;
14796
+ };
14797
+ Relationships: [{
14798
+ foreignKeyName: "role_assignments_role_id_fkey";
14799
+ columns: ["role_id"];
14800
+ isOneToOne: false;
14801
+ referencedRelation: "roles";
14802
+ referencedColumns: ["id"];
14803
+ }];
14804
+ };
14805
+ role_permissions: {
14806
+ Row: {
14807
+ can_edit: boolean;
14808
+ can_view: boolean;
14809
+ feature_id: string;
14810
+ id: string;
14811
+ module_id: string;
14812
+ role_id: string;
14813
+ updated_at: string;
14814
+ };
14815
+ Insert: {
14816
+ can_edit?: boolean;
14817
+ can_view?: boolean;
14818
+ feature_id?: string;
14819
+ id?: string;
14820
+ module_id: string;
14821
+ role_id: string;
14822
+ updated_at?: string;
14823
+ };
14824
+ Update: {
14825
+ can_edit?: boolean;
14826
+ can_view?: boolean;
14827
+ feature_id?: string;
14828
+ id?: string;
14829
+ module_id?: string;
14830
+ role_id?: string;
14831
+ updated_at?: string;
14832
+ };
14833
+ Relationships: [{
14834
+ foreignKeyName: "role_permissions_role_id_fkey";
14835
+ columns: ["role_id"];
14836
+ isOneToOne: false;
14837
+ referencedRelation: "roles";
14838
+ referencedColumns: ["id"];
14839
+ }];
14840
+ };
14841
+ roles: {
14842
+ Row: {
14843
+ created_at: string;
14844
+ id: string;
14845
+ is_protected: boolean;
14846
+ key: string;
14847
+ name: string;
14848
+ updated_at: string;
14849
+ };
14850
+ Insert: {
14851
+ created_at?: string;
14852
+ id?: string;
14853
+ is_protected?: boolean;
14854
+ key: string;
14855
+ name: string;
14856
+ updated_at?: string;
14857
+ };
14858
+ Update: {
14859
+ created_at?: string;
14860
+ id?: string;
14861
+ is_protected?: boolean;
14862
+ key?: string;
14863
+ name?: string;
14864
+ updated_at?: string;
14865
+ };
14866
+ Relationships: [];
14867
+ };
14130
14868
  rooms: {
14131
14869
  Row: {
14132
14870
  capacity: number;
@@ -14470,6 +15208,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
14470
15208
  type: string;
14471
15209
  updated_at: string;
14472
15210
  vereist_medewerker: boolean;
15211
+ werkplek: string | null;
14473
15212
  };
14474
15213
  Insert: {
14475
15214
  actief?: boolean;
@@ -14483,6 +15222,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
14483
15222
  type?: string;
14484
15223
  updated_at?: string;
14485
15224
  vereist_medewerker?: boolean;
15225
+ werkplek?: string | null;
14486
15226
  };
14487
15227
  Update: {
14488
15228
  actief?: boolean;
@@ -14496,9 +15236,46 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
14496
15236
  type?: string;
14497
15237
  updated_at?: string;
14498
15238
  vereist_medewerker?: boolean;
15239
+ werkplek?: string | null;
14499
15240
  };
14500
15241
  Relationships: [];
14501
15242
  };
15243
+ sick_periods: {
15244
+ Row: {
15245
+ created_at: string;
15246
+ employee_id: string;
15247
+ end_date: string | null;
15248
+ id: string;
15249
+ notes: string | null;
15250
+ start_date: string;
15251
+ updated_at: string;
15252
+ };
15253
+ Insert: {
15254
+ created_at?: string;
15255
+ employee_id: string;
15256
+ end_date?: string | null;
15257
+ id?: string;
15258
+ notes?: string | null;
15259
+ start_date: string;
15260
+ updated_at?: string;
15261
+ };
15262
+ Update: {
15263
+ created_at?: string;
15264
+ employee_id?: string;
15265
+ end_date?: string | null;
15266
+ id?: string;
15267
+ notes?: string | null;
15268
+ start_date?: string;
15269
+ updated_at?: string;
15270
+ };
15271
+ Relationships: [{
15272
+ foreignKeyName: "sick_periods_employee_id_fkey";
15273
+ columns: ["employee_id"];
15274
+ isOneToOne: false;
15275
+ referencedRelation: "profiles";
15276
+ referencedColumns: ["id"];
15277
+ }];
15278
+ };
14502
15279
  sidebar_config: {
14503
15280
  Row: {
14504
15281
  id: string;
@@ -14796,6 +15573,54 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
14796
15573
  };
14797
15574
  Relationships: [];
14798
15575
  };
15576
+ time_compensation_entries: {
15577
+ Row: {
15578
+ created_at: string;
15579
+ employee_id: string;
15580
+ entry_date: string;
15581
+ id: string;
15582
+ km: number;
15583
+ meal_allowance: number;
15584
+ notes: string | null;
15585
+ standby_evening: number;
15586
+ standby_weekend: number;
15587
+ tvt_change: number;
15588
+ updated_at: string;
15589
+ };
15590
+ Insert: {
15591
+ created_at?: string;
15592
+ employee_id: string;
15593
+ entry_date: string;
15594
+ id?: string;
15595
+ km?: number;
15596
+ meal_allowance?: number;
15597
+ notes?: string | null;
15598
+ standby_evening?: number;
15599
+ standby_weekend?: number;
15600
+ tvt_change?: number;
15601
+ updated_at?: string;
15602
+ };
15603
+ Update: {
15604
+ created_at?: string;
15605
+ employee_id?: string;
15606
+ entry_date?: string;
15607
+ id?: string;
15608
+ km?: number;
15609
+ meal_allowance?: number;
15610
+ notes?: string | null;
15611
+ standby_evening?: number;
15612
+ standby_weekend?: number;
15613
+ tvt_change?: number;
15614
+ updated_at?: string;
15615
+ };
15616
+ Relationships: [{
15617
+ foreignKeyName: "time_compensation_entries_employee_id_fkey";
15618
+ columns: ["employee_id"];
15619
+ isOneToOne: false;
15620
+ referencedRelation: "profiles";
15621
+ referencedColumns: ["id"];
15622
+ }];
15623
+ };
14799
15624
  time_entries: {
14800
15625
  Row: {
14801
15626
  created_at: string;
@@ -14830,65 +15655,170 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
14830
15655
  undertime?: number;
14831
15656
  updated_at?: string;
14832
15657
  };
15658
+ Relationships: [];
15659
+ };
15660
+ time_log_week_approvals: {
15661
+ Row: {
15662
+ approved_at: string | null;
15663
+ approved_by: string | null;
15664
+ created_at: string;
15665
+ employee_id: string;
15666
+ id: string;
15667
+ locked: boolean;
15668
+ notes: string | null;
15669
+ status: string;
15670
+ submitted_at: string | null;
15671
+ updated_at: string;
15672
+ week_start: string;
15673
+ };
15674
+ Insert: {
15675
+ approved_at?: string | null;
15676
+ approved_by?: string | null;
15677
+ created_at?: string;
15678
+ employee_id: string;
15679
+ id?: string;
15680
+ locked?: boolean;
15681
+ notes?: string | null;
15682
+ status?: string;
15683
+ submitted_at?: string | null;
15684
+ updated_at?: string;
15685
+ week_start: string;
15686
+ };
15687
+ Update: {
15688
+ approved_at?: string | null;
15689
+ approved_by?: string | null;
15690
+ created_at?: string;
15691
+ employee_id?: string;
15692
+ id?: string;
15693
+ locked?: boolean;
15694
+ notes?: string | null;
15695
+ status?: string;
15696
+ submitted_at?: string | null;
15697
+ updated_at?: string;
15698
+ week_start?: string;
15699
+ };
14833
15700
  Relationships: [{
14834
- foreignKeyName: "time_entries_employee_id_fkey";
15701
+ foreignKeyName: "time_log_week_approvals_employee_id_fkey";
14835
15702
  columns: ["employee_id"];
14836
15703
  isOneToOne: false;
14837
- referencedRelation: "monteurs";
15704
+ referencedRelation: "profiles";
14838
15705
  referencedColumns: ["id"];
14839
15706
  }];
14840
15707
  };
14841
15708
  time_logs: {
14842
15709
  Row: {
15710
+ auto_stop_reason: string | null;
15711
+ auto_stopped: boolean;
14843
15712
  created_at: string;
15713
+ current_latitude: number | null;
15714
+ current_longitude: number | null;
15715
+ current_position_updated_at: string | null;
14844
15716
  employee_id: string;
15717
+ end_latitude: number | null;
15718
+ end_longitude: number | null;
14845
15719
  end_time: string | null;
15720
+ eta_distance_km: number | null;
15721
+ eta_minutes: number | null;
15722
+ eta_updated_at: string | null;
15723
+ hour_category: string | null;
14846
15724
  id: string;
15725
+ last_reminder_at: string | null;
14847
15726
  notes: string | null;
14848
15727
  overtime_hours: number;
14849
15728
  overtime_type: string | null;
14850
15729
  regular_hours: number;
15730
+ reminder_count: number;
15731
+ requires_review: boolean;
15732
+ start_latitude: number | null;
15733
+ start_longitude: number | null;
14851
15734
  start_time: string;
14852
15735
  travel_cost: number | null;
14853
15736
  travel_distance_km: number | null;
15737
+ travel_duration_min: number | null;
15738
+ travel_time_minutes: number | null;
14854
15739
  type: string;
14855
15740
  updated_at: string;
15741
+ work_order_id: string | null;
14856
15742
  };
14857
15743
  Insert: {
15744
+ auto_stop_reason?: string | null;
15745
+ auto_stopped?: boolean;
14858
15746
  created_at?: string;
15747
+ current_latitude?: number | null;
15748
+ current_longitude?: number | null;
15749
+ current_position_updated_at?: string | null;
14859
15750
  employee_id: string;
15751
+ end_latitude?: number | null;
15752
+ end_longitude?: number | null;
14860
15753
  end_time?: string | null;
15754
+ eta_distance_km?: number | null;
15755
+ eta_minutes?: number | null;
15756
+ eta_updated_at?: string | null;
15757
+ hour_category?: string | null;
14861
15758
  id?: string;
15759
+ last_reminder_at?: string | null;
14862
15760
  notes?: string | null;
14863
15761
  overtime_hours?: number;
14864
15762
  overtime_type?: string | null;
14865
15763
  regular_hours?: number;
15764
+ reminder_count?: number;
15765
+ requires_review?: boolean;
15766
+ start_latitude?: number | null;
15767
+ start_longitude?: number | null;
14866
15768
  start_time?: string;
14867
15769
  travel_cost?: number | null;
14868
15770
  travel_distance_km?: number | null;
15771
+ travel_duration_min?: number | null;
15772
+ travel_time_minutes?: number | null;
14869
15773
  type: string;
14870
15774
  updated_at?: string;
15775
+ work_order_id?: string | null;
14871
15776
  };
14872
15777
  Update: {
15778
+ auto_stop_reason?: string | null;
15779
+ auto_stopped?: boolean;
14873
15780
  created_at?: string;
15781
+ current_latitude?: number | null;
15782
+ current_longitude?: number | null;
15783
+ current_position_updated_at?: string | null;
14874
15784
  employee_id?: string;
15785
+ end_latitude?: number | null;
15786
+ end_longitude?: number | null;
14875
15787
  end_time?: string | null;
15788
+ eta_distance_km?: number | null;
15789
+ eta_minutes?: number | null;
15790
+ eta_updated_at?: string | null;
15791
+ hour_category?: string | null;
14876
15792
  id?: string;
15793
+ last_reminder_at?: string | null;
14877
15794
  notes?: string | null;
14878
15795
  overtime_hours?: number;
14879
15796
  overtime_type?: string | null;
14880
15797
  regular_hours?: number;
15798
+ reminder_count?: number;
15799
+ requires_review?: boolean;
15800
+ start_latitude?: number | null;
15801
+ start_longitude?: number | null;
14881
15802
  start_time?: string;
14882
15803
  travel_cost?: number | null;
14883
15804
  travel_distance_km?: number | null;
15805
+ travel_duration_min?: number | null;
15806
+ travel_time_minutes?: number | null;
14884
15807
  type?: string;
14885
15808
  updated_at?: string;
15809
+ work_order_id?: string | null;
14886
15810
  };
14887
15811
  Relationships: [{
14888
15812
  foreignKeyName: "time_logs_employee_id_fkey";
14889
15813
  columns: ["employee_id"];
14890
15814
  isOneToOne: false;
14891
- referencedRelation: "monteurs";
15815
+ referencedRelation: "profiles";
15816
+ referencedColumns: ["id"];
15817
+ }, {
15818
+ foreignKeyName: "time_logs_work_order_id_fkey";
15819
+ columns: ["work_order_id"];
15820
+ isOneToOne: false;
15821
+ referencedRelation: "work_orders";
14892
15822
  referencedColumns: ["id"];
14893
15823
  }];
14894
15824
  };
@@ -14927,7 +15857,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
14927
15857
  foreignKeyName: "time_off_entries_employee_id_fkey";
14928
15858
  columns: ["employee_id"];
14929
15859
  isOneToOne: false;
14930
- referencedRelation: "monteurs";
15860
+ referencedRelation: "profiles";
14931
15861
  referencedColumns: ["id"];
14932
15862
  }];
14933
15863
  };
@@ -15237,6 +16167,39 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
15237
16167
  };
15238
16168
  Relationships: [];
15239
16169
  };
16170
+ twinfield_cron_locks: {
16171
+ Row: {
16172
+ created_at: string;
16173
+ heartbeat_at: string;
16174
+ job_name: string;
16175
+ last_error: string | null;
16176
+ last_finished_at: string | null;
16177
+ locked_at: string;
16178
+ run_id: string;
16179
+ updated_at: string;
16180
+ };
16181
+ Insert: {
16182
+ created_at?: string;
16183
+ heartbeat_at?: string;
16184
+ job_name: string;
16185
+ last_error?: string | null;
16186
+ last_finished_at?: string | null;
16187
+ locked_at?: string;
16188
+ run_id?: string;
16189
+ updated_at?: string;
16190
+ };
16191
+ Update: {
16192
+ created_at?: string;
16193
+ heartbeat_at?: string;
16194
+ job_name?: string;
16195
+ last_error?: string | null;
16196
+ last_finished_at?: string | null;
16197
+ locked_at?: string;
16198
+ run_id?: string;
16199
+ updated_at?: string;
16200
+ };
16201
+ Relationships: [];
16202
+ };
15240
16203
  twinfield_customers: {
15241
16204
  Row: {
15242
16205
  address: string | null;
@@ -15837,6 +16800,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
15837
16800
  twinfield_push_queue: {
15838
16801
  Row: {
15839
16802
  action: string;
16803
+ attempt_started_at: string | null;
15840
16804
  attempts: number;
15841
16805
  connection_id: string | null;
15842
16806
  created_at: string;
@@ -15853,6 +16817,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
15853
16817
  };
15854
16818
  Insert: {
15855
16819
  action?: string;
16820
+ attempt_started_at?: string | null;
15856
16821
  attempts?: number;
15857
16822
  connection_id?: string | null;
15858
16823
  created_at?: string;
@@ -15869,6 +16834,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
15869
16834
  };
15870
16835
  Update: {
15871
16836
  action?: string;
16837
+ attempt_started_at?: string | null;
15872
16838
  attempts?: number;
15873
16839
  connection_id?: string | null;
15874
16840
  created_at?: string;
@@ -16066,13 +17032,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
16066
17032
  workday_end?: string | null;
16067
17033
  workday_start?: string | null;
16068
17034
  };
16069
- Relationships: [{
16070
- foreignKeyName: "uren_cao_profiles_monteur_id_fkey";
16071
- columns: ["monteur_id"];
16072
- isOneToOne: true;
16073
- referencedRelation: "monteurs";
16074
- referencedColumns: ["id"];
16075
- }];
17035
+ Relationships: [];
16076
17036
  };
16077
17037
  uren_entries: {
16078
17038
  Row: {
@@ -16116,14 +17076,8 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
16116
17076
  travel_km?: number;
16117
17077
  updated_at?: string;
16118
17078
  werkbon_id?: string | null;
16119
- };
16120
- Relationships: [{
16121
- foreignKeyName: "uren_entries_monteur_id_fkey";
16122
- columns: ["monteur_id"];
16123
- isOneToOne: false;
16124
- referencedRelation: "monteurs";
16125
- referencedColumns: ["id"];
16126
- }, {
17079
+ };
17080
+ Relationships: [{
16127
17081
  foreignKeyName: "uren_entries_werkbon_id_fkey";
16128
17082
  columns: ["werkbon_id"];
16129
17083
  isOneToOne: false;
@@ -16591,17 +17545,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
16591
17545
  submitted_at?: string | null;
16592
17546
  updated_at?: string;
16593
17547
  };
16594
- Relationships: [{
16595
- foreignKeyName: "uren_weekstaten_monteur_id_fkey";
16596
- columns: ["monteur_id"];
16597
- isOneToOne: false;
16598
- referencedRelation: "monteurs";
16599
- referencedColumns: ["id"];
16600
- }];
17548
+ Relationships: [];
16601
17549
  };
16602
17550
  user_module_permissions: {
16603
17551
  Row: {
16604
17552
  created_at: string;
17553
+ feature_id: string;
16605
17554
  id: string;
16606
17555
  module_id: string;
16607
17556
  permission: string;
@@ -16610,6 +17559,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
16610
17559
  };
16611
17560
  Insert: {
16612
17561
  created_at?: string;
17562
+ feature_id?: string;
16613
17563
  id?: string;
16614
17564
  module_id: string;
16615
17565
  permission: string;
@@ -16618,6 +17568,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
16618
17568
  };
16619
17569
  Update: {
16620
17570
  created_at?: string;
17571
+ feature_id?: string;
16621
17572
  id?: string;
16622
17573
  module_id?: string;
16623
17574
  permission?: string;
@@ -16653,6 +17604,51 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
16653
17604
  referencedColumns: ["id"];
16654
17605
  }];
16655
17606
  };
17607
+ van_inventories: {
17608
+ Row: {
17609
+ barcode: string | null;
17610
+ created_at: string;
17611
+ id: string;
17612
+ monteur_id: string | null;
17613
+ price_per_unit: number;
17614
+ product_name: string;
17615
+ quantity_current: number;
17616
+ quantity_min: number;
17617
+ unit: string;
17618
+ updated_at: string;
17619
+ };
17620
+ Insert: {
17621
+ barcode?: string | null;
17622
+ created_at?: string;
17623
+ id?: string;
17624
+ monteur_id?: string | null;
17625
+ price_per_unit?: number;
17626
+ product_name: string;
17627
+ quantity_current?: number;
17628
+ quantity_min?: number;
17629
+ unit?: string;
17630
+ updated_at?: string;
17631
+ };
17632
+ Update: {
17633
+ barcode?: string | null;
17634
+ created_at?: string;
17635
+ id?: string;
17636
+ monteur_id?: string | null;
17637
+ price_per_unit?: number;
17638
+ product_name?: string;
17639
+ quantity_current?: number;
17640
+ quantity_min?: number;
17641
+ unit?: string;
17642
+ updated_at?: string;
17643
+ };
17644
+ Relationships: [{
17645
+ foreignKeyName: "van_inventories_monteur_id_fkey";
17646
+ columns: ["monteur_id"];
17647
+ isOneToOne: false;
17648
+ referencedRelation: "profiles";
17649
+ referencedColumns: ["id"];
17650
+ }];
17651
+ };
16656
17652
  voorraad_custom_fields: {
16657
17653
  Row: {
16658
17654
  created_at: string;
@@ -17603,7 +18599,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
17603
18599
  foreignKeyName: "work_order_monteurs_monteur_id_fkey";
17604
18600
  columns: ["monteur_id"];
17605
18601
  isOneToOne: false;
17606
- referencedRelation: "monteurs";
18602
+ referencedRelation: "profiles";
17607
18603
  referencedColumns: ["id"];
17608
18604
  }, {
17609
18605
  foreignKeyName: "work_order_monteurs_work_order_id_fkey";
@@ -17613,6 +18609,60 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
17613
18609
  referencedColumns: ["id"];
17614
18610
  }];
17615
18611
  };
18612
+ work_order_photos: {
18613
+ Row: {
18614
+ ai_caption: string | null;
18615
+ ai_categorized_at: string | null;
18616
+ ai_labels: import("../integrations/supabase/types").Json | null;
18617
+ caption: string | null;
18618
+ created_at: string;
18619
+ id: string;
18620
+ monteur_id: string | null;
18621
+ photo_type: string;
18622
+ storage_path: string;
18623
+ updated_at: string;
18624
+ work_order_id: string;
18625
+ };
18626
+ Insert: {
18627
+ ai_caption?: string | null;
18628
+ ai_categorized_at?: string | null;
18629
+ ai_labels?: import("../integrations/supabase/types").Json | null;
18630
+ caption?: string | null;
18631
+ created_at?: string;
18632
+ id?: string;
18633
+ monteur_id?: string | null;
18634
+ photo_type?: string;
18635
+ storage_path: string;
18636
+ updated_at?: string;
18637
+ work_order_id: string;
18638
+ };
18639
+ Update: {
18640
+ ai_caption?: string | null;
18641
+ ai_categorized_at?: string | null;
18642
+ ai_labels?: import("../integrations/supabase/types").Json | null;
18643
+ caption?: string | null;
18644
+ created_at?: string;
18645
+ id?: string;
18646
+ monteur_id?: string | null;
18647
+ photo_type?: string;
18648
+ storage_path?: string;
18649
+ updated_at?: string;
18650
+ work_order_id?: string;
18651
+ };
18652
+ Relationships: [{
18653
+ foreignKeyName: "work_order_photos_monteur_id_fkey";
18654
+ columns: ["monteur_id"];
18655
+ isOneToOne: false;
18656
+ referencedRelation: "profiles";
18657
+ referencedColumns: ["id"];
18658
+ }, {
18659
+ foreignKeyName: "work_order_photos_work_order_id_fkey";
18660
+ columns: ["work_order_id"];
18661
+ isOneToOne: false;
18662
+ referencedRelation: "work_orders";
18663
+ referencedColumns: ["id"];
18664
+ }];
18665
+ };
17616
18666
  work_orders: {
17617
18667
  Row: {
17618
18668
  assigned_to: string | null;
@@ -17644,7 +18694,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
17644
18694
  scheduled_end_time: string | null;
17645
18695
  scheduled_start_time: string | null;
17646
18696
  status: string;
17647
- tenant_id: string;
17648
18697
  total_hours_worked: number | null;
17649
18698
  total_price: number | null;
17650
18699
  travel_time_minutes: number | null;
@@ -17682,7 +18731,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
17682
18731
  scheduled_end_time?: string | null;
17683
18732
  scheduled_start_time?: string | null;
17684
18733
  status?: string;
17685
- tenant_id: string;
17686
18734
  total_hours_worked?: number | null;
17687
18735
  total_price?: number | null;
17688
18736
  travel_time_minutes?: number | null;
@@ -17720,7 +18768,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
17720
18768
  scheduled_end_time?: string | null;
17721
18769
  scheduled_start_time?: string | null;
17722
18770
  status?: string;
17723
- tenant_id?: string;
17724
18771
  total_hours_worked?: number | null;
17725
18772
  total_price?: number | null;
17726
18773
  travel_time_minutes?: number | null;
@@ -17734,12 +18781,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
17734
18781
  isOneToOne: false;
17735
18782
  referencedRelation: "work_orders";
17736
18783
  referencedColumns: ["id"];
17737
- }, {
17738
- foreignKeyName: "work_orders_tenant_id_fkey";
17739
- columns: ["tenant_id"];
17740
- isOneToOne: false;
17741
- referencedRelation: "tenants";
17742
- referencedColumns: ["id"];
17743
18784
  }];
17744
18785
  };
17745
18786
  };
@@ -18424,6 +19465,19 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
18424
19465
  };
18425
19466
  Returns: undefined;
18426
19467
  };
19468
+ approve_mailbox_order_proposal: {
19469
+ Args: {
19470
+ p_custom_fields: import("../integrations/supabase/types").Json;
19471
+ p_customer_id: string;
19472
+ p_delivery_date: string;
19473
+ p_field_values?: import("../integrations/supabase/types").Json;
19474
+ p_lines: import("../integrations/supabase/types").Json;
19475
+ p_notes: string;
19476
+ p_proposal_id: string;
19477
+ p_reviewed_by: string;
19478
+ };
19479
+ Returns: import("../integrations/supabase/types").Json;
19480
+ };
18427
19481
  assign_cart_numbers: {
18428
19482
  Args: {
18429
19483
  p_carts: import("../integrations/supabase/types").Json;
@@ -18475,6 +19529,10 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
18475
19529
  };
18476
19530
  Returns: number;
18477
19531
  };
19532
+ can_manage_hours: {
19533
+ Args: never;
19534
+ Returns: boolean;
19535
+ };
18478
19536
  check_offer_product_available_stock: {
18479
19537
  Args: {
18480
19538
  p_campaign_product_id: string;
@@ -18664,6 +19722,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
18664
19722
  };
18665
19723
  Returns: {
18666
19724
  action: string;
19725
+ attempt_started_at: string | null;
18667
19726
  attempts: number;
18668
19727
  connection_id: string | null;
18669
19728
  created_at: string;
@@ -18751,6 +19810,30 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
18751
19810
  agent_naam: string;
18752
19811
  }[];
18753
19812
  };
19813
+ consume_van_inventory: {
19814
+ Args: {
19815
+ p_inventory_id: string;
19816
+ p_quantity: number;
19817
+ };
19818
+ Returns: {
19819
+ barcode: string | null;
19820
+ created_at: string;
19821
+ id: string;
19822
+ monteur_id: string | null;
19823
+ price_per_unit: number;
19824
+ product_name: string;
19825
+ quantity_current: number;
19826
+ quantity_min: number;
19827
+ unit: string;
19828
+ updated_at: string;
19829
+ };
19830
+ SetofOptions: {
19831
+ from: "*";
19832
+ to: "van_inventories";
19833
+ isOneToOne: true;
19834
+ isSetofReturn: false;
19835
+ };
19836
+ };
18754
19837
  control_get_todays_carts: {
18755
19838
  Args: never;
18756
19839
  Returns: {
@@ -18824,6 +19907,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
18824
19907
  _user_id: string;
18825
19908
  };
18826
19909
  Returns: string;
19910
+ } | {
19911
+ Args: {
19912
+ _feature_id: string;
19913
+ _module_id: string;
19914
+ _user_id: string;
19915
+ };
19916
+ Returns: string;
18827
19917
  };
18828
19918
  email_auth_decrypt: {
18829
19919
  Args: {
@@ -18870,6 +19960,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
18870
19960
  };
18871
19961
  Returns: string;
18872
19962
  };
19963
+ employee_day_hours: {
19964
+ Args: {
19965
+ _day: string;
19966
+ _employee_id: string;
19967
+ };
19968
+ Returns: number;
19969
+ };
18873
19970
  enqueue_cart_replan_if_unlocked: {
18874
19971
  Args: {
18875
19972
  p_order_id: string;
@@ -19175,12 +20272,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19175
20272
  Args: never;
19176
20273
  Returns: string;
19177
20274
  };
19178
- get_work_order_tenant_id: {
19179
- Args: {
19180
- wo_id: string;
19181
- };
19182
- Returns: string;
19183
- };
19184
20275
  has_module_permission: {
19185
20276
  Args: {
19186
20277
  _min: string;
@@ -19214,6 +20305,13 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19214
20305
  };
19215
20306
  Returns: boolean;
19216
20307
  };
20308
+ is_time_log_week_locked: {
20309
+ Args: {
20310
+ p_employee_id: string;
20311
+ p_start_time: string;
20312
+ };
20313
+ Returns: boolean;
20314
+ };
19217
20315
  is_user_admin: {
19218
20316
  Args: never;
19219
20317
  Returns: boolean;
@@ -19222,19 +20320,43 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19222
20320
  Args: never;
19223
20321
  Returns: boolean;
19224
20322
  };
20323
+ itk_offerte_naar_werkbon: {
20324
+ Args: {
20325
+ _offerte_id: string;
20326
+ };
20327
+ Returns: string;
20328
+ };
20329
+ itk_offerte_restant_mandaat: {
20330
+ Args: {
20331
+ _exclude_offerte_id?: string;
20332
+ _werkbon_id: string;
20333
+ };
20334
+ Returns: number;
20335
+ };
19225
20336
  jwt_has_role: {
19226
20337
  Args: {
19227
20338
  _role: import("../integrations/supabase/types").Database["public"]["Enums"]["app_role"];
19228
20339
  };
19229
20340
  Returns: boolean;
19230
20341
  };
19231
- list_monteurs: {
20342
+ list_medewerkers: {
19232
20343
  Args: never;
19233
20344
  Returns: {
19234
20345
  avatar_url: string;
20346
+ color: string;
19235
20347
  display_name: string;
19236
20348
  email: string;
20349
+ hours_fri: number;
20350
+ hours_mon: number;
20351
+ hours_thu: number;
20352
+ hours_tue: number;
20353
+ hours_wed: number;
19237
20354
  id: string;
20355
+ is_active: boolean;
20356
+ leave_balance_hours: number;
20357
+ persnr: string;
20358
+ phone: string;
20359
+ roles: string[];
19238
20360
  }[];
19239
20361
  };
19240
20362
  list_my_planning_items: {
@@ -19560,17 +20682,6 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19560
20682
  Returns: string;
19561
20683
  };
19562
20684
  logistics_emit_event: {
19563
- Args: {
19564
- p_event_type: string;
19565
- p_idempotency_key?: string;
19566
- p_order_ref: string;
19567
- p_payload?: import("../integrations/supabase/types").Json;
19568
- p_shadow?: boolean;
19569
- p_source_module: string;
19570
- p_strategy_id?: string;
19571
- };
19572
- Returns: import("../integrations/supabase/types").Json;
19573
- } | {
19574
20685
  Args: {
19575
20686
  p_event_type: string;
19576
20687
  p_idempotency_key?: string;
@@ -19725,6 +20836,65 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19725
20836
  };
19726
20837
  Returns: number;
19727
20838
  };
20839
+ logistics_plan_claim: {
20840
+ Args: {
20841
+ p_limit?: number;
20842
+ };
20843
+ Returns: {
20844
+ attempts: number;
20845
+ id: string;
20846
+ order_id: string;
20847
+ }[];
20848
+ };
20849
+ logistics_plan_enqueue: {
20850
+ Args: {
20851
+ p_order_id: string;
20852
+ p_reason?: string;
20853
+ };
20854
+ Returns: undefined;
20855
+ };
20856
+ logistics_plan_ensure_event: {
20857
+ Args: {
20858
+ p_order_id: string;
20859
+ };
20860
+ Returns: boolean;
20861
+ };
20862
+ logistics_plan_finish: {
20863
+ Args: {
20864
+ p_error?: string;
20865
+ p_id: string;
20866
+ };
20867
+ Returns: undefined;
20868
+ };
20869
+ logistics_plan_impact_orders: {
20870
+ Args: {
20871
+ p_order_id: string;
20872
+ };
20873
+ Returns: {
20874
+ buffer_id: string;
20875
+ order_id: string;
20876
+ plan_date: string;
20877
+ }[];
20878
+ };
20879
+ logistics_plan_kick: {
20880
+ Args: never;
20881
+ Returns: undefined;
20882
+ };
20883
+ logistics_plan_prune: {
20884
+ Args: never;
20885
+ Returns: number;
20886
+ };
20887
+ logistics_plan_release_stale: {
20888
+ Args: never;
20889
+ Returns: number;
20890
+ };
20891
+ logistics_plan_setting: {
20892
+ Args: {
20893
+ p_default: number;
20894
+ p_key: string;
20895
+ };
20896
+ Returns: number;
20897
+ };
19728
20898
  logistics_queue_capacity_email: {
19729
20899
  Args: {
19730
20900
  p_alert_id: string;
@@ -19966,6 +21136,7 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
19966
21136
  my_module_permissions: {
19967
21137
  Args: never;
19968
21138
  Returns: {
21139
+ feature_id: string;
19969
21140
  module_id: string;
19970
21141
  permission: string;
19971
21142
  }[];
@@ -20355,6 +21526,37 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
20355
21526
  };
20356
21527
  Returns: undefined;
20357
21528
  };
21529
+ quote_create_from_source: {
21530
+ Args: {
21531
+ _payload?: import("../integrations/supabase/types").Json;
21532
+ _source_id: string;
21533
+ _source_type: string;
21534
+ };
21535
+ Returns: string;
21536
+ };
21537
+ quote_get_billable_lines: {
21538
+ Args: {
21539
+ _quotation_id: string;
21540
+ };
21541
+ Returns: import("../integrations/supabase/types").Json;
21542
+ };
21543
+ quote_get_summary: {
21544
+ Args: {
21545
+ _quotation_id: string;
21546
+ };
21547
+ Returns: import("../integrations/supabase/types").Json;
21548
+ };
21549
+ quote_list_packages: {
21550
+ Args: never;
21551
+ Returns: import("../integrations/supabase/types").Json;
21552
+ };
21553
+ quote_list_sources: {
21554
+ Args: {
21555
+ _limit?: number;
21556
+ _source_type?: string;
21557
+ };
21558
+ Returns: import("../integrations/supabase/types").Json;
21559
+ };
20358
21560
  recompute_all_reserved_stock: {
20359
21561
  Args: never;
20360
21562
  Returns: undefined;
@@ -20846,6 +22048,16 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
20846
22048
  };
20847
22049
  Returns: string[];
20848
22050
  };
22051
+ switch_time_log: {
22052
+ Args: {
22053
+ p_employee_id: string;
22054
+ p_start_lat?: number;
22055
+ p_start_lng?: number;
22056
+ p_type: string;
22057
+ p_work_order_id?: string;
22058
+ };
22059
+ Returns: import("../integrations/supabase/types").Json;
22060
+ };
20849
22061
  sync_all_layer_stocks: {
20850
22062
  Args: never;
20851
22063
  Returns: undefined;
@@ -20880,6 +22092,12 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
20880
22092
  };
20881
22093
  Returns: undefined;
20882
22094
  };
22095
+ sync_sick_time_off: {
22096
+ Args: {
22097
+ _period_id: string;
22098
+ };
22099
+ Returns: number;
22100
+ };
20883
22101
  trade_item_stock_duplicates: {
20884
22102
  Args: never;
20885
22103
  Returns: {
@@ -20896,6 +22114,24 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
20896
22114
  };
20897
22115
  Returns: boolean;
20898
22116
  };
22117
+ twinfield_cron_lock_acquire: {
22118
+ Args: {
22119
+ _job_name: string;
22120
+ _stale_seconds?: number;
22121
+ };
22122
+ Returns: boolean;
22123
+ };
22124
+ twinfield_cron_lock_release: {
22125
+ Args: {
22126
+ _error?: string;
22127
+ _job_name: string;
22128
+ };
22129
+ Returns: undefined;
22130
+ };
22131
+ twinfield_prune_push_queue: {
22132
+ Args: never;
22133
+ Returns: number;
22134
+ };
20899
22135
  twinfield_register_cron: {
20900
22136
  Args: {
20901
22137
  apikey?: string;
@@ -20935,11 +22171,31 @@ export declare const runTradeItemsSync: import("@tanstack/start-client-core").Op
20935
22171
  Args: never;
20936
22172
  Returns: string;
20937
22173
  };
22174
+ wo_create_from_source: {
22175
+ Args: {
22176
+ _payload?: import("../integrations/supabase/types").Json;
22177
+ _source_id: string;
22178
+ _source_type: string;
22179
+ };
22180
+ Returns: string;
22181
+ };
22182
+ wo_get_billable_lines: {
22183
+ Args: {
22184
+ _work_order_id: string;
22185
+ };
22186
+ Returns: import("../integrations/supabase/types").Json;
22187
+ };
22188
+ wo_get_summary: {
22189
+ Args: {
22190
+ _work_order_id: string;
22191
+ };
22192
+ Returns: import("../integrations/supabase/types").Json;
22193
+ };
20938
22194
  };
20939
22195
  Enums: {
20940
22196
  ai_import_status: "nieuw" | "verwerken" | "bevestigen" | "klaar" | "mislukt";
20941
22197
  app_role: "admin" | "planner" | "monteur" | "administratie" | "ai_admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
20942
- doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon";
22198
+ doc_layout_type: "pakbon" | "factuur" | "offerte" | "orderbevestiging" | "etiket" | "verzendlabel" | "productlabel" | "barcode_label" | "magazijnlijst" | "controlelijst" | "transportdocument" | "vrij" | "sticker" | "productiebon" | "veilingbon" | "afleverbrief" | "veilingbrief";
20943
22199
  doc_orientation: "portrait" | "landscape";
20944
22200
  exact_env: "staging" | "live";
20945
22201
  exact_push_status: "pending" | "sent" | "error";