@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
@@ -10691,6 +10691,222 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
10691
10691
  };
10692
10692
  Relationships: [];
10693
10693
  };
10694
+ maps_addresses: {
10695
+ Row: {
10696
+ address_hash: string;
10697
+ created_at: string;
10698
+ error_reason: string | null;
10699
+ formatted_address: string | null;
10700
+ id: string;
10701
+ lat: number | null;
10702
+ lng: number | null;
10703
+ place_id: string | null;
10704
+ raw_address: string;
10705
+ resolved_at: string | null;
10706
+ status: string;
10707
+ updated_at: string;
10708
+ };
10709
+ Insert: {
10710
+ address_hash: string;
10711
+ created_at?: string;
10712
+ error_reason?: string | null;
10713
+ formatted_address?: string | null;
10714
+ id?: string;
10715
+ lat?: number | null;
10716
+ lng?: number | null;
10717
+ place_id?: string | null;
10718
+ raw_address: string;
10719
+ resolved_at?: string | null;
10720
+ status?: string;
10721
+ updated_at?: string;
10722
+ };
10723
+ Update: {
10724
+ address_hash?: string;
10725
+ created_at?: string;
10726
+ error_reason?: string | null;
10727
+ formatted_address?: string | null;
10728
+ id?: string;
10729
+ lat?: number | null;
10730
+ lng?: number | null;
10731
+ place_id?: string | null;
10732
+ raw_address?: string;
10733
+ resolved_at?: string | null;
10734
+ status?: string;
10735
+ updated_at?: string;
10736
+ };
10737
+ Relationships: [];
10738
+ };
10739
+ maps_request_queue: {
10740
+ Row: {
10741
+ attempts: number;
10742
+ created_at: string;
10743
+ destination_hash: string | null;
10744
+ id: string;
10745
+ kind: string;
10746
+ last_error: string | null;
10747
+ mode: string;
10748
+ origin_hash: string | null;
10749
+ processed_at: string | null;
10750
+ raw_destination: string | null;
10751
+ raw_origin: string | null;
10752
+ requested_by: string | null;
10753
+ status: string;
10754
+ updated_at: string;
10755
+ };
10756
+ Insert: {
10757
+ attempts?: number;
10758
+ created_at?: string;
10759
+ destination_hash?: string | null;
10760
+ id?: string;
10761
+ kind: string;
10762
+ last_error?: string | null;
10763
+ mode?: string;
10764
+ origin_hash?: string | null;
10765
+ processed_at?: string | null;
10766
+ raw_destination?: string | null;
10767
+ raw_origin?: string | null;
10768
+ requested_by?: string | null;
10769
+ status?: string;
10770
+ updated_at?: string;
10771
+ };
10772
+ Update: {
10773
+ attempts?: number;
10774
+ created_at?: string;
10775
+ destination_hash?: string | null;
10776
+ id?: string;
10777
+ kind?: string;
10778
+ last_error?: string | null;
10779
+ mode?: string;
10780
+ origin_hash?: string | null;
10781
+ processed_at?: string | null;
10782
+ raw_destination?: string | null;
10783
+ raw_origin?: string | null;
10784
+ requested_by?: string | null;
10785
+ status?: string;
10786
+ updated_at?: string;
10787
+ };
10788
+ Relationships: [];
10789
+ };
10790
+ maps_settings: {
10791
+ Row: {
10792
+ allow_estimate_fallback: boolean;
10793
+ cache_ttl_days: number;
10794
+ created_at: string;
10795
+ daily_call_limit: number;
10796
+ id: string;
10797
+ last_error: string | null;
10798
+ last_error_at: string | null;
10799
+ last_success_at: string | null;
10800
+ updated_at: string;
10801
+ };
10802
+ Insert: {
10803
+ allow_estimate_fallback?: boolean;
10804
+ cache_ttl_days?: number;
10805
+ created_at?: string;
10806
+ daily_call_limit?: number;
10807
+ id?: string;
10808
+ last_error?: string | null;
10809
+ last_error_at?: string | null;
10810
+ last_success_at?: string | null;
10811
+ updated_at?: string;
10812
+ };
10813
+ Update: {
10814
+ allow_estimate_fallback?: boolean;
10815
+ cache_ttl_days?: number;
10816
+ created_at?: string;
10817
+ daily_call_limit?: number;
10818
+ id?: string;
10819
+ last_error?: string | null;
10820
+ last_error_at?: string | null;
10821
+ last_success_at?: string | null;
10822
+ updated_at?: string;
10823
+ };
10824
+ Relationships: [];
10825
+ };
10826
+ maps_travel_times: {
10827
+ Row: {
10828
+ created_at: string;
10829
+ destination_id: string;
10830
+ distance_m: number | null;
10831
+ duration_sec: number;
10832
+ expires_at: string;
10833
+ id: string;
10834
+ mode: string;
10835
+ origin_id: string;
10836
+ source: string;
10837
+ updated_at: string;
10838
+ };
10839
+ Insert: {
10840
+ created_at?: string;
10841
+ destination_id: string;
10842
+ distance_m?: number | null;
10843
+ duration_sec: number;
10844
+ expires_at?: string;
10845
+ id?: string;
10846
+ mode?: string;
10847
+ origin_id: string;
10848
+ source?: string;
10849
+ updated_at?: string;
10850
+ };
10851
+ Update: {
10852
+ created_at?: string;
10853
+ destination_id?: string;
10854
+ distance_m?: number | null;
10855
+ duration_sec?: number;
10856
+ expires_at?: string;
10857
+ id?: string;
10858
+ mode?: string;
10859
+ origin_id?: string;
10860
+ source?: string;
10861
+ updated_at?: string;
10862
+ };
10863
+ Relationships: [{
10864
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
10865
+ columns: ["destination_id"];
10866
+ isOneToOne: false;
10867
+ referencedRelation: "maps_addresses";
10868
+ referencedColumns: ["id"];
10869
+ }, {
10870
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
10871
+ columns: ["origin_id"];
10872
+ isOneToOne: false;
10873
+ referencedRelation: "maps_addresses";
10874
+ referencedColumns: ["id"];
10875
+ }];
10876
+ };
10877
+ maps_usage_log: {
10878
+ Row: {
10879
+ cache_hits: number;
10880
+ call_type: string;
10881
+ created_at: string;
10882
+ day: string;
10883
+ detail: string | null;
10884
+ elements: number;
10885
+ id: string;
10886
+ outcome: string;
10887
+ };
10888
+ Insert: {
10889
+ cache_hits?: number;
10890
+ call_type: string;
10891
+ created_at?: string;
10892
+ day?: string;
10893
+ detail?: string | null;
10894
+ elements?: number;
10895
+ id?: string;
10896
+ outcome?: string;
10897
+ };
10898
+ Update: {
10899
+ cache_hits?: number;
10900
+ call_type?: string;
10901
+ created_at?: string;
10902
+ day?: string;
10903
+ detail?: string | null;
10904
+ elements?: number;
10905
+ id?: string;
10906
+ outcome?: string;
10907
+ };
10908
+ Relationships: [];
10909
+ };
10694
10910
  material_usage: {
10695
10911
  Row: {
10696
10912
  created_at: string;
@@ -13801,6 +14017,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13801
14017
  created_at: string;
13802
14018
  driver: string;
13803
14019
  extern_printer_id: string | null;
14020
+ formaten_bijgewerkt_op: string | null;
13804
14021
  id: string;
13805
14022
  ip_adres: string | null;
13806
14023
  laatst_gezien: string | null;
@@ -13808,6 +14025,8 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13808
14025
  merk: string;
13809
14026
  naam: string;
13810
14027
  omschrijving: string;
14028
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
14029
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
13811
14030
  online: boolean;
13812
14031
  papierformaat: string;
13813
14032
  poort: number | null;
@@ -13823,6 +14042,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13823
14042
  created_at?: string;
13824
14043
  driver?: string;
13825
14044
  extern_printer_id?: string | null;
14045
+ formaten_bijgewerkt_op?: string | null;
13826
14046
  id?: string;
13827
14047
  ip_adres?: string | null;
13828
14048
  laatst_gezien?: string | null;
@@ -13830,6 +14050,8 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13830
14050
  merk?: string;
13831
14051
  naam: string;
13832
14052
  omschrijving?: string;
14053
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14054
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
13833
14055
  online?: boolean;
13834
14056
  papierformaat?: string;
13835
14057
  poort?: number | null;
@@ -13845,6 +14067,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13845
14067
  created_at?: string;
13846
14068
  driver?: string;
13847
14069
  extern_printer_id?: string | null;
14070
+ formaten_bijgewerkt_op?: string | null;
13848
14071
  id?: string;
13849
14072
  ip_adres?: string | null;
13850
14073
  laatst_gezien?: string | null;
@@ -13852,6 +14075,8 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13852
14075
  merk?: string;
13853
14076
  naam?: string;
13854
14077
  omschrijving?: string;
14078
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14079
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
13855
14080
  online?: boolean;
13856
14081
  papierformaat?: string;
13857
14082
  poort?: number | null;
@@ -18620,6 +18845,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
18620
18845
  werkbon_package_items: {
18621
18846
  Row: {
18622
18847
  article_number: string | null;
18848
+ artikel_id: string | null;
18623
18849
  created_at: string;
18624
18850
  gtin: string | null;
18625
18851
  id: string;
@@ -18637,6 +18863,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
18637
18863
  };
18638
18864
  Insert: {
18639
18865
  article_number?: string | null;
18866
+ artikel_id?: string | null;
18640
18867
  created_at?: string;
18641
18868
  gtin?: string | null;
18642
18869
  id?: string;
@@ -18654,6 +18881,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
18654
18881
  };
18655
18882
  Update: {
18656
18883
  article_number?: string | null;
18884
+ artikel_id?: string | null;
18657
18885
  created_at?: string;
18658
18886
  gtin?: string | null;
18659
18887
  id?: string;
@@ -18670,6 +18898,12 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
18670
18898
  updated_at?: string;
18671
18899
  };
18672
18900
  Relationships: [{
18901
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
18902
+ columns: ["artikel_id"];
18903
+ isOneToOne: false;
18904
+ referencedRelation: "artikelen_cache";
18905
+ referencedColumns: ["id"];
18906
+ }, {
18673
18907
  foreignKeyName: "werkbon_package_items_package_id_fkey";
18674
18908
  columns: ["package_id"];
18675
18909
  isOneToOne: false;
@@ -19892,6 +20126,20 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
19892
20126
  referencedColumns: ["id"];
19893
20127
  }];
19894
20128
  };
20129
+ v_werkbon_totalen: {
20130
+ Row: {
20131
+ packages_cents: number | null;
20132
+ packages_minutes: number | null;
20133
+ werkbon_id: string | null;
20134
+ };
20135
+ Relationships: [{
20136
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
20137
+ columns: ["werkbon_id"];
20138
+ isOneToOne: false;
20139
+ referencedRelation: "werkbonnen";
20140
+ referencedColumns: ["id"];
20141
+ }];
20142
+ };
19895
20143
  };
19896
20144
  Functions: {
19897
20145
  _floriday_schedule_job: {
@@ -21828,6 +22076,25 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21828
22076
  };
21829
22077
  Returns: string;
21830
22078
  };
22079
+ pakket_suggesties_voor_tekst: {
22080
+ Args: {
22081
+ _tekst: string;
22082
+ };
22083
+ Returns: {
22084
+ hit_type: string;
22085
+ package_id: string;
22086
+ priority: number;
22087
+ }[];
22088
+ };
22089
+ pakket_voor_reistijd: {
22090
+ Args: {
22091
+ _minuten: number;
22092
+ };
22093
+ Returns: {
22094
+ package_id: string;
22095
+ priority: number;
22096
+ }[];
22097
+ };
21831
22098
  pick_active_printers: {
21832
22099
  Args: never;
21833
22100
  Returns: {
@@ -22036,6 +22303,10 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22036
22303
  omschrijving: string;
22037
22304
  }[];
22038
22305
  };
22306
+ pick_reference_data_status: {
22307
+ Args: never;
22308
+ Returns: import("../integrations/supabase/types").Json;
22309
+ };
22039
22310
  pick_release_expired_locks: {
22040
22311
  Args: never;
22041
22312
  Returns: number;
@@ -22100,6 +22371,10 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22100
22371
  isSetofReturn: false;
22101
22372
  };
22102
22373
  };
