@flowselections/floriday-afhandeling-module 1.0.39 → 1.0.41

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 (40) hide show
  1. package/dist-lib/components/afhandeling/ControleLijstPrint.js +54 -54
  2. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
  3. package/dist-lib/components/afhandeling/ControlePage.js +36 -2
  4. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
  5. package/dist-lib/components/afhandeling/DagDetailDialog.js +3 -2
  6. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  7. package/dist-lib/components/afhandeling/WeekAgendaView.js +38 -45
  8. package/dist-lib/components/pickstation/PakbonTemplate.js +70 -70
  9. package/dist-lib/hooks/useCartIndex.d.ts +11 -0
  10. package/dist-lib/hooks/useCartIndex.d.ts.map +1 -0
  11. package/dist-lib/hooks/useCartIndex.js +56 -0
  12. package/dist-lib/hooks/useConsistencyCheck.d.ts +8 -0
  13. package/dist-lib/hooks/useConsistencyCheck.d.ts.map +1 -0
  14. package/dist-lib/hooks/useConsistencyCheck.js +22 -0
  15. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  16. package/dist-lib/hooks/useOrderPlanning.js +6 -2
  17. package/dist-lib/hooks/usePickAgenda.d.ts +32 -0
  18. package/dist-lib/hooks/usePickAgenda.d.ts.map +1 -0
  19. package/dist-lib/hooks/usePickAgenda.js +75 -0
  20. package/dist-lib/integrations/supabase/auth-middleware.d.ts +527 -1
  21. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/client.server.d.ts +527 -1
  23. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  24. package/dist-lib/integrations/supabase/moduleClient.d.ts +527 -1
  25. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  26. package/dist-lib/integrations/supabase/types.d.ts +530 -1
  27. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  28. package/dist-lib/lib/afhandelingSettings.functions.d.ts +1056 -4
  29. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/carrierSignupMail.server.js +26 -26
  31. package/dist-lib/lib/carriers.functions.d.ts +2635 -5
  32. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/cartAssignments.functions.d.ts +2635 -5
  34. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/cartControl.functions.d.ts +5330 -81
  36. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/cartControl.functions.js +92 -127
  38. package/dist-lib/lib/floriday.functions.d.ts +528 -2
  39. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  40. package/package.json +1 -1
@@ -10748,6 +10748,243 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
10748
10748
  };
10749
10749
  Relationships: [];
10750
10750
  };
10751
+ maps_addresses: {
10752
+ Row: {
10753
+ address_hash: string;
10754
+ created_at: string;
10755
+ error_reason: string | null;
10756
+ formatted_address: string | null;
10757
+ id: string;
10758
+ lat: number | null;
10759
+ lng: number | null;
10760
+ place_id: string | null;
10761
+ raw_address: string;
10762
+ resolved_at: string | null;
10763
+ status: string;
10764
+ updated_at: string;
10765
+ };
10766
+ Insert: {
10767
+ address_hash: string;
10768
+ created_at?: string;
10769
+ error_reason?: string | null;
10770
+ formatted_address?: string | null;
10771
+ id?: string;
10772
+ lat?: number | null;
10773
+ lng?: number | null;
10774
+ place_id?: string | null;
10775
+ raw_address: string;
10776
+ resolved_at?: string | null;
10777
+ status?: string;
10778
+ updated_at?: string;
10779
+ };
10780
+ Update: {
10781
+ address_hash?: string;
10782
+ created_at?: string;
10783
+ error_reason?: string | null;
10784
+ formatted_address?: string | null;
10785
+ id?: string;
10786
+ lat?: number | null;
10787
+ lng?: number | null;
10788
+ place_id?: string | null;
10789
+ raw_address?: string;
10790
+ resolved_at?: string | null;
10791
+ status?: string;
10792
+ updated_at?: string;
10793
+ };
10794
+ Relationships: [];
10795
+ };
10796
+ maps_job_lease: {
10797
+ Row: {
10798
+ job: string;
10799
+ locked_until: string;
10800
+ updated_at: string;
10801
+ };
10802
+ Insert: {
10803
+ job: string;
10804
+ locked_until?: string;
10805
+ updated_at?: string;
10806
+ };
10807
+ Update: {
10808
+ job?: string;
10809
+ locked_until?: string;
10810
+ updated_at?: string;
10811
+ };
10812
+ Relationships: [];
10813
+ };
10814
+ maps_request_queue: {
10815
+ Row: {
10816
+ attempts: number;
10817
+ created_at: string;
10818
+ destination_hash: string | null;
10819
+ id: string;
10820
+ kind: string;
10821
+ last_error: string | null;
10822
+ mode: string;
10823
+ origin_hash: string | null;
10824
+ processed_at: string | null;
10825
+ raw_destination: string | null;
10826
+ raw_origin: string | null;
10827
+ requested_by: string | null;
10828
+ status: string;
10829
+ updated_at: string;
10830
+ };
10831
+ Insert: {
10832
+ attempts?: number;
10833
+ created_at?: string;
10834
+ destination_hash?: string | null;
10835
+ id?: string;
10836
+ kind: string;
10837
+ last_error?: string | null;
10838
+ mode?: string;
10839
+ origin_hash?: string | null;
10840
+ processed_at?: string | null;
10841
+ raw_destination?: string | null;
10842
+ raw_origin?: string | null;
10843
+ requested_by?: string | null;
10844
+ status?: string;
10845
+ updated_at?: string;
10846
+ };
10847
+ Update: {
10848
+ attempts?: number;
10849
+ created_at?: string;
10850
+ destination_hash?: string | null;
10851
+ id?: string;
10852
+ kind?: string;
10853
+ last_error?: string | null;
10854
+ mode?: string;
10855
+ origin_hash?: string | null;
10856
+ processed_at?: string | null;
10857
+ raw_destination?: string | null;
10858
+ raw_origin?: string | null;
10859
+ requested_by?: string | null;
10860
+ status?: string;
10861
+ updated_at?: string;
10862
+ };
10863
+ Relationships: [];
10864
+ };
10865
+ maps_settings: {
10866
+ Row: {
10867
+ allow_estimate_fallback: boolean;
10868
+ cache_ttl_days: number;
10869
+ created_at: string;
10870
+ daily_call_limit: number;
10871
+ id: string;
10872
+ last_error: string | null;
10873
+ last_error_at: string | null;
10874
+ last_success_at: string | null;
10875
+ provider: string;
10876
+ updated_at: string;
10877
+ };
10878
+ Insert: {
10879
+ allow_estimate_fallback?: boolean;
10880
+ cache_ttl_days?: number;
10881
+ created_at?: string;
10882
+ daily_call_limit?: number;
10883
+ id?: string;
10884
+ last_error?: string | null;
10885
+ last_error_at?: string | null;
10886
+ last_success_at?: string | null;
10887
+ provider?: string;
10888
+ updated_at?: string;
10889
+ };
10890
+ Update: {
10891
+ allow_estimate_fallback?: boolean;
10892
+ cache_ttl_days?: number;
10893
+ created_at?: string;
10894
+ daily_call_limit?: number;
10895
+ id?: string;
10896
+ last_error?: string | null;
10897
+ last_error_at?: string | null;
10898
+ last_success_at?: string | null;
10899
+ provider?: string;
10900
+ updated_at?: string;
10901
+ };
10902
+ Relationships: [];
10903
+ };
10904
+ maps_travel_times: {
10905
+ Row: {
10906
+ created_at: string;
10907
+ destination_id: string;
10908
+ distance_m: number | null;
10909
+ duration_sec: number;
10910
+ expires_at: string;
10911
+ id: string;
10912
+ mode: string;
10913
+ origin_id: string;
10914
+ source: string;
10915
+ updated_at: string;
10916
+ };
10917
+ Insert: {
10918
+ created_at?: string;
10919
+ destination_id: string;
10920
+ distance_m?: number | null;
10921
+ duration_sec: number;
10922
+ expires_at?: string;
10923
+ id?: string;
10924
+ mode?: string;
10925
+ origin_id: string;
10926
+ source?: string;
10927
+ updated_at?: string;
10928
+ };
10929
+ Update: {
10930
+ created_at?: string;
10931
+ destination_id?: string;
10932
+ distance_m?: number | null;
10933
+ duration_sec?: number;
10934
+ expires_at?: string;
10935
+ id?: string;
10936
+ mode?: string;
10937
+ origin_id?: string;
10938
+ source?: string;
10939
+ updated_at?: string;
10940
+ };
10941
+ Relationships: [{
10942
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
10943
+ columns: ["destination_id"];
10944
+ isOneToOne: false;
10945
+ referencedRelation: "maps_addresses";
10946
+ referencedColumns: ["id"];
10947
+ }, {
10948
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
10949
+ columns: ["origin_id"];
10950
+ isOneToOne: false;
10951
+ referencedRelation: "maps_addresses";
10952
+ referencedColumns: ["id"];
10953
+ }];
10954
+ };
10955
+ maps_usage_log: {
10956
+ Row: {
10957
+ cache_hits: number;
10958
+ call_type: string;
10959
+ created_at: string;
10960
+ day: string;
10961
+ detail: string | null;
10962
+ elements: number;
10963
+ id: string;
10964
+ outcome: string;
10965
+ };
10966
+ Insert: {
10967
+ cache_hits?: number;
10968
+ call_type: string;
10969
+ created_at?: string;
10970
+ day?: string;
10971
+ detail?: string | null;
10972
+ elements?: number;
10973
+ id?: string;
10974
+ outcome?: string;
10975
+ };
10976
+ Update: {
10977
+ cache_hits?: number;
10978
+ call_type?: string;
10979
+ created_at?: string;
10980
+ day?: string;
10981
+ detail?: string | null;
10982
+ elements?: number;
10983
+ id?: string;
10984
+ outcome?: string;
10985
+ };
10986
+ Relationships: [];
10987
+ };
10751
10988
  material_usage: {
10752
10989
  Row: {
10753
10990
  created_at: string;
@@ -13397,6 +13634,39 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13397
13634
  };
13398
13635
  Relationships: [];
13399
13636
  };
13637
+ print_dedupe_events: {
13638
+ Row: {
13639
+ bestaande_job_id: string | null;
13640
+ created_at: string;
13641
+ detail: string | null;
13642
+ documentnaam: string | null;
13643
+ documenttype: string | null;
13644
+ id: string;
13645
+ idempotentie_sleutel: string;
13646
+ reden: string;
13647
+ };
13648
+ Insert: {
13649
+ bestaande_job_id?: string | null;
13650
+ created_at?: string;
13651
+ detail?: string | null;
13652
+ documentnaam?: string | null;
13653
+ documenttype?: string | null;
13654
+ id?: string;
13655
+ idempotentie_sleutel: string;
13656
+ reden: string;
13657
+ };
13658
+ Update: {
13659
+ bestaande_job_id?: string | null;
13660
+ created_at?: string;
13661
+ detail?: string | null;
13662
+ documentnaam?: string | null;
13663
+ documenttype?: string | null;
13664
+ id?: string;
13665
+ idempotentie_sleutel?: string;
13666
+ reden?: string;
13667
+ };
13668
+ Relationships: [];
13669
+ };
13400
13670
  print_job_logs: {
13401
13671
  Row: {
13402
13672
  created_at: string;
@@ -13438,6 +13708,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13438
13708
  foutmelding: string | null;
13439
13709
  gebruiker_id: string | null;
13440
13710
  gebruiker_naam: string;
13711
+ gebruikte_bron: string | null;
13712
+ gebruikte_layout_id: string | null;
13441
13713
  gestart_op: string | null;
13442
13714
  herkomst: string | null;
13443
13715
  id: string;
@@ -13445,6 +13717,9 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13445
13717
  is_herprint: boolean;
13446
13718
  kopieen: number;
13447
13719
  layout_id: string | null;
13720
+ lokaal_opgeslagen_op: string | null;
13721
+ lokale_pdf_fout: string | null;
13722
+ lokale_pdf_status: string | null;
13448
13723
  opgepakt_op: string | null;
13449
13724
  paginas: number;
13450
13725
  payload: import("../integrations/supabase/types").Json;
@@ -13453,6 +13728,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13453
13728
  pogingen: number;
13454
13729
  printer_id: string | null;
13455
13730
  render_html: string | null;
13731
+ resultaat_pdf_base64: string | null;
13456
13732
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13457
13733
  updated_at: string;
13458
13734
  volgende_poging: string | null;
@@ -13468,6 +13744,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13468
13744
  foutmelding?: string | null;
13469
13745
  gebruiker_id?: string | null;
13470
13746
  gebruiker_naam?: string;
13747
+ gebruikte_bron?: string | null;
13748
+ gebruikte_layout_id?: string | null;
13471
13749
  gestart_op?: string | null;
13472
13750
  herkomst?: string | null;
13473
13751
  id?: string;
@@ -13475,6 +13753,9 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13475
13753
  is_herprint?: boolean;
13476
13754
  kopieen?: number;
13477
13755
  layout_id?: string | null;
13756
+ lokaal_opgeslagen_op?: string | null;
13757
+ lokale_pdf_fout?: string | null;
13758
+ lokale_pdf_status?: string | null;
13478
13759
  opgepakt_op?: string | null;
13479
13760
  paginas?: number;
13480
13761
  payload?: import("../integrations/supabase/types").Json;
@@ -13483,6 +13764,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13483
13764
  pogingen?: number;
13484
13765
  printer_id?: string | null;
13485
13766
  render_html?: string | null;
13767
+ resultaat_pdf_base64?: string | null;
13486
13768
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13487
13769
  updated_at?: string;
13488
13770
  volgende_poging?: string | null;
@@ -13498,6 +13780,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13498
13780
  foutmelding?: string | null;
13499
13781
  gebruiker_id?: string | null;
13500
13782
  gebruiker_naam?: string;
13783
+ gebruikte_bron?: string | null;
13784
+ gebruikte_layout_id?: string | null;
13501
13785
  gestart_op?: string | null;
13502
13786
  herkomst?: string | null;
13503
13787
  id?: string;
@@ -13505,6 +13789,9 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13505
13789
  is_herprint?: boolean;
13506
13790
  kopieen?: number;
13507
13791
  layout_id?: string | null;
13792
+ lokaal_opgeslagen_op?: string | null;
13793
+ lokale_pdf_fout?: string | null;
13794
+ lokale_pdf_status?: string | null;
13508
13795
  opgepakt_op?: string | null;
13509
13796
  paginas?: number;
13510
13797
  payload?: import("../integrations/supabase/types").Json;
@@ -13513,6 +13800,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13513
13800
  pogingen?: number;
13514
13801
  printer_id?: string | null;
13515
13802
  render_html?: string | null;
13803
+ resultaat_pdf_base64?: string | null;
13516
13804
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13517
13805
  updated_at?: string;
13518
13806
  volgende_poging?: string | null;
@@ -13631,6 +13919,39 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13631
13919
  };
13632
13920
  Relationships: [];
13633
13921
  };
13922
+ print_preview_events: {
13923
+ Row: {
13924
+ code: string | null;
13925
+ created_at: string;
13926
+ detail: import("../integrations/supabase/types").Json;
13927
+ id: string;
13928
+ queue_item_id: string | null;
13929
+ reden: string | null;
13930
+ station_slug: string | null;
13931
+ uitkomst: string;
13932
+ };
13933
+ Insert: {
13934
+ code?: string | null;
13935
+ created_at?: string;
13936
+ detail?: import("../integrations/supabase/types").Json;
13937
+ id?: string;
13938
+ queue_item_id?: string | null;
13939
+ reden?: string | null;
13940
+ station_slug?: string | null;
13941
+ uitkomst?: string;
13942
+ };
13943
+ Update: {
13944
+ code?: string | null;
13945
+ created_at?: string;
13946
+ detail?: import("../integrations/supabase/types").Json;
13947
+ id?: string;
13948
+ queue_item_id?: string | null;
13949
+ reden?: string | null;
13950
+ station_slug?: string | null;
13951
+ uitkomst?: string;
13952
+ };
13953
+ Relationships: [];
13954
+ };
13634
13955
  print_queue_runners: {
13635
13956
  Row: {
13636
13957
  actief: boolean;
@@ -13858,6 +14179,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13858
14179
  created_at: string;
13859
14180
  driver: string;
13860
14181
  extern_printer_id: string | null;
14182
+ formaten_bijgewerkt_op: string | null;
13861
14183
  id: string;
13862
14184
  ip_adres: string | null;
13863
14185
  laatst_gezien: string | null;
@@ -13865,8 +14187,11 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13865
14187
  merk: string;
13866
14188
  naam: string;
13867
14189
  omschrijving: string;
14190
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
14191
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
13868
14192
  online: boolean;
13869
14193
  papierformaat: string;
14194
+ pdf_map: string | null;
13870
14195
  poort: number | null;
13871
14196
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
13872
14197
  systeemnaam: string;
@@ -13880,6 +14205,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13880
14205
  created_at?: string;
13881
14206
  driver?: string;
13882
14207
  extern_printer_id?: string | null;
14208
+ formaten_bijgewerkt_op?: string | null;
13883
14209
  id?: string;
13884
14210
  ip_adres?: string | null;
13885
14211
  laatst_gezien?: string | null;
@@ -13887,8 +14213,11 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13887
14213
  merk?: string;
13888
14214
  naam: string;
13889
14215
  omschrijving?: string;
14216
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14217
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
13890
14218
  online?: boolean;
13891
14219
  papierformaat?: string;
14220
+ pdf_map?: string | null;
13892
14221
  poort?: number | null;
13893
14222
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
13894
14223
  systeemnaam?: string;
@@ -13902,6 +14231,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13902
14231
  created_at?: string;
13903
14232
  driver?: string;
13904
14233
  extern_printer_id?: string | null;
14234
+ formaten_bijgewerkt_op?: string | null;
13905
14235
  id?: string;
13906
14236
  ip_adres?: string | null;
13907
14237
  laatst_gezien?: string | null;
@@ -13909,8 +14239,11 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
13909
14239
  merk?: string;
13910
14240
  naam?: string;
13911
14241
  omschrijving?: string;
14242
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14243
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
13912
14244
  online?: boolean;
13913
14245
  papierformaat?: string;
14246
+ pdf_map?: string | null;
13914
14247
  poort?: number | null;
13915
14248
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
13916
14249
  systeemnaam?: string;
@@ -20158,6 +20491,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
20158
20491
  foutmelding: string | null;
20159
20492
  gebruiker_id: string | null;
20160
20493
  gebruiker_naam: string;
20494
+ gebruikte_bron: string | null;
20495
+ gebruikte_layout_id: string | null;
20161
20496
  gestart_op: string | null;
20162
20497
  herkomst: string | null;
20163
20498
  id: string;
@@ -20165,6 +20500,9 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
20165
20500
  is_herprint: boolean;
20166
20501
  kopieen: number;
20167
20502
  layout_id: string | null;
20503
+ lokaal_opgeslagen_op: string | null;
20504
+ lokale_pdf_fout: string | null;
20505
+ lokale_pdf_status: string | null;
20168
20506
  opgepakt_op: string | null;
20169
20507
  paginas: number;
20170
20508
  payload: import("../integrations/supabase/types").Json;
@@ -20173,6 +20511,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
20173
20511
  pogingen: number;
20174
20512
  printer_id: string | null;
20175
20513
  render_html: string | null;
20514
+ resultaat_pdf_base64: string | null;
20176
20515
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20177
20516
  updated_at: string;
20178
20517
  volgende_poging: string | null;
@@ -20264,6 +20603,53 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
20264
20603
  isSetofReturn: true;
20265
20604
  };
20266
20605
  };
