@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
@@ -10703,6 +10703,243 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
10703
10703
  };
10704
10704
  Relationships: [];
10705
10705
  };
10706
+ maps_addresses: {
10707
+ Row: {
10708
+ address_hash: string;
10709
+ created_at: string;
10710
+ error_reason: string | null;
10711
+ formatted_address: string | null;
10712
+ id: string;
10713
+ lat: number | null;
10714
+ lng: number | null;
10715
+ place_id: string | null;
10716
+ raw_address: string;
10717
+ resolved_at: string | null;
10718
+ status: string;
10719
+ updated_at: string;
10720
+ };
10721
+ Insert: {
10722
+ address_hash: string;
10723
+ created_at?: string;
10724
+ error_reason?: string | null;
10725
+ formatted_address?: string | null;
10726
+ id?: string;
10727
+ lat?: number | null;
10728
+ lng?: number | null;
10729
+ place_id?: string | null;
10730
+ raw_address: string;
10731
+ resolved_at?: string | null;
10732
+ status?: string;
10733
+ updated_at?: string;
10734
+ };
10735
+ Update: {
10736
+ address_hash?: string;
10737
+ created_at?: string;
10738
+ error_reason?: string | null;
10739
+ formatted_address?: string | null;
10740
+ id?: string;
10741
+ lat?: number | null;
10742
+ lng?: number | null;
10743
+ place_id?: string | null;
10744
+ raw_address?: string;
10745
+ resolved_at?: string | null;
10746
+ status?: string;
10747
+ updated_at?: string;
10748
+ };
10749
+ Relationships: [];
10750
+ };
10751
+ maps_job_lease: {
10752
+ Row: {
10753
+ job: string;
10754
+ locked_until: string;
10755
+ updated_at: string;
10756
+ };
10757
+ Insert: {
10758
+ job: string;
10759
+ locked_until?: string;
10760
+ updated_at?: string;
10761
+ };
10762
+ Update: {
10763
+ job?: string;
10764
+ locked_until?: string;
10765
+ updated_at?: string;
10766
+ };
10767
+ Relationships: [];
10768
+ };
10769
+ maps_request_queue: {
10770
+ Row: {
10771
+ attempts: number;
10772
+ created_at: string;
10773
+ destination_hash: string | null;
10774
+ id: string;
10775
+ kind: string;
10776
+ last_error: string | null;
10777
+ mode: string;
10778
+ origin_hash: string | null;
10779
+ processed_at: string | null;
10780
+ raw_destination: string | null;
10781
+ raw_origin: string | null;
10782
+ requested_by: string | null;
10783
+ status: string;
10784
+ updated_at: string;
10785
+ };
10786
+ Insert: {
10787
+ attempts?: number;
10788
+ created_at?: string;
10789
+ destination_hash?: string | null;
10790
+ id?: string;
10791
+ kind: string;
10792
+ last_error?: string | null;
10793
+ mode?: string;
10794
+ origin_hash?: string | null;
10795
+ processed_at?: string | null;
10796
+ raw_destination?: string | null;
10797
+ raw_origin?: string | null;
10798
+ requested_by?: string | null;
10799
+ status?: string;
10800
+ updated_at?: string;
10801
+ };
10802
+ Update: {
10803
+ attempts?: number;
10804
+ created_at?: string;
10805
+ destination_hash?: string | null;
10806
+ id?: string;
10807
+ kind?: string;
10808
+ last_error?: string | null;
10809
+ mode?: string;
10810
+ origin_hash?: string | null;
10811
+ processed_at?: string | null;
10812
+ raw_destination?: string | null;
10813
+ raw_origin?: string | null;
10814
+ requested_by?: string | null;
10815
+ status?: string;
10816
+ updated_at?: string;
10817
+ };
10818
+ Relationships: [];
10819
+ };
10820
+ maps_settings: {
10821
+ Row: {
10822
+ allow_estimate_fallback: boolean;
10823
+ cache_ttl_days: number;
10824
+ created_at: string;
10825
+ daily_call_limit: number;
10826
+ id: string;
10827
+ last_error: string | null;
10828
+ last_error_at: string | null;
10829
+ last_success_at: string | null;
10830
+ provider: string;
10831
+ updated_at: string;
10832
+ };
10833
+ Insert: {
10834
+ allow_estimate_fallback?: boolean;
10835
+ cache_ttl_days?: number;
10836
+ created_at?: string;
10837
+ daily_call_limit?: number;
10838
+ id?: string;
10839
+ last_error?: string | null;
10840
+ last_error_at?: string | null;
10841
+ last_success_at?: string | null;
10842
+ provider?: string;
10843
+ updated_at?: string;
10844
+ };
10845
+ Update: {
10846
+ allow_estimate_fallback?: boolean;
10847
+ cache_ttl_days?: number;
10848
+ created_at?: string;
10849
+ daily_call_limit?: number;
10850
+ id?: string;
10851
+ last_error?: string | null;
10852
+ last_error_at?: string | null;
10853
+ last_success_at?: string | null;
10854
+ provider?: string;
10855
+ updated_at?: string;
10856
+ };
10857
+ Relationships: [];
10858
+ };
10859
+ maps_travel_times: {
10860
+ Row: {
10861
+ created_at: string;
10862
+ destination_id: string;
10863
+ distance_m: number | null;
10864
+ duration_sec: number;
10865
+ expires_at: string;
10866
+ id: string;
10867
+ mode: string;
10868
+ origin_id: string;
10869
+ source: string;
10870
+ updated_at: string;
10871
+ };
10872
+ Insert: {
10873
+ created_at?: string;
10874
+ destination_id: string;
10875
+ distance_m?: number | null;
10876
+ duration_sec: number;
10877
+ expires_at?: string;
10878
+ id?: string;
10879
+ mode?: string;
10880
+ origin_id: string;
10881
+ source?: string;
10882
+ updated_at?: string;
10883
+ };
10884
+ Update: {
10885
+ created_at?: string;
10886
+ destination_id?: string;
10887
+ distance_m?: number | null;
10888
+ duration_sec?: number;
10889
+ expires_at?: string;
10890
+ id?: string;
10891
+ mode?: string;
10892
+ origin_id?: string;
10893
+ source?: string;
10894
+ updated_at?: string;
10895
+ };
10896
+ Relationships: [{
10897
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
10898
+ columns: ["destination_id"];
10899
+ isOneToOne: false;
10900
+ referencedRelation: "maps_addresses";
10901
+ referencedColumns: ["id"];
10902
+ }, {
10903
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
10904
+ columns: ["origin_id"];
10905
+ isOneToOne: false;
10906
+ referencedRelation: "maps_addresses";
10907
+ referencedColumns: ["id"];
10908
+ }];
10909
+ };
10910
+ maps_usage_log: {
10911
+ Row: {
10912
+ cache_hits: number;
10913
+ call_type: string;
10914
+ created_at: string;
10915
+ day: string;
10916
+ detail: string | null;
10917
+ elements: number;
10918
+ id: string;
10919
+ outcome: string;
10920
+ };
10921
+ Insert: {
10922
+ cache_hits?: number;
10923
+ call_type: string;
10924
+ created_at?: string;
10925
+ day?: string;
10926
+ detail?: string | null;
10927
+ elements?: number;
10928
+ id?: string;
10929
+ outcome?: string;
10930
+ };
10931
+ Update: {
10932
+ cache_hits?: number;
10933
+ call_type?: string;
10934
+ created_at?: string;
10935
+ day?: string;
10936
+ detail?: string | null;
10937
+ elements?: number;
10938
+ id?: string;
10939
+ outcome?: string;
10940
+ };
10941
+ Relationships: [];
10942
+ };
10706
10943
  material_usage: {
10707
10944
  Row: {
10708
10945
  created_at: string;
@@ -13352,6 +13589,39 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13352
13589
  };
13353
13590
  Relationships: [];
13354
13591
  };
13592
+ print_dedupe_events: {
13593
+ Row: {
13594
+ bestaande_job_id: string | null;
13595
+ created_at: string;
13596
+ detail: string | null;
13597
+ documentnaam: string | null;
13598
+ documenttype: string | null;
13599
+ id: string;
13600
+ idempotentie_sleutel: string;
13601
+ reden: string;
13602
+ };
13603
+ Insert: {
13604
+ bestaande_job_id?: string | null;
13605
+ created_at?: string;
13606
+ detail?: string | null;
13607
+ documentnaam?: string | null;
13608
+ documenttype?: string | null;
13609
+ id?: string;
13610
+ idempotentie_sleutel: string;
13611
+ reden: string;
13612
+ };
13613
+ Update: {
13614
+ bestaande_job_id?: string | null;
13615
+ created_at?: string;
13616
+ detail?: string | null;
13617
+ documentnaam?: string | null;
13618
+ documenttype?: string | null;
13619
+ id?: string;
13620
+ idempotentie_sleutel?: string;
13621
+ reden?: string;
13622
+ };
13623
+ Relationships: [];
13624
+ };
13355
13625
  print_job_logs: {
13356
13626
  Row: {
13357
13627
  created_at: string;
@@ -13393,6 +13663,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13393
13663
  foutmelding: string | null;
13394
13664
  gebruiker_id: string | null;
13395
13665
  gebruiker_naam: string;
13666
+ gebruikte_bron: string | null;
13667
+ gebruikte_layout_id: string | null;
13396
13668
  gestart_op: string | null;
13397
13669
  herkomst: string | null;
13398
13670
  id: string;
@@ -13400,6 +13672,9 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13400
13672
  is_herprint: boolean;
13401
13673
  kopieen: number;
13402
13674
  layout_id: string | null;
13675
+ lokaal_opgeslagen_op: string | null;
13676
+ lokale_pdf_fout: string | null;
13677
+ lokale_pdf_status: string | null;
13403
13678
  opgepakt_op: string | null;
13404
13679
  paginas: number;
13405
13680
  payload: import("../integrations/supabase/types").Json;
@@ -13408,6 +13683,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13408
13683
  pogingen: number;
13409
13684
  printer_id: string | null;
13410
13685
  render_html: string | null;
13686
+ resultaat_pdf_base64: string | null;
13411
13687
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13412
13688
  updated_at: string;
13413
13689
  volgende_poging: string | null;
@@ -13423,6 +13699,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13423
13699
  foutmelding?: string | null;
13424
13700
  gebruiker_id?: string | null;
13425
13701
  gebruiker_naam?: string;
13702
+ gebruikte_bron?: string | null;
13703
+ gebruikte_layout_id?: string | null;
13426
13704
  gestart_op?: string | null;
13427
13705
  herkomst?: string | null;
13428
13706
  id?: string;
@@ -13430,6 +13708,9 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13430
13708
  is_herprint?: boolean;
13431
13709
  kopieen?: number;
13432
13710
  layout_id?: string | null;
13711
+ lokaal_opgeslagen_op?: string | null;
13712
+ lokale_pdf_fout?: string | null;
13713
+ lokale_pdf_status?: string | null;
13433
13714
  opgepakt_op?: string | null;
13434
13715
  paginas?: number;
13435
13716
  payload?: import("../integrations/supabase/types").Json;
@@ -13438,6 +13719,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13438
13719
  pogingen?: number;
13439
13720
  printer_id?: string | null;
13440
13721
  render_html?: string | null;
13722
+ resultaat_pdf_base64?: string | null;
13441
13723
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13442
13724
  updated_at?: string;
13443
13725
  volgende_poging?: string | null;
@@ -13453,6 +13735,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13453
13735
  foutmelding?: string | null;
13454
13736
  gebruiker_id?: string | null;
13455
13737
  gebruiker_naam?: string;
13738
+ gebruikte_bron?: string | null;
13739
+ gebruikte_layout_id?: string | null;
13456
13740
  gestart_op?: string | null;
13457
13741
  herkomst?: string | null;
13458
13742
  id?: string;
@@ -13460,6 +13744,9 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13460
13744
  is_herprint?: boolean;
13461
13745
  kopieen?: number;
13462
13746
  layout_id?: string | null;
13747
+ lokaal_opgeslagen_op?: string | null;
13748
+ lokale_pdf_fout?: string | null;
13749
+ lokale_pdf_status?: string | null;
13463
13750
  opgepakt_op?: string | null;
13464
13751
  paginas?: number;
13465
13752
  payload?: import("../integrations/supabase/types").Json;
@@ -13468,6 +13755,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13468
13755
  pogingen?: number;
13469
13756
  printer_id?: string | null;
13470
13757
  render_html?: string | null;
13758
+ resultaat_pdf_base64?: string | null;
13471
13759
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13472
13760
  updated_at?: string;
13473
13761
  volgende_poging?: string | null;
@@ -13586,6 +13874,39 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13586
13874
  };
13587
13875
  Relationships: [];
13588
13876
  };
13877
+ print_preview_events: {
13878
+ Row: {
13879
+ code: string | null;
13880
+ created_at: string;
13881
+ detail: import("../integrations/supabase/types").Json;
13882
+ id: string;
13883
+ queue_item_id: string | null;
13884
+ reden: string | null;
13885
+ station_slug: string | null;
13886
+ uitkomst: string;
13887
+ };
13888
+ Insert: {
13889
+ code?: string | null;
13890
+ created_at?: string;
13891
+ detail?: import("../integrations/supabase/types").Json;
13892
+ id?: string;
13893
+ queue_item_id?: string | null;
13894
+ reden?: string | null;
13895
+ station_slug?: string | null;
13896
+ uitkomst?: string;
13897
+ };
13898
+ Update: {
13899
+ code?: string | null;
13900
+ created_at?: string;
13901
+ detail?: import("../integrations/supabase/types").Json;
13902
+ id?: string;
13903
+ queue_item_id?: string | null;
13904
+ reden?: string | null;
13905
+ station_slug?: string | null;
13906
+ uitkomst?: string;
13907
+ };
13908
+ Relationships: [];
13909
+ };
13589
13910
  print_queue_runners: {
13590
13911
  Row: {
13591
13912
  actief: boolean;
@@ -13813,6 +14134,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13813
14134
  created_at: string;
13814
14135
  driver: string;
13815
14136
  extern_printer_id: string | null;
14137
+ formaten_bijgewerkt_op: string | null;
13816
14138
  id: string;
13817
14139
  ip_adres: string | null;
13818
14140
  laatst_gezien: string | null;
@@ -13820,8 +14142,11 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13820
14142
  merk: string;
13821
14143
  naam: string;
13822
14144
  omschrijving: string;
14145
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
14146
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
13823
14147
  online: boolean;
13824
14148
  papierformaat: string;
14149
+ pdf_map: string | null;
13825
14150
  poort: number | null;
13826
14151
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
13827
14152
  systeemnaam: string;
@@ -13835,6 +14160,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13835
14160
  created_at?: string;
13836
14161
  driver?: string;
13837
14162
  extern_printer_id?: string | null;
14163
+ formaten_bijgewerkt_op?: string | null;
13838
14164
  id?: string;
13839
14165
  ip_adres?: string | null;
13840
14166
  laatst_gezien?: string | null;
@@ -13842,8 +14168,11 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13842
14168
  merk?: string;
13843
14169
  naam: string;
13844
14170
  omschrijving?: string;
14171
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14172
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
13845
14173
  online?: boolean;
13846
14174
  papierformaat?: string;
14175
+ pdf_map?: string | null;
13847
14176
  poort?: number | null;
13848
14177
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
13849
14178
  systeemnaam?: string;
@@ -13857,6 +14186,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13857
14186
  created_at?: string;
13858
14187
  driver?: string;
13859
14188
  extern_printer_id?: string | null;
14189
+ formaten_bijgewerkt_op?: string | null;
13860
14190
  id?: string;
13861
14191
  ip_adres?: string | null;
13862
14192
  laatst_gezien?: string | null;
@@ -13864,8 +14194,11 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
13864
14194
  merk?: string;
13865
14195
  naam?: string;
13866
14196
  omschrijving?: string;
14197
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
14198
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
13867
14199
  online?: boolean;
13868
14200
  papierformaat?: string;
14201
+ pdf_map?: string | null;
13869
14202
  poort?: number | null;
13870
14203
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
13871
14204
  systeemnaam?: string;
@@ -20113,6 +20446,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
20113
20446
  foutmelding: string | null;
20114
20447
  gebruiker_id: string | null;
20115
20448
  gebruiker_naam: string;
20449
+ gebruikte_bron: string | null;
20450
+ gebruikte_layout_id: string | null;
20116
20451
  gestart_op: string | null;
20117
20452
  herkomst: string | null;
20118
20453
  id: string;
@@ -20120,6 +20455,9 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
20120
20455
  is_herprint: boolean;
20121
20456
  kopieen: number;
20122
20457
  layout_id: string | null;
20458
+ lokaal_opgeslagen_op: string | null;
20459
+ lokale_pdf_fout: string | null;
20460
+ lokale_pdf_status: string | null;
20123
20461
  opgepakt_op: string | null;
20124
20462
  paginas: number;
20125
20463
  payload: import("../integrations/supabase/types").Json;
@@ -20128,6 +20466,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
20128
20466
  pogingen: number;
20129
20467
  printer_id: string | null;
20130
20468
  render_html: string | null;
20469
+ resultaat_pdf_base64: string | null;
20131
20470
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20132
20471
  updated_at: string;
20133
20472
  volgende_poging: string | null;
@@ -20219,6 +20558,53 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
20219
20558
  isSetofReturn: true;
20220
20559
  };
20221
20560
  };