22374
+ pick_seed_reference_data: {
22375
+ Args: never;
22376
+ Returns: import("../integrations/supabase/types").Json;
22377
+ };
22103
22378
  pick_set_station_print_plek: {
22104
22379
  Args: {
22105
22380
  _print_plek_id: string;
@@ -22878,6 +23153,18 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22878
23153
  Args: never;
22879
23154
  Returns: string;
22880
23155
  };
23156
+ werkbon_totalen: {
23157
+ Args: {
23158
+ _werkbon_id: string;
23159
+ };
23160
+ Returns: {
23161
+ materials_cents: number;
23162
+ packages_cents: number;
23163
+ packages_minutes: number;
23164
+ total_cents: number;
23165
+ total_minutes: number;
23166
+ }[];
23167
+ };
22881
23168
  wo_create_from_source: {
22882
23169
  Args: {
22883
23170
  _payload?: import("../integrations/supabase/types").Json;
@@ -22916,7 +23203,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22916
23203
  };
22917
23204
  CompositeTypes: { [_ in never]: never; };
22918
23205
  }, {
22919
- PostgrestVersion: "14.5";
23206
+ PostgrestVersion: "14.17";
22920
23207
  }>;
22921
23208
  userId: string;
22922
23209
  claims: import("@supabase/auth-js").User;
@@ -33613,6 +33900,222 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
33613
33900
  };
33614
33901
  Relationships: [];
33615
33902
  };