20606
+ claim_pdf_print_jobs: {
20607
+ Args: {
20608
+ _max?: number;
20609
+ };
20610
+ Returns: {
20611
+ agent_id: string | null;
20612
+ bron_job_id: string | null;
20613
+ created_at: string;
20614
+ documentnaam: string;
20615
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20616
+ extern_job_id: string | null;
20617
+ foutmelding: string | null;
20618
+ gebruiker_id: string | null;
20619
+ gebruiker_naam: string;
20620
+ gebruikte_bron: string | null;
20621
+ gebruikte_layout_id: string | null;
20622
+ gestart_op: string | null;
20623
+ herkomst: string | null;
20624
+ id: string;
20625
+ idempotentie_sleutel: string | null;
20626
+ is_herprint: boolean;
20627
+ kopieen: number;
20628
+ layout_id: string | null;
20629
+ lokaal_opgeslagen_op: string | null;
20630
+ lokale_pdf_fout: string | null;
20631
+ lokale_pdf_status: string | null;
20632
+ opgepakt_op: string | null;
20633
+ paginas: number;
20634
+ payload: import("../integrations/supabase/types").Json;
20635
+ pdf_base64: string | null;
20636
+ pdf_url: string | null;
20637
+ pogingen: number;
20638
+ printer_id: string | null;
20639
+ render_html: string | null;
20640
+ resultaat_pdf_base64: string | null;
20641
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20642
+ updated_at: string;
20643
+ volgende_poging: string | null;
20644
+ voltooid_op: string | null;
20645
+ }[];
20646
+ SetofOptions: {
20647
+ from: "*";
20648
+ to: "print_jobs";
20649
+ isOneToOne: false;
20650
+ isSetofReturn: true;
20651
+ };
20652
+ };
20267
20653
  claim_print_jobs: {
20268
20654
  Args: {
20269
20655
  _agent_id: string;
@@ -20279,6 +20665,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
20279
20665
  foutmelding: string | null;
20280
20666
  gebruiker_id: string | null;
20281
20667
  gebruiker_naam: string;
20668
+ gebruikte_bron: string | null;
20669
+ gebruikte_layout_id: string | null;
20282
20670
  gestart_op: string | null;
20283
20671
  herkomst: string | null;
20284
20672
  id: string;
@@ -20286,6 +20674,9 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
20286
20674
  is_herprint: boolean;
20287
20675
  kopieen: number;
20288
20676
  layout_id: string | null;
20677
+ lokaal_opgeslagen_op: string | null;
20678
+ lokale_pdf_fout: string | null;
20679
+ lokale_pdf_status: string | null;
20289
20680
  opgepakt_op: string | null;
20290
20681
  paginas: number;
20291
20682
  payload: import("../integrations/supabase/types").Json;
@@ -20294,6 +20685,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
20294
20685
  pogingen: number;
20295
20686
  printer_id: string | null;
20296
20687
  render_html: string | null;
20688
+ resultaat_pdf_base64: string | null;
20297
20689
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20298
20690
  updated_at: string;
20299
20691
  volgende_poging: string | null;
@@ -20434,6 +20826,8 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
20434
20826
  order_id: string;
20435
20827
  order_source: string;
20436
20828
  pick_date: string;
20829
+ printed_at: string;
20830
+ printed_today: boolean;
20437
20831
  status: string;
20438
20832
  }[];
20439
20833
  };
@@ -21142,6 +21536,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21142
21536
  };
21143
21537
  Returns: number;
21144
21538
  };
21539
+ logistics_cancel_orphan_tasks: {
21540
+ Args: never;
21541
+ Returns: number;
21542
+ };
21145
21543
  logistics_capacity_day_check: {
21146
21544
  Args: {
21147
21545
  p_from?: string;
@@ -21162,6 +21560,25 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21162
21560
  };
21163
21561
  Returns: number;
21164
21562
  };
21563
+ logistics_cart_index: {
21564
+ Args: {
21565
+ p_from?: string;
21566
+ p_to?: string;
21567
+ };
21568
+ Returns: {
21569
+ cart_id: string;
21570
+ cart_index: number;
21571
+ cart_label: string;
21572
+ is_shared: boolean;
21573
+ order_number: string;
21574
+ order_source: string;
21575
+ order_uuid: string;
21576
+ pick_date: string;
21577
+ printed_at: string;
21578
+ shifted: boolean;
21579
+ task_status: string;
21580
+ }[];
21581
+ };
21165
21582
  logistics_check_order_allowed: {
21166
21583
  Args: {
21167
21584
  p_lines: import("../integrations/supabase/types").Json;
@@ -21310,6 +21727,17 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21310
21727
  isSetofReturn: false;
21311
21728
  };
21312
21729
  };
21730
+ logistics_consistency_check: {
21731
+ Args: never;
21732
+ Returns: {
21733
+ agenda_carts: number;
21734
+ control_carts: number;
21735
+ ok: boolean;
21736
+ orphan_tasks: number;
21737
+ pick_date: string;
21738
+ raw_carts: number;
21739
+ }[];
21740
+ };
21313
21741
  logistics_delay_customer_email: {
21314
21742
  Args: {
21315
21743
  p_customer: string;
@@ -21335,6 +21763,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21335
21763
  };
21336
21764
  Returns: string;
21337
21765
  };
21766
+ logistics_document_type_map: {
21767
+ Args: {
21768
+ _document_code: string;
21769
+ };
21770
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
21771
+ };
21338
21772
  logistics_emit_event: {
21339
21773
  Args: {
21340
21774
  p_event_type: string;
@@ -21497,6 +21931,25 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21497
21931
  };
21498
21932
  Returns: number;
21499
21933
  };
21934
+ logistics_order_overview: {
21935
+ Args: {
21936
+ p_from?: string;
21937
+ p_to?: string;
21938
+ };
21939
+ Returns: {
21940
+ cart_count: number;
21941
+ customer_name: string;
21942
+ delivery_date: string;
21943
+ order_number: string;
21944
+ order_source: string;
21945
+ order_uuid: string;
21946
+ pick_date: string;
21947
+ plant_count: number;
21948
+ printed_at: string;
21949
+ shifted: boolean;
21950
+ status: string;
21951
+ }[];
21952
+ };
21500
21953
  logistics_order_pick_day: {
21501
21954
  Args: {
21502
21955
  p_order_ref: string;
@@ -21509,6 +21962,22 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21509
21962
  };
21510
21963
  Returns: string;
21511
21964
  };
21965
+ logistics_pick_agenda: {
21966
+ Args: {
21967
+ p_from?: string;
21968
+ p_to?: string;
21969
+ };
21970
+ Returns: {
21971
+ cart_count: number;
21972
+ in_preparation: number;
21973
+ order_count: number;
21974
+ orders: import("../integrations/supabase/types").Json;
21975
+ pick_date: string;
21976
+ plant_count: number;
21977
+ ready: number;
21978
+ shifted_count: number;
21979
+ }[];
21980
+ };
21512
21981
  logistics_pick_email_purpose: {
21513
21982
  Args: never;
21514
21983
  Returns: string;
@@ -21668,6 +22137,15 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21668
22137
  };
21669
22138
  Returns: import("../integrations/supabase/types").Json;
21670
22139
  };
22140
+ logistics_resolve_pick_document: {
22141
+ Args: {
22142
+ _is_herprint: boolean;
22143
+ _queue_item_id: string;
22144
+ _session_id: string;
22145
+ _voorbeeld: boolean;
22146
+ };
22147
+ Returns: import("../integrations/supabase/types").Json;
22148
+ };
21671
22149
  logistics_resolve_settings: {
21672
22150
  Args: {
21673
22151
  p_config_id: string;
@@ -22108,6 +22586,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22108
22586
  };
22109
22587
  pick_enqueue_print_job: {
22110
22588
  Args: {
22589
+ _is_herprint?: boolean;
22111
22590
  _printer_id?: string;
22112
22591
  _queue_item_id: string;
22113
22592
  _session_id?: string;
@@ -22121,6 +22600,13 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22121
22600
  };
22122
22601
  Returns: import("../integrations/supabase/types").Json;
22123
22602
  };
22603
+ pick_preview_job: {
22604
+ Args: {
22605
+ _queue_item_id: string;
22606
+ _station_slug: string;
22607
+ };
22608
+ Returns: import("../integrations/supabase/types").Json;
22609
+ };
22124
22610
  pick_print_job_status: {
22125
22611
  Args: {
22126
22612
  _job_id: string;
@@ -22135,6 +22621,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22135
22621
  omschrijving: string;
22136
22622
  }[];
22137
22623
  };
22624
+ pick_reference_data_status: {
22625
+ Args: never;
22626
+ Returns: import("../integrations/supabase/types").Json;
22627
+ };
22138
22628
  pick_release_expired_locks: {
22139
22629
  Args: never;
22140
22630
  Returns: number;
@@ -22199,6 +22689,10 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22199
22689
  isSetofReturn: false;
22200
22690
  };
22201
22691
  };
22692
+ pick_seed_reference_data: {
22693
+ Args: never;
22694
+ Returns: import("../integrations/supabase/types").Json;
22695
+ };
22202
22696
  pick_set_station_print_plek: {
22203
22697
  Args: {
22204
22698
  _print_plek_id: string;
@@ -22290,6 +22784,24 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22290
22784
  };
22291
22785
  Returns: undefined;
22292
22786
  };
22787
+ print_preview_toestaan: {
22788
+ Args: {
22789
+ _max?: number;
22790
+ _queue_item_id: string;
22791
+ _station_slug: string;
22792
+ _venster_sec?: number;
22793
+ };
22794
+ Returns: import("../integrations/supabase/types").Json;
22795
+ };
22796
+ print_preview_weiger: {
22797
+ Args: {
22798
+ _code: string;
22799
+ _queue_item_id: string;
22800
+ _reden: string;
22801
+ _station_slug: string;
22802
+ };
22803
+ Returns: undefined;
22804
+ };
22293
22805
  process_logistics_event: {
22294
22806
  Args: {
22295
22807
  p_event_id: string;
@@ -22407,6 +22919,14 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22407
22919
  };
22408
22920
  Returns: undefined;
22409
22921
  };
22922
+ replace_order_carts: {
22923
+ Args: {
22924
+ p_buffer_id: string;
22925
+ p_carts: import("../integrations/supabase/types").Json;
22926
+ p_order_id: string;
22927
+ };
22928
+ Returns: import("../integrations/supabase/types").Json;
22929
+ };
22410
22930
  reset_floriday_sync_cursor: {
22411
22931
  Args: {
22412
22932
  p_connection_id: string;
@@ -22436,6 +22956,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22436
22956
  };
22437
22957
  Returns: string;
22438
22958
  };
22959
+ resolve_print_job_printer_id: {
22960
+ Args: {
22961
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
22962
+ };
22963
+ Returns: string;
22964
+ };
22439
22965
  resolve_product_id_for_item: {
22440
22966
  Args: {
22441
22967
  p_product_name: string;
@@ -23027,7 +23553,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
23027
23553
  };
23028
23554
  CompositeTypes: { [_ in never]: never; };
23029
23555
  }, {
23030
- PostgrestVersion: "14.17";
23556
+ PostgrestVersion: "14.5";
23031
23557
  }>;
23032
23558
  userId: string;
23033
23559
  claims: import("@supabase/auth-js").JwtPayload;
@@ -33726,6 +34252,243 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
33726
34252
  };
33727
34253
  Relationships: [];
33728
34254
  };
34255
+ maps_addresses: {
34256
+ Row: {
34257
+ address_hash: string;
34258
+ created_at: string;
34259
+ error_reason: string | null;
34260
+ formatted_address: string | null;
34261
+ id: string;
34262
+ lat: number | null;
34263
+ lng: number | null;
34264
+ place_id: string | null;
34265
+ raw_address: string;
34266
+ resolved_at: string | null;
34267
+ status: string;
34268
+ updated_at: string;
34269
+ };
34270
+ Insert: {
34271
+ address_hash: string;
34272
+ created_at?: string;
34273
+ error_reason?: string | null;
34274
+ formatted_address?: string | null;
34275
+ id?: string;
34276
+ lat?: number | null;
34277
+ lng?: number | null;
34278
+ place_id?: string | null;
34279
+ raw_address: string;
34280
+ resolved_at?: string | null;
34281
+ status?: string;
34282
+ updated_at?: string;
34283
+ };
34284
+ Update: {
34285
+ address_hash?: string;
34286
+ created_at?: string;
34287
+ error_reason?: string | null;
34288
+ formatted_address?: string | null;
34289
+ id?: string;
34290
+ lat?: number | null;
34291
+ lng?: number | null;
34292
+ place_id?: string | null;
34293
+ raw_address?: string;
34294
+ resolved_at?: string | null;
34295
+ status?: string;
34296
+ updated_at?: string;
34297
+ };
34298
+ Relationships: [];
34299
+ };
34300
+ maps_job_lease: {
34301
+ Row: {
34302
+ job: string;
34303
+ locked_until: string;
34304
+ updated_at: string;
34305
+ };
34306
+ Insert: {
34307
+ job: string;
34308
+ locked_until?: string;
34309
+ updated_at?: string;
34310
+ };
34311
+ Update: {
34312
+ job?: string;
34313
+ locked_until?: string;
34314
+ updated_at?: string;
34315
+ };
34316
+ Relationships: [];
34317
+ };
34318
+ maps_request_queue: {
34319
+ Row: {
34320
+ attempts: number;
34321
+ created_at: string;
34322
+ destination_hash: string | null;
34323
+ id: string;
34324
+ kind: string;
34325
+ last_error: string | null;
34326
+ mode: string;
34327
+ origin_hash: string | null;
34328
+ processed_at: string | null;
34329
+ raw_destination: string | null;
34330
+ raw_origin: string | null;
34331
+ requested_by: string | null;
34332
+ status: string;
34333
+ updated_at: string;
34334
+ };
34335
+ Insert: {
34336
+ attempts?: number;
34337
+ created_at?: string;
34338
+ destination_hash?: string | null;
34339
+ id?: string;
34340
+ kind: string;
34341
+ last_error?: string | null;
34342
+ mode?: string;
34343
+ origin_hash?: string | null;
34344
+ processed_at?: string | null;
34345
+ raw_destination?: string | null;
34346
+ raw_origin?: string | null;
34347
+ requested_by?: string | null;
34348
+ status?: string;
34349
+ updated_at?: string;
34350
+ };
34351
+ Update: {
34352
+ attempts?: number;
34353
+ created_at?: string;
34354
+ destination_hash?: string | null;
34355
+ id?: string;
34356
+ kind?: string;
34357
+ last_error?: string | null;
34358
+ mode?: string;
34359
+ origin_hash?: string | null;
34360
+ processed_at?: string | null;
34361
+ raw_destination?: string | null;
34362
+ raw_origin?: string | null;
34363
+ requested_by?: string | null;
34364
+ status?: string;
34365
+ updated_at?: string;
34366
+ };
34367
+ Relationships: [];
34368
+ };
34369
+ maps_settings: {
34370
+ Row: {
34371
+ allow_estimate_fallback: boolean;
34372
+ cache_ttl_days: number;
34373
+ created_at: string;
34374
+ daily_call_limit: number;
34375
+ id: string;
34376
+ last_error: string | null;
34377
+ last_error_at: string | null;
34378
+ last_success_at: string | null;
34379
+ provider: string;
34380
+ updated_at: string;
34381
+ };
34382
+ Insert: {
34383
+ allow_estimate_fallback?: boolean;
34384
+ cache_ttl_days?: number;
34385
+ created_at?: string;
34386
+ daily_call_limit?: number;
34387
+ id?: string;
34388
+ last_error?: string | null;
34389
+ last_error_at?: string | null;
34390
+ last_success_at?: string | null;
34391
+ provider?: string;
34392
+ updated_at?: string;
34393
+ };
34394
+ Update: {
34395
+ allow_estimate_fallback?: boolean;
34396
+ cache_ttl_days?: number;
34397
+ created_at?: string;
34398
+ daily_call_limit?: number;
34399
+ id?: string;
34400
+ last_error?: string | null;
34401
+ last_error_at?: string | null;
34402
+ last_success_at?: string | null;
34403
+ provider?: string;
34404
+ updated_at?: string;
34405
+ };
34406
+ Relationships: [];
34407
+ };
34408
+ maps_travel_times: {
34409
+ Row: {
34410
+ created_at: string;
34411
+ destination_id: string;
34412
+ distance_m: number | null;
34413
+ duration_sec: number;
34414
+ expires_at: string;
34415
+ id: string;
34416
+ mode: string;
34417
+ origin_id: string;
34418
+ source: string;
34419
+ updated_at: string;
34420
+ };
34421
+ Insert: {
34422
+ created_at?: string;
34423
+ destination_id: string;
34424
+ distance_m?: number | null;
34425
+ duration_sec: number;
34426
+ expires_at?: string;
34427
+ id?: string;
34428
+ mode?: string;
34429
+ origin_id: string;
34430
+ source?: string;
34431
+ updated_at?: string;
34432
+ };
34433
+ Update: {
34434
+ created_at?: string;
34435
+ destination_id?: string;
34436
+ distance_m?: number | null;
34437
+ duration_sec?: number;
34438
+ expires_at?: string;
34439
+ id?: string;
34440
+ mode?: string;
34441
+ origin_id?: string;
34442
+ source?: string;
34443
+ updated_at?: string;
34444
+ };
34445
+ Relationships: [{
34446
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
34447
+ columns: ["destination_id"];
34448
+ isOneToOne: false;
34449
+ referencedRelation: "maps_addresses";
34450
+ referencedColumns: ["id"];
34451
+ }, {
34452
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
34453
+ columns: ["origin_id"];
34454
+ isOneToOne: false;
34455
+ referencedRelation: "maps_addresses";
34456
+ referencedColumns: ["id"];
34457
+ }];
34458
+ };
34459
+ maps_usage_log: {
34460
+ Row: {
34461
+ cache_hits: number;
34462
+ call_type: string;
34463
+ created_at: string;
34464
+ day: string;
34465
+ detail: string | null;
34466
+ elements: number;
34467
+ id: string;
34468
+ outcome: string;
34469
+ };
34470
+ Insert: {
34471
+ cache_hits?: number;
34472
+ call_type: string;
34473
+ created_at?: string;
34474
+ day?: string;
34475
+ detail?: string | null;
34476
+ elements?: number;
34477
+ id?: string;
34478
+ outcome?: string;
34479
+ };
34480
+ Update: {
34481
+ cache_hits?: number;
34482
+ call_type?: string;
34483
+ created_at?: string;
34484
+ day?: string;
34485
+ detail?: string | null;
34486
+ elements?: number;
34487
+ id?: string;
34488
+ outcome?: string;
34489
+ };
34490
+ Relationships: [];
34491
+ };
33729
34492
  material_usage: {
33730
34493
  Row: {
33731
34494
  created_at: string;
@@ -36375,6 +37138,39 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36375
37138
  };
36376
37139
  Relationships: [];
36377
37140
  };