20561
+ claim_pdf_print_jobs: {
20562
+ Args: {
20563
+ _max?: number;
20564
+ };
20565
+ Returns: {
20566
+ agent_id: string | null;
20567
+ bron_job_id: string | null;
20568
+ created_at: string;
20569
+ documentnaam: string;
20570
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20571
+ extern_job_id: string | null;
20572
+ foutmelding: string | null;
20573
+ gebruiker_id: string | null;
20574
+ gebruiker_naam: string;
20575
+ gebruikte_bron: string | null;
20576
+ gebruikte_layout_id: string | null;
20577
+ gestart_op: string | null;
20578
+ herkomst: string | null;
20579
+ id: string;
20580
+ idempotentie_sleutel: string | null;
20581
+ is_herprint: boolean;
20582
+ kopieen: number;
20583
+ layout_id: string | null;
20584
+ lokaal_opgeslagen_op: string | null;
20585
+ lokale_pdf_fout: string | null;
20586
+ lokale_pdf_status: string | null;
20587
+ opgepakt_op: string | null;
20588
+ paginas: number;
20589
+ payload: import("../integrations/supabase/types").Json;
20590
+ pdf_base64: string | null;
20591
+ pdf_url: string | null;
20592
+ pogingen: number;
20593
+ printer_id: string | null;
20594
+ render_html: string | null;
20595
+ resultaat_pdf_base64: string | null;
20596
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20597
+ updated_at: string;
20598
+ volgende_poging: string | null;
20599
+ voltooid_op: string | null;
20600
+ }[];
20601
+ SetofOptions: {
20602
+ from: "*";
20603
+ to: "print_jobs";
20604
+ isOneToOne: false;
20605
+ isSetofReturn: true;
20606
+ };
20607
+ };
20222
20608
  claim_print_jobs: {
20223
20609
  Args: {
20224
20610
  _agent_id: string;
@@ -20234,6 +20620,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
20234
20620
  foutmelding: string | null;
20235
20621
  gebruiker_id: string | null;
20236
20622
  gebruiker_naam: string;
20623
+ gebruikte_bron: string | null;
20624
+ gebruikte_layout_id: string | null;
20237
20625
  gestart_op: string | null;
20238
20626
  herkomst: string | null;
20239
20627
  id: string;
@@ -20241,6 +20629,9 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
20241
20629
  is_herprint: boolean;
20242
20630
  kopieen: number;
20243
20631
  layout_id: string | null;
20632
+ lokaal_opgeslagen_op: string | null;
20633
+ lokale_pdf_fout: string | null;
20634
+ lokale_pdf_status: string | null;
20244
20635
  opgepakt_op: string | null;
20245
20636
  paginas: number;
20246
20637
  payload: import("../integrations/supabase/types").Json;
@@ -20249,6 +20640,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
20249
20640
  pogingen: number;
20250
20641
  printer_id: string | null;
20251
20642
  render_html: string | null;
20643
+ resultaat_pdf_base64: string | null;
20252
20644
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20253
20645
  updated_at: string;
20254
20646
  volgende_poging: string | null;
@@ -20389,6 +20781,8 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
20389
20781
  order_id: string;
20390
20782
  order_source: string;
20391
20783
  pick_date: string;
20784
+ printed_at: string;
20785
+ printed_today: boolean;
20392
20786
  status: string;
20393
20787
  }[];
20394
20788
  };
@@ -21097,6 +21491,10 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21097
21491
  };
21098
21492
  Returns: number;
21099
21493
  };
21494
+ logistics_cancel_orphan_tasks: {
21495
+ Args: never;
21496
+ Returns: number;
21497
+ };
21100
21498
  logistics_capacity_day_check: {
21101
21499
  Args: {
21102
21500
  p_from?: string;
@@ -21117,6 +21515,25 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21117
21515
  };
21118
21516
  Returns: number;
21119
21517
  };
21518
+ logistics_cart_index: {
21519
+ Args: {
21520
+ p_from?: string;
21521
+ p_to?: string;
21522
+ };
21523
+ Returns: {
21524
+ cart_id: string;
21525
+ cart_index: number;
21526
+ cart_label: string;
21527
+ is_shared: boolean;
21528
+ order_number: string;
21529
+ order_source: string;
21530
+ order_uuid: string;
21531
+ pick_date: string;
21532
+ printed_at: string;
21533
+ shifted: boolean;
21534
+ task_status: string;
21535
+ }[];
21536
+ };
21120
21537
  logistics_check_order_allowed: {
21121
21538
  Args: {
21122
21539
  p_lines: import("../integrations/supabase/types").Json;
@@ -21265,6 +21682,17 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21265
21682
  isSetofReturn: false;
21266
21683
  };
21267
21684
  };
21685
+ logistics_consistency_check: {
21686
+ Args: never;
21687
+ Returns: {
21688
+ agenda_carts: number;
21689
+ control_carts: number;
21690
+ ok: boolean;
21691
+ orphan_tasks: number;
21692
+ pick_date: string;
21693
+ raw_carts: number;
21694
+ }[];
21695
+ };
21268
21696
  logistics_delay_customer_email: {
21269
21697
  Args: {
21270
21698
  p_customer: string;
@@ -21290,6 +21718,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21290
21718
  };
21291
21719
  Returns: string;
21292
21720
  };
21721
+ logistics_document_type_map: {
21722
+ Args: {
21723
+ _document_code: string;
21724
+ };
21725
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
21726
+ };
21293
21727
  logistics_emit_event: {
21294
21728
  Args: {
21295
21729
  p_event_type: string;
@@ -21452,6 +21886,25 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21452
21886
  };
21453
21887
  Returns: number;
21454
21888
  };
21889
+ logistics_order_overview: {
21890
+ Args: {
21891
+ p_from?: string;
21892
+ p_to?: string;
21893
+ };
21894
+ Returns: {
21895
+ cart_count: number;
21896
+ customer_name: string;
21897
+ delivery_date: string;
21898
+ order_number: string;
21899
+ order_source: string;
21900
+ order_uuid: string;
21901
+ pick_date: string;
21902
+ plant_count: number;
21903
+ printed_at: string;
21904
+ shifted: boolean;
21905
+ status: string;
21906
+ }[];
21907
+ };
21455
21908
  logistics_order_pick_day: {
21456
21909
  Args: {
21457
21910
  p_order_ref: string;
@@ -21464,6 +21917,22 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21464
21917
  };
21465
21918
  Returns: string;
21466
21919
  };
21920
+ logistics_pick_agenda: {
21921
+ Args: {
21922
+ p_from?: string;
21923
+ p_to?: string;
21924
+ };
21925
+ Returns: {
21926
+ cart_count: number;
21927
+ in_preparation: number;
21928
+ order_count: number;
21929
+ orders: import("../integrations/supabase/types").Json;
21930
+ pick_date: string;
21931
+ plant_count: number;
21932
+ ready: number;
21933
+ shifted_count: number;
21934
+ }[];
21935
+ };
21467
21936
  logistics_pick_email_purpose: {
21468
21937
  Args: never;
21469
21938
  Returns: string;
@@ -21623,6 +22092,15 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21623
22092
  };
21624
22093
  Returns: import("../integrations/supabase/types").Json;
21625
22094
  };
22095
+ logistics_resolve_pick_document: {
22096
+ Args: {
22097
+ _is_herprint: boolean;
22098
+ _queue_item_id: string;
22099
+ _session_id: string;
22100
+ _voorbeeld: boolean;
22101
+ };
22102
+ Returns: import("../integrations/supabase/types").Json;
22103
+ };
21626
22104
  logistics_resolve_settings: {
21627
22105
  Args: {
21628
22106
  p_config_id: string;
@@ -22063,6 +22541,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22063
22541
  };
22064
22542
  pick_enqueue_print_job: {
22065
22543
  Args: {
22544
+ _is_herprint?: boolean;
22066
22545
  _printer_id?: string;
22067
22546
  _queue_item_id: string;
22068
22547
  _session_id?: string;
@@ -22076,6 +22555,13 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22076
22555
  };
22077
22556
  Returns: import("../integrations/supabase/types").Json;
22078
22557
  };
22558
+ pick_preview_job: {
22559
+ Args: {
22560
+ _queue_item_id: string;
22561
+ _station_slug: string;
22562
+ };
22563
+ Returns: import("../integrations/supabase/types").Json;
22564
+ };
22079
22565
  pick_print_job_status: {
22080
22566
  Args: {
22081
22567
  _job_id: string;
@@ -22090,6 +22576,10 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22090
22576
  omschrijving: string;
22091
22577
  }[];
22092
22578
  };
22579
+ pick_reference_data_status: {
22580
+ Args: never;
22581
+ Returns: import("../integrations/supabase/types").Json;
22582
+ };
22093
22583
  pick_release_expired_locks: {
22094
22584
  Args: never;
22095
22585
  Returns: number;
@@ -22154,6 +22644,10 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22154
22644
  isSetofReturn: false;
22155
22645
  };
22156
22646
  };
22647
+ pick_seed_reference_data: {
22648
+ Args: never;
22649
+ Returns: import("../integrations/supabase/types").Json;
22650
+ };
22157
22651
  pick_set_station_print_plek: {
22158
22652
  Args: {
22159
22653
  _print_plek_id: string;
@@ -22245,6 +22739,24 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22245
22739
  };
22246
22740
  Returns: undefined;
22247
22741
  };
22742
+ print_preview_toestaan: {
22743
+ Args: {
22744
+ _max?: number;
22745
+ _queue_item_id: string;
22746
+ _station_slug: string;
22747
+ _venster_sec?: number;
22748
+ };
22749
+ Returns: import("../integrations/supabase/types").Json;
22750
+ };
22751
+ print_preview_weiger: {
22752
+ Args: {
22753
+ _code: string;
22754
+ _queue_item_id: string;
22755
+ _reden: string;
22756
+ _station_slug: string;
22757
+ };
22758
+ Returns: undefined;
22759
+ };
22248
22760
  process_logistics_event: {
22249
22761
  Args: {
22250
22762
  p_event_id: string;
@@ -22362,6 +22874,14 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22362
22874
  };
22363
22875
  Returns: undefined;
22364
22876
  };
22877
+ replace_order_carts: {
22878
+ Args: {
22879
+ p_buffer_id: string;
22880
+ p_carts: import("../integrations/supabase/types").Json;
22881
+ p_order_id: string;
22882
+ };
22883
+ Returns: import("../integrations/supabase/types").Json;
22884
+ };
22365
22885
  reset_floriday_sync_cursor: {
22366
22886
  Args: {
22367
22887
  p_connection_id: string;
@@ -22391,6 +22911,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22391
22911
  };
22392
22912
  Returns: string;
22393
22913
  };
22914
+ resolve_print_job_printer_id: {
22915
+ Args: {
22916
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
22917
+ };
22918
+ Returns: string;
22919
+ };
22394
22920
  resolve_product_id_for_item: {
22395
22921
  Args: {
22396
22922
  p_product_name: string;
@@ -22982,7 +23508,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22982
23508
  };
22983
23509
  CompositeTypes: { [_ in never]: never; };
22984
23510
  }, {
22985
- PostgrestVersion: "14.17";
23511
+ PostgrestVersion: "14.5";
22986
23512
  }>;
22987
23513
  userId: string;
22988
23514
  claims: import("@supabase/auth-js").JwtPayload;
@@ -33688,6 +34214,243 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
33688
34214
  };
33689
34215
  Relationships: [];
33690
34216
  };
34217
+ maps_addresses: {
34218
+ Row: {
34219
+ address_hash: string;
34220
+ created_at: string;
34221
+ error_reason: string | null;
34222
+ formatted_address: string | null;
34223
+ id: string;
34224
+ lat: number | null;
34225
+ lng: number | null;
34226
+ place_id: string | null;
34227
+ raw_address: string;
34228
+ resolved_at: string | null;
34229
+ status: string;
34230
+ updated_at: string;
34231
+ };
34232
+ Insert: {
34233
+ address_hash: string;
34234
+ created_at?: string;
34235
+ error_reason?: string | null;
34236
+ formatted_address?: string | null;
34237
+ id?: string;
34238
+ lat?: number | null;
34239
+ lng?: number | null;
34240
+ place_id?: string | null;
34241
+ raw_address: string;
34242
+ resolved_at?: string | null;
34243
+ status?: string;
34244
+ updated_at?: string;
34245
+ };
34246
+ Update: {
34247
+ address_hash?: string;
34248
+ created_at?: string;
34249
+ error_reason?: string | null;
34250
+ formatted_address?: string | null;
34251
+ id?: string;
34252
+ lat?: number | null;
34253
+ lng?: number | null;
34254
+ place_id?: string | null;
34255
+ raw_address?: string;
34256
+ resolved_at?: string | null;
34257
+ status?: string;
34258
+ updated_at?: string;
34259
+ };
34260
+ Relationships: [];
34261
+ };
34262
+ maps_job_lease: {
34263
+ Row: {
34264
+ job: string;
34265
+ locked_until: string;
34266
+ updated_at: string;
34267
+ };
34268
+ Insert: {
34269
+ job: string;
34270
+ locked_until?: string;
34271
+ updated_at?: string;
34272
+ };
34273
+ Update: {
34274
+ job?: string;
34275
+ locked_until?: string;
34276
+ updated_at?: string;
34277
+ };
34278
+ Relationships: [];
34279
+ };
34280
+ maps_request_queue: {
34281
+ Row: {
34282
+ attempts: number;
34283
+ created_at: string;
34284
+ destination_hash: string | null;
34285
+ id: string;
34286
+ kind: string;
34287
+ last_error: string | null;
34288
+ mode: string;
34289
+ origin_hash: string | null;
34290
+ processed_at: string | null;
34291
+ raw_destination: string | null;
34292
+ raw_origin: string | null;
34293
+ requested_by: string | null;
34294
+ status: string;
34295
+ updated_at: string;
34296
+ };
34297
+ Insert: {
34298
+ attempts?: number;
34299
+ created_at?: string;
34300
+ destination_hash?: string | null;
34301
+ id?: string;
34302
+ kind: string;
34303
+ last_error?: string | null;
34304
+ mode?: string;
34305
+ origin_hash?: string | null;
34306
+ processed_at?: string | null;
34307
+ raw_destination?: string | null;
34308
+ raw_origin?: string | null;
34309
+ requested_by?: string | null;
34310
+ status?: string;
34311
+ updated_at?: string;
34312
+ };
34313
+ Update: {
34314
+ attempts?: number;
34315
+ created_at?: string;
34316
+ destination_hash?: string | null;
34317
+ id?: string;
34318
+ kind?: string;
34319
+ last_error?: string | null;
34320
+ mode?: string;
34321
+ origin_hash?: string | null;
34322
+ processed_at?: string | null;
34323
+ raw_destination?: string | null;
34324
+ raw_origin?: string | null;
34325
+ requested_by?: string | null;
34326
+ status?: string;
34327
+ updated_at?: string;
34328
+ };
34329
+ Relationships: [];
34330
+ };
34331
+ maps_settings: {
34332
+ Row: {
34333
+ allow_estimate_fallback: boolean;
34334
+ cache_ttl_days: number;
34335
+ created_at: string;
34336
+ daily_call_limit: number;
34337
+ id: string;
34338
+ last_error: string | null;
34339
+ last_error_at: string | null;
34340
+ last_success_at: string | null;
34341
+ provider: string;
34342
+ updated_at: string;
34343
+ };
34344
+ Insert: {
34345
+ allow_estimate_fallback?: boolean;
34346
+ cache_ttl_days?: number;
34347
+ created_at?: string;
34348
+ daily_call_limit?: number;
34349
+ id?: string;
34350
+ last_error?: string | null;
34351
+ last_error_at?: string | null;
34352
+ last_success_at?: string | null;
34353
+ provider?: string;
34354
+ updated_at?: string;
34355
+ };
34356
+ Update: {
34357
+ allow_estimate_fallback?: boolean;
34358
+ cache_ttl_days?: number;
34359
+ created_at?: string;
34360
+ daily_call_limit?: number;
34361
+ id?: string;
34362
+ last_error?: string | null;
34363
+ last_error_at?: string | null;
34364
+ last_success_at?: string | null;
34365
+ provider?: string;
34366
+ updated_at?: string;
34367
+ };
34368
+ Relationships: [];
34369
+ };
34370
+ maps_travel_times: {
34371
+ Row: {
34372
+ created_at: string;
34373
+ destination_id: string;
34374
+ distance_m: number | null;
34375
+ duration_sec: number;
34376
+ expires_at: string;
34377
+ id: string;
34378
+ mode: string;
34379
+ origin_id: string;
34380
+ source: string;
34381
+ updated_at: string;
34382
+ };
34383
+ Insert: {
34384
+ created_at?: string;
34385
+ destination_id: string;
34386
+ distance_m?: number | null;
34387
+ duration_sec: number;
34388
+ expires_at?: string;
34389
+ id?: string;
34390
+ mode?: string;
34391
+ origin_id: string;
34392
+ source?: string;
34393
+ updated_at?: string;
34394
+ };
34395
+ Update: {
34396
+ created_at?: string;
34397
+ destination_id?: string;
34398
+ distance_m?: number | null;
34399
+ duration_sec?: number;
34400
+ expires_at?: string;
34401
+ id?: string;
34402
+ mode?: string;
34403
+ origin_id?: string;
34404
+ source?: string;
34405
+ updated_at?: string;
34406
+ };
34407
+ Relationships: [{
34408
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
34409
+ columns: ["destination_id"];
34410
+ isOneToOne: false;
34411
+ referencedRelation: "maps_addresses";
34412
+ referencedColumns: ["id"];
34413
+ }, {
34414
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
34415
+ columns: ["origin_id"];
34416
+ isOneToOne: false;
34417
+ referencedRelation: "maps_addresses";
34418
+ referencedColumns: ["id"];
34419
+ }];
34420
+ };
34421
+ maps_usage_log: {
34422
+ Row: {
34423
+ cache_hits: number;
34424
+ call_type: string;
34425
+ created_at: string;
34426
+ day: string;
34427
+ detail: string | null;
34428
+ elements: number;
34429
+ id: string;
34430
+ outcome: string;
34431
+ };
34432
+ Insert: {
34433
+ cache_hits?: number;
34434
+ call_type: string;
34435
+ created_at?: string;
34436
+ day?: string;
34437
+ detail?: string | null;
34438
+ elements?: number;
34439
+ id?: string;
34440
+ outcome?: string;
34441
+ };
34442
+ Update: {
34443
+ cache_hits?: number;
34444
+ call_type?: string;
34445
+ created_at?: string;
34446
+ day?: string;
34447
+ detail?: string | null;
34448
+ elements?: number;
34449
+ id?: string;
34450
+ outcome?: string;
34451
+ };
34452
+ Relationships: [];
34453
+ };
33691
34454
  material_usage: {
33692
34455
  Row: {
33693
34456
  created_at: string;
@@ -36337,6 +37100,39 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36337
37100
  };
36338
37101
  Relationships: [];
36339
37102
  };
