@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
@@ -10696,6 +10696,222 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
10696
10696
  };
10697
10697
  Relationships: [];
10698
10698
  };
10699
+ maps_addresses: {
10700
+ Row: {
10701
+ address_hash: string;
10702
+ created_at: string;
10703
+ error_reason: string | null;
10704
+ formatted_address: string | null;
10705
+ id: string;
10706
+ lat: number | null;
10707
+ lng: number | null;
10708
+ place_id: string | null;
10709
+ raw_address: string;
10710
+ resolved_at: string | null;
10711
+ status: string;
10712
+ updated_at: string;
10713
+ };
10714
+ Insert: {
10715
+ address_hash: string;
10716
+ created_at?: string;
10717
+ error_reason?: string | null;
10718
+ formatted_address?: string | null;
10719
+ id?: string;
10720
+ lat?: number | null;
10721
+ lng?: number | null;
10722
+ place_id?: string | null;
10723
+ raw_address: string;
10724
+ resolved_at?: string | null;
10725
+ status?: string;
10726
+ updated_at?: string;
10727
+ };
10728
+ Update: {
10729
+ address_hash?: string;
10730
+ created_at?: string;
10731
+ error_reason?: string | null;
10732
+ formatted_address?: string | null;
10733
+ id?: string;
10734
+ lat?: number | null;
10735
+ lng?: number | null;
10736
+ place_id?: string | null;
10737
+ raw_address?: string;
10738
+ resolved_at?: string | null;
10739
+ status?: string;
10740
+ updated_at?: string;
10741
+ };
10742
+ Relationships: [];
10743
+ };
10744
+ maps_request_queue: {
10745
+ Row: {
10746
+ attempts: number;
10747
+ created_at: string;
10748
+ destination_hash: string | null;
10749
+ id: string;
10750
+ kind: string;
10751
+ last_error: string | null;
10752
+ mode: string;
10753
+ origin_hash: string | null;
10754
+ processed_at: string | null;
10755
+ raw_destination: string | null;
10756
+ raw_origin: string | null;
10757
+ requested_by: string | null;
10758
+ status: string;
10759
+ updated_at: string;
10760
+ };
10761
+ Insert: {
10762
+ attempts?: number;
10763
+ created_at?: string;
10764
+ destination_hash?: string | null;
10765
+ id?: string;
10766
+ kind: string;
10767
+ last_error?: string | null;
10768
+ mode?: string;
10769
+ origin_hash?: string | null;
10770
+ processed_at?: string | null;
10771
+ raw_destination?: string | null;
10772
+ raw_origin?: string | null;
10773
+ requested_by?: string | null;
10774
+ status?: string;
10775
+ updated_at?: string;
10776
+ };
10777
+ Update: {
10778
+ attempts?: number;
10779
+ created_at?: string;
10780
+ destination_hash?: string | null;
10781
+ id?: string;
10782
+ kind?: string;
10783
+ last_error?: string | null;
10784
+ mode?: string;
10785
+ origin_hash?: string | null;
10786
+ processed_at?: string | null;
10787
+ raw_destination?: string | null;
10788
+ raw_origin?: string | null;
10789
+ requested_by?: string | null;
10790
+ status?: string;
10791
+ updated_at?: string;
10792
+ };
10793
+ Relationships: [];
10794
+ };
10795
+ maps_settings: {
10796
+ Row: {
10797
+ allow_estimate_fallback: boolean;
10798
+ cache_ttl_days: number;
10799
+ created_at: string;
10800
+ daily_call_limit: number;
10801
+ id: string;
10802
+ last_error: string | null;
10803
+ last_error_at: string | null;
10804
+ last_success_at: string | null;
10805
+ updated_at: string;
10806
+ };
10807
+ Insert: {
10808
+ allow_estimate_fallback?: boolean;
10809
+ cache_ttl_days?: number;
10810
+ created_at?: string;
10811
+ daily_call_limit?: number;
10812
+ id?: string;
10813
+ last_error?: string | null;
10814
+ last_error_at?: string | null;
10815
+ last_success_at?: string | null;
10816
+ updated_at?: string;
10817
+ };
10818
+ Update: {
10819
+ allow_estimate_fallback?: boolean;
10820
+ cache_ttl_days?: number;
10821
+ created_at?: string;
10822
+ daily_call_limit?: number;
10823
+ id?: string;
10824
+ last_error?: string | null;
10825
+ last_error_at?: string | null;
10826
+ last_success_at?: string | null;
10827
+ updated_at?: string;
10828
+ };
10829
+ Relationships: [];
10830
+ };
10831
+ maps_travel_times: {
10832
+ Row: {
10833
+ created_at: string;
10834
+ destination_id: string;
10835
+ distance_m: number | null;
10836
+ duration_sec: number;
10837
+ expires_at: string;
10838
+ id: string;
10839
+ mode: string;
10840
+ origin_id: string;
10841
+ source: string;
10842
+ updated_at: string;
10843
+ };
10844
+ Insert: {
10845
+ created_at?: string;
10846
+ destination_id: string;
10847
+ distance_m?: number | null;
10848
+ duration_sec: number;
10849
+ expires_at?: string;
10850
+ id?: string;
10851
+ mode?: string;
10852
+ origin_id: string;
10853
+ source?: string;
10854
+ updated_at?: string;
10855
+ };
10856
+ Update: {
10857
+ created_at?: string;
10858
+ destination_id?: string;
10859
+ distance_m?: number | null;
10860
+ duration_sec?: number;
10861
+ expires_at?: string;
10862
+ id?: string;
10863
+ mode?: string;
10864
+ origin_id?: string;
10865
+ source?: string;
10866
+ updated_at?: string;
10867
+ };
10868
+ Relationships: [{
10869
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
10870
+ columns: ["destination_id"];
10871
+ isOneToOne: false;
10872
+ referencedRelation: "maps_addresses";
10873
+ referencedColumns: ["id"];
10874
+ }, {
10875
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
10876
+ columns: ["origin_id"];
10877
+ isOneToOne: false;
10878
+ referencedRelation: "maps_addresses";
10879
+ referencedColumns: ["id"];
10880
+ }];
10881
+ };
10882
+ maps_usage_log: {
10883
+ Row: {
10884
+ cache_hits: number;
10885
+ call_type: string;
10886
+ created_at: string;
10887
+ day: string;
10888
+ detail: string | null;
10889
+ elements: number;
10890
+ id: string;
10891
+ outcome: string;
10892
+ };
10893
+ Insert: {
10894
+ cache_hits?: number;
10895
+ call_type: string;
10896
+ created_at?: string;
10897
+ day?: string;
10898
+ detail?: string | null;
10899
+ elements?: number;
10900
+ id?: string;
10901
+ outcome?: string;
10902
+ };
10903
+ Update: {
10904
+ cache_hits?: number;
10905
+ call_type?: string;
10906
+ created_at?: string;
10907
+ day?: string;
10908
+ detail?: string | null;
10909
+ elements?: number;
10910
+ id?: string;
10911
+ outcome?: string;
10912
+ };
10913
+ Relationships: [];
10914
+ };
10699
10915
  material_usage: {
10700
10916
  Row: {
10701
10917
  created_at: string;
@@ -13806,6 +14022,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13806
14022
  created_at: string;
13807
14023
  driver: string;
13808
14024
  extern_printer_id: string | null;
14025
+ formaten_bijgewerkt_op: string | null;
13809
14026
  id: string;
13810
14027
  ip_adres: string | null;
13811
14028
  laatst_gezien: string | null;
@@ -13813,6 +14030,8 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13813
14030
  merk: string;
13814
14031
  naam: string;
13815
14032
  omschrijving: string;
14033
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
14034
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
13816
14035
  online: boolean;
13817
14036
  papierformaat: string;
13818
14037
  poort: number | null;
@@ -13828,6 +14047,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13828
14047
  created_at?: string;
13829
14048
  driver?: string;
13830
14049
  extern_printer_id?: string | null;
14050
+ formaten_bijgewerkt_op?: string | null;
13831
14051
  id?: string;
13832
14052
  ip_adres?: string | null;
13833
14053
  laatst_gezien?: string | null;
@@ -13835,6 +14055,8 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13835
14055
  merk?: string;
13836
14056
  naam: string;
13837
14057
  omschrijving?: string;
14058
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14059
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
13838
14060
  online?: boolean;
13839
14061
  papierformaat?: string;
13840
14062
  poort?: number | null;
@@ -13850,6 +14072,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13850
14072
  created_at?: string;
13851
14073
  driver?: string;
13852
14074
  extern_printer_id?: string | null;
14075
+ formaten_bijgewerkt_op?: string | null;
13853
14076
  id?: string;
13854
14077
  ip_adres?: string | null;
13855
14078
  laatst_gezien?: string | null;
@@ -13857,6 +14080,8 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13857
14080
  merk?: string;
13858
14081
  naam?: string;
13859
14082
  omschrijving?: string;
14083
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14084
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
13860
14085
  online?: boolean;
13861
14086
  papierformaat?: string;
13862
14087
  poort?: number | null;
@@ -18625,6 +18850,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
18625
18850
  werkbon_package_items: {
18626
18851
  Row: {
18627
18852
  article_number: string | null;
18853
+ artikel_id: string | null;
18628
18854
  created_at: string;
18629
18855
  gtin: string | null;
18630
18856
  id: string;
@@ -18642,6 +18868,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
18642
18868
  };
18643
18869
  Insert: {
18644
18870
  article_number?: string | null;
18871
+ artikel_id?: string | null;
18645
18872
  created_at?: string;
18646
18873
  gtin?: string | null;
18647
18874
  id?: string;
@@ -18659,6 +18886,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
18659
18886
  };
18660
18887
  Update: {
18661
18888
  article_number?: string | null;
18889
+ artikel_id?: string | null;
18662
18890
  created_at?: string;
18663
18891
  gtin?: string | null;
18664
18892
  id?: string;
@@ -18675,6 +18903,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
18675
18903
  updated_at?: string;
18676
18904
  };
18677
18905
  Relationships: [{
18906
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
18907
+ columns: ["artikel_id"];
18908
+ isOneToOne: false;
18909
+ referencedRelation: "artikelen_cache";
18910
+ referencedColumns: ["id"];
18911
+ }, {
18678
18912
  foreignKeyName: "werkbon_package_items_package_id_fkey";
18679
18913
  columns: ["package_id"];
18680
18914
  isOneToOne: false;
@@ -19897,6 +20131,20 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
19897
20131
  referencedColumns: ["id"];
19898
20132
  }];
19899
20133
  };
20134
+ v_werkbon_totalen: {
20135
+ Row: {
20136
+ packages_cents: number | null;
20137
+ packages_minutes: number | null;
20138
+ werkbon_id: string | null;
20139
+ };
20140
+ Relationships: [{
20141
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
20142
+ columns: ["werkbon_id"];
20143
+ isOneToOne: false;
20144
+ referencedRelation: "werkbonnen";
20145
+ referencedColumns: ["id"];
20146
+ }];
20147
+ };
19900
20148
  };
19901
20149
  Functions: {
19902
20150
  _floriday_schedule_job: {
@@ -21833,6 +22081,25 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
21833
22081
  };
21834
22082
  Returns: string;
21835
22083
  };
22084
+ pakket_suggesties_voor_tekst: {
22085
+ Args: {
22086
+ _tekst: string;
22087
+ };
22088
+ Returns: {
22089
+ hit_type: string;
22090
+ package_id: string;
22091
+ priority: number;
22092
+ }[];
22093
+ };
22094
+ pakket_voor_reistijd: {
22095
+ Args: {
22096
+ _minuten: number;
22097
+ };
22098
+ Returns: {
22099
+ package_id: string;
22100
+ priority: number;
22101
+ }[];
22102
+ };
21836
22103
  pick_active_printers: {
21837
22104
  Args: never;
21838
22105
  Returns: {
@@ -22041,6 +22308,10 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
22041
22308
  omschrijving: string;
22042
22309
  }[];
22043
22310
  };
22311
+ pick_reference_data_status: {
22312
+ Args: never;
22313
+ Returns: import("../integrations/supabase/types").Json;
22314
+ };
22044
22315
  pick_release_expired_locks: {
22045
22316
  Args: never;
22046
22317
  Returns: number;
@@ -22105,6 +22376,10 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
22105
22376
  isSetofReturn: false;
22106
22377
  };
22107
22378
  };