37141
+ print_dedupe_events: {
37142
+ Row: {
37143
+ bestaande_job_id: string | null;
37144
+ created_at: string;
37145
+ detail: string | null;
37146
+ documentnaam: string | null;
37147
+ documenttype: string | null;
37148
+ id: string;
37149
+ idempotentie_sleutel: string;
37150
+ reden: string;
37151
+ };
37152
+ Insert: {
37153
+ bestaande_job_id?: string | null;
37154
+ created_at?: string;
37155
+ detail?: string | null;
37156
+ documentnaam?: string | null;
37157
+ documenttype?: string | null;
37158
+ id?: string;
37159
+ idempotentie_sleutel: string;
37160
+ reden: string;
37161
+ };
37162
+ Update: {
37163
+ bestaande_job_id?: string | null;
37164
+ created_at?: string;
37165
+ detail?: string | null;
37166
+ documentnaam?: string | null;
37167
+ documenttype?: string | null;
37168
+ id?: string;
37169
+ idempotentie_sleutel?: string;
37170
+ reden?: string;
37171
+ };
37172
+ Relationships: [];
37173
+ };
36378
37174
  print_job_logs: {
36379
37175
  Row: {
36380
37176
  created_at: string;
@@ -36416,6 +37212,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36416
37212
  foutmelding: string | null;
36417
37213
  gebruiker_id: string | null;
36418
37214
  gebruiker_naam: string;
37215
+ gebruikte_bron: string | null;
37216
+ gebruikte_layout_id: string | null;
36419
37217
  gestart_op: string | null;
36420
37218
  herkomst: string | null;
36421
37219
  id: string;
@@ -36423,6 +37221,9 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36423
37221
  is_herprint: boolean;
36424
37222
  kopieen: number;
36425
37223
  layout_id: string | null;
37224
+ lokaal_opgeslagen_op: string | null;
37225
+ lokale_pdf_fout: string | null;
37226
+ lokale_pdf_status: string | null;
36426
37227
  opgepakt_op: string | null;
36427
37228
  paginas: number;
36428
37229
  payload: import("../integrations/supabase/types").Json;
@@ -36431,6 +37232,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36431
37232
  pogingen: number;
36432
37233
  printer_id: string | null;
36433
37234
  render_html: string | null;
37235
+ resultaat_pdf_base64: string | null;
36434
37236
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36435
37237
  updated_at: string;
36436
37238
  volgende_poging: string | null;
@@ -36446,6 +37248,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36446
37248
  foutmelding?: string | null;
36447
37249
  gebruiker_id?: string | null;
36448
37250
  gebruiker_naam?: string;
37251
+ gebruikte_bron?: string | null;
37252
+ gebruikte_layout_id?: string | null;
36449
37253
  gestart_op?: string | null;
36450
37254
  herkomst?: string | null;
36451
37255
  id?: string;
@@ -36453,6 +37257,9 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36453
37257
  is_herprint?: boolean;
36454
37258
  kopieen?: number;
36455
37259
  layout_id?: string | null;
37260
+ lokaal_opgeslagen_op?: string | null;
37261
+ lokale_pdf_fout?: string | null;
37262
+ lokale_pdf_status?: string | null;
36456
37263
  opgepakt_op?: string | null;
36457
37264
  paginas?: number;
36458
37265
  payload?: import("../integrations/supabase/types").Json;
@@ -36461,6 +37268,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36461
37268
  pogingen?: number;
36462
37269
  printer_id?: string | null;
36463
37270
  render_html?: string | null;
37271
+ resultaat_pdf_base64?: string | null;
36464
37272
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36465
37273
  updated_at?: string;
36466
37274
  volgende_poging?: string | null;
@@ -36476,6 +37284,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36476
37284
  foutmelding?: string | null;
36477
37285
  gebruiker_id?: string | null;
36478
37286
  gebruiker_naam?: string;
37287
+ gebruikte_bron?: string | null;
37288
+ gebruikte_layout_id?: string | null;
36479
37289
  gestart_op?: string | null;
36480
37290
  herkomst?: string | null;
36481
37291
  id?: string;
@@ -36483,6 +37293,9 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36483
37293
  is_herprint?: boolean;
36484
37294
  kopieen?: number;
36485
37295
  layout_id?: string | null;
37296
+ lokaal_opgeslagen_op?: string | null;
37297
+ lokale_pdf_fout?: string | null;
37298
+ lokale_pdf_status?: string | null;
36486
37299
  opgepakt_op?: string | null;
36487
37300
  paginas?: number;
36488
37301
  payload?: import("../integrations/supabase/types").Json;
@@ -36491,6 +37304,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36491
37304
  pogingen?: number;
36492
37305
  printer_id?: string | null;
36493
37306
  render_html?: string | null;
37307
+ resultaat_pdf_base64?: string | null;
36494
37308
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36495
37309
  updated_at?: string;
36496
37310
  volgende_poging?: string | null;
@@ -36609,6 +37423,39 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36609
37423
  };
36610
37424
  Relationships: [];
36611
37425
  };
37426
+ print_preview_events: {
37427
+ Row: {
37428
+ code: string | null;
37429
+ created_at: string;
37430
+ detail: import("../integrations/supabase/types").Json;
37431
+ id: string;
37432
+ queue_item_id: string | null;
37433
+ reden: string | null;
37434
+ station_slug: string | null;
37435
+ uitkomst: string;
37436
+ };
37437
+ Insert: {
37438
+ code?: string | null;
37439
+ created_at?: string;
37440
+ detail?: import("../integrations/supabase/types").Json;
37441
+ id?: string;
37442
+ queue_item_id?: string | null;
37443
+ reden?: string | null;
37444
+ station_slug?: string | null;
37445
+ uitkomst?: string;
37446
+ };
37447
+ Update: {
37448
+ code?: string | null;
37449
+ created_at?: string;
37450
+ detail?: import("../integrations/supabase/types").Json;
37451
+ id?: string;
37452
+ queue_item_id?: string | null;
37453
+ reden?: string | null;
37454
+ station_slug?: string | null;
37455
+ uitkomst?: string;
37456
+ };
37457
+ Relationships: [];
37458
+ };
36612
37459
  print_queue_runners: {
36613
37460
  Row: {
36614
37461
  actief: boolean;
@@ -36836,6 +37683,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36836
37683
  created_at: string;
36837
37684
  driver: string;
36838
37685
  extern_printer_id: string | null;
37686
+ formaten_bijgewerkt_op: string | null;
36839
37687
  id: string;
36840
37688
  ip_adres: string | null;
36841
37689
  laatst_gezien: string | null;
@@ -36843,8 +37691,11 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36843
37691
  merk: string;
36844
37692
  naam: string;
36845
37693
  omschrijving: string;
37694
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
37695
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
36846
37696
  online: boolean;
36847
37697
  papierformaat: string;
37698
+ pdf_map: string | null;
36848
37699
  poort: number | null;
36849
37700
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
36850
37701
  systeemnaam: string;
@@ -36858,6 +37709,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36858
37709
  created_at?: string;
36859
37710
  driver?: string;
36860
37711
  extern_printer_id?: string | null;
37712
+ formaten_bijgewerkt_op?: string | null;
36861
37713
  id?: string;
36862
37714
  ip_adres?: string | null;
36863
37715
  laatst_gezien?: string | null;
@@ -36865,8 +37717,11 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36865
37717
  merk?: string;
36866
37718
  naam: string;
36867
37719
  omschrijving?: string;
37720
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
37721
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
36868
37722
  online?: boolean;
36869
37723
  papierformaat?: string;
37724
+ pdf_map?: string | null;
36870
37725
  poort?: number | null;
36871
37726
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
36872
37727
  systeemnaam?: string;
@@ -36880,6 +37735,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36880
37735
  created_at?: string;
36881
37736
  driver?: string;
36882
37737
  extern_printer_id?: string | null;
37738
+ formaten_bijgewerkt_op?: string | null;
36883
37739
  id?: string;
36884
37740
  ip_adres?: string | null;
36885
37741
  laatst_gezien?: string | null;
@@ -36887,8 +37743,11 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
36887
37743
  merk?: string;
36888
37744
  naam?: string;
36889
37745
  omschrijving?: string;
37746
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
37747
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
36890
37748
  online?: boolean;
36891
37749
  papierformaat?: string;
37750
+ pdf_map?: string | null;
36892
37751
  poort?: number | null;
36893
37752
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
36894
37753
  systeemnaam?: string;
@@ -43136,6 +43995,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
43136
43995
  foutmelding: string | null;
43137
43996
  gebruiker_id: string | null;
43138
43997
  gebruiker_naam: string;
43998
+ gebruikte_bron: string | null;
43999
+ gebruikte_layout_id: string | null;
43139
44000
  gestart_op: string | null;
43140
44001
  herkomst: string | null;
43141
44002
  id: string;
@@ -43143,6 +44004,9 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
43143
44004
  is_herprint: boolean;
43144
44005
  kopieen: number;
43145
44006
  layout_id: string | null;
44007
+ lokaal_opgeslagen_op: string | null;
44008
+ lokale_pdf_fout: string | null;
44009
+ lokale_pdf_status: string | null;
43146
44010
  opgepakt_op: string | null;
43147
44011
  paginas: number;
43148
44012
  payload: import("../integrations/supabase/types").Json;
@@ -43151,6 +44015,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
43151
44015
  pogingen: number;
43152
44016
  printer_id: string | null;
43153
44017
  render_html: string | null;
44018
+ resultaat_pdf_base64: string | null;
43154
44019
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43155
44020
  updated_at: string;
43156
44021
  volgende_poging: string | null;
@@ -43242,6 +44107,53 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
43242
44107
  isSetofReturn: true;
43243
44108
  };
43244
44109
  };
44110
+ claim_pdf_print_jobs: {
44111
+ Args: {
44112
+ _max?: number;
44113
+ };
44114
+ Returns: {
44115
+ agent_id: string | null;
44116
+ bron_job_id: string | null;
44117
+ created_at: string;
44118
+ documentnaam: string;
44119
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44120
+ extern_job_id: string | null;
44121
+ foutmelding: string | null;
44122
+ gebruiker_id: string | null;
44123
+ gebruiker_naam: string;
44124
+ gebruikte_bron: string | null;
44125
+ gebruikte_layout_id: string | null;
44126
+ gestart_op: string | null;
44127
+ herkomst: string | null;
44128
+ id: string;
44129
+ idempotentie_sleutel: string | null;
44130
+ is_herprint: boolean;
44131
+ kopieen: number;
44132
+ layout_id: string | null;
44133
+ lokaal_opgeslagen_op: string | null;
44134
+ lokale_pdf_fout: string | null;
44135
+ lokale_pdf_status: string | null;
44136
+ opgepakt_op: string | null;
44137
+ paginas: number;
44138
+ payload: import("../integrations/supabase/types").Json;
44139
+ pdf_base64: string | null;
44140
+ pdf_url: string | null;
44141
+ pogingen: number;
44142
+ printer_id: string | null;
44143
+ render_html: string | null;
44144
+ resultaat_pdf_base64: string | null;
44145
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44146
+ updated_at: string;
44147
+ volgende_poging: string | null;
44148
+ voltooid_op: string | null;
44149
+ }[];
44150
+ SetofOptions: {
44151
+ from: "*";
44152
+ to: "print_jobs";
44153
+ isOneToOne: false;
44154
+ isSetofReturn: true;
44155
+ };
44156
+ };
43245
44157
  claim_print_jobs: {
43246
44158
  Args: {
43247
44159
  _agent_id: string;
@@ -43257,6 +44169,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
43257
44169
  foutmelding: string | null;
43258
44170
  gebruiker_id: string | null;
43259
44171
  gebruiker_naam: string;
44172
+ gebruikte_bron: string | null;
44173
+ gebruikte_layout_id: string | null;
43260
44174
  gestart_op: string | null;
43261
44175
  herkomst: string | null;
43262
44176
  id: string;
@@ -43264,6 +44178,9 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
43264
44178
  is_herprint: boolean;
43265
44179
  kopieen: number;
43266
44180
  layout_id: string | null;
44181
+ lokaal_opgeslagen_op: string | null;
44182
+ lokale_pdf_fout: string | null;
44183
+ lokale_pdf_status: string | null;
43267
44184
  opgepakt_op: string | null;
43268
44185
  paginas: number;
43269
44186
  payload: import("../integrations/supabase/types").Json;
@@ -43272,6 +44189,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
43272
44189
  pogingen: number;
43273
44190
  printer_id: string | null;
43274
44191
  render_html: string | null;
44192
+ resultaat_pdf_base64: string | null;
43275
44193
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43276
44194
  updated_at: string;
43277
44195
  volgende_poging: string | null;
@@ -43412,6 +44330,8 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
43412
44330
  order_id: string;
43413
44331
  order_source: string;
43414
44332
  pick_date: string;
44333
+ printed_at: string;
44334
+ printed_today: boolean;
43415
44335
  status: string;
43416
44336
  }[];
43417
44337
  };
@@ -44120,6 +45040,10 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44120
45040
  };
44121
45041
  Returns: number;
44122
45042
  };
45043
+ logistics_cancel_orphan_tasks: {
45044
+ Args: never;
45045
+ Returns: number;
45046
+ };
44123
45047
  logistics_capacity_day_check: {
44124
45048
  Args: {
44125
45049
  p_from?: string;
@@ -44140,6 +45064,25 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44140
45064
  };
44141
45065
  Returns: number;
44142
45066
  };
45067
+ logistics_cart_index: {
45068
+ Args: {
45069
+ p_from?: string;
45070
+ p_to?: string;
45071
+ };
45072
+ Returns: {
45073
+ cart_id: string;
45074
+ cart_index: number;
45075
+ cart_label: string;
45076
+ is_shared: boolean;
45077
+ order_number: string;
45078
+ order_source: string;
45079
+ order_uuid: string;
45080
+ pick_date: string;
45081
+ printed_at: string;
45082
+ shifted: boolean;
45083
+ task_status: string;
45084
+ }[];
45085
+ };
44143
45086
  logistics_check_order_allowed: {
44144
45087
  Args: {
44145
45088
  p_lines: import("../integrations/supabase/types").Json;
@@ -44288,6 +45231,17 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44288
45231
  isSetofReturn: false;
44289
45232
  };
44290
45233
  };
45234
+ logistics_consistency_check: {
45235
+ Args: never;
45236
+ Returns: {
45237
+ agenda_carts: number;
45238
+ control_carts: number;
45239
+ ok: boolean;
45240
+ orphan_tasks: number;
45241
+ pick_date: string;
45242
+ raw_carts: number;
45243
+ }[];
45244
+ };
44291
45245
  logistics_delay_customer_email: {
44292
45246
  Args: {
44293
45247
  p_customer: string;
@@ -44313,6 +45267,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44313
45267
  };
44314
45268
  Returns: string;
44315
45269
  };
45270
+ logistics_document_type_map: {
45271
+ Args: {
45272
+ _document_code: string;
45273
+ };
45274
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
45275
+ };
44316
45276
  logistics_emit_event: {
44317
45277
  Args: {
44318
45278
  p_event_type: string;
@@ -44475,6 +45435,25 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44475
45435
  };
44476
45436
  Returns: number;
44477
45437
  };
45438
+ logistics_order_overview: {
45439
+ Args: {
45440
+ p_from?: string;
45441
+ p_to?: string;
45442
+ };
45443
+ Returns: {
45444
+ cart_count: number;
45445
+ customer_name: string;
45446
+ delivery_date: string;
45447
+ order_number: string;
45448
+ order_source: string;
45449
+ order_uuid: string;
45450
+ pick_date: string;
45451
+ plant_count: number;
45452
+ printed_at: string;
45453
+ shifted: boolean;
45454
+ status: string;
45455
+ }[];
45456
+ };
44478
45457
  logistics_order_pick_day: {
44479
45458
  Args: {
44480
45459
  p_order_ref: string;
@@ -44487,6 +45466,22 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44487
45466
  };
44488
45467
  Returns: string;
44489
45468
  };
