@flowselections/floriday-verkoop-module 1.0.49 → 1.0.51

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 (61) hide show
  1. package/dist-lib/integrations/supabase/auth-middleware.d.ts +288 -1
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  3. package/dist-lib/integrations/supabase/client.d.ts +288 -1
  4. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.server.d.ts +288 -1
  6. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/types.d.ts +294 -1
  8. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  9. package/dist-lib/lib/cart-lock.functions.d.ts +288 -1
  10. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  11. package/dist-lib/lib/cart-planner.d.ts +15 -4
  12. package/dist-lib/lib/cart-planner.d.ts.map +1 -1
  13. package/dist-lib/lib/cart-planner.js +44 -12
  14. package/dist-lib/lib/cart-planning-settings.functions.d.ts +3600 -443
  15. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  16. package/dist-lib/lib/cart-replan.functions.d.ts +876 -3
  17. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  18. package/dist-lib/lib/cart-replan.functions.js +49 -3
  19. package/dist-lib/lib/create-order.functions.d.ts +5657 -773
  20. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/create-order.functions.js +48 -4
  22. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +864 -3
  23. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +288 -1
  25. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday-mirror.functions.d.ts +288 -1
  27. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday-mirror.functions.js +28 -1
  29. package/dist-lib/lib/floriday-public.functions.d.ts +2232 -223
  30. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/floriday-writes.functions.d.ts +1548 -113
  32. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/invoice-timing.functions.d.ts +1260 -112
  34. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/load-carriers.functions.d.ts +288 -1
  36. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/logistics-engine.functions.d.ts +1548 -113
  38. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/logistics-stock.functions.d.ts +576 -2
  40. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/order-addresses.functions.d.ts +288 -1
  42. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/order-buffers.functions.d.ts +864 -3
  44. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/order-carrier.functions.d.ts +576 -2
  46. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  47. package/dist-lib/lib/order-pickup.functions.d.ts +576 -2
  48. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/order-shipments.functions.d.ts +1260 -112
  50. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  51. package/dist-lib/lib/salesorders-list.functions.d.ts +288 -1
  52. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  53. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  54. package/dist-lib/lib/salesorders-list.server.js +61 -3
  55. package/dist-lib/lib/salesorders.functions.d.ts +1548 -113
  56. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  57. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +576 -2
  58. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
  59. package/dist-lib/lib/tradeitems.functions.d.ts +288 -1
  60. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  61. package/package.json +1 -1
@@ -10690,6 +10690,222 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
10690
10690
  };
10691
10691
  Relationships: [];
10692
10692
  };
