@flowselections/logistiek-engine 1.0.24 → 1.0.25

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 (35) hide show
  1. package/dist-lib/components/LogistiekEnginePage.d.ts.map +1 -1
  2. package/dist-lib/components/LogistiekEnginePage.js +8 -2
  3. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  4. package/dist-lib/components/RegiePage.js +1 -1
  5. package/dist-lib/integrations/supabase/auth-middleware.d.ts +226 -1
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/client.server.d.ts +226 -1
  8. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/moduleClient.d.ts +226 -1
  10. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/types.d.ts +228 -1
  12. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  13. package/dist-lib/lib/floridayDocuments.functions.d.ts +678 -3
  14. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/floridayPush.functions.d.ts +226 -1
  16. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  18. package/dist-lib/lib/handlers/logistics-tick.server.js +11 -0
  19. package/dist-lib/lib/loadCarrierPlanner.d.ts +6 -0
  20. package/dist-lib/lib/loadCarrierPlanner.d.ts.map +1 -1
  21. package/dist-lib/lib/loadCarrierPlanner.js +3 -0
  22. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +1130 -5
  23. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  25. package/dist-lib/lib/loadCarrierPlanning.server.js +3 -0
  26. package/dist-lib/lib/logisticsPlanner.d.ts +2 -0
  27. package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
  28. package/dist-lib/lib/logisticsPlanner.js +17 -0
  29. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +452 -2
  30. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +226 -1
  32. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  34. package/dist-lib/lib/modulePrompts.js +185 -0
  35. package/package.json +1 -1
@@ -2856,6 +2856,84 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
2856
2856
  };
2857
2857
  Relationships: [];
2858
2858
  };
2859
+ delivery_notes: {
2860
+ Row: {
2861
+ byte_size: number | null;
2862
+ connection_id: string | null;
2863
+ content_type: string;
2864
+ created_at: string;
2865
+ error_message: string | null;
2866
+ fetched_at: string | null;
2867
+ fulfillment_order_id: string | null;
2868
+ http_status: number | null;
2869
+ id: string;
2870
+ label_code: string | null;
2871
+ letter: string | null;
2872
+ load_carrier_index: number | null;
2873
+ load_carrier_type: string | null;
2874
+ order_id: string | null;
2875
+ order_number: string | null;
2876
+ packages: number | null;
2877
+ source: string;
2878
+ status: string;
2879
+ storage_bucket: string;
2880
+ storage_path: string | null;
2881
+ updated_at: string;
2882
+ };
2883
+ Insert: {
2884
+ byte_size?: number | null;
2885
+ connection_id?: string | null;
2886
+ content_type?: string;
2887
+ created_at?: string;
2888
+ error_message?: string | null;
2889
+ fetched_at?: string | null;
2890
+ fulfillment_order_id?: string | null;
2891
+ http_status?: number | null;
2892
+ id?: string;
2893
+ label_code?: string | null;
2894
+ letter?: string | null;
2895
+ load_carrier_index?: number | null;
2896
+ load_carrier_type?: string | null;
2897
+ order_id?: string | null;
2898
+ order_number?: string | null;
2899
+ packages?: number | null;
2900
+ source?: string;
2901
+ status?: string;
2902
+ storage_bucket?: string;
2903
+ storage_path?: string | null;
2904
+ updated_at?: string;
2905
+ };
2906
+ Update: {
2907
+ byte_size?: number | null;
2908
+ connection_id?: string | null;
2909
+ content_type?: string;
2910
+ created_at?: string;
2911
+ error_message?: string | null;
2912
+ fetched_at?: string | null;
2913
+ fulfillment_order_id?: string | null;
2914
+ http_status?: number | null;
2915
+ id?: string;
2916
+ label_code?: string | null;
2917
+ letter?: string | null;
2918
+ load_carrier_index?: number | null;
2919
+ load_carrier_type?: string | null;
2920
+ order_id?: string | null;
2921
+ order_number?: string | null;
2922
+ packages?: number | null;
2923
+ source?: string;
2924
+ status?: string;
2925
+ storage_bucket?: string;
2926
+ storage_path?: string | null;
2927
+ updated_at?: string;
2928
+ };
2929
+ Relationships: [{
2930
+ foreignKeyName: "delivery_notes_order_id_fkey";
2931
+ columns: ["order_id"];
2932
+ isOneToOne: false;
2933
+ referencedRelation: "orders";
2934
+ referencedColumns: ["id"];
2935
+ }];
2936
+ };
2859
2937
  document_bronregels: {
2860
2938
  Row: {
2861
2939
  bron: string;
@@ -13664,6 +13742,9 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
13664
13742
  is_herprint: boolean;
13665
13743
  kopieen: number;
13666
13744
  layout_id: string | null;
13745
+ lokaal_opgeslagen_op: string | null;
13746
+ lokale_pdf_fout: string | null;
13747
+ lokale_pdf_status: string | null;
13667
13748
  opgepakt_op: string | null;
13668
13749
  paginas: number;
13669
13750
  payload: import("../integrations/supabase/types").Json;
@@ -13672,6 +13753,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
13672
13753
  pogingen: number;
13673
13754
  printer_id: string | null;
13674
13755
  render_html: string | null;
13756
+ resultaat_pdf_base64: string | null;
13675
13757
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13676
13758
  updated_at: string;
13677
13759
  volgende_poging: string | null;
@@ -13696,6 +13778,9 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
13696
13778
  is_herprint?: boolean;
13697
13779
  kopieen?: number;
13698
13780
  layout_id?: string | null;
13781
+ lokaal_opgeslagen_op?: string | null;
13782
+ lokale_pdf_fout?: string | null;
13783
+ lokale_pdf_status?: string | null;
13699
13784
  opgepakt_op?: string | null;
13700
13785
  paginas?: number;
13701
13786
  payload?: import("../integrations/supabase/types").Json;
@@ -13704,6 +13789,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
13704
13789
  pogingen?: number;
13705
13790
  printer_id?: string | null;
13706
13791
  render_html?: string | null;
13792
+ resultaat_pdf_base64?: string | null;
13707
13793
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13708
13794
  updated_at?: string;
13709
13795
  volgende_poging?: string | null;
@@ -13728,6 +13814,9 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
13728
13814
  is_herprint?: boolean;
13729
13815
  kopieen?: number;
13730
13816
  layout_id?: string | null;
13817
+ lokaal_opgeslagen_op?: string | null;
13818
+ lokale_pdf_fout?: string | null;
13819
+ lokale_pdf_status?: string | null;
13731
13820
  opgepakt_op?: string | null;
13732
13821
  paginas?: number;
13733
13822
  payload?: import("../integrations/supabase/types").Json;
@@ -13736,6 +13825,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
13736
13825
  pogingen?: number;
13737
13826
  printer_id?: string | null;
13738
13827
  render_html?: string | null;
13828
+ resultaat_pdf_base64?: string | null;
13739
13829
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13740
13830
  updated_at?: string;
13741
13831
  volgende_poging?: string | null;
@@ -14126,6 +14216,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
14126
14216
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14127
14217
  online: boolean;
14128
14218
  papierformaat: string;
14219
+ pdf_map: string | null;
14129
14220
  poort: number | null;
14130
14221
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14131
14222
  systeemnaam: string;
@@ -14151,6 +14242,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
14151
14242
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14152
14243
  online?: boolean;
14153
14244
  papierformaat?: string;
14245
+ pdf_map?: string | null;
14154
14246
  poort?: number | null;
14155
14247
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14156
14248
  systeemnaam?: string;
@@ -14176,6 +14268,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
14176
14268
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14177
14269
  online?: boolean;
14178
14270
  papierformaat?: string;
14271
+ pdf_map?: string | null;
14179
14272
  poort?: number | null;
14180
14273
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14181
14274
  systeemnaam?: string;
@@ -20432,6 +20525,9 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
20432
20525
  is_herprint: boolean;
20433
20526
  kopieen: number;
20434
20527
  layout_id: string | null;
20528
+ lokaal_opgeslagen_op: string | null;
20529
+ lokale_pdf_fout: string | null;
20530
+ lokale_pdf_status: string | null;
20435
20531
  opgepakt_op: string | null;
20436
20532
  paginas: number;
20437
20533
  payload: import("../integrations/supabase/types").Json;
@@ -20440,6 +20536,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
20440
20536
  pogingen: number;
20441
20537
  printer_id: string | null;
20442
20538
  render_html: string | null;
20539
+ resultaat_pdf_base64: string | null;
20443
20540
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20444
20541
  updated_at: string;
20445
20542
  volgende_poging: string | null;
@@ -20531,6 +20628,53 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
20531
20628
  isSetofReturn: true;
20532
20629
  };
20533
20630
  };