37103
+ print_dedupe_events: {
37104
+ Row: {
37105
+ bestaande_job_id: string | null;
37106
+ created_at: string;
37107
+ detail: string | null;
37108
+ documentnaam: string | null;
37109
+ documenttype: string | null;
37110
+ id: string;
37111
+ idempotentie_sleutel: string;
37112
+ reden: string;
37113
+ };
37114
+ Insert: {
37115
+ bestaande_job_id?: string | null;
37116
+ created_at?: string;
37117
+ detail?: string | null;
37118
+ documentnaam?: string | null;
37119
+ documenttype?: string | null;
37120
+ id?: string;
37121
+ idempotentie_sleutel: string;
37122
+ reden: string;
37123
+ };
37124
+ Update: {
37125
+ bestaande_job_id?: string | null;
37126
+ created_at?: string;
37127
+ detail?: string | null;
37128
+ documentnaam?: string | null;
37129
+ documenttype?: string | null;
37130
+ id?: string;
37131
+ idempotentie_sleutel?: string;
37132
+ reden?: string;
37133
+ };
37134
+ Relationships: [];
37135
+ };
36340
37136
  print_job_logs: {
36341
37137
  Row: {
36342
37138
  created_at: string;
@@ -36378,6 +37174,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36378
37174
  foutmelding: string | null;
36379
37175
  gebruiker_id: string | null;
36380
37176
  gebruiker_naam: string;
37177
+ gebruikte_bron: string | null;
37178
+ gebruikte_layout_id: string | null;
36381
37179
  gestart_op: string | null;
36382
37180
  herkomst: string | null;
36383
37181
  id: string;
@@ -36385,6 +37183,9 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36385
37183
  is_herprint: boolean;
36386
37184
  kopieen: number;
36387
37185
  layout_id: string | null;
37186
+ lokaal_opgeslagen_op: string | null;
37187
+ lokale_pdf_fout: string | null;
37188
+ lokale_pdf_status: string | null;
36388
37189
  opgepakt_op: string | null;
36389
37190
  paginas: number;
36390
37191
  payload: import("../integrations/supabase/types").Json;
@@ -36393,6 +37194,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36393
37194
  pogingen: number;
36394
37195
  printer_id: string | null;
36395
37196
  render_html: string | null;
37197
+ resultaat_pdf_base64: string | null;
36396
37198
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36397
37199
  updated_at: string;
36398
37200
  volgende_poging: string | null;
@@ -36408,6 +37210,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36408
37210
  foutmelding?: string | null;
36409
37211
  gebruiker_id?: string | null;
36410
37212
  gebruiker_naam?: string;
37213
+ gebruikte_bron?: string | null;
37214
+ gebruikte_layout_id?: string | null;
36411
37215
  gestart_op?: string | null;
36412
37216
  herkomst?: string | null;
36413
37217
  id?: string;
@@ -36415,6 +37219,9 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36415
37219
  is_herprint?: boolean;
36416
37220
  kopieen?: number;
36417
37221
  layout_id?: string | null;
37222
+ lokaal_opgeslagen_op?: string | null;
37223
+ lokale_pdf_fout?: string | null;
37224
+ lokale_pdf_status?: string | null;
36418
37225
  opgepakt_op?: string | null;
36419
37226
  paginas?: number;
36420
37227
  payload?: import("../integrations/supabase/types").Json;
@@ -36423,6 +37230,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36423
37230
  pogingen?: number;
36424
37231
  printer_id?: string | null;
36425
37232
  render_html?: string | null;
37233
+ resultaat_pdf_base64?: string | null;
36426
37234
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36427
37235
  updated_at?: string;
36428
37236
  volgende_poging?: string | null;
@@ -36438,6 +37246,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36438
37246
  foutmelding?: string | null;
36439
37247
  gebruiker_id?: string | null;
36440
37248
  gebruiker_naam?: string;
37249
+ gebruikte_bron?: string | null;
37250
+ gebruikte_layout_id?: string | null;
36441
37251
  gestart_op?: string | null;
36442
37252
  herkomst?: string | null;
36443
37253
  id?: string;
@@ -36445,6 +37255,9 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36445
37255
  is_herprint?: boolean;
36446
37256
  kopieen?: number;
36447
37257
  layout_id?: string | null;
37258
+ lokaal_opgeslagen_op?: string | null;
37259
+ lokale_pdf_fout?: string | null;
37260
+ lokale_pdf_status?: string | null;
36448
37261
  opgepakt_op?: string | null;
36449
37262
  paginas?: number;
36450
37263
  payload?: import("../integrations/supabase/types").Json;
@@ -36453,6 +37266,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36453
37266
  pogingen?: number;
36454
37267
  printer_id?: string | null;
36455
37268
  render_html?: string | null;
37269
+ resultaat_pdf_base64?: string | null;
36456
37270
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36457
37271
  updated_at?: string;
36458
37272
  volgende_poging?: string | null;
@@ -36571,6 +37385,39 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36571
37385
  };
36572
37386
  Relationships: [];
36573
37387
  };
37388
+ print_preview_events: {
37389
+ Row: {
37390
+ code: string | null;
37391
+ created_at: string;
37392
+ detail: import("../integrations/supabase/types").Json;
37393
+ id: string;
37394
+ queue_item_id: string | null;
37395
+ reden: string | null;
37396
+ station_slug: string | null;
37397
+ uitkomst: string;
37398
+ };
37399
+ Insert: {
37400
+ code?: string | null;
37401
+ created_at?: string;
37402
+ detail?: import("../integrations/supabase/types").Json;
37403
+ id?: string;
37404
+ queue_item_id?: string | null;
37405
+ reden?: string | null;
37406
+ station_slug?: string | null;
37407
+ uitkomst?: string;
37408
+ };
37409
+ Update: {
37410
+ code?: string | null;
37411
+ created_at?: string;
37412
+ detail?: import("../integrations/supabase/types").Json;
37413
+ id?: string;
37414
+ queue_item_id?: string | null;
37415
+ reden?: string | null;
37416
+ station_slug?: string | null;
37417
+ uitkomst?: string;
37418
+ };
37419
+ Relationships: [];
37420
+ };
36574
37421
  print_queue_runners: {
36575
37422
  Row: {
36576
37423
  actief: boolean;
@@ -36798,6 +37645,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36798
37645
  created_at: string;
36799
37646
  driver: string;
36800
37647
  extern_printer_id: string | null;
37648
+ formaten_bijgewerkt_op: string | null;
36801
37649
  id: string;
36802
37650
  ip_adres: string | null;
36803
37651
  laatst_gezien: string | null;
@@ -36805,8 +37653,11 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36805
37653
  merk: string;
36806
37654
  naam: string;
36807
37655
  omschrijving: string;
37656
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
37657
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
36808
37658
  online: boolean;
36809
37659
  papierformaat: string;
37660
+ pdf_map: string | null;
36810
37661
  poort: number | null;
36811
37662
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
36812
37663
  systeemnaam: string;
@@ -36820,6 +37671,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36820
37671
  created_at?: string;
36821
37672
  driver?: string;
36822
37673
  extern_printer_id?: string | null;
37674
+ formaten_bijgewerkt_op?: string | null;
36823
37675
  id?: string;
36824
37676
  ip_adres?: string | null;
36825
37677
  laatst_gezien?: string | null;
@@ -36827,8 +37679,11 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36827
37679
  merk?: string;
36828
37680
  naam: string;
36829
37681
  omschrijving?: string;
37682
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
37683
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
36830
37684
  online?: boolean;
36831
37685
  papierformaat?: string;
37686
+ pdf_map?: string | null;
36832
37687
  poort?: number | null;
36833
37688
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
36834
37689
  systeemnaam?: string;
@@ -36842,6 +37697,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36842
37697
  created_at?: string;
36843
37698
  driver?: string;
36844
37699
  extern_printer_id?: string | null;
37700
+ formaten_bijgewerkt_op?: string | null;
36845
37701
  id?: string;
36846
37702
  ip_adres?: string | null;
36847
37703
  laatst_gezien?: string | null;
@@ -36849,8 +37705,11 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
36849
37705
  merk?: string;
36850
37706
  naam?: string;
36851
37707
  omschrijving?: string;
37708
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
37709
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
36852
37710
  online?: boolean;
36853
37711
  papierformaat?: string;
37712
+ pdf_map?: string | null;
36854
37713
  poort?: number | null;
36855
37714
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
36856
37715
  systeemnaam?: string;
@@ -43098,6 +43957,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
43098
43957
  foutmelding: string | null;
43099
43958
  gebruiker_id: string | null;
43100
43959
  gebruiker_naam: string;
43960
+ gebruikte_bron: string | null;
43961
+ gebruikte_layout_id: string | null;
43101
43962
  gestart_op: string | null;
43102
43963
  herkomst: string | null;
43103
43964
  id: string;
@@ -43105,6 +43966,9 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
43105
43966
  is_herprint: boolean;
43106
43967
  kopieen: number;
43107
43968
  layout_id: string | null;
43969
+ lokaal_opgeslagen_op: string | null;
43970
+ lokale_pdf_fout: string | null;
43971
+ lokale_pdf_status: string | null;
43108
43972
  opgepakt_op: string | null;
43109
43973
  paginas: number;
43110
43974
  payload: import("../integrations/supabase/types").Json;
@@ -43113,6 +43977,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
43113
43977
  pogingen: number;
43114
43978
  printer_id: string | null;
43115
43979
  render_html: string | null;
43980
+ resultaat_pdf_base64: string | null;
43116
43981
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43117
43982
  updated_at: string;
43118
43983
  volgende_poging: string | null;
@@ -43204,6 +44069,53 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
43204
44069
  isSetofReturn: true;
43205
44070
  };
43206
44071
  };
44072
+ claim_pdf_print_jobs: {
44073
+ Args: {
44074
+ _max?: number;
44075
+ };
44076
+ Returns: {
44077
+ agent_id: string | null;
44078
+ bron_job_id: string | null;
44079
+ created_at: string;
44080
+ documentnaam: string;
44081
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44082
+ extern_job_id: string | null;
44083
+ foutmelding: string | null;
44084
+ gebruiker_id: string | null;
44085
+ gebruiker_naam: string;
44086
+ gebruikte_bron: string | null;
44087
+ gebruikte_layout_id: string | null;
44088
+ gestart_op: string | null;
44089
+ herkomst: string | null;
44090
+ id: string;
44091
+ idempotentie_sleutel: string | null;
44092
+ is_herprint: boolean;
44093
+ kopieen: number;
44094
+ layout_id: string | null;
44095
+ lokaal_opgeslagen_op: string | null;
44096
+ lokale_pdf_fout: string | null;
44097
+ lokale_pdf_status: string | null;
44098
+ opgepakt_op: string | null;
44099
+ paginas: number;
44100
+ payload: import("../integrations/supabase/types").Json;
44101
+ pdf_base64: string | null;
44102
+ pdf_url: string | null;
44103
+ pogingen: number;
44104
+ printer_id: string | null;
44105
+ render_html: string | null;
44106
+ resultaat_pdf_base64: string | null;
44107
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44108
+ updated_at: string;
44109
+ volgende_poging: string | null;
44110
+ voltooid_op: string | null;
44111
+ }[];
44112
+ SetofOptions: {
44113
+ from: "*";
44114
+ to: "print_jobs";
44115
+ isOneToOne: false;
44116
+ isSetofReturn: true;
44117
+ };
44118
+ };
43207
44119
  claim_print_jobs: {
43208
44120
  Args: {
43209
44121
  _agent_id: string;
@@ -43219,6 +44131,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
43219
44131
  foutmelding: string | null;
43220
44132
  gebruiker_id: string | null;
43221
44133
  gebruiker_naam: string;
44134
+ gebruikte_bron: string | null;
44135
+ gebruikte_layout_id: string | null;
43222
44136
  gestart_op: string | null;
43223
44137
  herkomst: string | null;
43224
44138
  id: string;
@@ -43226,6 +44140,9 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
43226
44140
  is_herprint: boolean;
43227
44141
  kopieen: number;
43228
44142
  layout_id: string | null;
44143
+ lokaal_opgeslagen_op: string | null;
44144
+ lokale_pdf_fout: string | null;
44145
+ lokale_pdf_status: string | null;
43229
44146
  opgepakt_op: string | null;
43230
44147
  paginas: number;
43231
44148
  payload: import("../integrations/supabase/types").Json;
@@ -43234,6 +44151,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
43234
44151
  pogingen: number;
43235
44152
  printer_id: string | null;
43236
44153
  render_html: string | null;
44154
+ resultaat_pdf_base64: string | null;
43237
44155
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43238
44156
  updated_at: string;
43239
44157
  volgende_poging: string | null;
@@ -43374,6 +44292,8 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
43374
44292
  order_id: string;
43375
44293
  order_source: string;
43376
44294
  pick_date: string;
44295
+ printed_at: string;
44296
+ printed_today: boolean;
43377
44297
  status: string;
43378
44298
  }[];
43379
44299
  };
@@ -44082,6 +45002,10 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44082
45002
  };
44083
45003
  Returns: number;
44084
45004
  };
45005
+ logistics_cancel_orphan_tasks: {
45006
+ Args: never;
45007
+ Returns: number;
45008
+ };
44085
45009
  logistics_capacity_day_check: {
44086
45010
  Args: {
44087
45011
  p_from?: string;
@@ -44102,6 +45026,25 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44102
45026
  };
44103
45027
  Returns: number;
44104
45028
  };
45029
+ logistics_cart_index: {
45030
+ Args: {
45031
+ p_from?: string;
45032
+ p_to?: string;
45033
+ };
45034
+ Returns: {
45035
+ cart_id: string;
45036
+ cart_index: number;
45037
+ cart_label: string;
45038
+ is_shared: boolean;
45039
+ order_number: string;
45040
+ order_source: string;
45041
+ order_uuid: string;
45042
+ pick_date: string;
45043
+ printed_at: string;
45044
+ shifted: boolean;
45045
+ task_status: string;
45046
+ }[];
45047
+ };
44105
45048
  logistics_check_order_allowed: {
44106
45049
  Args: {
44107
45050
  p_lines: import("../integrations/supabase/types").Json;
@@ -44250,6 +45193,17 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44250
45193
  isSetofReturn: false;
44251
45194
  };
44252
45195
  };
45196
+ logistics_consistency_check: {
45197
+ Args: never;
45198
+ Returns: {
45199
+ agenda_carts: number;
45200
+ control_carts: number;
45201
+ ok: boolean;
45202
+ orphan_tasks: number;
45203
+ pick_date: string;
45204
+ raw_carts: number;
45205
+ }[];
45206
+ };
44253
45207
  logistics_delay_customer_email: {
44254
45208
  Args: {
44255
45209
  p_customer: string;
@@ -44275,6 +45229,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44275
45229
  };
44276
45230
  Returns: string;
44277
45231
  };
45232
+ logistics_document_type_map: {
45233
+ Args: {
45234
+ _document_code: string;
45235
+ };
45236
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
45237
+ };
44278
45238
  logistics_emit_event: {
44279
45239
  Args: {
44280
45240
  p_event_type: string;
@@ -44437,6 +45397,25 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44437
45397
  };
44438
45398
  Returns: number;
44439
45399
  };
45400
+ logistics_order_overview: {
45401
+ Args: {
45402
+ p_from?: string;
45403
+ p_to?: string;
45404
+ };
45405
+ Returns: {
45406
+ cart_count: number;
45407
+ customer_name: string;
45408
+ delivery_date: string;
45409
+ order_number: string;
45410
+ order_source: string;
45411
+ order_uuid: string;
45412
+ pick_date: string;
45413
+ plant_count: number;
45414
+ printed_at: string;
45415
+ shifted: boolean;
45416
+ status: string;
45417
+ }[];
45418
+ };
44440
45419
  logistics_order_pick_day: {
44441
45420
  Args: {
44442
45421
  p_order_ref: string;
@@ -44449,6 +45428,22 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44449
45428
  };
44450
45429
  Returns: string;
44451
45430
  };
45431
+ logistics_pick_agenda: {
45432
+ Args: {
45433
+ p_from?: string;
45434
+ p_to?: string;
45435
+ };
45436
+ Returns: {
45437
+ cart_count: number;
45438
+ in_preparation: number;
45439
+ order_count: number;
45440
+ orders: import("../integrations/supabase/types").Json;
45441
+ pick_date: string;
45442
+ plant_count: number;
45443
+ ready: number;
45444
+ shifted_count: number;
45445
+ }[];
45446
+ };
44452
45447
  logistics_pick_email_purpose: {
44453
45448
  Args: never;
44454
45449
  Returns: string;
@@ -44608,6 +45603,15 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44608
45603
  };
44609
45604
  Returns: import("../integrations/supabase/types").Json;
44610
45605
  };