45469
+ logistics_pick_agenda: {
45470
+ Args: {
45471
+ p_from?: string;
45472
+ p_to?: string;
45473
+ };
45474
+ Returns: {
45475
+ cart_count: number;
45476
+ in_preparation: number;
45477
+ order_count: number;
45478
+ orders: import("../integrations/supabase/types").Json;
45479
+ pick_date: string;
45480
+ plant_count: number;
45481
+ ready: number;
45482
+ shifted_count: number;
45483
+ }[];
45484
+ };
44490
45485
  logistics_pick_email_purpose: {
44491
45486
  Args: never;
44492
45487
  Returns: string;
@@ -44646,6 +45641,15 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44646
45641
  };
44647
45642
  Returns: import("../integrations/supabase/types").Json;
44648
45643
  };
45644
+ logistics_resolve_pick_document: {
45645
+ Args: {
45646
+ _is_herprint: boolean;
45647
+ _queue_item_id: string;
45648
+ _session_id: string;
45649
+ _voorbeeld: boolean;
45650
+ };
45651
+ Returns: import("../integrations/supabase/types").Json;
45652
+ };
44649
45653
  logistics_resolve_settings: {
44650
45654
  Args: {
44651
45655
  p_config_id: string;
@@ -45086,6 +46090,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
45086
46090
  };
45087
46091
  pick_enqueue_print_job: {
45088
46092
  Args: {
46093
+ _is_herprint?: boolean;
45089
46094
  _printer_id?: string;
45090
46095
  _queue_item_id: string;
45091
46096
  _session_id?: string;
@@ -45099,6 +46104,13 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
45099
46104
  };
45100
46105
  Returns: import("../integrations/supabase/types").Json;
45101
46106
  };
46107
+ pick_preview_job: {
46108
+ Args: {
46109
+ _queue_item_id: string;
46110
+ _station_slug: string;
46111
+ };
46112
+ Returns: import("../integrations/supabase/types").Json;
46113
+ };
45102
46114
  pick_print_job_status: {
45103
46115
  Args: {
45104
46116
  _job_id: string;
@@ -45113,6 +46125,10 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
45113
46125
  omschrijving: string;
45114
46126
  }[];
45115
46127
  };
46128
+ pick_reference_data_status: {
46129
+ Args: never;
46130
+ Returns: import("../integrations/supabase/types").Json;
46131
+ };
45116
46132
  pick_release_expired_locks: {
45117
46133
  Args: never;
45118
46134
  Returns: number;
@@ -45177,6 +46193,10 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
45177
46193
  isSetofReturn: false;
45178
46194
  };
45179
46195
  };
46196
+ pick_seed_reference_data: {
46197
+ Args: never;
46198
+ Returns: import("../integrations/supabase/types").Json;
46199
+ };
45180
46200
  pick_set_station_print_plek: {
45181
46201
  Args: {
45182
46202
  _print_plek_id: string;
@@ -45268,6 +46288,24 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
45268
46288
  };
45269
46289
  Returns: undefined;
45270
46290
  };
46291
+ print_preview_toestaan: {
46292
+ Args: {
46293
+ _max?: number;
46294
+ _queue_item_id: string;
46295
+ _station_slug: string;
46296
+ _venster_sec?: number;
46297
+ };
46298
+ Returns: import("../integrations/supabase/types").Json;
46299
+ };
46300
+ print_preview_weiger: {
46301
+ Args: {
46302
+ _code: string;
46303
+ _queue_item_id: string;
46304
+ _reden: string;
46305
+ _station_slug: string;
46306
+ };
46307
+ Returns: undefined;
46308
+ };
45271
46309
  process_logistics_event: {
45272
46310
  Args: {
45273
46311
  p_event_id: string;
@@ -45385,6 +46423,14 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
45385
46423
  };
45386
46424
  Returns: undefined;
45387
46425
  };
46426
+ replace_order_carts: {
46427
+ Args: {
46428
+ p_buffer_id: string;
46429
+ p_carts: import("../integrations/supabase/types").Json;
46430
+ p_order_id: string;
46431
+ };
46432
+ Returns: import("../integrations/supabase/types").Json;
46433
+ };
45388
46434
  reset_floriday_sync_cursor: {
45389
46435
  Args: {
45390
46436
  p_connection_id: string;
@@ -45414,6 +46460,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
45414
46460
  };
45415
46461
  Returns: string;
45416
46462
  };
46463
+ resolve_print_job_printer_id: {
46464
+ Args: {
46465
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
46466
+ };
46467
+ Returns: string;
46468
+ };
45417
46469
  resolve_product_id_for_item: {
45418
46470
  Args: {
45419
46471
  p_product_name: string;
@@ -46005,7 +47057,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
46005
47057
  };
46006
47058
  CompositeTypes: { [_ in never]: never; };
46007
47059
  }, {
46008
- PostgrestVersion: "14.17";
47060
+ PostgrestVersion: "14.5";
46009
47061
  }>;
46010
47062
  userId: string;
46011
47063
  claims: import("@supabase/auth-js").JwtPayload;
@@ -56708,6 +57760,243 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
56708
57760
  };
56709
57761
  Relationships: [];
56710
57762
  };
57763
+ maps_addresses: {
57764
+ Row: {
57765
+ address_hash: string;
57766
+ created_at: string;
57767
+ error_reason: string | null;
57768
+ formatted_address: string | null;
57769
+ id: string;
57770
+ lat: number | null;
57771
+ lng: number | null;
57772
+ place_id: string | null;
57773
+ raw_address: string;
57774
+ resolved_at: string | null;
57775
+ status: string;
57776
+ updated_at: string;
57777
+ };
57778
+ Insert: {
57779
+ address_hash: string;
57780
+ created_at?: string;
57781
+ error_reason?: string | null;
57782
+ formatted_address?: string | null;
57783
+ id?: string;
57784
+ lat?: number | null;
57785
+ lng?: number | null;
57786
+ place_id?: string | null;
57787
+ raw_address: string;
57788
+ resolved_at?: string | null;
57789
+ status?: string;
57790
+ updated_at?: string;
57791
+ };
57792
+ Update: {
57793
+ address_hash?: string;
57794
+ created_at?: string;
57795
+ error_reason?: string | null;
57796
+ formatted_address?: string | null;
57797
+ id?: string;
57798
+ lat?: number | null;
57799
+ lng?: number | null;
57800
+ place_id?: string | null;
57801
+ raw_address?: string;
57802
+ resolved_at?: string | null;
57803
+ status?: string;
57804
+ updated_at?: string;
57805
+ };
57806
+ Relationships: [];
57807
+ };
57808
+ maps_job_lease: {
57809
+ Row: {
57810
+ job: string;
57811
+ locked_until: string;
57812
+ updated_at: string;
57813
+ };
57814
+ Insert: {
57815
+ job: string;
57816
+ locked_until?: string;
57817
+ updated_at?: string;
57818
+ };
57819
+ Update: {
57820
+ job?: string;
57821
+ locked_until?: string;
57822
+ updated_at?: string;
57823
+ };
57824
+ Relationships: [];
57825
+ };
57826
+ maps_request_queue: {
57827
+ Row: {
57828
+ attempts: number;
57829
+ created_at: string;
57830
+ destination_hash: string | null;
57831
+ id: string;
57832
+ kind: string;
57833
+ last_error: string | null;
57834
+ mode: string;
57835
+ origin_hash: string | null;
57836
+ processed_at: string | null;
57837
+ raw_destination: string | null;
57838
+ raw_origin: string | null;
57839
+ requested_by: string | null;
57840
+ status: string;
57841
+ updated_at: string;
57842
+ };
57843
+ Insert: {
57844
+ attempts?: number;
57845
+ created_at?: string;
57846
+ destination_hash?: string | null;
57847
+ id?: string;
57848
+ kind: string;
57849
+ last_error?: string | null;
57850
+ mode?: string;
57851
+ origin_hash?: string | null;
57852
+ processed_at?: string | null;
57853
+ raw_destination?: string | null;
57854
+ raw_origin?: string | null;
57855
+ requested_by?: string | null;
57856
+ status?: string;
57857
+ updated_at?: string;
57858
+ };
57859
+ Update: {
57860
+ attempts?: number;
57861
+ created_at?: string;
57862
+ destination_hash?: string | null;
57863
+ id?: string;
57864
+ kind?: string;
57865
+ last_error?: string | null;
57866
+ mode?: string;
57867
+ origin_hash?: string | null;
57868
+ processed_at?: string | null;
57869
+ raw_destination?: string | null;
57870
+ raw_origin?: string | null;
57871
+ requested_by?: string | null;
57872
+ status?: string;
57873
+ updated_at?: string;
57874
+ };
57875
+ Relationships: [];
57876
+ };
57877
+ maps_settings: {
57878
+ Row: {
57879
+ allow_estimate_fallback: boolean;
57880
+ cache_ttl_days: number;
57881
+ created_at: string;
57882
+ daily_call_limit: number;
57883
+ id: string;
57884
+ last_error: string | null;
57885
+ last_error_at: string | null;
57886
+ last_success_at: string | null;
57887
+ provider: string;
57888
+ updated_at: string;
57889
+ };
57890
+ Insert: {
57891
+ allow_estimate_fallback?: boolean;
57892
+ cache_ttl_days?: number;
57893
+ created_at?: string;
57894
+ daily_call_limit?: number;
57895
+ id?: string;
57896
+ last_error?: string | null;
57897
+ last_error_at?: string | null;
57898
+ last_success_at?: string | null;
57899
+ provider?: string;
57900
+ updated_at?: string;
57901
+ };
57902
+ Update: {
57903
+ allow_estimate_fallback?: boolean;
57904
+ cache_ttl_days?: number;
57905
+ created_at?: string;
57906
+ daily_call_limit?: number;
57907
+ id?: string;
57908
+ last_error?: string | null;
57909
+ last_error_at?: string | null;
57910
+ last_success_at?: string | null;
57911
+ provider?: string;
57912
+ updated_at?: string;
57913
+ };
57914
+ Relationships: [];
57915
+ };
57916
+ maps_travel_times: {
57917
+ Row: {
57918
+ created_at: string;
57919
+ destination_id: string;
57920
+ distance_m: number | null;
57921
+ duration_sec: number;
57922
+ expires_at: string;
57923
+ id: string;
57924
+ mode: string;
57925
+ origin_id: string;
57926
+ source: string;
57927
+ updated_at: string;
57928
+ };
57929
+ Insert: {
57930
+ created_at?: string;
57931
+ destination_id: string;
57932
+ distance_m?: number | null;
57933
+ duration_sec: number;
57934
+ expires_at?: string;
57935
+ id?: string;
57936
+ mode?: string;
57937
+ origin_id: string;
57938
+ source?: string;
57939
+ updated_at?: string;
57940
+ };
57941
+ Update: {
57942
+ created_at?: string;
57943
+ destination_id?: string;
57944
+ distance_m?: number | null;
57945
+ duration_sec?: number;
57946
+ expires_at?: string;
57947
+ id?: string;
57948
+ mode?: string;
57949
+ origin_id?: string;
57950
+ source?: string;
57951
+ updated_at?: string;
57952
+ };
57953
+ Relationships: [{
57954
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
57955
+ columns: ["destination_id"];
57956
+ isOneToOne: false;
57957
+ referencedRelation: "maps_addresses";
57958
+ referencedColumns: ["id"];
57959
+ }, {
57960
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
57961
+ columns: ["origin_id"];
57962
+ isOneToOne: false;
57963
+ referencedRelation: "maps_addresses";
57964
+ referencedColumns: ["id"];
57965
+ }];
57966
+ };
57967
+ maps_usage_log: {
57968
+ Row: {
57969
+ cache_hits: number;
57970
+ call_type: string;
57971
+ created_at: string;
57972
+ day: string;
57973
+ detail: string | null;
57974
+ elements: number;
57975
+ id: string;
57976
+ outcome: string;
57977
+ };
57978
+ Insert: {
57979
+ cache_hits?: number;
57980
+ call_type: string;
57981
+ created_at?: string;
57982
+ day?: string;
57983
+ detail?: string | null;
57984
+ elements?: number;
57985
+ id?: string;
57986
+ outcome?: string;
57987
+ };
57988
+ Update: {
57989
+ cache_hits?: number;
57990
+ call_type?: string;
57991
+ created_at?: string;
57992
+ day?: string;
57993
+ detail?: string | null;
57994
+ elements?: number;
57995
+ id?: string;
57996
+ outcome?: string;
57997
+ };
57998
+ Relationships: [];
57999
+ };
56711
58000
  material_usage: {
56712
58001
  Row: {
56713
58002
  created_at: string;
@@ -59357,6 +60646,39 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59357
60646
  };
59358
60647
  Relationships: [];
59359
60648
  };
60649
+ print_dedupe_events: {
60650
+ Row: {
60651
+ bestaande_job_id: string | null;
60652
+ created_at: string;
60653
+ detail: string | null;
60654
+ documentnaam: string | null;
60655
+ documenttype: string | null;
60656
+ id: string;
60657
+ idempotentie_sleutel: string;
60658
+ reden: string;
60659
+ };
60660
+ Insert: {
60661
+ bestaande_job_id?: string | null;
60662
+ created_at?: string;
60663
+ detail?: string | null;
60664
+ documentnaam?: string | null;
60665
+ documenttype?: string | null;
60666
+ id?: string;
60667
+ idempotentie_sleutel: string;
60668
+ reden: string;
60669
+ };
60670
+ Update: {
60671
+ bestaande_job_id?: string | null;
60672
+ created_at?: string;
60673
+ detail?: string | null;
60674
+ documentnaam?: string | null;
60675
+ documenttype?: string | null;
60676
+ id?: string;
60677
+ idempotentie_sleutel?: string;
60678
+ reden?: string;
60679
+ };
60680
+ Relationships: [];
60681
+ };
59360
60682
  print_job_logs: {
59361
60683
  Row: {
59362
60684
  created_at: string;
@@ -59398,6 +60720,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59398
60720
  foutmelding: string | null;
59399
60721
  gebruiker_id: string | null;
59400
60722
  gebruiker_naam: string;
60723
+ gebruikte_bron: string | null;
60724
+ gebruikte_layout_id: string | null;
59401
60725
  gestart_op: string | null;
59402
60726
  herkomst: string | null;
59403
60727
  id: string;
@@ -59405,6 +60729,9 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59405
60729
  is_herprint: boolean;
59406
60730
  kopieen: number;
59407
60731
  layout_id: string | null;
60732
+ lokaal_opgeslagen_op: string | null;
60733
+ lokale_pdf_fout: string | null;
60734
+ lokale_pdf_status: string | null;
59408
60735
  opgepakt_op: string | null;
59409
60736
  paginas: number;
59410
60737
  payload: import("../integrations/supabase/types").Json;
@@ -59413,6 +60740,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59413
60740
  pogingen: number;
59414
60741
  printer_id: string | null;
59415
60742
  render_html: string | null;
60743
+ resultaat_pdf_base64: string | null;
59416
60744
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
59417
60745
  updated_at: string;
59418
60746
  volgende_poging: string | null;
@@ -59428,6 +60756,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59428
60756
  foutmelding?: string | null;
59429
60757
  gebruiker_id?: string | null;
59430
60758
  gebruiker_naam?: string;
60759
+ gebruikte_bron?: string | null;
60760
+ gebruikte_layout_id?: string | null;
59431
60761
  gestart_op?: string | null;
59432
60762
  herkomst?: string | null;
59433
60763
  id?: string;
@@ -59435,6 +60765,9 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59435
60765
  is_herprint?: boolean;
59436
60766
  kopieen?: number;
59437
60767
  layout_id?: string | null;
60768
+ lokaal_opgeslagen_op?: string | null;
60769
+ lokale_pdf_fout?: string | null;
60770
+ lokale_pdf_status?: string | null;
59438
60771
  opgepakt_op?: string | null;
59439
60772
  paginas?: number;
59440
60773
  payload?: import("../integrations/supabase/types").Json;
@@ -59443,6 +60776,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59443
60776
  pogingen?: number;
59444
60777
  printer_id?: string | null;
59445
60778
  render_html?: string | null;
60779
+ resultaat_pdf_base64?: string | null;
59446
60780
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
59447
60781
  updated_at?: string;
59448
60782
  volgende_poging?: string | null;
@@ -59458,6 +60792,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59458
60792
  foutmelding?: string | null;
59459
60793
  gebruiker_id?: string | null;
59460
60794
  gebruiker_naam?: string;
60795
+ gebruikte_bron?: string | null;
60796
+ gebruikte_layout_id?: string | null;
59461
60797
  gestart_op?: string | null;
59462
60798
  herkomst?: string | null;
59463
60799
  id?: string;
@@ -59465,6 +60801,9 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59465
60801
  is_herprint?: boolean;
59466
60802
  kopieen?: number;
59467
60803
  layout_id?: string | null;
60804
+ lokaal_opgeslagen_op?: string | null;
60805
+ lokale_pdf_fout?: string | null;
60806
+ lokale_pdf_status?: string | null;
59468
60807
  opgepakt_op?: string | null;
59469
60808
  paginas?: number;
59470
60809
  payload?: import("../integrations/supabase/types").Json;
@@ -59473,6 +60812,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59473
60812
  pogingen?: number;
59474
60813
  printer_id?: string | null;
59475
60814
  render_html?: string | null;
60815
+ resultaat_pdf_base64?: string | null;
59476
60816
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
59477
60817
  updated_at?: string;
59478
60818
  volgende_poging?: string | null;
@@ -59591,6 +60931,39 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59591
60931
  };
59592
60932
  Relationships: [];
59593
60933
  };
