@flowselections/floriday-verkoop-module 1.0.56 → 1.0.57

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 (66) hide show
  1. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
  2. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.js +5 -5
  3. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  4. package/dist-lib/components/verkoop/SalesOrdersTable.js +17 -4
  5. package/dist-lib/integrations/supabase/auth-middleware.d.ts +344 -10
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/client.d.ts +344 -10
  8. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/client.server.d.ts +344 -10
  10. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/types.d.ts +346 -10
  12. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  13. package/dist-lib/lib/cart-lock.functions.d.ts +344 -10
  14. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/cart-planning-settings.functions.d.ts +3906 -232
  16. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/cart-replan.functions.d.ts +1032 -30
  18. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/create-order.functions.d.ts +6128 -450
  20. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +1032 -30
  22. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floriday-gateway.server.d.ts +14 -0
  24. package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday-gateway.server.js +46 -0
  26. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +23961 -20
  27. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday-logistic-labels.functions.js +209 -90
  29. package/dist-lib/lib/floriday-mirror.functions.d.ts +344 -10
  30. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/floriday-public.functions.d.ts +2451 -113
  32. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floriday-sync.d.ts.map +1 -1
  34. package/dist-lib/lib/floriday-writes.functions.d.ts +1763 -93
  35. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/invoice-timing.functions.d.ts +1376 -40
  37. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/load-carriers.functions.d.ts +344 -10
  39. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/logistics-engine.functions.d.ts +1763 -93
  41. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/logistics-stock.functions.d.ts +688 -20
  43. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/order-addresses.functions.d.ts +344 -10
  45. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/order-buffers.functions.d.ts +1032 -30
  47. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/order-carrier.functions.d.ts +688 -20
  49. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/order-pickup.functions.d.ts +688 -20
  51. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/order-shipments.functions.d.ts +1376 -40
  53. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/salesorders-list.functions.d.ts +344 -10
  55. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  57. package/dist-lib/lib/salesorders-list.server.js +43 -1
  58. package/dist-lib/lib/salesorders-mapping.d.ts +8 -0
  59. package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
  60. package/dist-lib/lib/salesorders.functions.d.ts +1763 -93
  61. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +688 -20
  63. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/tradeitems.functions.d.ts +344 -10
  65. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  66. package/package.json +131 -131
@@ -2852,6 +2852,84 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
2852
2852
  };
2853
2853
  Relationships: [];
2854
2854
  };
2855
+ delivery_notes: {
2856
+ Row: {
2857
+ byte_size: number | null;
2858
+ connection_id: string | null;
2859
+ content_type: string;
2860
+ created_at: string;
2861
+ error_message: string | null;
2862
+ fetched_at: string | null;
2863
+ fulfillment_order_id: string | null;
2864
+ http_status: number | null;
2865
+ id: string;
2866
+ label_code: string | null;
2867
+ letter: string | null;
2868
+ load_carrier_index: number | null;
2869
+ load_carrier_type: string | null;
2870
+ order_id: string | null;
2871
+ order_number: string | null;
2872
+ packages: number | null;
2873
+ source: string;
2874
+ status: string;
2875
+ storage_bucket: string;
2876
+ storage_path: string | null;
2877
+ updated_at: string;
2878
+ };
2879
+ Insert: {
2880
+ byte_size?: number | null;
2881
+ connection_id?: string | null;
2882
+ content_type?: string;
2883
+ created_at?: string;
2884
+ error_message?: string | null;
2885
+ fetched_at?: string | null;
2886
+ fulfillment_order_id?: string | null;
2887
+ http_status?: number | null;
2888
+ id?: string;
2889
+ label_code?: string | null;
2890
+ letter?: string | null;
2891
+ load_carrier_index?: number | null;
2892
+ load_carrier_type?: string | null;
2893
+ order_id?: string | null;
2894
+ order_number?: string | null;
2895
+ packages?: number | null;
2896
+ source?: string;
2897
+ status?: string;
2898
+ storage_bucket?: string;
2899
+ storage_path?: string | null;
2900
+ updated_at?: string;
2901
+ };
2902
+ Update: {
2903
+ byte_size?: number | null;
2904
+ connection_id?: string | null;
2905
+ content_type?: string;
2906
+ created_at?: string;
2907
+ error_message?: string | null;
2908
+ fetched_at?: string | null;
2909
+ fulfillment_order_id?: string | null;
2910
+ http_status?: number | null;
2911
+ id?: string;
2912
+ label_code?: string | null;
2913
+ letter?: string | null;
2914
+ load_carrier_index?: number | null;
2915
+ load_carrier_type?: string | null;
2916
+ order_id?: string | null;
2917
+ order_number?: string | null;
2918
+ packages?: number | null;
2919
+ source?: string;
2920
+ status?: string;
2921
+ storage_bucket?: string;
2922
+ storage_path?: string | null;
2923
+ updated_at?: string;
2924
+ };
2925
+ Relationships: [{
2926
+ foreignKeyName: "delivery_notes_order_id_fkey";
2927
+ columns: ["order_id"];
2928
+ isOneToOne: false;
2929
+ referencedRelation: "orders";
2930
+ referencedColumns: ["id"];
2931
+ }];
2932
+ };
2855
2933
  document_bronregels: {
2856
2934
  Row: {
2857
2935
  bron: string;
@@ -5905,10 +5983,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
5905
5983
  };
5906
5984
  floriday_connections: {
5907
5985
  Row: {
5908
- access_token: string | null;
5909
5986
  api_key: string;
5910
- client_id: string;
5911
- client_secret: string;
5912
5987
  created_at: string;
5913
5988
  customers_endpoint: string | null;
5914
5989
  environment: string;
@@ -5923,10 +5998,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
5923
5998
  updated_at: string;
5924
5999
  };
5925
6000
  Insert: {
5926
- access_token?: string | null;
5927
6001
  api_key: string;
5928
- client_id: string;
5929
- client_secret: string;
5930
6002
  created_at?: string;
5931
6003
  customers_endpoint?: string | null;
5932
6004
  environment: string;
@@ -5941,10 +6013,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
5941
6013
  updated_at?: string;
5942
6014
  };
5943
6015
  Update: {
5944
- access_token?: string | null;
5945
6016
  api_key?: string;
5946
- client_id?: string;
5947
- client_secret?: string;
5948
6017
  created_at?: string;
5949
6018
  customers_endpoint?: string | null;
5950
6019
  environment?: string;
@@ -13577,6 +13646,39 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
13577
13646
  };
13578
13647
  Relationships: [];
13579
13648
  };
13649
+ print_dedupe_events: {
13650
+ Row: {
13651
+ bestaande_job_id: string | null;
13652
+ created_at: string;
13653
+ detail: string | null;
13654
+ documentnaam: string | null;
13655
+ documenttype: string | null;
13656
+ id: string;
13657
+ idempotentie_sleutel: string;
13658
+ reden: string;
13659
+ };
13660
+ Insert: {
13661
+ bestaande_job_id?: string | null;
13662
+ created_at?: string;
13663
+ detail?: string | null;
13664
+ documentnaam?: string | null;
13665
+ documenttype?: string | null;
13666
+ id?: string;
13667
+ idempotentie_sleutel: string;
13668
+ reden: string;
13669
+ };
13670
+ Update: {
13671
+ bestaande_job_id?: string | null;
13672
+ created_at?: string;
13673
+ detail?: string | null;
13674
+ documentnaam?: string | null;
13675
+ documenttype?: string | null;
13676
+ id?: string;
13677
+ idempotentie_sleutel?: string;
13678
+ reden?: string;
13679
+ };
13680
+ Relationships: [];
13681
+ };
13580
13682
  print_job_logs: {
13581
13683
  Row: {
13582
13684
  created_at: string;
@@ -13627,6 +13729,9 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
13627
13729
  is_herprint: boolean;
13628
13730
  kopieen: number;
13629
13731
  layout_id: string | null;
13732
+ lokaal_opgeslagen_op: string | null;
13733
+ lokale_pdf_fout: string | null;
13734
+ lokale_pdf_status: string | null;
13630
13735
  opgepakt_op: string | null;
13631
13736
  paginas: number;
13632
13737
  payload: import("../integrations/supabase/types").Json;
@@ -13635,6 +13740,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
13635
13740
  pogingen: number;
13636
13741
  printer_id: string | null;
13637
13742
  render_html: string | null;
13743
+ resultaat_pdf_base64: string | null;
13638
13744
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13639
13745
  updated_at: string;
13640
13746
  volgende_poging: string | null;
@@ -13659,6 +13765,9 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
13659
13765
  is_herprint?: boolean;
13660
13766
  kopieen?: number;
13661
13767
  layout_id?: string | null;
13768
+ lokaal_opgeslagen_op?: string | null;
13769
+ lokale_pdf_fout?: string | null;
13770
+ lokale_pdf_status?: string | null;
13662
13771
  opgepakt_op?: string | null;
13663
13772
  paginas?: number;
13664
13773
  payload?: import("../integrations/supabase/types").Json;
@@ -13667,6 +13776,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
13667
13776
  pogingen?: number;
13668
13777
  printer_id?: string | null;
13669
13778
  render_html?: string | null;
13779
+ resultaat_pdf_base64?: string | null;
13670
13780
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13671
13781
  updated_at?: string;
13672
13782
  volgende_poging?: string | null;
@@ -13691,6 +13801,9 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
13691
13801
  is_herprint?: boolean;
13692
13802
  kopieen?: number;
13693
13803
  layout_id?: string | null;
13804
+ lokaal_opgeslagen_op?: string | null;
13805
+ lokale_pdf_fout?: string | null;
13806
+ lokale_pdf_status?: string | null;
13694
13807
  opgepakt_op?: string | null;
13695
13808
  paginas?: number;
13696
13809
  payload?: import("../integrations/supabase/types").Json;
@@ -13699,6 +13812,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
13699
13812
  pogingen?: number;
13700
13813
  printer_id?: string | null;
13701
13814
  render_html?: string | null;
13815
+ resultaat_pdf_base64?: string | null;
13702
13816
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13703
13817
  updated_at?: string;
13704
13818
  volgende_poging?: string | null;
@@ -13817,6 +13931,39 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
13817
13931
  };
13818
13932
  Relationships: [];
13819
13933
  };
13934
+ print_preview_events: {
13935
+ Row: {
13936
+ code: string | null;
13937
+ created_at: string;
13938
+ detail: import("../integrations/supabase/types").Json;
13939
+ id: string;
13940
+ queue_item_id: string | null;
13941
+ reden: string | null;
13942
+ station_slug: string | null;
13943
+ uitkomst: string;
13944
+ };
13945
+ Insert: {
13946
+ code?: string | null;
13947
+ created_at?: string;
13948
+ detail?: import("../integrations/supabase/types").Json;
13949
+ id?: string;
13950
+ queue_item_id?: string | null;
13951
+ reden?: string | null;
13952
+ station_slug?: string | null;
13953
+ uitkomst?: string;
13954
+ };
13955
+ Update: {
13956
+ code?: string | null;
13957
+ created_at?: string;
13958
+ detail?: import("../integrations/supabase/types").Json;
13959
+ id?: string;
13960
+ queue_item_id?: string | null;
13961
+ reden?: string | null;
13962
+ station_slug?: string | null;
13963
+ uitkomst?: string;
13964
+ };
13965
+ Relationships: [];
13966
+ };
13820
13967
  print_queue_runners: {
13821
13968
  Row: {
13822
13969
  actief: boolean;
@@ -14056,6 +14203,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
14056
14203
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14057
14204
  online: boolean;
14058
14205
  papierformaat: string;
14206
+ pdf_map: string | null;
14059
14207
  poort: number | null;
14060
14208
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14061
14209
  systeemnaam: string;
@@ -14081,6 +14229,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
14081
14229
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14082
14230
  online?: boolean;
14083
14231
  papierformaat?: string;
14232
+ pdf_map?: string | null;
14084
14233
  poort?: number | null;
14085
14234
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14086
14235
  systeemnaam?: string;
@@ -14106,6 +14255,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
14106
14255
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14107
14256
  online?: boolean;
14108
14257
  papierformaat?: string;
14258
+ pdf_map?: string | null;
14109
14259
  poort?: number | null;
14110
14260
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14111
14261
  systeemnaam?: string;
@@ -20362,6 +20512,9 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
20362
20512
  is_herprint: boolean;
20363
20513
  kopieen: number;
20364
20514
  layout_id: string | null;
20515
+ lokaal_opgeslagen_op: string | null;
20516
+ lokale_pdf_fout: string | null;
20517
+ lokale_pdf_status: string | null;
20365
20518
  opgepakt_op: string | null;
20366
20519
  paginas: number;
20367
20520
  payload: import("../integrations/supabase/types").Json;
@@ -20370,6 +20523,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
20370
20523
  pogingen: number;
20371
20524
  printer_id: string | null;
20372
20525
  render_html: string | null;
20526
+ resultaat_pdf_base64: string | null;
20373
20527
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20374
20528
  updated_at: string;
20375
20529
  volgende_poging: string | null;
@@ -20461,6 +20615,53 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
20461
20615
  isSetofReturn: true;
20462
20616
  };
20463
20617
  };
20618
+ claim_pdf_print_jobs: {
20619
+ Args: {
20620
+ _max?: number;
20621
+ };
20622
+ Returns: {
20623
+ agent_id: string | null;
20624
+ bron_job_id: string | null;
20625
+ created_at: string;
20626
+ documentnaam: string;
20627
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20628
+ extern_job_id: string | null;
20629
+ foutmelding: string | null;
20630
+ gebruiker_id: string | null;
20631
+ gebruiker_naam: string;
20632
+ gebruikte_bron: string | null;
20633
+ gebruikte_layout_id: string | null;
20634
+ gestart_op: string | null;
20635
+ herkomst: string | null;
20636
+ id: string;
20637
+ idempotentie_sleutel: string | null;
20638
+ is_herprint: boolean;
20639
+ kopieen: number;
20640
+ layout_id: string | null;
20641
+ lokaal_opgeslagen_op: string | null;
20642
+ lokale_pdf_fout: string | null;
20643
+ lokale_pdf_status: string | null;
20644
+ opgepakt_op: string | null;
20645
+ paginas: number;
20646
+ payload: import("../integrations/supabase/types").Json;
20647
+ pdf_base64: string | null;
20648
+ pdf_url: string | null;
20649
+ pogingen: number;
20650
+ printer_id: string | null;
20651
+ render_html: string | null;
20652
+ resultaat_pdf_base64: string | null;
20653
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20654
+ updated_at: string;
20655
+ volgende_poging: string | null;
20656
+ voltooid_op: string | null;
20657
+ }[];
20658
+ SetofOptions: {
20659
+ from: "*";
20660
+ to: "print_jobs";
20661
+ isOneToOne: false;
20662
+ isSetofReturn: true;
20663
+ };
20664
+ };
20464
20665
  claim_print_jobs: {
20465
20666
  Args: {
20466
20667
  _agent_id: string;
@@ -20485,6 +20686,9 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
20485
20686
  is_herprint: boolean;
20486
20687
  kopieen: number;
20487
20688
  layout_id: string | null;
20689
+ lokaal_opgeslagen_op: string | null;
20690
+ lokale_pdf_fout: string | null;
20691
+ lokale_pdf_status: string | null;
20488
20692
  opgepakt_op: string | null;
20489
20693
  paginas: number;
20490
20694
  payload: import("../integrations/supabase/types").Json;
@@ -20493,6 +20697,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
20493
20697
  pogingen: number;
20494
20698
  printer_id: string | null;
20495
20699
  render_html: string | null;
20700
+ resultaat_pdf_base64: string | null;
20496
20701
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20497
20702
  updated_at: string;
20498
20703
  volgende_poging: string | null;
@@ -20633,6 +20838,8 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
20633
20838
  order_id: string;
20634
20839
  order_source: string;
20635
20840
  pick_date: string;
20841
+ printed_at: string;
20842
+ printed_today: boolean;
20636
20843
  status: string;
20637
20844
  }[];
20638
20845
  };
@@ -21341,6 +21548,10 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
21341
21548
  };