22379
+ pick_seed_reference_data: {
22380
+ Args: never;
22381
+ Returns: import("../integrations/supabase/types").Json;
22382
+ };
22108
22383
  pick_set_station_print_plek: {
22109
22384
  Args: {
22110
22385
  _print_plek_id: string;
@@ -22883,6 +23158,18 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
22883
23158
  Args: never;
22884
23159
  Returns: string;
22885
23160
  };
23161
+ werkbon_totalen: {
23162
+ Args: {
23163
+ _werkbon_id: string;
23164
+ };
23165
+ Returns: {
23166
+ materials_cents: number;
23167
+ packages_cents: number;
23168
+ packages_minutes: number;
23169
+ total_cents: number;
23170
+ total_minutes: number;
23171
+ }[];
23172
+ };
22886
23173
  wo_create_from_source: {
22887
23174
  Args: {
22888
23175
  _payload?: import("../integrations/supabase/types").Json;
@@ -22921,7 +23208,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
22921
23208
  };
22922
23209
  CompositeTypes: { [_ in never]: never; };
22923
23210
  }, {
22924
- PostgrestVersion: "14.5";
23211
+ PostgrestVersion: "14.17";
22925
23212
  }>;
22926
23213
  userId: string;
22927
23214
  claims: import("@supabase/auth-js").User;
@@ -33621,6 +33908,222 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
33621
33908
  };
33622
33909
  Relationships: [];
33623
33910
  };