45606
+ logistics_resolve_pick_document: {
45607
+ Args: {
45608
+ _is_herprint: boolean;
45609
+ _queue_item_id: string;
45610
+ _session_id: string;
45611
+ _voorbeeld: boolean;
45612
+ };
45613
+ Returns: import("../integrations/supabase/types").Json;
45614
+ };
44611
45615
  logistics_resolve_settings: {
44612
45616
  Args: {
44613
45617
  p_config_id: string;
@@ -45048,6 +46052,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
45048
46052
  };
45049
46053
  pick_enqueue_print_job: {
45050
46054
  Args: {
46055
+ _is_herprint?: boolean;
45051
46056
  _printer_id?: string;
45052
46057
  _queue_item_id: string;
45053
46058
  _session_id?: string;
@@ -45061,6 +46066,13 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
45061
46066
  };
45062
46067
  Returns: import("../integrations/supabase/types").Json;
45063
46068
  };
46069
+ pick_preview_job: {
46070
+ Args: {
46071
+ _queue_item_id: string;
46072
+ _station_slug: string;
46073
+ };
46074
+ Returns: import("../integrations/supabase/types").Json;
46075
+ };
45064
46076
  pick_print_job_status: {
45065
46077
  Args: {
45066
46078
  _job_id: string;
@@ -45075,6 +46087,10 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
45075
46087
  omschrijving: string;
45076
46088
  }[];
45077
46089
  };
46090
+ pick_reference_data_status: {
46091
+ Args: never;
46092
+ Returns: import("../integrations/supabase/types").Json;
46093
+ };
45078
46094
  pick_release_expired_locks: {
45079
46095
  Args: never;
45080
46096
  Returns: number;
@@ -45139,6 +46155,10 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
45139
46155
  isSetofReturn: false;
45140
46156
  };
45141
46157
  };
46158
+ pick_seed_reference_data: {
46159
+ Args: never;
46160
+ Returns: import("../integrations/supabase/types").Json;
46161
+ };
45142
46162
  pick_set_station_print_plek: {
45143
46163
  Args: {
45144
46164
  _print_plek_id: string;
@@ -45230,6 +46250,24 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
45230
46250
  };
45231
46251
  Returns: undefined;
45232
46252
  };
46253
+ print_preview_toestaan: {
46254
+ Args: {
46255
+ _max?: number;
46256
+ _queue_item_id: string;
46257
+ _station_slug: string;
46258
+ _venster_sec?: number;
46259
+ };
46260
+ Returns: import("../integrations/supabase/types").Json;
46261
+ };
46262
+ print_preview_weiger: {
46263
+ Args: {
46264
+ _code: string;
46265
+ _queue_item_id: string;
46266
+ _reden: string;
46267
+ _station_slug: string;
46268
+ };
46269
+ Returns: undefined;
46270
+ };
45233
46271
  process_logistics_event: {
45234
46272
  Args: {
45235
46273
  p_event_id: string;
@@ -45347,6 +46385,14 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
45347
46385
  };
45348
46386
  Returns: undefined;
45349
46387
  };
46388
+ replace_order_carts: {
46389
+ Args: {
46390
+ p_buffer_id: string;
46391
+ p_carts: import("../integrations/supabase/types").Json;
46392
+ p_order_id: string;
46393
+ };
46394
+ Returns: import("../integrations/supabase/types").Json;
46395
+ };
45350
46396
  reset_floriday_sync_cursor: {
45351
46397
  Args: {
45352
46398
  p_connection_id: string;
@@ -45376,6 +46422,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
45376
46422
  };
45377
46423
  Returns: string;
45378
46424
  };
46425
+ resolve_print_job_printer_id: {
46426
+ Args: {
46427
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
46428
+ };
46429
+ Returns: string;
46430
+ };
45379
46431
  resolve_product_id_for_item: {
45380
46432
  Args: {
45381
46433
  p_product_name: string;
@@ -45967,7 +47019,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
45967
47019
  };
45968
47020
  CompositeTypes: { [_ in never]: never; };
45969
47021
  }, {
45970
- PostgrestVersion: "14.17";
47022
+ PostgrestVersion: "14.5";
45971
47023
  }>;
45972
47024
  userId: string;
45973
47025
  claims: import("@supabase/auth-js").JwtPayload;
@@ -56667,6 +57719,243 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
56667
57719
  };
56668
57720
  Relationships: [];
56669
57721
  };
57722
+ maps_addresses: {
57723
+ Row: {
57724
+ address_hash: string;
57725
+ created_at: string;
57726
+ error_reason: string | null;
57727
+ formatted_address: string | null;
57728
+ id: string;
57729
+ lat: number | null;
57730
+ lng: number | null;
57731
+ place_id: string | null;
57732
+ raw_address: string;
57733
+ resolved_at: string | null;
57734
+ status: string;
57735
+ updated_at: string;
57736
+ };
57737
+ Insert: {
57738
+ address_hash: string;
57739
+ created_at?: string;
57740
+ error_reason?: string | null;
57741
+ formatted_address?: string | null;
57742
+ id?: string;
57743
+ lat?: number | null;
57744
+ lng?: number | null;
57745
+ place_id?: string | null;
57746
+ raw_address: string;
57747
+ resolved_at?: string | null;
57748
+ status?: string;
57749
+ updated_at?: string;
57750
+ };
57751
+ Update: {
57752
+ address_hash?: string;
57753
+ created_at?: string;
57754
+ error_reason?: string | null;
57755
+ formatted_address?: string | null;
57756
+ id?: string;
57757
+ lat?: number | null;
57758
+ lng?: number | null;
57759
+ place_id?: string | null;
57760
+ raw_address?: string;
57761
+ resolved_at?: string | null;
57762
+ status?: string;
57763
+ updated_at?: string;
57764
+ };
57765
+ Relationships: [];
57766
+ };
57767
+ maps_job_lease: {
57768
+ Row: {
57769
+ job: string;
57770
+ locked_until: string;
57771
+ updated_at: string;
57772
+ };
57773
+ Insert: {
57774
+ job: string;
57775
+ locked_until?: string;
57776
+ updated_at?: string;
57777
+ };
57778
+ Update: {
57779
+ job?: string;
57780
+ locked_until?: string;
57781
+ updated_at?: string;
57782
+ };
57783
+ Relationships: [];
57784
+ };
57785
+ maps_request_queue: {
57786
+ Row: {
57787
+ attempts: number;
57788
+ created_at: string;
57789
+ destination_hash: string | null;
57790
+ id: string;
57791
+ kind: string;
57792
+ last_error: string | null;
57793
+ mode: string;
57794
+ origin_hash: string | null;
57795
+ processed_at: string | null;
57796
+ raw_destination: string | null;
57797
+ raw_origin: string | null;
57798
+ requested_by: string | null;
57799
+ status: string;
57800
+ updated_at: string;
57801
+ };
57802
+ Insert: {
57803
+ attempts?: number;
57804
+ created_at?: string;
57805
+ destination_hash?: string | null;
57806
+ id?: string;
57807
+ kind: string;
57808
+ last_error?: string | null;
57809
+ mode?: string;
57810
+ origin_hash?: string | null;
57811
+ processed_at?: string | null;
57812
+ raw_destination?: string | null;
57813
+ raw_origin?: string | null;
57814
+ requested_by?: string | null;
57815
+ status?: string;
57816
+ updated_at?: string;
57817
+ };
57818
+ Update: {
57819
+ attempts?: number;
57820
+ created_at?: string;
57821
+ destination_hash?: string | null;
57822
+ id?: string;
57823
+ kind?: string;
57824
+ last_error?: string | null;
57825
+ mode?: string;
57826
+ origin_hash?: string | null;
57827
+ processed_at?: string | null;
57828
+ raw_destination?: string | null;
57829
+ raw_origin?: string | null;
57830
+ requested_by?: string | null;
57831
+ status?: string;
57832
+ updated_at?: string;
57833
+ };
57834
+ Relationships: [];
57835
+ };
57836
+ maps_settings: {
57837
+ Row: {
57838
+ allow_estimate_fallback: boolean;
57839
+ cache_ttl_days: number;
57840
+ created_at: string;
57841
+ daily_call_limit: number;
57842
+ id: string;
57843
+ last_error: string | null;
57844
+ last_error_at: string | null;
57845
+ last_success_at: string | null;
57846
+ provider: string;
57847
+ updated_at: string;
57848
+ };
57849
+ Insert: {
57850
+ allow_estimate_fallback?: boolean;
57851
+ cache_ttl_days?: number;
57852
+ created_at?: string;
57853
+ daily_call_limit?: number;
57854
+ id?: string;
57855
+ last_error?: string | null;
57856
+ last_error_at?: string | null;
57857
+ last_success_at?: string | null;
57858
+ provider?: string;
57859
+ updated_at?: string;
57860
+ };
57861
+ Update: {
57862
+ allow_estimate_fallback?: boolean;
57863
+ cache_ttl_days?: number;
57864
+ created_at?: string;
57865
+ daily_call_limit?: number;
57866
+ id?: string;
57867
+ last_error?: string | null;
57868
+ last_error_at?: string | null;
57869
+ last_success_at?: string | null;
57870
+ provider?: string;
57871
+ updated_at?: string;
57872
+ };
57873
+ Relationships: [];
57874
+ };
57875
+ maps_travel_times: {
57876
+ Row: {
57877
+ created_at: string;
57878
+ destination_id: string;
57879
+ distance_m: number | null;
57880
+ duration_sec: number;
57881
+ expires_at: string;
57882
+ id: string;
57883
+ mode: string;
57884
+ origin_id: string;
57885
+ source: string;
57886
+ updated_at: string;
57887
+ };
57888
+ Insert: {
57889
+ created_at?: string;
57890
+ destination_id: string;
57891
+ distance_m?: number | null;
57892
+ duration_sec: number;
57893
+ expires_at?: string;
57894
+ id?: string;
57895
+ mode?: string;
57896
+ origin_id: string;
57897
+ source?: string;
57898
+ updated_at?: string;
57899
+ };
57900
+ Update: {
57901
+ created_at?: string;
57902
+ destination_id?: string;
57903
+ distance_m?: number | null;
57904
+ duration_sec?: number;
57905
+ expires_at?: string;
57906
+ id?: string;
57907
+ mode?: string;
57908
+ origin_id?: string;
57909
+ source?: string;
57910
+ updated_at?: string;
57911
+ };
57912
+ Relationships: [{
57913
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
57914
+ columns: ["destination_id"];
57915
+ isOneToOne: false;
57916
+ referencedRelation: "maps_addresses";
57917
+ referencedColumns: ["id"];
57918
+ }, {
57919
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
57920
+ columns: ["origin_id"];
57921
+ isOneToOne: false;
57922
+ referencedRelation: "maps_addresses";
57923
+ referencedColumns: ["id"];
57924
+ }];
57925
+ };
57926
+ maps_usage_log: {
57927
+ Row: {
57928
+ cache_hits: number;
57929
+ call_type: string;
57930
+ created_at: string;
57931
+ day: string;
57932
+ detail: string | null;
57933
+ elements: number;
57934
+ id: string;
57935
+ outcome: string;
57936
+ };
57937
+ Insert: {
57938
+ cache_hits?: number;
57939
+ call_type: string;
57940
+ created_at?: string;
57941
+ day?: string;
57942
+ detail?: string | null;
57943
+ elements?: number;
57944
+ id?: string;
57945
+ outcome?: string;
57946
+ };
57947
+ Update: {
57948
+ cache_hits?: number;
57949
+ call_type?: string;
57950
+ created_at?: string;
57951
+ day?: string;
57952
+ detail?: string | null;
57953
+ elements?: number;
57954
+ id?: string;
57955
+ outcome?: string;
57956
+ };
57957
+ Relationships: [];
57958
+ };
56670
57959
  material_usage: {
56671
57960
  Row: {
56672
57961
  created_at: string;
@@ -59316,6 +60605,39 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59316
60605
  };
59317
60606
  Relationships: [];
59318
60607
  };
60608
+ print_dedupe_events: {
60609
+ Row: {
60610
+ bestaande_job_id: string | null;
60611
+ created_at: string;
60612
+ detail: string | null;
60613
+ documentnaam: string | null;
60614
+ documenttype: string | null;
60615
+ id: string;
60616
+ idempotentie_sleutel: string;
60617
+ reden: string;
60618
+ };
60619
+ Insert: {
60620
+ bestaande_job_id?: string | null;
60621
+ created_at?: string;
60622
+ detail?: string | null;
60623
+ documentnaam?: string | null;
60624
+ documenttype?: string | null;
60625
+ id?: string;
60626
+ idempotentie_sleutel: string;
60627
+ reden: string;
60628
+ };
60629
+ Update: {
60630
+ bestaande_job_id?: string | null;
60631
+ created_at?: string;
60632
+ detail?: string | null;
60633
+ documentnaam?: string | null;
60634
+ documenttype?: string | null;
60635
+ id?: string;
60636
+ idempotentie_sleutel?: string;
60637
+ reden?: string;
60638
+ };
60639
+ Relationships: [];
60640
+ };
59319
60641
  print_job_logs: {
59320
60642
  Row: {
59321
60643
  created_at: string;
@@ -59357,6 +60679,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59357
60679
  foutmelding: string | null;
59358
60680
  gebruiker_id: string | null;
59359
60681
  gebruiker_naam: string;
60682
+ gebruikte_bron: string | null;
60683
+ gebruikte_layout_id: string | null;
59360
60684
  gestart_op: string | null;
59361
60685
  herkomst: string | null;
59362
60686
  id: string;
@@ -59364,6 +60688,9 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59364
60688
  is_herprint: boolean;
59365
60689
  kopieen: number;
59366
60690
  layout_id: string | null;
60691
+ lokaal_opgeslagen_op: string | null;
60692
+ lokale_pdf_fout: string | null;
60693
+ lokale_pdf_status: string | null;
59367
60694
  opgepakt_op: string | null;
59368
60695
  paginas: number;
59369
60696
  payload: import("../integrations/supabase/types").Json;
@@ -59372,6 +60699,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59372
60699
  pogingen: number;
59373
60700
  printer_id: string | null;
59374
60701
  render_html: string | null;
60702
+ resultaat_pdf_base64: string | null;
59375
60703
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
59376
60704
  updated_at: string;
59377
60705
  volgende_poging: string | null;
@@ -59387,6 +60715,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59387
60715
  foutmelding?: string | null;
59388
60716
  gebruiker_id?: string | null;
59389
60717
  gebruiker_naam?: string;
60718
+ gebruikte_bron?: string | null;
60719
+ gebruikte_layout_id?: string | null;
59390
60720
  gestart_op?: string | null;
59391
60721
  herkomst?: string | null;
59392
60722
  id?: string;
@@ -59394,6 +60724,9 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59394
60724
  is_herprint?: boolean;
59395
60725
  kopieen?: number;
59396
60726
  layout_id?: string | null;
60727
+ lokaal_opgeslagen_op?: string | null;
60728
+ lokale_pdf_fout?: string | null;
60729
+ lokale_pdf_status?: string | null;
59397
60730
  opgepakt_op?: string | null;
59398
60731
  paginas?: number;
59399
60732
  payload?: import("../integrations/supabase/types").Json;
@@ -59402,6 +60735,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59402
60735
  pogingen?: number;
59403
60736
  printer_id?: string | null;
59404
60737
  render_html?: string | null;
60738
+ resultaat_pdf_base64?: string | null;
59405
60739
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
59406
60740
  updated_at?: string;
59407
60741
  volgende_poging?: string | null;
@@ -59417,6 +60751,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59417
60751
  foutmelding?: string | null;
59418
60752
  gebruiker_id?: string | null;
59419
60753
  gebruiker_naam?: string;
60754
+ gebruikte_bron?: string | null;
60755
+ gebruikte_layout_id?: string | null;
59420
60756
  gestart_op?: string | null;
59421
60757
  herkomst?: string | null;
59422
60758
  id?: string;
@@ -59424,6 +60760,9 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59424
60760
  is_herprint?: boolean;
59425
60761
  kopieen?: number;
59426
60762
  layout_id?: string | null;
60763
+ lokaal_opgeslagen_op?: string | null;
60764
+ lokale_pdf_fout?: string | null;
60765
+ lokale_pdf_status?: string | null;
59427
60766
  opgepakt_op?: string | null;
59428
60767
  paginas?: number;
59429
60768
  payload?: import("../integrations/supabase/types").Json;
@@ -59432,6 +60771,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59432
60771
  pogingen?: number;
59433
60772
  printer_id?: string | null;
59434
60773
  render_html?: string | null;
60774
+ resultaat_pdf_base64?: string | null;
59435
60775
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
59436
60776
  updated_at?: string;
59437
60777
  volgende_poging?: string | null;
@@ -59550,6 +60890,39 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59550
60890
  };
59551
60891
  Relationships: [];
59552
60892
  };