21342
21549
  Returns: number;
21343
21550
  };
21551
+ logistics_cancel_orphan_tasks: {
21552
+ Args: never;
21553
+ Returns: number;
21554
+ };
21344
21555
  logistics_capacity_day_check: {
21345
21556
  Args: {
21346
21557
  p_from?: string;
@@ -21361,6 +21572,25 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
21361
21572
  };
21362
21573
  Returns: number;
21363
21574
  };
21575
+ logistics_cart_index: {
21576
+ Args: {
21577
+ p_from?: string;
21578
+ p_to?: string;
21579
+ };
21580
+ Returns: {
21581
+ cart_id: string;
21582
+ cart_index: number;
21583
+ cart_label: string;
21584
+ is_shared: boolean;
21585
+ order_number: string;
21586
+ order_source: string;
21587
+ order_uuid: string;
21588
+ pick_date: string;
21589
+ printed_at: string;
21590
+ shifted: boolean;
21591
+ task_status: string;
21592
+ }[];
21593
+ };
21364
21594
  logistics_check_order_allowed: {
21365
21595
  Args: {
21366
21596
  p_lines: import("../integrations/supabase/types").Json;
@@ -21509,6 +21739,17 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
21509
21739
  isSetofReturn: false;
21510
21740
  };
21511
21741
  };
21742
+ logistics_consistency_check: {
21743
+ Args: never;
21744
+ Returns: {
21745
+ agenda_carts: number;
21746
+ control_carts: number;
21747
+ ok: boolean;
21748
+ orphan_tasks: number;
21749
+ pick_date: string;
21750
+ raw_carts: number;
21751
+ }[];
21752
+ };
21512
21753
  logistics_delay_customer_email: {
21513
21754
  Args: {
21514
21755
  p_customer: string;
@@ -21598,6 +21839,16 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
21598
21839
  isSetofReturn: false;
21599
21840
  };
21600
21841
  };
21842
+ logistics_floriday_cart_plan: {
21843
+ Args: {
21844
+ p_order_id: string;
21845
+ };
21846
+ Returns: {
21847
+ carrier_type: string;
21848
+ idx: number;
21849
+ packages: number;
21850
+ }[];
21851
+ };
21601
21852
  logistics_floriday_claim_pushes: {
21602
21853
  Args: {
21603
21854
  _lease_seconds?: number;
@@ -21702,6 +21953,25 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
21702
21953
  };
21703
21954
  Returns: number;
21704
21955
  };
21956
+ logistics_order_overview: {
21957
+ Args: {
21958
+ p_from?: string;
21959
+ p_to?: string;
21960
+ };
21961
+ Returns: {
21962
+ cart_count: number;
21963
+ customer_name: string;
21964
+ delivery_date: string;
21965
+ order_number: string;
21966
+ order_source: string;
21967
+ order_uuid: string;
21968
+ pick_date: string;
21969
+ plant_count: number;
21970
+ printed_at: string;
21971
+ shifted: boolean;
21972
+ status: string;
21973
+ }[];
21974
+ };
21705
21975
  logistics_order_pick_day: {
21706
21976
  Args: {
21707
21977
  p_order_ref: string;
@@ -21714,6 +21984,22 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
21714
21984
  };
21715
21985
  Returns: string;
21716
21986
  };
21987
+ logistics_pick_agenda: {
21988
+ Args: {
21989
+ p_from?: string;
21990
+ p_to?: string;
21991
+ };
21992
+ Returns: {
21993
+ cart_count: number;
21994
+ in_preparation: number;
21995
+ order_count: number;
21996
+ orders: import("../integrations/supabase/types").Json;
21997
+ pick_date: string;
21998
+ plant_count: number;
21999
+ ready: number;
22000
+ shifted_count: number;
22001
+ }[];
22002
+ };
21717
22003
  logistics_pick_email_purpose: {
21718
22004
  Args: never;
21719
22005
  Returns: string;
@@ -21768,6 +22054,13 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
21768
22054
  };
21769
22055
  Returns: undefined;
21770
22056
  };
22057
+ logistics_plan_floriday_order: {
22058
+ Args: {
22059
+ p_buffer_id?: string;
22060
+ p_order_id: string;
22061
+ };
22062
+ Returns: number;
22063
+ };
21771
22064
  logistics_plan_impact_orders: {
21772
22065
  Args: {
21773
22066
  p_order_id: string;
@@ -21873,6 +22166,15 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
21873
22166
  };
21874
22167
  Returns: import("../integrations/supabase/types").Json;
21875
22168
  };
22169
+ logistics_resolve_pick_document: {
22170
+ Args: {
22171
+ _is_herprint: boolean;
22172
+ _queue_item_id: string;
22173
+ _session_id: string;
22174
+ _voorbeeld: boolean;
22175
+ };
22176
+ Returns: import("../integrations/supabase/types").Json;
22177
+ };
21876
22178
  logistics_resolve_settings: {
21877
22179
  Args: {
21878
22180
  p_config_id: string;
@@ -22313,6 +22615,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
22313
22615
  };
22314
22616
  pick_enqueue_print_job: {
22315
22617
  Args: {
22618
+ _is_herprint?: boolean;
22316
22619
  _printer_id?: string;
22317
22620
  _queue_item_id: string;
22318
22621
  _session_id?: string;
@@ -22326,6 +22629,13 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
22326
22629
  };
22327
22630
  Returns: import("../integrations/supabase/types").Json;
22328
22631
  };
22632
+ pick_preview_job: {
22633
+ Args: {
22634
+ _queue_item_id: string;
22635
+ _station_slug: string;
22636
+ };
22637
+ Returns: import("../integrations/supabase/types").Json;
22638
+ };
22329
22639
  pick_print_job_status: {
22330
22640
  Args: {
22331
22641
  _job_id: string;
@@ -22503,6 +22813,24 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
22503
22813
  };
22504
22814
  Returns: undefined;
22505
22815
  };
22816
+ print_preview_toestaan: {
22817
+ Args: {
22818
+ _max?: number;
22819
+ _queue_item_id: string;
22820
+ _station_slug: string;
22821
+ _venster_sec?: number;
22822
+ };
22823
+ Returns: import("../integrations/supabase/types").Json;
22824
+ };
22825
+ print_preview_weiger: {
22826
+ Args: {
22827
+ _code: string;
22828
+ _queue_item_id: string;
22829
+ _reden: string;
22830
+ _station_slug: string;
22831
+ };
22832
+ Returns: undefined;
22833
+ };
22506
22834
  process_logistics_event: {
22507
22835
  Args: {
22508
22836
  p_event_id: string;
@@ -22657,6 +22985,12 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
22657
22985
  };
22658
22986
  Returns: string;
22659
22987
  };
22988
+ resolve_print_job_printer_id: {
22989
+ Args: {
22990
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
22991
+ };
22992
+ Returns: string;
22993
+ };
22660
22994
  resolve_product_id_for_item: {
22661
22995
  Args: {
22662
22996
  p_product_name: string;
@@ -23248,7 +23582,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
23248
23582
  };
23249
23583
  CompositeTypes: { [_ in never]: never; };
23250
23584
  }, {
23251
- PostgrestVersion: "14.17";
23585
+ PostgrestVersion: "14.5";
23252
23586
  }>;
23253
23587
  userId: string;
23254
23588
  claims: import("@supabase/auth-js").User;
@@ -26118,6 +26452,84 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
26118
26452
  };
26119
26453
  Relationships: [];
26120
26454
  };