33911
+ maps_addresses: {
33912
+ Row: {
33913
+ address_hash: string;
33914
+ created_at: string;
33915
+ error_reason: string | null;
33916
+ formatted_address: string | null;
33917
+ id: string;
33918
+ lat: number | null;
33919
+ lng: number | null;
33920
+ place_id: string | null;
33921
+ raw_address: string;
33922
+ resolved_at: string | null;
33923
+ status: string;
33924
+ updated_at: string;
33925
+ };
33926
+ Insert: {
33927
+ address_hash: string;
33928
+ created_at?: string;
33929
+ error_reason?: string | null;
33930
+ formatted_address?: string | null;
33931
+ id?: string;
33932
+ lat?: number | null;
33933
+ lng?: number | null;
33934
+ place_id?: string | null;
33935
+ raw_address: string;
33936
+ resolved_at?: string | null;
33937
+ status?: string;
33938
+ updated_at?: string;
33939
+ };
33940
+ Update: {
33941
+ address_hash?: string;
33942
+ created_at?: string;
33943
+ error_reason?: string | null;
33944
+ formatted_address?: string | null;
33945
+ id?: string;
33946
+ lat?: number | null;
33947
+ lng?: number | null;
33948
+ place_id?: string | null;
33949
+ raw_address?: string;
33950
+ resolved_at?: string | null;
33951
+ status?: string;
33952
+ updated_at?: string;
33953
+ };
33954
+ Relationships: [];
33955
+ };
33956
+ maps_request_queue: {
33957
+ Row: {
33958
+ attempts: number;
33959
+ created_at: string;
33960
+ destination_hash: string | null;
33961
+ id: string;
33962
+ kind: string;
33963
+ last_error: string | null;
33964
+ mode: string;
33965
+ origin_hash: string | null;
33966
+ processed_at: string | null;
33967
+ raw_destination: string | null;
33968
+ raw_origin: string | null;
33969
+ requested_by: string | null;
33970
+ status: string;
33971
+ updated_at: string;
33972
+ };
33973
+ Insert: {
33974
+ attempts?: number;
33975
+ created_at?: string;
33976
+ destination_hash?: string | null;
33977
+ id?: string;
33978
+ kind: string;
33979
+ last_error?: string | null;
33980
+ mode?: string;
33981
+ origin_hash?: string | null;
33982
+ processed_at?: string | null;
33983
+ raw_destination?: string | null;
33984
+ raw_origin?: string | null;
33985
+ requested_by?: string | null;
33986
+ status?: string;
33987
+ updated_at?: string;
33988
+ };
33989
+ Update: {
33990
+ attempts?: number;
33991
+ created_at?: string;
33992
+ destination_hash?: string | null;
33993
+ id?: string;
33994
+ kind?: string;
33995
+ last_error?: string | null;
33996
+ mode?: string;
33997
+ origin_hash?: string | null;
33998
+ processed_at?: string | null;
33999
+ raw_destination?: string | null;
34000
+ raw_origin?: string | null;
34001
+ requested_by?: string | null;
34002
+ status?: string;
34003
+ updated_at?: string;
34004
+ };
34005
+ Relationships: [];
34006
+ };
34007
+ maps_settings: {
34008
+ Row: {
34009
+ allow_estimate_fallback: boolean;
34010
+ cache_ttl_days: number;
34011
+ created_at: string;
34012
+ daily_call_limit: number;
34013
+ id: string;
34014
+ last_error: string | null;
34015
+ last_error_at: string | null;
34016
+ last_success_at: string | null;
34017
+ updated_at: string;
34018
+ };
34019
+ Insert: {
34020
+ allow_estimate_fallback?: boolean;
34021
+ cache_ttl_days?: number;
34022
+ created_at?: string;
34023
+ daily_call_limit?: number;
34024
+ id?: string;
34025
+ last_error?: string | null;
34026
+ last_error_at?: string | null;
34027
+ last_success_at?: string | null;
34028
+ updated_at?: string;
34029
+ };
34030
+ Update: {
34031
+ allow_estimate_fallback?: boolean;
34032
+ cache_ttl_days?: number;
34033
+ created_at?: string;
34034
+ daily_call_limit?: number;
34035
+ id?: string;
34036
+ last_error?: string | null;
34037
+ last_error_at?: string | null;
34038
+ last_success_at?: string | null;
34039
+ updated_at?: string;
34040
+ };
34041
+ Relationships: [];
34042
+ };
34043
+ maps_travel_times: {
34044
+ Row: {
34045
+ created_at: string;
34046
+ destination_id: string;
34047
+ distance_m: number | null;
34048
+ duration_sec: number;
34049
+ expires_at: string;
34050
+ id: string;
34051
+ mode: string;
34052
+ origin_id: string;
34053
+ source: string;
34054
+ updated_at: string;
34055
+ };
34056
+ Insert: {
34057
+ created_at?: string;
34058
+ destination_id: string;
34059
+ distance_m?: number | null;
34060
+ duration_sec: number;
34061
+ expires_at?: string;
34062
+ id?: string;
34063
+ mode?: string;
34064
+ origin_id: string;
34065
+ source?: string;
34066
+ updated_at?: string;
34067
+ };
34068
+ Update: {
34069
+ created_at?: string;
34070
+ destination_id?: string;
34071
+ distance_m?: number | null;
34072
+ duration_sec?: number;
34073
+ expires_at?: string;
34074
+ id?: string;
34075
+ mode?: string;
34076
+ origin_id?: string;
34077
+ source?: string;
34078
+ updated_at?: string;
34079
+ };
34080
+ Relationships: [{
34081
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
34082
+ columns: ["destination_id"];
34083
+ isOneToOne: false;
34084
+ referencedRelation: "maps_addresses";
34085
+ referencedColumns: ["id"];
34086
+ }, {
34087
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
34088
+ columns: ["origin_id"];
34089
+ isOneToOne: false;
34090
+ referencedRelation: "maps_addresses";
34091
+ referencedColumns: ["id"];
34092
+ }];
34093
+ };
34094
+ maps_usage_log: {
34095
+ Row: {
34096
+ cache_hits: number;
34097
+ call_type: string;
34098
+ created_at: string;
34099
+ day: string;
34100
+ detail: string | null;
34101
+ elements: number;
34102
+ id: string;
34103
+ outcome: string;
34104
+ };
34105
+ Insert: {
34106
+ cache_hits?: number;
34107
+ call_type: string;
34108
+ created_at?: string;
34109
+ day?: string;
34110
+ detail?: string | null;
34111
+ elements?: number;
34112
+ id?: string;
34113
+ outcome?: string;
34114
+ };
34115
+ Update: {
34116
+ cache_hits?: number;
34117
+ call_type?: string;
34118
+ created_at?: string;
34119
+ day?: string;
34120
+ detail?: string | null;
34121
+ elements?: number;
34122
+ id?: string;
34123
+ outcome?: string;
34124
+ };
34125
+ Relationships: [];
34126
+ };
33624
34127
  material_usage: {
33625
34128
  Row: {
33626
34129
  created_at: string;
@@ -36731,6 +37234,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36731
37234
  created_at: string;
36732
37235
  driver: string;
36733
37236
  extern_printer_id: string | null;
37237
+ formaten_bijgewerkt_op: string | null;
36734
37238
  id: string;
36735
37239
  ip_adres: string | null;
36736
37240
  laatst_gezien: string | null;
@@ -36738,6 +37242,8 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36738
37242
  merk: string;
36739
37243
  naam: string;
36740
37244
  omschrijving: string;
37245
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
37246
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
36741
37247
  online: boolean;
36742
37248
  papierformaat: string;
36743
37249
  poort: number | null;
@@ -36753,6 +37259,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36753
37259
  created_at?: string;
36754
37260
  driver?: string;
36755
37261
  extern_printer_id?: string | null;
37262
+ formaten_bijgewerkt_op?: string | null;
36756
37263
  id?: string;
36757
37264
  ip_adres?: string | null;
36758
37265
  laatst_gezien?: string | null;
@@ -36760,6 +37267,8 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36760
37267
  merk?: string;
36761
37268
  naam: string;
36762
37269
  omschrijving?: string;
37270
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
37271
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
36763
37272
  online?: boolean;
36764
37273
  papierformaat?: string;
36765
37274
  poort?: number | null;
@@ -36775,6 +37284,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36775
37284
  created_at?: string;
36776
37285
  driver?: string;
36777
37286
  extern_printer_id?: string | null;
37287
+ formaten_bijgewerkt_op?: string | null;
36778
37288
  id?: string;
36779
37289
  ip_adres?: string | null;
36780
37290
  laatst_gezien?: string | null;
@@ -36782,6 +37292,8 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36782
37292
  merk?: string;
36783
37293
  naam?: string;
36784
37294
  omschrijving?: string;
37295
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
37296
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
36785
37297
  online?: boolean;
36786
37298
  papierformaat?: string;
36787
37299
  poort?: number | null;
@@ -41550,6 +42062,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
41550
42062
  werkbon_package_items: {
41551
42063
  Row: {
41552
42064
  article_number: string | null;
42065
+ artikel_id: string | null;
41553
42066
  created_at: string;
41554
42067
  gtin: string | null;
41555
42068
  id: string;
@@ -41567,6 +42080,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
41567
42080
  };
41568
42081
  Insert: {
41569
42082
  article_number?: string | null;
42083
+ artikel_id?: string | null;
41570
42084
  created_at?: string;
41571
42085
  gtin?: string | null;
41572
42086
  id?: string;
@@ -41584,6 +42098,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
41584
42098
  };
41585
42099
  Update: {
41586
42100
  article_number?: string | null;
42101
+ artikel_id?: string | null;
41587
42102
  created_at?: string;
41588
42103
  gtin?: string | null;
41589
42104
  id?: string;
@@ -41600,6 +42115,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
41600
42115
  updated_at?: string;
41601
42116
  };
41602
42117
  Relationships: [{
42118
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
42119
+ columns: ["artikel_id"];
42120
+ isOneToOne: false;
42121
+ referencedRelation: "artikelen_cache";
42122
+ referencedColumns: ["id"];
42123
+ }, {
41603
42124
  foreignKeyName: "werkbon_package_items_package_id_fkey";
41604
42125
  columns: ["package_id"];
41605
42126
  isOneToOne: false;
@@ -42822,6 +43343,20 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
42822
43343
  referencedColumns: ["id"];
42823
43344
  }];
42824
43345
  };
43346
+ v_werkbon_totalen: {
43347
+ Row: {
43348
+ packages_cents: number | null;
43349
+ packages_minutes: number | null;
43350
+ werkbon_id: string | null;
43351
+ };
43352
+ Relationships: [{
43353
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
43354
+ columns: ["werkbon_id"];
43355
+ isOneToOne: false;
43356
+ referencedRelation: "werkbonnen";
43357
+ referencedColumns: ["id"];
43358
+ }];
43359
+ };
42825
43360
  };
42826
43361
  Functions: {
42827
43362
  _floriday_schedule_job: {
@@ -44758,6 +45293,25 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
44758
45293
  };
44759
45294
  Returns: string;
44760
45295
  };
45296
+ pakket_suggesties_voor_tekst: {
45297
+ Args: {
45298
+ _tekst: string;
45299
+ };
45300
+ Returns: {
45301
+ hit_type: string;
45302
+ package_id: string;
45303
+ priority: number;
45304
+ }[];
45305
+ };
45306
+ pakket_voor_reistijd: {
45307
+ Args: {
45308
+ _minuten: number;
45309
+ };
45310
+ Returns: {
45311
+ package_id: string;
45312
+ priority: number;
45313
+ }[];
45314
+ };
44761
45315
  pick_active_printers: {
44762
45316
  Args: never;
44763
45317
  Returns: {
@@ -44966,6 +45520,10 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
44966
45520
  omschrijving: string;
44967
45521
  }[];
44968
45522
  };
45523
+ pick_reference_data_status: {
45524
+ Args: never;
45525
+ Returns: import("../integrations/supabase/types").Json;
45526
+ };
44969
45527
  pick_release_expired_locks: {
44970
45528
  Args: never;
44971
45529
  Returns: number;
@@ -45030,6 +45588,10 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
45030
45588
  isSetofReturn: false;
45031
45589
  };
45032
45590
  };