60893
+ print_preview_events: {
60894
+ Row: {
60895
+ code: string | null;
60896
+ created_at: string;
60897
+ detail: import("../integrations/supabase/types").Json;
60898
+ id: string;
60899
+ queue_item_id: string | null;
60900
+ reden: string | null;
60901
+ station_slug: string | null;
60902
+ uitkomst: string;
60903
+ };
60904
+ Insert: {
60905
+ code?: string | null;
60906
+ created_at?: string;
60907
+ detail?: import("../integrations/supabase/types").Json;
60908
+ id?: string;
60909
+ queue_item_id?: string | null;
60910
+ reden?: string | null;
60911
+ station_slug?: string | null;
60912
+ uitkomst?: string;
60913
+ };
60914
+ Update: {
60915
+ code?: string | null;
60916
+ created_at?: string;
60917
+ detail?: import("../integrations/supabase/types").Json;
60918
+ id?: string;
60919
+ queue_item_id?: string | null;
60920
+ reden?: string | null;
60921
+ station_slug?: string | null;
60922
+ uitkomst?: string;
60923
+ };
60924
+ Relationships: [];
60925
+ };
59553
60926
  print_queue_runners: {
59554
60927
  Row: {
59555
60928
  actief: boolean;
@@ -59777,6 +61150,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59777
61150
  created_at: string;
59778
61151
  driver: string;
59779
61152
  extern_printer_id: string | null;
61153
+ formaten_bijgewerkt_op: string | null;
59780
61154
  id: string;
59781
61155
  ip_adres: string | null;
59782
61156
  laatst_gezien: string | null;
@@ -59784,8 +61158,11 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59784
61158
  merk: string;
59785
61159
  naam: string;
59786
61160
  omschrijving: string;
61161
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
61162
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
59787
61163
  online: boolean;
59788
61164
  papierformaat: string;
61165
+ pdf_map: string | null;
59789
61166
  poort: number | null;
59790
61167
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
59791
61168
  systeemnaam: string;
@@ -59799,6 +61176,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59799
61176
  created_at?: string;
59800
61177
  driver?: string;
59801
61178
  extern_printer_id?: string | null;
61179
+ formaten_bijgewerkt_op?: string | null;
59802
61180
  id?: string;
59803
61181
  ip_adres?: string | null;
59804
61182
  laatst_gezien?: string | null;
@@ -59806,8 +61184,11 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59806
61184
  merk?: string;
59807
61185
  naam: string;
59808
61186
  omschrijving?: string;
61187
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
61188
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
59809
61189
  online?: boolean;
59810
61190
  papierformaat?: string;
61191
+ pdf_map?: string | null;
59811
61192
  poort?: number | null;
59812
61193
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
59813
61194
  systeemnaam?: string;
@@ -59821,6 +61202,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59821
61202
  created_at?: string;
59822
61203
  driver?: string;
59823
61204
  extern_printer_id?: string | null;
61205
+ formaten_bijgewerkt_op?: string | null;
59824
61206
  id?: string;
59825
61207
  ip_adres?: string | null;
59826
61208
  laatst_gezien?: string | null;
@@ -59828,8 +61210,11 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
59828
61210
  merk?: string;
59829
61211
  naam?: string;
59830
61212
  omschrijving?: string;
61213
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
61214
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
59831
61215
  online?: boolean;
59832
61216
  papierformaat?: string;
61217
+ pdf_map?: string | null;
59833
61218
  poort?: number | null;
59834
61219
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
59835
61220
  systeemnaam?: string;
@@ -66077,6 +67462,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66077
67462
  foutmelding: string | null;
66078
67463
  gebruiker_id: string | null;
66079
67464
  gebruiker_naam: string;
67465
+ gebruikte_bron: string | null;
67466
+ gebruikte_layout_id: string | null;
66080
67467
  gestart_op: string | null;
66081
67468
  herkomst: string | null;
66082
67469
  id: string;
@@ -66084,6 +67471,9 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66084
67471
  is_herprint: boolean;
66085
67472
  kopieen: number;
66086
67473
  layout_id: string | null;
67474
+ lokaal_opgeslagen_op: string | null;
67475
+ lokale_pdf_fout: string | null;
67476
+ lokale_pdf_status: string | null;
66087
67477
  opgepakt_op: string | null;
66088
67478
  paginas: number;
66089
67479
  payload: import("../integrations/supabase/types").Json;
@@ -66092,6 +67482,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66092
67482
  pogingen: number;
66093
67483
  printer_id: string | null;
66094
67484
  render_html: string | null;
67485
+ resultaat_pdf_base64: string | null;
66095
67486
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
66096
67487
  updated_at: string;
66097
67488
  volgende_poging: string | null;
@@ -66183,6 +67574,53 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66183
67574
  isSetofReturn: true;
66184
67575
  };
66185
67576
  };
67577
+ claim_pdf_print_jobs: {
67578
+ Args: {
67579
+ _max?: number;
67580
+ };
67581
+ Returns: {
67582
+ agent_id: string | null;
67583
+ bron_job_id: string | null;
67584
+ created_at: string;
67585
+ documentnaam: string;
67586
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
67587
+ extern_job_id: string | null;
67588
+ foutmelding: string | null;
67589
+ gebruiker_id: string | null;
67590
+ gebruiker_naam: string;
67591
+ gebruikte_bron: string | null;
67592
+ gebruikte_layout_id: string | null;
67593
+ gestart_op: string | null;
67594
+ herkomst: string | null;
67595
+ id: string;
67596
+ idempotentie_sleutel: string | null;
67597
+ is_herprint: boolean;
67598
+ kopieen: number;
67599
+ layout_id: string | null;
67600
+ lokaal_opgeslagen_op: string | null;
67601
+ lokale_pdf_fout: string | null;
67602
+ lokale_pdf_status: string | null;
67603
+ opgepakt_op: string | null;
67604
+ paginas: number;
67605
+ payload: import("../integrations/supabase/types").Json;
67606
+ pdf_base64: string | null;
67607
+ pdf_url: string | null;
67608
+ pogingen: number;
67609
+ printer_id: string | null;
67610
+ render_html: string | null;
67611
+ resultaat_pdf_base64: string | null;
67612
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67613
+ updated_at: string;
67614
+ volgende_poging: string | null;
67615
+ voltooid_op: string | null;
67616
+ }[];
67617
+ SetofOptions: {
67618
+ from: "*";
67619
+ to: "print_jobs";
67620
+ isOneToOne: false;
67621
+ isSetofReturn: true;
67622
+ };
67623
+ };
66186
67624
  claim_print_jobs: {
66187
67625
  Args: {
66188
67626
  _agent_id: string;
@@ -66198,6 +67636,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66198
67636
  foutmelding: string | null;
66199
67637
  gebruiker_id: string | null;
66200
67638
  gebruiker_naam: string;
67639
+ gebruikte_bron: string | null;
67640
+ gebruikte_layout_id: string | null;
66201
67641
  gestart_op: string | null;
66202
67642
  herkomst: string | null;
66203
67643
  id: string;
@@ -66205,6 +67645,9 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66205
67645
  is_herprint: boolean;
66206
67646
  kopieen: number;
66207
67647
  layout_id: string | null;
67648
+ lokaal_opgeslagen_op: string | null;
67649
+ lokale_pdf_fout: string | null;
67650
+ lokale_pdf_status: string | null;
66208
67651
  opgepakt_op: string | null;
66209
67652
  paginas: number;
66210
67653
  payload: import("../integrations/supabase/types").Json;
@@ -66213,6 +67656,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66213
67656
  pogingen: number;
66214
67657
  printer_id: string | null;
66215
67658
  render_html: string | null;
67659
+ resultaat_pdf_base64: string | null;
66216
67660
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
66217
67661
  updated_at: string;
66218
67662
  volgende_poging: string | null;
@@ -66353,6 +67797,8 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
66353
67797
  order_id: string;
66354
67798
  order_source: string;
66355
67799
  pick_date: string;
67800
+ printed_at: string;
67801
+ printed_today: boolean;
66356
67802
  status: string;
66357
67803
  }[];
66358
67804
  };
@@ -67061,6 +68507,10 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
67061
68507
  };
67062
68508
  Returns: number;
67063
68509
  };
68510
+ logistics_cancel_orphan_tasks: {
68511
+ Args: never;
68512
+ Returns: number;
68513
+ };
67064
68514
  logistics_capacity_day_check: {
67065
68515
  Args: {
67066
68516
  p_from?: string;
@@ -67081,6 +68531,25 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
67081
68531
  };
67082
68532
  Returns: number;
67083
68533
  };
68534
+ logistics_cart_index: {
68535
+ Args: {
68536
+ p_from?: string;
68537
+ p_to?: string;
68538
+ };
68539
+ Returns: {
68540
+ cart_id: string;
68541
+ cart_index: number;
68542
+ cart_label: string;
68543
+ is_shared: boolean;
68544
+ order_number: string;
68545
+ order_source: string;
68546
+ order_uuid: string;
68547
+ pick_date: string;
68548
+ printed_at: string;
68549
+ shifted: boolean;
68550
+ task_status: string;
68551
+ }[];
68552
+ };
67084
68553
  logistics_check_order_allowed: {
67085
68554
  Args: {
67086
68555
  p_lines: import("../integrations/supabase/types").Json;
@@ -67229,6 +68698,17 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
67229
68698
  isSetofReturn: false;
67230
68699
  };
67231
68700
  };
68701
+ logistics_consistency_check: {
68702
+ Args: never;
68703
+ Returns: {
68704
+ agenda_carts: number;
68705
+ control_carts: number;
68706
+ ok: boolean;
68707
+ orphan_tasks: number;
68708
+ pick_date: string;
68709
+ raw_carts: number;
68710
+ }[];
68711
+ };
67232
68712
  logistics_delay_customer_email: {
67233
68713
  Args: {
67234
68714
  p_customer: string;
@@ -67254,6 +68734,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
67254
68734
  };
67255
68735
  Returns: string;
67256
68736
  };
68737
+ logistics_document_type_map: {
68738
+ Args: {
68739
+ _document_code: string;
68740
+ };
68741
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
68742
+ };
67257
68743
  logistics_emit_event: {
67258
68744
  Args: {
67259
68745
  p_event_type: string;
@@ -67416,6 +68902,25 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
67416
68902
  };
67417
68903
  Returns: number;
67418
68904
  };
68905
+ logistics_order_overview: {
68906
+ Args: {
68907
+ p_from?: string;
68908
+ p_to?: string;
68909
+ };
68910
+ Returns: {
68911
+ cart_count: number;
68912
+ customer_name: string;
68913
+ delivery_date: string;
68914
+ order_number: string;
68915
+ order_source: string;
68916
+ order_uuid: string;
68917
+ pick_date: string;
68918
+ plant_count: number;
68919
+ printed_at: string;
68920
+ shifted: boolean;
68921
+ status: string;
68922
+ }[];
68923
+ };
67419
68924
  logistics_order_pick_day: {
67420
68925
  Args: {
67421
68926
  p_order_ref: string;
@@ -67428,6 +68933,22 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
67428
68933
  };
67429
68934
  Returns: string;
67430
68935
  };
68936
+ logistics_pick_agenda: {
68937
+ Args: {
68938
+ p_from?: string;
68939
+ p_to?: string;
68940
+ };
68941
+ Returns: {
68942
+ cart_count: number;
68943
+ in_preparation: number;
68944
+ order_count: number;
68945
+ orders: import("../integrations/supabase/types").Json;
68946
+ pick_date: string;
68947
+ plant_count: number;
68948
+ ready: number;
68949
+ shifted_count: number;
68950
+ }[];
68951
+ };
67431
68952
  logistics_pick_email_purpose: {
67432
68953
  Args: never;
67433
68954
  Returns: string;
@@ -67587,6 +69108,15 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
67587
69108
  };
67588
69109
  Returns: import("../integrations/supabase/types").Json;
67589
69110
  };
69111
+ logistics_resolve_pick_document: {
69112
+ Args: {
69113
+ _is_herprint: boolean;
69114
+ _queue_item_id: string;
69115
+ _session_id: string;
69116
+ _voorbeeld: boolean;
69117
+ };
69118
+ Returns: import("../integrations/supabase/types").Json;
69119
+ };
67590
69120
  logistics_resolve_settings: {
67591
69121
  Args: {
67592
69122
  p_config_id: string;
@@ -68027,6 +69557,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
68027
69557
  };
68028
69558
  pick_enqueue_print_job: {
68029
69559
  Args: {
69560
+ _is_herprint?: boolean;
68030
69561
  _printer_id?: string;
68031
69562
  _queue_item_id: string;
68032
69563
  _session_id?: string;
@@ -68040,6 +69571,13 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
68040
69571
  };
68041
69572
  Returns: import("../integrations/supabase/types").Json;
68042
69573
  };
69574
+ pick_preview_job: {
69575
+ Args: {
69576
+ _queue_item_id: string;
69577
+ _station_slug: string;
69578
+ };
69579
+ Returns: import("../integrations/supabase/types").Json;
69580
+ };
68043
69581
  pick_print_job_status: {
68044
69582
  Args: {
68045
69583
  _job_id: string;
@@ -68054,6 +69592,10 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
68054
69592
  omschrijving: string;
68055
69593
  }[];
68056
69594
  };
69595
+ pick_reference_data_status: {
69596
+ Args: never;
69597
+ Returns: import("../integrations/supabase/types").Json;
69598
+ };
68057
69599
  pick_release_expired_locks: {
68058
69600
  Args: never;
68059
69601
  Returns: number;
@@ -68118,6 +69660,10 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
68118
69660
  isSetofReturn: false;
68119
69661
  };
68120
69662
  };
69663
+ pick_seed_reference_data: {
69664
+ Args: never;
69665
+ Returns: import("../integrations/supabase/types").Json;
69666
+ };
68121
69667
  pick_set_station_print_plek: {
68122
69668
  Args: {
68123
69669
  _print_plek_id: string;
@@ -68209,6 +69755,24 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
68209
69755
  };
68210
69756
  Returns: undefined;
68211
69757
  };
69758
+ print_preview_toestaan: {
69759
+ Args: {
69760
+ _max?: number;
69761
+ _queue_item_id: string;
69762
+ _station_slug: string;
69763
+ _venster_sec?: number;
69764
+ };
69765
+ Returns: import("../integrations/supabase/types").Json;
69766
+ };
69767
+ print_preview_weiger: {
69768
+ Args: {
69769
+ _code: string;
69770
+ _queue_item_id: string;
69771
+ _reden: string;
69772
+ _station_slug: string;
69773
+ };
69774
+ Returns: undefined;
69775
+ };
68212
69776
  process_logistics_event: {
68213
69777
  Args: {
68214
69778
  p_event_id: string;
@@ -68326,6 +69890,14 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
68326
69890
  };
68327
69891
  Returns: undefined;
68328
69892
  };
69893
+ replace_order_carts: {
69894
+ Args: {
69895
+ p_buffer_id: string;
69896
+ p_carts: import("../integrations/supabase/types").Json;
69897
+ p_order_id: string;
69898
+ };
69899
+ Returns: import("../integrations/supabase/types").Json;
69900
+ };
68329
69901
  reset_floriday_sync_cursor: {
68330
69902
  Args: {
68331
69903
  p_connection_id: string;
@@ -68355,6 +69927,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
68355
69927
  };
68356
69928
  Returns: string;
68357
69929
  };
69930
+ resolve_print_job_printer_id: {
69931
+ Args: {
69932
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
69933
+ };
69934
+ Returns: string;
69935
+ };
68358
69936
  resolve_product_id_for_item: {
68359
69937
  Args: {
68360
69938
  p_product_name: string;
@@ -68946,7 +70524,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
68946
70524
  };
68947
70525
  CompositeTypes: { [_ in never]: never; };
68948
70526
  }, {
68949
- PostgrestVersion: "14.17";
70527
+ PostgrestVersion: "14.5";
68950
70528
  }>;
68951
70529
  userId: string;
68952
70530
  claims: import("@supabase/auth-js").JwtPayload;
@@ -79653,6 +81231,243 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
79653
81231
  };
79654
81232
  Relationships: [];
79655
81233
  };