10693
+ maps_addresses: {
10694
+ Row: {
10695
+ address_hash: string;
10696
+ created_at: string;
10697
+ error_reason: string | null;
10698
+ formatted_address: string | null;
10699
+ id: string;
10700
+ lat: number | null;
10701
+ lng: number | null;
10702
+ place_id: string | null;
10703
+ raw_address: string;
10704
+ resolved_at: string | null;
10705
+ status: string;
10706
+ updated_at: string;
10707
+ };
10708
+ Insert: {
10709
+ address_hash: string;
10710
+ created_at?: string;
10711
+ error_reason?: string | null;
10712
+ formatted_address?: string | null;
10713
+ id?: string;
10714
+ lat?: number | null;
10715
+ lng?: number | null;
10716
+ place_id?: string | null;
10717
+ raw_address: string;
10718
+ resolved_at?: string | null;
10719
+ status?: string;
10720
+ updated_at?: string;
10721
+ };
10722
+ Update: {
10723
+ address_hash?: string;
10724
+ created_at?: string;
10725
+ error_reason?: string | null;
10726
+ formatted_address?: string | null;
10727
+ id?: string;
10728
+ lat?: number | null;
10729
+ lng?: number | null;
10730
+ place_id?: string | null;
10731
+ raw_address?: string;
10732
+ resolved_at?: string | null;
10733
+ status?: string;
10734
+ updated_at?: string;
10735
+ };
10736
+ Relationships: [];
10737
+ };
10738
+ maps_request_queue: {
10739
+ Row: {
10740
+ attempts: number;
10741
+ created_at: string;
10742
+ destination_hash: string | null;
10743
+ id: string;
10744
+ kind: string;
10745
+ last_error: string | null;
10746
+ mode: string;
10747
+ origin_hash: string | null;
10748
+ processed_at: string | null;
10749
+ raw_destination: string | null;
10750
+ raw_origin: string | null;
10751
+ requested_by: string | null;
10752
+ status: string;
10753
+ updated_at: string;
10754
+ };
10755
+ Insert: {
10756
+ attempts?: number;
10757
+ created_at?: string;
10758
+ destination_hash?: string | null;
10759
+ id?: string;
10760
+ kind: string;
10761
+ last_error?: string | null;
10762
+ mode?: string;
10763
+ origin_hash?: string | null;
10764
+ processed_at?: string | null;
10765
+ raw_destination?: string | null;
10766
+ raw_origin?: string | null;
10767
+ requested_by?: string | null;
10768
+ status?: string;
10769
+ updated_at?: string;
10770
+ };
10771
+ Update: {
10772
+ attempts?: number;
10773
+ created_at?: string;
10774
+ destination_hash?: string | null;
10775
+ id?: string;
10776
+ kind?: string;
10777
+ last_error?: string | null;
10778
+ mode?: string;
10779
+ origin_hash?: string | null;
10780
+ processed_at?: string | null;
10781
+ raw_destination?: string | null;
10782
+ raw_origin?: string | null;
10783
+ requested_by?: string | null;
10784
+ status?: string;
10785
+ updated_at?: string;
10786
+ };
10787
+ Relationships: [];
10788
+ };
10789
+ maps_settings: {
10790
+ Row: {
10791
+ allow_estimate_fallback: boolean;
10792
+ cache_ttl_days: number;
10793
+ created_at: string;
10794
+ daily_call_limit: number;
10795
+ id: string;
10796
+ last_error: string | null;
10797
+ last_error_at: string | null;
10798
+ last_success_at: string | null;
10799
+ updated_at: string;
10800
+ };
10801
+ Insert: {
10802
+ allow_estimate_fallback?: boolean;
10803
+ cache_ttl_days?: number;
10804
+ created_at?: string;
10805
+ daily_call_limit?: number;
10806
+ id?: string;
10807
+ last_error?: string | null;
10808
+ last_error_at?: string | null;
10809
+ last_success_at?: string | null;
10810
+ updated_at?: string;
10811
+ };
10812
+ Update: {
10813
+ allow_estimate_fallback?: boolean;
10814
+ cache_ttl_days?: number;
10815
+ created_at?: string;
10816
+ daily_call_limit?: number;
10817
+ id?: string;
10818
+ last_error?: string | null;
10819
+ last_error_at?: string | null;
10820
+ last_success_at?: string | null;
10821
+ updated_at?: string;
10822
+ };
10823
+ Relationships: [];
10824
+ };
10825
+ maps_travel_times: {
10826
+ Row: {
10827
+ created_at: string;
10828
+ destination_id: string;
10829
+ distance_m: number | null;
10830
+ duration_sec: number;
10831
+ expires_at: string;
10832
+ id: string;
10833
+ mode: string;
10834
+ origin_id: string;
10835
+ source: string;
10836
+ updated_at: string;
10837
+ };
10838
+ Insert: {
10839
+ created_at?: string;
10840
+ destination_id: string;
10841
+ distance_m?: number | null;
10842
+ duration_sec: number;
10843
+ expires_at?: string;
10844
+ id?: string;
10845
+ mode?: string;
10846
+ origin_id: string;
10847
+ source?: string;
10848
+ updated_at?: string;
10849
+ };
10850
+ Update: {
10851
+ created_at?: string;
10852
+ destination_id?: string;
10853
+ distance_m?: number | null;
10854
+ duration_sec?: number;
10855
+ expires_at?: string;
10856
+ id?: string;
10857
+ mode?: string;
10858
+ origin_id?: string;
10859
+ source?: string;
10860
+ updated_at?: string;
10861
+ };
10862
+ Relationships: [{
10863
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
10864
+ columns: ["destination_id"];
10865
+ isOneToOne: false;
10866
+ referencedRelation: "maps_addresses";
10867
+ referencedColumns: ["id"];
10868
+ }, {
10869
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
10870
+ columns: ["origin_id"];
10871
+ isOneToOne: false;
10872
+ referencedRelation: "maps_addresses";
10873
+ referencedColumns: ["id"];
10874
+ }];
10875
+ };
10876
+ maps_usage_log: {
10877
+ Row: {
10878
+ cache_hits: number;
10879
+ call_type: string;
10880
+ created_at: string;
10881
+ day: string;
10882
+ detail: string | null;
10883
+ elements: number;
10884
+ id: string;
10885
+ outcome: string;
10886
+ };
10887
+ Insert: {
10888
+ cache_hits?: number;
10889
+ call_type: string;
10890
+ created_at?: string;
10891
+ day?: string;
10892
+ detail?: string | null;
10893
+ elements?: number;
10894
+ id?: string;
10895
+ outcome?: string;
10896
+ };
10897
+ Update: {
10898
+ cache_hits?: number;
10899
+ call_type?: string;
10900
+ created_at?: string;
10901
+ day?: string;
10902
+ detail?: string | null;
10903
+ elements?: number;
10904
+ id?: string;
10905
+ outcome?: string;
10906
+ };
10907
+ Relationships: [];
10908
+ };
10693
10909
  material_usage: {
10694
10910
  Row: {
10695
10911
  created_at: string;
@@ -13800,6 +14016,7 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
13800
14016
  created_at: string;
13801
14017
  driver: string;
13802
14018
  extern_printer_id: string | null;
14019
+ formaten_bijgewerkt_op: string | null;
13803
14020
  id: string;
13804
14021
  ip_adres: string | null;
13805
14022
  laatst_gezien: string | null;
@@ -13807,6 +14024,8 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
13807
14024
  merk: string;
13808
14025
  naam: string;
13809
14026
  omschrijving: string;
14027
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
14028
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
13810
14029
  online: boolean;
13811
14030
  papierformaat: string;
13812
14031
  poort: number | null;
@@ -13822,6 +14041,7 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
13822
14041
  created_at?: string;
13823
14042
  driver?: string;
13824
14043
  extern_printer_id?: string | null;
14044
+ formaten_bijgewerkt_op?: string | null;
13825
14045
  id?: string;
13826
14046
  ip_adres?: string | null;
13827
14047
  laatst_gezien?: string | null;
@@ -13829,6 +14049,8 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
13829
14049
  merk?: string;
13830
14050
  naam: string;
13831
14051
  omschrijving?: string;
14052
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14053
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
13832
14054
  online?: boolean;
13833
14055
  papierformaat?: string;
13834
14056
  poort?: number | null;
@@ -13844,6 +14066,7 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
13844
14066
  created_at?: string;
13845
14067
  driver?: string;
13846
14068
  extern_printer_id?: string | null;
14069
+ formaten_bijgewerkt_op?: string | null;
13847
14070
  id?: string;
13848
14071
  ip_adres?: string | null;
13849
14072
  laatst_gezien?: string | null;
@@ -13851,6 +14074,8 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
13851
14074
  merk?: string;
13852
14075
  naam?: string;
13853
14076
  omschrijving?: string;
14077
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14078
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
13854
14079
  online?: boolean;
13855
14080
  papierformaat?: string;
13856
14081
  poort?: number | null;
@@ -18619,6 +18844,7 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
18619
18844
  werkbon_package_items: {
18620
18845
  Row: {
18621
18846
  article_number: string | null;
18847
+ artikel_id: string | null;
18622
18848
  created_at: string;
18623
18849
  gtin: string | null;
18624
18850
  id: string;
@@ -18636,6 +18862,7 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
18636
18862
  };
18637
18863
  Insert: {
18638
18864
  article_number?: string | null;
18865
+ artikel_id?: string | null;
18639
18866
  created_at?: string;
18640
18867
  gtin?: string | null;
18641
18868
  id?: string;
@@ -18653,6 +18880,7 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
18653
18880
  };
18654
18881
  Update: {
18655
18882
  article_number?: string | null;
18883
+ artikel_id?: string | null;
18656
18884
  created_at?: string;
18657
18885
  gtin?: string | null;
18658
18886
  id?: string;
@@ -18669,6 +18897,12 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
18669
18897
  updated_at?: string;
18670
18898
  };
18671
18899
  Relationships: [{
18900
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
18901
+ columns: ["artikel_id"];
18902
+ isOneToOne: false;
18903
+ referencedRelation: "artikelen_cache";
18904
+ referencedColumns: ["id"];
18905
+ }, {
18672
18906
  foreignKeyName: "werkbon_package_items_package_id_fkey";
18673
18907
  columns: ["package_id"];
18674
18908
  isOneToOne: false;
@@ -19891,6 +20125,20 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
19891
20125
  referencedColumns: ["id"];
19892
20126
  }];
19893
20127
  };
20128
+ v_werkbon_totalen: {
20129
+ Row: {
20130
+ packages_cents: number | null;
20131
+ packages_minutes: number | null;
20132
+ werkbon_id: string | null;
20133
+ };
20134
+ Relationships: [{
20135
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
20136
+ columns: ["werkbon_id"];
20137
+ isOneToOne: false;
20138
+ referencedRelation: "werkbonnen";
20139
+ referencedColumns: ["id"];
20140
+ }];
20141
+ };
19894
20142
  };
19895
20143
  Functions: {
19896
20144
  _floriday_schedule_job: {
@@ -21827,6 +22075,25 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
21827
22075
  };
21828
22076
  Returns: string;
21829
22077
  };
22078
+ pakket_suggesties_voor_tekst: {
22079
+ Args: {
22080
+ _tekst: string;
22081
+ };
22082
+ Returns: {
22083
+ hit_type: string;
22084
+ package_id: string;
22085
+ priority: number;
22086
+ }[];
22087
+ };
22088
+ pakket_voor_reistijd: {
22089
+ Args: {
22090
+ _minuten: number;
22091
+ };
22092
+ Returns: {
22093
+ package_id: string;
22094
+ priority: number;
22095
+ }[];
22096
+ };
21830
22097
  pick_active_printers: {
21831
22098
  Args: never;
21832
22099
  Returns: {
@@ -22035,6 +22302,10 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
22035
22302
  omschrijving: string;
22036
22303
  }[];
22037
22304
  };
22305
+ pick_reference_data_status: {
22306
+ Args: never;
22307
+ Returns: import("../integrations/supabase/types").Json;
22308
+ };
22038
22309
  pick_release_expired_locks: {
22039
22310
  Args: never;
22040
22311
  Returns: number;
@@ -22099,6 +22370,10 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
22099
22370
  isSetofReturn: false;
22100
22371
  };
22101
22372
  };
22373
+ pick_seed_reference_data: {
22374
+ Args: never;
22375
+ Returns: import("../integrations/supabase/types").Json;
22376
+ };
22102
22377
  pick_set_station_print_plek: {
22103
22378
  Args: {
22104
22379
  _print_plek_id: string;
@@ -22877,6 +23152,18 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
22877
23152
  Args: never;
22878
23153
  Returns: string;
22879
23154
  };
23155
+ werkbon_totalen: {
23156
+ Args: {
23157
+ _werkbon_id: string;
23158
+ };
23159
+ Returns: {
23160
+ materials_cents: number;
23161
+ packages_cents: number;
23162
+ packages_minutes: number;
23163
+ total_cents: number;
23164
+ total_minutes: number;
23165
+ }[];
23166
+ };
22880
23167
  wo_create_from_source: {
22881
23168
  Args: {
22882
23169
  _payload?: import("../integrations/supabase/types").Json;
@@ -22915,7 +23202,7 @@ export declare const listOrderShipments: import("@tanstack/start-client-core").O
22915
23202
  };
22916
23203
  CompositeTypes: { [_ in never]: never; };
22917
23204
  }, {
22918
- PostgrestVersion: "14.5";
23205
+ PostgrestVersion: "14.17";
22919
23206
  }>;
22920
23207
  userId: string;
22921
23208
  claims: import("@supabase/auth-js").User;
@@ -33646,6 +33933,222 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
33646
33933
  };