45591
+ pick_seed_reference_data: {
45592
+ Args: never;
45593
+ Returns: import("../integrations/supabase/types").Json;
45594
+ };
45033
45595
  pick_set_station_print_plek: {
45034
45596
  Args: {
45035
45597
  _print_plek_id: string;
@@ -45808,6 +46370,18 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
45808
46370
  Args: never;
45809
46371
  Returns: string;
45810
46372
  };
46373
+ werkbon_totalen: {
46374
+ Args: {
46375
+ _werkbon_id: string;
46376
+ };
46377
+ Returns: {
46378
+ materials_cents: number;
46379
+ packages_cents: number;
46380
+ packages_minutes: number;
46381
+ total_cents: number;
46382
+ total_minutes: number;
46383
+ }[];
46384
+ };
45811
46385
  wo_create_from_source: {
45812
46386
  Args: {
45813
46387
  _payload?: import("../integrations/supabase/types").Json;
@@ -45846,7 +46420,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
45846
46420
  };
45847
46421
  CompositeTypes: { [_ in never]: never; };
45848
46422
  }, {
45849
- PostgrestVersion: "14.5";
46423
+ PostgrestVersion: "14.17";
45850
46424
  }>;
45851
46425
  userId: string;
45852
46426
  claims: import("@supabase/auth-js").User;
@@ -56556,6 +57130,222 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
56556
57130
  };
56557
57131
  Relationships: [];
56558
57132
  };