33903
+ maps_addresses: {
33904
+ Row: {
33905
+ address_hash: string;
33906
+ created_at: string;
33907
+ error_reason: string | null;
33908
+ formatted_address: string | null;
33909
+ id: string;
33910
+ lat: number | null;
33911
+ lng: number | null;
33912
+ place_id: string | null;
33913
+ raw_address: string;
33914
+ resolved_at: string | null;
33915
+ status: string;
33916
+ updated_at: string;
33917
+ };
33918
+ Insert: {
33919
+ address_hash: string;
33920
+ created_at?: string;
33921
+ error_reason?: string | null;
33922
+ formatted_address?: string | null;
33923
+ id?: string;
33924
+ lat?: number | null;
33925
+ lng?: number | null;
33926
+ place_id?: string | null;
33927
+ raw_address: string;
33928
+ resolved_at?: string | null;
33929
+ status?: string;
33930
+ updated_at?: string;
33931
+ };
33932
+ Update: {
33933
+ address_hash?: string;
33934
+ created_at?: string;
33935
+ error_reason?: string | null;
33936
+ formatted_address?: string | null;
33937
+ id?: string;
33938
+ lat?: number | null;
33939
+ lng?: number | null;
33940
+ place_id?: string | null;
33941
+ raw_address?: string;
33942
+ resolved_at?: string | null;
33943
+ status?: string;
33944
+ updated_at?: string;
33945
+ };
33946
+ Relationships: [];
33947
+ };
33948
+ maps_request_queue: {
33949
+ Row: {
33950
+ attempts: number;
33951
+ created_at: string;
33952
+ destination_hash: string | null;
33953
+ id: string;
33954
+ kind: string;
33955
+ last_error: string | null;
33956
+ mode: string;
33957
+ origin_hash: string | null;
33958
+ processed_at: string | null;
33959
+ raw_destination: string | null;
33960
+ raw_origin: string | null;
33961
+ requested_by: string | null;
33962
+ status: string;
33963
+ updated_at: string;
33964
+ };
33965
+ Insert: {
33966
+ attempts?: number;
33967
+ created_at?: string;
33968
+ destination_hash?: string | null;
33969
+ id?: string;
33970
+ kind: string;
33971
+ last_error?: string | null;
33972
+ mode?: string;
33973
+ origin_hash?: string | null;
33974
+ processed_at?: string | null;
33975
+ raw_destination?: string | null;
33976
+ raw_origin?: string | null;
33977
+ requested_by?: string | null;
33978
+ status?: string;
33979
+ updated_at?: string;
33980
+ };
33981
+ Update: {
33982
+ attempts?: number;
33983
+ created_at?: string;
33984
+ destination_hash?: string | null;
33985
+ id?: string;
33986
+ kind?: string;
33987
+ last_error?: string | null;
33988
+ mode?: string;
33989
+ origin_hash?: string | null;
33990
+ processed_at?: string | null;
33991
+ raw_destination?: string | null;
33992
+ raw_origin?: string | null;
33993
+ requested_by?: string | null;
33994
+ status?: string;
33995
+ updated_at?: string;
33996
+ };
33997
+ Relationships: [];
33998
+ };
33999
+ maps_settings: {
34000
+ Row: {
34001
+ allow_estimate_fallback: boolean;
34002
+ cache_ttl_days: number;
34003
+ created_at: string;
34004
+ daily_call_limit: number;
34005
+ id: string;
34006
+ last_error: string | null;
34007
+ last_error_at: string | null;
34008
+ last_success_at: string | null;
34009
+ updated_at: string;
34010
+ };
34011
+ Insert: {
34012
+ allow_estimate_fallback?: boolean;
34013
+ cache_ttl_days?: number;
34014
+ created_at?: string;
34015
+ daily_call_limit?: number;
34016
+ id?: string;
34017
+ last_error?: string | null;
34018
+ last_error_at?: string | null;
34019
+ last_success_at?: string | null;
34020
+ updated_at?: string;
34021
+ };
34022
+ Update: {
34023
+ allow_estimate_fallback?: boolean;
34024
+ cache_ttl_days?: number;
34025
+ created_at?: string;
34026
+ daily_call_limit?: number;
34027
+ id?: string;
34028
+ last_error?: string | null;
34029
+ last_error_at?: string | null;
34030
+ last_success_at?: string | null;
34031
+ updated_at?: string;
34032
+ };
34033
+ Relationships: [];
34034
+ };
34035
+ maps_travel_times: {
34036
+ Row: {
34037
+ created_at: string;
34038
+ destination_id: string;
34039
+ distance_m: number | null;
34040
+ duration_sec: number;
34041
+ expires_at: string;
34042
+ id: string;
34043
+ mode: string;
34044
+ origin_id: string;
34045
+ source: string;
34046
+ updated_at: string;
34047
+ };
34048
+ Insert: {
34049
+ created_at?: string;
34050
+ destination_id: string;
34051
+ distance_m?: number | null;
34052
+ duration_sec: number;
34053
+ expires_at?: string;
34054
+ id?: string;
34055
+ mode?: string;
34056
+ origin_id: string;
34057
+ source?: string;
34058
+ updated_at?: string;
34059
+ };
34060
+ Update: {
34061
+ created_at?: string;
34062
+ destination_id?: string;
34063
+ distance_m?: number | null;
34064
+ duration_sec?: number;
34065
+ expires_at?: string;
34066
+ id?: string;
34067
+ mode?: string;
34068
+ origin_id?: string;
34069
+ source?: string;
34070
+ updated_at?: string;
34071
+ };
34072
+ Relationships: [{
34073
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
34074
+ columns: ["destination_id"];
34075
+ isOneToOne: false;
34076
+ referencedRelation: "maps_addresses";
34077
+ referencedColumns: ["id"];
34078
+ }, {
34079
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
34080
+ columns: ["origin_id"];
34081
+ isOneToOne: false;
34082
+ referencedRelation: "maps_addresses";
34083
+ referencedColumns: ["id"];
34084
+ }];
34085
+ };
34086
+ maps_usage_log: {
34087
+ Row: {
34088
+ cache_hits: number;
34089
+ call_type: string;
34090
+ created_at: string;
34091
+ day: string;
34092
+ detail: string | null;
34093
+ elements: number;
34094
+ id: string;
34095
+ outcome: string;
34096
+ };
34097
+ Insert: {
34098
+ cache_hits?: number;
34099
+ call_type: string;
34100
+ created_at?: string;
34101
+ day?: string;
34102
+ detail?: string | null;
34103
+ elements?: number;
34104
+ id?: string;
34105
+ outcome?: string;
34106
+ };
34107
+ Update: {
34108
+ cache_hits?: number;
34109
+ call_type?: string;
34110
+ created_at?: string;
34111
+ day?: string;
34112
+ detail?: string | null;
34113
+ elements?: number;
34114
+ id?: string;
34115
+ outcome?: string;
34116
+ };
34117
+ Relationships: [];
34118
+ };
33616
34119
  material_usage: {
33617
34120
  Row: {
33618
34121
  created_at: string;
@@ -36723,6 +37226,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36723
37226
  created_at: string;
36724
37227
  driver: string;
36725
37228
  extern_printer_id: string | null;
37229
+ formaten_bijgewerkt_op: string | null;
36726
37230
  id: string;
36727
37231
  ip_adres: string | null;
36728
37232
  laatst_gezien: string | null;
@@ -36730,6 +37234,8 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36730
37234
  merk: string;
36731
37235
  naam: string;
36732
37236
  omschrijving: string;
37237
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
37238
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
36733
37239
  online: boolean;
36734
37240
  papierformaat: string;
36735
37241
  poort: number | null;
@@ -36745,6 +37251,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36745
37251
  created_at?: string;
36746
37252
  driver?: string;
36747
37253
  extern_printer_id?: string | null;
37254
+ formaten_bijgewerkt_op?: string | null;
36748
37255
  id?: string;
36749
37256
  ip_adres?: string | null;
36750
37257
  laatst_gezien?: string | null;
@@ -36752,6 +37259,8 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36752
37259
  merk?: string;
36753
37260
  naam: string;
36754
37261
  omschrijving?: string;
37262
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
37263
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
36755
37264
  online?: boolean;
36756
37265
  papierformaat?: string;
36757
37266
  poort?: number | null;
@@ -36767,6 +37276,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36767
37276
  created_at?: string;
36768
37277
  driver?: string;
36769
37278
  extern_printer_id?: string | null;
37279
+ formaten_bijgewerkt_op?: string | null;
36770
37280
  id?: string;
36771
37281
  ip_adres?: string | null;
36772
37282
  laatst_gezien?: string | null;
@@ -36774,6 +37284,8 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36774
37284
  merk?: string;
36775
37285
  naam?: string;
36776
37286
  omschrijving?: string;
37287
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
37288
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
36777
37289
  online?: boolean;
36778
37290
  papierformaat?: string;
36779
37291
  poort?: number | null;
@@ -41542,6 +42054,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
41542
42054
  werkbon_package_items: {
41543
42055
  Row: {
41544
42056
  article_number: string | null;
42057
+ artikel_id: string | null;
41545
42058
  created_at: string;
41546
42059
  gtin: string | null;
41547
42060
  id: string;
@@ -41559,6 +42072,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
41559
42072
  };
41560
42073
  Insert: {
41561
42074
  article_number?: string | null;
42075
+ artikel_id?: string | null;
41562
42076
  created_at?: string;
41563
42077
  gtin?: string | null;
41564
42078
  id?: string;
@@ -41576,6 +42090,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
41576
42090
  };
41577
42091
  Update: {
41578
42092
  article_number?: string | null;
42093
+ artikel_id?: string | null;
41579
42094
  created_at?: string;
41580
42095
  gtin?: string | null;
41581
42096
  id?: string;
@@ -41592,6 +42107,12 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
41592
42107
  updated_at?: string;
41593
42108
  };
41594
42109
  Relationships: [{
42110
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
42111
+ columns: ["artikel_id"];
42112
+ isOneToOne: false;
42113
+ referencedRelation: "artikelen_cache";
42114
+ referencedColumns: ["id"];
42115
+ }, {
41595
42116
  foreignKeyName: "werkbon_package_items_package_id_fkey";
41596
42117
  columns: ["package_id"];
41597
42118
  isOneToOne: false;
@@ -42814,6 +43335,20 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
42814
43335
  referencedColumns: ["id"];
42815
43336
  }];
42816
43337
  };
43338
+ v_werkbon_totalen: {
43339
+ Row: {
43340
+ packages_cents: number | null;
43341
+ packages_minutes: number | null;
43342
+ werkbon_id: string | null;
43343
+ };
43344
+ Relationships: [{
43345
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
43346
+ columns: ["werkbon_id"];
43347
+ isOneToOne: false;
43348
+ referencedRelation: "werkbonnen";
43349
+ referencedColumns: ["id"];
43350
+ }];
43351
+ };
42817
43352
  };
42818
43353
  Functions: {
42819
43354
  _floriday_schedule_job: {
@@ -44750,6 +45285,25 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44750
45285
  };
44751
45286
  Returns: string;
44752
45287
  };
45288
+ pakket_suggesties_voor_tekst: {
45289
+ Args: {
45290
+ _tekst: string;
45291
+ };
45292
+ Returns: {
45293
+ hit_type: string;
45294
+ package_id: string;
45295
+ priority: number;
45296
+ }[];
45297
+ };
45298
+ pakket_voor_reistijd: {
45299
+ Args: {
45300
+ _minuten: number;
45301
+ };
45302
+ Returns: {
45303
+ package_id: string;
45304
+ priority: number;
45305
+ }[];
45306
+ };
44753
45307
  pick_active_printers: {
44754
45308
  Args: never;
44755
45309
  Returns: {
@@ -44958,6 +45512,10 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44958
45512
  omschrijving: string;
44959
45513
  }[];
44960
45514
  };
45515
+ pick_reference_data_status: {
45516
+ Args: never;
45517
+ Returns: import("../integrations/supabase/types").Json;
45518
+ };
44961
45519
  pick_release_expired_locks: {
44962
45520
  Args: never;
44963
45521
  Returns: number;
@@ -45022,6 +45580,10 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45022
45580
  isSetofReturn: false;
45023
45581
  };
45024
45582
  };