33647
33934
  Relationships: [];
33648
33935
  };
33936
+ maps_addresses: {
33937
+ Row: {
33938
+ address_hash: string;
33939
+ created_at: string;
33940
+ error_reason: string | null;
33941
+ formatted_address: string | null;
33942
+ id: string;
33943
+ lat: number | null;
33944
+ lng: number | null;
33945
+ place_id: string | null;
33946
+ raw_address: string;
33947
+ resolved_at: string | null;
33948
+ status: string;
33949
+ updated_at: string;
33950
+ };
33951
+ Insert: {
33952
+ address_hash: string;
33953
+ created_at?: string;
33954
+ error_reason?: string | null;
33955
+ formatted_address?: string | null;
33956
+ id?: string;
33957
+ lat?: number | null;
33958
+ lng?: number | null;
33959
+ place_id?: string | null;
33960
+ raw_address: string;
33961
+ resolved_at?: string | null;
33962
+ status?: string;
33963
+ updated_at?: string;
33964
+ };
33965
+ Update: {
33966
+ address_hash?: string;
33967
+ created_at?: string;
33968
+ error_reason?: string | null;
33969
+ formatted_address?: string | null;
33970
+ id?: string;
33971
+ lat?: number | null;
33972
+ lng?: number | null;
33973
+ place_id?: string | null;
33974
+ raw_address?: string;
33975
+ resolved_at?: string | null;
33976
+ status?: string;
33977
+ updated_at?: string;
33978
+ };
33979
+ Relationships: [];
33980
+ };
33981
+ maps_request_queue: {
33982
+ Row: {
33983
+ attempts: number;
33984
+ created_at: string;
33985
+ destination_hash: string | null;
33986
+ id: string;
33987
+ kind: string;
33988
+ last_error: string | null;
33989
+ mode: string;
33990
+ origin_hash: string | null;
33991
+ processed_at: string | null;
33992
+ raw_destination: string | null;
33993
+ raw_origin: string | null;
33994
+ requested_by: string | null;
33995
+ status: string;
33996
+ updated_at: string;
33997
+ };
33998
+ Insert: {
33999
+ attempts?: number;
34000
+ created_at?: string;
34001
+ destination_hash?: string | null;
34002
+ id?: string;
34003
+ kind: string;
34004
+ last_error?: string | null;
34005
+ mode?: string;
34006
+ origin_hash?: string | null;
34007
+ processed_at?: string | null;
34008
+ raw_destination?: string | null;
34009
+ raw_origin?: string | null;
34010
+ requested_by?: string | null;
34011
+ status?: string;
34012
+ updated_at?: string;
34013
+ };
34014
+ Update: {
34015
+ attempts?: number;
34016
+ created_at?: string;
34017
+ destination_hash?: string | null;
34018
+ id?: string;
34019
+ kind?: string;
34020
+ last_error?: string | null;
34021
+ mode?: string;
34022
+ origin_hash?: string | null;
34023
+ processed_at?: string | null;
34024
+ raw_destination?: string | null;
34025
+ raw_origin?: string | null;
34026
+ requested_by?: string | null;
34027
+ status?: string;
34028
+ updated_at?: string;
34029
+ };
34030
+ Relationships: [];
34031
+ };
34032
+ maps_settings: {
34033
+ Row: {
34034
+ allow_estimate_fallback: boolean;
34035
+ cache_ttl_days: number;
34036
+ created_at: string;
34037
+ daily_call_limit: number;
34038
+ id: string;
34039
+ last_error: string | null;
34040
+ last_error_at: string | null;
34041
+ last_success_at: string | null;
34042
+ updated_at: string;
34043
+ };
34044
+ Insert: {
34045
+ allow_estimate_fallback?: boolean;
34046
+ cache_ttl_days?: number;
34047
+ created_at?: string;
34048
+ daily_call_limit?: number;
34049
+ id?: string;
34050
+ last_error?: string | null;
34051
+ last_error_at?: string | null;
34052
+ last_success_at?: string | null;
34053
+ updated_at?: string;
34054
+ };
34055
+ Update: {
34056
+ allow_estimate_fallback?: boolean;
34057
+ cache_ttl_days?: number;
34058
+ created_at?: string;
34059
+ daily_call_limit?: number;
34060
+ id?: string;
34061
+ last_error?: string | null;
34062
+ last_error_at?: string | null;
34063
+ last_success_at?: string | null;
34064
+ updated_at?: string;
34065
+ };
34066
+ Relationships: [];
34067
+ };
34068
+ maps_travel_times: {
34069
+ Row: {
34070
+ created_at: string;
34071
+ destination_id: string;
34072
+ distance_m: number | null;
34073
+ duration_sec: number;
34074
+ expires_at: string;
34075
+ id: string;
34076
+ mode: string;
34077
+ origin_id: string;
34078
+ source: string;
34079
+ updated_at: string;
34080
+ };
34081
+ Insert: {
34082
+ created_at?: string;
34083
+ destination_id: string;
34084
+ distance_m?: number | null;
34085
+ duration_sec: number;
34086
+ expires_at?: string;
34087
+ id?: string;
34088
+ mode?: string;
34089
+ origin_id: string;
34090
+ source?: string;
34091
+ updated_at?: string;
34092
+ };
34093
+ Update: {
34094
+ created_at?: string;
34095
+ destination_id?: string;
34096
+ distance_m?: number | null;
34097
+ duration_sec?: number;
34098
+ expires_at?: string;
34099
+ id?: string;
34100
+ mode?: string;
34101
+ origin_id?: string;
34102
+ source?: string;
34103
+ updated_at?: string;
34104
+ };
34105
+ Relationships: [{
34106
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
34107
+ columns: ["destination_id"];
34108
+ isOneToOne: false;
34109
+ referencedRelation: "maps_addresses";
34110
+ referencedColumns: ["id"];
34111
+ }, {
34112
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
34113
+ columns: ["origin_id"];
34114
+ isOneToOne: false;
34115
+ referencedRelation: "maps_addresses";
34116
+ referencedColumns: ["id"];
34117
+ }];
34118
+ };
34119
+ maps_usage_log: {
34120
+ Row: {
34121
+ cache_hits: number;
34122
+ call_type: string;
34123
+ created_at: string;
34124
+ day: string;
34125
+ detail: string | null;
34126
+ elements: number;
34127
+ id: string;
34128
+ outcome: string;
34129
+ };
34130
+ Insert: {
34131
+ cache_hits?: number;
34132
+ call_type: string;
34133
+ created_at?: string;
34134
+ day?: string;
34135
+ detail?: string | null;
34136
+ elements?: number;
34137
+ id?: string;
34138
+ outcome?: string;
34139
+ };
34140
+ Update: {
34141
+ cache_hits?: number;
34142
+ call_type?: string;
34143
+ created_at?: string;
34144
+ day?: string;
34145
+ detail?: string | null;
34146
+ elements?: number;
34147
+ id?: string;
34148
+ outcome?: string;
34149
+ };
34150
+ Relationships: [];
34151
+ };
33649
34152
  material_usage: {
33650
34153
  Row: {
33651
34154
  created_at: string;
@@ -36756,6 +37259,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36756
37259
  created_at: string;
36757
37260
  driver: string;
36758
37261
  extern_printer_id: string | null;
37262
+ formaten_bijgewerkt_op: string | null;
36759
37263
  id: string;
36760
37264
  ip_adres: string | null;
36761
37265
  laatst_gezien: string | null;
@@ -36763,6 +37267,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36763
37267
  merk: string;
36764
37268
  naam: string;
36765
37269
  omschrijving: string;
37270
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
37271
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
36766
37272
  online: boolean;
36767
37273
  papierformaat: string;
36768
37274
  poort: number | null;
@@ -36778,6 +37284,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36778
37284
  created_at?: string;
36779
37285
  driver?: string;
36780
37286
  extern_printer_id?: string | null;
37287
+ formaten_bijgewerkt_op?: string | null;
36781
37288
  id?: string;
36782
37289
  ip_adres?: string | null;
36783
37290
  laatst_gezien?: string | null;
@@ -36785,6 +37292,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36785
37292
  merk?: string;
36786
37293
  naam: string;
36787
37294
  omschrijving?: string;
37295
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
37296
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
36788
37297
  online?: boolean;
36789
37298
  papierformaat?: string;
36790
37299
  poort?: number | null;
@@ -36800,6 +37309,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36800
37309
  created_at?: string;
36801
37310
  driver?: string;
36802
37311
  extern_printer_id?: string | null;
37312
+ formaten_bijgewerkt_op?: string | null;
36803
37313
  id?: string;
36804
37314
  ip_adres?: string | null;
36805
37315
  laatst_gezien?: string | null;
@@ -36807,6 +37317,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36807
37317
  merk?: string;
36808
37318
  naam?: string;
36809
37319
  omschrijving?: string;
37320
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
37321
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
36810
37322
  online?: boolean;
36811
37323
  papierformaat?: string;
36812
37324
  poort?: number | null;
@@ -41575,6 +42087,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
41575
42087
  werkbon_package_items: {
41576
42088
  Row: {
41577
42089
  article_number: string | null;
42090
+ artikel_id: string | null;
41578
42091
  created_at: string;
41579
42092
  gtin: string | null;
41580
42093
  id: string;
@@ -41592,6 +42105,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
41592
42105
  };
41593
42106
  Insert: {
41594
42107
  article_number?: string | null;
42108
+ artikel_id?: string | null;
41595
42109
  created_at?: string;
41596
42110
  gtin?: string | null;
41597
42111
  id?: string;
@@ -41609,6 +42123,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
41609
42123
  };
41610
42124
  Update: {
41611
42125
  article_number?: string | null;
42126
+ artikel_id?: string | null;
41612
42127
  created_at?: string;
41613
42128
  gtin?: string | null;
41614
42129
  id?: string;
@@ -41625,6 +42140,12 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
41625
42140
  updated_at?: string;
41626
42141
  };
41627
42142
  Relationships: [{
42143
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
42144
+ columns: ["artikel_id"];
42145
+ isOneToOne: false;
42146
+ referencedRelation: "artikelen_cache";
42147
+ referencedColumns: ["id"];
42148
+ }, {
41628
42149
  foreignKeyName: "werkbon_package_items_package_id_fkey";
41629
42150
  columns: ["package_id"];
41630
42151
  isOneToOne: false;
@@ -42847,6 +43368,20 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
42847
43368
  referencedColumns: ["id"];
42848
43369
  }];
42849
43370
  };
43371
+ v_werkbon_totalen: {
43372
+ Row: {
43373
+ packages_cents: number | null;
43374
+ packages_minutes: number | null;
43375
+ werkbon_id: string | null;
43376
+ };
43377
+ Relationships: [{
43378
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
43379
+ columns: ["werkbon_id"];
43380
+ isOneToOne: false;
43381
+ referencedRelation: "werkbonnen";
43382
+ referencedColumns: ["id"];
43383
+ }];
43384
+ };
42850
43385
  };
42851
43386
  Functions: {
42852
43387
  _floriday_schedule_job: {
@@ -44783,6 +45318,25 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
44783
45318
  };
44784
45319
  Returns: string;
44785
45320
  };
45321
+ pakket_suggesties_voor_tekst: {
45322
+ Args: {
45323
+ _tekst: string;
45324
+ };
45325
+ Returns: {
45326
+ hit_type: string;
45327
+ package_id: string;
45328
+ priority: number;
45329
+ }[];
45330
+ };
45331
+ pakket_voor_reistijd: {
45332
+ Args: {
45333
+ _minuten: number;
45334
+ };
45335
+ Returns: {
45336
+ package_id: string;
45337
+ priority: number;
45338
+ }[];
45339
+ };
44786
45340
  pick_active_printers: {
44787
45341
  Args: never;
44788
45342
  Returns: {
@@ -44991,6 +45545,10 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
44991
45545
  omschrijving: string;
44992
45546
  }[];
44993
45547
  };
45548
+ pick_reference_data_status: {
45549
+ Args: never;
45550
+ Returns: import("../integrations/supabase/types").Json;
45551
+ };
44994
45552
  pick_release_expired_locks: {
44995
45553
  Args: never;
44996
45554
  Returns: number;
@@ -45055,6 +45613,10 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
45055
45613
  isSetofReturn: false;
45056
45614
  };
45057
45615
  };