57133
+ maps_addresses: {
57134
+ Row: {
57135
+ address_hash: string;
57136
+ created_at: string;
57137
+ error_reason: string | null;
57138
+ formatted_address: string | null;
57139
+ id: string;
57140
+ lat: number | null;
57141
+ lng: number | null;
57142
+ place_id: string | null;
57143
+ raw_address: string;
57144
+ resolved_at: string | null;
57145
+ status: string;
57146
+ updated_at: string;
57147
+ };
57148
+ Insert: {
57149
+ address_hash: string;
57150
+ created_at?: string;
57151
+ error_reason?: string | null;
57152
+ formatted_address?: string | null;
57153
+ id?: string;
57154
+ lat?: number | null;
57155
+ lng?: number | null;
57156
+ place_id?: string | null;
57157
+ raw_address: string;
57158
+ resolved_at?: string | null;
57159
+ status?: string;
57160
+ updated_at?: string;
57161
+ };
57162
+ Update: {
57163
+ address_hash?: string;
57164
+ created_at?: string;
57165
+ error_reason?: string | null;
57166
+ formatted_address?: string | null;
57167
+ id?: string;
57168
+ lat?: number | null;
57169
+ lng?: number | null;
57170
+ place_id?: string | null;
57171
+ raw_address?: string;
57172
+ resolved_at?: string | null;
57173
+ status?: string;
57174
+ updated_at?: string;
57175
+ };
57176
+ Relationships: [];
57177
+ };
57178
+ maps_request_queue: {
57179
+ Row: {
57180
+ attempts: number;
57181
+ created_at: string;
57182
+ destination_hash: string | null;
57183
+ id: string;
57184
+ kind: string;
57185
+ last_error: string | null;
57186
+ mode: string;
57187
+ origin_hash: string | null;
57188
+ processed_at: string | null;
57189
+ raw_destination: string | null;
57190
+ raw_origin: string | null;
57191
+ requested_by: string | null;
57192
+ status: string;
57193
+ updated_at: string;
57194
+ };
57195
+ Insert: {
57196
+ attempts?: number;
57197
+ created_at?: string;
57198
+ destination_hash?: string | null;
57199
+ id?: string;
57200
+ kind: string;
57201
+ last_error?: string | null;
57202
+ mode?: string;
57203
+ origin_hash?: string | null;
57204
+ processed_at?: string | null;
57205
+ raw_destination?: string | null;
57206
+ raw_origin?: string | null;
57207
+ requested_by?: string | null;
57208
+ status?: string;
57209
+ updated_at?: string;
57210
+ };
57211
+ Update: {
57212
+ attempts?: number;
57213
+ created_at?: string;
57214
+ destination_hash?: string | null;
57215
+ id?: string;
57216
+ kind?: string;
57217
+ last_error?: string | null;
57218
+ mode?: string;
57219
+ origin_hash?: string | null;
57220
+ processed_at?: string | null;
57221
+ raw_destination?: string | null;
57222
+ raw_origin?: string | null;
57223
+ requested_by?: string | null;
57224
+ status?: string;
57225
+ updated_at?: string;
57226
+ };
57227
+ Relationships: [];
57228
+ };
57229
+ maps_settings: {
57230
+ Row: {
57231
+ allow_estimate_fallback: boolean;
57232
+ cache_ttl_days: number;
57233
+ created_at: string;
57234
+ daily_call_limit: number;
57235
+ id: string;
57236
+ last_error: string | null;
57237
+ last_error_at: string | null;
57238
+ last_success_at: string | null;
57239
+ updated_at: string;
57240
+ };
57241
+ Insert: {
57242
+ allow_estimate_fallback?: boolean;
57243
+ cache_ttl_days?: number;
57244
+ created_at?: string;
57245
+ daily_call_limit?: number;
57246
+ id?: string;
57247
+ last_error?: string | null;
57248
+ last_error_at?: string | null;
57249
+ last_success_at?: string | null;
57250
+ updated_at?: string;
57251
+ };
57252
+ Update: {
57253
+ allow_estimate_fallback?: boolean;
57254
+ cache_ttl_days?: number;
57255
+ created_at?: string;
57256
+ daily_call_limit?: number;
57257
+ id?: string;
57258
+ last_error?: string | null;
57259
+ last_error_at?: string | null;
57260
+ last_success_at?: string | null;
57261
+ updated_at?: string;
57262
+ };
57263
+ Relationships: [];
57264
+ };
57265
+ maps_travel_times: {
57266
+ Row: {
57267
+ created_at: string;
57268
+ destination_id: string;
57269
+ distance_m: number | null;
57270
+ duration_sec: number;
57271
+ expires_at: string;
57272
+ id: string;
57273
+ mode: string;
57274
+ origin_id: string;
57275
+ source: string;
57276
+ updated_at: string;
57277
+ };
57278
+ Insert: {
57279
+ created_at?: string;
57280
+ destination_id: string;
57281
+ distance_m?: number | null;
57282
+ duration_sec: number;
57283
+ expires_at?: string;
57284
+ id?: string;
57285
+ mode?: string;
57286
+ origin_id: string;
57287
+ source?: string;
57288
+ updated_at?: string;
57289
+ };
57290
+ Update: {
57291
+ created_at?: string;
57292
+ destination_id?: string;
57293
+ distance_m?: number | null;
57294
+ duration_sec?: number;
57295
+ expires_at?: string;
57296
+ id?: string;
57297
+ mode?: string;
57298
+ origin_id?: string;
57299
+ source?: string;
57300
+ updated_at?: string;
57301
+ };
57302
+ Relationships: [{
57303
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
57304
+ columns: ["destination_id"];
57305
+ isOneToOne: false;
57306
+ referencedRelation: "maps_addresses";
57307
+ referencedColumns: ["id"];
57308
+ }, {
57309
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
57310
+ columns: ["origin_id"];
57311
+ isOneToOne: false;
57312
+ referencedRelation: "maps_addresses";
57313
+ referencedColumns: ["id"];
57314
+ }];
57315
+ };
57316
+ maps_usage_log: {
57317
+ Row: {
57318
+ cache_hits: number;
57319
+ call_type: string;
57320
+ created_at: string;
57321
+ day: string;
57322
+ detail: string | null;
57323
+ elements: number;
57324
+ id: string;
57325
+ outcome: string;
57326
+ };
57327
+ Insert: {
57328
+ cache_hits?: number;
57329
+ call_type: string;
57330
+ created_at?: string;
57331
+ day?: string;
57332
+ detail?: string | null;
57333
+ elements?: number;
57334
+ id?: string;
57335
+ outcome?: string;
57336
+ };
57337
+ Update: {
57338
+ cache_hits?: number;
57339
+ call_type?: string;
57340
+ created_at?: string;
57341
+ day?: string;
57342
+ detail?: string | null;
57343
+ elements?: number;
57344
+ id?: string;
57345
+ outcome?: string;
57346
+ };
57347
+ Relationships: [];
57348
+ };
56559
57349
  material_usage: {
56560
57350
  Row: {
56561
57351
  created_at: string;
@@ -59666,6 +60456,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
59666
60456
  created_at: string;
59667
60457
  driver: string;
59668
60458
  extern_printer_id: string | null;
60459
+ formaten_bijgewerkt_op: string | null;
59669
60460
  id: string;
59670
60461
  ip_adres: string | null;
59671
60462
  laatst_gezien: string | null;
@@ -59673,6 +60464,8 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
59673
60464
  merk: string;
59674
60465
  naam: string;
59675
60466
  omschrijving: string;
60467
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
60468
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
59676
60469
  online: boolean;
59677
60470
  papierformaat: string;
59678
60471
  poort: number | null;
@@ -59688,6 +60481,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
59688
60481
  created_at?: string;
59689
60482
  driver?: string;
59690
60483
  extern_printer_id?: string | null;
60484
+ formaten_bijgewerkt_op?: string | null;
59691
60485
  id?: string;
59692
60486
  ip_adres?: string | null;
59693
60487
  laatst_gezien?: string | null;
@@ -59695,6 +60489,8 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
59695
60489
  merk?: string;
59696
60490
  naam: string;
59697
60491
  omschrijving?: string;
60492
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
60493
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
59698
60494
  online?: boolean;
59699
60495
  papierformaat?: string;
59700
60496
  poort?: number | null;
@@ -59710,6 +60506,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
59710
60506
  created_at?: string;
59711
60507
  driver?: string;
59712
60508
  extern_printer_id?: string | null;
60509
+ formaten_bijgewerkt_op?: string | null;
59713
60510
  id?: string;
59714
60511
  ip_adres?: string | null;
59715
60512
  laatst_gezien?: string | null;
@@ -59717,6 +60514,8 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
59717
60514
  merk?: string;
59718
60515
  naam?: string;
59719
60516
  omschrijving?: string;
60517
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
60518
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
59720
60519
  online?: boolean;
59721
60520
  papierformaat?: string;
59722
60521
  poort?: number | null;
@@ -64485,6 +65284,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
64485
65284
  werkbon_package_items: {
64486
65285
  Row: {
64487
65286
  article_number: string | null;
65287
+ artikel_id: string | null;
64488
65288
  created_at: string;
64489
65289
  gtin: string | null;
64490
65290
  id: string;
@@ -64502,6 +65302,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
64502
65302
  };
64503
65303
  Insert: {
64504
65304
  article_number?: string | null;
65305
+ artikel_id?: string | null;
64505
65306
  created_at?: string;
64506
65307
  gtin?: string | null;
64507
65308
  id?: string;
@@ -64519,6 +65320,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
64519
65320
  };
64520
65321
  Update: {
64521
65322
  article_number?: string | null;
65323
+ artikel_id?: string | null;
64522
65324
  created_at?: string;
64523
65325
  gtin?: string | null;
64524
65326
  id?: string;
@@ -64535,6 +65337,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
64535
65337
  updated_at?: string;
64536
65338
  };
64537
65339
  Relationships: [{
65340
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
65341
+ columns: ["artikel_id"];
65342
+ isOneToOne: false;
65343
+ referencedRelation: "artikelen_cache";
65344
+ referencedColumns: ["id"];
65345
+ }, {
64538
65346
  foreignKeyName: "werkbon_package_items_package_id_fkey";
64539
65347
  columns: ["package_id"];
64540
65348
  isOneToOne: false;
@@ -65757,6 +66565,20 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
65757
66565
  referencedColumns: ["id"];
65758
66566
  }];
65759
66567
  };
66568
+ v_werkbon_totalen: {
66569
+ Row: {
66570
+ packages_cents: number | null;
66571
+ packages_minutes: number | null;
66572
+ werkbon_id: string | null;
66573
+ };
66574
+ Relationships: [{
66575
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
66576
+ columns: ["werkbon_id"];
66577
+ isOneToOne: false;
66578
+ referencedRelation: "werkbonnen";
66579
+ referencedColumns: ["id"];
66580
+ }];
66581
+ };
65760
66582
  };
65761
66583
  Functions: {
65762
66584
  _floriday_schedule_job: {
@@ -67693,6 +68515,25 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
67693
68515
  };
67694
68516
  Returns: string;
67695
68517
  };
68518
+ pakket_suggesties_voor_tekst: {
68519
+ Args: {
68520
+ _tekst: string;
68521
+ };
68522
+ Returns: {
68523
+ hit_type: string;
68524
+ package_id: string;
68525
+ priority: number;
68526
+ }[];
68527
+ };
68528
+ pakket_voor_reistijd: {
68529
+ Args: {
68530
+ _minuten: number;
68531
+ };
68532
+ Returns: {
68533
+ package_id: string;
68534
+ priority: number;
68535
+ }[];
68536
+ };
67696
68537
  pick_active_printers: {
67697
68538
  Args: never;
67698
68539
  Returns: {
@@ -67901,6 +68742,10 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
67901
68742
  omschrijving: string;
67902
68743
  }[];
67903
68744
  };
68745
+ pick_reference_data_status: {
68746
+ Args: never;
68747
+ Returns: import("../integrations/supabase/types").Json;
68748
+ };
67904
68749
  pick_release_expired_locks: {
67905
68750
  Args: never;
67906
68751
  Returns: number;
@@ -67965,6 +68810,10 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
67965
68810
  isSetofReturn: false;
67966
68811
  };
67967
68812
  };