60934
+ print_preview_events: {
60935
+ Row: {
60936
+ code: string | null;
60937
+ created_at: string;
60938
+ detail: import("../integrations/supabase/types").Json;
60939
+ id: string;
60940
+ queue_item_id: string | null;
60941
+ reden: string | null;
60942
+ station_slug: string | null;
60943
+ uitkomst: string;
60944
+ };
60945
+ Insert: {
60946
+ code?: string | null;
60947
+ created_at?: string;
60948
+ detail?: import("../integrations/supabase/types").Json;
60949
+ id?: string;
60950
+ queue_item_id?: string | null;
60951
+ reden?: string | null;
60952
+ station_slug?: string | null;
60953
+ uitkomst?: string;
60954
+ };
60955
+ Update: {
60956
+ code?: string | null;
60957
+ created_at?: string;
60958
+ detail?: import("../integrations/supabase/types").Json;
60959
+ id?: string;
60960
+ queue_item_id?: string | null;
60961
+ reden?: string | null;
60962
+ station_slug?: string | null;
60963
+ uitkomst?: string;
60964
+ };
60965
+ Relationships: [];
60966
+ };
59594
60967
  print_queue_runners: {
59595
60968
  Row: {
59596
60969
  actief: boolean;
@@ -59818,6 +61191,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59818
61191
  created_at: string;
59819
61192
  driver: string;
59820
61193
  extern_printer_id: string | null;
61194
+ formaten_bijgewerkt_op: string | null;
59821
61195
  id: string;
59822
61196
  ip_adres: string | null;
59823
61197
  laatst_gezien: string | null;
@@ -59825,8 +61199,11 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59825
61199
  merk: string;
59826
61200
  naam: string;
59827
61201
  omschrijving: string;
61202
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
61203
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
59828
61204
  online: boolean;
59829
61205
  papierformaat: string;
61206
+ pdf_map: string | null;
59830
61207
  poort: number | null;
59831
61208
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
59832
61209
  systeemnaam: string;
@@ -59840,6 +61217,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59840
61217
  created_at?: string;
59841
61218
  driver?: string;
59842
61219
  extern_printer_id?: string | null;
61220
+ formaten_bijgewerkt_op?: string | null;
59843
61221
  id?: string;
59844
61222
  ip_adres?: string | null;
59845
61223
  laatst_gezien?: string | null;
@@ -59847,8 +61225,11 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59847
61225
  merk?: string;
59848
61226
  naam: string;
59849
61227
  omschrijving?: string;
61228
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
61229
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
59850
61230
  online?: boolean;
59851
61231
  papierformaat?: string;
61232
+ pdf_map?: string | null;
59852
61233
  poort?: number | null;
59853
61234
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
59854
61235
  systeemnaam?: string;
@@ -59862,6 +61243,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59862
61243
  created_at?: string;
59863
61244
  driver?: string;
59864
61245
  extern_printer_id?: string | null;
61246
+ formaten_bijgewerkt_op?: string | null;
59865
61247
  id?: string;
59866
61248
  ip_adres?: string | null;
59867
61249
  laatst_gezien?: string | null;
@@ -59869,8 +61251,11 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
59869
61251
  merk?: string;
59870
61252
  naam?: string;
59871
61253
  omschrijving?: string;
61254
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
61255
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
59872
61256
  online?: boolean;
59873
61257
  papierformaat?: string;
61258
+ pdf_map?: string | null;
59874
61259
  poort?: number | null;
59875
61260
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
59876
61261
  systeemnaam?: string;
@@ -66118,6 +67503,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
66118
67503
  foutmelding: string | null;
66119
67504
  gebruiker_id: string | null;
66120
67505
  gebruiker_naam: string;
67506
+ gebruikte_bron: string | null;
67507
+ gebruikte_layout_id: string | null;
66121
67508
  gestart_op: string | null;
66122
67509
  herkomst: string | null;
66123
67510
  id: string;
@@ -66125,6 +67512,9 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
66125
67512
  is_herprint: boolean;
66126
67513
  kopieen: number;
66127
67514
  layout_id: string | null;
67515
+ lokaal_opgeslagen_op: string | null;
67516
+ lokale_pdf_fout: string | null;
67517
+ lokale_pdf_status: string | null;
66128
67518
  opgepakt_op: string | null;
66129
67519
  paginas: number;
66130
67520
  payload: import("../integrations/supabase/types").Json;
@@ -66133,6 +67523,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
66133
67523
  pogingen: number;
66134
67524
  printer_id: string | null;
66135
67525
  render_html: string | null;
67526
+ resultaat_pdf_base64: string | null;
66136
67527
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
66137
67528
  updated_at: string;
66138
67529
  volgende_poging: string | null;
@@ -66224,6 +67615,53 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
66224
67615
  isSetofReturn: true;
66225
67616
  };
66226
67617
  };
67618
+ claim_pdf_print_jobs: {
67619
+ Args: {
67620
+ _max?: number;
67621
+ };
67622
+ Returns: {
67623
+ agent_id: string | null;
67624
+ bron_job_id: string | null;
67625
+ created_at: string;
67626
+ documentnaam: string;
67627
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
67628
+ extern_job_id: string | null;
67629
+ foutmelding: string | null;
67630
+ gebruiker_id: string | null;
67631
+ gebruiker_naam: string;
67632
+ gebruikte_bron: string | null;
67633
+ gebruikte_layout_id: string | null;
67634
+ gestart_op: string | null;
67635
+ herkomst: string | null;
67636
+ id: string;
67637
+ idempotentie_sleutel: string | null;
67638
+ is_herprint: boolean;
67639
+ kopieen: number;
67640
+ layout_id: string | null;
67641
+ lokaal_opgeslagen_op: string | null;
67642
+ lokale_pdf_fout: string | null;
67643
+ lokale_pdf_status: string | null;
67644
+ opgepakt_op: string | null;
67645
+ paginas: number;
67646
+ payload: import("../integrations/supabase/types").Json;
67647
+ pdf_base64: string | null;
67648
+ pdf_url: string | null;
67649
+ pogingen: number;
67650
+ printer_id: string | null;
67651
+ render_html: string | null;
67652
+ resultaat_pdf_base64: string | null;
67653
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67654
+ updated_at: string;
67655
+ volgende_poging: string | null;
67656
+ voltooid_op: string | null;
67657
+ }[];
67658
+ SetofOptions: {
67659
+ from: "*";
67660
+ to: "print_jobs";
67661
+ isOneToOne: false;
67662
+ isSetofReturn: true;
67663
+ };
67664
+ };
66227
67665
  claim_print_jobs: {
66228
67666
  Args: {
66229
67667
  _agent_id: string;
@@ -66239,6 +67677,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
66239
67677
  foutmelding: string | null;
66240
67678
  gebruiker_id: string | null;
66241
67679
  gebruiker_naam: string;
67680
+ gebruikte_bron: string | null;
67681
+ gebruikte_layout_id: string | null;
66242
67682
  gestart_op: string | null;
66243
67683
  herkomst: string | null;
66244
67684
  id: string;
@@ -66246,6 +67686,9 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
66246
67686
  is_herprint: boolean;
66247
67687
  kopieen: number;
66248
67688
  layout_id: string | null;
67689
+ lokaal_opgeslagen_op: string | null;
67690
+ lokale_pdf_fout: string | null;
67691
+ lokale_pdf_status: string | null;
66249
67692
  opgepakt_op: string | null;
66250
67693
  paginas: number;
66251
67694
  payload: import("../integrations/supabase/types").Json;
@@ -66254,6 +67697,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
66254
67697
  pogingen: number;
66255
67698
  printer_id: string | null;
66256
67699
  render_html: string | null;
67700
+ resultaat_pdf_base64: string | null;
66257
67701
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
66258
67702
  updated_at: string;
66259
67703
  volgende_poging: string | null;
@@ -66394,6 +67838,8 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
66394
67838
  order_id: string;
66395
67839
  order_source: string;
66396
67840
  pick_date: string;
67841
+ printed_at: string;
67842
+ printed_today: boolean;
66397
67843
  status: string;
66398
67844
  }[];
66399
67845
  };
@@ -67102,6 +68548,10 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
67102
68548
  };
67103
68549
  Returns: number;
67104
68550
  };
68551
+ logistics_cancel_orphan_tasks: {
68552
+ Args: never;
68553
+ Returns: number;
68554
+ };
67105
68555
  logistics_capacity_day_check: {
67106
68556
  Args: {
67107
68557
  p_from?: string;
@@ -67122,6 +68572,25 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
67122
68572
  };
67123
68573
  Returns: number;
67124
68574
  };
68575
+ logistics_cart_index: {
68576
+ Args: {
68577
+ p_from?: string;
68578
+ p_to?: string;
68579
+ };
68580
+ Returns: {
68581
+ cart_id: string;
68582
+ cart_index: number;
68583
+ cart_label: string;
68584
+ is_shared: boolean;
68585
+ order_number: string;
68586
+ order_source: string;
68587
+ order_uuid: string;
68588
+ pick_date: string;
68589
+ printed_at: string;
68590
+ shifted: boolean;
68591
+ task_status: string;
68592
+ }[];
68593
+ };
67125
68594
  logistics_check_order_allowed: {
67126
68595
  Args: {
67127
68596
  p_lines: import("../integrations/supabase/types").Json;
@@ -67270,6 +68739,17 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
67270
68739
  isSetofReturn: false;
67271
68740
  };
67272
68741
  };
68742
+ logistics_consistency_check: {
68743
+ Args: never;
68744
+ Returns: {
68745
+ agenda_carts: number;
68746
+ control_carts: number;
68747
+ ok: boolean;
68748
+ orphan_tasks: number;
68749
+ pick_date: string;
68750
+ raw_carts: number;
68751
+ }[];
68752
+ };
67273
68753
  logistics_delay_customer_email: {
67274
68754
  Args: {
67275
68755
  p_customer: string;
@@ -67295,6 +68775,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
67295
68775
  };
67296
68776
  Returns: string;
67297
68777
  };
68778
+ logistics_document_type_map: {
68779
+ Args: {
68780
+ _document_code: string;
68781
+ };
68782
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
68783
+ };
67298
68784
  logistics_emit_event: {
67299
68785
  Args: {
67300
68786
  p_event_type: string;
@@ -67457,6 +68943,25 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
67457
68943
  };
67458
68944
  Returns: number;
67459
68945
  };
68946
+ logistics_order_overview: {
68947
+ Args: {
68948
+ p_from?: string;
68949
+ p_to?: string;
68950
+ };
68951
+ Returns: {
68952
+ cart_count: number;
68953
+ customer_name: string;
68954
+ delivery_date: string;
68955
+ order_number: string;
68956
+ order_source: string;
68957
+ order_uuid: string;
68958
+ pick_date: string;
68959
+ plant_count: number;
68960
+ printed_at: string;
68961
+ shifted: boolean;
68962
+ status: string;
68963
+ }[];
68964
+ };
67460
68965
  logistics_order_pick_day: {
67461
68966
  Args: {
67462
68967
  p_order_ref: string;
@@ -67469,6 +68974,22 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
67469
68974
  };
67470
68975
  Returns: string;
67471
68976
  };
68977
+ logistics_pick_agenda: {
68978
+ Args: {
68979
+ p_from?: string;
68980
+ p_to?: string;
68981
+ };
68982
+ Returns: {
68983
+ cart_count: number;
68984
+ in_preparation: number;
68985
+ order_count: number;
68986
+ orders: import("../integrations/supabase/types").Json;
68987
+ pick_date: string;
68988
+ plant_count: number;
68989
+ ready: number;
68990
+ shifted_count: number;
68991
+ }[];
68992
+ };
67472
68993
  logistics_pick_email_purpose: {
67473
68994
  Args: never;
67474
68995
  Returns: string;
@@ -67628,6 +69149,15 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
67628
69149
  };
67629
69150
  Returns: import("../integrations/supabase/types").Json;
67630
69151
  };
69152
+ logistics_resolve_pick_document: {
69153
+ Args: {
69154
+ _is_herprint: boolean;
69155
+ _queue_item_id: string;
69156
+ _session_id: string;
69157
+ _voorbeeld: boolean;
69158
+ };
69159
+ Returns: import("../integrations/supabase/types").Json;
69160
+ };
67631
69161
  logistics_resolve_settings: {
67632
69162
  Args: {
67633
69163
  p_config_id: string;
@@ -68068,6 +69598,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
68068
69598
  };
68069
69599
  pick_enqueue_print_job: {
68070
69600
  Args: {
69601
+ _is_herprint?: boolean;
68071
69602
  _printer_id?: string;
68072
69603
  _queue_item_id: string;
68073
69604
  _session_id?: string;
@@ -68081,6 +69612,13 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
68081
69612
  };
68082
69613
  Returns: import("../integrations/supabase/types").Json;
68083
69614
  };
69615
+ pick_preview_job: {
69616
+ Args: {
69617
+ _queue_item_id: string;
69618
+ _station_slug: string;
69619
+ };
69620
+ Returns: import("../integrations/supabase/types").Json;
69621
+ };
68084
69622
  pick_print_job_status: {
68085
69623
  Args: {
68086
69624
  _job_id: string;
@@ -68095,6 +69633,10 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
68095
69633
  omschrijving: string;
68096
69634
  }[];
68097
69635
  };
69636
+ pick_reference_data_status: {
69637
+ Args: never;
69638
+ Returns: import("../integrations/supabase/types").Json;
69639
+ };
68098
69640
  pick_release_expired_locks: {
68099
69641
  Args: never;
68100
69642
  Returns: number;
@@ -68159,6 +69701,10 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
68159
69701
  isSetofReturn: false;
68160
69702
  };
68161
69703
  };
69704
+ pick_seed_reference_data: {
69705
+ Args: never;
69706
+ Returns: import("../integrations/supabase/types").Json;
69707
+ };
68162
69708
  pick_set_station_print_plek: {
68163
69709
  Args: {
68164
69710
  _print_plek_id: string;
@@ -68250,6 +69796,24 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
68250
69796
  };
68251
69797
  Returns: undefined;
68252
69798
  };
69799
+ print_preview_toestaan: {
69800
+ Args: {
69801
+ _max?: number;
69802
+ _queue_item_id: string;
69803
+ _station_slug: string;
69804
+ _venster_sec?: number;
69805
+ };
69806
+ Returns: import("../integrations/supabase/types").Json;
69807
+ };
69808
+ print_preview_weiger: {
69809
+ Args: {
69810
+ _code: string;
69811
+ _queue_item_id: string;
69812
+ _reden: string;
69813
+ _station_slug: string;
69814
+ };
69815
+ Returns: undefined;
69816
+ };
68253
69817
  process_logistics_event: {
68254
69818
  Args: {
68255
69819
  p_event_id: string;
@@ -68367,6 +69931,14 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
68367
69931
  };
68368
69932
  Returns: undefined;
68369
69933
  };
69934
+ replace_order_carts: {
69935
+ Args: {
69936
+ p_buffer_id: string;
69937
+ p_carts: import("../integrations/supabase/types").Json;
69938
+ p_order_id: string;
69939
+ };
69940
+ Returns: import("../integrations/supabase/types").Json;
69941
+ };
68370
69942
  reset_floriday_sync_cursor: {
68371
69943
  Args: {
68372
69944
  p_connection_id: string;
@@ -68396,6 +69968,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
68396
69968
  };
68397
69969
  Returns: string;
68398
69970
  };
69971
+ resolve_print_job_printer_id: {
69972
+ Args: {
69973
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
69974
+ };
69975
+ Returns: string;
69976
+ };
68399
69977
  resolve_product_id_for_item: {
68400
69978
  Args: {
68401
69979
  p_product_name: string;
@@ -68987,7 +70565,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
68987
70565
  };
68988
70566
  CompositeTypes: { [_ in never]: never; };
68989
70567
  }, {
68990
- PostgrestVersion: "14.17";
70568
+ PostgrestVersion: "14.5";
68991
70569
  }>;
68992
70570
  userId: string;
68993
70571
  claims: import("@supabase/auth-js").JwtPayload;
@@ -79692,6 +81270,243 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
79692
81270
  };
79693
81271
  Relationships: [];
79694
81272
  };