26455
+ delivery_notes: {
26456
+ Row: {
26457
+ byte_size: number | null;
26458
+ connection_id: string | null;
26459
+ content_type: string;
26460
+ created_at: string;
26461
+ error_message: string | null;
26462
+ fetched_at: string | null;
26463
+ fulfillment_order_id: string | null;
26464
+ http_status: number | null;
26465
+ id: string;
26466
+ label_code: string | null;
26467
+ letter: string | null;
26468
+ load_carrier_index: number | null;
26469
+ load_carrier_type: string | null;
26470
+ order_id: string | null;
26471
+ order_number: string | null;
26472
+ packages: number | null;
26473
+ source: string;
26474
+ status: string;
26475
+ storage_bucket: string;
26476
+ storage_path: string | null;
26477
+ updated_at: string;
26478
+ };
26479
+ Insert: {
26480
+ byte_size?: number | null;
26481
+ connection_id?: string | null;
26482
+ content_type?: string;
26483
+ created_at?: string;
26484
+ error_message?: string | null;
26485
+ fetched_at?: string | null;
26486
+ fulfillment_order_id?: string | null;
26487
+ http_status?: number | null;
26488
+ id?: string;
26489
+ label_code?: string | null;
26490
+ letter?: string | null;
26491
+ load_carrier_index?: number | null;
26492
+ load_carrier_type?: string | null;
26493
+ order_id?: string | null;
26494
+ order_number?: string | null;
26495
+ packages?: number | null;
26496
+ source?: string;
26497
+ status?: string;
26498
+ storage_bucket?: string;
26499
+ storage_path?: string | null;
26500
+ updated_at?: string;
26501
+ };
26502
+ Update: {
26503
+ byte_size?: number | null;
26504
+ connection_id?: string | null;
26505
+ content_type?: string;
26506
+ created_at?: string;
26507
+ error_message?: string | null;
26508
+ fetched_at?: string | null;
26509
+ fulfillment_order_id?: string | null;
26510
+ http_status?: number | null;
26511
+ id?: string;
26512
+ label_code?: string | null;
26513
+ letter?: string | null;
26514
+ load_carrier_index?: number | null;
26515
+ load_carrier_type?: string | null;
26516
+ order_id?: string | null;
26517
+ order_number?: string | null;
26518
+ packages?: number | null;
26519
+ source?: string;
26520
+ status?: string;
26521
+ storage_bucket?: string;
26522
+ storage_path?: string | null;
26523
+ updated_at?: string;
26524
+ };
26525
+ Relationships: [{
26526
+ foreignKeyName: "delivery_notes_order_id_fkey";
26527
+ columns: ["order_id"];
26528
+ isOneToOne: false;
26529
+ referencedRelation: "orders";
26530
+ referencedColumns: ["id"];
26531
+ }];
26532
+ };
26121
26533
  document_bronregels: {
26122
26534
  Row: {
26123
26535
  bron: string;
@@ -29171,10 +29583,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
29171
29583
  };
29172
29584
  floriday_connections: {
29173
29585
  Row: {
29174
- access_token: string | null;
29175
29586
  api_key: string;
29176
- client_id: string;
29177
- client_secret: string;
29178
29587
  created_at: string;
29179
29588
  customers_endpoint: string | null;
29180
29589
  environment: string;
@@ -29189,10 +29598,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
29189
29598
  updated_at: string;
29190
29599
  };
29191
29600
  Insert: {
29192
- access_token?: string | null;
29193
29601
  api_key: string;
29194
- client_id: string;
29195
- client_secret: string;
29196
29602
  created_at?: string;
29197
29603
  customers_endpoint?: string | null;
29198
29604
  environment: string;
@@ -29207,10 +29613,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
29207
29613
  updated_at?: string;
29208
29614
  };
29209
29615
  Update: {
29210
- access_token?: string | null;
29211
29616
  api_key?: string;
29212
- client_id?: string;
29213
- client_secret?: string;
29214
29617
  created_at?: string;
29215
29618
  customers_endpoint?: string | null;
29216
29619
  environment?: string;
@@ -36843,6 +37246,39 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
36843
37246
  };
36844
37247
  Relationships: [];
36845
37248
  };
37249
+ print_dedupe_events: {
37250
+ Row: {
37251
+ bestaande_job_id: string | null;
37252
+ created_at: string;
37253
+ detail: string | null;
37254
+ documentnaam: string | null;
37255
+ documenttype: string | null;
37256
+ id: string;
37257
+ idempotentie_sleutel: string;
37258
+ reden: string;
37259
+ };
37260
+ Insert: {
37261
+ bestaande_job_id?: string | null;
37262
+ created_at?: string;
37263
+ detail?: string | null;
37264
+ documentnaam?: string | null;
37265
+ documenttype?: string | null;
37266
+ id?: string;
37267
+ idempotentie_sleutel: string;
37268
+ reden: string;
37269
+ };
37270
+ Update: {
37271
+ bestaande_job_id?: string | null;
37272
+ created_at?: string;
37273
+ detail?: string | null;
37274
+ documentnaam?: string | null;
37275
+ documenttype?: string | null;
37276
+ id?: string;
37277
+ idempotentie_sleutel?: string;
37278
+ reden?: string;
37279
+ };
37280
+ Relationships: [];
37281
+ };
36846
37282
  print_job_logs: {
36847
37283
  Row: {
36848
37284
  created_at: string;
@@ -36893,6 +37329,9 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
36893
37329
  is_herprint: boolean;
36894
37330
  kopieen: number;
36895
37331
  layout_id: string | null;
37332
+ lokaal_opgeslagen_op: string | null;
37333
+ lokale_pdf_fout: string | null;
37334
+ lokale_pdf_status: string | null;
36896
37335
  opgepakt_op: string | null;
36897
37336
  paginas: number;
36898
37337
  payload: import("../integrations/supabase/types").Json;
@@ -36901,6 +37340,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
36901
37340
  pogingen: number;
36902
37341
  printer_id: string | null;
36903
37342
  render_html: string | null;
37343
+ resultaat_pdf_base64: string | null;
36904
37344
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36905
37345
  updated_at: string;
36906
37346
  volgende_poging: string | null;
@@ -36925,6 +37365,9 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
36925
37365
  is_herprint?: boolean;
36926
37366
  kopieen?: number;
36927
37367
  layout_id?: string | null;
37368
+ lokaal_opgeslagen_op?: string | null;
37369
+ lokale_pdf_fout?: string | null;
37370
+ lokale_pdf_status?: string | null;
36928
37371
  opgepakt_op?: string | null;
36929
37372
  paginas?: number;
36930
37373
  payload?: import("../integrations/supabase/types").Json;
@@ -36933,6 +37376,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
36933
37376
  pogingen?: number;
36934
37377
  printer_id?: string | null;
36935
37378
  render_html?: string | null;
37379
+ resultaat_pdf_base64?: string | null;
36936
37380
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36937
37381
  updated_at?: string;
36938
37382
  volgende_poging?: string | null;
@@ -36957,6 +37401,9 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
36957
37401
  is_herprint?: boolean;
36958
37402
  kopieen?: number;
36959
37403
  layout_id?: string | null;
37404
+ lokaal_opgeslagen_op?: string | null;
37405
+ lokale_pdf_fout?: string | null;
37406
+ lokale_pdf_status?: string | null;
36960
37407
  opgepakt_op?: string | null;
36961
37408
  paginas?: number;
36962
37409
  payload?: import("../integrations/supabase/types").Json;
@@ -36965,6 +37412,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
36965
37412
  pogingen?: number;
36966
37413
  printer_id?: string | null;
36967
37414
  render_html?: string | null;
37415
+ resultaat_pdf_base64?: string | null;
36968
37416
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36969
37417
  updated_at?: string;
36970
37418
  volgende_poging?: string | null;
@@ -37083,6 +37531,39 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
37083
37531
  };
37084
37532
  Relationships: [];
37085
37533
  };
37534
+ print_preview_events: {
37535
+ Row: {
37536
+ code: string | null;
37537
+ created_at: string;
37538
+ detail: import("../integrations/supabase/types").Json;
37539
+ id: string;
37540
+ queue_item_id: string | null;
37541
+ reden: string | null;
37542
+ station_slug: string | null;
37543
+ uitkomst: string;
37544
+ };
37545
+ Insert: {
37546
+ code?: string | null;
37547
+ created_at?: string;
37548
+ detail?: import("../integrations/supabase/types").Json;
37549
+ id?: string;
37550
+ queue_item_id?: string | null;
37551
+ reden?: string | null;
37552
+ station_slug?: string | null;
37553
+ uitkomst?: string;
37554
+ };
37555
+ Update: {
37556
+ code?: string | null;
37557
+ created_at?: string;
37558
+ detail?: import("../integrations/supabase/types").Json;
37559
+ id?: string;
37560
+ queue_item_id?: string | null;
37561
+ reden?: string | null;
37562
+ station_slug?: string | null;
37563
+ uitkomst?: string;
37564
+ };
37565
+ Relationships: [];
37566
+ };
37086
37567
  print_queue_runners: {
37087
37568
  Row: {
37088
37569
  actief: boolean;
@@ -37322,6 +37803,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
37322
37803
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37323
37804
  online: boolean;
37324
37805
  papierformaat: string;
37806
+ pdf_map: string | null;
37325
37807
  poort: number | null;
37326
37808
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37327
37809
  systeemnaam: string;
@@ -37347,6 +37829,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
37347
37829
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37348
37830
  online?: boolean;
37349
37831
  papierformaat?: string;
37832
+ pdf_map?: string | null;
37350
37833
  poort?: number | null;
37351
37834
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37352
37835
  systeemnaam?: string;
@@ -37372,6 +37855,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
37372
37855
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37373
37856
  online?: boolean;
37374
37857
  papierformaat?: string;
37858
+ pdf_map?: string | null;
37375
37859
  poort?: number | null;
37376
37860
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37377
37861
  systeemnaam?: string;
@@ -43628,6 +44112,9 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
43628
44112
  is_herprint: boolean;
43629
44113
  kopieen: number;
43630
44114
  layout_id: string | null;
44115
+ lokaal_opgeslagen_op: string | null;
44116
+ lokale_pdf_fout: string | null;
44117
+ lokale_pdf_status: string | null;
43631
44118
  opgepakt_op: string | null;
43632
44119
  paginas: number;
43633
44120
  payload: import("../integrations/supabase/types").Json;
@@ -43636,6 +44123,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
43636
44123
  pogingen: number;
43637
44124
  printer_id: string | null;
43638
44125
  render_html: string | null;
44126
+ resultaat_pdf_base64: string | null;
43639
44127
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43640
44128
  updated_at: string;
43641
44129
  volgende_poging: string | null;
@@ -43727,6 +44215,53 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
43727
44215
  isSetofReturn: true;
43728
44216
  };
43729
44217
  };
44218
+ claim_pdf_print_jobs: {
44219
+ Args: {
44220
+ _max?: number;
44221
+ };
44222
+ Returns: {
44223
+ agent_id: string | null;
44224
+ bron_job_id: string | null;
44225
+ created_at: string;
44226
+ documentnaam: string;
44227
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44228
+ extern_job_id: string | null;
44229
+ foutmelding: string | null;
44230
+ gebruiker_id: string | null;
44231
+ gebruiker_naam: string;
44232
+ gebruikte_bron: string | null;
44233
+ gebruikte_layout_id: string | null;
44234
+ gestart_op: string | null;
44235
+ herkomst: string | null;
44236
+ id: string;
44237
+ idempotentie_sleutel: string | null;
44238
+ is_herprint: boolean;
44239
+ kopieen: number;
44240
+ layout_id: string | null;
44241
+ lokaal_opgeslagen_op: string | null;
44242
+ lokale_pdf_fout: string | null;
44243
+ lokale_pdf_status: string | null;
44244
+ opgepakt_op: string | null;
44245
+ paginas: number;
44246
+ payload: import("../integrations/supabase/types").Json;
44247
+ pdf_base64: string | null;
44248
+ pdf_url: string | null;
44249
+ pogingen: number;
44250
+ printer_id: string | null;
44251
+ render_html: string | null;
44252
+ resultaat_pdf_base64: string | null;
44253
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44254
+ updated_at: string;
44255
+ volgende_poging: string | null;
44256
+ voltooid_op: string | null;
44257
+ }[];
44258
+ SetofOptions: {
44259
+ from: "*";
44260
+ to: "print_jobs";
44261
+ isOneToOne: false;
44262
+ isSetofReturn: true;
44263
+ };
44264
+ };
43730
44265
  claim_print_jobs: {
43731
44266
  Args: {
43732
44267
  _agent_id: string;
@@ -43751,6 +44286,9 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
43751
44286
  is_herprint: boolean;
43752
44287
  kopieen: number;
43753
44288
  layout_id: string | null;
44289
+ lokaal_opgeslagen_op: string | null;
44290
+ lokale_pdf_fout: string | null;
44291
+ lokale_pdf_status: string | null;
43754
44292
  opgepakt_op: string | null;
43755
44293
  paginas: number;
43756
44294
  payload: import("../integrations/supabase/types").Json;
@@ -43759,6 +44297,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
43759
44297
  pogingen: number;
43760
44298
  printer_id: string | null;
43761
44299
  render_html: string | null;
44300
+ resultaat_pdf_base64: string | null;
43762
44301
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43763
44302
  updated_at: string;
43764
44303
  volgende_poging: string | null;
@@ -43899,6 +44438,8 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
43899
44438
  order_id: string;
43900
44439
  order_source: string;
43901
44440
  pick_date: string;
44441
+ printed_at: string;
44442
+ printed_today: boolean;
43902
44443
  status: string;
43903
44444
  }[];
43904
44445
  };
@@ -44607,6 +45148,10 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
44607
45148
  };
44608
45149
  Returns: number;
44609
45150
  };
45151
+ logistics_cancel_orphan_tasks: {
45152
+ Args: never;
45153
+ Returns: number;
45154
+ };
44610
45155
  logistics_capacity_day_check: {
44611
45156
  Args: {
44612
45157
  p_from?: string;
@@ -44627,6 +45172,25 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
44627
45172
  };
44628
45173
  Returns: number;
44629
45174
  };
45175
+ logistics_cart_index: {
45176
+ Args: {
45177
+ p_from?: string;
45178
+ p_to?: string;
45179
+ };
45180
+ Returns: {
45181
+ cart_id: string;
45182
+ cart_index: number;
45183
+ cart_label: string;
45184
+ is_shared: boolean;
45185
+ order_number: string;
45186
+ order_source: string;
45187
+ order_uuid: string;
45188
+ pick_date: string;
45189
+ printed_at: string;
45190
+ shifted: boolean;
45191
+ task_status: string;
45192
+ }[];
45193
+ };
44630
45194
  logistics_check_order_allowed: {
44631
45195
  Args: {
44632
45196
  p_lines: import("../integrations/supabase/types").Json;
@@ -44730,50 +45294,61 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
44730
45294
  isSetofReturn: false;
44731
45295
  };
44732
45296
  };
44733
- logistics_complete_task: {
44734
- Args: {
44735
- p_result?: import("../integrations/supabase/types").Json;
44736
- p_task_id: string;
44737
- };
45297
+ logistics_complete_task: {
45298
+ Args: {
45299
+ p_result?: import("../integrations/supabase/types").Json;
45300
+ p_task_id: string;
45301
+ };
45302
+ Returns: {
45303
+ attempt_log: import("../integrations/supabase/types").Json;
45304
+ attempts: number;
45305
+ buffer_ref: string | null;
45306
+ claimed_at: string | null;
45307
+ claimed_by: string | null;
45308
+ completed_at: string | null;
45309
+ created_at: string;
45310
+ depends_on: string[];
45311
+ due_at: string | null;
45312
+ error: string | null;
45313
+ id: string;
45314
+ last_error: string | null;
45315
+ next_attempt_at: string | null;
45316
+ order_ref: string;
45317
+ owner_module: string;
45318
+ payload: import("../integrations/supabase/types").Json;
45319
+ plan_run_id: string | null;
45320
+ planned_end: string | null;
45321
+ planned_start: string | null;
45322
+ priority: number;
45323
+ result: import("../integrations/supabase/types").Json | null;
45324
+ rule_config_id: string | null;
45325
+ rule_version: number | null;
45326
+ sequence: number;
45327
+ shadow: boolean;
45328
+ started_at: string | null;
45329
+ status: string;
45330
+ strategy_id: string | null;
45331
+ task_type: string;
45332
+ updated_at: string;
45333
+ user_id: string;
45334
+ };
45335
+ SetofOptions: {
45336
+ from: "*";
45337
+ to: "logistics_tasks";
45338
+ isOneToOne: true;
45339
+ isSetofReturn: false;
45340
+ };
45341
+ };
45342
+ logistics_consistency_check: {
45343
+ Args: never;
44738
45344
  Returns: {
44739
- attempt_log: import("../integrations/supabase/types").Json;
44740
- attempts: number;
44741
- buffer_ref: string | null;
44742
- claimed_at: string | null;
44743
- claimed_by: string | null;
44744
- completed_at: string | null;
44745
- created_at: string;
44746
- depends_on: string[];
44747
- due_at: string | null;
44748
- error: string | null;
44749
- id: string;
44750
- last_error: string | null;
44751
- next_attempt_at: string | null;
44752
- order_ref: string;
44753
- owner_module: string;
44754
- payload: import("../integrations/supabase/types").Json;
44755
- plan_run_id: string | null;
44756
- planned_end: string | null;
44757
- planned_start: string | null;
44758
- priority: number;
44759
- result: import("../integrations/supabase/types").Json | null;
44760
- rule_config_id: string | null;
44761
- rule_version: number | null;
44762
- sequence: number;
44763
- shadow: boolean;
44764
- started_at: string | null;
44765
- status: string;
44766
- strategy_id: string | null;
44767
- task_type: string;
44768
- updated_at: string;
44769
- user_id: string;
44770
- };
44771
- SetofOptions: {
44772
- from: "*";
44773
- to: "logistics_tasks";
44774
- isOneToOne: true;
44775
- isSetofReturn: false;
44776
- };
45345
+ agenda_carts: number;
45346
+ control_carts: number;
45347
+ ok: boolean;
45348
+ orphan_tasks: number;
45349
+ pick_date: string;
45350
+ raw_carts: number;
45351
+ }[];
44777
45352
  };