45616
+ pick_seed_reference_data: {
45617
+ Args: never;
45618
+ Returns: import("../integrations/supabase/types").Json;
45619
+ };
45058
45620
  pick_set_station_print_plek: {
45059
45621
  Args: {
45060
45622
  _print_plek_id: string;
@@ -45833,6 +46395,18 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
45833
46395
  Args: never;
45834
46396
  Returns: string;
45835
46397
  };
46398
+ werkbon_totalen: {
46399
+ Args: {
46400
+ _werkbon_id: string;
46401
+ };
46402
+ Returns: {
46403
+ materials_cents: number;
46404
+ packages_cents: number;
46405
+ packages_minutes: number;
46406
+ total_cents: number;
46407
+ total_minutes: number;
46408
+ }[];
46409
+ };
45836
46410
  wo_create_from_source: {
45837
46411
  Args: {
45838
46412
  _payload?: import("../integrations/supabase/types").Json;
@@ -45871,7 +46445,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
45871
46445
  };
45872
46446
  CompositeTypes: { [_ in never]: never; };
45873
46447
  }, {
45874
- PostgrestVersion: "14.5";
46448
+ PostgrestVersion: "14.17";
45875
46449
  }>;
45876
46450
  userId: string;
45877
46451
  claims: import("@supabase/auth-js").User;
@@ -56583,6 +57157,222 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
56583
57157
  };
56584
57158
  Relationships: [];
56585
57159
  };