81273
+ maps_addresses: {
81274
+ Row: {
81275
+ address_hash: string;
81276
+ created_at: string;
81277
+ error_reason: string | null;
81278
+ formatted_address: string | null;
81279
+ id: string;
81280
+ lat: number | null;
81281
+ lng: number | null;
81282
+ place_id: string | null;
81283
+ raw_address: string;
81284
+ resolved_at: string | null;
81285
+ status: string;
81286
+ updated_at: string;
81287
+ };
81288
+ Insert: {
81289
+ address_hash: string;
81290
+ created_at?: string;
81291
+ error_reason?: string | null;
81292
+ formatted_address?: string | null;
81293
+ id?: string;
81294
+ lat?: number | null;
81295
+ lng?: number | null;
81296
+ place_id?: string | null;
81297
+ raw_address: string;
81298
+ resolved_at?: string | null;
81299
+ status?: string;
81300
+ updated_at?: string;
81301
+ };
81302
+ Update: {
81303
+ address_hash?: string;
81304
+ created_at?: string;
81305
+ error_reason?: string | null;
81306
+ formatted_address?: string | null;
81307
+ id?: string;
81308
+ lat?: number | null;
81309
+ lng?: number | null;
81310
+ place_id?: string | null;
81311
+ raw_address?: string;
81312
+ resolved_at?: string | null;
81313
+ status?: string;
81314
+ updated_at?: string;
81315
+ };
81316
+ Relationships: [];
81317
+ };
81318
+ maps_job_lease: {
81319
+ Row: {
81320
+ job: string;
81321
+ locked_until: string;
81322
+ updated_at: string;
81323
+ };
81324
+ Insert: {
81325
+ job: string;
81326
+ locked_until?: string;
81327
+ updated_at?: string;
81328
+ };
81329
+ Update: {
81330
+ job?: string;
81331
+ locked_until?: string;
81332
+ updated_at?: string;
81333
+ };
81334
+ Relationships: [];
81335
+ };
81336
+ maps_request_queue: {
81337
+ Row: {
81338
+ attempts: number;
81339
+ created_at: string;
81340
+ destination_hash: string | null;
81341
+ id: string;
81342
+ kind: string;
81343
+ last_error: string | null;
81344
+ mode: string;
81345
+ origin_hash: string | null;
81346
+ processed_at: string | null;
81347
+ raw_destination: string | null;
81348
+ raw_origin: string | null;
81349
+ requested_by: string | null;
81350
+ status: string;
81351
+ updated_at: string;
81352
+ };
81353
+ Insert: {
81354
+ attempts?: number;
81355
+ created_at?: string;
81356
+ destination_hash?: string | null;
81357
+ id?: string;
81358
+ kind: string;
81359
+ last_error?: string | null;
81360
+ mode?: string;
81361
+ origin_hash?: string | null;
81362
+ processed_at?: string | null;
81363
+ raw_destination?: string | null;
81364
+ raw_origin?: string | null;
81365
+ requested_by?: string | null;
81366
+ status?: string;
81367
+ updated_at?: string;
81368
+ };
81369
+ Update: {
81370
+ attempts?: number;
81371
+ created_at?: string;
81372
+ destination_hash?: string | null;
81373
+ id?: string;
81374
+ kind?: string;
81375
+ last_error?: string | null;
81376
+ mode?: string;
81377
+ origin_hash?: string | null;
81378
+ processed_at?: string | null;
81379
+ raw_destination?: string | null;
81380
+ raw_origin?: string | null;
81381
+ requested_by?: string | null;
81382
+ status?: string;
81383
+ updated_at?: string;
81384
+ };
81385
+ Relationships: [];
81386
+ };
81387
+ maps_settings: {
81388
+ Row: {
81389
+ allow_estimate_fallback: boolean;
81390
+ cache_ttl_days: number;
81391
+ created_at: string;
81392
+ daily_call_limit: number;
81393
+ id: string;
81394
+ last_error: string | null;
81395
+ last_error_at: string | null;
81396
+ last_success_at: string | null;
81397
+ provider: string;
81398
+ updated_at: string;
81399
+ };
81400
+ Insert: {
81401
+ allow_estimate_fallback?: boolean;
81402
+ cache_ttl_days?: number;
81403
+ created_at?: string;
81404
+ daily_call_limit?: number;
81405
+ id?: string;
81406
+ last_error?: string | null;
81407
+ last_error_at?: string | null;
81408
+ last_success_at?: string | null;
81409
+ provider?: string;
81410
+ updated_at?: string;
81411
+ };
81412
+ Update: {
81413
+ allow_estimate_fallback?: boolean;
81414
+ cache_ttl_days?: number;
81415
+ created_at?: string;
81416
+ daily_call_limit?: number;
81417
+ id?: string;
81418
+ last_error?: string | null;
81419
+ last_error_at?: string | null;
81420
+ last_success_at?: string | null;
81421
+ provider?: string;
81422
+ updated_at?: string;
81423
+ };
81424
+ Relationships: [];
81425
+ };
81426
+ maps_travel_times: {
81427
+ Row: {
81428
+ created_at: string;
81429
+ destination_id: string;
81430
+ distance_m: number | null;
81431
+ duration_sec: number;
81432
+ expires_at: string;
81433
+ id: string;
81434
+ mode: string;
81435
+ origin_id: string;
81436
+ source: string;
81437
+ updated_at: string;
81438
+ };
81439
+ Insert: {
81440
+ created_at?: string;
81441
+ destination_id: string;
81442
+ distance_m?: number | null;
81443
+ duration_sec: number;
81444
+ expires_at?: string;
81445
+ id?: string;
81446
+ mode?: string;
81447
+ origin_id: string;
81448
+ source?: string;
81449
+ updated_at?: string;
81450
+ };
81451
+ Update: {
81452
+ created_at?: string;
81453
+ destination_id?: string;
81454
+ distance_m?: number | null;
81455
+ duration_sec?: number;
81456
+ expires_at?: string;
81457
+ id?: string;
81458
+ mode?: string;
81459
+ origin_id?: string;
81460
+ source?: string;
81461
+ updated_at?: string;
81462
+ };
81463
+ Relationships: [{
81464
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
81465
+ columns: ["destination_id"];
81466
+ isOneToOne: false;
81467
+ referencedRelation: "maps_addresses";
81468
+ referencedColumns: ["id"];
81469
+ }, {
81470
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
81471
+ columns: ["origin_id"];
81472
+ isOneToOne: false;
81473
+ referencedRelation: "maps_addresses";
81474
+ referencedColumns: ["id"];
81475
+ }];
81476
+ };
81477
+ maps_usage_log: {
81478
+ Row: {
81479
+ cache_hits: number;
81480
+ call_type: string;
81481
+ created_at: string;
81482
+ day: string;
81483
+ detail: string | null;
81484
+ elements: number;
81485
+ id: string;
81486
+ outcome: string;
81487
+ };
81488
+ Insert: {
81489
+ cache_hits?: number;
81490
+ call_type: string;
81491
+ created_at?: string;
81492
+ day?: string;
81493
+ detail?: string | null;
81494
+ elements?: number;
81495
+ id?: string;
81496
+ outcome?: string;
81497
+ };
81498
+ Update: {
81499
+ cache_hits?: number;
81500
+ call_type?: string;
81501
+ created_at?: string;
81502
+ day?: string;
81503
+ detail?: string | null;
81504
+ elements?: number;
81505
+ id?: string;
81506
+ outcome?: string;
81507
+ };
81508
+ Relationships: [];
81509
+ };
79695
81510
  material_usage: {
79696
81511
  Row: {
79697
81512
  created_at: string;
@@ -82341,6 +84156,39 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82341
84156
  };
82342
84157
  Relationships: [];
82343
84158
  };
84159
+ print_dedupe_events: {
84160
+ Row: {
84161
+ bestaande_job_id: string | null;
84162
+ created_at: string;
84163
+ detail: string | null;
84164
+ documentnaam: string | null;
84165
+ documenttype: string | null;
84166
+ id: string;
84167
+ idempotentie_sleutel: string;
84168
+ reden: string;
84169
+ };
84170
+ Insert: {
84171
+ bestaande_job_id?: string | null;
84172
+ created_at?: string;
84173
+ detail?: string | null;
84174
+ documentnaam?: string | null;
84175
+ documenttype?: string | null;
84176
+ id?: string;
84177
+ idempotentie_sleutel: string;
84178
+ reden: string;
84179
+ };
84180
+ Update: {
84181
+ bestaande_job_id?: string | null;
84182
+ created_at?: string;
84183
+ detail?: string | null;
84184
+ documentnaam?: string | null;
84185
+ documenttype?: string | null;
84186
+ id?: string;
84187
+ idempotentie_sleutel?: string;
84188
+ reden?: string;
84189
+ };
84190
+ Relationships: [];
84191
+ };
82344
84192
  print_job_logs: {
82345
84193
  Row: {
82346
84194
  created_at: string;
@@ -82382,6 +84230,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82382
84230
  foutmelding: string | null;
82383
84231
  gebruiker_id: string | null;
82384
84232
  gebruiker_naam: string;
84233
+ gebruikte_bron: string | null;
84234
+ gebruikte_layout_id: string | null;
82385
84235
  gestart_op: string | null;
82386
84236
  herkomst: string | null;
82387
84237
  id: string;
@@ -82389,6 +84239,9 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82389
84239
  is_herprint: boolean;
82390
84240
  kopieen: number;
82391
84241
  layout_id: string | null;
84242
+ lokaal_opgeslagen_op: string | null;
84243
+ lokale_pdf_fout: string | null;
84244
+ lokale_pdf_status: string | null;
82392
84245
  opgepakt_op: string | null;
82393
84246
  paginas: number;
82394
84247
  payload: import("../integrations/supabase/types").Json;
@@ -82397,6 +84250,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82397
84250
  pogingen: number;
82398
84251
  printer_id: string | null;
82399
84252
  render_html: string | null;
84253
+ resultaat_pdf_base64: string | null;
82400
84254
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
82401
84255
  updated_at: string;
82402
84256
  volgende_poging: string | null;
@@ -82412,6 +84266,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82412
84266
  foutmelding?: string | null;
82413
84267
  gebruiker_id?: string | null;
82414
84268
  gebruiker_naam?: string;
84269
+ gebruikte_bron?: string | null;
84270
+ gebruikte_layout_id?: string | null;
82415
84271
  gestart_op?: string | null;
82416
84272
  herkomst?: string | null;
82417
84273
  id?: string;
@@ -82419,6 +84275,9 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82419
84275
  is_herprint?: boolean;
82420
84276
  kopieen?: number;
82421
84277
  layout_id?: string | null;
84278
+ lokaal_opgeslagen_op?: string | null;
84279
+ lokale_pdf_fout?: string | null;
84280
+ lokale_pdf_status?: string | null;
82422
84281
  opgepakt_op?: string | null;
82423
84282
  paginas?: number;
82424
84283
  payload?: import("../integrations/supabase/types").Json;
@@ -82427,6 +84286,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82427
84286
  pogingen?: number;
82428
84287
  printer_id?: string | null;
82429
84288
  render_html?: string | null;
84289
+ resultaat_pdf_base64?: string | null;
82430
84290
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
82431
84291
  updated_at?: string;
82432
84292
  volgende_poging?: string | null;
@@ -82442,6 +84302,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82442
84302
  foutmelding?: string | null;
82443
84303
  gebruiker_id?: string | null;
82444
84304
  gebruiker_naam?: string;
84305
+ gebruikte_bron?: string | null;
84306
+ gebruikte_layout_id?: string | null;
82445
84307
  gestart_op?: string | null;
82446
84308
  herkomst?: string | null;
82447
84309
  id?: string;
@@ -82449,6 +84311,9 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82449
84311
  is_herprint?: boolean;
82450
84312
  kopieen?: number;
82451
84313
  layout_id?: string | null;
84314
+ lokaal_opgeslagen_op?: string | null;
84315
+ lokale_pdf_fout?: string | null;
84316
+ lokale_pdf_status?: string | null;
82452
84317
  opgepakt_op?: string | null;
82453
84318
  paginas?: number;
82454
84319
  payload?: import("../integrations/supabase/types").Json;
@@ -82457,6 +84322,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82457
84322
  pogingen?: number;
82458
84323
  printer_id?: string | null;
82459
84324
  render_html?: string | null;
84325
+ resultaat_pdf_base64?: string | null;
82460
84326
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
82461
84327
  updated_at?: string;
82462
84328
  volgende_poging?: string | null;
@@ -82575,6 +84441,39 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82575
84441
  };
82576
84442
  Relationships: [];
82577
84443
  };
84444
+ print_preview_events: {
84445
+ Row: {
84446
+ code: string | null;
84447
+ created_at: string;
84448
+ detail: import("../integrations/supabase/types").Json;
84449
+ id: string;
84450
+ queue_item_id: string | null;
84451
+ reden: string | null;
84452
+ station_slug: string | null;
84453
+ uitkomst: string;
84454
+ };
84455
+ Insert: {
84456
+ code?: string | null;
84457
+ created_at?: string;
84458
+ detail?: import("../integrations/supabase/types").Json;
84459
+ id?: string;
84460
+ queue_item_id?: string | null;
84461
+ reden?: string | null;
84462
+ station_slug?: string | null;
84463
+ uitkomst?: string;
84464
+ };
84465
+ Update: {
84466
+ code?: string | null;
84467
+ created_at?: string;
84468
+ detail?: import("../integrations/supabase/types").Json;
84469
+ id?: string;
84470
+ queue_item_id?: string | null;
84471
+ reden?: string | null;
84472
+ station_slug?: string | null;
84473
+ uitkomst?: string;
84474
+ };
84475
+ Relationships: [];
84476
+ };
82578
84477
  print_queue_runners: {
82579
84478
  Row: {
82580
84479
  actief: boolean;
@@ -82802,6 +84701,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82802
84701
  created_at: string;
82803
84702
  driver: string;
82804
84703
  extern_printer_id: string | null;
84704
+ formaten_bijgewerkt_op: string | null;
82805
84705
  id: string;
82806
84706
  ip_adres: string | null;
82807
84707
  laatst_gezien: string | null;
@@ -82809,8 +84709,11 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82809
84709
  merk: string;
82810
84710
  naam: string;
82811
84711
  omschrijving: string;
84712
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
84713
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
82812
84714
  online: boolean;
82813
84715
  papierformaat: string;
84716
+ pdf_map: string | null;
82814
84717
  poort: number | null;
82815
84718
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
82816
84719
  systeemnaam: string;
@@ -82824,6 +84727,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82824
84727
  created_at?: string;
82825
84728
  driver?: string;
82826
84729
  extern_printer_id?: string | null;
84730
+ formaten_bijgewerkt_op?: string | null;
82827
84731
  id?: string;
82828
84732
  ip_adres?: string | null;
82829
84733
  laatst_gezien?: string | null;
@@ -82831,8 +84735,11 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82831
84735
  merk?: string;
82832
84736
  naam: string;
82833
84737
  omschrijving?: string;
84738
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
84739
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
82834
84740
  online?: boolean;
82835
84741
  papierformaat?: string;
84742
+ pdf_map?: string | null;
82836
84743
  poort?: number | null;
82837
84744
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
82838
84745
  systeemnaam?: string;
@@ -82846,6 +84753,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82846
84753
  created_at?: string;
82847
84754
  driver?: string;
82848
84755
  extern_printer_id?: string | null;
84756
+ formaten_bijgewerkt_op?: string | null;
82849
84757
  id?: string;
82850
84758
  ip_adres?: string | null;
82851
84759
  laatst_gezien?: string | null;
@@ -82853,8 +84761,11 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
82853
84761
  merk?: string;
82854
84762
  naam?: string;
82855
84763
  omschrijving?: string;
84764
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
84765
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
82856
84766
  online?: boolean;
82857
84767
  papierformaat?: string;
84768
+ pdf_map?: string | null;
82858
84769
  poort?: number | null;
82859
84770
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
82860
84771
  systeemnaam?: string;
@@ -89102,6 +91013,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
89102
91013
  foutmelding: string | null;
89103
91014
  gebruiker_id: string | null;
89104
91015
  gebruiker_naam: string;
91016
+ gebruikte_bron: string | null;
91017
+ gebruikte_layout_id: string | null;
89105
91018
  gestart_op: string | null;
89106
91019
  herkomst: string | null;
89107
91020
  id: string;
@@ -89109,6 +91022,9 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
89109
91022
  is_herprint: boolean;
89110
91023
  kopieen: number;
89111
91024
  layout_id: string | null;
91025
+ lokaal_opgeslagen_op: string | null;
91026
+ lokale_pdf_fout: string | null;
91027
+ lokale_pdf_status: string | null;
89112
91028
  opgepakt_op: string | null;
89113
91029
  paginas: number;
89114
91030
  payload: import("../integrations/supabase/types").Json;
@@ -89117,6 +91033,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
89117
91033
  pogingen: number;
89118
91034
  printer_id: string | null;
89119
91035
  render_html: string | null;
91036
+ resultaat_pdf_base64: string | null;
89120
91037
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
89121
91038
  updated_at: string;
89122
91039
  volgende_poging: string | null;
@@ -89208,6 +91125,53 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
89208
91125
  isSetofReturn: true;
89209
91126
  };
89210
91127
  };
91128
+ claim_pdf_print_jobs: {
91129
+ Args: {
91130
+ _max?: number;
91131
+ };
91132
+ Returns: {
91133
+ agent_id: string | null;
91134
+ bron_job_id: string | null;
91135
+ created_at: string;
91136
+ documentnaam: string;
91137
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
91138
+ extern_job_id: string | null;
91139
+ foutmelding: string | null;
91140
+ gebruiker_id: string | null;
91141
+ gebruiker_naam: string;
91142
+ gebruikte_bron: string | null;
91143
+ gebruikte_layout_id: string | null;
91144
+ gestart_op: string | null;
91145
+ herkomst: string | null;
91146
+ id: string;
91147
+ idempotentie_sleutel: string | null;
91148
+ is_herprint: boolean;
91149
+ kopieen: number;
91150
+ layout_id: string | null;
91151
+ lokaal_opgeslagen_op: string | null;
91152
+ lokale_pdf_fout: string | null;
91153
+ lokale_pdf_status: string | null;
91154
+ opgepakt_op: string | null;
91155
+ paginas: number;
91156
+ payload: import("../integrations/supabase/types").Json;
91157
+ pdf_base64: string | null;
91158
+ pdf_url: string | null;
91159
+ pogingen: number;
91160
+ printer_id: string | null;
91161
+ render_html: string | null;
91162
+ resultaat_pdf_base64: string | null;
91163
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
91164
+ updated_at: string;
91165
+ volgende_poging: string | null;
91166
+ voltooid_op: string | null;
91167
+ }[];
91168
+ SetofOptions: {
91169
+ from: "*";
91170
+ to: "print_jobs";
91171
+ isOneToOne: false;
91172
+ isSetofReturn: true;
91173
+ };
91174
+ };
89211
91175
  claim_print_jobs: {
89212
91176
  Args: {
89213
91177
  _agent_id: string;
@@ -89223,6 +91187,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
89223
91187
  foutmelding: string | null;
89224
91188
  gebruiker_id: string | null;
89225
91189
  gebruiker_naam: string;
91190
+ gebruikte_bron: string | null;
91191
+ gebruikte_layout_id: string | null;
89226
91192
  gestart_op: string | null;
89227
91193
  herkomst: string | null;
89228
91194
  id: string;
@@ -89230,6 +91196,9 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
89230
91196
  is_herprint: boolean;
89231
91197
  kopieen: number;
89232
91198
  layout_id: string | null;
91199
+ lokaal_opgeslagen_op: string | null;
91200
+ lokale_pdf_fout: string | null;
91201
+ lokale_pdf_status: string | null;
89233
91202
  opgepakt_op: string | null;
89234
91203
  paginas: number;
89235
91204
  payload: import("../integrations/supabase/types").Json;
@@ -89238,6 +91207,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
89238
91207
  pogingen: number;
89239
91208
  printer_id: string | null;
89240
91209
  render_html: string | null;
91210
+ resultaat_pdf_base64: string | null;
89241
91211
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
89242
91212
  updated_at: string;
89243
91213
  volgende_poging: string | null;
@@ -89378,6 +91348,8 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
89378
91348
  order_id: string;
89379
91349
  order_source: string;
89380
91350
  pick_date: string;
91351
+ printed_at: string;
91352
+ printed_today: boolean;
89381
91353
  status: string;
89382
91354
  }[];
89383
91355
  };
@@ -90086,6 +92058,10 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
90086
92058
  };
90087
92059
  Returns: number;
90088
92060
  };
92061
+ logistics_cancel_orphan_tasks: {
92062
+ Args: never;
92063
+ Returns: number;
92064
+ };
90089
92065
  logistics_capacity_day_check: {
90090
92066
  Args: {
90091
92067
  p_from?: string;
@@ -90106,6 +92082,25 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
90106
92082
  };
90107
92083
  Returns: number;
90108
92084
  };