44778
45353
  logistics_delay_customer_email: {
44779
45354
  Args: {
@@ -44864,6 +45439,16 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
44864
45439
  isSetofReturn: false;
44865
45440
  };
44866
45441
  };
45442
+ logistics_floriday_cart_plan: {
45443
+ Args: {
45444
+ p_order_id: string;
45445
+ };
45446
+ Returns: {
45447
+ carrier_type: string;
45448
+ idx: number;
45449
+ packages: number;
45450
+ }[];
45451
+ };
44867
45452
  logistics_floriday_claim_pushes: {
44868
45453
  Args: {
44869
45454
  _lease_seconds?: number;
@@ -44968,6 +45553,25 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
44968
45553
  };
44969
45554
  Returns: number;
44970
45555
  };
45556
+ logistics_order_overview: {
45557
+ Args: {
45558
+ p_from?: string;
45559
+ p_to?: string;
45560
+ };
45561
+ Returns: {
45562
+ cart_count: number;
45563
+ customer_name: string;
45564
+ delivery_date: string;
45565
+ order_number: string;
45566
+ order_source: string;
45567
+ order_uuid: string;
45568
+ pick_date: string;
45569
+ plant_count: number;
45570
+ printed_at: string;
45571
+ shifted: boolean;
45572
+ status: string;
45573
+ }[];
45574
+ };
44971
45575
  logistics_order_pick_day: {
44972
45576
  Args: {
44973
45577
  p_order_ref: string;
@@ -44980,6 +45584,22 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
44980
45584
  };
44981
45585
  Returns: string;
44982
45586
  };
45587
+ logistics_pick_agenda: {
45588
+ Args: {
45589
+ p_from?: string;
45590
+ p_to?: string;
45591
+ };
45592
+ Returns: {
45593
+ cart_count: number;
45594
+ in_preparation: number;
45595
+ order_count: number;
45596
+ orders: import("../integrations/supabase/types").Json;
45597
+ pick_date: string;
45598
+ plant_count: number;
45599
+ ready: number;
45600
+ shifted_count: number;
45601
+ }[];
45602
+ };
44983
45603
  logistics_pick_email_purpose: {
44984
45604
  Args: never;
44985
45605
  Returns: string;
@@ -45034,6 +45654,13 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
45034
45654
  };
45035
45655
  Returns: undefined;
45036
45656
  };
45657
+ logistics_plan_floriday_order: {
45658
+ Args: {
45659
+ p_buffer_id?: string;
45660
+ p_order_id: string;
45661
+ };
45662
+ Returns: number;
45663
+ };
45037
45664
  logistics_plan_impact_orders: {
45038
45665
  Args: {
45039
45666
  p_order_id: string;
@@ -45139,6 +45766,15 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
45139
45766
  };
45140
45767
  Returns: import("../integrations/supabase/types").Json;
45141
45768
  };
45769
+ logistics_resolve_pick_document: {
45770
+ Args: {
45771
+ _is_herprint: boolean;
45772
+ _queue_item_id: string;
45773
+ _session_id: string;
45774
+ _voorbeeld: boolean;
45775
+ };
45776
+ Returns: import("../integrations/supabase/types").Json;
45777
+ };
45142
45778
  logistics_resolve_settings: {
45143
45779
  Args: {
45144
45780
  p_config_id: string;
@@ -45579,6 +46215,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
45579
46215
  };
45580
46216
  pick_enqueue_print_job: {
45581
46217
  Args: {
46218
+ _is_herprint?: boolean;
45582
46219
  _printer_id?: string;
45583
46220
  _queue_item_id: string;
45584
46221
  _session_id?: string;
@@ -45592,6 +46229,13 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
45592
46229
  };
45593
46230
  Returns: import("../integrations/supabase/types").Json;
45594
46231
  };
46232
+ pick_preview_job: {
46233
+ Args: {
46234
+ _queue_item_id: string;
46235
+ _station_slug: string;
46236
+ };
46237
+ Returns: import("../integrations/supabase/types").Json;
46238
+ };
45595
46239
  pick_print_job_status: {
45596
46240
  Args: {
45597
46241
  _job_id: string;
@@ -45769,6 +46413,24 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
45769
46413
  };
45770
46414
  Returns: undefined;
45771
46415
  };
46416
+ print_preview_toestaan: {
46417
+ Args: {
46418
+ _max?: number;
46419
+ _queue_item_id: string;
46420
+ _station_slug: string;
46421
+ _venster_sec?: number;
46422
+ };
46423
+ Returns: import("../integrations/supabase/types").Json;
46424
+ };
46425
+ print_preview_weiger: {
46426
+ Args: {
46427
+ _code: string;
46428
+ _queue_item_id: string;
46429
+ _reden: string;
46430
+ _station_slug: string;
46431
+ };
46432
+ Returns: undefined;
46433
+ };
45772
46434
  process_logistics_event: {
45773
46435
  Args: {
45774
46436
  p_event_id: string;
@@ -45923,6 +46585,12 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
45923
46585
  };
45924
46586
  Returns: string;
45925
46587
  };
46588
+ resolve_print_job_printer_id: {
46589
+ Args: {
46590
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
46591
+ };
46592
+ Returns: string;
46593
+ };
45926
46594
  resolve_product_id_for_item: {
45927
46595
  Args: {
45928
46596
  p_product_name: string;
@@ -46514,7 +47182,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
46514
47182
  };
46515
47183
  CompositeTypes: { [_ in never]: never; };
46516
47184
  }, {
46517
- PostgrestVersion: "14.17";
47185
+ PostgrestVersion: "14.5";
46518
47186
  }>;
46519
47187
  userId: string;
46520
47188
  claims: import("@supabase/auth-js").User;
@@ -49418,6 +50086,84 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
49418
50086
  };
49419
50087
  Relationships: [];
49420
50088
  };
50089
+ delivery_notes: {
50090
+ Row: {
50091
+ byte_size: number | null;
50092
+ connection_id: string | null;
50093
+ content_type: string;
50094
+ created_at: string;
50095
+ error_message: string | null;
50096
+ fetched_at: string | null;
50097
+ fulfillment_order_id: string | null;
50098
+ http_status: number | null;
50099
+ id: string;
50100
+ label_code: string | null;
50101
+ letter: string | null;
50102
+ load_carrier_index: number | null;
50103
+ load_carrier_type: string | null;
50104
+ order_id: string | null;
50105
+ order_number: string | null;
50106
+ packages: number | null;
50107
+ source: string;
50108
+ status: string;
50109
+ storage_bucket: string;
50110
+ storage_path: string | null;
50111
+ updated_at: string;
50112
+ };
50113
+ Insert: {
50114
+ byte_size?: number | null;
50115
+ connection_id?: string | null;
50116
+ content_type?: string;
50117
+ created_at?: string;
50118
+ error_message?: string | null;
50119
+ fetched_at?: string | null;
50120
+ fulfillment_order_id?: string | null;
50121
+ http_status?: number | null;
50122
+ id?: string;
50123
+ label_code?: string | null;
50124
+ letter?: string | null;
50125
+ load_carrier_index?: number | null;
50126
+ load_carrier_type?: string | null;
50127
+ order_id?: string | null;
50128
+ order_number?: string | null;
50129
+ packages?: number | null;
50130
+ source?: string;
50131
+ status?: string;
50132
+ storage_bucket?: string;
50133
+ storage_path?: string | null;
50134
+ updated_at?: string;
50135
+ };
50136
+ Update: {
50137
+ byte_size?: number | null;
50138
+ connection_id?: string | null;
50139
+ content_type?: string;
50140
+ created_at?: string;
50141
+ error_message?: string | null;
50142
+ fetched_at?: string | null;
50143
+ fulfillment_order_id?: string | null;
50144
+ http_status?: number | null;
50145
+ id?: string;
50146
+ label_code?: string | null;
50147
+ letter?: string | null;
50148
+ load_carrier_index?: number | null;
50149
+ load_carrier_type?: string | null;
50150
+ order_id?: string | null;
50151
+ order_number?: string | null;
50152
+ packages?: number | null;
50153
+ source?: string;
50154
+ status?: string;
50155
+ storage_bucket?: string;
50156
+ storage_path?: string | null;
50157
+ updated_at?: string;
50158
+ };
50159
+ Relationships: [{
50160
+ foreignKeyName: "delivery_notes_order_id_fkey";
50161
+ columns: ["order_id"];
50162
+ isOneToOne: false;
50163
+ referencedRelation: "orders";
50164
+ referencedColumns: ["id"];
50165
+ }];
50166
+ };
49421
50167
  document_bronregels: {
49422
50168
  Row: {
49423
50169
  bron: string;
@@ -52471,10 +53217,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
52471
53217
  };
52472
53218
  floriday_connections: {
52473
53219
  Row: {
52474
- access_token: string | null;
52475
53220
  api_key: string;
52476
- client_id: string;
52477
- client_secret: string;
52478
53221
  created_at: string;
52479
53222
  customers_endpoint: string | null;
52480
53223
  environment: string;
@@ -52489,10 +53232,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
52489
53232
  updated_at: string;
52490
53233
  };
52491
53234
  Insert: {
52492
- access_token?: string | null;
52493
53235
  api_key: string;
52494
- client_id: string;
52495
- client_secret: string;
52496
53236
  created_at?: string;
52497
53237
  customers_endpoint?: string | null;
52498
53238
  environment: string;
@@ -52507,10 +53247,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
52507
53247
  updated_at?: string;
52508
53248
  };
52509
53249
  Update: {
52510
- access_token?: string | null;
52511
53250
  api_key?: string;
52512
- client_id?: string;
52513
- client_secret?: string;
52514
53251
  created_at?: string;
52515
53252
  customers_endpoint?: string | null;
52516
53253
  environment?: string;
@@ -60143,6 +60880,39 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60143
60880
  };
60144
60881
  Relationships: [];
60145
60882
  };
60883
+ print_dedupe_events: {
60884
+ Row: {
60885
+ bestaande_job_id: string | null;
60886
+ created_at: string;
60887
+ detail: string | null;
60888
+ documentnaam: string | null;
60889
+ documenttype: string | null;
60890
+ id: string;
60891
+ idempotentie_sleutel: string;
60892
+ reden: string;
60893
+ };
60894
+ Insert: {
60895
+ bestaande_job_id?: string | null;
60896
+ created_at?: string;
60897
+ detail?: string | null;
60898
+ documentnaam?: string | null;
60899
+ documenttype?: string | null;
60900
+ id?: string;
60901
+ idempotentie_sleutel: string;
60902
+ reden: string;
60903
+ };
60904
+ Update: {
60905
+ bestaande_job_id?: string | null;
60906
+ created_at?: string;
60907
+ detail?: string | null;
60908
+ documentnaam?: string | null;
60909
+ documenttype?: string | null;
60910
+ id?: string;
60911
+ idempotentie_sleutel?: string;
60912
+ reden?: string;
60913
+ };
60914
+ Relationships: [];
60915
+ };
60146
60916
  print_job_logs: {
60147
60917
  Row: {
60148
60918
  created_at: string;
@@ -60193,6 +60963,9 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60193
60963
  is_herprint: boolean;
60194
60964
  kopieen: number;
60195
60965
  layout_id: string | null;
60966
+ lokaal_opgeslagen_op: string | null;
60967
+ lokale_pdf_fout: string | null;
60968
+ lokale_pdf_status: string | null;
60196
60969
  opgepakt_op: string | null;
60197
60970
  paginas: number;
60198
60971
  payload: import("../integrations/supabase/types").Json;
@@ -60201,6 +60974,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60201
60974
  pogingen: number;
60202
60975
  printer_id: string | null;
60203
60976
  render_html: string | null;
60977
+ resultaat_pdf_base64: string | null;
60204
60978
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60205
60979
  updated_at: string;
60206
60980
  volgende_poging: string | null;
@@ -60225,6 +60999,9 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60225
60999
  is_herprint?: boolean;
60226
61000
  kopieen?: number;
60227
61001
  layout_id?: string | null;
61002
+ lokaal_opgeslagen_op?: string | null;
61003
+ lokale_pdf_fout?: string | null;
61004
+ lokale_pdf_status?: string | null;
60228
61005
  opgepakt_op?: string | null;
60229
61006
  paginas?: number;
60230
61007
  payload?: import("../integrations/supabase/types").Json;
@@ -60233,6 +61010,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60233
61010
  pogingen?: number;
60234
61011
  printer_id?: string | null;
60235
61012
  render_html?: string | null;
61013
+ resultaat_pdf_base64?: string | null;
60236
61014
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60237
61015
  updated_at?: string;
60238
61016
  volgende_poging?: string | null;
@@ -60257,6 +61035,9 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60257
61035
  is_herprint?: boolean;
60258
61036
  kopieen?: number;
60259
61037
  layout_id?: string | null;
61038
+ lokaal_opgeslagen_op?: string | null;
61039
+ lokale_pdf_fout?: string | null;
61040
+ lokale_pdf_status?: string | null;
60260
61041
  opgepakt_op?: string | null;
60261
61042
  paginas?: number;
60262
61043
  payload?: import("../integrations/supabase/types").Json;
@@ -60265,6 +61046,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60265
61046
  pogingen?: number;
60266
61047
  printer_id?: string | null;
60267
61048
  render_html?: string | null;
61049
+ resultaat_pdf_base64?: string | null;
60268
61050
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60269
61051
  updated_at?: string;
60270
61052
  volgende_poging?: string | null;
@@ -60383,6 +61165,39 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60383
61165
  };
60384
61166
  Relationships: [];
60385
61167
  };
61168
+ print_preview_events: {
61169
+ Row: {
61170
+ code: string | null;
61171
+ created_at: string;
61172
+ detail: import("../integrations/supabase/types").Json;
61173
+ id: string;
61174
+ queue_item_id: string | null;
61175
+ reden: string | null;
61176
+ station_slug: string | null;
61177
+ uitkomst: string;
61178
+ };
61179
+ Insert: {
61180
+ code?: string | null;
61181
+ created_at?: string;
61182
+ detail?: import("../integrations/supabase/types").Json;
61183
+ id?: string;
61184
+ queue_item_id?: string | null;
61185
+ reden?: string | null;
61186
+ station_slug?: string | null;
61187
+ uitkomst?: string;
61188
+ };
61189
+ Update: {
61190
+ code?: string | null;
61191
+ created_at?: string;
61192
+ detail?: import("../integrations/supabase/types").Json;
61193
+ id?: string;
61194
+ queue_item_id?: string | null;
61195
+ reden?: string | null;
61196
+ station_slug?: string | null;
61197
+ uitkomst?: string;
61198
+ };
61199
+ Relationships: [];
61200
+ };
60386
61201
  print_queue_runners: {
60387
61202
  Row: {
60388
61203
  actief: boolean;
@@ -60622,6 +61437,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60622
61437
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
60623
61438
  online: boolean;
60624
61439
  papierformaat: string;
61440
+ pdf_map: string | null;
60625
61441
  poort: number | null;
60626
61442
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60627
61443
  systeemnaam: string;
@@ -60647,6 +61463,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60647
61463
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60648
61464
  online?: boolean;
60649
61465
  papierformaat?: string;
61466
+ pdf_map?: string | null;
60650
61467
  poort?: number | null;
60651
61468
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60652
61469
  systeemnaam?: string;
@@ -60672,6 +61489,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60672
61489
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60673
61490
  online?: boolean;
60674
61491
  papierformaat?: string;
61492
+ pdf_map?: string | null;
60675
61493
  poort?: number | null;
60676
61494
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60677
61495
  systeemnaam?: string;
@@ -66928,6 +67746,9 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
66928
67746
  is_herprint: boolean;
66929
67747
  kopieen: number;
66930
67748
  layout_id: string | null;
67749
+ lokaal_opgeslagen_op: string | null;
67750
+ lokale_pdf_fout: string | null;
67751
+ lokale_pdf_status: string | null;
66931
67752
  opgepakt_op: string | null;
66932
67753
  paginas: number;
66933
67754
  payload: import("../integrations/supabase/types").Json;
@@ -66936,6 +67757,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
66936
67757
  pogingen: number;
66937
67758
  printer_id: string | null;
66938
67759
  render_html: string | null;
67760
+ resultaat_pdf_base64: string | null;
66939
67761
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
66940
67762
  updated_at: string;
66941
67763
  volgende_poging: string | null;
@@ -67027,6 +67849,53 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
67027
67849
  isSetofReturn: true;
67028
67850
  };
67029
67851
  };
67852
+ claim_pdf_print_jobs: {
67853
+ Args: {
67854
+ _max?: number;
67855
+ };
67856
+ Returns: {
67857
+ agent_id: string | null;
67858
+ bron_job_id: string | null;
67859
+ created_at: string;
67860
+ documentnaam: string;
67861
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
67862
+ extern_job_id: string | null;
67863
+ foutmelding: string | null;
67864
+ gebruiker_id: string | null;
67865
+ gebruiker_naam: string;
67866
+ gebruikte_bron: string | null;
67867
+ gebruikte_layout_id: string | null;
67868
+ gestart_op: string | null;
67869
+ herkomst: string | null;
67870
+ id: string;
67871
+ idempotentie_sleutel: string | null;
67872
+ is_herprint: boolean;
67873
+ kopieen: number;
67874
+ layout_id: string | null;
67875
+ lokaal_opgeslagen_op: string | null;
67876
+ lokale_pdf_fout: string | null;
67877
+ lokale_pdf_status: string | null;
67878
+ opgepakt_op: string | null;
67879
+ paginas: number;
67880
+ payload: import("../integrations/supabase/types").Json;
67881
+ pdf_base64: string | null;
67882
+ pdf_url: string | null;
67883
+ pogingen: number;
67884
+ printer_id: string | null;
67885
+ render_html: string | null;
67886
+ resultaat_pdf_base64: string | null;
67887
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67888
+ updated_at: string;
67889
+ volgende_poging: string | null;
67890
+ voltooid_op: string | null;
67891
+ }[];
67892
+ SetofOptions: {
67893
+ from: "*";
67894
+ to: "print_jobs";
67895
+ isOneToOne: false;
67896
+ isSetofReturn: true;
67897
+ };
67898
+ };
67030
67899
  claim_print_jobs: {
67031
67900
  Args: {
67032
67901
  _agent_id: string;
@@ -67051,6 +67920,9 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
67051
67920
  is_herprint: boolean;
67052
67921
  kopieen: number;
67053
67922
  layout_id: string | null;
67923
+ lokaal_opgeslagen_op: string | null;
67924
+ lokale_pdf_fout: string | null;
67925
+ lokale_pdf_status: string | null;
67054
67926
  opgepakt_op: string | null;
67055
67927
  paginas: number;
67056
67928
  payload: import("../integrations/supabase/types").Json;
@@ -67059,6 +67931,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
67059
67931
  pogingen: number;
67060
67932
  printer_id: string | null;
67061
67933
  render_html: string | null;
67934
+ resultaat_pdf_base64: string | null;
67062
67935
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67063
67936
  updated_at: string;
67064
67937
  volgende_poging: string | null;
@@ -67199,6 +68072,8 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
67199
68072
  order_id: string;
67200
68073
  order_source: string;
67201
68074
  pick_date: string;
68075
+ printed_at: string;
68076
+ printed_today: boolean;
67202
68077
  status: string;
67203
68078
  }[];
67204
68079
  };
@@ -67907,6 +68782,10 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
67907
68782
  };