20631
+ claim_pdf_print_jobs: {
20632
+ Args: {
20633
+ _max?: number;
20634
+ };
20635
+ Returns: {
20636
+ agent_id: string | null;
20637
+ bron_job_id: string | null;
20638
+ created_at: string;
20639
+ documentnaam: string;
20640
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20641
+ extern_job_id: string | null;
20642
+ foutmelding: string | null;
20643
+ gebruiker_id: string | null;
20644
+ gebruiker_naam: string;
20645
+ gebruikte_bron: string | null;
20646
+ gebruikte_layout_id: string | null;
20647
+ gestart_op: string | null;
20648
+ herkomst: string | null;
20649
+ id: string;
20650
+ idempotentie_sleutel: string | null;
20651
+ is_herprint: boolean;
20652
+ kopieen: number;
20653
+ layout_id: string | null;
20654
+ lokaal_opgeslagen_op: string | null;
20655
+ lokale_pdf_fout: string | null;
20656
+ lokale_pdf_status: string | null;
20657
+ opgepakt_op: string | null;
20658
+ paginas: number;
20659
+ payload: import("../integrations/supabase/types").Json;
20660
+ pdf_base64: string | null;
20661
+ pdf_url: string | null;
20662
+ pogingen: number;
20663
+ printer_id: string | null;
20664
+ render_html: string | null;
20665
+ resultaat_pdf_base64: string | null;
20666
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20667
+ updated_at: string;
20668
+ volgende_poging: string | null;
20669
+ voltooid_op: string | null;
20670
+ }[];
20671
+ SetofOptions: {
20672
+ from: "*";
20673
+ to: "print_jobs";
20674
+ isOneToOne: false;
20675
+ isSetofReturn: true;
20676
+ };
20677
+ };
20534
20678
  claim_print_jobs: {
20535
20679
  Args: {
20536
20680
  _agent_id: string;
@@ -20555,6 +20699,9 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
20555
20699
  is_herprint: boolean;
20556
20700
  kopieen: number;
20557
20701
  layout_id: string | null;
20702
+ lokaal_opgeslagen_op: string | null;
20703
+ lokale_pdf_fout: string | null;
20704
+ lokale_pdf_status: string | null;
20558
20705
  opgepakt_op: string | null;
20559
20706
  paginas: number;
20560
20707
  payload: import("../integrations/supabase/types").Json;
@@ -20563,6 +20710,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
20563
20710
  pogingen: number;
20564
20711
  printer_id: string | null;
20565
20712
  render_html: string | null;
20713
+ resultaat_pdf_base64: string | null;
20566
20714
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20567
20715
  updated_at: string;
20568
20716
  volgende_poging: string | null;
@@ -20703,6 +20851,8 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
20703
20851
  order_id: string;
20704
20852
  order_source: string;
20705
20853
  pick_date: string;
20854
+ printed_at: string;
20855
+ printed_today: boolean;
20706
20856
  status: string;
20707
20857
  }[];
20708
20858
  };
@@ -21411,6 +21561,10 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
21411
21561
  };
21412
21562
  Returns: number;
21413
21563
  };
21564
+ logistics_cancel_orphan_tasks: {
21565
+ Args: never;
21566
+ Returns: number;
21567
+ };
21414
21568
  logistics_capacity_day_check: {
21415
21569
  Args: {
21416
21570
  p_from?: string;
@@ -21431,6 +21585,25 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
21431
21585
  };
21432
21586
  Returns: number;
21433
21587
  };
21588
+ logistics_cart_index: {
21589
+ Args: {
21590
+ p_from?: string;
21591
+ p_to?: string;
21592
+ };
21593
+ Returns: {
21594
+ cart_id: string;
21595
+ cart_index: number;
21596
+ cart_label: string;
21597
+ is_shared: boolean;
21598
+ order_number: string;
21599
+ order_source: string;
21600
+ order_uuid: string;
21601
+ pick_date: string;
21602
+ printed_at: string;
21603
+ shifted: boolean;
21604
+ task_status: string;
21605
+ }[];
21606
+ };
21434
21607
  logistics_check_order_allowed: {
21435
21608
  Args: {
21436
21609
  p_lines: import("../integrations/supabase/types").Json;
@@ -21579,6 +21752,17 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
21579
21752
  isSetofReturn: false;
21580
21753
  };
21581
21754
  };
21755
+ logistics_consistency_check: {
21756
+ Args: never;
21757
+ Returns: {
21758
+ agenda_carts: number;
21759
+ control_carts: number;
21760
+ ok: boolean;
21761
+ orphan_tasks: number;
21762
+ pick_date: string;
21763
+ raw_carts: number;
21764
+ }[];
21765
+ };
21582
21766
  logistics_delay_customer_email: {
21583
21767
  Args: {
21584
21768
  p_customer: string;
@@ -21772,6 +21956,25 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
21772
21956
  };
21773
21957
  Returns: number;
21774
21958
  };
21959
+ logistics_order_overview: {
21960
+ Args: {
21961
+ p_from?: string;
21962
+ p_to?: string;
21963
+ };
21964
+ Returns: {
21965
+ cart_count: number;
21966
+ customer_name: string;
21967
+ delivery_date: string;
21968
+ order_number: string;
21969
+ order_source: string;
21970
+ order_uuid: string;
21971
+ pick_date: string;
21972
+ plant_count: number;
21973
+ printed_at: string;
21974
+ shifted: boolean;
21975
+ status: string;
21976
+ }[];
21977
+ };
21775
21978
  logistics_order_pick_day: {
21776
21979
  Args: {
21777
21980
  p_order_ref: string;
@@ -21784,6 +21987,22 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
21784
21987
  };
21785
21988
  Returns: string;
21786
21989
  };
21990
+ logistics_pick_agenda: {
21991
+ Args: {
21992
+ p_from?: string;
21993
+ p_to?: string;
21994
+ };
21995
+ Returns: {
21996
+ cart_count: number;
21997
+ in_preparation: number;
21998
+ order_count: number;
21999
+ orders: import("../integrations/supabase/types").Json;
22000
+ pick_date: string;
22001
+ plant_count: number;
22002
+ ready: number;
22003
+ shifted_count: number;
22004
+ }[];
22005
+ };
21787
22006
  logistics_pick_email_purpose: {
21788
22007
  Args: never;
21789
22008
  Returns: string;
@@ -22762,6 +22981,12 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
22762
22981
  };
22763
22982
  Returns: string;
22764
22983
  };
22984
+ resolve_print_job_printer_id: {
22985
+ Args: {
22986
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
22987
+ };
22988
+ Returns: string;
22989
+ };
22765
22990
  resolve_product_id_for_item: {
22766
22991
  Args: {
22767
22992
  p_product_name: string;
@@ -23353,7 +23578,7 @@ export declare const replanOrderLoadCarriers: import("@tanstack/start-client-cor
23353
23578
  };
23354
23579
  CompositeTypes: { [_ in never]: never; };
23355
23580
  }, {
23356
- PostgrestVersion: "14.17";
23581
+ PostgrestVersion: "14.5";
23357
23582
  }>;
23358
23583
  userId: string;
23359
23584
  claims: import("@supabase/auth-js").User;
@@ -26224,6 +26449,84 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
26224
26449
  };
26225
26450
  Relationships: [];
26226
26451
  };