92085
+ logistics_cart_index: {
92086
+ Args: {
92087
+ p_from?: string;
92088
+ p_to?: string;
92089
+ };
92090
+ Returns: {
92091
+ cart_id: string;
92092
+ cart_index: number;
92093
+ cart_label: string;
92094
+ is_shared: boolean;
92095
+ order_number: string;
92096
+ order_source: string;
92097
+ order_uuid: string;
92098
+ pick_date: string;
92099
+ printed_at: string;
92100
+ shifted: boolean;
92101
+ task_status: string;
92102
+ }[];
92103
+ };
90109
92104
  logistics_check_order_allowed: {
90110
92105
  Args: {
90111
92106
  p_lines: import("../integrations/supabase/types").Json;
@@ -90254,6 +92249,17 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
90254
92249
  isSetofReturn: false;
90255
92250
  };
90256
92251
  };
92252
+ logistics_consistency_check: {
92253
+ Args: never;
92254
+ Returns: {
92255
+ agenda_carts: number;
92256
+ control_carts: number;
92257
+ ok: boolean;
92258
+ orphan_tasks: number;
92259
+ pick_date: string;
92260
+ raw_carts: number;
92261
+ }[];
92262
+ };
90257
92263
  logistics_delay_customer_email: {
90258
92264
  Args: {
90259
92265
  p_customer: string;
@@ -90279,6 +92285,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
90279
92285
  };
90280
92286
  Returns: string;
90281
92287
  };
92288
+ logistics_document_type_map: {
92289
+ Args: {
92290
+ _document_code: string;
92291
+ };
92292
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
92293
+ };
90282
92294
  logistics_emit_event: {
90283
92295
  Args: {
90284
92296
  p_event_type: string;
@@ -90441,6 +92453,25 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
90441
92453
  };
90442
92454
  Returns: number;
90443
92455
  };
92456
+ logistics_order_overview: {
92457
+ Args: {
92458
+ p_from?: string;
92459
+ p_to?: string;
92460
+ };
92461
+ Returns: {
92462
+ cart_count: number;
92463
+ customer_name: string;
92464
+ delivery_date: string;
92465
+ order_number: string;
92466
+ order_source: string;
92467
+ order_uuid: string;
92468
+ pick_date: string;
92469
+ plant_count: number;
92470
+ printed_at: string;
92471
+ shifted: boolean;
92472
+ status: string;
92473
+ }[];
92474
+ };
90444
92475
  logistics_order_pick_day: {
90445
92476
  Args: {
90446
92477
  p_order_ref: string;
@@ -90453,6 +92484,22 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
90453
92484
  };
90454
92485
  Returns: string;
90455
92486
  };
92487
+ logistics_pick_agenda: {
92488
+ Args: {
92489
+ p_from?: string;
92490
+ p_to?: string;
92491
+ };
92492
+ Returns: {
92493
+ cart_count: number;
92494
+ in_preparation: number;
92495
+ order_count: number;
92496
+ orders: import("../integrations/supabase/types").Json;
92497
+ pick_date: string;
92498
+ plant_count: number;
92499
+ ready: number;
92500
+ shifted_count: number;
92501
+ }[];
92502
+ };
90456
92503
  logistics_pick_email_purpose: {
90457
92504
  Args: never;
90458
92505
  Returns: string;
@@ -90612,6 +92659,15 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
90612
92659
  };
90613
92660
  Returns: import("../integrations/supabase/types").Json;
90614
92661
  };
92662
+ logistics_resolve_pick_document: {
92663
+ Args: {
92664
+ _is_herprint: boolean;
92665
+ _queue_item_id: string;
92666
+ _session_id: string;
92667
+ _voorbeeld: boolean;
92668
+ };
92669
+ Returns: import("../integrations/supabase/types").Json;
92670
+ };
90615
92671
  logistics_resolve_settings: {
90616
92672
  Args: {
90617
92673
  p_config_id: string;
@@ -91052,6 +93108,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
91052
93108
  };
91053
93109
  pick_enqueue_print_job: {
91054
93110
  Args: {
93111
+ _is_herprint?: boolean;
91055
93112
  _printer_id?: string;
91056
93113
  _queue_item_id: string;
91057
93114
  _session_id?: string;
@@ -91065,6 +93122,13 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
91065
93122
  };
91066
93123
  Returns: import("../integrations/supabase/types").Json;
91067
93124
  };
93125
+ pick_preview_job: {
93126
+ Args: {
93127
+ _queue_item_id: string;
93128
+ _station_slug: string;
93129
+ };
93130
+ Returns: import("../integrations/supabase/types").Json;
93131
+ };
91068
93132
  pick_print_job_status: {
91069
93133
  Args: {
91070
93134
  _job_id: string;
@@ -91079,6 +93143,10 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
91079
93143
  omschrijving: string;
91080
93144
  }[];
91081
93145
  };
93146
+ pick_reference_data_status: {
93147
+ Args: never;
93148
+ Returns: import("../integrations/supabase/types").Json;
93149
+ };
91082
93150
  pick_release_expired_locks: {
91083
93151
  Args: never;
91084
93152
  Returns: number;
@@ -91143,6 +93211,10 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
91143
93211
  isSetofReturn: false;
91144
93212
  };
91145
93213
  };
93214
+ pick_seed_reference_data: {
93215
+ Args: never;
93216
+ Returns: import("../integrations/supabase/types").Json;
93217
+ };
91146
93218
  pick_set_station_print_plek: {
91147
93219
  Args: {
91148
93220
  _print_plek_id: string;
@@ -91234,6 +93306,24 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
91234
93306
  };
91235
93307
  Returns: undefined;
91236
93308
  };
93309
+ print_preview_toestaan: {
93310
+ Args: {
93311
+ _max?: number;
93312
+ _queue_item_id: string;
93313
+ _station_slug: string;
93314
+ _venster_sec?: number;
93315
+ };
93316
+ Returns: import("../integrations/supabase/types").Json;
93317
+ };
93318
+ print_preview_weiger: {
93319
+ Args: {
93320
+ _code: string;
93321
+ _queue_item_id: string;
93322
+ _reden: string;
93323
+ _station_slug: string;
93324
+ };
93325
+ Returns: undefined;
93326
+ };
91237
93327
  process_logistics_event: {
91238
93328
  Args: {
91239
93329
  p_event_id: string;
@@ -91351,6 +93441,14 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
91351
93441
  };
91352
93442
  Returns: undefined;
91353
93443
  };
93444
+ replace_order_carts: {
93445
+ Args: {
93446
+ p_buffer_id: string;
93447
+ p_carts: import("../integrations/supabase/types").Json;
93448
+ p_order_id: string;
93449
+ };
93450
+ Returns: import("../integrations/supabase/types").Json;
93451
+ };
91354
93452
  reset_floriday_sync_cursor: {
91355
93453
  Args: {
91356
93454
  p_connection_id: string;
@@ -91380,6 +93478,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
91380
93478
  };
91381
93479
  Returns: string;
91382
93480
  };
93481
+ resolve_print_job_printer_id: {
93482
+ Args: {
93483
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
93484
+ };
93485
+ Returns: string;
93486
+ };
91383
93487
  resolve_product_id_for_item: {
91384
93488
  Args: {
91385
93489
  p_product_name: string;
@@ -91971,7 +94075,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
91971
94075
  };
91972
94076
  CompositeTypes: { [_ in never]: never; };
91973
94077
  }, {
91974
- PostgrestVersion: "14.17";
94078
+ PostgrestVersion: "14.5";
91975
94079
  }>;
91976
94080
  userId: string;
91977
94081
  claims: import("@supabase/auth-js").JwtPayload;
@@ -102674,6 +104778,243 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
102674
104778
  };
102675
104779
  Relationships: [];
102676
104780
  };
104781
+ maps_addresses: {
104782
+ Row: {
104783
+ address_hash: string;
104784
+ created_at: string;
104785
+ error_reason: string | null;
104786
+ formatted_address: string | null;
104787
+ id: string;
104788
+ lat: number | null;
104789
+ lng: number | null;
104790
+ place_id: string | null;
104791
+ raw_address: string;
104792
+ resolved_at: string | null;
104793
+ status: string;
104794
+ updated_at: string;
104795
+ };
104796
+ Insert: {
104797
+ address_hash: string;
104798
+ created_at?: string;
104799
+ error_reason?: string | null;
104800
+ formatted_address?: string | null;
104801
+ id?: string;
104802
+ lat?: number | null;
104803
+ lng?: number | null;
104804
+ place_id?: string | null;
104805
+ raw_address: string;
104806
+ resolved_at?: string | null;
104807
+ status?: string;
104808
+ updated_at?: string;
104809
+ };
104810
+ Update: {
104811
+ address_hash?: string;
104812
+ created_at?: string;
104813
+ error_reason?: string | null;
104814
+ formatted_address?: string | null;
104815
+ id?: string;
104816
+ lat?: number | null;
104817
+ lng?: number | null;
104818
+ place_id?: string | null;
104819
+ raw_address?: string;
104820
+ resolved_at?: string | null;
104821
+ status?: string;
104822
+ updated_at?: string;
104823
+ };
104824
+ Relationships: [];
104825
+ };
104826
+ maps_job_lease: {
104827
+ Row: {
104828
+ job: string;
104829
+ locked_until: string;
104830
+ updated_at: string;
104831
+ };
104832
+ Insert: {
104833
+ job: string;
104834
+ locked_until?: string;
104835
+ updated_at?: string;
104836
+ };
104837
+ Update: {
104838
+ job?: string;
104839
+ locked_until?: string;
104840
+ updated_at?: string;
104841
+ };
104842
+ Relationships: [];
104843
+ };
104844
+ maps_request_queue: {
104845
+ Row: {
104846
+ attempts: number;
104847
+ created_at: string;
104848
+ destination_hash: string | null;
104849
+ id: string;
104850
+ kind: string;
104851
+ last_error: string | null;
104852
+ mode: string;
104853
+ origin_hash: string | null;
104854
+ processed_at: string | null;
104855
+ raw_destination: string | null;
104856
+ raw_origin: string | null;
104857
+ requested_by: string | null;
104858
+ status: string;
104859
+ updated_at: string;
104860
+ };
104861
+ Insert: {
104862
+ attempts?: number;
104863
+ created_at?: string;
104864
+ destination_hash?: string | null;
104865
+ id?: string;
104866
+ kind: string;
104867
+ last_error?: string | null;
104868
+ mode?: string;
104869
+ origin_hash?: string | null;
104870
+ processed_at?: string | null;
104871
+ raw_destination?: string | null;
104872
+ raw_origin?: string | null;
104873
+ requested_by?: string | null;
104874
+ status?: string;
104875
+ updated_at?: string;
104876
+ };
104877
+ Update: {
104878
+ attempts?: number;
104879
+ created_at?: string;
104880
+ destination_hash?: string | null;
104881
+ id?: string;
104882
+ kind?: string;
104883
+ last_error?: string | null;
104884
+ mode?: string;
104885
+ origin_hash?: string | null;
104886
+ processed_at?: string | null;
104887
+ raw_destination?: string | null;
104888
+ raw_origin?: string | null;
104889
+ requested_by?: string | null;
104890
+ status?: string;
104891
+ updated_at?: string;
104892
+ };
104893
+ Relationships: [];
104894
+ };
104895
+ maps_settings: {
104896
+ Row: {
104897
+ allow_estimate_fallback: boolean;
104898
+ cache_ttl_days: number;
104899
+ created_at: string;
104900
+ daily_call_limit: number;
104901
+ id: string;
104902
+ last_error: string | null;
104903
+ last_error_at: string | null;
104904
+ last_success_at: string | null;
104905
+ provider: string;
104906
+ updated_at: string;
104907
+ };
104908
+ Insert: {
104909
+ allow_estimate_fallback?: boolean;
104910
+ cache_ttl_days?: number;
104911
+ created_at?: string;
104912
+ daily_call_limit?: number;
104913
+ id?: string;
104914
+ last_error?: string | null;
104915
+ last_error_at?: string | null;
104916
+ last_success_at?: string | null;
104917
+ provider?: string;
104918
+ updated_at?: string;
104919
+ };
104920
+ Update: {
104921
+ allow_estimate_fallback?: boolean;
104922
+ cache_ttl_days?: number;
104923
+ created_at?: string;
104924
+ daily_call_limit?: number;
104925
+ id?: string;
104926
+ last_error?: string | null;
104927
+ last_error_at?: string | null;
104928
+ last_success_at?: string | null;
104929
+ provider?: string;
104930
+ updated_at?: string;
104931
+ };
104932
+ Relationships: [];
104933
+ };
104934
+ maps_travel_times: {
104935
+ Row: {
104936
+ created_at: string;
104937
+ destination_id: string;
104938
+ distance_m: number | null;
104939
+ duration_sec: number;
104940
+ expires_at: string;
104941
+ id: string;
104942
+ mode: string;
104943
+ origin_id: string;
104944
+ source: string;
104945
+ updated_at: string;
104946
+ };
104947
+ Insert: {
104948
+ created_at?: string;
104949
+ destination_id: string;
104950
+ distance_m?: number | null;
104951
+ duration_sec: number;
104952
+ expires_at?: string;
104953
+ id?: string;
104954
+ mode?: string;
104955
+ origin_id: string;
104956
+ source?: string;
104957
+ updated_at?: string;
104958
+ };
104959
+ Update: {
104960
+ created_at?: string;
104961
+ destination_id?: string;
104962
+ distance_m?: number | null;
104963
+ duration_sec?: number;
104964
+ expires_at?: string;
104965
+ id?: string;
104966
+ mode?: string;
104967
+ origin_id?: string;
104968
+ source?: string;
104969
+ updated_at?: string;
104970
+ };
104971
+ Relationships: [{
104972
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
104973
+ columns: ["destination_id"];
104974
+ isOneToOne: false;
104975
+ referencedRelation: "maps_addresses";
104976
+ referencedColumns: ["id"];
104977
+ }, {
104978
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
104979
+ columns: ["origin_id"];
104980
+ isOneToOne: false;
104981
+ referencedRelation: "maps_addresses";
104982
+ referencedColumns: ["id"];
104983
+ }];
104984
+ };
104985
+ maps_usage_log: {
104986
+ Row: {
104987
+ cache_hits: number;
104988
+ call_type: string;
104989
+ created_at: string;
104990
+ day: string;
104991
+ detail: string | null;
104992
+ elements: number;
104993
+ id: string;
104994
+ outcome: string;
104995
+ };
104996
+ Insert: {
104997
+ cache_hits?: number;
104998
+ call_type: string;
104999
+ created_at?: string;
105000
+ day?: string;
105001
+ detail?: string | null;
105002
+ elements?: number;
105003
+ id?: string;
105004
+ outcome?: string;
105005
+ };
105006
+ Update: {
105007
+ cache_hits?: number;
105008
+ call_type?: string;
105009
+ created_at?: string;
105010
+ day?: string;
105011
+ detail?: string | null;
105012
+ elements?: number;
105013
+ id?: string;
105014
+ outcome?: string;
105015
+ };
105016
+ Relationships: [];
105017
+ };
102677
105018
  material_usage: {
102678
105019
  Row: {
102679
105020
  created_at: string;
@@ -105323,6 +107664,39 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105323
107664
  };
105324
107665
  Relationships: [];
105325
107666
  };
107667
+ print_dedupe_events: {
107668
+ Row: {
107669
+ bestaande_job_id: string | null;
107670
+ created_at: string;
107671
+ detail: string | null;
107672
+ documentnaam: string | null;
107673
+ documenttype: string | null;
107674
+ id: string;
107675
+ idempotentie_sleutel: string;
107676
+ reden: string;
107677
+ };
107678
+ Insert: {
107679
+ bestaande_job_id?: string | null;
107680
+ created_at?: string;
107681
+ detail?: string | null;
107682
+ documentnaam?: string | null;
107683
+ documenttype?: string | null;
107684
+ id?: string;
107685
+ idempotentie_sleutel: string;
107686
+ reden: string;
107687
+ };
107688
+ Update: {
107689
+ bestaande_job_id?: string | null;
107690
+ created_at?: string;
107691
+ detail?: string | null;
107692
+ documentnaam?: string | null;
107693
+ documenttype?: string | null;
107694
+ id?: string;
107695
+ idempotentie_sleutel?: string;
107696
+ reden?: string;
107697
+ };
107698
+ Relationships: [];
107699
+ };
105326
107700
  print_job_logs: {
105327
107701
  Row: {
105328
107702
  created_at: string;
@@ -105364,6 +107738,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105364
107738
  foutmelding: string | null;
105365
107739
  gebruiker_id: string | null;
105366
107740
  gebruiker_naam: string;
107741
+ gebruikte_bron: string | null;
107742
+ gebruikte_layout_id: string | null;
105367
107743
  gestart_op: string | null;
105368
107744
  herkomst: string | null;
105369
107745
  id: string;
@@ -105371,6 +107747,9 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105371
107747
  is_herprint: boolean;
105372
107748
  kopieen: number;
105373
107749
  layout_id: string | null;
107750
+ lokaal_opgeslagen_op: string | null;
107751
+ lokale_pdf_fout: string | null;
107752
+ lokale_pdf_status: string | null;
105374
107753
  opgepakt_op: string | null;
105375
107754
  paginas: number;
105376
107755
  payload: import("../integrations/supabase/types").Json;
@@ -105379,6 +107758,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105379
107758
  pogingen: number;
105380
107759
  printer_id: string | null;
105381
107760
  render_html: string | null;
107761
+ resultaat_pdf_base64: string | null;
105382
107762
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
105383
107763
  updated_at: string;
105384
107764
  volgende_poging: string | null;
@@ -105394,6 +107774,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105394
107774
  foutmelding?: string | null;
105395
107775
  gebruiker_id?: string | null;
105396
107776
  gebruiker_naam?: string;
107777
+ gebruikte_bron?: string | null;
107778
+ gebruikte_layout_id?: string | null;
105397
107779
  gestart_op?: string | null;
105398
107780
  herkomst?: string | null;
105399
107781
  id?: string;
@@ -105401,6 +107783,9 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105401
107783
  is_herprint?: boolean;
105402
107784
  kopieen?: number;
105403
107785
  layout_id?: string | null;
107786
+ lokaal_opgeslagen_op?: string | null;
107787
+ lokale_pdf_fout?: string | null;
107788
+ lokale_pdf_status?: string | null;
105404
107789
  opgepakt_op?: string | null;
105405
107790
  paginas?: number;
105406
107791
  payload?: import("../integrations/supabase/types").Json;
@@ -105409,6 +107794,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105409
107794
  pogingen?: number;
105410
107795
  printer_id?: string | null;
105411
107796
  render_html?: string | null;
107797
+ resultaat_pdf_base64?: string | null;
105412
107798
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
105413
107799
  updated_at?: string;
105414
107800
  volgende_poging?: string | null;
@@ -105424,6 +107810,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105424
107810
  foutmelding?: string | null;
105425
107811
  gebruiker_id?: string | null;
105426
107812
  gebruiker_naam?: string;
107813
+ gebruikte_bron?: string | null;
107814
+ gebruikte_layout_id?: string | null;
105427
107815
  gestart_op?: string | null;
105428
107816
  herkomst?: string | null;
105429
107817
  id?: string;
@@ -105431,6 +107819,9 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105431
107819
  is_herprint?: boolean;
105432
107820
  kopieen?: number;
105433
107821
  layout_id?: string | null;
107822
+ lokaal_opgeslagen_op?: string | null;
107823
+ lokale_pdf_fout?: string | null;
107824
+ lokale_pdf_status?: string | null;
105434
107825
  opgepakt_op?: string | null;
105435
107826
  paginas?: number;
105436
107827
  payload?: import("../integrations/supabase/types").Json;
@@ -105439,6 +107830,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105439
107830
  pogingen?: number;
105440
107831
  printer_id?: string | null;
105441
107832
  render_html?: string | null;
107833
+ resultaat_pdf_base64?: string | null;
105442
107834
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
105443
107835
  updated_at?: string;
105444
107836
  volgende_poging?: string | null;
@@ -105557,6 +107949,39 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105557
107949
  };
105558
107950
  Relationships: [];
105559
107951
  };