81234
+ maps_addresses: {
81235
+ Row: {
81236
+ address_hash: string;
81237
+ created_at: string;
81238
+ error_reason: string | null;
81239
+ formatted_address: string | null;
81240
+ id: string;
81241
+ lat: number | null;
81242
+ lng: number | null;
81243
+ place_id: string | null;
81244
+ raw_address: string;
81245
+ resolved_at: string | null;
81246
+ status: string;
81247
+ updated_at: string;
81248
+ };
81249
+ Insert: {
81250
+ address_hash: string;
81251
+ created_at?: string;
81252
+ error_reason?: string | null;
81253
+ formatted_address?: string | null;
81254
+ id?: string;
81255
+ lat?: number | null;
81256
+ lng?: number | null;
81257
+ place_id?: string | null;
81258
+ raw_address: string;
81259
+ resolved_at?: string | null;
81260
+ status?: string;
81261
+ updated_at?: string;
81262
+ };
81263
+ Update: {
81264
+ address_hash?: string;
81265
+ created_at?: string;
81266
+ error_reason?: string | null;
81267
+ formatted_address?: string | null;
81268
+ id?: string;
81269
+ lat?: number | null;
81270
+ lng?: number | null;
81271
+ place_id?: string | null;
81272
+ raw_address?: string;
81273
+ resolved_at?: string | null;
81274
+ status?: string;
81275
+ updated_at?: string;
81276
+ };
81277
+ Relationships: [];
81278
+ };
81279
+ maps_job_lease: {
81280
+ Row: {
81281
+ job: string;
81282
+ locked_until: string;
81283
+ updated_at: string;
81284
+ };
81285
+ Insert: {
81286
+ job: string;
81287
+ locked_until?: string;
81288
+ updated_at?: string;
81289
+ };
81290
+ Update: {
81291
+ job?: string;
81292
+ locked_until?: string;
81293
+ updated_at?: string;
81294
+ };
81295
+ Relationships: [];
81296
+ };
81297
+ maps_request_queue: {
81298
+ Row: {
81299
+ attempts: number;
81300
+ created_at: string;
81301
+ destination_hash: string | null;
81302
+ id: string;
81303
+ kind: string;
81304
+ last_error: string | null;
81305
+ mode: string;
81306
+ origin_hash: string | null;
81307
+ processed_at: string | null;
81308
+ raw_destination: string | null;
81309
+ raw_origin: string | null;
81310
+ requested_by: string | null;
81311
+ status: string;
81312
+ updated_at: string;
81313
+ };
81314
+ Insert: {
81315
+ attempts?: number;
81316
+ created_at?: string;
81317
+ destination_hash?: string | null;
81318
+ id?: string;
81319
+ kind: string;
81320
+ last_error?: string | null;
81321
+ mode?: string;
81322
+ origin_hash?: string | null;
81323
+ processed_at?: string | null;
81324
+ raw_destination?: string | null;
81325
+ raw_origin?: string | null;
81326
+ requested_by?: string | null;
81327
+ status?: string;
81328
+ updated_at?: string;
81329
+ };
81330
+ Update: {
81331
+ attempts?: number;
81332
+ created_at?: string;
81333
+ destination_hash?: string | null;
81334
+ id?: string;
81335
+ kind?: string;
81336
+ last_error?: string | null;
81337
+ mode?: string;
81338
+ origin_hash?: string | null;
81339
+ processed_at?: string | null;
81340
+ raw_destination?: string | null;
81341
+ raw_origin?: string | null;
81342
+ requested_by?: string | null;
81343
+ status?: string;
81344
+ updated_at?: string;
81345
+ };
81346
+ Relationships: [];
81347
+ };
81348
+ maps_settings: {
81349
+ Row: {
81350
+ allow_estimate_fallback: boolean;
81351
+ cache_ttl_days: number;
81352
+ created_at: string;
81353
+ daily_call_limit: number;
81354
+ id: string;
81355
+ last_error: string | null;
81356
+ last_error_at: string | null;
81357
+ last_success_at: string | null;
81358
+ provider: string;
81359
+ updated_at: string;
81360
+ };
81361
+ Insert: {
81362
+ allow_estimate_fallback?: boolean;
81363
+ cache_ttl_days?: number;
81364
+ created_at?: string;
81365
+ daily_call_limit?: number;
81366
+ id?: string;
81367
+ last_error?: string | null;
81368
+ last_error_at?: string | null;
81369
+ last_success_at?: string | null;
81370
+ provider?: string;
81371
+ updated_at?: string;
81372
+ };
81373
+ Update: {
81374
+ allow_estimate_fallback?: boolean;
81375
+ cache_ttl_days?: number;
81376
+ created_at?: string;
81377
+ daily_call_limit?: number;
81378
+ id?: string;
81379
+ last_error?: string | null;
81380
+ last_error_at?: string | null;
81381
+ last_success_at?: string | null;
81382
+ provider?: string;
81383
+ updated_at?: string;
81384
+ };
81385
+ Relationships: [];
81386
+ };
81387
+ maps_travel_times: {
81388
+ Row: {
81389
+ created_at: string;
81390
+ destination_id: string;
81391
+ distance_m: number | null;
81392
+ duration_sec: number;
81393
+ expires_at: string;
81394
+ id: string;
81395
+ mode: string;
81396
+ origin_id: string;
81397
+ source: string;
81398
+ updated_at: string;
81399
+ };
81400
+ Insert: {
81401
+ created_at?: string;
81402
+ destination_id: string;
81403
+ distance_m?: number | null;
81404
+ duration_sec: number;
81405
+ expires_at?: string;
81406
+ id?: string;
81407
+ mode?: string;
81408
+ origin_id: string;
81409
+ source?: string;
81410
+ updated_at?: string;
81411
+ };
81412
+ Update: {
81413
+ created_at?: string;
81414
+ destination_id?: string;
81415
+ distance_m?: number | null;
81416
+ duration_sec?: number;
81417
+ expires_at?: string;
81418
+ id?: string;
81419
+ mode?: string;
81420
+ origin_id?: string;
81421
+ source?: string;
81422
+ updated_at?: string;
81423
+ };
81424
+ Relationships: [{
81425
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
81426
+ columns: ["destination_id"];
81427
+ isOneToOne: false;
81428
+ referencedRelation: "maps_addresses";
81429
+ referencedColumns: ["id"];
81430
+ }, {
81431
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
81432
+ columns: ["origin_id"];
81433
+ isOneToOne: false;
81434
+ referencedRelation: "maps_addresses";
81435
+ referencedColumns: ["id"];
81436
+ }];
81437
+ };
81438
+ maps_usage_log: {
81439
+ Row: {
81440
+ cache_hits: number;
81441
+ call_type: string;
81442
+ created_at: string;
81443
+ day: string;
81444
+ detail: string | null;
81445
+ elements: number;
81446
+ id: string;
81447
+ outcome: string;
81448
+ };
81449
+ Insert: {
81450
+ cache_hits?: number;
81451
+ call_type: string;
81452
+ created_at?: string;
81453
+ day?: string;
81454
+ detail?: string | null;
81455
+ elements?: number;
81456
+ id?: string;
81457
+ outcome?: string;
81458
+ };
81459
+ Update: {
81460
+ cache_hits?: number;
81461
+ call_type?: string;
81462
+ created_at?: string;
81463
+ day?: string;
81464
+ detail?: string | null;
81465
+ elements?: number;
81466
+ id?: string;
81467
+ outcome?: string;
81468
+ };
81469
+ Relationships: [];
81470
+ };
79656
81471
  material_usage: {
79657
81472
  Row: {
79658
81473
  created_at: string;
@@ -82302,6 +84117,39 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82302
84117
  };
82303
84118
  Relationships: [];
82304
84119
  };
84120
+ print_dedupe_events: {
84121
+ Row: {
84122
+ bestaande_job_id: string | null;
84123
+ created_at: string;
84124
+ detail: string | null;
84125
+ documentnaam: string | null;
84126
+ documenttype: string | null;
84127
+ id: string;
84128
+ idempotentie_sleutel: string;
84129
+ reden: string;
84130
+ };
84131
+ Insert: {
84132
+ bestaande_job_id?: string | null;
84133
+ created_at?: string;
84134
+ detail?: string | null;
84135
+ documentnaam?: string | null;
84136
+ documenttype?: string | null;
84137
+ id?: string;
84138
+ idempotentie_sleutel: string;
84139
+ reden: string;
84140
+ };
84141
+ Update: {
84142
+ bestaande_job_id?: string | null;
84143
+ created_at?: string;
84144
+ detail?: string | null;
84145
+ documentnaam?: string | null;
84146
+ documenttype?: string | null;
84147
+ id?: string;
84148
+ idempotentie_sleutel?: string;
84149
+ reden?: string;
84150
+ };
84151
+ Relationships: [];
84152
+ };
82305
84153
  print_job_logs: {
82306
84154
  Row: {
82307
84155
  created_at: string;
@@ -82343,6 +84191,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82343
84191
  foutmelding: string | null;
82344
84192
  gebruiker_id: string | null;
82345
84193
  gebruiker_naam: string;
84194
+ gebruikte_bron: string | null;
84195
+ gebruikte_layout_id: string | null;
82346
84196
  gestart_op: string | null;
82347
84197
  herkomst: string | null;
82348
84198
  id: string;
@@ -82350,6 +84200,9 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82350
84200
  is_herprint: boolean;
82351
84201
  kopieen: number;
82352
84202
  layout_id: string | null;
84203
+ lokaal_opgeslagen_op: string | null;
84204
+ lokale_pdf_fout: string | null;
84205
+ lokale_pdf_status: string | null;
82353
84206
  opgepakt_op: string | null;
82354
84207
  paginas: number;
82355
84208
  payload: import("../integrations/supabase/types").Json;
@@ -82358,6 +84211,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82358
84211
  pogingen: number;
82359
84212
  printer_id: string | null;
82360
84213
  render_html: string | null;
84214
+ resultaat_pdf_base64: string | null;
82361
84215
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
82362
84216
  updated_at: string;
82363
84217
  volgende_poging: string | null;
@@ -82373,6 +84227,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82373
84227
  foutmelding?: string | null;
82374
84228
  gebruiker_id?: string | null;
82375
84229
  gebruiker_naam?: string;
84230
+ gebruikte_bron?: string | null;
84231
+ gebruikte_layout_id?: string | null;
82376
84232
  gestart_op?: string | null;
82377
84233
  herkomst?: string | null;
82378
84234
  id?: string;
@@ -82380,6 +84236,9 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82380
84236
  is_herprint?: boolean;
82381
84237
  kopieen?: number;
82382
84238
  layout_id?: string | null;
84239
+ lokaal_opgeslagen_op?: string | null;
84240
+ lokale_pdf_fout?: string | null;
84241
+ lokale_pdf_status?: string | null;
82383
84242
  opgepakt_op?: string | null;
82384
84243
  paginas?: number;
82385
84244
  payload?: import("../integrations/supabase/types").Json;
@@ -82388,6 +84247,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82388
84247
  pogingen?: number;
82389
84248
  printer_id?: string | null;
82390
84249
  render_html?: string | null;
84250
+ resultaat_pdf_base64?: string | null;
82391
84251
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
82392
84252
  updated_at?: string;
82393
84253
  volgende_poging?: string | null;
@@ -82403,6 +84263,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82403
84263
  foutmelding?: string | null;
82404
84264
  gebruiker_id?: string | null;
82405
84265
  gebruiker_naam?: string;
84266
+ gebruikte_bron?: string | null;
84267
+ gebruikte_layout_id?: string | null;
82406
84268
  gestart_op?: string | null;
82407
84269
  herkomst?: string | null;
82408
84270
  id?: string;
@@ -82410,6 +84272,9 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82410
84272
  is_herprint?: boolean;
82411
84273
  kopieen?: number;
82412
84274
  layout_id?: string | null;
84275
+ lokaal_opgeslagen_op?: string | null;
84276
+ lokale_pdf_fout?: string | null;
84277
+ lokale_pdf_status?: string | null;
82413
84278
  opgepakt_op?: string | null;
82414
84279
  paginas?: number;
82415
84280
  payload?: import("../integrations/supabase/types").Json;
@@ -82418,6 +84283,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82418
84283
  pogingen?: number;
82419
84284
  printer_id?: string | null;
82420
84285
  render_html?: string | null;
84286
+ resultaat_pdf_base64?: string | null;
82421
84287
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
82422
84288
  updated_at?: string;
82423
84289
  volgende_poging?: string | null;
@@ -82536,6 +84402,39 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82536
84402
  };
82537
84403
  Relationships: [];
82538
84404
  };
84405
+ print_preview_events: {
84406
+ Row: {
84407
+ code: string | null;
84408
+ created_at: string;
84409
+ detail: import("../integrations/supabase/types").Json;
84410
+ id: string;
84411
+ queue_item_id: string | null;
84412
+ reden: string | null;
84413
+ station_slug: string | null;
84414
+ uitkomst: string;
84415
+ };
84416
+ Insert: {
84417
+ code?: string | null;
84418
+ created_at?: string;
84419
+ detail?: import("../integrations/supabase/types").Json;
84420
+ id?: string;
84421
+ queue_item_id?: string | null;
84422
+ reden?: string | null;
84423
+ station_slug?: string | null;
84424
+ uitkomst?: string;
84425
+ };
84426
+ Update: {
84427
+ code?: string | null;
84428
+ created_at?: string;
84429
+ detail?: import("../integrations/supabase/types").Json;
84430
+ id?: string;
84431
+ queue_item_id?: string | null;
84432
+ reden?: string | null;
84433
+ station_slug?: string | null;
84434
+ uitkomst?: string;
84435
+ };
84436
+ Relationships: [];
84437
+ };
82539
84438
  print_queue_runners: {
82540
84439
  Row: {
82541
84440
  actief: boolean;
@@ -82763,6 +84662,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82763
84662
  created_at: string;
82764
84663
  driver: string;
82765
84664
  extern_printer_id: string | null;
84665
+ formaten_bijgewerkt_op: string | null;
82766
84666
  id: string;
82767
84667
  ip_adres: string | null;
82768
84668
  laatst_gezien: string | null;
@@ -82770,8 +84670,11 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82770
84670
  merk: string;
82771
84671
  naam: string;
82772
84672
  omschrijving: string;
84673
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
84674
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
82773
84675
  online: boolean;
82774
84676
  papierformaat: string;
84677
+ pdf_map: string | null;
82775
84678
  poort: number | null;
82776
84679
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
82777
84680
  systeemnaam: string;
@@ -82785,6 +84688,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82785
84688
  created_at?: string;
82786
84689
  driver?: string;
82787
84690
  extern_printer_id?: string | null;
84691
+ formaten_bijgewerkt_op?: string | null;
82788
84692
  id?: string;
82789
84693
  ip_adres?: string | null;
82790
84694
  laatst_gezien?: string | null;
@@ -82792,8 +84696,11 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82792
84696
  merk?: string;
82793
84697
  naam: string;
82794
84698
  omschrijving?: string;
84699
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
84700
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
82795
84701
  online?: boolean;
82796
84702
  papierformaat?: string;
84703
+ pdf_map?: string | null;
82797
84704
  poort?: number | null;
82798
84705
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
82799
84706
  systeemnaam?: string;
@@ -82807,6 +84714,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82807
84714
  created_at?: string;
82808
84715
  driver?: string;
82809
84716
  extern_printer_id?: string | null;
84717
+ formaten_bijgewerkt_op?: string | null;
82810
84718
  id?: string;
82811
84719
  ip_adres?: string | null;
82812
84720
  laatst_gezien?: string | null;
@@ -82814,8 +84722,11 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
82814
84722
  merk?: string;
82815
84723
  naam?: string;
82816
84724
  omschrijving?: string;
84725
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
84726
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
82817
84727
  online?: boolean;
82818
84728
  papierformaat?: string;
84729
+ pdf_map?: string | null;
82819
84730
  poort?: number | null;
82820
84731
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
82821
84732
  systeemnaam?: string;
@@ -89063,6 +90974,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
89063
90974
  foutmelding: string | null;
89064
90975
  gebruiker_id: string | null;
89065
90976
  gebruiker_naam: string;
90977
+ gebruikte_bron: string | null;
90978
+ gebruikte_layout_id: string | null;
89066
90979
  gestart_op: string | null;
89067
90980
  herkomst: string | null;
89068
90981
  id: string;
@@ -89070,6 +90983,9 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
89070
90983
  is_herprint: boolean;
89071
90984
  kopieen: number;
89072
90985
  layout_id: string | null;
90986
+ lokaal_opgeslagen_op: string | null;
90987
+ lokale_pdf_fout: string | null;
90988
+ lokale_pdf_status: string | null;
89073
90989
  opgepakt_op: string | null;
89074
90990
  paginas: number;
89075
90991
  payload: import("../integrations/supabase/types").Json;
@@ -89078,6 +90994,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
89078
90994
  pogingen: number;
89079
90995
  printer_id: string | null;
89080
90996
  render_html: string | null;
90997
+ resultaat_pdf_base64: string | null;
89081
90998
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
89082
90999
  updated_at: string;
89083
91000
  volgende_poging: string | null;
@@ -89169,6 +91086,53 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
89169
91086
  isSetofReturn: true;
89170
91087
  };
89171
91088
  };
91089
+ claim_pdf_print_jobs: {
91090
+ Args: {
91091
+ _max?: number;
91092
+ };
91093
+ Returns: {
91094
+ agent_id: string | null;
91095
+ bron_job_id: string | null;
91096
+ created_at: string;
91097
+ documentnaam: string;
91098
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
91099
+ extern_job_id: string | null;
91100
+ foutmelding: string | null;
91101
+ gebruiker_id: string | null;
91102
+ gebruiker_naam: string;
91103
+ gebruikte_bron: string | null;
91104
+ gebruikte_layout_id: string | null;
91105
+ gestart_op: string | null;
91106
+ herkomst: string | null;
91107
+ id: string;
91108
+ idempotentie_sleutel: string | null;
91109
+ is_herprint: boolean;
91110
+ kopieen: number;
91111
+ layout_id: string | null;
91112
+ lokaal_opgeslagen_op: string | null;
91113
+ lokale_pdf_fout: string | null;
91114
+ lokale_pdf_status: string | null;
91115
+ opgepakt_op: string | null;
91116
+ paginas: number;
91117
+ payload: import("../integrations/supabase/types").Json;
91118
+ pdf_base64: string | null;
91119
+ pdf_url: string | null;
91120
+ pogingen: number;
91121
+ printer_id: string | null;
91122
+ render_html: string | null;
91123
+ resultaat_pdf_base64: string | null;
91124
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
91125
+ updated_at: string;
91126
+ volgende_poging: string | null;
91127
+ voltooid_op: string | null;
91128
+ }[];
91129
+ SetofOptions: {
91130
+ from: "*";
91131
+ to: "print_jobs";
91132
+ isOneToOne: false;
91133
+ isSetofReturn: true;
91134
+ };
91135
+ };
89172
91136
  claim_print_jobs: {
89173
91137
  Args: {
89174
91138
  _agent_id: string;
@@ -89184,6 +91148,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
89184
91148
  foutmelding: string | null;
89185
91149
  gebruiker_id: string | null;
89186
91150
  gebruiker_naam: string;
91151
+ gebruikte_bron: string | null;
91152
+ gebruikte_layout_id: string | null;
89187
91153
  gestart_op: string | null;
89188
91154
  herkomst: string | null;
89189
91155
  id: string;
@@ -89191,6 +91157,9 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
89191
91157
  is_herprint: boolean;
89192
91158
  kopieen: number;
89193
91159
  layout_id: string | null;
91160
+ lokaal_opgeslagen_op: string | null;
91161
+ lokale_pdf_fout: string | null;
91162
+ lokale_pdf_status: string | null;
89194
91163
  opgepakt_op: string | null;
89195
91164
  paginas: number;
89196
91165
  payload: import("../integrations/supabase/types").Json;
@@ -89199,6 +91168,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
89199
91168
  pogingen: number;
89200
91169
  printer_id: string | null;
89201
91170
  render_html: string | null;
91171
+ resultaat_pdf_base64: string | null;
89202
91172
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
89203
91173
  updated_at: string;
89204
91174
  volgende_poging: string | null;
@@ -89339,6 +91309,8 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
89339
91309
  order_id: string;
89340
91310
  order_source: string;
89341
91311
  pick_date: string;
91312
+ printed_at: string;
91313
+ printed_today: boolean;
89342
91314
  status: string;
89343
91315
  }[];
89344
91316
  };
@@ -90047,6 +92019,10 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90047
92019
  };
90048
92020
  Returns: number;
90049
92021
  };
92022
+ logistics_cancel_orphan_tasks: {
92023
+ Args: never;
92024
+ Returns: number;
92025
+ };
90050
92026
  logistics_capacity_day_check: {
90051
92027
  Args: {
90052
92028
  p_from?: string;
@@ -90067,6 +92043,25 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90067
92043
  };
90068
92044
  Returns: number;
90069
92045
  };
92046
+ logistics_cart_index: {
92047
+ Args: {
92048
+ p_from?: string;
92049
+ p_to?: string;
92050
+ };
92051
+ Returns: {
92052
+ cart_id: string;
92053
+ cart_index: number;
92054
+ cart_label: string;
92055
+ is_shared: boolean;
92056
+ order_number: string;
92057
+ order_source: string;
92058
+ order_uuid: string;
92059
+ pick_date: string;
92060
+ printed_at: string;
92061
+ shifted: boolean;
92062
+ task_status: string;
92063
+ }[];
92064
+ };
90070
92065
  logistics_check_order_allowed: {
90071
92066
  Args: {
90072
92067
  p_lines: import("../integrations/supabase/types").Json;
@@ -90215,6 +92210,17 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90215
92210
  isSetofReturn: false;
90216
92211
  };
90217
92212
  };