26452
+ delivery_notes: {
26453
+ Row: {
26454
+ byte_size: number | null;
26455
+ connection_id: string | null;
26456
+ content_type: string;
26457
+ created_at: string;
26458
+ error_message: string | null;
26459
+ fetched_at: string | null;
26460
+ fulfillment_order_id: string | null;
26461
+ http_status: number | null;
26462
+ id: string;
26463
+ label_code: string | null;
26464
+ letter: string | null;
26465
+ load_carrier_index: number | null;
26466
+ load_carrier_type: string | null;
26467
+ order_id: string | null;
26468
+ order_number: string | null;
26469
+ packages: number | null;
26470
+ source: string;
26471
+ status: string;
26472
+ storage_bucket: string;
26473
+ storage_path: string | null;
26474
+ updated_at: string;
26475
+ };
26476
+ Insert: {
26477
+ byte_size?: number | null;
26478
+ connection_id?: string | null;
26479
+ content_type?: string;
26480
+ created_at?: string;
26481
+ error_message?: string | null;
26482
+ fetched_at?: string | null;
26483
+ fulfillment_order_id?: string | null;
26484
+ http_status?: number | null;
26485
+ id?: string;
26486
+ label_code?: string | null;
26487
+ letter?: string | null;
26488
+ load_carrier_index?: number | null;
26489
+ load_carrier_type?: string | null;
26490
+ order_id?: string | null;
26491
+ order_number?: string | null;
26492
+ packages?: number | null;
26493
+ source?: string;
26494
+ status?: string;
26495
+ storage_bucket?: string;
26496
+ storage_path?: string | null;
26497
+ updated_at?: string;
26498
+ };
26499
+ Update: {
26500
+ byte_size?: number | null;
26501
+ connection_id?: string | null;
26502
+ content_type?: string;
26503
+ created_at?: string;
26504
+ error_message?: string | null;
26505
+ fetched_at?: string | null;
26506
+ fulfillment_order_id?: string | null;
26507
+ http_status?: number | null;
26508
+ id?: string;
26509
+ label_code?: string | null;
26510
+ letter?: string | null;
26511
+ load_carrier_index?: number | null;
26512
+ load_carrier_type?: string | null;
26513
+ order_id?: string | null;
26514
+ order_number?: string | null;
26515
+ packages?: number | null;
26516
+ source?: string;
26517
+ status?: string;
26518
+ storage_bucket?: string;
26519
+ storage_path?: string | null;
26520
+ updated_at?: string;
26521
+ };
26522
+ Relationships: [{
26523
+ foreignKeyName: "delivery_notes_order_id_fkey";
26524
+ columns: ["order_id"];
26525
+ isOneToOne: false;
26526
+ referencedRelation: "orders";
26527
+ referencedColumns: ["id"];
26528
+ }];
26529
+ };
26227
26530
  document_bronregels: {
26228
26531
  Row: {
26229
26532
  bron: string;
@@ -37032,6 +37335,9 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
37032
37335
  is_herprint: boolean;
37033
37336
  kopieen: number;
37034
37337
  layout_id: string | null;
37338
+ lokaal_opgeslagen_op: string | null;
37339
+ lokale_pdf_fout: string | null;
37340
+ lokale_pdf_status: string | null;
37035
37341
  opgepakt_op: string | null;
37036
37342
  paginas: number;
37037
37343
  payload: import("../integrations/supabase/types").Json;
@@ -37040,6 +37346,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
37040
37346
  pogingen: number;
37041
37347
  printer_id: string | null;
37042
37348
  render_html: string | null;
37349
+ resultaat_pdf_base64: string | null;
37043
37350
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
37044
37351
  updated_at: string;
37045
37352
  volgende_poging: string | null;
@@ -37064,6 +37371,9 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
37064
37371
  is_herprint?: boolean;
37065
37372
  kopieen?: number;
37066
37373
  layout_id?: string | null;
37374
+ lokaal_opgeslagen_op?: string | null;
37375
+ lokale_pdf_fout?: string | null;
37376
+ lokale_pdf_status?: string | null;
37067
37377
  opgepakt_op?: string | null;
37068
37378
  paginas?: number;
37069
37379
  payload?: import("../integrations/supabase/types").Json;
@@ -37072,6 +37382,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
37072
37382
  pogingen?: number;
37073
37383
  printer_id?: string | null;
37074
37384
  render_html?: string | null;
37385
+ resultaat_pdf_base64?: string | null;
37075
37386
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
37076
37387
  updated_at?: string;
37077
37388
  volgende_poging?: string | null;
@@ -37096,6 +37407,9 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
37096
37407
  is_herprint?: boolean;
37097
37408
  kopieen?: number;
37098
37409
  layout_id?: string | null;
37410
+ lokaal_opgeslagen_op?: string | null;
37411
+ lokale_pdf_fout?: string | null;
37412
+ lokale_pdf_status?: string | null;
37099
37413
  opgepakt_op?: string | null;
37100
37414
  paginas?: number;
37101
37415
  payload?: import("../integrations/supabase/types").Json;
@@ -37104,6 +37418,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
37104
37418
  pogingen?: number;
37105
37419
  printer_id?: string | null;
37106
37420
  render_html?: string | null;
37421
+ resultaat_pdf_base64?: string | null;
37107
37422
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
37108
37423
  updated_at?: string;
37109
37424
  volgende_poging?: string | null;
@@ -37494,6 +37809,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
37494
37809
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37495
37810
  online: boolean;
37496
37811
  papierformaat: string;
37812
+ pdf_map: string | null;
37497
37813
  poort: number | null;
37498
37814
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37499
37815
  systeemnaam: string;
@@ -37519,6 +37835,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
37519
37835
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37520
37836
  online?: boolean;
37521
37837
  papierformaat?: string;
37838
+ pdf_map?: string | null;
37522
37839
  poort?: number | null;
37523
37840
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37524
37841
  systeemnaam?: string;
@@ -37544,6 +37861,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
37544
37861
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37545
37862
  online?: boolean;
37546
37863
  papierformaat?: string;
37864
+ pdf_map?: string | null;
37547
37865
  poort?: number | null;
37548
37866
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37549
37867
  systeemnaam?: string;
@@ -43800,6 +44118,9 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
43800
44118
  is_herprint: boolean;
43801
44119
  kopieen: number;
43802
44120
  layout_id: string | null;
44121
+ lokaal_opgeslagen_op: string | null;
44122
+ lokale_pdf_fout: string | null;
44123
+ lokale_pdf_status: string | null;
43803
44124
  opgepakt_op: string | null;
43804
44125
  paginas: number;
43805
44126
  payload: import("../integrations/supabase/types").Json;
@@ -43808,6 +44129,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
43808
44129
  pogingen: number;
43809
44130
  printer_id: string | null;
43810
44131
  render_html: string | null;
44132
+ resultaat_pdf_base64: string | null;
43811
44133
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43812
44134
  updated_at: string;
43813
44135
  volgende_poging: string | null;
@@ -43899,6 +44221,53 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
43899
44221
  isSetofReturn: true;
43900
44222
  };
43901
44223
  };
44224
+ claim_pdf_print_jobs: {
44225
+ Args: {
44226
+ _max?: number;
44227
+ };
44228
+ Returns: {
44229
+ agent_id: string | null;
44230
+ bron_job_id: string | null;
44231
+ created_at: string;
44232
+ documentnaam: string;
44233
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44234
+ extern_job_id: string | null;
44235
+ foutmelding: string | null;
44236
+ gebruiker_id: string | null;
44237
+ gebruiker_naam: string;
44238
+ gebruikte_bron: string | null;
44239
+ gebruikte_layout_id: string | null;
44240
+ gestart_op: string | null;
44241
+ herkomst: string | null;
44242
+ id: string;
44243
+ idempotentie_sleutel: string | null;
44244
+ is_herprint: boolean;
44245
+ kopieen: number;
44246
+ layout_id: string | null;
44247
+ lokaal_opgeslagen_op: string | null;
44248
+ lokale_pdf_fout: string | null;
44249
+ lokale_pdf_status: string | null;
44250
+ opgepakt_op: string | null;
44251
+ paginas: number;
44252
+ payload: import("../integrations/supabase/types").Json;
44253
+ pdf_base64: string | null;
44254
+ pdf_url: string | null;
44255
+ pogingen: number;
44256
+ printer_id: string | null;
44257
+ render_html: string | null;
44258
+ resultaat_pdf_base64: string | null;
44259
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44260
+ updated_at: string;
44261
+ volgende_poging: string | null;
44262
+ voltooid_op: string | null;
44263
+ }[];
44264
+ SetofOptions: {
44265
+ from: "*";
44266
+ to: "print_jobs";
44267
+ isOneToOne: false;
44268
+ isSetofReturn: true;
44269
+ };
44270
+ };
43902
44271
  claim_print_jobs: {
43903
44272
  Args: {
43904
44273
  _agent_id: string;
@@ -43923,6 +44292,9 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
43923
44292
  is_herprint: boolean;
43924
44293
  kopieen: number;
43925
44294
  layout_id: string | null;
44295
+ lokaal_opgeslagen_op: string | null;
44296
+ lokale_pdf_fout: string | null;
44297
+ lokale_pdf_status: string | null;
43926
44298
  opgepakt_op: string | null;
43927
44299
  paginas: number;
43928
44300
  payload: import("../integrations/supabase/types").Json;
@@ -43931,6 +44303,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
43931
44303
  pogingen: number;
43932
44304
  printer_id: string | null;
43933
44305
  render_html: string | null;
44306
+ resultaat_pdf_base64: string | null;
43934
44307
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43935
44308
  updated_at: string;
43936
44309
  volgende_poging: string | null;
@@ -44071,6 +44444,8 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
44071
44444
  order_id: string;
44072
44445
  order_source: string;
44073
44446
  pick_date: string;
44447
+ printed_at: string;
44448
+ printed_today: boolean;
44074
44449
  status: string;
44075
44450
  }[];
44076
44451
  };
@@ -44779,6 +45154,10 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
44779
45154
  };
44780
45155
  Returns: number;
44781
45156
  };
45157
+ logistics_cancel_orphan_tasks: {
45158
+ Args: never;
45159
+ Returns: number;
45160
+ };
44782
45161
  logistics_capacity_day_check: {
44783
45162
  Args: {
44784
45163
  p_from?: string;
@@ -44799,6 +45178,25 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
44799
45178
  };
44800
45179
  Returns: number;
44801
45180
  };
45181
+ logistics_cart_index: {
45182
+ Args: {
45183
+ p_from?: string;
45184
+ p_to?: string;
45185
+ };
45186
+ Returns: {
45187
+ cart_id: string;
45188
+ cart_index: number;
45189
+ cart_label: string;
45190
+ is_shared: boolean;
45191
+ order_number: string;
45192
+ order_source: string;
45193
+ order_uuid: string;
45194
+ pick_date: string;
45195
+ printed_at: string;
45196
+ shifted: boolean;
45197
+ task_status: string;
45198
+ }[];
45199
+ };
44802
45200
  logistics_check_order_allowed: {
44803
45201
  Args: {
44804
45202
  p_lines: import("../integrations/supabase/types").Json;
@@ -44947,6 +45345,17 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
44947
45345
  isSetofReturn: false;
44948
45346
  };
44949
45347
  };