45583
+ pick_seed_reference_data: {
45584
+ Args: never;
45585
+ Returns: import("../integrations/supabase/types").Json;
45586
+ };
45025
45587
  pick_set_station_print_plek: {
45026
45588
  Args: {
45027
45589
  _print_plek_id: string;
@@ -45800,6 +46362,18 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45800
46362
  Args: never;
45801
46363
  Returns: string;
45802
46364
  };
46365
+ werkbon_totalen: {
46366
+ Args: {
46367
+ _werkbon_id: string;
46368
+ };
46369
+ Returns: {
46370
+ materials_cents: number;
46371
+ packages_cents: number;
46372
+ packages_minutes: number;
46373
+ total_cents: number;
46374
+ total_minutes: number;
46375
+ }[];
46376
+ };
45803
46377
  wo_create_from_source: {
45804
46378
  Args: {
45805
46379
  _payload?: import("../integrations/supabase/types").Json;
@@ -45838,7 +46412,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45838
46412
  };
45839
46413
  CompositeTypes: { [_ in never]: never; };
45840
46414
  }, {
45841
- PostgrestVersion: "14.5";
46415
+ PostgrestVersion: "14.17";
45842
46416
  }>;
45843
46417
  userId: string;
45844
46418
  claims: import("@supabase/auth-js").User;
@@ -56548,6 +57122,222 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
56548
57122
  };
56549
57123
  Relationships: [];
56550
57124
  };