92213
+ logistics_consistency_check: {
92214
+ Args: never;
92215
+ Returns: {
92216
+ agenda_carts: number;
92217
+ control_carts: number;
92218
+ ok: boolean;
92219
+ orphan_tasks: number;
92220
+ pick_date: string;
92221
+ raw_carts: number;
92222
+ }[];
92223
+ };
90218
92224
  logistics_delay_customer_email: {
90219
92225
  Args: {
90220
92226
  p_customer: string;
@@ -90240,6 +92246,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90240
92246
  };
90241
92247
  Returns: string;
90242
92248
  };
92249
+ logistics_document_type_map: {
92250
+ Args: {
92251
+ _document_code: string;
92252
+ };
92253
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
92254
+ };
90243
92255
  logistics_emit_event: {
90244
92256
  Args: {
90245
92257
  p_event_type: string;
@@ -90402,6 +92414,25 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90402
92414
  };
90403
92415
  Returns: number;
90404
92416
  };
92417
+ logistics_order_overview: {
92418
+ Args: {
92419
+ p_from?: string;
92420
+ p_to?: string;
92421
+ };
92422
+ Returns: {
92423
+ cart_count: number;
92424
+ customer_name: string;
92425
+ delivery_date: string;
92426
+ order_number: string;
92427
+ order_source: string;
92428
+ order_uuid: string;
92429
+ pick_date: string;
92430
+ plant_count: number;
92431
+ printed_at: string;
92432
+ shifted: boolean;
92433
+ status: string;
92434
+ }[];
92435
+ };
90405
92436
  logistics_order_pick_day: {
90406
92437
  Args: {
90407
92438
  p_order_ref: string;
@@ -90414,6 +92445,22 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90414
92445
  };
90415
92446
  Returns: string;
90416
92447
  };
92448
+ logistics_pick_agenda: {
92449
+ Args: {
92450
+ p_from?: string;
92451
+ p_to?: string;
92452
+ };
92453
+ Returns: {
92454
+ cart_count: number;
92455
+ in_preparation: number;
92456
+ order_count: number;
92457
+ orders: import("../integrations/supabase/types").Json;
92458
+ pick_date: string;
92459
+ plant_count: number;
92460
+ ready: number;
92461
+ shifted_count: number;
92462
+ }[];
92463
+ };
90417
92464
  logistics_pick_email_purpose: {
90418
92465
  Args: never;
90419
92466
  Returns: string;
@@ -90573,6 +92620,15 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90573
92620
  };
90574
92621
  Returns: import("../integrations/supabase/types").Json;
90575
92622
  };
92623
+ logistics_resolve_pick_document: {
92624
+ Args: {
92625
+ _is_herprint: boolean;
92626
+ _queue_item_id: string;
92627
+ _session_id: string;
92628
+ _voorbeeld: boolean;
92629
+ };
92630
+ Returns: import("../integrations/supabase/types").Json;
92631
+ };
90576
92632
  logistics_resolve_settings: {
90577
92633
  Args: {
90578
92634
  p_config_id: string;
@@ -91013,6 +93069,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
91013
93069
  };
91014
93070
  pick_enqueue_print_job: {
91015
93071
  Args: {
93072
+ _is_herprint?: boolean;
91016
93073
  _printer_id?: string;
91017
93074
  _queue_item_id: string;
91018
93075
  _session_id?: string;
@@ -91026,6 +93083,13 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
91026
93083
  };
91027
93084
  Returns: import("../integrations/supabase/types").Json;
91028
93085
  };
93086
+ pick_preview_job: {
93087
+ Args: {
93088
+ _queue_item_id: string;
93089
+ _station_slug: string;
93090
+ };
93091
+ Returns: import("../integrations/supabase/types").Json;
93092
+ };
91029
93093
  pick_print_job_status: {
91030
93094
  Args: {
91031
93095
  _job_id: string;
@@ -91040,6 +93104,10 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
91040
93104
  omschrijving: string;
91041
93105
  }[];
91042
93106
  };
93107
+ pick_reference_data_status: {
93108
+ Args: never;
93109
+ Returns: import("../integrations/supabase/types").Json;
93110
+ };
91043
93111
  pick_release_expired_locks: {
91044
93112
  Args: never;
91045
93113
  Returns: number;
@@ -91104,6 +93172,10 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
91104
93172
  isSetofReturn: false;
91105
93173
  };
91106
93174
  };
93175
+ pick_seed_reference_data: {
93176
+ Args: never;
93177
+ Returns: import("../integrations/supabase/types").Json;
93178
+ };
91107
93179
  pick_set_station_print_plek: {
91108
93180
  Args: {
91109
93181
  _print_plek_id: string;
@@ -91195,6 +93267,24 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
91195
93267
  };
91196
93268
  Returns: undefined;
91197
93269
  };
93270
+ print_preview_toestaan: {
93271
+ Args: {
93272
+ _max?: number;
93273
+ _queue_item_id: string;
93274
+ _station_slug: string;
93275
+ _venster_sec?: number;
93276
+ };
93277
+ Returns: import("../integrations/supabase/types").Json;
93278
+ };
93279
+ print_preview_weiger: {
93280
+ Args: {
93281
+ _code: string;
93282
+ _queue_item_id: string;
93283
+ _reden: string;
93284
+ _station_slug: string;
93285
+ };
93286
+ Returns: undefined;
93287
+ };
91198
93288
  process_logistics_event: {
91199
93289
  Args: {
91200
93290
  p_event_id: string;
@@ -91312,6 +93402,14 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
91312
93402
  };
91313
93403
  Returns: undefined;
91314
93404
  };
93405
+ replace_order_carts: {
93406
+ Args: {
93407
+ p_buffer_id: string;
93408
+ p_carts: import("../integrations/supabase/types").Json;
93409
+ p_order_id: string;
93410
+ };
93411
+ Returns: import("../integrations/supabase/types").Json;
93412
+ };
91315
93413
  reset_floriday_sync_cursor: {
91316
93414
  Args: {
91317
93415
  p_connection_id: string;
@@ -91341,6 +93439,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
91341
93439
  };
91342
93440
  Returns: string;
91343
93441
  };
93442
+ resolve_print_job_printer_id: {
93443
+ Args: {
93444
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
93445
+ };
93446
+ Returns: string;
93447
+ };
91344
93448
  resolve_product_id_for_item: {
91345
93449
  Args: {
91346
93450
  p_product_name: string;
@@ -91932,7 +94036,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
91932
94036
  };
91933
94037
  CompositeTypes: { [_ in never]: never; };
91934
94038
  }, {
91935
- PostgrestVersion: "14.17";
94039
+ PostgrestVersion: "14.5";
91936
94040
  }>;
91937
94041
  userId: string;
91938
94042
  claims: import("@supabase/auth-js").JwtPayload;
@@ -102639,6 +104743,243 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
102639
104743
  };
102640
104744
  Relationships: [];
102641
104745
  };
104746
+ maps_addresses: {
104747
+ Row: {
104748
+ address_hash: string;
104749
+ created_at: string;
104750
+ error_reason: string | null;
104751
+ formatted_address: string | null;
104752
+ id: string;
104753
+ lat: number | null;
104754
+ lng: number | null;
104755
+ place_id: string | null;
104756
+ raw_address: string;
104757
+ resolved_at: string | null;
104758
+ status: string;
104759
+ updated_at: string;
104760
+ };
104761
+ Insert: {
104762
+ address_hash: string;
104763
+ created_at?: string;
104764
+ error_reason?: string | null;
104765
+ formatted_address?: string | null;
104766
+ id?: string;
104767
+ lat?: number | null;
104768
+ lng?: number | null;
104769
+ place_id?: string | null;
104770
+ raw_address: string;
104771
+ resolved_at?: string | null;
104772
+ status?: string;
104773
+ updated_at?: string;
104774
+ };
104775
+ Update: {
104776
+ address_hash?: string;
104777
+ created_at?: string;
104778
+ error_reason?: string | null;
104779
+ formatted_address?: string | null;
104780
+ id?: string;
104781
+ lat?: number | null;
104782
+ lng?: number | null;
104783
+ place_id?: string | null;
104784
+ raw_address?: string;
104785
+ resolved_at?: string | null;
104786
+ status?: string;
104787
+ updated_at?: string;
104788
+ };
104789
+ Relationships: [];
104790
+ };
104791
+ maps_job_lease: {
104792
+ Row: {
104793
+ job: string;
104794
+ locked_until: string;
104795
+ updated_at: string;
104796
+ };
104797
+ Insert: {
104798
+ job: string;
104799
+ locked_until?: string;
104800
+ updated_at?: string;
104801
+ };
104802
+ Update: {
104803
+ job?: string;
104804
+ locked_until?: string;
104805
+ updated_at?: string;
104806
+ };
104807
+ Relationships: [];
104808
+ };
104809
+ maps_request_queue: {
104810
+ Row: {
104811
+ attempts: number;
104812
+ created_at: string;
104813
+ destination_hash: string | null;
104814
+ id: string;
104815
+ kind: string;
104816
+ last_error: string | null;
104817
+ mode: string;
104818
+ origin_hash: string | null;
104819
+ processed_at: string | null;
104820
+ raw_destination: string | null;
104821
+ raw_origin: string | null;
104822
+ requested_by: string | null;
104823
+ status: string;
104824
+ updated_at: string;
104825
+ };
104826
+ Insert: {
104827
+ attempts?: number;
104828
+ created_at?: string;
104829
+ destination_hash?: string | null;
104830
+ id?: string;
104831
+ kind: string;
104832
+ last_error?: string | null;
104833
+ mode?: string;
104834
+ origin_hash?: string | null;
104835
+ processed_at?: string | null;
104836
+ raw_destination?: string | null;
104837
+ raw_origin?: string | null;
104838
+ requested_by?: string | null;
104839
+ status?: string;
104840
+ updated_at?: string;
104841
+ };
104842
+ Update: {
104843
+ attempts?: number;
104844
+ created_at?: string;
104845
+ destination_hash?: string | null;
104846
+ id?: string;
104847
+ kind?: string;
104848
+ last_error?: string | null;
104849
+ mode?: string;
104850
+ origin_hash?: string | null;
104851
+ processed_at?: string | null;
104852
+ raw_destination?: string | null;
104853
+ raw_origin?: string | null;
104854
+ requested_by?: string | null;
104855
+ status?: string;
104856
+ updated_at?: string;
104857
+ };
104858
+ Relationships: [];
104859
+ };
104860
+ maps_settings: {
104861
+ Row: {
104862
+ allow_estimate_fallback: boolean;
104863
+ cache_ttl_days: number;
104864
+ created_at: string;
104865
+ daily_call_limit: number;
104866
+ id: string;
104867
+ last_error: string | null;
104868
+ last_error_at: string | null;
104869
+ last_success_at: string | null;
104870
+ provider: string;
104871
+ updated_at: string;
104872
+ };
104873
+ Insert: {
104874
+ allow_estimate_fallback?: boolean;
104875
+ cache_ttl_days?: number;
104876
+ created_at?: string;
104877
+ daily_call_limit?: number;
104878
+ id?: string;
104879
+ last_error?: string | null;
104880
+ last_error_at?: string | null;
104881
+ last_success_at?: string | null;
104882
+ provider?: string;
104883
+ updated_at?: string;
104884
+ };
104885
+ Update: {
104886
+ allow_estimate_fallback?: boolean;
104887
+ cache_ttl_days?: number;
104888
+ created_at?: string;
104889
+ daily_call_limit?: number;
104890
+ id?: string;
104891
+ last_error?: string | null;
104892
+ last_error_at?: string | null;
104893
+ last_success_at?: string | null;
104894
+ provider?: string;
104895
+ updated_at?: string;
104896
+ };
104897
+ Relationships: [];
104898
+ };
104899
+ maps_travel_times: {
104900
+ Row: {
104901
+ created_at: string;
104902
+ destination_id: string;
104903
+ distance_m: number | null;
104904
+ duration_sec: number;
104905
+ expires_at: string;
104906
+ id: string;
104907
+ mode: string;
104908
+ origin_id: string;
104909
+ source: string;
104910
+ updated_at: string;
104911
+ };
104912
+ Insert: {
104913
+ created_at?: string;
104914
+ destination_id: string;
104915
+ distance_m?: number | null;
104916
+ duration_sec: number;
104917
+ expires_at?: string;
104918
+ id?: string;
104919
+ mode?: string;
104920
+ origin_id: string;
104921
+ source?: string;
104922
+ updated_at?: string;
104923
+ };
104924
+ Update: {
104925
+ created_at?: string;
104926
+ destination_id?: string;
104927
+ distance_m?: number | null;
104928
+ duration_sec?: number;
104929
+ expires_at?: string;
104930
+ id?: string;
104931
+ mode?: string;
104932
+ origin_id?: string;
104933
+ source?: string;
104934
+ updated_at?: string;
104935
+ };
104936
+ Relationships: [{
104937
+ foreignKeyName: "maps_travel_times_destination_id_fkey";
104938
+ columns: ["destination_id"];
104939
+ isOneToOne: false;
104940
+ referencedRelation: "maps_addresses";
104941
+ referencedColumns: ["id"];
104942
+ }, {
104943
+ foreignKeyName: "maps_travel_times_origin_id_fkey";
104944
+ columns: ["origin_id"];
104945
+ isOneToOne: false;
104946
+ referencedRelation: "maps_addresses";
104947
+ referencedColumns: ["id"];
104948
+ }];
104949
+ };
104950
+ maps_usage_log: {
104951
+ Row: {
104952
+ cache_hits: number;
104953
+ call_type: string;
104954
+ created_at: string;
104955
+ day: string;
104956
+ detail: string | null;
104957
+ elements: number;
104958
+ id: string;
104959
+ outcome: string;
104960
+ };
104961
+ Insert: {
104962
+ cache_hits?: number;
104963
+ call_type: string;
104964
+ created_at?: string;
104965
+ day?: string;
104966
+ detail?: string | null;
104967
+ elements?: number;
104968
+ id?: string;
104969
+ outcome?: string;
104970
+ };
104971
+ Update: {
104972
+ cache_hits?: number;
104973
+ call_type?: string;
104974
+ created_at?: string;
104975
+ day?: string;
104976
+ detail?: string | null;
104977
+ elements?: number;
104978
+ id?: string;
104979
+ outcome?: string;
104980
+ };
104981
+ Relationships: [];
104982
+ };
102642
104983
  material_usage: {
102643
104984
  Row: {
102644
104985
  created_at: string;
@@ -105288,6 +107629,39 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105288
107629
  };
105289
107630
  Relationships: [];
105290
107631
  };
107632
+ print_dedupe_events: {
107633
+ Row: {
107634
+ bestaande_job_id: string | null;
107635
+ created_at: string;
107636
+ detail: string | null;
107637
+ documentnaam: string | null;
107638
+ documenttype: string | null;
107639
+ id: string;
107640
+ idempotentie_sleutel: string;
107641
+ reden: string;
107642
+ };
107643
+ Insert: {
107644
+ bestaande_job_id?: string | null;
107645
+ created_at?: string;
107646
+ detail?: string | null;
107647
+ documentnaam?: string | null;
107648
+ documenttype?: string | null;
107649
+ id?: string;
107650
+ idempotentie_sleutel: string;
107651
+ reden: string;
107652
+ };
107653
+ Update: {
107654
+ bestaande_job_id?: string | null;
107655
+ created_at?: string;
107656
+ detail?: string | null;
107657
+ documentnaam?: string | null;
107658
+ documenttype?: string | null;
107659
+ id?: string;
107660
+ idempotentie_sleutel?: string;
107661
+ reden?: string;
107662
+ };
107663
+ Relationships: [];
107664
+ };
105291
107665
  print_job_logs: {
105292
107666
  Row: {
105293
107667
  created_at: string;
@@ -105329,6 +107703,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105329
107703
  foutmelding: string | null;
105330
107704
  gebruiker_id: string | null;
105331
107705
  gebruiker_naam: string;
107706
+ gebruikte_bron: string | null;
107707
+ gebruikte_layout_id: string | null;
105332
107708
  gestart_op: string | null;
105333
107709
  herkomst: string | null;
105334
107710
  id: string;
@@ -105336,6 +107712,9 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105336
107712
  is_herprint: boolean;
105337
107713
  kopieen: number;
105338
107714
  layout_id: string | null;
107715
+ lokaal_opgeslagen_op: string | null;
107716
+ lokale_pdf_fout: string | null;
107717
+ lokale_pdf_status: string | null;
105339
107718
  opgepakt_op: string | null;
105340
107719
  paginas: number;
105341
107720
  payload: import("../integrations/supabase/types").Json;
@@ -105344,6 +107723,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105344
107723
  pogingen: number;
105345
107724
  printer_id: string | null;
105346
107725
  render_html: string | null;
107726
+ resultaat_pdf_base64: string | null;
105347
107727
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
105348
107728
  updated_at: string;
105349
107729
  volgende_poging: string | null;
@@ -105359,6 +107739,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105359
107739
  foutmelding?: string | null;
105360
107740
  gebruiker_id?: string | null;
105361
107741
  gebruiker_naam?: string;
107742
+ gebruikte_bron?: string | null;
107743
+ gebruikte_layout_id?: string | null;
105362
107744
  gestart_op?: string | null;
105363
107745
  herkomst?: string | null;
105364
107746
  id?: string;
@@ -105366,6 +107748,9 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105366
107748
  is_herprint?: boolean;
105367
107749
  kopieen?: number;
105368
107750
  layout_id?: string | null;
107751
+ lokaal_opgeslagen_op?: string | null;
107752
+ lokale_pdf_fout?: string | null;
107753
+ lokale_pdf_status?: string | null;
105369
107754
  opgepakt_op?: string | null;
105370
107755
  paginas?: number;
105371
107756
  payload?: import("../integrations/supabase/types").Json;
@@ -105374,6 +107759,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105374
107759
  pogingen?: number;
105375
107760
  printer_id?: string | null;
105376
107761
  render_html?: string | null;
107762
+ resultaat_pdf_base64?: string | null;
105377
107763
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
105378
107764
  updated_at?: string;
105379
107765
  volgende_poging?: string | null;
@@ -105389,6 +107775,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105389
107775
  foutmelding?: string | null;
105390
107776
  gebruiker_id?: string | null;
105391
107777
  gebruiker_naam?: string;
107778
+ gebruikte_bron?: string | null;
107779
+ gebruikte_layout_id?: string | null;
105392
107780
  gestart_op?: string | null;
105393
107781
  herkomst?: string | null;
105394
107782
  id?: string;
@@ -105396,6 +107784,9 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105396
107784
  is_herprint?: boolean;
105397
107785
  kopieen?: number;
105398
107786
  layout_id?: string | null;
107787
+ lokaal_opgeslagen_op?: string | null;
107788
+ lokale_pdf_fout?: string | null;
107789
+ lokale_pdf_status?: string | null;
105399
107790
  opgepakt_op?: string | null;
105400
107791
  paginas?: number;
105401
107792
  payload?: import("../integrations/supabase/types").Json;
@@ -105404,6 +107795,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105404
107795
  pogingen?: number;
105405
107796
  printer_id?: string | null;
105406
107797
  render_html?: string | null;
107798
+ resultaat_pdf_base64?: string | null;
105407
107799
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
105408
107800
  updated_at?: string;
105409
107801
  volgende_poging?: string | null;
@@ -105522,6 +107914,39 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105522
107914
  };
105523
107915
  Relationships: [];
105524
107916
  };