45348
+ logistics_consistency_check: {
45349
+ Args: never;
45350
+ Returns: {
45351
+ agenda_carts: number;
45352
+ control_carts: number;
45353
+ ok: boolean;
45354
+ orphan_tasks: number;
45355
+ pick_date: string;
45356
+ raw_carts: number;
45357
+ }[];
45358
+ };
44950
45359
  logistics_delay_customer_email: {
44951
45360
  Args: {
44952
45361
  p_customer: string;
@@ -45140,6 +45549,25 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
45140
45549
  };
45141
45550
  Returns: number;
45142
45551
  };
45552
+ logistics_order_overview: {
45553
+ Args: {
45554
+ p_from?: string;
45555
+ p_to?: string;
45556
+ };
45557
+ Returns: {
45558
+ cart_count: number;
45559
+ customer_name: string;
45560
+ delivery_date: string;
45561
+ order_number: string;
45562
+ order_source: string;
45563
+ order_uuid: string;
45564
+ pick_date: string;
45565
+ plant_count: number;
45566
+ printed_at: string;
45567
+ shifted: boolean;
45568
+ status: string;
45569
+ }[];
45570
+ };
45143
45571
  logistics_order_pick_day: {
45144
45572
  Args: {
45145
45573
  p_order_ref: string;
@@ -45152,6 +45580,22 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
45152
45580
  };
45153
45581
  Returns: string;
45154
45582
  };
45583
+ logistics_pick_agenda: {
45584
+ Args: {
45585
+ p_from?: string;
45586
+ p_to?: string;
45587
+ };
45588
+ Returns: {
45589
+ cart_count: number;
45590
+ in_preparation: number;
45591
+ order_count: number;
45592
+ orders: import("../integrations/supabase/types").Json;
45593
+ pick_date: string;
45594
+ plant_count: number;
45595
+ ready: number;
45596
+ shifted_count: number;
45597
+ }[];
45598
+ };
45155
45599
  logistics_pick_email_purpose: {
45156
45600
  Args: never;
45157
45601
  Returns: string;
@@ -46130,6 +46574,12 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
46130
46574
  };
46131
46575
  Returns: string;
46132
46576
  };
46577
+ resolve_print_job_printer_id: {
46578
+ Args: {
46579
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
46580
+ };
46581
+ Returns: string;
46582
+ };
46133
46583
  resolve_product_id_for_item: {
46134
46584
  Args: {
46135
46585
  p_product_name: string;
@@ -46721,7 +47171,7 @@ export declare const replanBufferLoadCarriers: import("@tanstack/start-client-co
46721
47171
  };
46722
47172
  CompositeTypes: { [_ in never]: never; };
46723
47173
  }, {
46724
- PostgrestVersion: "14.17";
47174
+ PostgrestVersion: "14.5";
46725
47175
  }>;
46726
47176
  userId: string;
46727
47177
  claims: import("@supabase/auth-js").User;
@@ -49596,6 +50046,84 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
49596
50046
  };
49597
50047
  Relationships: [];
49598
50048
  };
50049
+ delivery_notes: {
50050
+ Row: {
50051
+ byte_size: number | null;
50052
+ connection_id: string | null;
50053
+ content_type: string;
50054
+ created_at: string;
50055
+ error_message: string | null;
50056
+ fetched_at: string | null;
50057
+ fulfillment_order_id: string | null;
50058
+ http_status: number | null;
50059
+ id: string;
50060
+ label_code: string | null;
50061
+ letter: string | null;
50062
+ load_carrier_index: number | null;
50063
+ load_carrier_type: string | null;
50064
+ order_id: string | null;
50065
+ order_number: string | null;
50066
+ packages: number | null;
50067
+ source: string;
50068
+ status: string;
50069
+ storage_bucket: string;
50070
+ storage_path: string | null;
50071
+ updated_at: string;
50072
+ };
50073
+ Insert: {
50074
+ byte_size?: number | null;
50075
+ connection_id?: string | null;
50076
+ content_type?: string;
50077
+ created_at?: string;
50078
+ error_message?: string | null;
50079
+ fetched_at?: string | null;
50080
+ fulfillment_order_id?: string | null;
50081
+ http_status?: number | null;
50082
+ id?: string;
50083
+ label_code?: string | null;
50084
+ letter?: string | null;
50085
+ load_carrier_index?: number | null;
50086
+ load_carrier_type?: string | null;
50087
+ order_id?: string | null;
50088
+ order_number?: string | null;
50089
+ packages?: number | null;
50090
+ source?: string;
50091
+ status?: string;
50092
+ storage_bucket?: string;
50093
+ storage_path?: string | null;
50094
+ updated_at?: string;
50095
+ };
50096
+ Update: {
50097
+ byte_size?: number | null;
50098
+ connection_id?: string | null;
50099
+ content_type?: string;
50100
+ created_at?: string;
50101
+ error_message?: string | null;
50102
+ fetched_at?: string | null;
50103
+ fulfillment_order_id?: string | null;
50104
+ http_status?: number | null;
50105
+ id?: string;
50106
+ label_code?: string | null;
50107
+ letter?: string | null;
50108
+ load_carrier_index?: number | null;
50109
+ load_carrier_type?: string | null;
50110
+ order_id?: string | null;
50111
+ order_number?: string | null;
50112
+ packages?: number | null;
50113
+ source?: string;
50114
+ status?: string;
50115
+ storage_bucket?: string;
50116
+ storage_path?: string | null;
50117
+ updated_at?: string;
50118
+ };
50119
+ Relationships: [{
50120
+ foreignKeyName: "delivery_notes_order_id_fkey";
50121
+ columns: ["order_id"];
50122
+ isOneToOne: false;
50123
+ referencedRelation: "orders";
50124
+ referencedColumns: ["id"];
50125
+ }];
50126
+ };
49599
50127
  document_bronregels: {
49600
50128
  Row: {
49601
50129
  bron: string;
@@ -60404,6 +60932,9 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
60404
60932
  is_herprint: boolean;
60405
60933
  kopieen: number;
60406
60934
  layout_id: string | null;
60935
+ lokaal_opgeslagen_op: string | null;
60936
+ lokale_pdf_fout: string | null;
60937
+ lokale_pdf_status: string | null;
60407
60938
  opgepakt_op: string | null;
60408
60939
  paginas: number;
60409
60940
  payload: import("../integrations/supabase/types").Json;
@@ -60412,6 +60943,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
60412
60943
  pogingen: number;
60413
60944
  printer_id: string | null;
60414
60945
  render_html: string | null;
60946
+ resultaat_pdf_base64: string | null;
60415
60947
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60416
60948
  updated_at: string;
60417
60949
  volgende_poging: string | null;
@@ -60436,6 +60968,9 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
60436
60968
  is_herprint?: boolean;
60437
60969
  kopieen?: number;
60438
60970
  layout_id?: string | null;
60971
+ lokaal_opgeslagen_op?: string | null;
60972
+ lokale_pdf_fout?: string | null;
60973
+ lokale_pdf_status?: string | null;
60439
60974
  opgepakt_op?: string | null;
60440
60975
  paginas?: number;
60441
60976
  payload?: import("../integrations/supabase/types").Json;
@@ -60444,6 +60979,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
60444
60979
  pogingen?: number;
60445
60980
  printer_id?: string | null;
60446
60981
  render_html?: string | null;
60982
+ resultaat_pdf_base64?: string | null;
60447
60983
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60448
60984
  updated_at?: string;
60449
60985
  volgende_poging?: string | null;
@@ -60468,6 +61004,9 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
60468
61004
  is_herprint?: boolean;
60469
61005
  kopieen?: number;
60470
61006
  layout_id?: string | null;
61007
+ lokaal_opgeslagen_op?: string | null;
61008
+ lokale_pdf_fout?: string | null;
61009
+ lokale_pdf_status?: string | null;
60471
61010
  opgepakt_op?: string | null;
60472
61011
  paginas?: number;
60473
61012
  payload?: import("../integrations/supabase/types").Json;
@@ -60476,6 +61015,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
60476
61015
  pogingen?: number;
60477
61016
  printer_id?: string | null;
60478
61017
  render_html?: string | null;
61018
+ resultaat_pdf_base64?: string | null;
60479
61019
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60480
61020
  updated_at?: string;
60481
61021
  volgende_poging?: string | null;
@@ -60866,6 +61406,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
60866
61406
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
60867
61407
  online: boolean;
60868
61408
  papierformaat: string;
61409
+ pdf_map: string | null;
60869
61410
  poort: number | null;
60870
61411
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60871
61412
  systeemnaam: string;
@@ -60891,6 +61432,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
60891
61432
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60892
61433
  online?: boolean;
60893
61434
  papierformaat?: string;
61435
+ pdf_map?: string | null;
60894
61436
  poort?: number | null;
60895
61437
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60896
61438
  systeemnaam?: string;
@@ -60916,6 +61458,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
60916
61458
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60917
61459
  online?: boolean;
60918
61460
  papierformaat?: string;
61461
+ pdf_map?: string | null;
60919
61462
  poort?: number | null;
60920
61463
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60921
61464
  systeemnaam?: string;
@@ -67172,6 +67715,9 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
67172
67715
  is_herprint: boolean;
67173
67716
  kopieen: number;
67174
67717
  layout_id: string | null;
67718
+ lokaal_opgeslagen_op: string | null;
67719
+ lokale_pdf_fout: string | null;
67720
+ lokale_pdf_status: string | null;
67175
67721
  opgepakt_op: string | null;
67176
67722
  paginas: number;
67177
67723
  payload: import("../integrations/supabase/types").Json;
@@ -67180,6 +67726,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
67180
67726
  pogingen: number;
67181
67727
  printer_id: string | null;
67182
67728
  render_html: string | null;
67729
+ resultaat_pdf_base64: string | null;
67183
67730
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67184
67731
  updated_at: string;
67185
67732
  volgende_poging: string | null;
@@ -67271,6 +67818,53 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
67271
67818
  isSetofReturn: true;
67272
67819
  };
67273
67820
  };