67908
68783
  Returns: number;
67909
68784
  };
68785
+ logistics_cancel_orphan_tasks: {
68786
+ Args: never;
68787
+ Returns: number;
68788
+ };
67910
68789
  logistics_capacity_day_check: {
67911
68790
  Args: {
67912
68791
  p_from?: string;
@@ -67927,6 +68806,25 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
67927
68806
  };
67928
68807
  Returns: number;
67929
68808
  };
68809
+ logistics_cart_index: {
68810
+ Args: {
68811
+ p_from?: string;
68812
+ p_to?: string;
68813
+ };
68814
+ Returns: {
68815
+ cart_id: string;
68816
+ cart_index: number;
68817
+ cart_label: string;
68818
+ is_shared: boolean;
68819
+ order_number: string;
68820
+ order_source: string;
68821
+ order_uuid: string;
68822
+ pick_date: string;
68823
+ printed_at: string;
68824
+ shifted: boolean;
68825
+ task_status: string;
68826
+ }[];
68827
+ };
67930
68828
  logistics_check_order_allowed: {
67931
68829
  Args: {
67932
68830
  p_lines: import("../integrations/supabase/types").Json;
@@ -68075,6 +68973,17 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
68075
68973
  isSetofReturn: false;
68076
68974
  };
68077
68975
  };
68976
+ logistics_consistency_check: {
68977
+ Args: never;
68978
+ Returns: {
68979
+ agenda_carts: number;
68980
+ control_carts: number;
68981
+ ok: boolean;
68982
+ orphan_tasks: number;
68983
+ pick_date: string;
68984
+ raw_carts: number;
68985
+ }[];
68986
+ };
68078
68987
  logistics_delay_customer_email: {
68079
68988
  Args: {
68080
68989
  p_customer: string;
@@ -68164,6 +69073,16 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
68164
69073
  isSetofReturn: false;
68165
69074
  };
68166
69075
  };
69076
+ logistics_floriday_cart_plan: {
69077
+ Args: {
69078
+ p_order_id: string;
69079
+ };
69080
+ Returns: {
69081
+ carrier_type: string;
69082
+ idx: number;
69083
+ packages: number;
69084
+ }[];
69085
+ };
68167
69086
  logistics_floriday_claim_pushes: {
68168
69087
  Args: {
68169
69088
  _lease_seconds?: number;
@@ -68268,6 +69187,25 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
68268
69187
  };
68269
69188
  Returns: number;
68270
69189
  };
69190
+ logistics_order_overview: {
69191
+ Args: {
69192
+ p_from?: string;
69193
+ p_to?: string;
69194
+ };
69195
+ Returns: {
69196
+ cart_count: number;
69197
+ customer_name: string;
69198
+ delivery_date: string;
69199
+ order_number: string;
69200
+ order_source: string;
69201
+ order_uuid: string;
69202
+ pick_date: string;
69203
+ plant_count: number;
69204
+ printed_at: string;
69205
+ shifted: boolean;
69206
+ status: string;
69207
+ }[];
69208
+ };
68271
69209
  logistics_order_pick_day: {
68272
69210
  Args: {
68273
69211
  p_order_ref: string;
@@ -68280,6 +69218,22 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
68280
69218
  };
68281
69219
  Returns: string;
68282
69220
  };
69221
+ logistics_pick_agenda: {
69222
+ Args: {
69223
+ p_from?: string;
69224
+ p_to?: string;
69225
+ };
69226
+ Returns: {
69227
+ cart_count: number;
69228
+ in_preparation: number;
69229
+ order_count: number;
69230
+ orders: import("../integrations/supabase/types").Json;
69231
+ pick_date: string;
69232
+ plant_count: number;
69233
+ ready: number;
69234
+ shifted_count: number;
69235
+ }[];
69236
+ };
68283
69237
  logistics_pick_email_purpose: {
68284
69238
  Args: never;
68285
69239
  Returns: string;
@@ -68334,6 +69288,13 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
68334
69288
  };
68335
69289
  Returns: undefined;
68336
69290
  };
69291
+ logistics_plan_floriday_order: {
69292
+ Args: {
69293
+ p_buffer_id?: string;
69294
+ p_order_id: string;
69295
+ };
69296
+ Returns: number;
69297
+ };
68337
69298
  logistics_plan_impact_orders: {
68338
69299
  Args: {
68339
69300
  p_order_id: string;
@@ -68439,6 +69400,15 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
68439
69400
  };
68440
69401
  Returns: import("../integrations/supabase/types").Json;
68441
69402
  };
69403
+ logistics_resolve_pick_document: {
69404
+ Args: {
69405
+ _is_herprint: boolean;
69406
+ _queue_item_id: string;
69407
+ _session_id: string;
69408
+ _voorbeeld: boolean;
69409
+ };
69410
+ Returns: import("../integrations/supabase/types").Json;
69411
+ };
68442
69412
  logistics_resolve_settings: {
68443
69413
  Args: {
68444
69414
  p_config_id: string;
@@ -68879,6 +69849,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
68879
69849
  };
68880
69850
  pick_enqueue_print_job: {
68881
69851
  Args: {
69852
+ _is_herprint?: boolean;
68882
69853
  _printer_id?: string;
68883
69854
  _queue_item_id: string;
68884
69855
  _session_id?: string;
@@ -68892,6 +69863,13 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
68892
69863
  };
68893
69864
  Returns: import("../integrations/supabase/types").Json;
68894
69865
  };
69866
+ pick_preview_job: {
69867
+ Args: {
69868
+ _queue_item_id: string;
69869
+ _station_slug: string;
69870
+ };
69871
+ Returns: import("../integrations/supabase/types").Json;
69872
+ };
68895
69873
  pick_print_job_status: {
68896
69874
  Args: {
68897
69875
  _job_id: string;
@@ -69069,6 +70047,24 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
69069
70047
  };
69070
70048
  Returns: undefined;
69071
70049
  };
70050
+ print_preview_toestaan: {
70051
+ Args: {
70052
+ _max?: number;
70053
+ _queue_item_id: string;
70054
+ _station_slug: string;
70055
+ _venster_sec?: number;
70056
+ };
70057
+ Returns: import("../integrations/supabase/types").Json;
70058
+ };
70059
+ print_preview_weiger: {
70060
+ Args: {
70061
+ _code: string;
70062
+ _queue_item_id: string;
70063
+ _reden: string;
70064
+ _station_slug: string;
70065
+ };
70066
+ Returns: undefined;
70067
+ };
69072
70068
  process_logistics_event: {
69073
70069
  Args: {
69074
70070
  p_event_id: string;
@@ -69223,6 +70219,12 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
69223
70219
  };
69224
70220
  Returns: string;
69225
70221
  };
70222
+ resolve_print_job_printer_id: {
70223
+ Args: {
70224
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
70225
+ };
70226
+ Returns: string;
70227
+ };
69226
70228
  resolve_product_id_for_item: {
69227
70229
  Args: {
69228
70230
  p_product_name: string;
@@ -69814,7 +70816,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
69814
70816
  };
69815
70817
  CompositeTypes: { [_ in never]: never; };
69816
70818
  }, {
69817
- PostgrestVersion: "14.17";
70819
+ PostgrestVersion: "14.5";
69818
70820
  }>;
69819
70821
  userId: string;
69820
70822
  claims: import("@supabase/auth-js").User;
@@ -72682,6 +73684,84 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
72682
73684
  };
72683
73685
  Relationships: [];
72684
73686
  };