107952
+ print_preview_events: {
107953
+ Row: {
107954
+ code: string | null;
107955
+ created_at: string;
107956
+ detail: import("../integrations/supabase/types").Json;
107957
+ id: string;
107958
+ queue_item_id: string | null;
107959
+ reden: string | null;
107960
+ station_slug: string | null;
107961
+ uitkomst: string;
107962
+ };
107963
+ Insert: {
107964
+ code?: string | null;
107965
+ created_at?: string;
107966
+ detail?: import("../integrations/supabase/types").Json;
107967
+ id?: string;
107968
+ queue_item_id?: string | null;
107969
+ reden?: string | null;
107970
+ station_slug?: string | null;
107971
+ uitkomst?: string;
107972
+ };
107973
+ Update: {
107974
+ code?: string | null;
107975
+ created_at?: string;
107976
+ detail?: import("../integrations/supabase/types").Json;
107977
+ id?: string;
107978
+ queue_item_id?: string | null;
107979
+ reden?: string | null;
107980
+ station_slug?: string | null;
107981
+ uitkomst?: string;
107982
+ };
107983
+ Relationships: [];
107984
+ };
105560
107985
  print_queue_runners: {
105561
107986
  Row: {
105562
107987
  actief: boolean;
@@ -105784,6 +108209,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105784
108209
  created_at: string;
105785
108210
  driver: string;
105786
108211
  extern_printer_id: string | null;
108212
+ formaten_bijgewerkt_op: string | null;
105787
108213
  id: string;
105788
108214
  ip_adres: string | null;
105789
108215
  laatst_gezien: string | null;
@@ -105791,8 +108217,11 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105791
108217
  merk: string;
105792
108218
  naam: string;
105793
108219
  omschrijving: string;
108220
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
108221
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
105794
108222
  online: boolean;
105795
108223
  papierformaat: string;
108224
+ pdf_map: string | null;
105796
108225
  poort: number | null;
105797
108226
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
105798
108227
  systeemnaam: string;
@@ -105806,6 +108235,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105806
108235
  created_at?: string;
105807
108236
  driver?: string;
105808
108237
  extern_printer_id?: string | null;
108238
+ formaten_bijgewerkt_op?: string | null;
105809
108239
  id?: string;
105810
108240
  ip_adres?: string | null;
105811
108241
  laatst_gezien?: string | null;
@@ -105813,8 +108243,11 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105813
108243
  merk?: string;
105814
108244
  naam: string;
105815
108245
  omschrijving?: string;
108246
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
108247
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
105816
108248
  online?: boolean;
105817
108249
  papierformaat?: string;
108250
+ pdf_map?: string | null;
105818
108251
  poort?: number | null;
105819
108252
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
105820
108253
  systeemnaam?: string;
@@ -105828,6 +108261,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105828
108261
  created_at?: string;
105829
108262
  driver?: string;
105830
108263
  extern_printer_id?: string | null;
108264
+ formaten_bijgewerkt_op?: string | null;
105831
108265
  id?: string;
105832
108266
  ip_adres?: string | null;
105833
108267
  laatst_gezien?: string | null;
@@ -105835,8 +108269,11 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
105835
108269
  merk?: string;
105836
108270
  naam?: string;
105837
108271
  omschrijving?: string;
108272
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
108273
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
105838
108274
  online?: boolean;
105839
108275
  papierformaat?: string;
108276
+ pdf_map?: string | null;
105840
108277
  poort?: number | null;
105841
108278
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
105842
108279
  systeemnaam?: string;
@@ -112084,6 +114521,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
112084
114521
  foutmelding: string | null;
112085
114522
  gebruiker_id: string | null;
112086
114523
  gebruiker_naam: string;
114524
+ gebruikte_bron: string | null;
114525
+ gebruikte_layout_id: string | null;
112087
114526
  gestart_op: string | null;
112088
114527
  herkomst: string | null;
112089
114528
  id: string;
@@ -112091,6 +114530,9 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
112091
114530
  is_herprint: boolean;
112092
114531
  kopieen: number;
112093
114532
  layout_id: string | null;
114533
+ lokaal_opgeslagen_op: string | null;
114534
+ lokale_pdf_fout: string | null;
114535
+ lokale_pdf_status: string | null;
112094
114536
  opgepakt_op: string | null;
112095
114537
  paginas: number;
112096
114538
  payload: import("../integrations/supabase/types").Json;
@@ -112099,6 +114541,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
112099
114541
  pogingen: number;
112100
114542
  printer_id: string | null;
112101
114543
  render_html: string | null;
114544
+ resultaat_pdf_base64: string | null;
112102
114545
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
112103
114546
  updated_at: string;
112104
114547
  volgende_poging: string | null;
@@ -112190,6 +114633,53 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
112190
114633
  isSetofReturn: true;
112191
114634
  };
112192
114635
  };
114636
+ claim_pdf_print_jobs: {
114637
+ Args: {
114638
+ _max?: number;
114639
+ };
114640
+ Returns: {
114641
+ agent_id: string | null;
114642
+ bron_job_id: string | null;
114643
+ created_at: string;
114644
+ documentnaam: string;
114645
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
114646
+ extern_job_id: string | null;
114647
+ foutmelding: string | null;
114648
+ gebruiker_id: string | null;
114649
+ gebruiker_naam: string;
114650
+ gebruikte_bron: string | null;
114651
+ gebruikte_layout_id: string | null;
114652
+ gestart_op: string | null;
114653
+ herkomst: string | null;
114654
+ id: string;
114655
+ idempotentie_sleutel: string | null;
114656
+ is_herprint: boolean;
114657
+ kopieen: number;
114658
+ layout_id: string | null;
114659
+ lokaal_opgeslagen_op: string | null;
114660
+ lokale_pdf_fout: string | null;
114661
+ lokale_pdf_status: string | null;
114662
+ opgepakt_op: string | null;
114663
+ paginas: number;
114664
+ payload: import("../integrations/supabase/types").Json;
114665
+ pdf_base64: string | null;
114666
+ pdf_url: string | null;
114667
+ pogingen: number;
114668
+ printer_id: string | null;
114669
+ render_html: string | null;
114670
+ resultaat_pdf_base64: string | null;
114671
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
114672
+ updated_at: string;
114673
+ volgende_poging: string | null;
114674
+ voltooid_op: string | null;
114675
+ }[];
114676
+ SetofOptions: {
114677
+ from: "*";
114678
+ to: "print_jobs";
114679
+ isOneToOne: false;
114680
+ isSetofReturn: true;
114681
+ };
114682
+ };
112193
114683
  claim_print_jobs: {
112194
114684
  Args: {
112195
114685
  _agent_id: string;
@@ -112205,6 +114695,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
112205
114695
  foutmelding: string | null;
112206
114696
  gebruiker_id: string | null;
112207
114697
  gebruiker_naam: string;
114698
+ gebruikte_bron: string | null;
114699
+ gebruikte_layout_id: string | null;
112208
114700
  gestart_op: string | null;
112209
114701
  herkomst: string | null;
112210
114702
  id: string;
@@ -112212,6 +114704,9 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
112212
114704
  is_herprint: boolean;
112213
114705
  kopieen: number;
112214
114706
  layout_id: string | null;
114707
+ lokaal_opgeslagen_op: string | null;
114708
+ lokale_pdf_fout: string | null;
114709
+ lokale_pdf_status: string | null;
112215
114710
  opgepakt_op: string | null;
112216
114711
  paginas: number;
112217
114712
  payload: import("../integrations/supabase/types").Json;
@@ -112220,6 +114715,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
112220
114715
  pogingen: number;
112221
114716
  printer_id: string | null;
112222
114717
  render_html: string | null;
114718
+ resultaat_pdf_base64: string | null;
112223
114719
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
112224
114720
  updated_at: string;
112225
114721
  volgende_poging: string | null;
@@ -112360,6 +114856,8 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
112360
114856
  order_id: string;
112361
114857
  order_source: string;
112362
114858
  pick_date: string;
114859
+ printed_at: string;
114860
+ printed_today: boolean;
112363
114861
  status: string;
112364
114862
  }[];
112365
114863
  };
@@ -113068,6 +115566,10 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
113068
115566
  };
113069
115567
  Returns: number;
113070
115568
  };
115569
+ logistics_cancel_orphan_tasks: {
115570
+ Args: never;
115571
+ Returns: number;
115572
+ };
113071
115573
  logistics_capacity_day_check: {
113072
115574
  Args: {
113073
115575
  p_from?: string;
@@ -113088,6 +115590,25 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
113088
115590
  };
113089
115591
  Returns: number;
113090
115592
  };
115593
+ logistics_cart_index: {
115594
+ Args: {
115595
+ p_from?: string;
115596
+ p_to?: string;
115597
+ };
115598
+ Returns: {
115599
+ cart_id: string;
115600
+ cart_index: number;
115601
+ cart_label: string;
115602
+ is_shared: boolean;
115603
+ order_number: string;
115604
+ order_source: string;
115605
+ order_uuid: string;
115606
+ pick_date: string;
115607
+ printed_at: string;
115608
+ shifted: boolean;
115609
+ task_status: string;
115610
+ }[];
115611
+ };
113091
115612
  logistics_check_order_allowed: {
113092
115613
  Args: {
113093
115614
  p_lines: import("../integrations/supabase/types").Json;
@@ -113236,6 +115757,17 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
113236
115757
  isSetofReturn: false;
113237
115758
  };
113238
115759
  };
115760
+ logistics_consistency_check: {
115761
+ Args: never;
115762
+ Returns: {
115763
+ agenda_carts: number;
115764
+ control_carts: number;
115765
+ ok: boolean;
115766
+ orphan_tasks: number;
115767
+ pick_date: string;
115768
+ raw_carts: number;
115769
+ }[];
115770
+ };
113239
115771
  logistics_delay_customer_email: {
113240
115772
  Args: {
113241
115773
  p_customer: string;
@@ -113261,6 +115793,12 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
113261
115793
  };
113262
115794
  Returns: string;
113263
115795
  };
115796
+ logistics_document_type_map: {
115797
+ Args: {
115798
+ _document_code: string;
115799
+ };
115800
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
115801
+ };
113264
115802
  logistics_emit_event: {
113265
115803
  Args: {
113266
115804
  p_event_type: string;
@@ -113423,6 +115961,25 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
113423
115961
  };
113424
115962
  Returns: number;
113425
115963
  };
115964
+ logistics_order_overview: {
115965
+ Args: {
115966
+ p_from?: string;
115967
+ p_to?: string;
115968
+ };
115969
+ Returns: {
115970
+ cart_count: number;
115971
+ customer_name: string;
115972
+ delivery_date: string;
115973
+ order_number: string;
115974
+ order_source: string;
115975
+ order_uuid: string;
115976
+ pick_date: string;
115977
+ plant_count: number;
115978
+ printed_at: string;
115979
+ shifted: boolean;
115980
+ status: string;
115981
+ }[];
115982
+ };
113426
115983
  logistics_order_pick_day: {
113427
115984
  Args: {
113428
115985
  p_order_ref: string;
@@ -113435,6 +115992,22 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
113435
115992
  };
113436
115993
  Returns: string;
113437
115994
  };
115995
+ logistics_pick_agenda: {
115996
+ Args: {
115997
+ p_from?: string;
115998
+ p_to?: string;
115999
+ };
116000
+ Returns: {
116001
+ cart_count: number;
116002
+ in_preparation: number;
116003
+ order_count: number;
116004
+ orders: import("../integrations/supabase/types").Json;
116005
+ pick_date: string;
116006
+ plant_count: number;
116007
+ ready: number;
116008
+ shifted_count: number;
116009
+ }[];
116010
+ };
113438
116011
  logistics_pick_email_purpose: {
113439
116012
  Args: never;
113440
116013
  Returns: string;
@@ -113594,6 +116167,15 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
113594
116167
  };
113595
116168
  Returns: import("../integrations/supabase/types").Json;
113596
116169
  };
116170
+ logistics_resolve_pick_document: {
116171
+ Args: {
116172
+ _is_herprint: boolean;
116173
+ _queue_item_id: string;
116174
+ _session_id: string;
116175
+ _voorbeeld: boolean;
116176
+ };
116177
+ Returns: import("../integrations/supabase/types").Json;
116178
+ };
113597
116179
  logistics_resolve_settings: {
113598
116180
  Args: {
113599
116181
  p_config_id: string;
@@ -114034,6 +116616,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
114034
116616
  };
114035
116617
  pick_enqueue_print_job: {
114036
116618
  Args: {
116619
+ _is_herprint?: boolean;
114037
116620
  _printer_id?: string;
114038
116621
  _queue_item_id: string;
114039
116622
  _session_id?: string;
@@ -114047,6 +116630,13 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
114047
116630
  };
114048
116631
  Returns: import("../integrations/supabase/types").Json;
114049
116632
  };
116633
+ pick_preview_job: {
116634
+ Args: {
116635
+ _queue_item_id: string;
116636
+ _station_slug: string;
116637
+ };
116638
+ Returns: import("../integrations/supabase/types").Json;
116639
+ };
114050
116640
  pick_print_job_status: {
114051
116641
  Args: {
114052
116642
  _job_id: string;
@@ -114061,6 +116651,10 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
114061
116651
  omschrijving: string;
114062
116652
  }[];
114063
116653
  };
116654
+ pick_reference_data_status: {
116655
+ Args: never;
116656
+ Returns: import("../integrations/supabase/types").Json;
116657
+ };
114064
116658
  pick_release_expired_locks: {
114065
116659
  Args: never;
114066
116660
  Returns: number;
@@ -114125,6 +116719,10 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
114125
116719
  isSetofReturn: false;
114126
116720
  };
114127
116721
  };
116722
+ pick_seed_reference_data: {
116723
+ Args: never;
116724
+ Returns: import("../integrations/supabase/types").Json;
116725
+ };
114128
116726
  pick_set_station_print_plek: {
114129
116727
  Args: {
114130
116728
  _print_plek_id: string;
@@ -114216,6 +116814,24 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
114216
116814
  };
114217
116815
  Returns: undefined;
114218
116816
  };
116817
+ print_preview_toestaan: {
116818
+ Args: {
116819
+ _max?: number;
116820
+ _queue_item_id: string;
116821
+ _station_slug: string;
116822
+ _venster_sec?: number;
116823
+ };
116824
+ Returns: import("../integrations/supabase/types").Json;
116825
+ };
116826
+ print_preview_weiger: {
116827
+ Args: {
116828
+ _code: string;
116829
+ _queue_item_id: string;
116830
+ _reden: string;
116831
+ _station_slug: string;
116832
+ };
116833
+ Returns: undefined;
116834
+ };
114219
116835
  process_logistics_event: {
114220
116836
  Args: {
114221
116837
  p_event_id: string;
@@ -114333,6 +116949,14 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
114333
116949
  };
114334
116950
  Returns: undefined;
114335
116951
  };
116952
+ replace_order_carts: {
116953
+ Args: {
116954
+ p_buffer_id: string;
116955
+ p_carts: import("../integrations/supabase/types").Json;
116956
+ p_order_id: string;
116957
+ };
116958
+ Returns: import("../integrations/supabase/types").Json;
116959
+ };
114336
116960
  reset_floriday_sync_cursor: {
114337
116961
  Args: {
114338
116962
  p_connection_id: string;
@@ -114362,6 +116986,12 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
114362
116986
  };
114363
116987
  Returns: string;
114364
116988
  };
116989
+ resolve_print_job_printer_id: {
116990
+ Args: {
116991
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
116992
+ };
116993
+ Returns: string;
116994
+ };
114365
116995
  resolve_product_id_for_item: {
114366
116996
  Args: {
114367
116997
  p_product_name: string;
@@ -114953,7 +117583,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
114953
117583
  };
114954
117584
  CompositeTypes: { [_ in never]: never; };
114955
117585
  }, {
114956
- PostgrestVersion: "14.17";
117586
+ PostgrestVersion: "14.5";
114957
117587
  }>;
114958
117588
  userId: string;
114959
117589
  claims: import("@supabase/auth-js").JwtPayload;