67821
+ claim_pdf_print_jobs: {
67822
+ Args: {
67823
+ _max?: number;
67824
+ };
67825
+ Returns: {
67826
+ agent_id: string | null;
67827
+ bron_job_id: string | null;
67828
+ created_at: string;
67829
+ documentnaam: string;
67830
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
67831
+ extern_job_id: string | null;
67832
+ foutmelding: string | null;
67833
+ gebruiker_id: string | null;
67834
+ gebruiker_naam: string;
67835
+ gebruikte_bron: string | null;
67836
+ gebruikte_layout_id: string | null;
67837
+ gestart_op: string | null;
67838
+ herkomst: string | null;
67839
+ id: string;
67840
+ idempotentie_sleutel: string | null;
67841
+ is_herprint: boolean;
67842
+ kopieen: number;
67843
+ layout_id: string | null;
67844
+ lokaal_opgeslagen_op: string | null;
67845
+ lokale_pdf_fout: string | null;
67846
+ lokale_pdf_status: string | null;
67847
+ opgepakt_op: string | null;
67848
+ paginas: number;
67849
+ payload: import("../integrations/supabase/types").Json;
67850
+ pdf_base64: string | null;
67851
+ pdf_url: string | null;
67852
+ pogingen: number;
67853
+ printer_id: string | null;
67854
+ render_html: string | null;
67855
+ resultaat_pdf_base64: string | null;
67856
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67857
+ updated_at: string;
67858
+ volgende_poging: string | null;
67859
+ voltooid_op: string | null;
67860
+ }[];
67861
+ SetofOptions: {
67862
+ from: "*";
67863
+ to: "print_jobs";
67864
+ isOneToOne: false;
67865
+ isSetofReturn: true;
67866
+ };
67867
+ };
67274
67868
  claim_print_jobs: {
67275
67869
  Args: {
67276
67870
  _agent_id: string;
@@ -67295,6 +67889,9 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
67295
67889
  is_herprint: boolean;
67296
67890
  kopieen: number;
67297
67891
  layout_id: string | null;
67892
+ lokaal_opgeslagen_op: string | null;
67893
+ lokale_pdf_fout: string | null;
67894
+ lokale_pdf_status: string | null;
67298
67895
  opgepakt_op: string | null;
67299
67896
  paginas: number;
67300
67897
  payload: import("../integrations/supabase/types").Json;
@@ -67303,6 +67900,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
67303
67900
  pogingen: number;
67304
67901
  printer_id: string | null;
67305
67902
  render_html: string | null;
67903
+ resultaat_pdf_base64: string | null;
67306
67904
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67307
67905
  updated_at: string;
67308
67906
  volgende_poging: string | null;
@@ -67443,6 +68041,8 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
67443
68041
  order_id: string;
67444
68042
  order_source: string;
67445
68043
  pick_date: string;
68044
+ printed_at: string;
68045
+ printed_today: boolean;
67446
68046
  status: string;
67447
68047
  }[];
67448
68048
  };
@@ -68151,6 +68751,10 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
68151
68751
  };
68152
68752
  Returns: number;
68153
68753
  };
68754
+ logistics_cancel_orphan_tasks: {
68755
+ Args: never;
68756
+ Returns: number;
68757
+ };
68154
68758
  logistics_capacity_day_check: {
68155
68759
  Args: {
68156
68760
  p_from?: string;
@@ -68171,6 +68775,25 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
68171
68775
  };
68172
68776
  Returns: number;
68173
68777
  };
68778
+ logistics_cart_index: {
68779
+ Args: {
68780
+ p_from?: string;
68781
+ p_to?: string;
68782
+ };
68783
+ Returns: {
68784
+ cart_id: string;
68785
+ cart_index: number;
68786
+ cart_label: string;
68787
+ is_shared: boolean;
68788
+ order_number: string;
68789
+ order_source: string;
68790
+ order_uuid: string;
68791
+ pick_date: string;
68792
+ printed_at: string;
68793
+ shifted: boolean;
68794
+ task_status: string;
68795
+ }[];
68796
+ };
68174
68797
  logistics_check_order_allowed: {
68175
68798
  Args: {
68176
68799
  p_lines: import("../integrations/supabase/types").Json;
@@ -68319,6 +68942,17 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
68319
68942
  isSetofReturn: false;
68320
68943
  };
68321
68944
  };
68945
+ logistics_consistency_check: {
68946
+ Args: never;
68947
+ Returns: {
68948
+ agenda_carts: number;
68949
+ control_carts: number;
68950
+ ok: boolean;
68951
+ orphan_tasks: number;
68952
+ pick_date: string;
68953
+ raw_carts: number;
68954
+ }[];
68955
+ };
68322
68956
  logistics_delay_customer_email: {
68323
68957
  Args: {
68324
68958
  p_customer: string;
@@ -68512,6 +69146,25 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
68512
69146
  };
68513
69147
  Returns: number;
68514
69148
  };
69149
+ logistics_order_overview: {
69150
+ Args: {
69151
+ p_from?: string;
69152
+ p_to?: string;
69153
+ };
69154
+ Returns: {
69155
+ cart_count: number;
69156
+ customer_name: string;
69157
+ delivery_date: string;
69158
+ order_number: string;
69159
+ order_source: string;
69160
+ order_uuid: string;
69161
+ pick_date: string;
69162
+ plant_count: number;
69163
+ printed_at: string;
69164
+ shifted: boolean;
69165
+ status: string;
69166
+ }[];
69167
+ };
68515
69168
  logistics_order_pick_day: {
68516
69169
  Args: {
68517
69170
  p_order_ref: string;
@@ -68524,6 +69177,22 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
68524
69177
  };
68525
69178
  Returns: string;
68526
69179
  };
69180
+ logistics_pick_agenda: {
69181
+ Args: {
69182
+ p_from?: string;
69183
+ p_to?: string;
69184
+ };
69185
+ Returns: {
69186
+ cart_count: number;
69187
+ in_preparation: number;
69188
+ order_count: number;
69189
+ orders: import("../integrations/supabase/types").Json;
69190
+ pick_date: string;
69191
+ plant_count: number;
69192
+ ready: number;
69193
+ shifted_count: number;
69194
+ }[];
69195
+ };
68527
69196
  logistics_pick_email_purpose: {
68528
69197
  Args: never;
68529
69198
  Returns: string;
@@ -69502,6 +70171,12 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
69502
70171
  };
69503
70172
  Returns: string;
69504
70173
  };
70174
+ resolve_print_job_printer_id: {
70175
+ Args: {
70176
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
70177
+ };
70178
+ Returns: string;
70179
+ };
69505
70180
  resolve_product_id_for_item: {
69506
70181
  Args: {
69507
70182
  p_product_name: string;
@@ -70093,7 +70768,7 @@ export declare const planAllLoadCarriers: import("@tanstack/start-client-core").
70093
70768
  };
70094
70769
  CompositeTypes: { [_ in never]: never; };
70095
70770
  }, {
70096
- PostgrestVersion: "14.17";
70771
+ PostgrestVersion: "14.5";
70097
70772
  }>;
70098
70773
  userId: string;
70099
70774
  claims: import("@supabase/auth-js").User;
@@ -72968,6 +73643,84 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
72968
73643
  };
72969
73644
  Relationships: [];
72970
73645
  };