68813
+ pick_seed_reference_data: {
68814
+ Args: never;
68815
+ Returns: import("../integrations/supabase/types").Json;
68816
+ };
67968
68817
  pick_set_station_print_plek: {
67969
68818
  Args: {
67970
68819
  _print_plek_id: string;
@@ -68743,6 +69592,18 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68743
69592
  Args: never;
68744
69593
  Returns: string;
68745
69594
  };
69595
+ werkbon_totalen: {
69596
+ Args: {
69597
+ _werkbon_id: string;
69598
+ };
69599
+ Returns: {
69600
+ materials_cents: number;
69601
+ packages_cents: number;
69602
+ packages_minutes: number;
69603
+ total_cents: number;
69604
+ total_minutes: number;
69605
+ }[];
69606
+ };
68746
69607
  wo_create_from_source: {
68747
69608
  Args: {
68748
69609
  _payload?: import("../integrations/supabase/types").Json;
@@ -68781,7 +69642,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68781
69642
  };
68782
69643
  CompositeTypes: { [_ in never]: never; };
68783
69644
  }, {
68784
- PostgrestVersion: "14.5";
69645
+ PostgrestVersion: "14.17";
68785
69646
  }>;
68786
69647
  userId: string;
68787
69648
  claims: import("@supabase/auth-js").User;
@@ -79509,6 +80370,222 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
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 getSalesOrderDetail: import("@tanstack/start-client-core").
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 getSalesOrderDetail: import("@tanstack/start-client-core").
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 getSalesOrderDetail: import("@tanstack/start-client-core").
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 getSalesOrderDetail: import("@tanstack/start-client-core").
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 getSalesOrderDetail: import("@tanstack/start-client-core").
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 getSalesOrderDetail: import("@tanstack/start-client-core").
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 getSalesOrderDetail: import("@tanstack/start-client-core").
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 getSalesOrderDetail: import("@tanstack/start-client-core").
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 getSalesOrderDetail: import("@tanstack/start-client-core").
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 getSalesOrderDetail: import("@tanstack/start-client-core").
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 getSalesOrderDetail: import("@tanstack/start-client-core").
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 getSalesOrderDetail: import("@tanstack/start-client-core").
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: {
@@ -90807,117 +91935,125 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
90807
91935
  isSetofReturn: false;
90808
91936
  };
90809
91937
  };