57125
+ maps_addresses: {
57126
+ Row: {
57127
+ address_hash: string;
57128
+ created_at: string;
57129
+ error_reason: string | null;
57130
+ formatted_address: string | null;
57131
+ id: string;
57132
+ lat: number | null;
57133
+ lng: number | null;
57134
+ place_id: string | null;
57135
+ raw_address: string;
57136
+ resolved_at: string | null;
57137
+ status: string;
57138
+ updated_at: string;
57139
+ };
57140
+ Insert: {
57141
+ address_hash: string;
57142
+ created_at?: string;
57143
+ error_reason?: string | null;
57144
+ formatted_address?: string | null;
57145
+ id?: string;
57146
+ lat?: number | null;
57147
+ lng?: number | null;
57148
+ place_id?: string | null;
57149
+ raw_address: string;
57150
+ resolved_at?: string | null;
57151
+ status?: string;
57152
+ updated_at?: string;
57153
+ };
57154
+ Update: {
57155
+ address_hash?: string;
57156
+ created_at?: string;
57157
+ error_reason?: string | null;
57158
+ formatted_address?: string | null;
57159
+ id?: string;
57160
+ lat?: number | null;
57161
+ lng?: number | null;
57162
+ place_id?: string | null;
57163
+ raw_address?: string;
57164
+ resolved_at?: string | null;
57165
+ status?: string;
57166
+ updated_at?: string;
57167
+ };
57168
+ Relationships: [];
57169
+ };
57170
+ maps_request_queue: {
57171
+ Row: {
57172
+ attempts: number;
57173
+ created_at: string;
57174
+ destination_hash: string | null;
57175
+ id: string;
57176
+ kind: string;
57177
+ last_error: string | null;
57178
+ mode: string;
57179
+ origin_hash: string | null;
57180
+ processed_at: string | null;
57181
+ raw_destination: string | null;
57182
+ raw_origin: string | null;
57183
+ requested_by: string | null;
57184
+ status: string;
57185
+ updated_at: string;
57186
+ };
57187
+ Insert: {
57188
+ attempts?: number;
57189
+ created_at?: string;
57190
+ destination_hash?: string | null;
57191
+ id?: string;
57192
+ kind: string;
57193
+ last_error?: string | null;
57194
+ mode?: string;
57195
+ origin_hash?: string | null;
57196
+ processed_at?: string | null;
57197
+ raw_destination?: string | null;
57198
+ raw_origin?: string | null;
57199
+ requested_by?: string | null;
57200
+ status?: string;
57201
+ updated_at?: string;
57202
+ };
57203
+ Update: {
57204
+ attempts?: number;
57205
+ created_at?: string;
57206
+ destination_hash?: string | null;
57207
+ id?: string;
57208
+ kind?: string;
57209
+ last_error?: string | null;
57210
+ mode?: string;
57211
+ origin_hash?: string | null;
57212
+ processed_at?: string | null;
57213
+ raw_destination?: string | null;
57214
+ raw_origin?: string | null;
57215
+ requested_by?: string | null;
57216
+ status?: string;
57217
+ updated_at?: string;
57218
+ };
57219
+ Relationships: [];
57220
+ };
57221
+ maps_settings: {
57222
+ Row: {
57223
+ allow_estimate_fallback: boolean;
57224
+ cache_ttl_days: number;
57225
+ created_at: string;
57226
+ daily_call_limit: number;
57227
+ id: string;
57228
+ last_error: string | null;
57229
+ last_error_at: string | null;
57230
+ last_success_at: string | null;
57231
+ updated_at: string;
57232
+ };
57233
+ Insert: {
57234
+ allow_estimate_fallback?: boolean;
57235
+ cache_ttl_days?: number;
57236
+ created_at?: string;
57237
+ daily_call_limit?: number;
57238
+ id?: string;
57239
+ last_error?: string | null;
57240
+ last_error_at?: string | null;
57241
+ last_success_at?: string | null;
57242
+ updated_at?: string;
57243
+ };
57244
+ Update: {
57245
+ allow_estimate_fallback?: boolean;
57246
+ cache_ttl_days?: number;
57247
+ created_at?: string;
57248
+ daily_call_limit?: number;
57249
+ id?: string;
57250
+ last_error?: string | null;
57251
+ last_error_at?: string | null;
57252
+ last_success_at?: string | null;
57253
+ updated_at?: string;
57254
+ };
57255
+ Relationships: [];
57256
+ };
57257
+ maps_travel_times: {
57258
+ Row: {
57259
+ created_at: string;
57260
+ destination_id: string;
57261
+ distance_m: number | null;
57262
+ duration_sec: number;
57263
+ expires_at: string;
57264
+ id: string;
57265
+ mode: string;
57266
+ origin_id: string;
57267
+ source: string;
57268
+ updated_at: string;
57269
+ };
57270
+ Insert: {
57271
+ created_at?: string;
57272
+ destination_id: string;
57273
+ distance_m?: number | null;
57274
+ duration_sec: number;
57275
+ expires_at?: string;
57276
+ id?: string;
57277
+ mode?: string;
57278
+ origin_id: string;
57279
+ source?: string;
57280
+ updated_at?: string;
57281
+ };
57282
+ Update: {
57283
+ created_at?: string;
57284
+ destination_id?: string;
57285
+ distance_m?: number | null;
57286
+ duration_sec?: number;
57287
+ expires_at?: string;
57288
+ id?: string;
57289
+ mode?: string;
57290
+ origin_id?: string;
57291
+ source?: string;
57292
+ updated_at?: string;
57293
+ };
57294
+ Relationships: [{
57295
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
57296
+ columns: ["destination_id"];
57297
+ isOneToOne: false;
57298
+ referencedRelation: "maps_addresses";
57299
+ referencedColumns: ["id"];
57300
+ }, {
57301
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
57302
+ columns: ["origin_id"];
57303
+ isOneToOne: false;
57304
+ referencedRelation: "maps_addresses";
57305
+ referencedColumns: ["id"];
57306
+ }];
57307
+ };
57308
+ maps_usage_log: {
57309
+ Row: {
57310
+ cache_hits: number;
57311
+ call_type: string;
57312
+ created_at: string;
57313
+ day: string;
57314
+ detail: string | null;
57315
+ elements: number;
57316
+ id: string;
57317
+ outcome: string;
57318
+ };
57319
+ Insert: {
57320
+ cache_hits?: number;
57321
+ call_type: string;
57322
+ created_at?: string;
57323
+ day?: string;
57324
+ detail?: string | null;
57325
+ elements?: number;
57326
+ id?: string;
57327
+ outcome?: string;
57328
+ };
57329
+ Update: {
57330
+ cache_hits?: number;
57331
+ call_type?: string;
57332
+ created_at?: string;
57333
+ day?: string;
57334
+ detail?: string | null;
57335
+ elements?: number;
57336
+ id?: string;
57337
+ outcome?: string;
57338
+ };
57339
+ Relationships: [];
57340
+ };
56551
57341
  material_usage: {
56552
57342
  Row: {
56553
57343
  created_at: string;
@@ -59658,6 +60448,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
59658
60448
  created_at: string;
59659
60449
  driver: string;
59660
60450
  extern_printer_id: string | null;
60451
+ formaten_bijgewerkt_op: string | null;
59661
60452
  id: string;
59662
60453
  ip_adres: string | null;
59663
60454
  laatst_gezien: string | null;
@@ -59665,6 +60456,8 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
59665
60456
  merk: string;
59666
60457
  naam: string;
59667
60458
  omschrijving: string;
60459
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
60460
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
59668
60461
  online: boolean;
59669
60462
  papierformaat: string;
59670
60463
  poort: number | null;
@@ -59680,6 +60473,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
59680
60473
  created_at?: string;
59681
60474
  driver?: string;
59682
60475
  extern_printer_id?: string | null;
60476
+ formaten_bijgewerkt_op?: string | null;
59683
60477
  id?: string;
59684
60478
  ip_adres?: string | null;
59685
60479
  laatst_gezien?: string | null;
@@ -59687,6 +60481,8 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
59687
60481
  merk?: string;
59688
60482
  naam: string;
59689
60483
  omschrijving?: string;
60484
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
60485
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
59690
60486
  online?: boolean;
59691
60487
  papierformaat?: string;
59692
60488
  poort?: number | null;
@@ -59702,6 +60498,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
59702
60498
  created_at?: string;
59703
60499
  driver?: string;
59704
60500
  extern_printer_id?: string | null;
60501
+ formaten_bijgewerkt_op?: string | null;
59705
60502
  id?: string;
59706
60503
  ip_adres?: string | null;
59707
60504
  laatst_gezien?: string | null;
@@ -59709,6 +60506,8 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
59709
60506
  merk?: string;
59710
60507
  naam?: string;
59711
60508
  omschrijving?: string;
60509
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
60510
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
59712
60511
  online?: boolean;
59713
60512
  papierformaat?: string;
59714
60513
  poort?: number | null;
@@ -64477,6 +65276,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
64477
65276
  werkbon_package_items: {
64478
65277
  Row: {
64479
65278
  article_number: string | null;
65279
+ artikel_id: string | null;
64480
65280
  created_at: string;
64481
65281
  gtin: string | null;
64482
65282
  id: string;
@@ -64494,6 +65294,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
64494
65294
  };
64495
65295
  Insert: {
64496
65296
  article_number?: string | null;
65297
+ artikel_id?: string | null;
64497
65298
  created_at?: string;
64498
65299
  gtin?: string | null;
64499
65300
  id?: string;
@@ -64511,6 +65312,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
64511
65312
  };
64512
65313
  Update: {
64513
65314
  article_number?: string | null;
65315
+ artikel_id?: string | null;
64514
65316
  created_at?: string;
64515
65317
  gtin?: string | null;
64516
65318
  id?: string;
@@ -64527,6 +65329,12 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
64527
65329
  updated_at?: string;
64528
65330
  };
64529
65331
  Relationships: [{
65332
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
65333
+ columns: ["artikel_id"];
65334
+ isOneToOne: false;
65335
+ referencedRelation: "artikelen_cache";
65336
+ referencedColumns: ["id"];
65337
+ }, {
64530
65338
  foreignKeyName: "werkbon_package_items_package_id_fkey";
64531
65339
  columns: ["package_id"];
64532
65340
  isOneToOne: false;
@@ -65749,6 +66557,20 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
65749
66557
  referencedColumns: ["id"];
65750
66558
  }];
65751
66559
  };
66560
+ v_werkbon_totalen: {
66561
+ Row: {
66562
+ packages_cents: number | null;
66563
+ packages_minutes: number | null;
66564
+ werkbon_id: string | null;
66565
+ };
66566
+ Relationships: [{
66567
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
66568
+ columns: ["werkbon_id"];
66569
+ isOneToOne: false;
66570
+ referencedRelation: "werkbonnen";
66571
+ referencedColumns: ["id"];
66572
+ }];
66573
+ };
65752
66574
  };
65753
66575
  Functions: {
65754
66576
  _floriday_schedule_job: {
@@ -67685,6 +68507,25 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
67685
68507
  };
67686
68508
  Returns: string;
67687
68509
  };
68510
+ pakket_suggesties_voor_tekst: {
68511
+ Args: {
68512
+ _tekst: string;
68513
+ };
68514
+ Returns: {
68515
+ hit_type: string;
68516
+ package_id: string;
68517
+ priority: number;
68518
+ }[];
68519
+ };
68520
+ pakket_voor_reistijd: {
68521
+ Args: {
68522
+ _minuten: number;
68523
+ };
68524
+ Returns: {
68525
+ package_id: string;
68526
+ priority: number;
68527
+ }[];
68528
+ };
67688
68529
  pick_active_printers: {
67689
68530
  Args: never;
67690
68531
  Returns: {
@@ -67846,117 +68687,125 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
67846
68687
  isSetofReturn: false;
67847
68688
  };
67848
68689
  };
67849
- pick_current_pick_day: {
68690
+ pick_current_pick_day: {
68691
+ Args: never;
68692
+ Returns: string;
68693
+ };
68694
+ pick_day_counts: {
68695
+ Args: {
68696
+ _pick_day?: string;
68697
+ _screen_id?: string;
68698
+ _station_id?: string;
68699
+ };
68700
+ Returns: import("../integrations/supabase/types").Json;
68701
+ };
68702
+ pick_document_layout_data: {
68703
+ Args: {
68704
+ _layout_id: string;
68705
+ };
68706
+ Returns: import("../integrations/supabase/types").Json;
68707
+ };
68708
+ pick_enqueue_print_job: {
68709
+ Args: {
68710
+ _printer_id?: string;
68711
+ _queue_item_id: string;
68712
+ _session_id?: string;
68713
+ };
68714
+ Returns: string;
68715
+ };
68716
+ pick_order_context: {
68717
+ Args: {
68718
+ _order_id?: string;
68719
+ _order_number?: string;
68720
+ };
68721
+ Returns: import("../integrations/supabase/types").Json;
68722
+ };
68723
+ pick_print_job_status: {
68724
+ Args: {
68725
+ _job_id: string;
68726
+ };
68727
+ Returns: import("../integrations/supabase/types").Json;
68728
+ };
68729
+ pick_print_plekken: {
68730
+ Args: never;
68731
+ Returns: {
68732
+ id: string;
68733
+ naam: string;
68734
+ omschrijving: string;
68735
+ }[];
68736
+ };
68737
+ pick_reference_data_status: {
68738
+ Args: never;
68739
+ Returns: import("../integrations/supabase/types").Json;
68740
+ };
68741
+ pick_release_expired_locks: {
68742
+ Args: never;
68743
+ Returns: number;
68744
+ };
68745
+ pick_release_lock: {
68746
+ Args: {
68747
+ _queue_item_id: string;
68748
+ };
68749
+ Returns: undefined;
68750
+ };
68751
+ pick_reprint_document: {
68752
+ Args: {
68753
+ _queue_item_id: string;
68754
+ _session_id: string;
68755
+ _throttle_seconds?: number;
68756
+ };
68757
+ Returns: string;
68758
+ };
68759
+ pick_reset_print: {
68760
+ Args: {
68761
+ _queue_item_id: string;
68762
+ _session_id: string;
68763
+ };
68764
+ Returns: {
68765
+ announced_at: string;
68766
+ assigned_user_id: string | null;
68767
+ barcode: string | null;
68768
+ cancelled_at: string | null;
68769
+ cart_count: number;
68770
+ completed_at: string | null;
68771
+ country_code: string | null;
68772
+ created_at: string;
68773
+ customer_name: string | null;
68774
+ delivery_address: string | null;
68775
+ document_number: string | null;
68776
+ document_type_id: string | null;
68777
+ due_at: string | null;
68778
+ id: string;
68779
+ is_urgent: boolean;
68780
+ line_count: number;
68781
+ order_number: string | null;
68782
+ order_type: string | null;
68783
+ payload: import("../integrations/supabase/types").Json;
68784
+ print_count: number;
68785
+ print_job_id: string | null;
68786
+ printed_at: string | null;
68787
+ printed_by: string | null;
68788
+ printer_id: string | null;
68789
+ priority: number;
68790
+ reference: string | null;
68791
+ route: string | null;
68792
+ screen_id: string | null;
68793
+ station_id: string | null;
68794
+ status_id: string | null;
68795
+ updated_at: string;
68796
+ warnings: import("../integrations/supabase/types").Json;
68797
+ };
68798
+ SetofOptions: {
68799
+ from: "*";
68800
+ to: "pick_queue";
68801
+ isOneToOne: true;
68802
+ isSetofReturn: false;
68803
+ };
68804
+ };
68805
+ pick_seed_reference_data: {
67850
68806
  Args: never;
67851
- Returns: string;
67852
- };
67853
- pick_day_counts: {
67854
- Args: {
67855
- _pick_day?: string;
67856
- _screen_id?: string;
67857
- _station_id?: string;
67858
- };
67859
68807
  Returns: import("../integrations/supabase/types").Json;
67860
68808
  };
67861
- pick_document_layout_data: {
67862
- Args: {
67863
- _layout_id: string;
67864
- };
67865
- Returns: import("../integrations/supabase/types").Json;
67866
- };
67867
- pick_enqueue_print_job: {
67868
- Args: {
67869
- _printer_id?: string;
67870
- _queue_item_id: string;
67871
- _session_id?: string;
67872
- };
67873
- Returns: string;
67874
- };
67875
- pick_order_context: {
67876
- Args: {
67877
- _order_id?: string;
67878
- _order_number?: string;
67879
- };
67880
- Returns: import("../integrations/supabase/types").Json;
67881
- };
67882
- pick_print_job_status: {
67883
- Args: {
67884
- _job_id: string;
67885
- };
67886
- Returns: import("../integrations/supabase/types").Json;
67887
- };
67888
- pick_print_plekken: {
67889
- Args: never;
67890
- Returns: {
67891
- id: string;
67892
- naam: string;
67893
- omschrijving: string;
67894
- }[];
67895
- };
67896
- pick_release_expired_locks: {
67897
- Args: never;
67898
- Returns: number;
67899
- };
67900
- pick_release_lock: {
67901
- Args: {
67902
- _queue_item_id: string;
67903
- };
67904
- Returns: undefined;
67905
- };
67906
- pick_reprint_document: {
67907
- Args: {
67908
- _queue_item_id: string;
67909
- _session_id: string;
67910
- _throttle_seconds?: number;
67911
- };
67912
- Returns: string;
67913
- };
67914
- pick_reset_print: {
67915
- Args: {
67916
- _queue_item_id: string;
67917
- _session_id: string;
67918
- };
67919
- Returns: {
67920
- announced_at: string;
67921
- assigned_user_id: string | null;
67922
- barcode: string | null;
67923
- cancelled_at: string | null;
67924
- cart_count: number;
67925
- completed_at: string | null;
67926
- country_code: string | null;
67927
- created_at: string;
67928
- customer_name: string | null;
67929
- delivery_address: string | null;
67930
- document_number: string | null;
67931
- document_type_id: string | null;
67932
- due_at: string | null;
67933
- id: string;
67934
- is_urgent: boolean;
67935
- line_count: number;
67936
- order_number: string | null;
67937
- order_type: string | null;
67938
- payload: import("../integrations/supabase/types").Json;
67939
- print_count: number;
67940
- print_job_id: string | null;
67941
- printed_at: string | null;
67942
- printed_by: string | null;
67943
- printer_id: string | null;
67944
- priority: number;
67945
- reference: string | null;
67946
- route: string | null;
67947
- screen_id: string | null;
67948
- station_id: string | null;
67949
- status_id: string | null;
67950
- updated_at: string;
67951
- warnings: import("../integrations/supabase/types").Json;
67952
- };
67953
- SetofOptions: {
67954
- from: "*";
67955
- to: "pick_queue";
67956
- isOneToOne: true;
67957
- isSetofReturn: false;
67958
- };
67959
- };
67960
68809
  pick_set_station_print_plek: {
67961
68810
  Args: {
67962
68811
  _print_plek_id: string;
@@ -68735,6 +69584,18 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68735
69584
  Args: never;
68736
69585
  Returns: string;
68737
69586
  };
69587
+ werkbon_totalen: {
69588
+ Args: {
69589
+ _werkbon_id: string;
69590
+ };
69591
+ Returns: {
69592
+ materials_cents: number;
69593
+ packages_cents: number;
69594
+ packages_minutes: number;
69595
+ total_cents: number;
69596
+ total_minutes: number;
69597
+ }[];
69598
+ };
68738
69599
  wo_create_from_source: {
68739
69600
  Args: {
68740
69601
  _payload?: import("../integrations/supabase/types").Json;
@@ -68773,7 +69634,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68773
69634
  };
68774
69635
  CompositeTypes: { [_ in never]: never; };
68775
69636
  }, {
68776
- PostgrestVersion: "14.5";
69637
+ PostgrestVersion: "14.17";
68777
69638
  }>;
68778
69639
  userId: string;
68779
69640
  claims: import("@supabase/auth-js").User;
@@ -79474,6 +80335,222 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
79474
80335
  };
79475
80336
  Relationships: [];
79476
80337
  };
80338
+ maps_addresses: {
80339
+ Row: {
80340
+ address_hash: string;
80341
+ created_at: string;
80342
+ error_reason: string | null;
80343
+ formatted_address: string | null;
80344
+ id: string;
80345
+ lat: number | null;
80346
+ lng: number | null;
80347
+ place_id: string | null;
80348
+ raw_address: string;
80349
+ resolved_at: string | null;
80350
+ status: string;
80351
+ updated_at: string;
80352
+ };
80353
+ Insert: {
80354
+ address_hash: string;
80355
+ created_at?: string;
80356
+ error_reason?: string | null;
80357
+ formatted_address?: string | null;
80358
+ id?: string;
80359
+ lat?: number | null;
80360
+ lng?: number | null;
80361
+ place_id?: string | null;
80362
+ raw_address: string;
80363
+ resolved_at?: string | null;
80364
+ status?: string;
80365
+ updated_at?: string;
80366
+ };
80367
+ Update: {
80368
+ address_hash?: string;
80369
+ created_at?: string;
80370
+ error_reason?: string | null;
80371
+ formatted_address?: string | null;
80372
+ id?: string;
80373
+ lat?: number | null;
80374
+ lng?: number | null;
80375
+ place_id?: string | null;
80376
+ raw_address?: string;
80377
+ resolved_at?: string | null;
80378
+ status?: string;
80379
+ updated_at?: string;
80380
+ };
80381
+ Relationships: [];
80382
+ };
80383
+ maps_request_queue: {
80384
+ Row: {
80385
+ attempts: number;
80386
+ created_at: string;
80387
+ destination_hash: string | null;
80388
+ id: string;
80389
+ kind: string;
80390
+ last_error: string | null;
80391
+ mode: string;
80392
+ origin_hash: string | null;
80393
+ processed_at: string | null;
80394
+ raw_destination: string | null;
80395
+ raw_origin: string | null;
80396
+ requested_by: string | null;
80397
+ status: string;
80398
+ updated_at: string;
80399
+ };
80400
+ Insert: {
80401
+ attempts?: number;
80402
+ created_at?: string;
80403
+ destination_hash?: string | null;
80404
+ id?: string;
80405
+ kind: string;
80406
+ last_error?: string | null;
80407
+ mode?: string;
80408
+ origin_hash?: string | null;
80409
+ processed_at?: string | null;
80410
+ raw_destination?: string | null;
80411
+ raw_origin?: string | null;
80412
+ requested_by?: string | null;
80413
+ status?: string;
80414
+ updated_at?: string;
80415
+ };
80416
+ Update: {
80417
+ attempts?: number;
80418
+ created_at?: string;
80419
+ destination_hash?: string | null;
80420
+ id?: string;
80421
+ kind?: string;
80422
+ last_error?: string | null;
80423
+ mode?: string;
80424
+ origin_hash?: string | null;
80425
+ processed_at?: string | null;
80426
+ raw_destination?: string | null;
80427
+ raw_origin?: string | null;
80428
+ requested_by?: string | null;
80429
+ status?: string;
80430
+ updated_at?: string;
80431
+ };
80432
+ Relationships: [];
80433
+ };
80434
+ maps_settings: {
80435
+ Row: {
80436
+ allow_estimate_fallback: boolean;
80437
+ cache_ttl_days: number;
80438
+ created_at: string;
80439
+ daily_call_limit: number;
80440
+ id: string;
80441
+ last_error: string | null;
80442
+ last_error_at: string | null;
80443
+ last_success_at: string | null;
80444
+ updated_at: string;
80445
+ };
80446
+ Insert: {
80447
+ allow_estimate_fallback?: boolean;
80448
+ cache_ttl_days?: number;
80449
+ created_at?: string;
80450
+ daily_call_limit?: number;
80451
+ id?: string;
80452
+ last_error?: string | null;
80453
+ last_error_at?: string | null;
80454
+ last_success_at?: string | null;
80455
+ updated_at?: string;
80456
+ };
80457
+ Update: {
80458
+ allow_estimate_fallback?: boolean;
80459
+ cache_ttl_days?: number;
80460
+ created_at?: string;
80461
+ daily_call_limit?: number;
80462
+ id?: string;
80463
+ last_error?: string | null;
80464
+ last_error_at?: string | null;
80465
+ last_success_at?: string | null;
80466
+ updated_at?: string;
80467
+ };
80468
+ Relationships: [];
80469
+ };
80470
+ maps_travel_times: {
80471
+ Row: {
80472
+ created_at: string;
80473
+ destination_id: string;
80474
+ distance_m: number | null;
80475
+ duration_sec: number;
80476
+ expires_at: string;
80477
+ id: string;
80478
+ mode: string;
80479
+ origin_id: string;
80480
+ source: string;
80481
+ updated_at: string;
80482
+ };
80483
+ Insert: {
80484
+ created_at?: string;
80485
+ destination_id: string;
80486
+ distance_m?: number | null;
80487
+ duration_sec: number;
80488
+ expires_at?: string;
80489
+ id?: string;
80490
+ mode?: string;
80491
+ origin_id: string;
80492
+ source?: string;
80493
+ updated_at?: string;
80494
+ };
80495
+ Update: {
80496
+ created_at?: string;
80497
+ destination_id?: string;
80498
+ distance_m?: number | null;
80499
+ duration_sec?: number;
80500
+ expires_at?: string;
80501
+ id?: string;
80502
+ mode?: string;
80503
+ origin_id?: string;
80504
+ source?: string;
80505
+ updated_at?: string;
80506
+ };
80507
+ Relationships: [{
80508
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
80509
+ columns: ["destination_id"];
80510
+ isOneToOne: false;
80511
+ referencedRelation: "maps_addresses";
80512
+ referencedColumns: ["id"];
80513
+ }, {
80514
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
80515
+ columns: ["origin_id"];
80516
+ isOneToOne: false;
80517
+ referencedRelation: "maps_addresses";
80518
+ referencedColumns: ["id"];
80519
+ }];
80520
+ };
80521
+ maps_usage_log: {
80522
+ Row: {
80523
+ cache_hits: number;
80524
+ call_type: string;
80525
+ created_at: string;
80526
+ day: string;
80527
+ detail: string | null;
80528
+ elements: number;
80529
+ id: string;
80530
+ outcome: string;
80531
+ };
80532
+ Insert: {
80533
+ cache_hits?: number;
80534
+ call_type: string;
80535
+ created_at?: string;
80536
+ day?: string;
80537
+ detail?: string | null;
80538
+ elements?: number;
80539
+ id?: string;
80540
+ outcome?: string;
80541
+ };
80542
+ Update: {
80543
+ cache_hits?: number;
80544
+ call_type?: string;
80545
+ created_at?: string;
80546
+ day?: string;
80547
+ detail?: string | null;
80548
+ elements?: number;
80549
+ id?: string;
80550
+ outcome?: string;
80551
+ };
80552
+ Relationships: [];
80553
+ };
79477
80554
  material_usage: {
79478
80555
  Row: {
79479
80556
  created_at: string;
@@ -82584,6 +83661,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
82584
83661
  created_at: string;
82585
83662
  driver: string;
82586
83663
  extern_printer_id: string | null;
83664
+ formaten_bijgewerkt_op: string | null;
82587
83665
  id: string;
82588
83666
  ip_adres: string | null;
82589
83667
  laatst_gezien: string | null;
@@ -82591,6 +83669,8 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
82591
83669
  merk: string;
82592
83670
  naam: string;
82593
83671
  omschrijving: string;
83672
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
83673
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
82594
83674
  online: boolean;
82595
83675
  papierformaat: string;
82596
83676
  poort: number | null;
@@ -82606,6 +83686,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
82606
83686
  created_at?: string;
82607
83687
  driver?: string;
82608
83688
  extern_printer_id?: string | null;
83689
+ formaten_bijgewerkt_op?: string | null;
82609
83690
  id?: string;
82610
83691
  ip_adres?: string | null;
82611
83692
  laatst_gezien?: string | null;
@@ -82613,6 +83694,8 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
82613
83694
  merk?: string;
82614
83695
  naam: string;
82615
83696
  omschrijving?: string;
83697
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
83698
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
82616
83699
  online?: boolean;
82617
83700
  papierformaat?: string;
82618
83701
  poort?: number | null;
@@ -82628,6 +83711,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
82628
83711
  created_at?: string;
82629
83712
  driver?: string;
82630
83713
  extern_printer_id?: string | null;
83714
+ formaten_bijgewerkt_op?: string | null;
82631
83715
  id?: string;
82632
83716
  ip_adres?: string | null;
82633
83717
  laatst_gezien?: string | null;
@@ -82635,6 +83719,8 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
82635
83719
  merk?: string;
82636
83720
  naam?: string;
82637
83721
  omschrijving?: string;
83722
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
83723
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
82638
83724
  online?: boolean;
82639
83725
  papierformaat?: string;
82640
83726
  poort?: number | null;
@@ -87403,6 +88489,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
87403
88489
  werkbon_package_items: {
87404
88490
  Row: {
87405
88491
  article_number: string | null;
88492
+ artikel_id: string | null;
87406
88493
  created_at: string;
87407
88494
  gtin: string | null;
87408
88495
  id: string;
@@ -87420,6 +88507,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
87420
88507
  };
87421
88508
  Insert: {
87422
88509
  article_number?: string | null;
88510
+ artikel_id?: string | null;
87423
88511
  created_at?: string;
87424
88512
  gtin?: string | null;
87425
88513
  id?: string;
@@ -87437,6 +88525,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
87437
88525
  };
87438
88526
  Update: {
87439
88527
  article_number?: string | null;
88528
+ artikel_id?: string | null;
87440
88529
  created_at?: string;
87441
88530
  gtin?: string | null;
87442
88531
  id?: string;
@@ -87453,6 +88542,12 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
87453
88542
  updated_at?: string;
87454
88543
  };
87455
88544
  Relationships: [{
88545
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
88546
+ columns: ["artikel_id"];
88547
+ isOneToOne: false;
88548
+ referencedRelation: "artikelen_cache";
88549
+ referencedColumns: ["id"];
88550
+ }, {
87456
88551
  foreignKeyName: "werkbon_package_items_package_id_fkey";
87457
88552
  columns: ["package_id"];
87458
88553
  isOneToOne: false;
@@ -88675,6 +89770,20 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
88675
89770
  referencedColumns: ["id"];
88676
89771
  }];
88677
89772
  };
89773
+ v_werkbon_totalen: {
89774
+ Row: {
89775
+ packages_cents: number | null;
89776
+ packages_minutes: number | null;
89777
+ werkbon_id: string | null;
89778
+ };
89779
+ Relationships: [{
89780
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
89781
+ columns: ["werkbon_id"];
89782
+ isOneToOne: false;
89783
+ referencedRelation: "werkbonnen";
89784
+ referencedColumns: ["id"];
89785
+ }];
89786
+ };
88678
89787
  };
88679
89788
  Functions: {
88680
89789
  _floriday_schedule_job: {
@@ -90611,6 +91720,25 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90611
91720
  };
90612
91721
  Returns: string;
90613
91722
  };
91723
+ pakket_suggesties_voor_tekst: {
91724
+ Args: {
91725
+ _tekst: string;
91726
+ };
91727
+ Returns: {
91728
+ hit_type: string;
91729
+ package_id: string;
91730
+ priority: number;
91731
+ }[];
91732
+ };
91733
+ pakket_voor_reistijd: {
91734
+ Args: {
91735
+ _minuten: number;
91736
+ };
91737
+ Returns: {
91738
+ package_id: string;
91739
+ priority: number;
91740
+ }[];
91741
+ };
90614
91742
  pick_active_printers: {
90615
91743
  Args: never;
90616
91744
  Returns: {
@@ -90819,6 +91947,10 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90819
91947
  omschrijving: string;
90820
91948
  }[];
90821
91949
  };
91950
+ pick_reference_data_status: {
91951
+ Args: never;
91952
+ Returns: import("../integrations/supabase/types").Json;
91953
+ };
90822
91954
  pick_release_expired_locks: {
90823
91955
  Args: never;
90824
91956
  Returns: number;
@@ -90883,6 +92015,10 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90883
92015
  isSetofReturn: false;
90884
92016
  };
90885
92017
  };
92018
+ pick_seed_reference_data: {
92019
+ Args: never;
92020
+ Returns: import("../integrations/supabase/types").Json;
92021
+ };
90886
92022
  pick_set_station_print_plek: {
90887
92023
  Args: {
90888
92024
  _print_plek_id: string;
@@ -91661,6 +92797,18 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91661
92797
  Args: never;
91662
92798
  Returns: string;
91663
92799
  };
92800
+ werkbon_totalen: {
92801
+ Args: {
92802
+ _werkbon_id: string;
92803
+ };
92804
+ Returns: {
92805
+ materials_cents: number;
92806
+ packages_cents: number;
92807
+ packages_minutes: number;
92808
+ total_cents: number;
92809
+ total_minutes: number;
92810
+ }[];
92811
+ };
91664
92812
  wo_create_from_source: {
91665
92813
  Args: {
91666
92814
  _payload?: import("../integrations/supabase/types").Json;
@@ -91699,7 +92847,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91699
92847
  };
91700
92848
  CompositeTypes: { [_ in never]: never; };
91701
92849
  }, {
91702
- PostgrestVersion: "14.5";
92850
+ PostgrestVersion: "14.17";
91703
92851
  }>;
91704
92852
  userId: string;
91705
92853
  claims: import("@supabase/auth-js").User;