73687
+ delivery_notes: {
73688
+ Row: {
73689
+ byte_size: number | null;
73690
+ connection_id: string | null;
73691
+ content_type: string;
73692
+ created_at: string;
73693
+ error_message: string | null;
73694
+ fetched_at: string | null;
73695
+ fulfillment_order_id: string | null;
73696
+ http_status: number | null;
73697
+ id: string;
73698
+ label_code: string | null;
73699
+ letter: string | null;
73700
+ load_carrier_index: number | null;
73701
+ load_carrier_type: string | null;
73702
+ order_id: string | null;
73703
+ order_number: string | null;
73704
+ packages: number | null;
73705
+ source: string;
73706
+ status: string;
73707
+ storage_bucket: string;
73708
+ storage_path: string | null;
73709
+ updated_at: string;
73710
+ };
73711
+ Insert: {
73712
+ byte_size?: number | null;
73713
+ connection_id?: string | null;
73714
+ content_type?: string;
73715
+ created_at?: string;
73716
+ error_message?: string | null;
73717
+ fetched_at?: string | null;
73718
+ fulfillment_order_id?: string | null;
73719
+ http_status?: number | null;
73720
+ id?: string;
73721
+ label_code?: string | null;
73722
+ letter?: string | null;
73723
+ load_carrier_index?: number | null;
73724
+ load_carrier_type?: string | null;
73725
+ order_id?: string | null;
73726
+ order_number?: string | null;
73727
+ packages?: number | null;
73728
+ source?: string;
73729
+ status?: string;
73730
+ storage_bucket?: string;
73731
+ storage_path?: string | null;
73732
+ updated_at?: string;
73733
+ };
73734
+ Update: {
73735
+ byte_size?: number | null;
73736
+ connection_id?: string | null;
73737
+ content_type?: string;
73738
+ created_at?: string;
73739
+ error_message?: string | null;
73740
+ fetched_at?: string | null;
73741
+ fulfillment_order_id?: string | null;
73742
+ http_status?: number | null;
73743
+ id?: string;
73744
+ label_code?: string | null;
73745
+ letter?: string | null;
73746
+ load_carrier_index?: number | null;
73747
+ load_carrier_type?: string | null;
73748
+ order_id?: string | null;
73749
+ order_number?: string | null;
73750
+ packages?: number | null;
73751
+ source?: string;
73752
+ status?: string;
73753
+ storage_bucket?: string;
73754
+ storage_path?: string | null;
73755
+ updated_at?: string;
73756
+ };
73757
+ Relationships: [{
73758
+ foreignKeyName: "delivery_notes_order_id_fkey";
73759
+ columns: ["order_id"];
73760
+ isOneToOne: false;
73761
+ referencedRelation: "orders";
73762
+ referencedColumns: ["id"];
73763
+ }];
73764
+ };
72685
73765
  document_bronregels: {
72686
73766
  Row: {
72687
73767
  bron: string;
@@ -75735,10 +76815,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
75735
76815
  };
75736
76816
  floriday_connections: {
75737
76817
  Row: {
75738
- access_token: string | null;
75739
76818
  api_key: string;
75740
- client_id: string;
75741
- client_secret: string;
75742
76819
  created_at: string;
75743
76820
  customers_endpoint: string | null;
75744
76821
  environment: string;
@@ -75753,10 +76830,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
75753
76830
  updated_at: string;
75754
76831
  };
75755
76832
  Insert: {
75756
- access_token?: string | null;
75757
76833
  api_key: string;
75758
- client_id: string;
75759
- client_secret: string;
75760
76834
  created_at?: string;
75761
76835
  customers_endpoint?: string | null;
75762
76836
  environment: string;
@@ -75771,10 +76845,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
75771
76845
  updated_at?: string;
75772
76846
  };
75773
76847
  Update: {
75774
- access_token?: string | null;
75775
76848
  api_key?: string;
75776
- client_id?: string;
75777
- client_secret?: string;
75778
76849
  created_at?: string;
75779
76850
  customers_endpoint?: string | null;
75780
76851
  environment?: string;
@@ -83407,6 +84478,39 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83407
84478
  };
83408
84479
  Relationships: [];
83409
84480
  };
84481
+ print_dedupe_events: {
84482
+ Row: {
84483
+ bestaande_job_id: string | null;
84484
+ created_at: string;
84485
+ detail: string | null;
84486
+ documentnaam: string | null;
84487
+ documenttype: string | null;
84488
+ id: string;
84489
+ idempotentie_sleutel: string;
84490
+ reden: string;
84491
+ };
84492
+ Insert: {
84493
+ bestaande_job_id?: string | null;
84494
+ created_at?: string;
84495
+ detail?: string | null;
84496
+ documentnaam?: string | null;
84497
+ documenttype?: string | null;
84498
+ id?: string;
84499
+ idempotentie_sleutel: string;
84500
+ reden: string;
84501
+ };
84502
+ Update: {
84503
+ bestaande_job_id?: string | null;
84504
+ created_at?: string;
84505
+ detail?: string | null;
84506
+ documentnaam?: string | null;
84507
+ documenttype?: string | null;
84508
+ id?: string;
84509
+ idempotentie_sleutel?: string;
84510
+ reden?: string;
84511
+ };
84512
+ Relationships: [];
84513
+ };
83410
84514
  print_job_logs: {
83411
84515
  Row: {
83412
84516
  created_at: string;
@@ -83457,6 +84561,9 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83457
84561
  is_herprint: boolean;
83458
84562
  kopieen: number;
83459
84563
  layout_id: string | null;
84564
+ lokaal_opgeslagen_op: string | null;
84565
+ lokale_pdf_fout: string | null;
84566
+ lokale_pdf_status: string | null;
83460
84567
  opgepakt_op: string | null;
83461
84568
  paginas: number;
83462
84569
  payload: import("../integrations/supabase/types").Json;
@@ -83465,6 +84572,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83465
84572
  pogingen: number;
83466
84573
  printer_id: string | null;
83467
84574
  render_html: string | null;
84575
+ resultaat_pdf_base64: string | null;
83468
84576
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83469
84577
  updated_at: string;
83470
84578
  volgende_poging: string | null;
@@ -83489,6 +84597,9 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83489
84597
  is_herprint?: boolean;
83490
84598
  kopieen?: number;
83491
84599
  layout_id?: string | null;
84600
+ lokaal_opgeslagen_op?: string | null;
84601
+ lokale_pdf_fout?: string | null;
84602
+ lokale_pdf_status?: string | null;
83492
84603
  opgepakt_op?: string | null;
83493
84604
  paginas?: number;
83494
84605
  payload?: import("../integrations/supabase/types").Json;
@@ -83497,6 +84608,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83497
84608
  pogingen?: number;
83498
84609
  printer_id?: string | null;
83499
84610
  render_html?: string | null;
84611
+ resultaat_pdf_base64?: string | null;
83500
84612
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83501
84613
  updated_at?: string;
83502
84614
  volgende_poging?: string | null;
@@ -83521,6 +84633,9 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83521
84633
  is_herprint?: boolean;
83522
84634
  kopieen?: number;
83523
84635
  layout_id?: string | null;
84636
+ lokaal_opgeslagen_op?: string | null;
84637
+ lokale_pdf_fout?: string | null;
84638
+ lokale_pdf_status?: string | null;
83524
84639
  opgepakt_op?: string | null;
83525
84640
  paginas?: number;
83526
84641
  payload?: import("../integrations/supabase/types").Json;
@@ -83529,6 +84644,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83529
84644
  pogingen?: number;
83530
84645
  printer_id?: string | null;
83531
84646
  render_html?: string | null;
84647
+ resultaat_pdf_base64?: string | null;
83532
84648
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83533
84649
  updated_at?: string;
83534
84650
  volgende_poging?: string | null;
@@ -83647,6 +84763,39 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83647
84763
  };
83648
84764
  Relationships: [];
83649
84765
  };
84766
+ print_preview_events: {
84767
+ Row: {
84768
+ code: string | null;
84769
+ created_at: string;
84770
+ detail: import("../integrations/supabase/types").Json;
84771
+ id: string;
84772
+ queue_item_id: string | null;
84773
+ reden: string | null;
84774
+ station_slug: string | null;
84775
+ uitkomst: string;
84776
+ };
84777
+ Insert: {
84778
+ code?: string | null;
84779
+ created_at?: string;
84780
+ detail?: import("../integrations/supabase/types").Json;
84781
+ id?: string;
84782
+ queue_item_id?: string | null;
84783
+ reden?: string | null;
84784
+ station_slug?: string | null;
84785
+ uitkomst?: string;
84786
+ };
84787
+ Update: {
84788
+ code?: string | null;
84789
+ created_at?: string;
84790
+ detail?: import("../integrations/supabase/types").Json;
84791
+ id?: string;
84792
+ queue_item_id?: string | null;
84793
+ reden?: string | null;
84794
+ station_slug?: string | null;
84795
+ uitkomst?: string;
84796
+ };
84797
+ Relationships: [];
84798
+ };
83650
84799
  print_queue_runners: {
83651
84800
  Row: {
83652
84801
  actief: boolean;
@@ -83886,6 +85035,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83886
85035
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
83887
85036
  online: boolean;
83888
85037
  papierformaat: string;
85038
+ pdf_map: string | null;
83889
85039
  poort: number | null;
83890
85040
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83891
85041
  systeemnaam: string;
@@ -83911,6 +85061,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83911
85061
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83912
85062
  online?: boolean;
83913
85063
  papierformaat?: string;
85064
+ pdf_map?: string | null;
83914
85065
  poort?: number | null;
83915
85066
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83916
85067
  systeemnaam?: string;
@@ -83936,6 +85087,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83936
85087
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83937
85088
  online?: boolean;
83938
85089
  papierformaat?: string;
85090
+ pdf_map?: string | null;
83939
85091
  poort?: number | null;
83940
85092
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83941
85093
  systeemnaam?: string;
@@ -90192,6 +91344,9 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
90192
91344
  is_herprint: boolean;
90193
91345
  kopieen: number;
90194
91346
  layout_id: string | null;
91347
+ lokaal_opgeslagen_op: string | null;
91348
+ lokale_pdf_fout: string | null;
91349
+ lokale_pdf_status: string | null;
90195
91350
  opgepakt_op: string | null;
90196
91351
  paginas: number;
90197
91352
  payload: import("../integrations/supabase/types").Json;
@@ -90200,6 +91355,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
90200
91355
  pogingen: number;
90201
91356
  printer_id: string | null;
90202
91357
  render_html: string | null;
91358
+ resultaat_pdf_base64: string | null;
90203
91359
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90204
91360
  updated_at: string;
90205
91361
  volgende_poging: string | null;
@@ -90291,6 +91447,53 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
90291
91447
  isSetofReturn: true;
90292
91448
  };
90293
91449
  };
91450
+ claim_pdf_print_jobs: {
91451
+ Args: {
91452
+ _max?: number;
91453
+ };
91454
+ Returns: {
91455
+ agent_id: string | null;
91456
+ bron_job_id: string | null;
91457
+ created_at: string;
91458
+ documentnaam: string;
91459
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
91460
+ extern_job_id: string | null;
91461
+ foutmelding: string | null;
91462
+ gebruiker_id: string | null;
91463
+ gebruiker_naam: string;
91464
+ gebruikte_bron: string | null;
91465
+ gebruikte_layout_id: string | null;
91466
+ gestart_op: string | null;
91467
+ herkomst: string | null;
91468
+ id: string;
91469
+ idempotentie_sleutel: string | null;
91470
+ is_herprint: boolean;
91471
+ kopieen: number;
91472
+ layout_id: string | null;
91473
+ lokaal_opgeslagen_op: string | null;
91474
+ lokale_pdf_fout: string | null;
91475
+ lokale_pdf_status: string | null;
91476
+ opgepakt_op: string | null;
91477
+ paginas: number;
91478
+ payload: import("../integrations/supabase/types").Json;
91479
+ pdf_base64: string | null;
91480
+ pdf_url: string | null;
91481
+ pogingen: number;
91482
+ printer_id: string | null;
91483
+ render_html: string | null;
91484
+ resultaat_pdf_base64: string | null;
91485
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
91486
+ updated_at: string;
91487
+ volgende_poging: string | null;
91488
+ voltooid_op: string | null;
91489
+ }[];
91490
+ SetofOptions: {
91491
+ from: "*";
91492
+ to: "print_jobs";
91493
+ isOneToOne: false;
91494
+ isSetofReturn: true;
91495
+ };
91496
+ };
90294
91497
  claim_print_jobs: {
90295
91498
  Args: {
90296
91499
  _agent_id: string;
@@ -90315,6 +91518,9 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
90315
91518
  is_herprint: boolean;
90316
91519
  kopieen: number;
90317
91520
  layout_id: string | null;
91521
+ lokaal_opgeslagen_op: string | null;
91522
+ lokale_pdf_fout: string | null;
91523
+ lokale_pdf_status: string | null;
90318
91524
  opgepakt_op: string | null;
90319
91525
  paginas: number;
90320
91526
  payload: import("../integrations/supabase/types").Json;
@@ -90323,6 +91529,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
90323
91529
  pogingen: number;
90324
91530
  printer_id: string | null;
90325
91531
  render_html: string | null;
91532
+ resultaat_pdf_base64: string | null;
90326
91533
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90327
91534
  updated_at: string;
90328
91535
  volgende_poging: string | null;
@@ -90463,6 +91670,8 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
90463
91670
  order_id: string;
90464
91671
  order_source: string;
90465
91672
  pick_date: string;
91673
+ printed_at: string;
91674
+ printed_today: boolean;
90466
91675
  status: string;
90467
91676
  }[];
90468
91677
  };
@@ -91171,6 +92380,10 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
91171
92380
  };
91172
92381
  Returns: number;
91173
92382
  };
92383
+ logistics_cancel_orphan_tasks: {
92384
+ Args: never;
92385
+ Returns: number;
92386
+ };
91174
92387
  logistics_capacity_day_check: {
91175
92388
  Args: {
91176
92389
  p_from?: string;
@@ -91191,6 +92404,25 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
91191
92404
  };
91192
92405
  Returns: number;
91193
92406
  };