73646
+ delivery_notes: {
73647
+ Row: {
73648
+ byte_size: number | null;
73649
+ connection_id: string | null;
73650
+ content_type: string;
73651
+ created_at: string;
73652
+ error_message: string | null;
73653
+ fetched_at: string | null;
73654
+ fulfillment_order_id: string | null;
73655
+ http_status: number | null;
73656
+ id: string;
73657
+ label_code: string | null;
73658
+ letter: string | null;
73659
+ load_carrier_index: number | null;
73660
+ load_carrier_type: string | null;
73661
+ order_id: string | null;
73662
+ order_number: string | null;
73663
+ packages: number | null;
73664
+ source: string;
73665
+ status: string;
73666
+ storage_bucket: string;
73667
+ storage_path: string | null;
73668
+ updated_at: string;
73669
+ };
73670
+ Insert: {
73671
+ byte_size?: number | null;
73672
+ connection_id?: string | null;
73673
+ content_type?: string;
73674
+ created_at?: string;
73675
+ error_message?: string | null;
73676
+ fetched_at?: string | null;
73677
+ fulfillment_order_id?: string | null;
73678
+ http_status?: number | null;
73679
+ id?: string;
73680
+ label_code?: string | null;
73681
+ letter?: string | null;
73682
+ load_carrier_index?: number | null;
73683
+ load_carrier_type?: string | null;
73684
+ order_id?: string | null;
73685
+ order_number?: string | null;
73686
+ packages?: number | null;
73687
+ source?: string;
73688
+ status?: string;
73689
+ storage_bucket?: string;
73690
+ storage_path?: string | null;
73691
+ updated_at?: string;
73692
+ };
73693
+ Update: {
73694
+ byte_size?: number | null;
73695
+ connection_id?: string | null;
73696
+ content_type?: string;
73697
+ created_at?: string;
73698
+ error_message?: string | null;
73699
+ fetched_at?: string | null;
73700
+ fulfillment_order_id?: string | null;
73701
+ http_status?: number | null;
73702
+ id?: string;
73703
+ label_code?: string | null;
73704
+ letter?: string | null;
73705
+ load_carrier_index?: number | null;
73706
+ load_carrier_type?: string | null;
73707
+ order_id?: string | null;
73708
+ order_number?: string | null;
73709
+ packages?: number | null;
73710
+ source?: string;
73711
+ status?: string;
73712
+ storage_bucket?: string;
73713
+ storage_path?: string | null;
73714
+ updated_at?: string;
73715
+ };
73716
+ Relationships: [{
73717
+ foreignKeyName: "delivery_notes_order_id_fkey";
73718
+ columns: ["order_id"];
73719
+ isOneToOne: false;
73720
+ referencedRelation: "orders";
73721
+ referencedColumns: ["id"];
73722
+ }];
73723
+ };
72971
73724
  document_bronregels: {
72972
73725
  Row: {
72973
73726
  bron: string;
@@ -83776,6 +84529,9 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
83776
84529
  is_herprint: boolean;
83777
84530
  kopieen: number;
83778
84531
  layout_id: string | null;
84532
+ lokaal_opgeslagen_op: string | null;
84533
+ lokale_pdf_fout: string | null;
84534
+ lokale_pdf_status: string | null;
83779
84535
  opgepakt_op: string | null;
83780
84536
  paginas: number;
83781
84537
  payload: import("../integrations/supabase/types").Json;
@@ -83784,6 +84540,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
83784
84540
  pogingen: number;
83785
84541
  printer_id: string | null;
83786
84542
  render_html: string | null;
84543
+ resultaat_pdf_base64: string | null;
83787
84544
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83788
84545
  updated_at: string;
83789
84546
  volgende_poging: string | null;
@@ -83808,6 +84565,9 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
83808
84565
  is_herprint?: boolean;
83809
84566
  kopieen?: number;
83810
84567
  layout_id?: string | null;
84568
+ lokaal_opgeslagen_op?: string | null;
84569
+ lokale_pdf_fout?: string | null;
84570
+ lokale_pdf_status?: string | null;
83811
84571
  opgepakt_op?: string | null;
83812
84572
  paginas?: number;
83813
84573
  payload?: import("../integrations/supabase/types").Json;
@@ -83816,6 +84576,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
83816
84576
  pogingen?: number;
83817
84577
  printer_id?: string | null;
83818
84578
  render_html?: string | null;
84579
+ resultaat_pdf_base64?: string | null;
83819
84580
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83820
84581
  updated_at?: string;
83821
84582
  volgende_poging?: string | null;
@@ -83840,6 +84601,9 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
83840
84601
  is_herprint?: boolean;
83841
84602
  kopieen?: number;
83842
84603
  layout_id?: string | null;
84604
+ lokaal_opgeslagen_op?: string | null;
84605
+ lokale_pdf_fout?: string | null;
84606
+ lokale_pdf_status?: string | null;
83843
84607
  opgepakt_op?: string | null;
83844
84608
  paginas?: number;
83845
84609
  payload?: import("../integrations/supabase/types").Json;
@@ -83848,6 +84612,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
83848
84612
  pogingen?: number;
83849
84613
  printer_id?: string | null;
83850
84614
  render_html?: string | null;
84615
+ resultaat_pdf_base64?: string | null;
83851
84616
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83852
84617
  updated_at?: string;
83853
84618
  volgende_poging?: string | null;
@@ -84238,6 +85003,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
84238
85003
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
84239
85004
  online: boolean;
84240
85005
  papierformaat: string;
85006
+ pdf_map: string | null;
84241
85007
  poort: number | null;
84242
85008
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
84243
85009
  systeemnaam: string;
@@ -84263,6 +85029,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
84263
85029
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
84264
85030
  online?: boolean;
84265
85031
  papierformaat?: string;
85032
+ pdf_map?: string | null;
84266
85033
  poort?: number | null;
84267
85034
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
84268
85035
  systeemnaam?: string;
@@ -84288,6 +85055,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
84288
85055
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
84289
85056
  online?: boolean;
84290
85057
  papierformaat?: string;
85058
+ pdf_map?: string | null;
84291
85059
  poort?: number | null;
84292
85060
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
84293
85061
  systeemnaam?: string;
@@ -90544,6 +91312,9 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
90544
91312
  is_herprint: boolean;
90545
91313
  kopieen: number;
90546
91314
  layout_id: string | null;
91315
+ lokaal_opgeslagen_op: string | null;
91316
+ lokale_pdf_fout: string | null;
91317
+ lokale_pdf_status: string | null;
90547
91318
  opgepakt_op: string | null;
90548
91319
  paginas: number;
90549
91320
  payload: import("../integrations/supabase/types").Json;
@@ -90552,6 +91323,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
90552
91323
  pogingen: number;
90553
91324
  printer_id: string | null;
90554
91325
  render_html: string | null;
91326
+ resultaat_pdf_base64: string | null;
90555
91327
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90556
91328
  updated_at: string;
90557
91329
  volgende_poging: string | null;
@@ -90643,6 +91415,53 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
90643
91415
  isSetofReturn: true;
90644
91416
  };
90645
91417
  };
91418
+ claim_pdf_print_jobs: {
91419
+ Args: {
91420
+ _max?: number;
91421
+ };
91422
+ Returns: {
91423
+ agent_id: string | null;
91424
+ bron_job_id: string | null;
91425
+ created_at: string;
91426
+ documentnaam: string;
91427
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
91428
+ extern_job_id: string | null;
91429
+ foutmelding: string | null;
91430
+ gebruiker_id: string | null;
91431
+ gebruiker_naam: string;
91432
+ gebruikte_bron: string | null;
91433
+ gebruikte_layout_id: string | null;
91434
+ gestart_op: string | null;
91435
+ herkomst: string | null;
91436
+ id: string;
91437
+ idempotentie_sleutel: string | null;
91438
+ is_herprint: boolean;
91439
+ kopieen: number;
91440
+ layout_id: string | null;
91441
+ lokaal_opgeslagen_op: string | null;
91442
+ lokale_pdf_fout: string | null;
91443
+ lokale_pdf_status: string | null;
91444
+ opgepakt_op: string | null;
91445
+ paginas: number;
91446
+ payload: import("../integrations/supabase/types").Json;
91447
+ pdf_base64: string | null;
91448
+ pdf_url: string | null;
91449
+ pogingen: number;
91450
+ printer_id: string | null;
91451
+ render_html: string | null;
91452
+ resultaat_pdf_base64: string | null;
91453
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
91454
+ updated_at: string;
91455
+ volgende_poging: string | null;
91456
+ voltooid_op: string | null;
91457
+ }[];
91458
+ SetofOptions: {
91459
+ from: "*";
91460
+ to: "print_jobs";
91461
+ isOneToOne: false;
91462
+ isSetofReturn: true;
91463
+ };
91464
+ };
90646
91465
  claim_print_jobs: {
90647
91466
  Args: {
90648
91467
  _agent_id: string;
@@ -90667,6 +91486,9 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
90667
91486
  is_herprint: boolean;
90668
91487
  kopieen: number;
90669
91488
  layout_id: string | null;
91489
+ lokaal_opgeslagen_op: string | null;
91490
+ lokale_pdf_fout: string | null;
91491
+ lokale_pdf_status: string | null;
90670
91492
  opgepakt_op: string | null;
90671
91493
  paginas: number;
90672
91494
  payload: import("../integrations/supabase/types").Json;
@@ -90675,6 +91497,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
90675
91497
  pogingen: number;
90676
91498
  printer_id: string | null;
90677
91499
  render_html: string | null;
91500
+ resultaat_pdf_base64: string | null;
90678
91501
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90679
91502
  updated_at: string;
90680
91503
  volgende_poging: string | null;
@@ -90815,6 +91638,8 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
90815
91638
  order_id: string;
90816
91639
  order_source: string;
90817
91640
  pick_date: string;
91641
+ printed_at: string;
91642
+ printed_today: boolean;
90818
91643
  status: string;
90819
91644
  }[];
90820
91645
  };
@@ -91523,6 +92348,10 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
91523
92348
  };
91524
92349
  Returns: number;
91525
92350
  };