90810
- pick_current_pick_day: {
91938
+ pick_current_pick_day: {
91939
+ Args: never;
91940
+ Returns: string;
91941
+ };
91942
+ pick_day_counts: {
91943
+ Args: {
91944
+ _pick_day?: string;
91945
+ _screen_id?: string;
91946
+ _station_id?: string;
91947
+ };
91948
+ Returns: import("../integrations/supabase/types").Json;
91949
+ };
91950
+ pick_document_layout_data: {
91951
+ Args: {
91952
+ _layout_id: string;
91953
+ };
91954
+ Returns: import("../integrations/supabase/types").Json;
91955
+ };
91956
+ pick_enqueue_print_job: {
91957
+ Args: {
91958
+ _printer_id?: string;
91959
+ _queue_item_id: string;
91960
+ _session_id?: string;
91961
+ };
91962
+ Returns: string;
91963
+ };
91964
+ pick_order_context: {
91965
+ Args: {
91966
+ _order_id?: string;
91967
+ _order_number?: string;
91968
+ };
91969
+ Returns: import("../integrations/supabase/types").Json;
91970
+ };
91971
+ pick_print_job_status: {
91972
+ Args: {
91973
+ _job_id: string;
91974
+ };
91975
+ Returns: import("../integrations/supabase/types").Json;
91976
+ };
91977
+ pick_print_plekken: {
91978
+ Args: never;
91979
+ Returns: {
91980
+ id: string;
91981
+ naam: string;
91982
+ omschrijving: string;
91983
+ }[];
91984
+ };
91985
+ pick_reference_data_status: {
91986
+ Args: never;
91987
+ Returns: import("../integrations/supabase/types").Json;
91988
+ };
91989
+ pick_release_expired_locks: {
91990
+ Args: never;
91991
+ Returns: number;
91992
+ };
91993
+ pick_release_lock: {
91994
+ Args: {
91995
+ _queue_item_id: string;
91996
+ };
91997
+ Returns: undefined;
91998
+ };
91999
+ pick_reprint_document: {
92000
+ Args: {
92001
+ _queue_item_id: string;
92002
+ _session_id: string;
92003
+ _throttle_seconds?: number;
92004
+ };
92005
+ Returns: string;
92006
+ };
92007
+ pick_reset_print: {
92008
+ Args: {
92009
+ _queue_item_id: string;
92010
+ _session_id: string;
92011
+ };
92012
+ Returns: {
92013
+ announced_at: string;
92014
+ assigned_user_id: string | null;
92015
+ barcode: string | null;
92016
+ cancelled_at: string | null;
92017
+ cart_count: number;
92018
+ completed_at: string | null;
92019
+ country_code: string | null;
92020
+ created_at: string;
92021
+ customer_name: string | null;
92022
+ delivery_address: string | null;
92023
+ document_number: string | null;
92024
+ document_type_id: string | null;
92025
+ due_at: string | null;
92026
+ id: string;
92027
+ is_urgent: boolean;
92028
+ line_count: number;
92029
+ order_number: string | null;
92030
+ order_type: string | null;
92031
+ payload: import("../integrations/supabase/types").Json;
92032
+ print_count: number;
92033
+ print_job_id: string | null;
92034
+ printed_at: string | null;
92035
+ printed_by: string | null;
92036
+ printer_id: string | null;
92037
+ priority: number;
92038
+ reference: string | null;
92039
+ route: string | null;
92040
+ screen_id: string | null;
92041
+ station_id: string | null;
92042
+ status_id: string | null;
92043
+ updated_at: string;
92044
+ warnings: import("../integrations/supabase/types").Json;
92045
+ };
92046
+ SetofOptions: {
92047
+ from: "*";
92048
+ to: "pick_queue";
92049
+ isOneToOne: true;
92050
+ isSetofReturn: false;
92051
+ };
92052
+ };
92053
+ pick_seed_reference_data: {
90811
92054
  Args: never;
90812
- Returns: string;
90813
- };
90814
- pick_day_counts: {
90815
- Args: {
90816
- _pick_day?: string;
90817
- _screen_id?: string;
90818
- _station_id?: string;
90819
- };
90820
92055
  Returns: import("../integrations/supabase/types").Json;
90821
92056
  };
90822
- pick_document_layout_data: {
90823
- Args: {
90824
- _layout_id: string;
90825
- };
90826
- Returns: import("../integrations/supabase/types").Json;
90827
- };
90828
- pick_enqueue_print_job: {
90829
- Args: {
90830
- _printer_id?: string;
90831
- _queue_item_id: string;
90832
- _session_id?: string;
90833
- };
90834
- Returns: string;
90835
- };
90836
- pick_order_context: {
90837
- Args: {
90838
- _order_id?: string;
90839
- _order_number?: string;
90840
- };
90841
- Returns: import("../integrations/supabase/types").Json;
90842
- };
90843
- pick_print_job_status: {
90844
- Args: {
90845
- _job_id: string;
90846
- };
90847
- Returns: import("../integrations/supabase/types").Json;
90848
- };
90849
- pick_print_plekken: {
90850
- Args: never;
90851
- Returns: {
90852
- id: string;
90853
- naam: string;
90854
- omschrijving: string;
90855
- }[];
90856
- };
90857
- pick_release_expired_locks: {
90858
- Args: never;
90859
- Returns: number;
90860
- };
90861
- pick_release_lock: {
90862
- Args: {
90863
- _queue_item_id: string;
90864
- };
90865
- Returns: undefined;
90866
- };
90867
- pick_reprint_document: {
90868
- Args: {
90869
- _queue_item_id: string;
90870
- _session_id: string;
90871
- _throttle_seconds?: number;
90872
- };
90873
- Returns: string;
90874
- };
90875
- pick_reset_print: {
90876
- Args: {
90877
- _queue_item_id: string;
90878
- _session_id: string;
90879
- };
90880
- Returns: {
90881
- announced_at: string;
90882
- assigned_user_id: string | null;
90883
- barcode: string | null;
90884
- cancelled_at: string | null;
90885
- cart_count: number;
90886
- completed_at: string | null;
90887
- country_code: string | null;
90888
- created_at: string;
90889
- customer_name: string | null;
90890
- delivery_address: string | null;
90891
- document_number: string | null;
90892
- document_type_id: string | null;
90893
- due_at: string | null;
90894
- id: string;
90895
- is_urgent: boolean;
90896
- line_count: number;
90897
- order_number: string | null;
90898
- order_type: string | null;
90899
- payload: import("../integrations/supabase/types").Json;
90900
- print_count: number;
90901
- print_job_id: string | null;
90902
- printed_at: string | null;
90903
- printed_by: string | null;
90904
- printer_id: string | null;
90905
- priority: number;
90906
- reference: string | null;
90907
- route: string | null;
90908
- screen_id: string | null;
90909
- station_id: string | null;
90910
- status_id: string | null;
90911
- updated_at: string;
90912
- warnings: import("../integrations/supabase/types").Json;
90913
- };
90914
- SetofOptions: {
90915
- from: "*";
90916
- to: "pick_queue";
90917
- isOneToOne: true;
90918
- isSetofReturn: false;
90919
- };
90920
- };
90921
92057
  pick_set_station_print_plek: {
90922
92058
  Args: {
90923
92059
  _print_plek_id: string;
@@ -91696,6 +92832,18 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
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 getSalesOrderDetail: import("@tanstack/start-client-core").
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;
@@ -102433,6 +103581,222 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
102433
103581
  };
102434
103582
  Relationships: [];
102435
103583
  };
103584
+ maps_addresses: {
103585
+ Row: {
103586
+ address_hash: string;
103587
+ created_at: string;
103588
+ error_reason: string | null;
103589
+ formatted_address: string | null;
103590
+ id: string;
103591
+ lat: number | null;
103592
+ lng: number | null;
103593
+ place_id: string | null;
103594
+ raw_address: string;
103595
+ resolved_at: string | null;
103596
+ status: string;
103597
+ updated_at: string;
103598
+ };
103599
+ Insert: {
103600
+ address_hash: string;
103601
+ created_at?: string;
103602
+ error_reason?: string | null;
103603
+ formatted_address?: string | null;
103604
+ id?: string;
103605
+ lat?: number | null;
103606
+ lng?: number | null;
103607
+ place_id?: string | null;
103608
+ raw_address: string;
103609
+ resolved_at?: string | null;
103610
+ status?: string;
103611
+ updated_at?: string;
103612
+ };
103613
+ Update: {
103614
+ address_hash?: string;
103615
+ created_at?: string;
103616
+ error_reason?: string | null;
103617
+ formatted_address?: string | null;
103618
+ id?: string;
103619
+ lat?: number | null;
103620
+ lng?: number | null;
103621
+ place_id?: string | null;
103622
+ raw_address?: string;
103623
+ resolved_at?: string | null;
103624
+ status?: string;
103625
+ updated_at?: string;
103626
+ };
103627
+ Relationships: [];
103628
+ };
103629
+ maps_request_queue: {
103630
+ Row: {
103631
+ attempts: number;
103632
+ created_at: string;
103633
+ destination_hash: string | null;
103634
+ id: string;
103635
+ kind: string;
103636
+ last_error: string | null;
103637
+ mode: string;
103638
+ origin_hash: string | null;
103639
+ processed_at: string | null;
103640
+ raw_destination: string | null;
103641
+ raw_origin: string | null;
103642
+ requested_by: string | null;
103643
+ status: string;
103644
+ updated_at: string;
103645
+ };
103646
+ Insert: {
103647
+ attempts?: number;
103648
+ created_at?: string;
103649
+ destination_hash?: string | null;
103650
+ id?: string;
103651
+ kind: string;
103652
+ last_error?: string | null;
103653
+ mode?: string;
103654
+ origin_hash?: string | null;
103655
+ processed_at?: string | null;
103656
+ raw_destination?: string | null;
103657
+ raw_origin?: string | null;
103658
+ requested_by?: string | null;
103659
+ status?: string;
103660
+ updated_at?: string;
103661
+ };
103662
+ Update: {
103663
+ attempts?: number;
103664
+ created_at?: string;
103665
+ destination_hash?: string | null;
103666
+ id?: string;
103667
+ kind?: string;
103668
+ last_error?: string | null;
103669
+ mode?: string;
103670
+ origin_hash?: string | null;
103671
+ processed_at?: string | null;
103672
+ raw_destination?: string | null;
103673
+ raw_origin?: string | null;
103674
+ requested_by?: string | null;
103675
+ status?: string;
103676
+ updated_at?: string;
103677
+ };
103678
+ Relationships: [];
103679
+ };
103680
+ maps_settings: {
103681
+ Row: {
103682
+ allow_estimate_fallback: boolean;
103683
+ cache_ttl_days: number;
103684
+ created_at: string;
103685
+ daily_call_limit: number;
103686
+ id: string;
103687
+ last_error: string | null;
103688
+ last_error_at: string | null;
103689
+ last_success_at: string | null;
103690
+ updated_at: string;
103691
+ };
103692
+ Insert: {
103693
+ allow_estimate_fallback?: boolean;
103694
+ cache_ttl_days?: number;
103695
+ created_at?: string;
103696
+ daily_call_limit?: number;
103697
+ id?: string;
103698
+ last_error?: string | null;
103699
+ last_error_at?: string | null;
103700
+ last_success_at?: string | null;
103701
+ updated_at?: string;
103702
+ };
103703
+ Update: {
103704
+ allow_estimate_fallback?: boolean;
103705
+ cache_ttl_days?: number;
103706
+ created_at?: string;
103707
+ daily_call_limit?: number;
103708
+ id?: string;
103709
+ last_error?: string | null;
103710
+ last_error_at?: string | null;
103711
+ last_success_at?: string | null;
103712
+ updated_at?: string;
103713
+ };
103714
+ Relationships: [];
103715
+ };
103716
+ maps_travel_times: {
103717
+ Row: {
103718
+ created_at: string;
103719
+ destination_id: string;
103720
+ distance_m: number | null;
103721
+ duration_sec: number;
103722
+ expires_at: string;
103723
+ id: string;
103724
+ mode: string;
103725
+ origin_id: string;
103726
+ source: string;
103727
+ updated_at: string;
103728
+ };
103729
+ Insert: {
103730
+ created_at?: string;
103731
+ destination_id: string;
103732
+ distance_m?: number | null;
103733
+ duration_sec: number;
103734
+ expires_at?: string;
103735
+ id?: string;
103736
+ mode?: string;
103737
+ origin_id: string;
103738
+ source?: string;
103739
+ updated_at?: string;
103740
+ };
103741
+ Update: {
103742
+ created_at?: string;
103743
+ destination_id?: string;
103744
+ distance_m?: number | null;
103745
+ duration_sec?: number;
103746
+ expires_at?: string;
103747
+ id?: string;
103748
+ mode?: string;
103749
+ origin_id?: string;
103750
+ source?: string;
103751
+ updated_at?: string;
103752
+ };
103753
+ Relationships: [{
103754
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
103755
+ columns: ["destination_id"];
103756
+ isOneToOne: false;
103757
+ referencedRelation: "maps_addresses";
103758
+ referencedColumns: ["id"];
103759
+ }, {
103760
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
103761
+ columns: ["origin_id"];
103762
+ isOneToOne: false;
103763
+ referencedRelation: "maps_addresses";
103764
+ referencedColumns: ["id"];
103765
+ }];
103766
+ };
103767
+ maps_usage_log: {
103768
+ Row: {
103769
+ cache_hits: number;
103770
+ call_type: string;
103771
+ created_at: string;
103772
+ day: string;
103773
+ detail: string | null;
103774
+ elements: number;
103775
+ id: string;
103776
+ outcome: string;
103777
+ };
103778
+ Insert: {
103779
+ cache_hits?: number;
103780
+ call_type: string;
103781
+ created_at?: string;
103782
+ day?: string;
103783
+ detail?: string | null;
103784
+ elements?: number;
103785
+ id?: string;
103786
+ outcome?: string;
103787
+ };
103788
+ Update: {
103789
+ cache_hits?: number;
103790
+ call_type?: string;
103791
+ created_at?: string;
103792
+ day?: string;
103793
+ detail?: string | null;
103794
+ elements?: number;
103795
+ id?: string;
103796
+ outcome?: string;
103797
+ };
103798
+ Relationships: [];
103799
+ };
102436
103800
  material_usage: {
102437
103801
  Row: {
102438
103802
  created_at: string;
@@ -105543,6 +106907,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
105543
106907
  created_at: string;
105544
106908
  driver: string;
105545
106909
  extern_printer_id: string | null;
106910
+ formaten_bijgewerkt_op: string | null;
105546
106911
  id: string;
105547
106912
  ip_adres: string | null;
105548
106913
  laatst_gezien: string | null;
@@ -105550,6 +106915,8 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
105550
106915
  merk: string;
105551
106916
  naam: string;
105552
106917
  omschrijving: string;
106918
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
106919
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
105553
106920
  online: boolean;
105554
106921
  papierformaat: string;
105555
106922
  poort: number | null;
@@ -105565,6 +106932,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
105565
106932
  created_at?: string;
105566
106933
  driver?: string;
105567
106934
  extern_printer_id?: string | null;
106935
+ formaten_bijgewerkt_op?: string | null;
105568
106936
  id?: string;
105569
106937
  ip_adres?: string | null;
105570
106938
  laatst_gezien?: string | null;
@@ -105572,6 +106940,8 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
105572
106940
  merk?: string;
105573
106941
  naam: string;
105574
106942
  omschrijving?: string;
106943
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
106944
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
105575
106945
  online?: boolean;
105576
106946
  papierformaat?: string;
105577
106947
  poort?: number | null;
@@ -105587,6 +106957,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
105587
106957
  created_at?: string;
105588
106958
  driver?: string;
105589
106959
  extern_printer_id?: string | null;
106960
+ formaten_bijgewerkt_op?: string | null;
105590
106961
  id?: string;
105591
106962
  ip_adres?: string | null;
105592
106963
  laatst_gezien?: string | null;
@@ -105594,6 +106965,8 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
105594
106965
  merk?: string;
105595
106966
  naam?: string;
105596
106967
  omschrijving?: string;
106968
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
106969
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
105597
106970
  online?: boolean;
105598
106971
  papierformaat?: string;
105599
106972
  poort?: number | null;
@@ -110362,6 +111735,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
110362
111735
  werkbon_package_items: {
110363
111736
  Row: {
110364
111737
  article_number: string | null;
111738
+ artikel_id: string | null;
110365
111739
  created_at: string;
110366
111740
  gtin: string | null;
110367
111741
  id: string;
@@ -110379,6 +111753,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
110379
111753
  };
110380
111754
  Insert: {
110381
111755
  article_number?: string | null;
111756
+ artikel_id?: string | null;
110382
111757
  created_at?: string;
110383
111758
  gtin?: string | null;
110384
111759
  id?: string;
@@ -110396,6 +111771,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
110396
111771
  };
110397
111772
  Update: {
110398
111773
  article_number?: string | null;
111774
+ artikel_id?: string | null;
110399
111775
  created_at?: string;
110400
111776
  gtin?: string | null;
110401
111777
  id?: string;
@@ -110412,6 +111788,12 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
110412
111788
  updated_at?: string;
110413
111789
  };
110414
111790
  Relationships: [{
111791
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
111792
+ columns: ["artikel_id"];
111793
+ isOneToOne: false;
111794
+ referencedRelation: "artikelen_cache";
111795
+ referencedColumns: ["id"];
111796
+ }, {
110415
111797
  foreignKeyName: "werkbon_package_items_package_id_fkey";
110416
111798
  columns: ["package_id"];
110417
111799
  isOneToOne: false;
@@ -111634,6 +113016,20 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
111634
113016
  referencedColumns: ["id"];
111635
113017
  }];
111636
113018
  };
113019
+ v_werkbon_totalen: {
113020
+ Row: {
113021
+ packages_cents: number | null;
113022
+ packages_minutes: number | null;
113023
+ werkbon_id: string | null;
113024
+ };
113025
+ Relationships: [{
113026
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
113027
+ columns: ["werkbon_id"];
113028
+ isOneToOne: false;
113029
+ referencedRelation: "werkbonnen";
113030
+ referencedColumns: ["id"];
113031
+ }];
113032
+ };
111637
113033
  };
111638
113034
  Functions: {
111639
113035
  _floriday_schedule_job: {
@@ -113570,6 +114966,25 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
113570
114966
  };
113571
114967
  Returns: string;
113572
114968
  };
114969
+ pakket_suggesties_voor_tekst: {
114970
+ Args: {
114971
+ _tekst: string;
114972
+ };
114973
+ Returns: {
114974
+ hit_type: string;
114975
+ package_id: string;
114976
+ priority: number;
114977
+ }[];
114978
+ };
114979
+ pakket_voor_reistijd: {
114980
+ Args: {
114981
+ _minuten: number;
114982
+ };
114983
+ Returns: {
114984
+ package_id: string;
114985
+ priority: number;
114986
+ }[];
114987
+ };
113573
114988
  pick_active_printers: {
113574
114989
  Args: never;
113575
114990
  Returns: {
@@ -113778,6 +115193,10 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
113778
115193
  omschrijving: string;
113779
115194
  }[];
113780
115195
  };
115196
+ pick_reference_data_status: {
115197
+ Args: never;
115198
+ Returns: import("../integrations/supabase/types").Json;
115199
+ };
113781
115200
  pick_release_expired_locks: {
113782
115201
  Args: never;
113783
115202
  Returns: number;
@@ -113842,6 +115261,10 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
113842
115261
  isSetofReturn: false;
113843
115262
  };
113844
115263
  };
115264
+ pick_seed_reference_data: {
115265
+ Args: never;
115266
+ Returns: import("../integrations/supabase/types").Json;
115267
+ };
113845
115268
  pick_set_station_print_plek: {
113846
115269
  Args: {
113847
115270
  _print_plek_id: string;
@@ -114620,6 +116043,18 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114620
116043
  Args: never;
114621
116044
  Returns: string;
114622
116045
  };
116046
+ werkbon_totalen: {
116047
+ Args: {
116048
+ _werkbon_id: string;
116049
+ };
116050
+ Returns: {
116051
+ materials_cents: number;
116052
+ packages_cents: number;
116053
+ packages_minutes: number;
116054
+ total_cents: number;
116055
+ total_minutes: number;
116056
+ }[];
116057
+ };
114623
116058
  wo_create_from_source: {
114624
116059
  Args: {
114625
116060
  _payload?: import("../integrations/supabase/types").Json;
@@ -114658,7 +116093,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114658
116093
  };
114659
116094
  CompositeTypes: { [_ in never]: never; };
114660
116095
  }, {
114661
- PostgrestVersion: "14.5";
116096
+ PostgrestVersion: "14.17";
114662
116097
  }>;
114663
116098
  userId: string;
114664
116099
  claims: import("@supabase/auth-js").User;