92407
+ logistics_cart_index: {
92408
+ Args: {
92409
+ p_from?: string;
92410
+ p_to?: string;
92411
+ };
92412
+ Returns: {
92413
+ cart_id: string;
92414
+ cart_index: number;
92415
+ cart_label: string;
92416
+ is_shared: boolean;
92417
+ order_number: string;
92418
+ order_source: string;
92419
+ order_uuid: string;
92420
+ pick_date: string;
92421
+ printed_at: string;
92422
+ shifted: boolean;
92423
+ task_status: string;
92424
+ }[];
92425
+ };
91194
92426
  logistics_check_order_allowed: {
91195
92427
  Args: {
91196
92428
  p_lines: import("../integrations/supabase/types").Json;
@@ -91339,6 +92571,17 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
91339
92571
  isSetofReturn: false;
91340
92572
  };
91341
92573
  };
92574
+ logistics_consistency_check: {
92575
+ Args: never;
92576
+ Returns: {
92577
+ agenda_carts: number;
92578
+ control_carts: number;
92579
+ ok: boolean;
92580
+ orphan_tasks: number;
92581
+ pick_date: string;
92582
+ raw_carts: number;
92583
+ }[];
92584
+ };
91342
92585
  logistics_delay_customer_email: {
91343
92586
  Args: {
91344
92587
  p_customer: string;
@@ -91428,6 +92671,16 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
91428
92671
  isSetofReturn: false;
91429
92672
  };
91430
92673
  };
92674
+ logistics_floriday_cart_plan: {
92675
+ Args: {
92676
+ p_order_id: string;
92677
+ };
92678
+ Returns: {
92679
+ carrier_type: string;
92680
+ idx: number;
92681
+ packages: number;
92682
+ }[];
92683
+ };
91431
92684
  logistics_floriday_claim_pushes: {
91432
92685
  Args: {
91433
92686
  _lease_seconds?: number;
@@ -91532,6 +92785,25 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
91532
92785
  };
91533
92786
  Returns: number;
91534
92787
  };
92788
+ logistics_order_overview: {
92789
+ Args: {
92790
+ p_from?: string;
92791
+ p_to?: string;
92792
+ };
92793
+ Returns: {
92794
+ cart_count: number;
92795
+ customer_name: string;
92796
+ delivery_date: string;
92797
+ order_number: string;
92798
+ order_source: string;
92799
+ order_uuid: string;
92800
+ pick_date: string;
92801
+ plant_count: number;
92802
+ printed_at: string;
92803
+ shifted: boolean;
92804
+ status: string;
92805
+ }[];
92806
+ };
91535
92807
  logistics_order_pick_day: {
91536
92808
  Args: {
91537
92809
  p_order_ref: string;
@@ -91544,6 +92816,22 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
91544
92816
  };
91545
92817
  Returns: string;
91546
92818
  };
92819
+ logistics_pick_agenda: {
92820
+ Args: {
92821
+ p_from?: string;
92822
+ p_to?: string;
92823
+ };
92824
+ Returns: {
92825
+ cart_count: number;
92826
+ in_preparation: number;
92827
+ order_count: number;
92828
+ orders: import("../integrations/supabase/types").Json;
92829
+ pick_date: string;
92830
+ plant_count: number;
92831
+ ready: number;
92832
+ shifted_count: number;
92833
+ }[];
92834
+ };
91547
92835
  logistics_pick_email_purpose: {
91548
92836
  Args: never;
91549
92837
  Returns: string;
@@ -91598,6 +92886,13 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
91598
92886
  };
91599
92887
  Returns: undefined;
91600
92888
  };
92889
+ logistics_plan_floriday_order: {
92890
+ Args: {
92891
+ p_buffer_id?: string;
92892
+ p_order_id: string;
92893
+ };
92894
+ Returns: number;
92895
+ };
91601
92896
  logistics_plan_impact_orders: {
91602
92897
  Args: {
91603
92898
  p_order_id: string;
@@ -91703,6 +92998,15 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
91703
92998
  };
91704
92999
  Returns: import("../integrations/supabase/types").Json;
91705
93000
  };
93001
+ logistics_resolve_pick_document: {
93002
+ Args: {
93003
+ _is_herprint: boolean;
93004
+ _queue_item_id: string;
93005
+ _session_id: string;
93006
+ _voorbeeld: boolean;
93007
+ };
93008
+ Returns: import("../integrations/supabase/types").Json;
93009
+ };
91706
93010
  logistics_resolve_settings: {
91707
93011
  Args: {
91708
93012
  p_config_id: string;
@@ -92143,6 +93447,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
92143
93447
  };
92144
93448
  pick_enqueue_print_job: {
92145
93449
  Args: {
93450
+ _is_herprint?: boolean;
92146
93451
  _printer_id?: string;
92147
93452
  _queue_item_id: string;
92148
93453
  _session_id?: string;
@@ -92156,6 +93461,13 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
92156
93461
  };
92157
93462
  Returns: import("../integrations/supabase/types").Json;
92158
93463
  };
93464
+ pick_preview_job: {
93465
+ Args: {
93466
+ _queue_item_id: string;
93467
+ _station_slug: string;
93468
+ };
93469
+ Returns: import("../integrations/supabase/types").Json;
93470
+ };
92159
93471
  pick_print_job_status: {
92160
93472
  Args: {
92161
93473
  _job_id: string;
@@ -92333,6 +93645,24 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
92333
93645
  };
92334
93646
  Returns: undefined;
92335
93647
  };
93648
+ print_preview_toestaan: {
93649
+ Args: {
93650
+ _max?: number;
93651
+ _queue_item_id: string;
93652
+ _station_slug: string;
93653
+ _venster_sec?: number;
93654
+ };
93655
+ Returns: import("../integrations/supabase/types").Json;
93656
+ };
93657
+ print_preview_weiger: {
93658
+ Args: {
93659
+ _code: string;
93660
+ _queue_item_id: string;
93661
+ _reden: string;
93662
+ _station_slug: string;
93663
+ };
93664
+ Returns: undefined;
93665
+ };
92336
93666
  process_logistics_event: {
92337
93667
  Args: {
92338
93668
  p_event_id: string;
@@ -92487,6 +93817,12 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
92487
93817
  };
92488
93818
  Returns: string;
92489
93819
  };
93820
+ resolve_print_job_printer_id: {
93821
+ Args: {
93822
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
93823
+ };
93824
+ Returns: string;
93825
+ };
92490
93826
  resolve_product_id_for_item: {
92491
93827
  Args: {
92492
93828
  p_product_name: string;
@@ -93078,7 +94414,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
93078
94414
  };
93079
94415
  CompositeTypes: { [_ in never]: never; };
93080
94416
  }, {
93081
- PostgrestVersion: "14.17";
94417
+ PostgrestVersion: "14.5";
93082
94418
  }>;
93083
94419
  userId: string;
93084
94420
  claims: import("@supabase/auth-js").User;
@@ -95960,6 +97296,84 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
95960
97296
  };
95961
97297
  Relationships: [];
95962
97298
  };
97299
+ delivery_notes: {
97300
+ Row: {
97301
+ byte_size: number | null;
97302
+ connection_id: string | null;
97303
+ content_type: string;
97304
+ created_at: string;
97305
+ error_message: string | null;
97306
+ fetched_at: string | null;
97307
+ fulfillment_order_id: string | null;
97308
+ http_status: number | null;
97309
+ id: string;
97310
+ label_code: string | null;
97311
+ letter: string | null;
97312
+ load_carrier_index: number | null;
97313
+ load_carrier_type: string | null;
97314
+ order_id: string | null;
97315
+ order_number: string | null;
97316
+ packages: number | null;
97317
+ source: string;
97318
+ status: string;
97319
+ storage_bucket: string;
97320
+ storage_path: string | null;
97321
+ updated_at: string;
97322
+ };
97323
+ Insert: {
97324
+ byte_size?: number | null;
97325
+ connection_id?: string | null;
97326
+ content_type?: string;
97327
+ created_at?: string;
97328
+ error_message?: string | null;
97329
+ fetched_at?: string | null;
97330
+ fulfillment_order_id?: string | null;
97331
+ http_status?: number | null;
97332
+ id?: string;
97333
+ label_code?: string | null;
97334
+ letter?: string | null;
97335
+ load_carrier_index?: number | null;
97336
+ load_carrier_type?: string | null;
97337
+ order_id?: string | null;
97338
+ order_number?: string | null;
97339
+ packages?: number | null;
97340
+ source?: string;
97341
+ status?: string;
97342
+ storage_bucket?: string;
97343
+ storage_path?: string | null;
97344
+ updated_at?: string;
97345
+ };
97346
+ Update: {
97347
+ byte_size?: number | null;
97348
+ connection_id?: string | null;
97349
+ content_type?: string;
97350
+ created_at?: string;
97351
+ error_message?: string | null;
97352
+ fetched_at?: string | null;
97353
+ fulfillment_order_id?: string | null;
97354
+ http_status?: number | null;
97355
+ id?: string;
97356
+ label_code?: string | null;
97357
+ letter?: string | null;
97358
+ load_carrier_index?: number | null;
97359
+ load_carrier_type?: string | null;
97360
+ order_id?: string | null;
97361
+ order_number?: string | null;
97362
+ packages?: number | null;
97363
+ source?: string;
97364
+ status?: string;
97365
+ storage_bucket?: string;
97366
+ storage_path?: string | null;
97367
+ updated_at?: string;
97368
+ };
97369
+ Relationships: [{
97370
+ foreignKeyName: "delivery_notes_order_id_fkey";
97371
+ columns: ["order_id"];
97372
+ isOneToOne: false;
97373
+ referencedRelation: "orders";
97374
+ referencedColumns: ["id"];
97375
+ }];
97376
+ };
95963
97377
  document_bronregels: {
95964
97378
  Row: {
95965
97379
  bron: string;
@@ -99013,10 +100427,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
99013
100427
  };
99014
100428
  floriday_connections: {
99015
100429
  Row: {
99016
- access_token: string | null;
99017
100430
  api_key: string;
99018
- client_id: string;
99019
- client_secret: string;
99020
100431
  created_at: string;
99021
100432
  customers_endpoint: string | null;
99022
100433
  environment: string;
@@ -99031,10 +100442,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
99031
100442
  updated_at: string;
99032
100443
  };
99033
100444
  Insert: {
99034
- access_token?: string | null;
99035
100445
  api_key: string;
99036
- client_id: string;
99037
- client_secret: string;
99038
100446
  created_at?: string;
99039
100447
  customers_endpoint?: string | null;
99040
100448
  environment: string;
@@ -99049,10 +100457,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
99049
100457
  updated_at?: string;
99050
100458
  };
99051
100459
  Update: {
99052
- access_token?: string | null;
99053
100460
  api_key?: string;
99054
- client_id?: string;
99055
- client_secret?: string;
99056
100461
  created_at?: string;
99057
100462
  customers_endpoint?: string | null;
99058
100463
  environment?: string;
@@ -106685,6 +108090,39 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
106685
108090
  };
106686
108091
  Relationships: [];
106687
108092
  };
108093
+ print_dedupe_events: {
108094
+ Row: {
108095
+ bestaande_job_id: string | null;
108096
+ created_at: string;
108097
+ detail: string | null;
108098
+ documentnaam: string | null;
108099
+ documenttype: string | null;
108100
+ id: string;
108101
+ idempotentie_sleutel: string;
108102
+ reden: string;
108103
+ };
108104
+ Insert: {
108105
+ bestaande_job_id?: string | null;
108106
+ created_at?: string;
108107
+ detail?: string | null;
108108
+ documentnaam?: string | null;
108109
+ documenttype?: string | null;
108110
+ id?: string;
108111
+ idempotentie_sleutel: string;
108112
+ reden: string;
108113
+ };
108114
+ Update: {
108115
+ bestaande_job_id?: string | null;
108116
+ created_at?: string;
108117
+ detail?: string | null;
108118
+ documentnaam?: string | null;
108119
+ documenttype?: string | null;
108120
+ id?: string;
108121
+ idempotentie_sleutel?: string;
108122
+ reden?: string;
108123
+ };
108124
+ Relationships: [];
108125
+ };
106688
108126
  print_job_logs: {
106689
108127
  Row: {
106690
108128
  created_at: string;
@@ -106735,6 +108173,9 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
106735
108173
  is_herprint: boolean;
106736
108174
  kopieen: number;
106737
108175
  layout_id: string | null;
108176
+ lokaal_opgeslagen_op: string | null;
108177
+ lokale_pdf_fout: string | null;
108178
+ lokale_pdf_status: string | null;
106738
108179
  opgepakt_op: string | null;
106739
108180
  paginas: number;
106740
108181
  payload: import("../integrations/supabase/types").Json;
@@ -106743,6 +108184,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
106743
108184
  pogingen: number;
106744
108185
  printer_id: string | null;
106745
108186
  render_html: string | null;
108187
+ resultaat_pdf_base64: string | null;
106746
108188
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
106747
108189
  updated_at: string;
106748
108190
  volgende_poging: string | null;
@@ -106767,6 +108209,9 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
106767
108209
  is_herprint?: boolean;
106768
108210
  kopieen?: number;
106769
108211
  layout_id?: string | null;
108212
+ lokaal_opgeslagen_op?: string | null;
108213
+ lokale_pdf_fout?: string | null;
108214
+ lokale_pdf_status?: string | null;
106770
108215
  opgepakt_op?: string | null;
106771
108216
  paginas?: number;
106772
108217
  payload?: import("../integrations/supabase/types").Json;
@@ -106775,6 +108220,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
106775
108220
  pogingen?: number;
106776
108221
  printer_id?: string | null;
106777
108222
  render_html?: string | null;
108223
+ resultaat_pdf_base64?: string | null;
106778
108224
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
106779
108225
  updated_at?: string;
106780
108226
  volgende_poging?: string | null;
@@ -106799,6 +108245,9 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
106799
108245
  is_herprint?: boolean;
106800
108246
  kopieen?: number;
106801
108247
  layout_id?: string | null;
108248
+ lokaal_opgeslagen_op?: string | null;
108249
+ lokale_pdf_fout?: string | null;
108250
+ lokale_pdf_status?: string | null;
106802
108251
  opgepakt_op?: string | null;
106803
108252
  paginas?: number;
106804
108253
  payload?: import("../integrations/supabase/types").Json;
@@ -106807,6 +108256,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
106807
108256
  pogingen?: number;
106808
108257
  printer_id?: string | null;
106809
108258
  render_html?: string | null;
108259
+ resultaat_pdf_base64?: string | null;
106810
108260
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
106811
108261
  updated_at?: string;
106812
108262
  volgende_poging?: string | null;
@@ -106925,6 +108375,39 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
106925
108375
  };
106926
108376
  Relationships: [];
106927
108377
  };
108378
+ print_preview_events: {
108379
+ Row: {
108380
+ code: string | null;
108381
+ created_at: string;
108382
+ detail: import("../integrations/supabase/types").Json;
108383
+ id: string;
108384
+ queue_item_id: string | null;
108385
+ reden: string | null;
108386
+ station_slug: string | null;
108387
+ uitkomst: string;
108388
+ };
108389
+ Insert: {
108390
+ code?: string | null;
108391
+ created_at?: string;
108392
+ detail?: import("../integrations/supabase/types").Json;
108393
+ id?: string;
108394
+ queue_item_id?: string | null;
108395
+ reden?: string | null;
108396
+ station_slug?: string | null;
108397
+ uitkomst?: string;
108398
+ };
108399
+ Update: {
108400
+ code?: string | null;
108401
+ created_at?: string;
108402
+ detail?: import("../integrations/supabase/types").Json;
108403
+ id?: string;
108404
+ queue_item_id?: string | null;
108405
+ reden?: string | null;
108406
+ station_slug?: string | null;
108407
+ uitkomst?: string;
108408
+ };
108409
+ Relationships: [];
108410
+ };
106928
108411
  print_queue_runners: {
106929
108412
  Row: {
106930
108413
  actief: boolean;
@@ -107164,6 +108647,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
107164
108647
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
107165
108648
  online: boolean;
107166
108649
  papierformaat: string;
108650
+ pdf_map: string | null;
107167
108651
  poort: number | null;
107168
108652
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107169
108653
  systeemnaam: string;
@@ -107189,6 +108673,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
107189
108673
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
107190
108674
  online?: boolean;
107191
108675
  papierformaat?: string;
108676
+ pdf_map?: string | null;
107192
108677
  poort?: number | null;
107193
108678
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107194
108679
  systeemnaam?: string;
@@ -107214,6 +108699,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
107214
108699
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
107215
108700
  online?: boolean;
107216
108701
  papierformaat?: string;
108702
+ pdf_map?: string | null;
107217
108703
  poort?: number | null;
107218
108704
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107219
108705
  systeemnaam?: string;
@@ -113470,6 +114956,9 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
113470
114956
  is_herprint: boolean;
113471
114957
  kopieen: number;
113472
114958
  layout_id: string | null;
114959
+ lokaal_opgeslagen_op: string | null;
114960
+ lokale_pdf_fout: string | null;
114961
+ lokale_pdf_status: string | null;
113473
114962
  opgepakt_op: string | null;
113474
114963
  paginas: number;
113475
114964
  payload: import("../integrations/supabase/types").Json;
@@ -113478,6 +114967,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
113478
114967
  pogingen: number;
113479
114968
  printer_id: string | null;
113480
114969
  render_html: string | null;
114970
+ resultaat_pdf_base64: string | null;
113481
114971
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
113482
114972
  updated_at: string;
113483
114973
  volgende_poging: string | null;
@@ -113569,6 +115059,53 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
113569
115059
  isSetofReturn: true;
113570
115060
  };
113571
115061
  };
115062
+ claim_pdf_print_jobs: {
115063
+ Args: {
115064
+ _max?: number;
115065
+ };
115066
+ Returns: {
115067
+ agent_id: string | null;
115068
+ bron_job_id: string | null;
115069
+ created_at: string;
115070
+ documentnaam: string;
115071
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
115072
+ extern_job_id: string | null;
115073
+ foutmelding: string | null;
115074
+ gebruiker_id: string | null;
115075
+ gebruiker_naam: string;
115076
+ gebruikte_bron: string | null;
115077
+ gebruikte_layout_id: string | null;
115078
+ gestart_op: string | null;
115079
+ herkomst: string | null;
115080
+ id: string;
115081
+ idempotentie_sleutel: string | null;
115082
+ is_herprint: boolean;
115083
+ kopieen: number;
115084
+ layout_id: string | null;
115085
+ lokaal_opgeslagen_op: string | null;
115086
+ lokale_pdf_fout: string | null;
115087
+ lokale_pdf_status: string | null;
115088
+ opgepakt_op: string | null;
115089
+ paginas: number;
115090
+ payload: import("../integrations/supabase/types").Json;
115091
+ pdf_base64: string | null;
115092
+ pdf_url: string | null;
115093
+ pogingen: number;
115094
+ printer_id: string | null;
115095
+ render_html: string | null;
115096
+ resultaat_pdf_base64: string | null;
115097
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
115098
+ updated_at: string;
115099
+ volgende_poging: string | null;
115100
+ voltooid_op: string | null;
115101
+ }[];
115102
+ SetofOptions: {
115103
+ from: "*";
115104
+ to: "print_jobs";
115105
+ isOneToOne: false;
115106
+ isSetofReturn: true;
115107
+ };
115108
+ };
113572
115109
  claim_print_jobs: {
113573
115110
  Args: {
113574
115111
  _agent_id: string;
@@ -113593,6 +115130,9 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
113593
115130
  is_herprint: boolean;
113594
115131
  kopieen: number;
113595
115132
  layout_id: string | null;
115133
+ lokaal_opgeslagen_op: string | null;
115134
+ lokale_pdf_fout: string | null;
115135
+ lokale_pdf_status: string | null;
113596
115136
  opgepakt_op: string | null;
113597
115137
  paginas: number;
113598
115138
  payload: import("../integrations/supabase/types").Json;
@@ -113601,6 +115141,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
113601
115141
  pogingen: number;
113602
115142
  printer_id: string | null;
113603
115143
  render_html: string | null;
115144
+ resultaat_pdf_base64: string | null;
113604
115145
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
113605
115146
  updated_at: string;
113606
115147
  volgende_poging: string | null;
@@ -113741,6 +115282,8 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
113741
115282
  order_id: string;
113742
115283
  order_source: string;
113743
115284
  pick_date: string;
115285
+ printed_at: string;
115286
+ printed_today: boolean;
113744
115287
  status: string;
113745
115288
  }[];
113746
115289
  };
@@ -114449,6 +115992,10 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
114449
115992
  };