107917
+ print_preview_events: {
107918
+ Row: {
107919
+ code: string | null;
107920
+ created_at: string;
107921
+ detail: import("../integrations/supabase/types").Json;
107922
+ id: string;
107923
+ queue_item_id: string | null;
107924
+ reden: string | null;
107925
+ station_slug: string | null;
107926
+ uitkomst: string;
107927
+ };
107928
+ Insert: {
107929
+ code?: string | null;
107930
+ created_at?: string;
107931
+ detail?: import("../integrations/supabase/types").Json;
107932
+ id?: string;
107933
+ queue_item_id?: string | null;
107934
+ reden?: string | null;
107935
+ station_slug?: string | null;
107936
+ uitkomst?: string;
107937
+ };
107938
+ Update: {
107939
+ code?: string | null;
107940
+ created_at?: string;
107941
+ detail?: import("../integrations/supabase/types").Json;
107942
+ id?: string;
107943
+ queue_item_id?: string | null;
107944
+ reden?: string | null;
107945
+ station_slug?: string | null;
107946
+ uitkomst?: string;
107947
+ };
107948
+ Relationships: [];
107949
+ };
105525
107950
  print_queue_runners: {
105526
107951
  Row: {
105527
107952
  actief: boolean;
@@ -105749,6 +108174,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105749
108174
  created_at: string;
105750
108175
  driver: string;
105751
108176
  extern_printer_id: string | null;
108177
+ formaten_bijgewerkt_op: string | null;
105752
108178
  id: string;
105753
108179
  ip_adres: string | null;
105754
108180
  laatst_gezien: string | null;
@@ -105756,8 +108182,11 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105756
108182
  merk: string;
105757
108183
  naam: string;
105758
108184
  omschrijving: string;
108185
+ ondersteunde_formaten: import("../integrations/supabase/types").Json | null;
108186
+ ondersteunde_laden: import("../integrations/supabase/types").Json | null;
105759
108187
  online: boolean;
105760
108188
  papierformaat: string;
108189
+ pdf_map: string | null;
105761
108190
  poort: number | null;
105762
108191
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
105763
108192
  systeemnaam: string;
@@ -105771,6 +108200,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105771
108200
  created_at?: string;
105772
108201
  driver?: string;
105773
108202
  extern_printer_id?: string | null;
108203
+ formaten_bijgewerkt_op?: string | null;
105774
108204
  id?: string;
105775
108205
  ip_adres?: string | null;
105776
108206
  laatst_gezien?: string | null;
@@ -105778,8 +108208,11 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105778
108208
  merk?: string;
105779
108209
  naam: string;
105780
108210
  omschrijving?: string;
108211
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
108212
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
105781
108213
  online?: boolean;
105782
108214
  papierformaat?: string;
108215
+ pdf_map?: string | null;
105783
108216
  poort?: number | null;
105784
108217
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
105785
108218
  systeemnaam?: string;
@@ -105793,6 +108226,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105793
108226
  created_at?: string;
105794
108227
  driver?: string;
105795
108228
  extern_printer_id?: string | null;
108229
+ formaten_bijgewerkt_op?: string | null;
105796
108230
  id?: string;
105797
108231
  ip_adres?: string | null;
105798
108232
  laatst_gezien?: string | null;
@@ -105800,8 +108234,11 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
105800
108234
  merk?: string;
105801
108235
  naam?: string;
105802
108236
  omschrijving?: string;
108237
+ ondersteunde_formaten?: import("../integrations/supabase/types").Json | null;
108238
+ ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
105803
108239
  online?: boolean;
105804
108240
  papierformaat?: string;
108241
+ pdf_map?: string | null;
105805
108242
  poort?: number | null;
105806
108243
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
105807
108244
  systeemnaam?: string;
@@ -112049,6 +114486,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
112049
114486
  foutmelding: string | null;
112050
114487
  gebruiker_id: string | null;
112051
114488
  gebruiker_naam: string;
114489
+ gebruikte_bron: string | null;
114490
+ gebruikte_layout_id: string | null;
112052
114491
  gestart_op: string | null;
112053
114492
  herkomst: string | null;
112054
114493
  id: string;
@@ -112056,6 +114495,9 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
112056
114495
  is_herprint: boolean;
112057
114496
  kopieen: number;
112058
114497
  layout_id: string | null;
114498
+ lokaal_opgeslagen_op: string | null;
114499
+ lokale_pdf_fout: string | null;
114500
+ lokale_pdf_status: string | null;
112059
114501
  opgepakt_op: string | null;
112060
114502
  paginas: number;
112061
114503
  payload: import("../integrations/supabase/types").Json;
@@ -112064,6 +114506,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
112064
114506
  pogingen: number;
112065
114507
  printer_id: string | null;
112066
114508
  render_html: string | null;
114509
+ resultaat_pdf_base64: string | null;
112067
114510
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
112068
114511
  updated_at: string;
112069
114512
  volgende_poging: string | null;
@@ -112155,6 +114598,53 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
112155
114598
  isSetofReturn: true;
112156
114599
  };
112157
114600
  };
114601
+ claim_pdf_print_jobs: {
114602
+ Args: {
114603
+ _max?: number;
114604
+ };
114605
+ Returns: {
114606
+ agent_id: string | null;
114607
+ bron_job_id: string | null;
114608
+ created_at: string;
114609
+ documentnaam: string;
114610
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
114611
+ extern_job_id: string | null;
114612
+ foutmelding: string | null;
114613
+ gebruiker_id: string | null;
114614
+ gebruiker_naam: string;
114615
+ gebruikte_bron: string | null;
114616
+ gebruikte_layout_id: string | null;
114617
+ gestart_op: string | null;
114618
+ herkomst: string | null;
114619
+ id: string;
114620
+ idempotentie_sleutel: string | null;
114621
+ is_herprint: boolean;
114622
+ kopieen: number;
114623
+ layout_id: string | null;
114624
+ lokaal_opgeslagen_op: string | null;
114625
+ lokale_pdf_fout: string | null;
114626
+ lokale_pdf_status: string | null;
114627
+ opgepakt_op: string | null;
114628
+ paginas: number;
114629
+ payload: import("../integrations/supabase/types").Json;
114630
+ pdf_base64: string | null;
114631
+ pdf_url: string | null;
114632
+ pogingen: number;
114633
+ printer_id: string | null;
114634
+ render_html: string | null;
114635
+ resultaat_pdf_base64: string | null;
114636
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
114637
+ updated_at: string;
114638
+ volgende_poging: string | null;
114639
+ voltooid_op: string | null;
114640
+ }[];
114641
+ SetofOptions: {
114642
+ from: "*";
114643
+ to: "print_jobs";
114644
+ isOneToOne: false;
114645
+ isSetofReturn: true;
114646
+ };
114647
+ };
112158
114648
  claim_print_jobs: {
112159
114649
  Args: {
112160
114650
  _agent_id: string;
@@ -112170,6 +114660,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
112170
114660
  foutmelding: string | null;
112171
114661
  gebruiker_id: string | null;
112172
114662
  gebruiker_naam: string;
114663
+ gebruikte_bron: string | null;
114664
+ gebruikte_layout_id: string | null;
112173
114665
  gestart_op: string | null;
112174
114666
  herkomst: string | null;
112175
114667
  id: string;
@@ -112177,6 +114669,9 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
112177
114669
  is_herprint: boolean;
112178
114670
  kopieen: number;
112179
114671
  layout_id: string | null;
114672
+ lokaal_opgeslagen_op: string | null;
114673
+ lokale_pdf_fout: string | null;
114674
+ lokale_pdf_status: string | null;
112180
114675
  opgepakt_op: string | null;
112181
114676
  paginas: number;
112182
114677
  payload: import("../integrations/supabase/types").Json;
@@ -112185,6 +114680,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
112185
114680
  pogingen: number;
112186
114681
  printer_id: string | null;
112187
114682
  render_html: string | null;
114683
+ resultaat_pdf_base64: string | null;
112188
114684
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
112189
114685
  updated_at: string;
112190
114686
  volgende_poging: string | null;
@@ -112325,6 +114821,8 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
112325
114821
  order_id: string;
112326
114822
  order_source: string;
112327
114823
  pick_date: string;
114824
+ printed_at: string;
114825
+ printed_today: boolean;
112328
114826
  status: string;
112329
114827
  }[];
112330
114828
  };
@@ -113033,6 +115531,10 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113033
115531
  };
113034
115532
  Returns: number;
113035
115533
  };
115534
+ logistics_cancel_orphan_tasks: {
115535
+ Args: never;
115536
+ Returns: number;
115537
+ };
113036
115538
  logistics_capacity_day_check: {
113037
115539
  Args: {
113038
115540
  p_from?: string;
@@ -113053,6 +115555,25 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113053
115555
  };
113054
115556
  Returns: number;
113055
115557
  };
115558
+ logistics_cart_index: {
115559
+ Args: {
115560
+ p_from?: string;
115561
+ p_to?: string;
115562
+ };
115563
+ Returns: {
115564
+ cart_id: string;
115565
+ cart_index: number;
115566
+ cart_label: string;
115567
+ is_shared: boolean;
115568
+ order_number: string;
115569
+ order_source: string;
115570
+ order_uuid: string;
115571
+ pick_date: string;
115572
+ printed_at: string;
115573
+ shifted: boolean;
115574
+ task_status: string;
115575
+ }[];
115576
+ };
113056
115577
  logistics_check_order_allowed: {
113057
115578
  Args: {
113058
115579
  p_lines: import("../integrations/supabase/types").Json;
@@ -113201,6 +115722,17 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113201
115722
  isSetofReturn: false;
113202
115723
  };
113203
115724
  };
115725
+ logistics_consistency_check: {
115726
+ Args: never;
115727
+ Returns: {
115728
+ agenda_carts: number;
115729
+ control_carts: number;
115730
+ ok: boolean;
115731
+ orphan_tasks: number;
115732
+ pick_date: string;
115733
+ raw_carts: number;
115734
+ }[];
115735
+ };
113204
115736
  logistics_delay_customer_email: {
113205
115737
  Args: {
113206
115738
  p_customer: string;
@@ -113226,6 +115758,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113226
115758
  };
113227
115759
  Returns: string;
113228
115760
  };
115761
+ logistics_document_type_map: {
115762
+ Args: {
115763
+ _document_code: string;
115764
+ };
115765
+ Returns: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"][];
115766
+ };
113229
115767
  logistics_emit_event: {
113230
115768
  Args: {
113231
115769
  p_event_type: string;
@@ -113388,6 +115926,25 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113388
115926
  };
113389
115927
  Returns: number;
113390
115928
  };
115929
+ logistics_order_overview: {
115930
+ Args: {
115931
+ p_from?: string;
115932
+ p_to?: string;
115933
+ };
115934
+ Returns: {
115935
+ cart_count: number;
115936
+ customer_name: string;
115937
+ delivery_date: string;
115938
+ order_number: string;
115939
+ order_source: string;
115940
+ order_uuid: string;
115941
+ pick_date: string;
115942
+ plant_count: number;
115943
+ printed_at: string;
115944
+ shifted: boolean;
115945
+ status: string;
115946
+ }[];
115947
+ };
113391
115948
  logistics_order_pick_day: {
113392
115949
  Args: {
113393
115950
  p_order_ref: string;
@@ -113400,6 +115957,22 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113400
115957
  };
113401
115958
  Returns: string;
113402
115959
  };
115960
+ logistics_pick_agenda: {
115961
+ Args: {
115962
+ p_from?: string;
115963
+ p_to?: string;
115964
+ };
115965
+ Returns: {
115966
+ cart_count: number;
115967
+ in_preparation: number;
115968
+ order_count: number;
115969
+ orders: import("../integrations/supabase/types").Json;
115970
+ pick_date: string;
115971
+ plant_count: number;
115972
+ ready: number;
115973
+ shifted_count: number;
115974
+ }[];
115975
+ };
113403
115976
  logistics_pick_email_purpose: {
113404
115977
  Args: never;
113405
115978
  Returns: string;
@@ -113559,6 +116132,15 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113559
116132
  };
113560
116133
  Returns: import("../integrations/supabase/types").Json;
113561
116134
  };
116135
+ logistics_resolve_pick_document: {
116136
+ Args: {
116137
+ _is_herprint: boolean;
116138
+ _queue_item_id: string;
116139
+ _session_id: string;
116140
+ _voorbeeld: boolean;
116141
+ };
116142
+ Returns: import("../integrations/supabase/types").Json;
116143
+ };
113562
116144
  logistics_resolve_settings: {
113563
116145
  Args: {
113564
116146
  p_config_id: string;
@@ -113999,6 +116581,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113999
116581
  };
114000
116582
  pick_enqueue_print_job: {
114001
116583
  Args: {
116584
+ _is_herprint?: boolean;
114002
116585
  _printer_id?: string;
114003
116586
  _queue_item_id: string;
114004
116587
  _session_id?: string;
@@ -114012,6 +116595,13 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
114012
116595
  };
114013
116596
  Returns: import("../integrations/supabase/types").Json;
114014
116597
  };
116598
+ pick_preview_job: {
116599
+ Args: {
116600
+ _queue_item_id: string;
116601
+ _station_slug: string;
116602
+ };
116603
+ Returns: import("../integrations/supabase/types").Json;
116604
+ };
114015
116605
  pick_print_job_status: {
114016
116606
  Args: {
114017
116607
  _job_id: string;
@@ -114026,6 +116616,10 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
114026
116616
  omschrijving: string;
114027
116617
  }[];
114028
116618
  };
116619
+ pick_reference_data_status: {
116620
+ Args: never;
116621
+ Returns: import("../integrations/supabase/types").Json;
116622
+ };
114029
116623
  pick_release_expired_locks: {
114030
116624
  Args: never;
114031
116625
  Returns: number;
@@ -114090,6 +116684,10 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
114090
116684
  isSetofReturn: false;
114091
116685
  };
114092
116686
  };
116687
+ pick_seed_reference_data: {
116688
+ Args: never;
116689
+ Returns: import("../integrations/supabase/types").Json;
116690
+ };
114093
116691
  pick_set_station_print_plek: {
114094
116692
  Args: {
114095
116693
  _print_plek_id: string;
@@ -114181,6 +116779,24 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
114181
116779
  };
114182
116780
  Returns: undefined;
114183
116781
  };
116782
+ print_preview_toestaan: {
116783
+ Args: {
116784
+ _max?: number;
116785
+ _queue_item_id: string;
116786
+ _station_slug: string;
116787
+ _venster_sec?: number;
116788
+ };
116789
+ Returns: import("../integrations/supabase/types").Json;
116790
+ };
116791
+ print_preview_weiger: {
116792
+ Args: {
116793
+ _code: string;
116794
+ _queue_item_id: string;
116795
+ _reden: string;
116796
+ _station_slug: string;
116797
+ };
116798
+ Returns: undefined;
116799
+ };
114184
116800
  process_logistics_event: {
114185
116801
  Args: {
114186
116802
  p_event_id: string;
@@ -114298,6 +116914,14 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
114298
116914
  };
114299
116915
  Returns: undefined;
114300
116916
  };
116917
+ replace_order_carts: {
116918
+ Args: {
116919
+ p_buffer_id: string;
116920
+ p_carts: import("../integrations/supabase/types").Json;
116921
+ p_order_id: string;
116922
+ };
116923
+ Returns: import("../integrations/supabase/types").Json;
116924
+ };
114301
116925
  reset_floriday_sync_cursor: {
114302
116926
  Args: {
114303
116927
  p_connection_id: string;
@@ -114327,6 +116951,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
114327
116951
  };
114328
116952
  Returns: string;
114329
116953
  };
116954
+ resolve_print_job_printer_id: {
116955
+ Args: {
116956
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
116957
+ };
116958
+ Returns: string;
116959
+ };
114330
116960
  resolve_product_id_for_item: {
114331
116961
  Args: {
114332
116962
  p_product_name: string;
@@ -114918,7 +117548,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
114918
117548
  };
114919
117549
  CompositeTypes: { [_ in never]: never; };
114920
117550
  }, {
114921
- PostgrestVersion: "14.17";
117551
+ PostgrestVersion: "14.5";
114922
117552
  }>;
114923
117553
  userId: string;
114924
117554
  claims: import("@supabase/auth-js").JwtPayload;