92351
+ logistics_cancel_orphan_tasks: {
92352
+ Args: never;
92353
+ Returns: number;
92354
+ };
91526
92355
  logistics_capacity_day_check: {
91527
92356
  Args: {
91528
92357
  p_from?: string;
@@ -91543,6 +92372,25 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
91543
92372
  };
91544
92373
  Returns: number;
91545
92374
  };
92375
+ logistics_cart_index: {
92376
+ Args: {
92377
+ p_from?: string;
92378
+ p_to?: string;
92379
+ };
92380
+ Returns: {
92381
+ cart_id: string;
92382
+ cart_index: number;
92383
+ cart_label: string;
92384
+ is_shared: boolean;
92385
+ order_number: string;
92386
+ order_source: string;
92387
+ order_uuid: string;
92388
+ pick_date: string;
92389
+ printed_at: string;
92390
+ shifted: boolean;
92391
+ task_status: string;
92392
+ }[];
92393
+ };
91546
92394
  logistics_check_order_allowed: {
91547
92395
  Args: {
91548
92396
  p_lines: import("../integrations/supabase/types").Json;
@@ -91691,6 +92539,17 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
91691
92539
  isSetofReturn: false;
91692
92540
  };
91693
92541
  };
92542
+ logistics_consistency_check: {
92543
+ Args: never;
92544
+ Returns: {
92545
+ agenda_carts: number;
92546
+ control_carts: number;
92547
+ ok: boolean;
92548
+ orphan_tasks: number;
92549
+ pick_date: string;
92550
+ raw_carts: number;
92551
+ }[];
92552
+ };
91694
92553
  logistics_delay_customer_email: {
91695
92554
  Args: {
91696
92555
  p_customer: string;
@@ -91884,6 +92743,25 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
91884
92743
  };
91885
92744
  Returns: number;
91886
92745
  };
92746
+ logistics_order_overview: {
92747
+ Args: {
92748
+ p_from?: string;
92749
+ p_to?: string;
92750
+ };
92751
+ Returns: {
92752
+ cart_count: number;
92753
+ customer_name: string;
92754
+ delivery_date: string;
92755
+ order_number: string;
92756
+ order_source: string;
92757
+ order_uuid: string;
92758
+ pick_date: string;
92759
+ plant_count: number;
92760
+ printed_at: string;
92761
+ shifted: boolean;
92762
+ status: string;
92763
+ }[];
92764
+ };
91887
92765
  logistics_order_pick_day: {
91888
92766
  Args: {
91889
92767
  p_order_ref: string;
@@ -91896,6 +92774,22 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
91896
92774
  };
91897
92775
  Returns: string;
91898
92776
  };
92777
+ logistics_pick_agenda: {
92778
+ Args: {
92779
+ p_from?: string;
92780
+ p_to?: string;
92781
+ };
92782
+ Returns: {
92783
+ cart_count: number;
92784
+ in_preparation: number;
92785
+ order_count: number;
92786
+ orders: import("../integrations/supabase/types").Json;
92787
+ pick_date: string;
92788
+ plant_count: number;
92789
+ ready: number;
92790
+ shifted_count: number;
92791
+ }[];
92792
+ };
91899
92793
  logistics_pick_email_purpose: {
91900
92794
  Args: never;
91901
92795
  Returns: string;
@@ -92874,6 +93768,12 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
92874
93768
  };
92875
93769
  Returns: string;
92876
93770
  };
93771
+ resolve_print_job_printer_id: {
93772
+ Args: {
93773
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
93774
+ };
93775
+ Returns: string;
93776
+ };
92877
93777
  resolve_product_id_for_item: {
92878
93778
  Args: {
92879
93779
  p_product_name: string;
@@ -93465,7 +94365,7 @@ export declare const ensureLogisticsTasks: import("@tanstack/start-client-core")
93465
94365
  };
93466
94366
  CompositeTypes: { [_ in never]: never; };
93467
94367
  }, {
93468
- PostgrestVersion: "14.17";
94368
+ PostgrestVersion: "14.5";
93469
94369
  }>;
93470
94370
  userId: string;
93471
94371
  claims: import("@supabase/auth-js").User;
@@ -96338,6 +97238,84 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
96338
97238
  };
96339
97239
  Relationships: [];
96340
97240
  };
97241
+ delivery_notes: {
97242
+ Row: {
97243
+ byte_size: number | null;
97244
+ connection_id: string | null;
97245
+ content_type: string;
97246
+ created_at: string;
97247
+ error_message: string | null;
97248
+ fetched_at: string | null;
97249
+ fulfillment_order_id: string | null;
97250
+ http_status: number | null;
97251
+ id: string;
97252
+ label_code: string | null;
97253
+ letter: string | null;
97254
+ load_carrier_index: number | null;
97255
+ load_carrier_type: string | null;
97256
+ order_id: string | null;
97257
+ order_number: string | null;
97258
+ packages: number | null;
97259
+ source: string;
97260
+ status: string;
97261
+ storage_bucket: string;
97262
+ storage_path: string | null;
97263
+ updated_at: string;
97264
+ };
97265
+ Insert: {
97266
+ byte_size?: number | null;
97267
+ connection_id?: string | null;
97268
+ content_type?: string;
97269
+ created_at?: string;
97270
+ error_message?: string | null;
97271
+ fetched_at?: string | null;
97272
+ fulfillment_order_id?: string | null;
97273
+ http_status?: number | null;
97274
+ id?: string;
97275
+ label_code?: string | null;
97276
+ letter?: string | null;
97277
+ load_carrier_index?: number | null;
97278
+ load_carrier_type?: string | null;
97279
+ order_id?: string | null;
97280
+ order_number?: string | null;
97281
+ packages?: number | null;
97282
+ source?: string;
97283
+ status?: string;
97284
+ storage_bucket?: string;
97285
+ storage_path?: string | null;
97286
+ updated_at?: string;
97287
+ };
97288
+ Update: {
97289
+ byte_size?: number | null;
97290
+ connection_id?: string | null;
97291
+ content_type?: string;
97292
+ created_at?: string;
97293
+ error_message?: string | null;
97294
+ fetched_at?: string | null;
97295
+ fulfillment_order_id?: string | null;
97296
+ http_status?: number | null;
97297
+ id?: string;
97298
+ label_code?: string | null;
97299
+ letter?: string | null;
97300
+ load_carrier_index?: number | null;
97301
+ load_carrier_type?: string | null;
97302
+ order_id?: string | null;
97303
+ order_number?: string | null;
97304
+ packages?: number | null;
97305
+ source?: string;
97306
+ status?: string;
97307
+ storage_bucket?: string;
97308
+ storage_path?: string | null;
97309
+ updated_at?: string;
97310
+ };
97311
+ Relationships: [{
97312
+ foreignKeyName: "delivery_notes_order_id_fkey";
97313
+ columns: ["order_id"];
97314
+ isOneToOne: false;
97315
+ referencedRelation: "orders";
97316
+ referencedColumns: ["id"];
97317
+ }];
97318
+ };
96341
97319
  document_bronregels: {
96342
97320
  Row: {
96343
97321
  bron: string;
@@ -107146,6 +108124,9 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
107146
108124
  is_herprint: boolean;
107147
108125
  kopieen: number;
107148
108126
  layout_id: string | null;
108127
+ lokaal_opgeslagen_op: string | null;
108128
+ lokale_pdf_fout: string | null;
108129
+ lokale_pdf_status: string | null;
107149
108130
  opgepakt_op: string | null;
107150
108131
  paginas: number;
107151
108132
  payload: import("../integrations/supabase/types").Json;
@@ -107154,6 +108135,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
107154
108135
  pogingen: number;
107155
108136
  printer_id: string | null;
107156
108137
  render_html: string | null;
108138
+ resultaat_pdf_base64: string | null;
107157
108139
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
107158
108140
  updated_at: string;
107159
108141
  volgende_poging: string | null;
@@ -107178,6 +108160,9 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
107178
108160
  is_herprint?: boolean;
107179
108161
  kopieen?: number;
107180
108162
  layout_id?: string | null;
108163
+ lokaal_opgeslagen_op?: string | null;
108164
+ lokale_pdf_fout?: string | null;
108165
+ lokale_pdf_status?: string | null;
107181
108166
  opgepakt_op?: string | null;
107182
108167
  paginas?: number;
107183
108168
  payload?: import("../integrations/supabase/types").Json;
@@ -107186,6 +108171,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
107186
108171
  pogingen?: number;
107187
108172
  printer_id?: string | null;
107188
108173
  render_html?: string | null;
108174
+ resultaat_pdf_base64?: string | null;
107189
108175
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
107190
108176
  updated_at?: string;
107191
108177
  volgende_poging?: string | null;
@@ -107210,6 +108196,9 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
107210
108196
  is_herprint?: boolean;
107211
108197
  kopieen?: number;
107212
108198
  layout_id?: string | null;
108199
+ lokaal_opgeslagen_op?: string | null;
108200
+ lokale_pdf_fout?: string | null;
108201
+ lokale_pdf_status?: string | null;
107213
108202
  opgepakt_op?: string | null;
107214
108203
  paginas?: number;
107215
108204
  payload?: import("../integrations/supabase/types").Json;
@@ -107218,6 +108207,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
107218
108207
  pogingen?: number;
107219
108208
  printer_id?: string | null;
107220
108209
  render_html?: string | null;
108210
+ resultaat_pdf_base64?: string | null;
107221
108211
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
107222
108212
  updated_at?: string;
107223
108213
  volgende_poging?: string | null;
@@ -107608,6 +108598,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
107608
108598
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
107609
108599
  online: boolean;
107610
108600
  papierformaat: string;
108601
+ pdf_map: string | null;
107611
108602
  poort: number | null;
107612
108603
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107613
108604
  systeemnaam: string;
@@ -107633,6 +108624,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
107633
108624
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
107634
108625
  online?: boolean;
107635
108626
  papierformaat?: string;
108627
+ pdf_map?: string | null;
107636
108628
  poort?: number | null;
107637
108629
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107638
108630
  systeemnaam?: string;
@@ -107658,6 +108650,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
107658
108650
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
107659
108651
  online?: boolean;
107660
108652
  papierformaat?: string;
108653
+ pdf_map?: string | null;
107661
108654
  poort?: number | null;
107662
108655
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107663
108656
  systeemnaam?: string;
@@ -113914,6 +114907,9 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
113914
114907
  is_herprint: boolean;
113915
114908
  kopieen: number;
113916
114909
  layout_id: string | null;
114910
+ lokaal_opgeslagen_op: string | null;
114911
+ lokale_pdf_fout: string | null;
114912
+ lokale_pdf_status: string | null;
113917
114913
  opgepakt_op: string | null;
113918
114914
  paginas: number;
113919
114915
  payload: import("../integrations/supabase/types").Json;
@@ -113922,6 +114918,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
113922
114918
  pogingen: number;
113923
114919
  printer_id: string | null;
113924
114920
  render_html: string | null;
114921
+ resultaat_pdf_base64: string | null;
113925
114922
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
113926
114923
  updated_at: string;
113927
114924
  volgende_poging: string | null;
@@ -114013,6 +115010,53 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
114013
115010
  isSetofReturn: true;
114014
115011
  };
114015
115012
  };