114450
115993
  Returns: number;
114451
115994
  };
115995
+ logistics_cancel_orphan_tasks: {
115996
+ Args: never;
115997
+ Returns: number;
115998
+ };
114452
115999
  logistics_capacity_day_check: {
114453
116000
  Args: {
114454
116001
  p_from?: string;
@@ -114469,6 +116016,25 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
114469
116016
  };
114470
116017
  Returns: number;
114471
116018
  };
116019
+ logistics_cart_index: {
116020
+ Args: {
116021
+ p_from?: string;
116022
+ p_to?: string;
116023
+ };
116024
+ Returns: {
116025
+ cart_id: string;
116026
+ cart_index: number;
116027
+ cart_label: string;
116028
+ is_shared: boolean;
116029
+ order_number: string;
116030
+ order_source: string;
116031
+ order_uuid: string;
116032
+ pick_date: string;
116033
+ printed_at: string;
116034
+ shifted: boolean;
116035
+ task_status: string;
116036
+ }[];
116037
+ };
114472
116038
  logistics_check_order_allowed: {
114473
116039
  Args: {
114474
116040
  p_lines: import("../integrations/supabase/types").Json;
@@ -114617,6 +116183,17 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
114617
116183
  isSetofReturn: false;
114618
116184
  };
114619
116185
  };
116186
+ logistics_consistency_check: {
116187
+ Args: never;
116188
+ Returns: {
116189
+ agenda_carts: number;
116190
+ control_carts: number;
116191
+ ok: boolean;
116192
+ orphan_tasks: number;
116193
+ pick_date: string;
116194
+ raw_carts: number;
116195
+ }[];
116196
+ };
114620
116197
  logistics_delay_customer_email: {
114621
116198
  Args: {
114622
116199
  p_customer: string;
@@ -114706,6 +116283,16 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
114706
116283
  isSetofReturn: false;
114707
116284
  };
114708
116285
  };
116286
+ logistics_floriday_cart_plan: {
116287
+ Args: {
116288
+ p_order_id: string;
116289
+ };
116290
+ Returns: {
116291
+ carrier_type: string;
116292
+ idx: number;
116293
+ packages: number;
116294
+ }[];
116295
+ };
114709
116296
  logistics_floriday_claim_pushes: {
114710
116297
  Args: {
114711
116298
  _lease_seconds?: number;
@@ -114810,6 +116397,25 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
114810
116397
  };
114811
116398
  Returns: number;
114812
116399
  };
116400
+ logistics_order_overview: {
116401
+ Args: {
116402
+ p_from?: string;
116403
+ p_to?: string;
116404
+ };
116405
+ Returns: {
116406
+ cart_count: number;
116407
+ customer_name: string;
116408
+ delivery_date: string;
116409
+ order_number: string;
116410
+ order_source: string;
116411
+ order_uuid: string;
116412
+ pick_date: string;
116413
+ plant_count: number;
116414
+ printed_at: string;
116415
+ shifted: boolean;
116416
+ status: string;
116417
+ }[];
116418
+ };
114813
116419
  logistics_order_pick_day: {
114814
116420
  Args: {
114815
116421
  p_order_ref: string;
@@ -114822,6 +116428,22 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
114822
116428
  };
114823
116429
  Returns: string;
114824
116430
  };
116431
+ logistics_pick_agenda: {
116432
+ Args: {
116433
+ p_from?: string;
116434
+ p_to?: string;
116435
+ };
116436
+ Returns: {
116437
+ cart_count: number;
116438
+ in_preparation: number;
116439
+ order_count: number;
116440
+ orders: import("../integrations/supabase/types").Json;
116441
+ pick_date: string;
116442
+ plant_count: number;
116443
+ ready: number;
116444
+ shifted_count: number;
116445
+ }[];
116446
+ };
114825
116447
  logistics_pick_email_purpose: {
114826
116448
  Args: never;
114827
116449
  Returns: string;
@@ -114876,6 +116498,13 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
114876
116498
  };
114877
116499
  Returns: undefined;
114878
116500
  };
116501
+ logistics_plan_floriday_order: {
116502
+ Args: {
116503
+ p_buffer_id?: string;
116504
+ p_order_id: string;
116505
+ };
116506
+ Returns: number;
116507
+ };
114879
116508
  logistics_plan_impact_orders: {
114880
116509
  Args: {
114881
116510
  p_order_id: string;
@@ -114981,6 +116610,15 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
114981
116610
  };
114982
116611
  Returns: import("../integrations/supabase/types").Json;
114983
116612
  };
116613
+ logistics_resolve_pick_document: {
116614
+ Args: {
116615
+ _is_herprint: boolean;
116616
+ _queue_item_id: string;
116617
+ _session_id: string;
116618
+ _voorbeeld: boolean;
116619
+ };
116620
+ Returns: import("../integrations/supabase/types").Json;
116621
+ };
114984
116622
  logistics_resolve_settings: {
114985
116623
  Args: {
114986
116624
  p_config_id: string;
@@ -115421,6 +117059,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
115421
117059
  };
115422
117060
  pick_enqueue_print_job: {
115423
117061
  Args: {
117062
+ _is_herprint?: boolean;
115424
117063
  _printer_id?: string;
115425
117064
  _queue_item_id: string;
115426
117065
  _session_id?: string;
@@ -115434,6 +117073,13 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
115434
117073
  };
115435
117074
  Returns: import("../integrations/supabase/types").Json;
115436
117075
  };
117076
+ pick_preview_job: {
117077
+ Args: {
117078
+ _queue_item_id: string;
117079
+ _station_slug: string;
117080
+ };
117081
+ Returns: import("../integrations/supabase/types").Json;
117082
+ };
115437
117083
  pick_print_job_status: {
115438
117084
  Args: {
115439
117085
  _job_id: string;
@@ -115611,6 +117257,24 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
115611
117257
  };
115612
117258
  Returns: undefined;
115613
117259
  };
117260
+ print_preview_toestaan: {
117261
+ Args: {
117262
+ _max?: number;
117263
+ _queue_item_id: string;
117264
+ _station_slug: string;
117265
+ _venster_sec?: number;
117266
+ };
117267
+ Returns: import("../integrations/supabase/types").Json;
117268
+ };
117269
+ print_preview_weiger: {
117270
+ Args: {
117271
+ _code: string;
117272
+ _queue_item_id: string;
117273
+ _reden: string;
117274
+ _station_slug: string;
117275
+ };
117276
+ Returns: undefined;
117277
+ };
115614
117278
  process_logistics_event: {
115615
117279
  Args: {
115616
117280
  p_event_id: string;
@@ -115765,6 +117429,12 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
115765
117429
  };
115766
117430
  Returns: string;
115767
117431
  };
117432
+ resolve_print_job_printer_id: {
117433
+ Args: {
117434
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
117435
+ };
117436
+ Returns: string;
117437
+ };
115768
117438
  resolve_product_id_for_item: {
115769
117439
  Args: {
115770
117440
  p_product_name: string;
@@ -116356,7 +118026,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
116356
118026
  };
116357
118027
  CompositeTypes: { [_ in never]: never; };
116358
118028
  }, {
116359
- PostgrestVersion: "14.17";
118029
+ PostgrestVersion: "14.5";
116360
118030
  }>;
116361
118031
  userId: string;
116362
118032
  claims: import("@supabase/auth-js").User;