57160
+ maps_addresses: {
57161
+ Row: {
57162
+ address_hash: string;
57163
+ created_at: string;
57164
+ error_reason: string | null;
57165
+ formatted_address: string | null;
57166
+ id: string;
57167
+ lat: number | null;
57168
+ lng: number | null;
57169
+ place_id: string | null;
57170
+ raw_address: string;
57171
+ resolved_at: string | null;
57172
+ status: string;
57173
+ updated_at: string;
57174
+ };
57175
+ Insert: {
57176
+ address_hash: string;
57177
+ created_at?: string;
57178
+ error_reason?: string | null;
57179
+ formatted_address?: string | null;
57180
+ id?: string;
57181
+ lat?: number | null;
57182
+ lng?: number | null;
57183
+ place_id?: string | null;
57184
+ raw_address: string;
57185
+ resolved_at?: string | null;
57186
+ status?: string;
57187
+ updated_at?: string;
57188
+ };
57189
+ Update: {
57190
+ address_hash?: string;
57191
+ created_at?: string;
57192
+ error_reason?: string | null;
57193
+ formatted_address?: string | null;
57194
+ id?: string;
57195
+ lat?: number | null;
57196
+ lng?: number | null;
57197
+ place_id?: string | null;
57198
+ raw_address?: string;
57199
+ resolved_at?: string | null;
57200
+ status?: string;
57201
+ updated_at?: string;
57202
+ };
57203
+ Relationships: [];
57204
+ };
57205
+ maps_request_queue: {
57206
+ Row: {
57207
+ attempts: number;
57208
+ created_at: string;
57209
+ destination_hash: string | null;
57210
+ id: string;
57211
+ kind: string;
57212
+ last_error: string | null;
57213
+ mode: string;
57214
+ origin_hash: string | null;
57215
+ processed_at: string | null;
57216
+ raw_destination: string | null;
57217
+ raw_origin: string | null;
57218
+ requested_by: string | null;
57219
+ status: string;
57220
+ updated_at: string;
57221
+ };
57222
+ Insert: {
57223
+ attempts?: number;
57224
+ created_at?: string;
57225
+ destination_hash?: string | null;
57226
+ id?: string;
57227
+ kind: string;
57228
+ last_error?: string | null;
57229
+ mode?: string;
57230
+ origin_hash?: string | null;
57231
+ processed_at?: string | null;
57232
+ raw_destination?: string | null;
57233
+ raw_origin?: string | null;
57234
+ requested_by?: string | null;
57235
+ status?: string;
57236
+ updated_at?: string;
57237
+ };
57238
+ Update: {
57239
+ attempts?: number;
57240
+ created_at?: string;
57241
+ destination_hash?: string | null;
57242
+ id?: string;
57243
+ kind?: string;
57244
+ last_error?: string | null;
57245
+ mode?: string;
57246
+ origin_hash?: string | null;
57247
+ processed_at?: string | null;
57248
+ raw_destination?: string | null;
57249
+ raw_origin?: string | null;
57250
+ requested_by?: string | null;
57251
+ status?: string;
57252
+ updated_at?: string;
57253
+ };
57254
+ Relationships: [];
57255
+ };
57256
+ maps_settings: {
57257
+ Row: {
57258
+ allow_estimate_fallback: boolean;
57259
+ cache_ttl_days: number;
57260
+ created_at: string;
57261
+ daily_call_limit: number;
57262
+ id: string;
57263
+ last_error: string | null;
57264
+ last_error_at: string | null;
57265
+ last_success_at: string | null;
57266
+ updated_at: string;
57267
+ };
57268
+ Insert: {
57269
+ allow_estimate_fallback?: boolean;
57270
+ cache_ttl_days?: number;
57271
+ created_at?: string;
57272
+ daily_call_limit?: number;
57273
+ id?: string;
57274
+ last_error?: string | null;
57275
+ last_error_at?: string | null;
57276
+ last_success_at?: string | null;
57277
+ updated_at?: string;
57278
+ };
57279
+ Update: {
57280
+ allow_estimate_fallback?: boolean;
57281
+ cache_ttl_days?: number;
57282
+ created_at?: string;
57283
+ daily_call_limit?: number;
57284
+ id?: string;
57285
+ last_error?: string | null;
57286
+ last_error_at?: string | null;
57287
+ last_success_at?: string | null;
57288
+ updated_at?: string;
57289
+ };
57290
+ Relationships: [];
57291
+ };
57292
+ maps_travel_times: {
57293
+ Row: {
57294
+ created_at: string;
57295
+ destination_id: string;
57296
+ distance_m: number | null;
57297
+ duration_sec: number;
57298
+ expires_at: string;
57299
+ id: string;
57300
+ mode: string;
57301
+ origin_id: string;
57302
+ source: string;
57303
+ updated_at: string;
57304
+ };
57305
+ Insert: {
57306
+ created_at?: string;
57307
+ destination_id: string;
57308
+ distance_m?: number | null;
57309
+ duration_sec: number;
57310
+ expires_at?: string;
57311
+ id?: string;
57312
+ mode?: string;
57313
+ origin_id: string;
57314
+ source?: string;
57315
+ updated_at?: string;
57316
+ };
57317
+ Update: {
57318
+ created_at?: string;
57319
+ destination_id?: string;
57320
+ distance_m?: number | null;
57321
+ duration_sec?: number;
57322
+ expires_at?: string;
57323
+ id?: string;
57324
+ mode?: string;
57325
+ origin_id?: string;
57326
+ source?: string;
57327
+ updated_at?: string;
57328
+ };
57329
+ Relationships: [{
57330
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
57331
+ columns: ["destination_id"];
57332
+ isOneToOne: false;
57333
+ referencedRelation: "maps_addresses";
57334
+ referencedColumns: ["id"];
57335
+ }, {
57336
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
57337
+ columns: ["origin_id"];
57338
+ isOneToOne: false;
57339
+ referencedRelation: "maps_addresses";
57340
+ referencedColumns: ["id"];
57341
+ }];
57342
+ };
57343
+ maps_usage_log: {
57344
+ Row: {
57345
+ cache_hits: number;
57346
+ call_type: string;
57347
+ created_at: string;
57348
+ day: string;
57349
+ detail: string | null;
57350
+ elements: number;
57351
+ id: string;
57352
+ outcome: string;
57353
+ };
57354
+ Insert: {
57355
+ cache_hits?: number;
57356
+ call_type: string;
57357
+ created_at?: string;
57358
+ day?: string;
57359
+ detail?: string | null;
57360
+ elements?: number;
57361
+ id?: string;
57362
+ outcome?: string;
57363
+ };
57364
+ Update: {
57365
+ cache_hits?: number;
57366
+ call_type?: string;
57367
+ created_at?: string;
57368
+ day?: string;
57369
+ detail?: string | null;
57370
+ elements?: number;
57371
+ id?: string;
57372
+ outcome?: string;
57373
+ };
57374
+ Relationships: [];
57375
+ };
56586
57376
  material_usage: {
56587
57377
  Row: {
56588
57378
  created_at: string;
@@ -59693,6 +60483,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
59693
60483
  created_at: string;
59694
60484
  driver: string;
59695
60485
  extern_printer_id: string | null;
60486
+ formaten_bijgewerkt_op: string | null;
59696
60487
  id: string;
59697
60488
  ip_adres: string | null;
59698
60489
  laatst_gezien: string | null;
@@ -59700,6 +60491,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
59700
60491
  merk: string;
59701
60492
  naam: string;
59702
60493
  omschrijving: string;
60494
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
60495
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
59703
60496
  online: boolean;
59704
60497
  papierformaat: string;
59705
60498
  poort: number | null;
@@ -59715,6 +60508,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
59715
60508
  created_at?: string;
59716
60509
  driver?: string;
59717
60510
  extern_printer_id?: string | null;
60511
+ formaten_bijgewerkt_op?: string | null;
59718
60512
  id?: string;
59719
60513
  ip_adres?: string | null;
59720
60514
  laatst_gezien?: string | null;
@@ -59722,6 +60516,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
59722
60516
  merk?: string;
59723
60517
  naam: string;
59724
60518
  omschrijving?: string;
60519
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
60520
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
59725
60521
  online?: boolean;
59726
60522
  papierformaat?: string;
59727
60523
  poort?: number | null;
@@ -59737,6 +60533,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
59737
60533
  created_at?: string;
59738
60534
  driver?: string;
59739
60535
  extern_printer_id?: string | null;
60536
+ formaten_bijgewerkt_op?: string | null;
59740
60537
  id?: string;
59741
60538
  ip_adres?: string | null;
59742
60539
  laatst_gezien?: string | null;
@@ -59744,6 +60541,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
59744
60541
  merk?: string;
59745
60542
  naam?: string;
59746
60543
  omschrijving?: string;
60544
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
60545
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
59747
60546
  online?: boolean;
59748
60547
  papierformaat?: string;
59749
60548
  poort?: number | null;
@@ -64512,6 +65311,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
64512
65311
  werkbon_package_items: {
64513
65312
  Row: {
64514
65313
  article_number: string | null;
65314
+ artikel_id: string | null;
64515
65315
  created_at: string;
64516
65316
  gtin: string | null;
64517
65317
  id: string;
@@ -64529,6 +65329,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
64529
65329
  };
64530
65330
  Insert: {
64531
65331
  article_number?: string | null;
65332
+ artikel_id?: string | null;
64532
65333
  created_at?: string;
64533
65334
  gtin?: string | null;
64534
65335
  id?: string;
@@ -64546,6 +65347,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
64546
65347
  };
64547
65348
  Update: {
64548
65349
  article_number?: string | null;
65350
+ artikel_id?: string | null;
64549
65351
  created_at?: string;
64550
65352
  gtin?: string | null;
64551
65353
  id?: string;
@@ -64562,6 +65364,12 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
64562
65364
  updated_at?: string;
64563
65365
  };
64564
65366
  Relationships: [{
65367
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
65368
+ columns: ["artikel_id"];
65369
+ isOneToOne: false;
65370
+ referencedRelation: "artikelen_cache";
65371
+ referencedColumns: ["id"];
65372
+ }, {
64565
65373
  foreignKeyName: "werkbon_package_items_package_id_fkey";
64566
65374
  columns: ["package_id"];
64567
65375
  isOneToOne: false;
@@ -65784,6 +66592,20 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
65784
66592
  referencedColumns: ["id"];
65785
66593
  }];
65786
66594
  };
66595
+ v_werkbon_totalen: {
66596
+ Row: {
66597
+ packages_cents: number | null;
66598
+ packages_minutes: number | null;
66599
+ werkbon_id: string | null;
66600
+ };
66601
+ Relationships: [{
66602
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
66603
+ columns: ["werkbon_id"];
66604
+ isOneToOne: false;
66605
+ referencedRelation: "werkbonnen";
66606
+ referencedColumns: ["id"];
66607
+ }];
66608
+ };
65787
66609
  };
65788
66610
  Functions: {
65789
66611
  _floriday_schedule_job: {
@@ -67720,6 +68542,25 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
67720
68542
  };
67721
68543
  Returns: string;
67722
68544
  };
68545
+ pakket_suggesties_voor_tekst: {
68546
+ Args: {
68547
+ _tekst: string;
68548
+ };
68549
+ Returns: {
68550
+ hit_type: string;
68551
+ package_id: string;
68552
+ priority: number;
68553
+ }[];
68554
+ };
68555
+ pakket_voor_reistijd: {
68556
+ Args: {
68557
+ _minuten: number;
68558
+ };
68559
+ Returns: {
68560
+ package_id: string;
68561
+ priority: number;
68562
+ }[];
68563
+ };
67723
68564
  pick_active_printers: {
67724
68565
  Args: never;
67725
68566
  Returns: {
@@ -67881,117 +68722,125 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
67881
68722
  isSetofReturn: false;
67882
68723
  };
67883
68724
  };
67884
- pick_current_pick_day: {
68725
+ pick_current_pick_day: {
68726
+ Args: never;
68727
+ Returns: string;
68728
+ };
68729
+ pick_day_counts: {
68730
+ Args: {
68731
+ _pick_day?: string;
68732
+ _screen_id?: string;
68733
+ _station_id?: string;
68734
+ };
68735
+ Returns: import("../integrations/supabase/types").Json;
68736
+ };
68737
+ pick_document_layout_data: {
68738
+ Args: {
68739
+ _layout_id: string;
68740
+ };
68741
+ Returns: import("../integrations/supabase/types").Json;
68742
+ };
68743
+ pick_enqueue_print_job: {
68744
+ Args: {
68745
+ _printer_id?: string;
68746
+ _queue_item_id: string;
68747
+ _session_id?: string;
68748
+ };
68749
+ Returns: string;
68750
+ };
68751
+ pick_order_context: {
68752
+ Args: {
68753
+ _order_id?: string;
68754
+ _order_number?: string;
68755
+ };
68756
+ Returns: import("../integrations/supabase/types").Json;
68757
+ };
68758
+ pick_print_job_status: {
68759
+ Args: {
68760
+ _job_id: string;
68761
+ };
68762
+ Returns: import("../integrations/supabase/types").Json;
68763
+ };
68764
+ pick_print_plekken: {
68765
+ Args: never;
68766
+ Returns: {
68767
+ id: string;
68768
+ naam: string;
68769
+ omschrijving: string;
68770
+ }[];
68771
+ };
68772
+ pick_reference_data_status: {
68773
+ Args: never;
68774
+ Returns: import("../integrations/supabase/types").Json;
68775
+ };
68776
+ pick_release_expired_locks: {
68777
+ Args: never;
68778
+ Returns: number;
68779
+ };
68780
+ pick_release_lock: {
68781
+ Args: {
68782
+ _queue_item_id: string;
68783
+ };
68784
+ Returns: undefined;
68785
+ };
68786
+ pick_reprint_document: {
68787
+ Args: {
68788
+ _queue_item_id: string;
68789
+ _session_id: string;
68790
+ _throttle_seconds?: number;
68791
+ };
68792
+ Returns: string;
68793
+ };
68794
+ pick_reset_print: {
68795
+ Args: {
68796
+ _queue_item_id: string;
68797
+ _session_id: string;
68798
+ };
68799
+ Returns: {
68800
+ announced_at: string;
68801
+ assigned_user_id: string | null;
68802
+ barcode: string | null;
68803
+ cancelled_at: string | null;
68804
+ cart_count: number;
68805
+ completed_at: string | null;
68806
+ country_code: string | null;
68807
+ created_at: string;
68808
+ customer_name: string | null;
68809
+ delivery_address: string | null;
68810
+ document_number: string | null;
68811
+ document_type_id: string | null;
68812
+ due_at: string | null;
68813
+ id: string;
68814
+ is_urgent: boolean;
68815
+ line_count: number;
68816
+ order_number: string | null;
68817
+ order_type: string | null;
68818
+ payload: import("../integrations/supabase/types").Json;
68819
+ print_count: number;
68820
+ print_job_id: string | null;
68821
+ printed_at: string | null;
68822
+ printed_by: string | null;
68823
+ printer_id: string | null;
68824
+ priority: number;
68825
+ reference: string | null;
68826
+ route: string | null;
68827
+ screen_id: string | null;
68828
+ station_id: string | null;
68829
+ status_id: string | null;
68830
+ updated_at: string;
68831
+ warnings: import("../integrations/supabase/types").Json;
68832
+ };
68833
+ SetofOptions: {
68834
+ from: "*";
68835
+ to: "pick_queue";
68836
+ isOneToOne: true;
68837
+ isSetofReturn: false;
68838
+ };
68839
+ };
68840
+ pick_seed_reference_data: {
67885
68841
  Args: never;
67886
- Returns: string;
67887
- };
67888
- pick_day_counts: {
67889
- Args: {
67890
- _pick_day?: string;
67891
- _screen_id?: string;
67892
- _station_id?: string;
67893
- };
67894
68842
  Returns: import("../integrations/supabase/types").Json;
67895
68843
  };
67896
- pick_document_layout_data: {
67897
- Args: {
67898
- _layout_id: string;
67899
- };
67900
- Returns: import("../integrations/supabase/types").Json;
67901
- };
67902
- pick_enqueue_print_job: {
67903
- Args: {
67904
- _printer_id?: string;
67905
- _queue_item_id: string;
67906
- _session_id?: string;
67907
- };
67908
- Returns: string;
67909
- };
67910
- pick_order_context: {
67911
- Args: {
67912
- _order_id?: string;
67913
- _order_number?: string;
67914
- };
67915
- Returns: import("../integrations/supabase/types").Json;
67916
- };
67917
- pick_print_job_status: {
67918
- Args: {
67919
- _job_id: string;
67920
- };
67921
- Returns: import("../integrations/supabase/types").Json;
67922
- };
67923
- pick_print_plekken: {
67924
- Args: never;
67925
- Returns: {
67926
- id: string;
67927
- naam: string;
67928
- omschrijving: string;
67929
- }[];
67930
- };
67931
- pick_release_expired_locks: {
67932
- Args: never;
67933
- Returns: number;
67934
- };
67935
- pick_release_lock: {
67936
- Args: {
67937
- _queue_item_id: string;
67938
- };
67939
- Returns: undefined;
67940
- };
67941
- pick_reprint_document: {
67942
- Args: {
67943
- _queue_item_id: string;
67944
- _session_id: string;
67945
- _throttle_seconds?: number;
67946
- };
67947
- Returns: string;
67948
- };
67949
- pick_reset_print: {
67950
- Args: {
67951
- _queue_item_id: string;
67952
- _session_id: string;
67953
- };
67954
- Returns: {
67955
- announced_at: string;
67956
- assigned_user_id: string | null;
67957
- barcode: string | null;
67958
- cancelled_at: string | null;
67959
- cart_count: number;
67960
- completed_at: string | null;
67961
- country_code: string | null;
67962
- created_at: string;
67963
- customer_name: string | null;
67964
- delivery_address: string | null;
67965
- document_number: string | null;
67966
- document_type_id: string | null;
67967
- due_at: string | null;
67968
- id: string;
67969
- is_urgent: boolean;
67970
- line_count: number;
67971
- order_number: string | null;
67972
- order_type: string | null;
67973
- payload: import("../integrations/supabase/types").Json;
67974
- print_count: number;
67975
- print_job_id: string | null;
67976
- printed_at: string | null;
67977
- printed_by: string | null;
67978
- printer_id: string | null;
67979
- priority: number;
67980
- reference: string | null;
67981
- route: string | null;
67982
- screen_id: string | null;
67983
- station_id: string | null;
67984
- status_id: string | null;
67985
- updated_at: string;
67986
- warnings: import("../integrations/supabase/types").Json;
67987
- };
67988
- SetofOptions: {
67989
- from: "*";
67990
- to: "pick_queue";
67991
- isOneToOne: true;
67992
- isSetofReturn: false;
67993
- };
67994
- };
67995
68844
  pick_set_station_print_plek: {
67996
68845
  Args: {
67997
68846
  _print_plek_id: string;
@@ -68770,6 +69619,18 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
68770
69619
  Args: never;
68771
69620
  Returns: string;
68772
69621
  };
69622
+ werkbon_totalen: {
69623
+ Args: {
69624
+ _werkbon_id: string;
69625
+ };
69626
+ Returns: {
69627
+ materials_cents: number;
69628
+ packages_cents: number;
69629
+ packages_minutes: number;
69630
+ total_cents: number;
69631
+ total_minutes: number;
69632
+ }[];
69633
+ };
68773
69634
  wo_create_from_source: {
68774
69635
  Args: {
68775
69636
  _payload?: import("../integrations/supabase/types").Json;
@@ -68808,7 +69669,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
68808
69669
  };
68809
69670
  CompositeTypes: { [_ in never]: never; };
68810
69671
  }, {
68811
- PostgrestVersion: "14.5";
69672
+ PostgrestVersion: "14.17";
68812
69673
  }>;
68813
69674
  userId: string;
68814
69675
  claims: import("@supabase/auth-js").User;
@@ -79509,6 +80370,222 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
79509
80370
  };
79510
80371
  Relationships: [];
79511
80372
  };
80373
+ maps_addresses: {
80374
+ Row: {
80375
+ address_hash: string;
80376
+ created_at: string;
80377
+ error_reason: string | null;
80378
+ formatted_address: string | null;
80379
+ id: string;
80380
+ lat: number | null;
80381
+ lng: number | null;
80382
+ place_id: string | null;
80383
+ raw_address: string;
80384
+ resolved_at: string | null;
80385
+ status: string;
80386
+ updated_at: string;
80387
+ };
80388
+ Insert: {
80389
+ address_hash: string;
80390
+ created_at?: string;
80391
+ error_reason?: string | null;
80392
+ formatted_address?: string | null;
80393
+ id?: string;
80394
+ lat?: number | null;
80395
+ lng?: number | null;
80396
+ place_id?: string | null;
80397
+ raw_address: string;
80398
+ resolved_at?: string | null;
80399
+ status?: string;
80400
+ updated_at?: string;
80401
+ };
80402
+ Update: {
80403
+ address_hash?: string;
80404
+ created_at?: string;
80405
+ error_reason?: string | null;
80406
+ formatted_address?: string | null;
80407
+ id?: string;
80408
+ lat?: number | null;
80409
+ lng?: number | null;
80410
+ place_id?: string | null;
80411
+ raw_address?: string;
80412
+ resolved_at?: string | null;
80413
+ status?: string;
80414
+ updated_at?: string;
80415
+ };
80416
+ Relationships: [];
80417
+ };
80418
+ maps_request_queue: {
80419
+ Row: {
80420
+ attempts: number;
80421
+ created_at: string;
80422
+ destination_hash: string | null;
80423
+ id: string;
80424
+ kind: string;
80425
+ last_error: string | null;
80426
+ mode: string;
80427
+ origin_hash: string | null;
80428
+ processed_at: string | null;
80429
+ raw_destination: string | null;
80430
+ raw_origin: string | null;
80431
+ requested_by: string | null;
80432
+ status: string;
80433
+ updated_at: string;
80434
+ };
80435
+ Insert: {
80436
+ attempts?: number;
80437
+ created_at?: string;
80438
+ destination_hash?: string | null;
80439
+ id?: string;
80440
+ kind: string;
80441
+ last_error?: string | null;
80442
+ mode?: string;
80443
+ origin_hash?: string | null;
80444
+ processed_at?: string | null;
80445
+ raw_destination?: string | null;
80446
+ raw_origin?: string | null;
80447
+ requested_by?: string | null;
80448
+ status?: string;
80449
+ updated_at?: string;
80450
+ };
80451
+ Update: {
80452
+ attempts?: number;
80453
+ created_at?: string;
80454
+ destination_hash?: string | null;
80455
+ id?: string;
80456
+ kind?: string;
80457
+ last_error?: string | null;
80458
+ mode?: string;
80459
+ origin_hash?: string | null;
80460
+ processed_at?: string | null;
80461
+ raw_destination?: string | null;
80462
+ raw_origin?: string | null;
80463
+ requested_by?: string | null;
80464
+ status?: string;
80465
+ updated_at?: string;
80466
+ };
80467
+ Relationships: [];
80468
+ };
80469
+ maps_settings: {
80470
+ Row: {
80471
+ allow_estimate_fallback: boolean;
80472
+ cache_ttl_days: number;
80473
+ created_at: string;
80474
+ daily_call_limit: number;
80475
+ id: string;
80476
+ last_error: string | null;
80477
+ last_error_at: string | null;
80478
+ last_success_at: string | null;
80479
+ updated_at: string;
80480
+ };
80481
+ Insert: {
80482
+ allow_estimate_fallback?: boolean;
80483
+ cache_ttl_days?: number;
80484
+ created_at?: string;
80485
+ daily_call_limit?: number;
80486
+ id?: string;
80487
+ last_error?: string | null;
80488
+ last_error_at?: string | null;
80489
+ last_success_at?: string | null;
80490
+ updated_at?: string;
80491
+ };
80492
+ Update: {
80493
+ allow_estimate_fallback?: boolean;
80494
+ cache_ttl_days?: number;
80495
+ created_at?: string;
80496
+ daily_call_limit?: number;
80497
+ id?: string;
80498
+ last_error?: string | null;
80499
+ last_error_at?: string | null;
80500
+ last_success_at?: string | null;
80501
+ updated_at?: string;
80502
+ };
80503
+ Relationships: [];
80504
+ };
80505
+ maps_travel_times: {
80506
+ Row: {
80507
+ created_at: string;
80508
+ destination_id: string;
80509
+ distance_m: number | null;
80510
+ duration_sec: number;
80511
+ expires_at: string;
80512
+ id: string;
80513
+ mode: string;
80514
+ origin_id: string;
80515
+ source: string;
80516
+ updated_at: string;
80517
+ };
80518
+ Insert: {
80519
+ created_at?: string;
80520
+ destination_id: string;
80521
+ distance_m?: number | null;
80522
+ duration_sec: number;
80523
+ expires_at?: string;
80524
+ id?: string;
80525
+ mode?: string;
80526
+ origin_id: string;
80527
+ source?: string;
80528
+ updated_at?: string;
80529
+ };
80530
+ Update: {
80531
+ created_at?: string;
80532
+ destination_id?: string;
80533
+ distance_m?: number | null;
80534
+ duration_sec?: number;
80535
+ expires_at?: string;
80536
+ id?: string;
80537
+ mode?: string;
80538
+ origin_id?: string;
80539
+ source?: string;
80540
+ updated_at?: string;
80541
+ };
80542
+ Relationships: [{
80543
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
80544
+ columns: ["destination_id"];
80545
+ isOneToOne: false;
80546
+ referencedRelation: "maps_addresses";
80547
+ referencedColumns: ["id"];
80548
+ }, {
80549
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
80550
+ columns: ["origin_id"];
80551
+ isOneToOne: false;
80552
+ referencedRelation: "maps_addresses";
80553
+ referencedColumns: ["id"];
80554
+ }];
80555
+ };
80556
+ maps_usage_log: {
80557
+ Row: {
80558
+ cache_hits: number;
80559
+ call_type: string;
80560
+ created_at: string;
80561
+ day: string;
80562
+ detail: string | null;
80563
+ elements: number;
80564
+ id: string;
80565
+ outcome: string;
80566
+ };
80567
+ Insert: {
80568
+ cache_hits?: number;
80569
+ call_type: string;
80570
+ created_at?: string;
80571
+ day?: string;
80572
+ detail?: string | null;
80573
+ elements?: number;
80574
+ id?: string;
80575
+ outcome?: string;
80576
+ };
80577
+ Update: {
80578
+ cache_hits?: number;
80579
+ call_type?: string;
80580
+ created_at?: string;
80581
+ day?: string;
80582
+ detail?: string | null;
80583
+ elements?: number;
80584
+ id?: string;
80585
+ outcome?: string;
80586
+ };
80587
+ Relationships: [];
80588
+ };
79512
80589
  material_usage: {
79513
80590
  Row: {
79514
80591
  created_at: string;
@@ -82619,6 +83696,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
82619
83696
  created_at: string;
82620
83697
  driver: string;
82621
83698
  extern_printer_id: string | null;
83699
+ formaten_bijgewerkt_op: string | null;
82622
83700
  id: string;
82623
83701
  ip_adres: string | null;
82624
83702
  laatst_gezien: string | null;
@@ -82626,6 +83704,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
82626
83704
  merk: string;
82627
83705
  naam: string;
82628
83706
  omschrijving: string;
83707
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
83708
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
82629
83709
  online: boolean;
82630
83710
  papierformaat: string;
82631
83711
  poort: number | null;
@@ -82641,6 +83721,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
82641
83721
  created_at?: string;
82642
83722
  driver?: string;
82643
83723
  extern_printer_id?: string | null;
83724
+ formaten_bijgewerkt_op?: string | null;
82644
83725
  id?: string;
82645
83726
  ip_adres?: string | null;
82646
83727
  laatst_gezien?: string | null;
@@ -82648,6 +83729,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
82648
83729
  merk?: string;
82649
83730
  naam: string;
82650
83731
  omschrijving?: string;
83732
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
83733
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
82651
83734
  online?: boolean;
82652
83735
  papierformaat?: string;
82653
83736
  poort?: number | null;
@@ -82663,6 +83746,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
82663
83746
  created_at?: string;
82664
83747
  driver?: string;
82665
83748
  extern_printer_id?: string | null;
83749
+ formaten_bijgewerkt_op?: string | null;
82666
83750
  id?: string;
82667
83751
  ip_adres?: string | null;
82668
83752
  laatst_gezien?: string | null;
@@ -82670,6 +83754,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
82670
83754
  merk?: string;
82671
83755
  naam?: string;
82672
83756
  omschrijving?: string;
83757
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
83758
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
82673
83759
  online?: boolean;
82674
83760
  papierformaat?: string;
82675
83761
  poort?: number | null;
@@ -87438,6 +88524,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
87438
88524
  werkbon_package_items: {
87439
88525
  Row: {
87440
88526
  article_number: string | null;
88527
+ artikel_id: string | null;
87441
88528
  created_at: string;
87442
88529
  gtin: string | null;
87443
88530
  id: string;
@@ -87455,6 +88542,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
87455
88542
  };
87456
88543
  Insert: {
87457
88544
  article_number?: string | null;
88545
+ artikel_id?: string | null;
87458
88546
  created_at?: string;
87459
88547
  gtin?: string | null;
87460
88548
  id?: string;
@@ -87472,6 +88560,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
87472
88560
  };
87473
88561
  Update: {
87474
88562
  article_number?: string | null;
88563
+ artikel_id?: string | null;
87475
88564
  created_at?: string;
87476
88565
  gtin?: string | null;
87477
88566
  id?: string;
@@ -87488,6 +88577,12 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
87488
88577
  updated_at?: string;
87489
88578
  };
87490
88579
  Relationships: [{
88580
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
88581
+ columns: ["artikel_id"];
88582
+ isOneToOne: false;
88583
+ referencedRelation: "artikelen_cache";
88584
+ referencedColumns: ["id"];
88585
+ }, {
87491
88586
  foreignKeyName: "werkbon_package_items_package_id_fkey";
87492
88587
  columns: ["package_id"];
87493
88588
  isOneToOne: false;
@@ -88710,6 +89805,20 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
88710
89805
  referencedColumns: ["id"];
88711
89806
  }];
88712
89807
  };
89808
+ v_werkbon_totalen: {
89809
+ Row: {
89810
+ packages_cents: number | null;
89811
+ packages_minutes: number | null;
89812
+ werkbon_id: string | null;
89813
+ };
89814
+ Relationships: [{
89815
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
89816
+ columns: ["werkbon_id"];
89817
+ isOneToOne: false;
89818
+ referencedRelation: "werkbonnen";
89819
+ referencedColumns: ["id"];
89820
+ }];
89821
+ };
88713
89822
  };
88714
89823
  Functions: {
88715
89824
  _floriday_schedule_job: {
@@ -90646,6 +91755,25 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90646
91755
  };
90647
91756
  Returns: string;
90648
91757
  };
91758
+ pakket_suggesties_voor_tekst: {
91759
+ Args: {
91760
+ _tekst: string;
91761
+ };
91762
+ Returns: {
91763
+ hit_type: string;
91764
+ package_id: string;
91765
+ priority: number;
91766
+ }[];
91767
+ };
91768
+ pakket_voor_reistijd: {
91769
+ Args: {
91770
+ _minuten: number;
91771
+ };
91772
+ Returns: {
91773
+ package_id: string;
91774
+ priority: number;
91775
+ }[];
91776
+ };
90649
91777
  pick_active_printers: {
90650
91778
  Args: never;
90651
91779
  Returns: {
@@ -90854,6 +91982,10 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90854
91982
  omschrijving: string;
90855
91983
  }[];
90856
91984
  };
91985
+ pick_reference_data_status: {
91986
+ Args: never;
91987
+ Returns: import("../integrations/supabase/types").Json;
91988
+ };
90857
91989
  pick_release_expired_locks: {
90858
91990
  Args: never;
90859
91991
  Returns: number;
@@ -90918,6 +92050,10 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90918
92050
  isSetofReturn: false;
90919
92051
  };
90920
92052
  };
92053
+ pick_seed_reference_data: {
92054
+ Args: never;
92055
+ Returns: import("../integrations/supabase/types").Json;
92056
+ };
90921
92057
  pick_set_station_print_plek: {
90922
92058
  Args: {
90923
92059
  _print_plek_id: string;
@@ -91696,6 +92832,18 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
91696
92832
  Args: never;
91697
92833
  Returns: string;
91698
92834
  };
92835
+ werkbon_totalen: {
92836
+ Args: {
92837
+ _werkbon_id: string;
92838
+ };
92839
+ Returns: {
92840
+ materials_cents: number;
92841
+ packages_cents: number;
92842
+ packages_minutes: number;
92843
+ total_cents: number;
92844
+ total_minutes: number;
92845
+ }[];
92846
+ };
91699
92847
  wo_create_from_source: {
91700
92848
  Args: {
91701
92849
  _payload?: import("../integrations/supabase/types").Json;
@@ -91734,7 +92882,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
91734
92882
  };
91735
92883
  CompositeTypes: { [_ in never]: never; };
91736
92884
  }, {
91737
- PostgrestVersion: "14.5";
92885
+ PostgrestVersion: "14.17";
91738
92886
  }>;
91739
92887
  userId: string;
91740
92888
  claims: import("@supabase/auth-js").User;