115013
+ claim_pdf_print_jobs: {
115014
+ Args: {
115015
+ _max?: number;
115016
+ };
115017
+ Returns: {
115018
+ agent_id: string | null;
115019
+ bron_job_id: string | null;
115020
+ created_at: string;
115021
+ documentnaam: string;
115022
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
115023
+ extern_job_id: string | null;
115024
+ foutmelding: string | null;
115025
+ gebruiker_id: string | null;
115026
+ gebruiker_naam: string;
115027
+ gebruikte_bron: string | null;
115028
+ gebruikte_layout_id: string | null;
115029
+ gestart_op: string | null;
115030
+ herkomst: string | null;
115031
+ id: string;
115032
+ idempotentie_sleutel: string | null;
115033
+ is_herprint: boolean;
115034
+ kopieen: number;
115035
+ layout_id: string | null;
115036
+ lokaal_opgeslagen_op: string | null;
115037
+ lokale_pdf_fout: string | null;
115038
+ lokale_pdf_status: string | null;
115039
+ opgepakt_op: string | null;
115040
+ paginas: number;
115041
+ payload: import("../integrations/supabase/types").Json;
115042
+ pdf_base64: string | null;
115043
+ pdf_url: string | null;
115044
+ pogingen: number;
115045
+ printer_id: string | null;
115046
+ render_html: string | null;
115047
+ resultaat_pdf_base64: string | null;
115048
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
115049
+ updated_at: string;
115050
+ volgende_poging: string | null;
115051
+ voltooid_op: string | null;
115052
+ }[];
115053
+ SetofOptions: {
115054
+ from: "*";
115055
+ to: "print_jobs";
115056
+ isOneToOne: false;
115057
+ isSetofReturn: true;
115058
+ };
115059
+ };
114016
115060
  claim_print_jobs: {
114017
115061
  Args: {
114018
115062
  _agent_id: string;
@@ -114037,6 +115081,9 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
114037
115081
  is_herprint: boolean;
114038
115082
  kopieen: number;
114039
115083
  layout_id: string | null;
115084
+ lokaal_opgeslagen_op: string | null;
115085
+ lokale_pdf_fout: string | null;
115086
+ lokale_pdf_status: string | null;
114040
115087
  opgepakt_op: string | null;
114041
115088
  paginas: number;
114042
115089
  payload: import("../integrations/supabase/types").Json;
@@ -114045,6 +115092,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
114045
115092
  pogingen: number;
114046
115093
  printer_id: string | null;
114047
115094
  render_html: string | null;
115095
+ resultaat_pdf_base64: string | null;
114048
115096
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
114049
115097
  updated_at: string;
114050
115098
  volgende_poging: string | null;
@@ -114185,6 +115233,8 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
114185
115233
  order_id: string;
114186
115234
  order_source: string;
114187
115235
  pick_date: string;
115236
+ printed_at: string;
115237
+ printed_today: boolean;
114188
115238
  status: string;
114189
115239
  }[];
114190
115240
  };
@@ -114893,6 +115943,10 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
114893
115943
  };
114894
115944
  Returns: number;
114895
115945
  };
115946
+ logistics_cancel_orphan_tasks: {
115947
+ Args: never;
115948
+ Returns: number;
115949
+ };
114896
115950
  logistics_capacity_day_check: {
114897
115951
  Args: {
114898
115952
  p_from?: string;
@@ -114913,6 +115967,25 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
114913
115967
  };
114914
115968
  Returns: number;
114915
115969
  };
115970
+ logistics_cart_index: {
115971
+ Args: {
115972
+ p_from?: string;
115973
+ p_to?: string;
115974
+ };
115975
+ Returns: {
115976
+ cart_id: string;
115977
+ cart_index: number;
115978
+ cart_label: string;
115979
+ is_shared: boolean;
115980
+ order_number: string;
115981
+ order_source: string;
115982
+ order_uuid: string;
115983
+ pick_date: string;
115984
+ printed_at: string;
115985
+ shifted: boolean;
115986
+ task_status: string;
115987
+ }[];
115988
+ };
114916
115989
  logistics_check_order_allowed: {
114917
115990
  Args: {
114918
115991
  p_lines: import("../integrations/supabase/types").Json;
@@ -115061,6 +116134,17 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
115061
116134
  isSetofReturn: false;
115062
116135
  };
115063
116136
  };
116137
+ logistics_consistency_check: {
116138
+ Args: never;
116139
+ Returns: {
116140
+ agenda_carts: number;
116141
+ control_carts: number;
116142
+ ok: boolean;
116143
+ orphan_tasks: number;
116144
+ pick_date: string;
116145
+ raw_carts: number;
116146
+ }[];
116147
+ };
115064
116148
  logistics_delay_customer_email: {
115065
116149
  Args: {
115066
116150
  p_customer: string;
@@ -115254,6 +116338,25 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
115254
116338
  };
115255
116339
  Returns: number;
115256
116340
  };
116341
+ logistics_order_overview: {
116342
+ Args: {
116343
+ p_from?: string;
116344
+ p_to?: string;
116345
+ };
116346
+ Returns: {
116347
+ cart_count: number;
116348
+ customer_name: string;
116349
+ delivery_date: string;
116350
+ order_number: string;
116351
+ order_source: string;
116352
+ order_uuid: string;
116353
+ pick_date: string;
116354
+ plant_count: number;
116355
+ printed_at: string;
116356
+ shifted: boolean;
116357
+ status: string;
116358
+ }[];
116359
+ };
115257
116360
  logistics_order_pick_day: {
115258
116361
  Args: {
115259
116362
  p_order_ref: string;
@@ -115266,6 +116369,22 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
115266
116369
  };
115267
116370
  Returns: string;
115268
116371
  };
116372
+ logistics_pick_agenda: {
116373
+ Args: {
116374
+ p_from?: string;
116375
+ p_to?: string;
116376
+ };
116377
+ Returns: {
116378
+ cart_count: number;
116379
+ in_preparation: number;
116380
+ order_count: number;
116381
+ orders: import("../integrations/supabase/types").Json;
116382
+ pick_date: string;
116383
+ plant_count: number;
116384
+ ready: number;
116385
+ shifted_count: number;
116386
+ }[];
116387
+ };
115269
116388
  logistics_pick_email_purpose: {
115270
116389
  Args: never;
115271
116390
  Returns: string;
@@ -116244,6 +117363,12 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
116244
117363
  };
116245
117364
  Returns: string;
116246
117365
  };
117366
+ resolve_print_job_printer_id: {
117367
+ Args: {
117368
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
117369
+ };
117370
+ Returns: string;
117371
+ };
116247
117372
  resolve_product_id_for_item: {
116248
117373
  Args: {
116249
117374
  p_product_name: string;
@@ -116835,7 +117960,7 @@ export declare const previewLoadCarrierPlan: import("@tanstack/start-client-core
116835
117960
  };
116836
117961
  CompositeTypes: { [_ in never]: never; };
116837
117962
  }, {
116838
- PostgrestVersion: "14.17";
117963
+ PostgrestVersion: "14.5";
116839
117964
  }>;
116840
117965
  userId: string;
116841
117966
  claims: import("@supabase/auth-js").User;