@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
@@ -2851,6 +2851,84 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
2851
2851
  };
2852
2852
  Relationships: [];
2853
2853
  };
2854
+ delivery_notes: {
2855
+ Row: {
2856
+ byte_size: number | null;
2857
+ connection_id: string | null;
2858
+ content_type: string;
2859
+ created_at: string;
2860
+ error_message: string | null;
2861
+ fetched_at: string | null;
2862
+ fulfillment_order_id: string | null;
2863
+ http_status: number | null;
2864
+ id: string;
2865
+ label_code: string | null;
2866
+ letter: string | null;
2867
+ load_carrier_index: number | null;
2868
+ load_carrier_type: string | null;
2869
+ order_id: string | null;
2870
+ order_number: string | null;
2871
+ packages: number | null;
2872
+ source: string;
2873
+ status: string;
2874
+ storage_bucket: string;
2875
+ storage_path: string | null;
2876
+ updated_at: string;
2877
+ };
2878
+ Insert: {
2879
+ byte_size?: number | null;
2880
+ connection_id?: string | null;
2881
+ content_type?: string;
2882
+ created_at?: string;
2883
+ error_message?: string | null;
2884
+ fetched_at?: string | null;
2885
+ fulfillment_order_id?: string | null;
2886
+ http_status?: number | null;
2887
+ id?: string;
2888
+ label_code?: string | null;
2889
+ letter?: string | null;
2890
+ load_carrier_index?: number | null;
2891
+ load_carrier_type?: string | null;
2892
+ order_id?: string | null;
2893
+ order_number?: string | null;
2894
+ packages?: number | null;
2895
+ source?: string;
2896
+ status?: string;
2897
+ storage_bucket?: string;
2898
+ storage_path?: string | null;
2899
+ updated_at?: string;
2900
+ };
2901
+ Update: {
2902
+ byte_size?: number | null;
2903
+ connection_id?: string | null;
2904
+ content_type?: string;
2905
+ created_at?: string;
2906
+ error_message?: string | null;
2907
+ fetched_at?: string | null;
2908
+ fulfillment_order_id?: string | null;
2909
+ http_status?: number | null;
2910
+ id?: string;
2911
+ label_code?: string | null;
2912
+ letter?: string | null;
2913
+ load_carrier_index?: number | null;
2914
+ load_carrier_type?: string | null;
2915
+ order_id?: string | null;
2916
+ order_number?: string | null;
2917
+ packages?: number | null;
2918
+ source?: string;
2919
+ status?: string;
2920
+ storage_bucket?: string;
2921
+ storage_path?: string | null;
2922
+ updated_at?: string;
2923
+ };
2924
+ Relationships: [{
2925
+ foreignKeyName: "delivery_notes_order_id_fkey";
2926
+ columns: ["order_id"];
2927
+ isOneToOne: false;
2928
+ referencedRelation: "orders";
2929
+ referencedColumns: ["id"];
2930
+ }];
2931
+ };
2854
2932
  document_bronregels: {
2855
2933
  Row: {
2856
2934
  bron: string;
@@ -5904,10 +5982,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
5904
5982
  };
5905
5983
  floriday_connections: {
5906
5984
  Row: {
5907
- access_token: string | null;
5908
5985
  api_key: string;
5909
- client_id: string;
5910
- client_secret: string;
5911
5986
  created_at: string;
5912
5987
  customers_endpoint: string | null;
5913
5988
  environment: string;
@@ -5922,10 +5997,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
5922
5997
  updated_at: string;
5923
5998
  };
5924
5999
  Insert: {
5925
- access_token?: string | null;
5926
6000
  api_key: string;
5927
- client_id: string;
5928
- client_secret: string;
5929
6001
  created_at?: string;
5930
6002
  customers_endpoint?: string | null;
5931
6003
  environment: string;
@@ -5940,10 +6012,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
5940
6012
  updated_at?: string;
5941
6013
  };
5942
6014
  Update: {
5943
- access_token?: string | null;
5944
6015
  api_key?: string;
5945
- client_id?: string;
5946
- client_secret?: string;
5947
6016
  created_at?: string;
5948
6017
  customers_endpoint?: string | null;
5949
6018
  environment?: string;
@@ -13576,6 +13645,39 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
13576
13645
  };
13577
13646
  Relationships: [];
13578
13647
  };
13648
+ print_dedupe_events: {
13649
+ Row: {
13650
+ bestaande_job_id: string | null;
13651
+ created_at: string;
13652
+ detail: string | null;
13653
+ documentnaam: string | null;
13654
+ documenttype: string | null;
13655
+ id: string;
13656
+ idempotentie_sleutel: string;
13657
+ reden: string;
13658
+ };
13659
+ Insert: {
13660
+ bestaande_job_id?: string | null;
13661
+ created_at?: string;
13662
+ detail?: string | null;
13663
+ documentnaam?: string | null;
13664
+ documenttype?: string | null;
13665
+ id?: string;
13666
+ idempotentie_sleutel: string;
13667
+ reden: string;
13668
+ };
13669
+ Update: {
13670
+ bestaande_job_id?: string | null;
13671
+ created_at?: string;
13672
+ detail?: string | null;
13673
+ documentnaam?: string | null;
13674
+ documenttype?: string | null;
13675
+ id?: string;
13676
+ idempotentie_sleutel?: string;
13677
+ reden?: string;
13678
+ };
13679
+ Relationships: [];
13680
+ };
13579
13681
  print_job_logs: {
13580
13682
  Row: {
13581
13683
  created_at: string;
@@ -13626,6 +13728,9 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
13626
13728
  is_herprint: boolean;
13627
13729
  kopieen: number;
13628
13730
  layout_id: string | null;
13731
+ lokaal_opgeslagen_op: string | null;
13732
+ lokale_pdf_fout: string | null;
13733
+ lokale_pdf_status: string | null;
13629
13734
  opgepakt_op: string | null;
13630
13735
  paginas: number;
13631
13736
  payload: import("../integrations/supabase/types").Json;
@@ -13634,6 +13739,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
13634
13739
  pogingen: number;
13635
13740
  printer_id: string | null;
13636
13741
  render_html: string | null;
13742
+ resultaat_pdf_base64: string | null;
13637
13743
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13638
13744
  updated_at: string;
13639
13745
  volgende_poging: string | null;
@@ -13658,6 +13764,9 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
13658
13764
  is_herprint?: boolean;
13659
13765
  kopieen?: number;
13660
13766
  layout_id?: string | null;
13767
+ lokaal_opgeslagen_op?: string | null;
13768
+ lokale_pdf_fout?: string | null;
13769
+ lokale_pdf_status?: string | null;
13661
13770
  opgepakt_op?: string | null;
13662
13771
  paginas?: number;
13663
13772
  payload?: import("../integrations/supabase/types").Json;
@@ -13666,6 +13775,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
13666
13775
  pogingen?: number;
13667
13776
  printer_id?: string | null;
13668
13777
  render_html?: string | null;
13778
+ resultaat_pdf_base64?: string | null;
13669
13779
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13670
13780
  updated_at?: string;
13671
13781
  volgende_poging?: string | null;
@@ -13690,6 +13800,9 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
13690
13800
  is_herprint?: boolean;
13691
13801
  kopieen?: number;
13692
13802
  layout_id?: string | null;
13803
+ lokaal_opgeslagen_op?: string | null;
13804
+ lokale_pdf_fout?: string | null;
13805
+ lokale_pdf_status?: string | null;
13693
13806
  opgepakt_op?: string | null;
13694
13807
  paginas?: number;
13695
13808
  payload?: import("../integrations/supabase/types").Json;
@@ -13698,6 +13811,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
13698
13811
  pogingen?: number;
13699
13812
  printer_id?: string | null;
13700
13813
  render_html?: string | null;
13814
+ resultaat_pdf_base64?: string | null;
13701
13815
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13702
13816
  updated_at?: string;
13703
13817
  volgende_poging?: string | null;
@@ -13816,6 +13930,39 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
13816
13930
  };
13817
13931
  Relationships: [];
13818
13932
  };
13933
+ print_preview_events: {
13934
+ Row: {
13935
+ code: string | null;
13936
+ created_at: string;
13937
+ detail: import("../integrations/supabase/types").Json;
13938
+ id: string;
13939
+ queue_item_id: string | null;
13940
+ reden: string | null;
13941
+ station_slug: string | null;
13942
+ uitkomst: string;
13943
+ };
13944
+ Insert: {
13945
+ code?: string | null;
13946
+ created_at?: string;
13947
+ detail?: import("../integrations/supabase/types").Json;
13948
+ id?: string;
13949
+ queue_item_id?: string | null;
13950
+ reden?: string | null;
13951
+ station_slug?: string | null;
13952
+ uitkomst?: string;
13953
+ };
13954
+ Update: {
13955
+ code?: string | null;
13956
+ created_at?: string;
13957
+ detail?: import("../integrations/supabase/types").Json;
13958
+ id?: string;
13959
+ queue_item_id?: string | null;
13960
+ reden?: string | null;
13961
+ station_slug?: string | null;
13962
+ uitkomst?: string;
13963
+ };
13964
+ Relationships: [];
13965
+ };
13819
13966
  print_queue_runners: {
13820
13967
  Row: {
13821
13968
  actief: boolean;
@@ -14055,6 +14202,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
14055
14202
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14056
14203
  online: boolean;
14057
14204
  papierformaat: string;
14205
+ pdf_map: string | null;
14058
14206
  poort: number | null;
14059
14207
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14060
14208
  systeemnaam: string;
@@ -14080,6 +14228,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
14080
14228
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14081
14229
  online?: boolean;
14082
14230
  papierformaat?: string;
14231
+ pdf_map?: string | null;
14083
14232
  poort?: number | null;
14084
14233
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14085
14234
  systeemnaam?: string;
@@ -14105,6 +14254,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
14105
14254
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14106
14255
  online?: boolean;
14107
14256
  papierformaat?: string;
14257
+ pdf_map?: string | null;
14108
14258
  poort?: number | null;
14109
14259
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14110
14260
  systeemnaam?: string;
@@ -20361,6 +20511,9 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
20361
20511
  is_herprint: boolean;
20362
20512
  kopieen: number;
20363
20513
  layout_id: string | null;
20514
+ lokaal_opgeslagen_op: string | null;
20515
+ lokale_pdf_fout: string | null;
20516
+ lokale_pdf_status: string | null;
20364
20517
  opgepakt_op: string | null;
20365
20518
  paginas: number;
20366
20519
  payload: import("../integrations/supabase/types").Json;
@@ -20369,6 +20522,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
20369
20522
  pogingen: number;
20370
20523
  printer_id: string | null;
20371
20524
  render_html: string | null;
20525
+ resultaat_pdf_base64: string | null;
20372
20526
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20373
20527
  updated_at: string;
20374
20528
  volgende_poging: string | null;
@@ -20460,6 +20614,53 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
20460
20614
  isSetofReturn: true;
20461
20615
  };
20462
20616
  };
20617
+ claim_pdf_print_jobs: {
20618
+ Args: {
20619
+ _max?: number;
20620
+ };
20621
+ Returns: {
20622
+ agent_id: string | null;
20623
+ bron_job_id: string | null;
20624
+ created_at: string;
20625
+ documentnaam: string;
20626
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20627
+ extern_job_id: string | null;
20628
+ foutmelding: string | null;
20629
+ gebruiker_id: string | null;
20630
+ gebruiker_naam: string;
20631
+ gebruikte_bron: string | null;
20632
+ gebruikte_layout_id: string | null;
20633
+ gestart_op: string | null;
20634
+ herkomst: string | null;
20635
+ id: string;
20636
+ idempotentie_sleutel: string | null;
20637
+ is_herprint: boolean;
20638
+ kopieen: number;
20639
+ layout_id: string | null;
20640
+ lokaal_opgeslagen_op: string | null;
20641
+ lokale_pdf_fout: string | null;
20642
+ lokale_pdf_status: string | null;
20643
+ opgepakt_op: string | null;
20644
+ paginas: number;
20645
+ payload: import("../integrations/supabase/types").Json;
20646
+ pdf_base64: string | null;
20647
+ pdf_url: string | null;
20648
+ pogingen: number;
20649
+ printer_id: string | null;
20650
+ render_html: string | null;
20651
+ resultaat_pdf_base64: string | null;
20652
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20653
+ updated_at: string;
20654
+ volgende_poging: string | null;
20655
+ voltooid_op: string | null;
20656
+ }[];
20657
+ SetofOptions: {
20658
+ from: "*";
20659
+ to: "print_jobs";
20660
+ isOneToOne: false;
20661
+ isSetofReturn: true;
20662
+ };
20663
+ };
20463
20664
  claim_print_jobs: {
20464
20665
  Args: {
20465
20666
  _agent_id: string;
@@ -20484,6 +20685,9 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
20484
20685
  is_herprint: boolean;
20485
20686
  kopieen: number;
20486
20687
  layout_id: string | null;
20688
+ lokaal_opgeslagen_op: string | null;
20689
+ lokale_pdf_fout: string | null;
20690
+ lokale_pdf_status: string | null;
20487
20691
  opgepakt_op: string | null;
20488
20692
  paginas: number;
20489
20693
  payload: import("../integrations/supabase/types").Json;
@@ -20492,6 +20696,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
20492
20696
  pogingen: number;
20493
20697
  printer_id: string | null;
20494
20698
  render_html: string | null;
20699
+ resultaat_pdf_base64: string | null;
20495
20700
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20496
20701
  updated_at: string;
20497
20702
  volgende_poging: string | null;
@@ -20632,6 +20837,8 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
20632
20837
  order_id: string;
20633
20838
  order_source: string;
20634
20839
  pick_date: string;
20840
+ printed_at: string;
20841
+ printed_today: boolean;
20635
20842
  status: string;
20636
20843
  }[];
20637
20844
  };
@@ -21340,6 +21547,10 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
21340
21547
  };
21341
21548
  Returns: number;
21342
21549
  };
21550
+ logistics_cancel_orphan_tasks: {
21551
+ Args: never;
21552
+ Returns: number;
21553
+ };
21343
21554
  logistics_capacity_day_check: {
21344
21555
  Args: {
21345
21556
  p_from?: string;
@@ -21360,6 +21571,25 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
21360
21571
  };
21361
21572
  Returns: number;
21362
21573
  };
21574
+ logistics_cart_index: {
21575
+ Args: {
21576
+ p_from?: string;
21577
+ p_to?: string;
21578
+ };
21579
+ Returns: {
21580
+ cart_id: string;
21581
+ cart_index: number;
21582
+ cart_label: string;
21583
+ is_shared: boolean;
21584
+ order_number: string;
21585
+ order_source: string;
21586
+ order_uuid: string;
21587
+ pick_date: string;
21588
+ printed_at: string;
21589
+ shifted: boolean;
21590
+ task_status: string;
21591
+ }[];
21592
+ };
21363
21593
  logistics_check_order_allowed: {
21364
21594
  Args: {
21365
21595
  p_lines: import("../integrations/supabase/types").Json;
@@ -21508,6 +21738,17 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
21508
21738
  isSetofReturn: false;
21509
21739
  };
21510
21740
  };
21741
+ logistics_consistency_check: {
21742
+ Args: never;
21743
+ Returns: {
21744
+ agenda_carts: number;
21745
+ control_carts: number;
21746
+ ok: boolean;
21747
+ orphan_tasks: number;
21748
+ pick_date: string;
21749
+ raw_carts: number;
21750
+ }[];
21751
+ };
21511
21752
  logistics_delay_customer_email: {
21512
21753
  Args: {
21513
21754
  p_customer: string;
@@ -21597,6 +21838,16 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
21597
21838
  isSetofReturn: false;
21598
21839
  };
21599
21840
  };
21841
+ logistics_floriday_cart_plan: {
21842
+ Args: {
21843
+ p_order_id: string;
21844
+ };
21845
+ Returns: {
21846
+ carrier_type: string;
21847
+ idx: number;
21848
+ packages: number;
21849
+ }[];
21850
+ };
21600
21851
  logistics_floriday_claim_pushes: {
21601
21852
  Args: {
21602
21853
  _lease_seconds?: number;
@@ -21701,6 +21952,25 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
21701
21952
  };
21702
21953
  Returns: number;
21703
21954
  };
21955
+ logistics_order_overview: {
21956
+ Args: {
21957
+ p_from?: string;
21958
+ p_to?: string;
21959
+ };
21960
+ Returns: {
21961
+ cart_count: number;
21962
+ customer_name: string;
21963
+ delivery_date: string;
21964
+ order_number: string;
21965
+ order_source: string;
21966
+ order_uuid: string;
21967
+ pick_date: string;
21968
+ plant_count: number;
21969
+ printed_at: string;
21970
+ shifted: boolean;
21971
+ status: string;
21972
+ }[];
21973
+ };
21704
21974
  logistics_order_pick_day: {
21705
21975
  Args: {
21706
21976
  p_order_ref: string;
@@ -21713,6 +21983,22 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
21713
21983
  };
21714
21984
  Returns: string;
21715
21985
  };
21986
+ logistics_pick_agenda: {
21987
+ Args: {
21988
+ p_from?: string;
21989
+ p_to?: string;
21990
+ };
21991
+ Returns: {
21992
+ cart_count: number;
21993
+ in_preparation: number;
21994
+ order_count: number;
21995
+ orders: import("../integrations/supabase/types").Json;
21996
+ pick_date: string;
21997
+ plant_count: number;
21998
+ ready: number;
21999
+ shifted_count: number;
22000
+ }[];
22001
+ };
21716
22002
  logistics_pick_email_purpose: {
21717
22003
  Args: never;
21718
22004
  Returns: string;
@@ -21767,6 +22053,13 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
21767
22053
  };
21768
22054
  Returns: undefined;
21769
22055
  };
22056
+ logistics_plan_floriday_order: {
22057
+ Args: {
22058
+ p_buffer_id?: string;
22059
+ p_order_id: string;
22060
+ };
22061
+ Returns: number;
22062
+ };
21770
22063
  logistics_plan_impact_orders: {
21771
22064
  Args: {
21772
22065
  p_order_id: string;
@@ -21872,6 +22165,15 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
21872
22165
  };
21873
22166
  Returns: import("../integrations/supabase/types").Json;
21874
22167
  };
22168
+ logistics_resolve_pick_document: {
22169
+ Args: {
22170
+ _is_herprint: boolean;
22171
+ _queue_item_id: string;
22172
+ _session_id: string;
22173
+ _voorbeeld: boolean;
22174
+ };
22175
+ Returns: import("../integrations/supabase/types").Json;
22176
+ };
21875
22177
  logistics_resolve_settings: {
21876
22178
  Args: {
21877
22179
  p_config_id: string;
@@ -22312,6 +22614,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
22312
22614
  };
22313
22615
  pick_enqueue_print_job: {
22314
22616
  Args: {
22617
+ _is_herprint?: boolean;
22315
22618
  _printer_id?: string;
22316
22619
  _queue_item_id: string;
22317
22620
  _session_id?: string;
@@ -22325,6 +22628,13 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
22325
22628
  };
22326
22629
  Returns: import("../integrations/supabase/types").Json;
22327
22630
  };
22631
+ pick_preview_job: {
22632
+ Args: {
22633
+ _queue_item_id: string;
22634
+ _station_slug: string;
22635
+ };
22636
+ Returns: import("../integrations/supabase/types").Json;
22637
+ };
22328
22638
  pick_print_job_status: {
22329
22639
  Args: {
22330
22640
  _job_id: string;
@@ -22502,6 +22812,24 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
22502
22812
  };
22503
22813
  Returns: undefined;
22504
22814
  };
22815
+ print_preview_toestaan: {
22816
+ Args: {
22817
+ _max?: number;
22818
+ _queue_item_id: string;
22819
+ _station_slug: string;
22820
+ _venster_sec?: number;
22821
+ };
22822
+ Returns: import("../integrations/supabase/types").Json;
22823
+ };
22824
+ print_preview_weiger: {
22825
+ Args: {
22826
+ _code: string;
22827
+ _queue_item_id: string;
22828
+ _reden: string;
22829
+ _station_slug: string;
22830
+ };
22831
+ Returns: undefined;
22832
+ };
22505
22833
  process_logistics_event: {
22506
22834
  Args: {
22507
22835
  p_event_id: string;
@@ -22656,6 +22984,12 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
22656
22984
  };
22657
22985
  Returns: string;
22658
22986
  };
22987
+ resolve_print_job_printer_id: {
22988
+ Args: {
22989
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
22990
+ };
22991
+ Returns: string;
22992
+ };
22659
22993
  resolve_product_id_for_item: {
22660
22994
  Args: {
22661
22995
  p_product_name: string;
@@ -23247,7 +23581,7 @@ export declare const getFlorydayCachedList: import("@tanstack/start-client-core"
23247
23581
  };
23248
23582
  CompositeTypes: { [_ in never]: never; };
23249
23583
  }, {
23250
- PostgrestVersion: "14.17";
23584
+ PostgrestVersion: "14.5";
23251
23585
  }>;
23252
23586
  userId: string;
23253
23587
  claims: import("@supabase/auth-js").User;
@@ -26115,6 +26449,84 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
26115
26449
  };
26116
26450
  Relationships: [];
26117
26451
  };
26452
+ delivery_notes: {
26453
+ Row: {
26454
+ byte_size: number | null;
26455
+ connection_id: string | null;
26456
+ content_type: string;
26457
+ created_at: string;
26458
+ error_message: string | null;
26459
+ fetched_at: string | null;
26460
+ fulfillment_order_id: string | null;
26461
+ http_status: number | null;
26462
+ id: string;
26463
+ label_code: string | null;
26464
+ letter: string | null;
26465
+ load_carrier_index: number | null;
26466
+ load_carrier_type: string | null;
26467
+ order_id: string | null;
26468
+ order_number: string | null;
26469
+ packages: number | null;
26470
+ source: string;
26471
+ status: string;
26472
+ storage_bucket: string;
26473
+ storage_path: string | null;
26474
+ updated_at: string;
26475
+ };
26476
+ Insert: {
26477
+ byte_size?: number | null;
26478
+ connection_id?: string | null;
26479
+ content_type?: string;
26480
+ created_at?: string;
26481
+ error_message?: string | null;
26482
+ fetched_at?: string | null;
26483
+ fulfillment_order_id?: string | null;
26484
+ http_status?: number | null;
26485
+ id?: string;
26486
+ label_code?: string | null;
26487
+ letter?: string | null;
26488
+ load_carrier_index?: number | null;
26489
+ load_carrier_type?: string | null;
26490
+ order_id?: string | null;
26491
+ order_number?: string | null;
26492
+ packages?: number | null;
26493
+ source?: string;
26494
+ status?: string;
26495
+ storage_bucket?: string;
26496
+ storage_path?: string | null;
26497
+ updated_at?: string;
26498
+ };
26499
+ Update: {
26500
+ byte_size?: number | null;
26501
+ connection_id?: string | null;
26502
+ content_type?: string;
26503
+ created_at?: string;
26504
+ error_message?: string | null;
26505
+ fetched_at?: string | null;
26506
+ fulfillment_order_id?: string | null;
26507
+ http_status?: number | null;
26508
+ id?: string;
26509
+ label_code?: string | null;
26510
+ letter?: string | null;
26511
+ load_carrier_index?: number | null;
26512
+ load_carrier_type?: string | null;
26513
+ order_id?: string | null;
26514
+ order_number?: string | null;
26515
+ packages?: number | null;
26516
+ source?: string;
26517
+ status?: string;
26518
+ storage_bucket?: string;
26519
+ storage_path?: string | null;
26520
+ updated_at?: string;
26521
+ };
26522
+ Relationships: [{
26523
+ foreignKeyName: "delivery_notes_order_id_fkey";
26524
+ columns: ["order_id"];
26525
+ isOneToOne: false;
26526
+ referencedRelation: "orders";
26527
+ referencedColumns: ["id"];
26528
+ }];
26529
+ };
26118
26530
  document_bronregels: {
26119
26531
  Row: {
26120
26532
  bron: string;
@@ -29168,10 +29580,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
29168
29580
  };
29169
29581
  floriday_connections: {
29170
29582
  Row: {
29171
- access_token: string | null;
29172
29583
  api_key: string;
29173
- client_id: string;
29174
- client_secret: string;
29175
29584
  created_at: string;
29176
29585
  customers_endpoint: string | null;
29177
29586
  environment: string;
@@ -29186,10 +29595,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
29186
29595
  updated_at: string;
29187
29596
  };
29188
29597
  Insert: {
29189
- access_token?: string | null;
29190
29598
  api_key: string;
29191
- client_id: string;
29192
- client_secret: string;
29193
29599
  created_at?: string;
29194
29600
  customers_endpoint?: string | null;
29195
29601
  environment: string;
@@ -29204,10 +29610,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
29204
29610
  updated_at?: string;
29205
29611
  };
29206
29612
  Update: {
29207
- access_token?: string | null;
29208
29613
  api_key?: string;
29209
- client_id?: string;
29210
- client_secret?: string;
29211
29614
  created_at?: string;
29212
29615
  customers_endpoint?: string | null;
29213
29616
  environment?: string;
@@ -36840,6 +37243,39 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
36840
37243
  };
36841
37244
  Relationships: [];
36842
37245
  };
37246
+ print_dedupe_events: {
37247
+ Row: {
37248
+ bestaande_job_id: string | null;
37249
+ created_at: string;
37250
+ detail: string | null;
37251
+ documentnaam: string | null;
37252
+ documenttype: string | null;
37253
+ id: string;
37254
+ idempotentie_sleutel: string;
37255
+ reden: string;
37256
+ };
37257
+ Insert: {
37258
+ bestaande_job_id?: string | null;
37259
+ created_at?: string;
37260
+ detail?: string | null;
37261
+ documentnaam?: string | null;
37262
+ documenttype?: string | null;
37263
+ id?: string;
37264
+ idempotentie_sleutel: string;
37265
+ reden: string;
37266
+ };
37267
+ Update: {
37268
+ bestaande_job_id?: string | null;
37269
+ created_at?: string;
37270
+ detail?: string | null;
37271
+ documentnaam?: string | null;
37272
+ documenttype?: string | null;
37273
+ id?: string;
37274
+ idempotentie_sleutel?: string;
37275
+ reden?: string;
37276
+ };
37277
+ Relationships: [];
37278
+ };
36843
37279
  print_job_logs: {
36844
37280
  Row: {
36845
37281
  created_at: string;
@@ -36890,6 +37326,9 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
36890
37326
  is_herprint: boolean;
36891
37327
  kopieen: number;
36892
37328
  layout_id: string | null;
37329
+ lokaal_opgeslagen_op: string | null;
37330
+ lokale_pdf_fout: string | null;
37331
+ lokale_pdf_status: string | null;
36893
37332
  opgepakt_op: string | null;
36894
37333
  paginas: number;
36895
37334
  payload: import("../integrations/supabase/types").Json;
@@ -36898,6 +37337,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
36898
37337
  pogingen: number;
36899
37338
  printer_id: string | null;
36900
37339
  render_html: string | null;
37340
+ resultaat_pdf_base64: string | null;
36901
37341
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36902
37342
  updated_at: string;
36903
37343
  volgende_poging: string | null;
@@ -36922,6 +37362,9 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
36922
37362
  is_herprint?: boolean;
36923
37363
  kopieen?: number;
36924
37364
  layout_id?: string | null;
37365
+ lokaal_opgeslagen_op?: string | null;
37366
+ lokale_pdf_fout?: string | null;
37367
+ lokale_pdf_status?: string | null;
36925
37368
  opgepakt_op?: string | null;
36926
37369
  paginas?: number;
36927
37370
  payload?: import("../integrations/supabase/types").Json;
@@ -36930,6 +37373,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
36930
37373
  pogingen?: number;
36931
37374
  printer_id?: string | null;
36932
37375
  render_html?: string | null;
37376
+ resultaat_pdf_base64?: string | null;
36933
37377
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36934
37378
  updated_at?: string;
36935
37379
  volgende_poging?: string | null;
@@ -36954,6 +37398,9 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
36954
37398
  is_herprint?: boolean;
36955
37399
  kopieen?: number;
36956
37400
  layout_id?: string | null;
37401
+ lokaal_opgeslagen_op?: string | null;
37402
+ lokale_pdf_fout?: string | null;
37403
+ lokale_pdf_status?: string | null;
36957
37404
  opgepakt_op?: string | null;
36958
37405
  paginas?: number;
36959
37406
  payload?: import("../integrations/supabase/types").Json;
@@ -36962,6 +37409,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
36962
37409
  pogingen?: number;
36963
37410
  printer_id?: string | null;
36964
37411
  render_html?: string | null;
37412
+ resultaat_pdf_base64?: string | null;
36965
37413
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36966
37414
  updated_at?: string;
36967
37415
  volgende_poging?: string | null;
@@ -37080,6 +37528,39 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
37080
37528
  };
37081
37529
  Relationships: [];
37082
37530
  };
37531
+ print_preview_events: {
37532
+ Row: {
37533
+ code: string | null;
37534
+ created_at: string;
37535
+ detail: import("../integrations/supabase/types").Json;
37536
+ id: string;
37537
+ queue_item_id: string | null;
37538
+ reden: string | null;
37539
+ station_slug: string | null;
37540
+ uitkomst: string;
37541
+ };
37542
+ Insert: {
37543
+ code?: string | null;
37544
+ created_at?: string;
37545
+ detail?: import("../integrations/supabase/types").Json;
37546
+ id?: string;
37547
+ queue_item_id?: string | null;
37548
+ reden?: string | null;
37549
+ station_slug?: string | null;
37550
+ uitkomst?: string;
37551
+ };
37552
+ Update: {
37553
+ code?: string | null;
37554
+ created_at?: string;
37555
+ detail?: import("../integrations/supabase/types").Json;
37556
+ id?: string;
37557
+ queue_item_id?: string | null;
37558
+ reden?: string | null;
37559
+ station_slug?: string | null;
37560
+ uitkomst?: string;
37561
+ };
37562
+ Relationships: [];
37563
+ };
37083
37564
  print_queue_runners: {
37084
37565
  Row: {
37085
37566
  actief: boolean;
@@ -37319,6 +37800,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
37319
37800
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37320
37801
  online: boolean;
37321
37802
  papierformaat: string;
37803
+ pdf_map: string | null;
37322
37804
  poort: number | null;
37323
37805
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37324
37806
  systeemnaam: string;
@@ -37344,6 +37826,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
37344
37826
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37345
37827
  online?: boolean;
37346
37828
  papierformaat?: string;
37829
+ pdf_map?: string | null;
37347
37830
  poort?: number | null;
37348
37831
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37349
37832
  systeemnaam?: string;
@@ -37369,6 +37852,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
37369
37852
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37370
37853
  online?: boolean;
37371
37854
  papierformaat?: string;
37855
+ pdf_map?: string | null;
37372
37856
  poort?: number | null;
37373
37857
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37374
37858
  systeemnaam?: string;
@@ -43625,6 +44109,9 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
43625
44109
  is_herprint: boolean;
43626
44110
  kopieen: number;
43627
44111
  layout_id: string | null;
44112
+ lokaal_opgeslagen_op: string | null;
44113
+ lokale_pdf_fout: string | null;
44114
+ lokale_pdf_status: string | null;
43628
44115
  opgepakt_op: string | null;
43629
44116
  paginas: number;
43630
44117
  payload: import("../integrations/supabase/types").Json;
@@ -43633,6 +44120,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
43633
44120
  pogingen: number;
43634
44121
  printer_id: string | null;
43635
44122
  render_html: string | null;
44123
+ resultaat_pdf_base64: string | null;
43636
44124
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43637
44125
  updated_at: string;
43638
44126
  volgende_poging: string | null;
@@ -43724,6 +44212,53 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
43724
44212
  isSetofReturn: true;
43725
44213
  };
43726
44214
  };
44215
+ claim_pdf_print_jobs: {
44216
+ Args: {
44217
+ _max?: number;
44218
+ };
44219
+ Returns: {
44220
+ agent_id: string | null;
44221
+ bron_job_id: string | null;
44222
+ created_at: string;
44223
+ documentnaam: string;
44224
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44225
+ extern_job_id: string | null;
44226
+ foutmelding: string | null;
44227
+ gebruiker_id: string | null;
44228
+ gebruiker_naam: string;
44229
+ gebruikte_bron: string | null;
44230
+ gebruikte_layout_id: string | null;
44231
+ gestart_op: string | null;
44232
+ herkomst: string | null;
44233
+ id: string;
44234
+ idempotentie_sleutel: string | null;
44235
+ is_herprint: boolean;
44236
+ kopieen: number;
44237
+ layout_id: string | null;
44238
+ lokaal_opgeslagen_op: string | null;
44239
+ lokale_pdf_fout: string | null;
44240
+ lokale_pdf_status: string | null;
44241
+ opgepakt_op: string | null;
44242
+ paginas: number;
44243
+ payload: import("../integrations/supabase/types").Json;
44244
+ pdf_base64: string | null;
44245
+ pdf_url: string | null;
44246
+ pogingen: number;
44247
+ printer_id: string | null;
44248
+ render_html: string | null;
44249
+ resultaat_pdf_base64: string | null;
44250
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44251
+ updated_at: string;
44252
+ volgende_poging: string | null;
44253
+ voltooid_op: string | null;
44254
+ }[];
44255
+ SetofOptions: {
44256
+ from: "*";
44257
+ to: "print_jobs";
44258
+ isOneToOne: false;
44259
+ isSetofReturn: true;
44260
+ };
44261
+ };
43727
44262
  claim_print_jobs: {
43728
44263
  Args: {
43729
44264
  _agent_id: string;
@@ -43748,6 +44283,9 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
43748
44283
  is_herprint: boolean;
43749
44284
  kopieen: number;
43750
44285
  layout_id: string | null;
44286
+ lokaal_opgeslagen_op: string | null;
44287
+ lokale_pdf_fout: string | null;
44288
+ lokale_pdf_status: string | null;
43751
44289
  opgepakt_op: string | null;
43752
44290
  paginas: number;
43753
44291
  payload: import("../integrations/supabase/types").Json;
@@ -43756,6 +44294,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
43756
44294
  pogingen: number;
43757
44295
  printer_id: string | null;
43758
44296
  render_html: string | null;
44297
+ resultaat_pdf_base64: string | null;
43759
44298
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43760
44299
  updated_at: string;
43761
44300
  volgende_poging: string | null;
@@ -43896,6 +44435,8 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
43896
44435
  order_id: string;
43897
44436
  order_source: string;
43898
44437
  pick_date: string;
44438
+ printed_at: string;
44439
+ printed_today: boolean;
43899
44440
  status: string;
43900
44441
  }[];
43901
44442
  };
@@ -44604,6 +45145,10 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
44604
45145
  };
44605
45146
  Returns: number;
44606
45147
  };
45148
+ logistics_cancel_orphan_tasks: {
45149
+ Args: never;
45150
+ Returns: number;
45151
+ };
44607
45152
  logistics_capacity_day_check: {
44608
45153
  Args: {
44609
45154
  p_from?: string;
@@ -44624,6 +45169,25 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
44624
45169
  };
44625
45170
  Returns: number;
44626
45171
  };
45172
+ logistics_cart_index: {
45173
+ Args: {
45174
+ p_from?: string;
45175
+ p_to?: string;
45176
+ };
45177
+ Returns: {
45178
+ cart_id: string;
45179
+ cart_index: number;
45180
+ cart_label: string;
45181
+ is_shared: boolean;
45182
+ order_number: string;
45183
+ order_source: string;
45184
+ order_uuid: string;
45185
+ pick_date: string;
45186
+ printed_at: string;
45187
+ shifted: boolean;
45188
+ task_status: string;
45189
+ }[];
45190
+ };
44627
45191
  logistics_check_order_allowed: {
44628
45192
  Args: {
44629
45193
  p_lines: import("../integrations/supabase/types").Json;
@@ -44772,6 +45336,17 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
44772
45336
  isSetofReturn: false;
44773
45337
  };
44774
45338
  };
45339
+ logistics_consistency_check: {
45340
+ Args: never;
45341
+ Returns: {
45342
+ agenda_carts: number;
45343
+ control_carts: number;
45344
+ ok: boolean;
45345
+ orphan_tasks: number;
45346
+ pick_date: string;
45347
+ raw_carts: number;
45348
+ }[];
45349
+ };
44775
45350
  logistics_delay_customer_email: {
44776
45351
  Args: {
44777
45352
  p_customer: string;
@@ -44861,6 +45436,16 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
44861
45436
  isSetofReturn: false;
44862
45437
  };
44863
45438
  };
45439
+ logistics_floriday_cart_plan: {
45440
+ Args: {
45441
+ p_order_id: string;
45442
+ };
45443
+ Returns: {
45444
+ carrier_type: string;
45445
+ idx: number;
45446
+ packages: number;
45447
+ }[];
45448
+ };
44864
45449
  logistics_floriday_claim_pushes: {
44865
45450
  Args: {
44866
45451
  _lease_seconds?: number;
@@ -44965,6 +45550,25 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
44965
45550
  };
44966
45551
  Returns: number;
44967
45552
  };
45553
+ logistics_order_overview: {
45554
+ Args: {
45555
+ p_from?: string;
45556
+ p_to?: string;
45557
+ };
45558
+ Returns: {
45559
+ cart_count: number;
45560
+ customer_name: string;
45561
+ delivery_date: string;
45562
+ order_number: string;
45563
+ order_source: string;
45564
+ order_uuid: string;
45565
+ pick_date: string;
45566
+ plant_count: number;
45567
+ printed_at: string;
45568
+ shifted: boolean;
45569
+ status: string;
45570
+ }[];
45571
+ };
44968
45572
  logistics_order_pick_day: {
44969
45573
  Args: {
44970
45574
  p_order_ref: string;
@@ -44977,6 +45581,22 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
44977
45581
  };
44978
45582
  Returns: string;
44979
45583
  };
45584
+ logistics_pick_agenda: {
45585
+ Args: {
45586
+ p_from?: string;
45587
+ p_to?: string;
45588
+ };
45589
+ Returns: {
45590
+ cart_count: number;
45591
+ in_preparation: number;
45592
+ order_count: number;
45593
+ orders: import("../integrations/supabase/types").Json;
45594
+ pick_date: string;
45595
+ plant_count: number;
45596
+ ready: number;
45597
+ shifted_count: number;
45598
+ }[];
45599
+ };
44980
45600
  logistics_pick_email_purpose: {
44981
45601
  Args: never;
44982
45602
  Returns: string;
@@ -45031,6 +45651,13 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
45031
45651
  };
45032
45652
  Returns: undefined;
45033
45653
  };
45654
+ logistics_plan_floriday_order: {
45655
+ Args: {
45656
+ p_buffer_id?: string;
45657
+ p_order_id: string;
45658
+ };
45659
+ Returns: number;
45660
+ };
45034
45661
  logistics_plan_impact_orders: {
45035
45662
  Args: {
45036
45663
  p_order_id: string;
@@ -45136,6 +45763,15 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
45136
45763
  };
45137
45764
  Returns: import("../integrations/supabase/types").Json;
45138
45765
  };
45766
+ logistics_resolve_pick_document: {
45767
+ Args: {
45768
+ _is_herprint: boolean;
45769
+ _queue_item_id: string;
45770
+ _session_id: string;
45771
+ _voorbeeld: boolean;
45772
+ };
45773
+ Returns: import("../integrations/supabase/types").Json;
45774
+ };
45139
45775
  logistics_resolve_settings: {
45140
45776
  Args: {
45141
45777
  p_config_id: string;
@@ -45576,6 +46212,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
45576
46212
  };
45577
46213
  pick_enqueue_print_job: {
45578
46214
  Args: {
46215
+ _is_herprint?: boolean;
45579
46216
  _printer_id?: string;
45580
46217
  _queue_item_id: string;
45581
46218
  _session_id?: string;
@@ -45589,6 +46226,13 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
45589
46226
  };
45590
46227
  Returns: import("../integrations/supabase/types").Json;
45591
46228
  };
46229
+ pick_preview_job: {
46230
+ Args: {
46231
+ _queue_item_id: string;
46232
+ _station_slug: string;
46233
+ };
46234
+ Returns: import("../integrations/supabase/types").Json;
46235
+ };
45592
46236
  pick_print_job_status: {
45593
46237
  Args: {
45594
46238
  _job_id: string;
@@ -45766,6 +46410,24 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
45766
46410
  };
45767
46411
  Returns: undefined;
45768
46412
  };
46413
+ print_preview_toestaan: {
46414
+ Args: {
46415
+ _max?: number;
46416
+ _queue_item_id: string;
46417
+ _station_slug: string;
46418
+ _venster_sec?: number;
46419
+ };
46420
+ Returns: import("../integrations/supabase/types").Json;
46421
+ };
46422
+ print_preview_weiger: {
46423
+ Args: {
46424
+ _code: string;
46425
+ _queue_item_id: string;
46426
+ _reden: string;
46427
+ _station_slug: string;
46428
+ };
46429
+ Returns: undefined;
46430
+ };
45769
46431
  process_logistics_event: {
45770
46432
  Args: {
45771
46433
  p_event_id: string;
@@ -45920,6 +46582,12 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
45920
46582
  };
45921
46583
  Returns: string;
45922
46584
  };
46585
+ resolve_print_job_printer_id: {
46586
+ Args: {
46587
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
46588
+ };
46589
+ Returns: string;
46590
+ };
45923
46591
  resolve_product_id_for_item: {
45924
46592
  Args: {
45925
46593
  p_product_name: string;
@@ -46511,7 +47179,7 @@ export declare const getFlorydayCodeList: import("@tanstack/start-client-core").
46511
47179
  };
46512
47180
  CompositeTypes: { [_ in never]: never; };
46513
47181
  }, {
46514
- PostgrestVersion: "14.17";
47182
+ PostgrestVersion: "14.5";
46515
47183
  }>;
46516
47184
  userId: string;
46517
47185
  claims: import("@supabase/auth-js").User;
@@ -49375,6 +50043,84 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
49375
50043
  };
49376
50044
  Relationships: [];
49377
50045
  };
50046
+ delivery_notes: {
50047
+ Row: {
50048
+ byte_size: number | null;
50049
+ connection_id: string | null;
50050
+ content_type: string;
50051
+ created_at: string;
50052
+ error_message: string | null;
50053
+ fetched_at: string | null;
50054
+ fulfillment_order_id: string | null;
50055
+ http_status: number | null;
50056
+ id: string;
50057
+ label_code: string | null;
50058
+ letter: string | null;
50059
+ load_carrier_index: number | null;
50060
+ load_carrier_type: string | null;
50061
+ order_id: string | null;
50062
+ order_number: string | null;
50063
+ packages: number | null;
50064
+ source: string;
50065
+ status: string;
50066
+ storage_bucket: string;
50067
+ storage_path: string | null;
50068
+ updated_at: string;
50069
+ };
50070
+ Insert: {
50071
+ byte_size?: number | null;
50072
+ connection_id?: string | null;
50073
+ content_type?: string;
50074
+ created_at?: string;
50075
+ error_message?: string | null;
50076
+ fetched_at?: string | null;
50077
+ fulfillment_order_id?: string | null;
50078
+ http_status?: number | null;
50079
+ id?: string;
50080
+ label_code?: string | null;
50081
+ letter?: string | null;
50082
+ load_carrier_index?: number | null;
50083
+ load_carrier_type?: string | null;
50084
+ order_id?: string | null;
50085
+ order_number?: string | null;
50086
+ packages?: number | null;
50087
+ source?: string;
50088
+ status?: string;
50089
+ storage_bucket?: string;
50090
+ storage_path?: string | null;
50091
+ updated_at?: string;
50092
+ };
50093
+ Update: {
50094
+ byte_size?: number | null;
50095
+ connection_id?: string | null;
50096
+ content_type?: string;
50097
+ created_at?: string;
50098
+ error_message?: string | null;
50099
+ fetched_at?: string | null;
50100
+ fulfillment_order_id?: string | null;
50101
+ http_status?: number | null;
50102
+ id?: string;
50103
+ label_code?: string | null;
50104
+ letter?: string | null;
50105
+ load_carrier_index?: number | null;
50106
+ load_carrier_type?: string | null;
50107
+ order_id?: string | null;
50108
+ order_number?: string | null;
50109
+ packages?: number | null;
50110
+ source?: string;
50111
+ status?: string;
50112
+ storage_bucket?: string;
50113
+ storage_path?: string | null;
50114
+ updated_at?: string;
50115
+ };
50116
+ Relationships: [{
50117
+ foreignKeyName: "delivery_notes_order_id_fkey";
50118
+ columns: ["order_id"];
50119
+ isOneToOne: false;
50120
+ referencedRelation: "orders";
50121
+ referencedColumns: ["id"];
50122
+ }];
50123
+ };
49378
50124
  document_bronregels: {
49379
50125
  Row: {
49380
50126
  bron: string;
@@ -52428,10 +53174,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
52428
53174
  };
52429
53175
  floriday_connections: {
52430
53176
  Row: {
52431
- access_token: string | null;
52432
53177
  api_key: string;
52433
- client_id: string;
52434
- client_secret: string;
52435
53178
  created_at: string;
52436
53179
  customers_endpoint: string | null;
52437
53180
  environment: string;
@@ -52446,10 +53189,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
52446
53189
  updated_at: string;
52447
53190
  };
52448
53191
  Insert: {
52449
- access_token?: string | null;
52450
53192
  api_key: string;
52451
- client_id: string;
52452
- client_secret: string;
52453
53193
  created_at?: string;
52454
53194
  customers_endpoint?: string | null;
52455
53195
  environment: string;
@@ -52464,10 +53204,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
52464
53204
  updated_at?: string;
52465
53205
  };
52466
53206
  Update: {
52467
- access_token?: string | null;
52468
53207
  api_key?: string;
52469
- client_id?: string;
52470
- client_secret?: string;
52471
53208
  created_at?: string;
52472
53209
  customers_endpoint?: string | null;
52473
53210
  environment?: string;
@@ -60100,6 +60837,39 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
60100
60837
  };
60101
60838
  Relationships: [];
60102
60839
  };
60840
+ print_dedupe_events: {
60841
+ Row: {
60842
+ bestaande_job_id: string | null;
60843
+ created_at: string;
60844
+ detail: string | null;
60845
+ documentnaam: string | null;
60846
+ documenttype: string | null;
60847
+ id: string;
60848
+ idempotentie_sleutel: string;
60849
+ reden: string;
60850
+ };
60851
+ Insert: {
60852
+ bestaande_job_id?: string | null;
60853
+ created_at?: string;
60854
+ detail?: string | null;
60855
+ documentnaam?: string | null;
60856
+ documenttype?: string | null;
60857
+ id?: string;
60858
+ idempotentie_sleutel: string;
60859
+ reden: string;
60860
+ };
60861
+ Update: {
60862
+ bestaande_job_id?: string | null;
60863
+ created_at?: string;
60864
+ detail?: string | null;
60865
+ documentnaam?: string | null;
60866
+ documenttype?: string | null;
60867
+ id?: string;
60868
+ idempotentie_sleutel?: string;
60869
+ reden?: string;
60870
+ };
60871
+ Relationships: [];
60872
+ };
60103
60873
  print_job_logs: {
60104
60874
  Row: {
60105
60875
  created_at: string;
@@ -60150,6 +60920,9 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
60150
60920
  is_herprint: boolean;
60151
60921
  kopieen: number;
60152
60922
  layout_id: string | null;
60923
+ lokaal_opgeslagen_op: string | null;
60924
+ lokale_pdf_fout: string | null;
60925
+ lokale_pdf_status: string | null;
60153
60926
  opgepakt_op: string | null;
60154
60927
  paginas: number;
60155
60928
  payload: import("../integrations/supabase/types").Json;
@@ -60158,6 +60931,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
60158
60931
  pogingen: number;
60159
60932
  printer_id: string | null;
60160
60933
  render_html: string | null;
60934
+ resultaat_pdf_base64: string | null;
60161
60935
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60162
60936
  updated_at: string;
60163
60937
  volgende_poging: string | null;
@@ -60182,6 +60956,9 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
60182
60956
  is_herprint?: boolean;
60183
60957
  kopieen?: number;
60184
60958
  layout_id?: string | null;
60959
+ lokaal_opgeslagen_op?: string | null;
60960
+ lokale_pdf_fout?: string | null;
60961
+ lokale_pdf_status?: string | null;
60185
60962
  opgepakt_op?: string | null;
60186
60963
  paginas?: number;
60187
60964
  payload?: import("../integrations/supabase/types").Json;
@@ -60190,6 +60967,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
60190
60967
  pogingen?: number;
60191
60968
  printer_id?: string | null;
60192
60969
  render_html?: string | null;
60970
+ resultaat_pdf_base64?: string | null;
60193
60971
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60194
60972
  updated_at?: string;
60195
60973
  volgende_poging?: string | null;
@@ -60214,6 +60992,9 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
60214
60992
  is_herprint?: boolean;
60215
60993
  kopieen?: number;
60216
60994
  layout_id?: string | null;
60995
+ lokaal_opgeslagen_op?: string | null;
60996
+ lokale_pdf_fout?: string | null;
60997
+ lokale_pdf_status?: string | null;
60217
60998
  opgepakt_op?: string | null;
60218
60999
  paginas?: number;
60219
61000
  payload?: import("../integrations/supabase/types").Json;
@@ -60222,6 +61003,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
60222
61003
  pogingen?: number;
60223
61004
  printer_id?: string | null;
60224
61005
  render_html?: string | null;
61006
+ resultaat_pdf_base64?: string | null;
60225
61007
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60226
61008
  updated_at?: string;
60227
61009
  volgende_poging?: string | null;
@@ -60340,6 +61122,39 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
60340
61122
  };
60341
61123
  Relationships: [];
60342
61124
  };
61125
+ print_preview_events: {
61126
+ Row: {
61127
+ code: string | null;
61128
+ created_at: string;
61129
+ detail: import("../integrations/supabase/types").Json;
61130
+ id: string;
61131
+ queue_item_id: string | null;
61132
+ reden: string | null;
61133
+ station_slug: string | null;
61134
+ uitkomst: string;
61135
+ };
61136
+ Insert: {
61137
+ code?: string | null;
61138
+ created_at?: string;
61139
+ detail?: import("../integrations/supabase/types").Json;
61140
+ id?: string;
61141
+ queue_item_id?: string | null;
61142
+ reden?: string | null;
61143
+ station_slug?: string | null;
61144
+ uitkomst?: string;
61145
+ };
61146
+ Update: {
61147
+ code?: string | null;
61148
+ created_at?: string;
61149
+ detail?: import("../integrations/supabase/types").Json;
61150
+ id?: string;
61151
+ queue_item_id?: string | null;
61152
+ reden?: string | null;
61153
+ station_slug?: string | null;
61154
+ uitkomst?: string;
61155
+ };
61156
+ Relationships: [];
61157
+ };
60343
61158
  print_queue_runners: {
60344
61159
  Row: {
60345
61160
  actief: boolean;
@@ -60579,6 +61394,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
60579
61394
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
60580
61395
  online: boolean;
60581
61396
  papierformaat: string;
61397
+ pdf_map: string | null;
60582
61398
  poort: number | null;
60583
61399
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60584
61400
  systeemnaam: string;
@@ -60604,6 +61420,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
60604
61420
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60605
61421
  online?: boolean;
60606
61422
  papierformaat?: string;
61423
+ pdf_map?: string | null;
60607
61424
  poort?: number | null;
60608
61425
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60609
61426
  systeemnaam?: string;
@@ -60629,6 +61446,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
60629
61446
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60630
61447
  online?: boolean;
60631
61448
  papierformaat?: string;
61449
+ pdf_map?: string | null;
60632
61450
  poort?: number | null;
60633
61451
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60634
61452
  systeemnaam?: string;
@@ -66885,6 +67703,9 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
66885
67703
  is_herprint: boolean;
66886
67704
  kopieen: number;
66887
67705
  layout_id: string | null;
67706
+ lokaal_opgeslagen_op: string | null;
67707
+ lokale_pdf_fout: string | null;
67708
+ lokale_pdf_status: string | null;
66888
67709
  opgepakt_op: string | null;
66889
67710
  paginas: number;
66890
67711
  payload: import("../integrations/supabase/types").Json;
@@ -66893,6 +67714,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
66893
67714
  pogingen: number;
66894
67715
  printer_id: string | null;
66895
67716
  render_html: string | null;
67717
+ resultaat_pdf_base64: string | null;
66896
67718
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
66897
67719
  updated_at: string;
66898
67720
  volgende_poging: string | null;
@@ -66984,6 +67806,53 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
66984
67806
  isSetofReturn: true;
66985
67807
  };
66986
67808
  };
67809
+ claim_pdf_print_jobs: {
67810
+ Args: {
67811
+ _max?: number;
67812
+ };
67813
+ Returns: {
67814
+ agent_id: string | null;
67815
+ bron_job_id: string | null;
67816
+ created_at: string;
67817
+ documentnaam: string;
67818
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
67819
+ extern_job_id: string | null;
67820
+ foutmelding: string | null;
67821
+ gebruiker_id: string | null;
67822
+ gebruiker_naam: string;
67823
+ gebruikte_bron: string | null;
67824
+ gebruikte_layout_id: string | null;
67825
+ gestart_op: string | null;
67826
+ herkomst: string | null;
67827
+ id: string;
67828
+ idempotentie_sleutel: string | null;
67829
+ is_herprint: boolean;
67830
+ kopieen: number;
67831
+ layout_id: string | null;
67832
+ lokaal_opgeslagen_op: string | null;
67833
+ lokale_pdf_fout: string | null;
67834
+ lokale_pdf_status: string | null;
67835
+ opgepakt_op: string | null;
67836
+ paginas: number;
67837
+ payload: import("../integrations/supabase/types").Json;
67838
+ pdf_base64: string | null;
67839
+ pdf_url: string | null;
67840
+ pogingen: number;
67841
+ printer_id: string | null;
67842
+ render_html: string | null;
67843
+ resultaat_pdf_base64: string | null;
67844
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67845
+ updated_at: string;
67846
+ volgende_poging: string | null;
67847
+ voltooid_op: string | null;
67848
+ }[];
67849
+ SetofOptions: {
67850
+ from: "*";
67851
+ to: "print_jobs";
67852
+ isOneToOne: false;
67853
+ isSetofReturn: true;
67854
+ };
67855
+ };
66987
67856
  claim_print_jobs: {
66988
67857
  Args: {
66989
67858
  _agent_id: string;
@@ -67008,6 +67877,9 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
67008
67877
  is_herprint: boolean;
67009
67878
  kopieen: number;
67010
67879
  layout_id: string | null;
67880
+ lokaal_opgeslagen_op: string | null;
67881
+ lokale_pdf_fout: string | null;
67882
+ lokale_pdf_status: string | null;
67011
67883
  opgepakt_op: string | null;
67012
67884
  paginas: number;
67013
67885
  payload: import("../integrations/supabase/types").Json;
@@ -67016,6 +67888,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
67016
67888
  pogingen: number;
67017
67889
  printer_id: string | null;
67018
67890
  render_html: string | null;
67891
+ resultaat_pdf_base64: string | null;
67019
67892
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67020
67893
  updated_at: string;
67021
67894
  volgende_poging: string | null;
@@ -67156,6 +68029,8 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
67156
68029
  order_id: string;
67157
68030
  order_source: string;
67158
68031
  pick_date: string;
68032
+ printed_at: string;
68033
+ printed_today: boolean;
67159
68034
  status: string;
67160
68035
  }[];
67161
68036
  };
@@ -67864,6 +68739,10 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
67864
68739
  };
67865
68740
  Returns: number;
67866
68741
  };
68742
+ logistics_cancel_orphan_tasks: {
68743
+ Args: never;
68744
+ Returns: number;
68745
+ };
67867
68746
  logistics_capacity_day_check: {
67868
68747
  Args: {
67869
68748
  p_from?: string;
@@ -67884,6 +68763,25 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
67884
68763
  };
67885
68764
  Returns: number;
67886
68765
  };
68766
+ logistics_cart_index: {
68767
+ Args: {
68768
+ p_from?: string;
68769
+ p_to?: string;
68770
+ };
68771
+ Returns: {
68772
+ cart_id: string;
68773
+ cart_index: number;
68774
+ cart_label: string;
68775
+ is_shared: boolean;
68776
+ order_number: string;
68777
+ order_source: string;
68778
+ order_uuid: string;
68779
+ pick_date: string;
68780
+ printed_at: string;
68781
+ shifted: boolean;
68782
+ task_status: string;
68783
+ }[];
68784
+ };
67887
68785
  logistics_check_order_allowed: {
67888
68786
  Args: {
67889
68787
  p_lines: import("../integrations/supabase/types").Json;
@@ -68032,6 +68930,17 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
68032
68930
  isSetofReturn: false;
68033
68931
  };
68034
68932
  };
68933
+ logistics_consistency_check: {
68934
+ Args: never;
68935
+ Returns: {
68936
+ agenda_carts: number;
68937
+ control_carts: number;
68938
+ ok: boolean;
68939
+ orphan_tasks: number;
68940
+ pick_date: string;
68941
+ raw_carts: number;
68942
+ }[];
68943
+ };
68035
68944
  logistics_delay_customer_email: {
68036
68945
  Args: {
68037
68946
  p_customer: string;
@@ -68121,6 +69030,16 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
68121
69030
  isSetofReturn: false;
68122
69031
  };
68123
69032
  };
69033
+ logistics_floriday_cart_plan: {
69034
+ Args: {
69035
+ p_order_id: string;
69036
+ };
69037
+ Returns: {
69038
+ carrier_type: string;
69039
+ idx: number;
69040
+ packages: number;
69041
+ }[];
69042
+ };
68124
69043
  logistics_floriday_claim_pushes: {
68125
69044
  Args: {
68126
69045
  _lease_seconds?: number;
@@ -68225,6 +69144,25 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
68225
69144
  };
68226
69145
  Returns: number;
68227
69146
  };
69147
+ logistics_order_overview: {
69148
+ Args: {
69149
+ p_from?: string;
69150
+ p_to?: string;
69151
+ };
69152
+ Returns: {
69153
+ cart_count: number;
69154
+ customer_name: string;
69155
+ delivery_date: string;
69156
+ order_number: string;
69157
+ order_source: string;
69158
+ order_uuid: string;
69159
+ pick_date: string;
69160
+ plant_count: number;
69161
+ printed_at: string;
69162
+ shifted: boolean;
69163
+ status: string;
69164
+ }[];
69165
+ };
68228
69166
  logistics_order_pick_day: {
68229
69167
  Args: {
68230
69168
  p_order_ref: string;
@@ -68237,6 +69175,22 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
68237
69175
  };
68238
69176
  Returns: string;
68239
69177
  };
69178
+ logistics_pick_agenda: {
69179
+ Args: {
69180
+ p_from?: string;
69181
+ p_to?: string;
69182
+ };
69183
+ Returns: {
69184
+ cart_count: number;
69185
+ in_preparation: number;
69186
+ order_count: number;
69187
+ orders: import("../integrations/supabase/types").Json;
69188
+ pick_date: string;
69189
+ plant_count: number;
69190
+ ready: number;
69191
+ shifted_count: number;
69192
+ }[];
69193
+ };
68240
69194
  logistics_pick_email_purpose: {
68241
69195
  Args: never;
68242
69196
  Returns: string;
@@ -68291,6 +69245,13 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
68291
69245
  };
68292
69246
  Returns: undefined;
68293
69247
  };
69248
+ logistics_plan_floriday_order: {
69249
+ Args: {
69250
+ p_buffer_id?: string;
69251
+ p_order_id: string;
69252
+ };
69253
+ Returns: number;
69254
+ };
68294
69255
  logistics_plan_impact_orders: {
68295
69256
  Args: {
68296
69257
  p_order_id: string;
@@ -68396,6 +69357,15 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
68396
69357
  };
68397
69358
  Returns: import("../integrations/supabase/types").Json;
68398
69359
  };
69360
+ logistics_resolve_pick_document: {
69361
+ Args: {
69362
+ _is_herprint: boolean;
69363
+ _queue_item_id: string;
69364
+ _session_id: string;
69365
+ _voorbeeld: boolean;
69366
+ };
69367
+ Returns: import("../integrations/supabase/types").Json;
69368
+ };
68399
69369
  logistics_resolve_settings: {
68400
69370
  Args: {
68401
69371
  p_config_id: string;
@@ -68836,6 +69806,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
68836
69806
  };
68837
69807
  pick_enqueue_print_job: {
68838
69808
  Args: {
69809
+ _is_herprint?: boolean;
68839
69810
  _printer_id?: string;
68840
69811
  _queue_item_id: string;
68841
69812
  _session_id?: string;
@@ -68849,6 +69820,13 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
68849
69820
  };
68850
69821
  Returns: import("../integrations/supabase/types").Json;
68851
69822
  };
69823
+ pick_preview_job: {
69824
+ Args: {
69825
+ _queue_item_id: string;
69826
+ _station_slug: string;
69827
+ };
69828
+ Returns: import("../integrations/supabase/types").Json;
69829
+ };
68852
69830
  pick_print_job_status: {
68853
69831
  Args: {
68854
69832
  _job_id: string;
@@ -69026,6 +70004,24 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
69026
70004
  };
69027
70005
  Returns: undefined;
69028
70006
  };
70007
+ print_preview_toestaan: {
70008
+ Args: {
70009
+ _max?: number;
70010
+ _queue_item_id: string;
70011
+ _station_slug: string;
70012
+ _venster_sec?: number;
70013
+ };
70014
+ Returns: import("../integrations/supabase/types").Json;
70015
+ };
70016
+ print_preview_weiger: {
70017
+ Args: {
70018
+ _code: string;
70019
+ _queue_item_id: string;
70020
+ _reden: string;
70021
+ _station_slug: string;
70022
+ };
70023
+ Returns: undefined;
70024
+ };
69029
70025
  process_logistics_event: {
69030
70026
  Args: {
69031
70027
  p_event_id: string;
@@ -69180,6 +70176,12 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
69180
70176
  };
69181
70177
  Returns: string;
69182
70178
  };
70179
+ resolve_print_job_printer_id: {
70180
+ Args: {
70181
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
70182
+ };
70183
+ Returns: string;
70184
+ };
69183
70185
  resolve_product_id_for_item: {
69184
70186
  Args: {
69185
70187
  p_product_name: string;
@@ -69771,7 +70773,7 @@ export declare const getFlorydayAllowedValues: import("@tanstack/start-client-co
69771
70773
  };
69772
70774
  CompositeTypes: { [_ in never]: never; };
69773
70775
  }, {
69774
- PostgrestVersion: "14.17";
70776
+ PostgrestVersion: "14.5";
69775
70777
  }>;
69776
70778
  userId: string;
69777
70779
  claims: import("@supabase/auth-js").User;
@@ -72635,6 +73637,84 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
72635
73637
  };
72636
73638
  Relationships: [];
72637
73639
  };
73640
+ delivery_notes: {
73641
+ Row: {
73642
+ byte_size: number | null;
73643
+ connection_id: string | null;
73644
+ content_type: string;
73645
+ created_at: string;
73646
+ error_message: string | null;
73647
+ fetched_at: string | null;
73648
+ fulfillment_order_id: string | null;
73649
+ http_status: number | null;
73650
+ id: string;
73651
+ label_code: string | null;
73652
+ letter: string | null;
73653
+ load_carrier_index: number | null;
73654
+ load_carrier_type: string | null;
73655
+ order_id: string | null;
73656
+ order_number: string | null;
73657
+ packages: number | null;
73658
+ source: string;
73659
+ status: string;
73660
+ storage_bucket: string;
73661
+ storage_path: string | null;
73662
+ updated_at: string;
73663
+ };
73664
+ Insert: {
73665
+ byte_size?: number | null;
73666
+ connection_id?: string | null;
73667
+ content_type?: string;
73668
+ created_at?: string;
73669
+ error_message?: string | null;
73670
+ fetched_at?: string | null;
73671
+ fulfillment_order_id?: string | null;
73672
+ http_status?: number | null;
73673
+ id?: string;
73674
+ label_code?: string | null;
73675
+ letter?: string | null;
73676
+ load_carrier_index?: number | null;
73677
+ load_carrier_type?: string | null;
73678
+ order_id?: string | null;
73679
+ order_number?: string | null;
73680
+ packages?: number | null;
73681
+ source?: string;
73682
+ status?: string;
73683
+ storage_bucket?: string;
73684
+ storage_path?: string | null;
73685
+ updated_at?: string;
73686
+ };
73687
+ Update: {
73688
+ byte_size?: number | null;
73689
+ connection_id?: string | null;
73690
+ content_type?: string;
73691
+ created_at?: string;
73692
+ error_message?: string | null;
73693
+ fetched_at?: string | null;
73694
+ fulfillment_order_id?: string | null;
73695
+ http_status?: number | null;
73696
+ id?: string;
73697
+ label_code?: string | null;
73698
+ letter?: string | null;
73699
+ load_carrier_index?: number | null;
73700
+ load_carrier_type?: string | null;
73701
+ order_id?: string | null;
73702
+ order_number?: string | null;
73703
+ packages?: number | null;
73704
+ source?: string;
73705
+ status?: string;
73706
+ storage_bucket?: string;
73707
+ storage_path?: string | null;
73708
+ updated_at?: string;
73709
+ };
73710
+ Relationships: [{
73711
+ foreignKeyName: "delivery_notes_order_id_fkey";
73712
+ columns: ["order_id"];
73713
+ isOneToOne: false;
73714
+ referencedRelation: "orders";
73715
+ referencedColumns: ["id"];
73716
+ }];
73717
+ };
72638
73718
  document_bronregels: {
72639
73719
  Row: {
72640
73720
  bron: string;
@@ -75688,10 +76768,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
75688
76768
  };
75689
76769
  floriday_connections: {
75690
76770
  Row: {
75691
- access_token: string | null;
75692
76771
  api_key: string;
75693
- client_id: string;
75694
- client_secret: string;
75695
76772
  created_at: string;
75696
76773
  customers_endpoint: string | null;
75697
76774
  environment: string;
@@ -75706,10 +76783,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
75706
76783
  updated_at: string;
75707
76784
  };
75708
76785
  Insert: {
75709
- access_token?: string | null;
75710
76786
  api_key: string;
75711
- client_id: string;
75712
- client_secret: string;
75713
76787
  created_at?: string;
75714
76788
  customers_endpoint?: string | null;
75715
76789
  environment: string;
@@ -75724,10 +76798,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
75724
76798
  updated_at?: string;
75725
76799
  };
75726
76800
  Update: {
75727
- access_token?: string | null;
75728
76801
  api_key?: string;
75729
- client_id?: string;
75730
- client_secret?: string;
75731
76802
  created_at?: string;
75732
76803
  customers_endpoint?: string | null;
75733
76804
  environment?: string;
@@ -83360,6 +84431,39 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
83360
84431
  };
83361
84432
  Relationships: [];
83362
84433
  };
84434
+ print_dedupe_events: {
84435
+ Row: {
84436
+ bestaande_job_id: string | null;
84437
+ created_at: string;
84438
+ detail: string | null;
84439
+ documentnaam: string | null;
84440
+ documenttype: string | null;
84441
+ id: string;
84442
+ idempotentie_sleutel: string;
84443
+ reden: string;
84444
+ };
84445
+ Insert: {
84446
+ bestaande_job_id?: string | null;
84447
+ created_at?: string;
84448
+ detail?: string | null;
84449
+ documentnaam?: string | null;
84450
+ documenttype?: string | null;
84451
+ id?: string;
84452
+ idempotentie_sleutel: string;
84453
+ reden: string;
84454
+ };
84455
+ Update: {
84456
+ bestaande_job_id?: string | null;
84457
+ created_at?: string;
84458
+ detail?: string | null;
84459
+ documentnaam?: string | null;
84460
+ documenttype?: string | null;
84461
+ id?: string;
84462
+ idempotentie_sleutel?: string;
84463
+ reden?: string;
84464
+ };
84465
+ Relationships: [];
84466
+ };
83363
84467
  print_job_logs: {
83364
84468
  Row: {
83365
84469
  created_at: string;
@@ -83410,6 +84514,9 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
83410
84514
  is_herprint: boolean;
83411
84515
  kopieen: number;
83412
84516
  layout_id: string | null;
84517
+ lokaal_opgeslagen_op: string | null;
84518
+ lokale_pdf_fout: string | null;
84519
+ lokale_pdf_status: string | null;
83413
84520
  opgepakt_op: string | null;
83414
84521
  paginas: number;
83415
84522
  payload: import("../integrations/supabase/types").Json;
@@ -83418,6 +84525,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
83418
84525
  pogingen: number;
83419
84526
  printer_id: string | null;
83420
84527
  render_html: string | null;
84528
+ resultaat_pdf_base64: string | null;
83421
84529
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83422
84530
  updated_at: string;
83423
84531
  volgende_poging: string | null;
@@ -83442,6 +84550,9 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
83442
84550
  is_herprint?: boolean;
83443
84551
  kopieen?: number;
83444
84552
  layout_id?: string | null;
84553
+ lokaal_opgeslagen_op?: string | null;
84554
+ lokale_pdf_fout?: string | null;
84555
+ lokale_pdf_status?: string | null;
83445
84556
  opgepakt_op?: string | null;
83446
84557
  paginas?: number;
83447
84558
  payload?: import("../integrations/supabase/types").Json;
@@ -83450,6 +84561,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
83450
84561
  pogingen?: number;
83451
84562
  printer_id?: string | null;
83452
84563
  render_html?: string | null;
84564
+ resultaat_pdf_base64?: string | null;
83453
84565
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83454
84566
  updated_at?: string;
83455
84567
  volgende_poging?: string | null;
@@ -83474,6 +84586,9 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
83474
84586
  is_herprint?: boolean;
83475
84587
  kopieen?: number;
83476
84588
  layout_id?: string | null;
84589
+ lokaal_opgeslagen_op?: string | null;
84590
+ lokale_pdf_fout?: string | null;
84591
+ lokale_pdf_status?: string | null;
83477
84592
  opgepakt_op?: string | null;
83478
84593
  paginas?: number;
83479
84594
  payload?: import("../integrations/supabase/types").Json;
@@ -83482,6 +84597,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
83482
84597
  pogingen?: number;
83483
84598
  printer_id?: string | null;
83484
84599
  render_html?: string | null;
84600
+ resultaat_pdf_base64?: string | null;
83485
84601
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83486
84602
  updated_at?: string;
83487
84603
  volgende_poging?: string | null;
@@ -83600,6 +84716,39 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
83600
84716
  };
83601
84717
  Relationships: [];
83602
84718
  };
84719
+ print_preview_events: {
84720
+ Row: {
84721
+ code: string | null;
84722
+ created_at: string;
84723
+ detail: import("../integrations/supabase/types").Json;
84724
+ id: string;
84725
+ queue_item_id: string | null;
84726
+ reden: string | null;
84727
+ station_slug: string | null;
84728
+ uitkomst: string;
84729
+ };
84730
+ Insert: {
84731
+ code?: string | null;
84732
+ created_at?: string;
84733
+ detail?: import("../integrations/supabase/types").Json;
84734
+ id?: string;
84735
+ queue_item_id?: string | null;
84736
+ reden?: string | null;
84737
+ station_slug?: string | null;
84738
+ uitkomst?: string;
84739
+ };
84740
+ Update: {
84741
+ code?: string | null;
84742
+ created_at?: string;
84743
+ detail?: import("../integrations/supabase/types").Json;
84744
+ id?: string;
84745
+ queue_item_id?: string | null;
84746
+ reden?: string | null;
84747
+ station_slug?: string | null;
84748
+ uitkomst?: string;
84749
+ };
84750
+ Relationships: [];
84751
+ };
83603
84752
  print_queue_runners: {
83604
84753
  Row: {
83605
84754
  actief: boolean;
@@ -83839,6 +84988,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
83839
84988
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
83840
84989
  online: boolean;
83841
84990
  papierformaat: string;
84991
+ pdf_map: string | null;
83842
84992
  poort: number | null;
83843
84993
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83844
84994
  systeemnaam: string;
@@ -83864,6 +85014,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
83864
85014
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83865
85015
  online?: boolean;
83866
85016
  papierformaat?: string;
85017
+ pdf_map?: string | null;
83867
85018
  poort?: number | null;
83868
85019
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83869
85020
  systeemnaam?: string;
@@ -83889,6 +85040,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
83889
85040
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83890
85041
  online?: boolean;
83891
85042
  papierformaat?: string;
85043
+ pdf_map?: string | null;
83892
85044
  poort?: number | null;
83893
85045
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83894
85046
  systeemnaam?: string;
@@ -90145,6 +91297,9 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
90145
91297
  is_herprint: boolean;
90146
91298
  kopieen: number;
90147
91299
  layout_id: string | null;
91300
+ lokaal_opgeslagen_op: string | null;
91301
+ lokale_pdf_fout: string | null;
91302
+ lokale_pdf_status: string | null;
90148
91303
  opgepakt_op: string | null;
90149
91304
  paginas: number;
90150
91305
  payload: import("../integrations/supabase/types").Json;
@@ -90153,6 +91308,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
90153
91308
  pogingen: number;
90154
91309
  printer_id: string | null;
90155
91310
  render_html: string | null;
91311
+ resultaat_pdf_base64: string | null;
90156
91312
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90157
91313
  updated_at: string;
90158
91314
  volgende_poging: string | null;
@@ -90244,6 +91400,53 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
90244
91400
  isSetofReturn: true;
90245
91401
  };
90246
91402
  };
91403
+ claim_pdf_print_jobs: {
91404
+ Args: {
91405
+ _max?: number;
91406
+ };
91407
+ Returns: {
91408
+ agent_id: string | null;
91409
+ bron_job_id: string | null;
91410
+ created_at: string;
91411
+ documentnaam: string;
91412
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
91413
+ extern_job_id: string | null;
91414
+ foutmelding: string | null;
91415
+ gebruiker_id: string | null;
91416
+ gebruiker_naam: string;
91417
+ gebruikte_bron: string | null;
91418
+ gebruikte_layout_id: string | null;
91419
+ gestart_op: string | null;
91420
+ herkomst: string | null;
91421
+ id: string;
91422
+ idempotentie_sleutel: string | null;
91423
+ is_herprint: boolean;
91424
+ kopieen: number;
91425
+ layout_id: string | null;
91426
+ lokaal_opgeslagen_op: string | null;
91427
+ lokale_pdf_fout: string | null;
91428
+ lokale_pdf_status: string | null;
91429
+ opgepakt_op: string | null;
91430
+ paginas: number;
91431
+ payload: import("../integrations/supabase/types").Json;
91432
+ pdf_base64: string | null;
91433
+ pdf_url: string | null;
91434
+ pogingen: number;
91435
+ printer_id: string | null;
91436
+ render_html: string | null;
91437
+ resultaat_pdf_base64: string | null;
91438
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
91439
+ updated_at: string;
91440
+ volgende_poging: string | null;
91441
+ voltooid_op: string | null;
91442
+ }[];
91443
+ SetofOptions: {
91444
+ from: "*";
91445
+ to: "print_jobs";
91446
+ isOneToOne: false;
91447
+ isSetofReturn: true;
91448
+ };
91449
+ };
90247
91450
  claim_print_jobs: {
90248
91451
  Args: {
90249
91452
  _agent_id: string;
@@ -90268,6 +91471,9 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
90268
91471
  is_herprint: boolean;
90269
91472
  kopieen: number;
90270
91473
  layout_id: string | null;
91474
+ lokaal_opgeslagen_op: string | null;
91475
+ lokale_pdf_fout: string | null;
91476
+ lokale_pdf_status: string | null;
90271
91477
  opgepakt_op: string | null;
90272
91478
  paginas: number;
90273
91479
  payload: import("../integrations/supabase/types").Json;
@@ -90276,6 +91482,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
90276
91482
  pogingen: number;
90277
91483
  printer_id: string | null;
90278
91484
  render_html: string | null;
91485
+ resultaat_pdf_base64: string | null;
90279
91486
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90280
91487
  updated_at: string;
90281
91488
  volgende_poging: string | null;
@@ -90416,6 +91623,8 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
90416
91623
  order_id: string;
90417
91624
  order_source: string;
90418
91625
  pick_date: string;
91626
+ printed_at: string;
91627
+ printed_today: boolean;
90419
91628
  status: string;
90420
91629
  }[];
90421
91630
  };
@@ -91124,6 +92333,10 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
91124
92333
  };
91125
92334
  Returns: number;
91126
92335
  };
92336
+ logistics_cancel_orphan_tasks: {
92337
+ Args: never;
92338
+ Returns: number;
92339
+ };
91127
92340
  logistics_capacity_day_check: {
91128
92341
  Args: {
91129
92342
  p_from?: string;
@@ -91144,6 +92357,25 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
91144
92357
  };
91145
92358
  Returns: number;
91146
92359
  };
92360
+ logistics_cart_index: {
92361
+ Args: {
92362
+ p_from?: string;
92363
+ p_to?: string;
92364
+ };
92365
+ Returns: {
92366
+ cart_id: string;
92367
+ cart_index: number;
92368
+ cart_label: string;
92369
+ is_shared: boolean;
92370
+ order_number: string;
92371
+ order_source: string;
92372
+ order_uuid: string;
92373
+ pick_date: string;
92374
+ printed_at: string;
92375
+ shifted: boolean;
92376
+ task_status: string;
92377
+ }[];
92378
+ };
91147
92379
  logistics_check_order_allowed: {
91148
92380
  Args: {
91149
92381
  p_lines: import("../integrations/supabase/types").Json;
@@ -91247,50 +92479,61 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
91247
92479
  isSetofReturn: false;
91248
92480
  };
91249
92481
  };
91250
- logistics_complete_task: {
91251
- Args: {
91252
- p_result?: import("../integrations/supabase/types").Json;
91253
- p_task_id: string;
91254
- };
92482
+ logistics_complete_task: {
92483
+ Args: {
92484
+ p_result?: import("../integrations/supabase/types").Json;
92485
+ p_task_id: string;
92486
+ };
92487
+ Returns: {
92488
+ attempt_log: import("../integrations/supabase/types").Json;
92489
+ attempts: number;
92490
+ buffer_ref: string | null;
92491
+ claimed_at: string | null;
92492
+ claimed_by: string | null;
92493
+ completed_at: string | null;
92494
+ created_at: string;
92495
+ depends_on: string[];
92496
+ due_at: string | null;
92497
+ error: string | null;
92498
+ id: string;
92499
+ last_error: string | null;
92500
+ next_attempt_at: string | null;
92501
+ order_ref: string;
92502
+ owner_module: string;
92503
+ payload: import("../integrations/supabase/types").Json;
92504
+ plan_run_id: string | null;
92505
+ planned_end: string | null;
92506
+ planned_start: string | null;
92507
+ priority: number;
92508
+ result: import("../integrations/supabase/types").Json | null;
92509
+ rule_config_id: string | null;
92510
+ rule_version: number | null;
92511
+ sequence: number;
92512
+ shadow: boolean;
92513
+ started_at: string | null;
92514
+ status: string;
92515
+ strategy_id: string | null;
92516
+ task_type: string;
92517
+ updated_at: string;
92518
+ user_id: string;
92519
+ };
92520
+ SetofOptions: {
92521
+ from: "*";
92522
+ to: "logistics_tasks";
92523
+ isOneToOne: true;
92524
+ isSetofReturn: false;
92525
+ };
92526
+ };
92527
+ logistics_consistency_check: {
92528
+ Args: never;
91255
92529
  Returns: {
91256
- attempt_log: import("../integrations/supabase/types").Json;
91257
- attempts: number;
91258
- buffer_ref: string | null;
91259
- claimed_at: string | null;
91260
- claimed_by: string | null;
91261
- completed_at: string | null;
91262
- created_at: string;
91263
- depends_on: string[];
91264
- due_at: string | null;
91265
- error: string | null;
91266
- id: string;
91267
- last_error: string | null;
91268
- next_attempt_at: string | null;
91269
- order_ref: string;
91270
- owner_module: string;
91271
- payload: import("../integrations/supabase/types").Json;
91272
- plan_run_id: string | null;
91273
- planned_end: string | null;
91274
- planned_start: string | null;
91275
- priority: number;
91276
- result: import("../integrations/supabase/types").Json | null;
91277
- rule_config_id: string | null;
91278
- rule_version: number | null;
91279
- sequence: number;
91280
- shadow: boolean;
91281
- started_at: string | null;
91282
- status: string;
91283
- strategy_id: string | null;
91284
- task_type: string;
91285
- updated_at: string;
91286
- user_id: string;
91287
- };
91288
- SetofOptions: {
91289
- from: "*";
91290
- to: "logistics_tasks";
91291
- isOneToOne: true;
91292
- isSetofReturn: false;
91293
- };
92530
+ agenda_carts: number;
92531
+ control_carts: number;
92532
+ ok: boolean;
92533
+ orphan_tasks: number;
92534
+ pick_date: string;
92535
+ raw_carts: number;
92536
+ }[];
91294
92537
  };
91295
92538
  logistics_delay_customer_email: {
91296
92539
  Args: {
@@ -91381,6 +92624,16 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
91381
92624
  isSetofReturn: false;
91382
92625
  };
91383
92626
  };
92627
+ logistics_floriday_cart_plan: {
92628
+ Args: {
92629
+ p_order_id: string;
92630
+ };
92631
+ Returns: {
92632
+ carrier_type: string;
92633
+ idx: number;
92634
+ packages: number;
92635
+ }[];
92636
+ };
91384
92637
  logistics_floriday_claim_pushes: {
91385
92638
  Args: {
91386
92639
  _lease_seconds?: number;
@@ -91485,6 +92738,25 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
91485
92738
  };
91486
92739
  Returns: number;
91487
92740
  };
92741
+ logistics_order_overview: {
92742
+ Args: {
92743
+ p_from?: string;
92744
+ p_to?: string;
92745
+ };
92746
+ Returns: {
92747
+ cart_count: number;
92748
+ customer_name: string;
92749
+ delivery_date: string;
92750
+ order_number: string;
92751
+ order_source: string;
92752
+ order_uuid: string;
92753
+ pick_date: string;
92754
+ plant_count: number;
92755
+ printed_at: string;
92756
+ shifted: boolean;
92757
+ status: string;
92758
+ }[];
92759
+ };
91488
92760
  logistics_order_pick_day: {
91489
92761
  Args: {
91490
92762
  p_order_ref: string;
@@ -91497,6 +92769,22 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
91497
92769
  };
91498
92770
  Returns: string;
91499
92771
  };
92772
+ logistics_pick_agenda: {
92773
+ Args: {
92774
+ p_from?: string;
92775
+ p_to?: string;
92776
+ };
92777
+ Returns: {
92778
+ cart_count: number;
92779
+ in_preparation: number;
92780
+ order_count: number;
92781
+ orders: import("../integrations/supabase/types").Json;
92782
+ pick_date: string;
92783
+ plant_count: number;
92784
+ ready: number;
92785
+ shifted_count: number;
92786
+ }[];
92787
+ };
91500
92788
  logistics_pick_email_purpose: {
91501
92789
  Args: never;
91502
92790
  Returns: string;
@@ -91551,6 +92839,13 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
91551
92839
  };
91552
92840
  Returns: undefined;
91553
92841
  };
92842
+ logistics_plan_floriday_order: {
92843
+ Args: {
92844
+ p_buffer_id?: string;
92845
+ p_order_id: string;
92846
+ };
92847
+ Returns: number;
92848
+ };
91554
92849
  logistics_plan_impact_orders: {
91555
92850
  Args: {
91556
92851
  p_order_id: string;
@@ -91656,6 +92951,15 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
91656
92951
  };
91657
92952
  Returns: import("../integrations/supabase/types").Json;
91658
92953
  };
92954
+ logistics_resolve_pick_document: {
92955
+ Args: {
92956
+ _is_herprint: boolean;
92957
+ _queue_item_id: string;
92958
+ _session_id: string;
92959
+ _voorbeeld: boolean;
92960
+ };
92961
+ Returns: import("../integrations/supabase/types").Json;
92962
+ };
91659
92963
  logistics_resolve_settings: {
91660
92964
  Args: {
91661
92965
  p_config_id: string;
@@ -92096,6 +93400,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
92096
93400
  };
92097
93401
  pick_enqueue_print_job: {
92098
93402
  Args: {
93403
+ _is_herprint?: boolean;
92099
93404
  _printer_id?: string;
92100
93405
  _queue_item_id: string;
92101
93406
  _session_id?: string;
@@ -92109,6 +93414,13 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
92109
93414
  };
92110
93415
  Returns: import("../integrations/supabase/types").Json;
92111
93416
  };
93417
+ pick_preview_job: {
93418
+ Args: {
93419
+ _queue_item_id: string;
93420
+ _station_slug: string;
93421
+ };
93422
+ Returns: import("../integrations/supabase/types").Json;
93423
+ };
92112
93424
  pick_print_job_status: {
92113
93425
  Args: {
92114
93426
  _job_id: string;
@@ -92286,6 +93598,24 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
92286
93598
  };
92287
93599
  Returns: undefined;
92288
93600
  };
93601
+ print_preview_toestaan: {
93602
+ Args: {
93603
+ _max?: number;
93604
+ _queue_item_id: string;
93605
+ _station_slug: string;
93606
+ _venster_sec?: number;
93607
+ };
93608
+ Returns: import("../integrations/supabase/types").Json;
93609
+ };
93610
+ print_preview_weiger: {
93611
+ Args: {
93612
+ _code: string;
93613
+ _queue_item_id: string;
93614
+ _reden: string;
93615
+ _station_slug: string;
93616
+ };
93617
+ Returns: undefined;
93618
+ };
92289
93619
  process_logistics_event: {
92290
93620
  Args: {
92291
93621
  p_event_id: string;
@@ -92440,6 +93770,12 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
92440
93770
  };
92441
93771
  Returns: string;
92442
93772
  };
93773
+ resolve_print_job_printer_id: {
93774
+ Args: {
93775
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
93776
+ };
93777
+ Returns: string;
93778
+ };
92443
93779
  resolve_product_id_for_item: {
92444
93780
  Args: {
92445
93781
  p_product_name: string;
@@ -93031,7 +94367,7 @@ export declare const assertFlorydayValue: import("@tanstack/start-client-core").
93031
94367
  };
93032
94368
  CompositeTypes: { [_ in never]: never; };
93033
94369
  }, {
93034
- PostgrestVersion: "14.17";
94370
+ PostgrestVersion: "14.5";
93035
94371
  }>;
93036
94372
  userId: string;
93037
94373
  claims: import("@supabase/auth-js").User;
@@ -95905,6 +97241,84 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
95905
97241
  };
95906
97242
  Relationships: [];
95907
97243
  };
97244
+ delivery_notes: {
97245
+ Row: {
97246
+ byte_size: number | null;
97247
+ connection_id: string | null;
97248
+ content_type: string;
97249
+ created_at: string;
97250
+ error_message: string | null;
97251
+ fetched_at: string | null;
97252
+ fulfillment_order_id: string | null;
97253
+ http_status: number | null;
97254
+ id: string;
97255
+ label_code: string | null;
97256
+ letter: string | null;
97257
+ load_carrier_index: number | null;
97258
+ load_carrier_type: string | null;
97259
+ order_id: string | null;
97260
+ order_number: string | null;
97261
+ packages: number | null;
97262
+ source: string;
97263
+ status: string;
97264
+ storage_bucket: string;
97265
+ storage_path: string | null;
97266
+ updated_at: string;
97267
+ };
97268
+ Insert: {
97269
+ byte_size?: number | null;
97270
+ connection_id?: string | null;
97271
+ content_type?: string;
97272
+ created_at?: string;
97273
+ error_message?: string | null;
97274
+ fetched_at?: string | null;
97275
+ fulfillment_order_id?: string | null;
97276
+ http_status?: number | null;
97277
+ id?: string;
97278
+ label_code?: string | null;
97279
+ letter?: string | null;
97280
+ load_carrier_index?: number | null;
97281
+ load_carrier_type?: string | null;
97282
+ order_id?: string | null;
97283
+ order_number?: string | null;
97284
+ packages?: number | null;
97285
+ source?: string;
97286
+ status?: string;
97287
+ storage_bucket?: string;
97288
+ storage_path?: string | null;
97289
+ updated_at?: string;
97290
+ };
97291
+ Update: {
97292
+ byte_size?: number | null;
97293
+ connection_id?: string | null;
97294
+ content_type?: string;
97295
+ created_at?: string;
97296
+ error_message?: string | null;
97297
+ fetched_at?: string | null;
97298
+ fulfillment_order_id?: string | null;
97299
+ http_status?: number | null;
97300
+ id?: string;
97301
+ label_code?: string | null;
97302
+ letter?: string | null;
97303
+ load_carrier_index?: number | null;
97304
+ load_carrier_type?: string | null;
97305
+ order_id?: string | null;
97306
+ order_number?: string | null;
97307
+ packages?: number | null;
97308
+ source?: string;
97309
+ status?: string;
97310
+ storage_bucket?: string;
97311
+ storage_path?: string | null;
97312
+ updated_at?: string;
97313
+ };
97314
+ Relationships: [{
97315
+ foreignKeyName: "delivery_notes_order_id_fkey";
97316
+ columns: ["order_id"];
97317
+ isOneToOne: false;
97318
+ referencedRelation: "orders";
97319
+ referencedColumns: ["id"];
97320
+ }];
97321
+ };
95908
97322
  document_bronregels: {
95909
97323
  Row: {
95910
97324
  bron: string;
@@ -98958,10 +100372,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
98958
100372
  };
98959
100373
  floriday_connections: {
98960
100374
  Row: {
98961
- access_token: string | null;
98962
100375
  api_key: string;
98963
- client_id: string;
98964
- client_secret: string;
98965
100376
  created_at: string;
98966
100377
  customers_endpoint: string | null;
98967
100378
  environment: string;
@@ -98976,10 +100387,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
98976
100387
  updated_at: string;
98977
100388
  };
98978
100389
  Insert: {
98979
- access_token?: string | null;
98980
100390
  api_key: string;
98981
- client_id: string;
98982
- client_secret: string;
98983
100391
  created_at?: string;
98984
100392
  customers_endpoint?: string | null;
98985
100393
  environment: string;
@@ -98994,10 +100402,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
98994
100402
  updated_at?: string;
98995
100403
  };
98996
100404
  Update: {
98997
- access_token?: string | null;
98998
100405
  api_key?: string;
98999
- client_id?: string;
99000
- client_secret?: string;
99001
100406
  created_at?: string;
99002
100407
  customers_endpoint?: string | null;
99003
100408
  environment?: string;
@@ -106630,6 +108035,39 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
106630
108035
  };
106631
108036
  Relationships: [];
106632
108037
  };
108038
+ print_dedupe_events: {
108039
+ Row: {
108040
+ bestaande_job_id: string | null;
108041
+ created_at: string;
108042
+ detail: string | null;
108043
+ documentnaam: string | null;
108044
+ documenttype: string | null;
108045
+ id: string;
108046
+ idempotentie_sleutel: string;
108047
+ reden: string;
108048
+ };
108049
+ Insert: {
108050
+ bestaande_job_id?: string | null;
108051
+ created_at?: string;
108052
+ detail?: string | null;
108053
+ documentnaam?: string | null;
108054
+ documenttype?: string | null;
108055
+ id?: string;
108056
+ idempotentie_sleutel: string;
108057
+ reden: string;
108058
+ };
108059
+ Update: {
108060
+ bestaande_job_id?: string | null;
108061
+ created_at?: string;
108062
+ detail?: string | null;
108063
+ documentnaam?: string | null;
108064
+ documenttype?: string | null;
108065
+ id?: string;
108066
+ idempotentie_sleutel?: string;
108067
+ reden?: string;
108068
+ };
108069
+ Relationships: [];
108070
+ };
106633
108071
  print_job_logs: {
106634
108072
  Row: {
106635
108073
  created_at: string;
@@ -106680,6 +108118,9 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
106680
108118
  is_herprint: boolean;
106681
108119
  kopieen: number;
106682
108120
  layout_id: string | null;
108121
+ lokaal_opgeslagen_op: string | null;
108122
+ lokale_pdf_fout: string | null;
108123
+ lokale_pdf_status: string | null;
106683
108124
  opgepakt_op: string | null;
106684
108125
  paginas: number;
106685
108126
  payload: import("../integrations/supabase/types").Json;
@@ -106688,6 +108129,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
106688
108129
  pogingen: number;
106689
108130
  printer_id: string | null;
106690
108131
  render_html: string | null;
108132
+ resultaat_pdf_base64: string | null;
106691
108133
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
106692
108134
  updated_at: string;
106693
108135
  volgende_poging: string | null;
@@ -106712,6 +108154,9 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
106712
108154
  is_herprint?: boolean;
106713
108155
  kopieen?: number;
106714
108156
  layout_id?: string | null;
108157
+ lokaal_opgeslagen_op?: string | null;
108158
+ lokale_pdf_fout?: string | null;
108159
+ lokale_pdf_status?: string | null;
106715
108160
  opgepakt_op?: string | null;
106716
108161
  paginas?: number;
106717
108162
  payload?: import("../integrations/supabase/types").Json;
@@ -106720,6 +108165,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
106720
108165
  pogingen?: number;
106721
108166
  printer_id?: string | null;
106722
108167
  render_html?: string | null;
108168
+ resultaat_pdf_base64?: string | null;
106723
108169
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
106724
108170
  updated_at?: string;
106725
108171
  volgende_poging?: string | null;
@@ -106744,6 +108190,9 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
106744
108190
  is_herprint?: boolean;
106745
108191
  kopieen?: number;
106746
108192
  layout_id?: string | null;
108193
+ lokaal_opgeslagen_op?: string | null;
108194
+ lokale_pdf_fout?: string | null;
108195
+ lokale_pdf_status?: string | null;
106747
108196
  opgepakt_op?: string | null;
106748
108197
  paginas?: number;
106749
108198
  payload?: import("../integrations/supabase/types").Json;
@@ -106752,6 +108201,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
106752
108201
  pogingen?: number;
106753
108202
  printer_id?: string | null;
106754
108203
  render_html?: string | null;
108204
+ resultaat_pdf_base64?: string | null;
106755
108205
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
106756
108206
  updated_at?: string;
106757
108207
  volgende_poging?: string | null;
@@ -106870,6 +108320,39 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
106870
108320
  };
106871
108321
  Relationships: [];
106872
108322
  };
108323
+ print_preview_events: {
108324
+ Row: {
108325
+ code: string | null;
108326
+ created_at: string;
108327
+ detail: import("../integrations/supabase/types").Json;
108328
+ id: string;
108329
+ queue_item_id: string | null;
108330
+ reden: string | null;
108331
+ station_slug: string | null;
108332
+ uitkomst: string;
108333
+ };
108334
+ Insert: {
108335
+ code?: string | null;
108336
+ created_at?: string;
108337
+ detail?: import("../integrations/supabase/types").Json;
108338
+ id?: string;
108339
+ queue_item_id?: string | null;
108340
+ reden?: string | null;
108341
+ station_slug?: string | null;
108342
+ uitkomst?: string;
108343
+ };
108344
+ Update: {
108345
+ code?: string | null;
108346
+ created_at?: string;
108347
+ detail?: import("../integrations/supabase/types").Json;
108348
+ id?: string;
108349
+ queue_item_id?: string | null;
108350
+ reden?: string | null;
108351
+ station_slug?: string | null;
108352
+ uitkomst?: string;
108353
+ };
108354
+ Relationships: [];
108355
+ };
106873
108356
  print_queue_runners: {
106874
108357
  Row: {
106875
108358
  actief: boolean;
@@ -107109,6 +108592,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
107109
108592
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
107110
108593
  online: boolean;
107111
108594
  papierformaat: string;
108595
+ pdf_map: string | null;
107112
108596
  poort: number | null;
107113
108597
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107114
108598
  systeemnaam: string;
@@ -107134,6 +108618,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
107134
108618
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
107135
108619
  online?: boolean;
107136
108620
  papierformaat?: string;
108621
+ pdf_map?: string | null;
107137
108622
  poort?: number | null;
107138
108623
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107139
108624
  systeemnaam?: string;
@@ -107159,6 +108644,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
107159
108644
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
107160
108645
  online?: boolean;
107161
108646
  papierformaat?: string;
108647
+ pdf_map?: string | null;
107162
108648
  poort?: number | null;
107163
108649
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107164
108650
  systeemnaam?: string;
@@ -113415,6 +114901,9 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
113415
114901
  is_herprint: boolean;
113416
114902
  kopieen: number;
113417
114903
  layout_id: string | null;
114904
+ lokaal_opgeslagen_op: string | null;
114905
+ lokale_pdf_fout: string | null;
114906
+ lokale_pdf_status: string | null;
113418
114907
  opgepakt_op: string | null;
113419
114908
  paginas: number;
113420
114909
  payload: import("../integrations/supabase/types").Json;
@@ -113423,6 +114912,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
113423
114912
  pogingen: number;
113424
114913
  printer_id: string | null;
113425
114914
  render_html: string | null;
114915
+ resultaat_pdf_base64: string | null;
113426
114916
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
113427
114917
  updated_at: string;
113428
114918
  volgende_poging: string | null;
@@ -113514,6 +115004,53 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
113514
115004
  isSetofReturn: true;
113515
115005
  };
113516
115006
  };
115007
+ claim_pdf_print_jobs: {
115008
+ Args: {
115009
+ _max?: number;
115010
+ };
115011
+ Returns: {
115012
+ agent_id: string | null;
115013
+ bron_job_id: string | null;
115014
+ created_at: string;
115015
+ documentnaam: string;
115016
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
115017
+ extern_job_id: string | null;
115018
+ foutmelding: string | null;
115019
+ gebruiker_id: string | null;
115020
+ gebruiker_naam: string;
115021
+ gebruikte_bron: string | null;
115022
+ gebruikte_layout_id: string | null;
115023
+ gestart_op: string | null;
115024
+ herkomst: string | null;
115025
+ id: string;
115026
+ idempotentie_sleutel: string | null;
115027
+ is_herprint: boolean;
115028
+ kopieen: number;
115029
+ layout_id: string | null;
115030
+ lokaal_opgeslagen_op: string | null;
115031
+ lokale_pdf_fout: string | null;
115032
+ lokale_pdf_status: string | null;
115033
+ opgepakt_op: string | null;
115034
+ paginas: number;
115035
+ payload: import("../integrations/supabase/types").Json;
115036
+ pdf_base64: string | null;
115037
+ pdf_url: string | null;
115038
+ pogingen: number;
115039
+ printer_id: string | null;
115040
+ render_html: string | null;
115041
+ resultaat_pdf_base64: string | null;
115042
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
115043
+ updated_at: string;
115044
+ volgende_poging: string | null;
115045
+ voltooid_op: string | null;
115046
+ }[];
115047
+ SetofOptions: {
115048
+ from: "*";
115049
+ to: "print_jobs";
115050
+ isOneToOne: false;
115051
+ isSetofReturn: true;
115052
+ };
115053
+ };
113517
115054
  claim_print_jobs: {
113518
115055
  Args: {
113519
115056
  _agent_id: string;
@@ -113538,6 +115075,9 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
113538
115075
  is_herprint: boolean;
113539
115076
  kopieen: number;
113540
115077
  layout_id: string | null;
115078
+ lokaal_opgeslagen_op: string | null;
115079
+ lokale_pdf_fout: string | null;
115080
+ lokale_pdf_status: string | null;
113541
115081
  opgepakt_op: string | null;
113542
115082
  paginas: number;
113543
115083
  payload: import("../integrations/supabase/types").Json;
@@ -113546,6 +115086,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
113546
115086
  pogingen: number;
113547
115087
  printer_id: string | null;
113548
115088
  render_html: string | null;
115089
+ resultaat_pdf_base64: string | null;
113549
115090
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
113550
115091
  updated_at: string;
113551
115092
  volgende_poging: string | null;
@@ -113686,6 +115227,8 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
113686
115227
  order_id: string;
113687
115228
  order_source: string;
113688
115229
  pick_date: string;
115230
+ printed_at: string;
115231
+ printed_today: boolean;
113689
115232
  status: string;
113690
115233
  }[];
113691
115234
  };
@@ -114394,6 +115937,10 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
114394
115937
  };
114395
115938
  Returns: number;
114396
115939
  };
115940
+ logistics_cancel_orphan_tasks: {
115941
+ Args: never;
115942
+ Returns: number;
115943
+ };
114397
115944
  logistics_capacity_day_check: {
114398
115945
  Args: {
114399
115946
  p_from?: string;
@@ -114414,6 +115961,25 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
114414
115961
  };
114415
115962
  Returns: number;
114416
115963
  };
115964
+ logistics_cart_index: {
115965
+ Args: {
115966
+ p_from?: string;
115967
+ p_to?: string;
115968
+ };
115969
+ Returns: {
115970
+ cart_id: string;
115971
+ cart_index: number;
115972
+ cart_label: string;
115973
+ is_shared: boolean;
115974
+ order_number: string;
115975
+ order_source: string;
115976
+ order_uuid: string;
115977
+ pick_date: string;
115978
+ printed_at: string;
115979
+ shifted: boolean;
115980
+ task_status: string;
115981
+ }[];
115982
+ };
114417
115983
  logistics_check_order_allowed: {
114418
115984
  Args: {
114419
115985
  p_lines: import("../integrations/supabase/types").Json;
@@ -114562,6 +116128,17 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
114562
116128
  isSetofReturn: false;
114563
116129
  };
114564
116130
  };
116131
+ logistics_consistency_check: {
116132
+ Args: never;
116133
+ Returns: {
116134
+ agenda_carts: number;
116135
+ control_carts: number;
116136
+ ok: boolean;
116137
+ orphan_tasks: number;
116138
+ pick_date: string;
116139
+ raw_carts: number;
116140
+ }[];
116141
+ };
114565
116142
  logistics_delay_customer_email: {
114566
116143
  Args: {
114567
116144
  p_customer: string;
@@ -114651,6 +116228,16 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
114651
116228
  isSetofReturn: false;
114652
116229
  };
114653
116230
  };
116231
+ logistics_floriday_cart_plan: {
116232
+ Args: {
116233
+ p_order_id: string;
116234
+ };
116235
+ Returns: {
116236
+ carrier_type: string;
116237
+ idx: number;
116238
+ packages: number;
116239
+ }[];
116240
+ };
114654
116241
  logistics_floriday_claim_pushes: {
114655
116242
  Args: {
114656
116243
  _lease_seconds?: number;
@@ -114755,6 +116342,25 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
114755
116342
  };
114756
116343
  Returns: number;
114757
116344
  };
116345
+ logistics_order_overview: {
116346
+ Args: {
116347
+ p_from?: string;
116348
+ p_to?: string;
116349
+ };
116350
+ Returns: {
116351
+ cart_count: number;
116352
+ customer_name: string;
116353
+ delivery_date: string;
116354
+ order_number: string;
116355
+ order_source: string;
116356
+ order_uuid: string;
116357
+ pick_date: string;
116358
+ plant_count: number;
116359
+ printed_at: string;
116360
+ shifted: boolean;
116361
+ status: string;
116362
+ }[];
116363
+ };
114758
116364
  logistics_order_pick_day: {
114759
116365
  Args: {
114760
116366
  p_order_ref: string;
@@ -114767,6 +116373,22 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
114767
116373
  };
114768
116374
  Returns: string;
114769
116375
  };
116376
+ logistics_pick_agenda: {
116377
+ Args: {
116378
+ p_from?: string;
116379
+ p_to?: string;
116380
+ };
116381
+ Returns: {
116382
+ cart_count: number;
116383
+ in_preparation: number;
116384
+ order_count: number;
116385
+ orders: import("../integrations/supabase/types").Json;
116386
+ pick_date: string;
116387
+ plant_count: number;
116388
+ ready: number;
116389
+ shifted_count: number;
116390
+ }[];
116391
+ };
114770
116392
  logistics_pick_email_purpose: {
114771
116393
  Args: never;
114772
116394
  Returns: string;
@@ -114821,6 +116443,13 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
114821
116443
  };
114822
116444
  Returns: undefined;
114823
116445
  };
116446
+ logistics_plan_floriday_order: {
116447
+ Args: {
116448
+ p_buffer_id?: string;
116449
+ p_order_id: string;
116450
+ };
116451
+ Returns: number;
116452
+ };
114824
116453
  logistics_plan_impact_orders: {
114825
116454
  Args: {
114826
116455
  p_order_id: string;
@@ -114926,6 +116555,15 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
114926
116555
  };
114927
116556
  Returns: import("../integrations/supabase/types").Json;
114928
116557
  };
116558
+ logistics_resolve_pick_document: {
116559
+ Args: {
116560
+ _is_herprint: boolean;
116561
+ _queue_item_id: string;
116562
+ _session_id: string;
116563
+ _voorbeeld: boolean;
116564
+ };
116565
+ Returns: import("../integrations/supabase/types").Json;
116566
+ };
114929
116567
  logistics_resolve_settings: {
114930
116568
  Args: {
114931
116569
  p_config_id: string;
@@ -115366,6 +117004,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
115366
117004
  };
115367
117005
  pick_enqueue_print_job: {
115368
117006
  Args: {
117007
+ _is_herprint?: boolean;
115369
117008
  _printer_id?: string;
115370
117009
  _queue_item_id: string;
115371
117010
  _session_id?: string;
@@ -115379,6 +117018,13 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
115379
117018
  };
115380
117019
  Returns: import("../integrations/supabase/types").Json;
115381
117020
  };
117021
+ pick_preview_job: {
117022
+ Args: {
117023
+ _queue_item_id: string;
117024
+ _station_slug: string;
117025
+ };
117026
+ Returns: import("../integrations/supabase/types").Json;
117027
+ };
115382
117028
  pick_print_job_status: {
115383
117029
  Args: {
115384
117030
  _job_id: string;
@@ -115556,6 +117202,24 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
115556
117202
  };
115557
117203
  Returns: undefined;
115558
117204
  };
117205
+ print_preview_toestaan: {
117206
+ Args: {
117207
+ _max?: number;
117208
+ _queue_item_id: string;
117209
+ _station_slug: string;
117210
+ _venster_sec?: number;
117211
+ };
117212
+ Returns: import("../integrations/supabase/types").Json;
117213
+ };
117214
+ print_preview_weiger: {
117215
+ Args: {
117216
+ _code: string;
117217
+ _queue_item_id: string;
117218
+ _reden: string;
117219
+ _station_slug: string;
117220
+ };
117221
+ Returns: undefined;
117222
+ };
115559
117223
  process_logistics_event: {
115560
117224
  Args: {
115561
117225
  p_event_id: string;
@@ -115710,6 +117374,12 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
115710
117374
  };
115711
117375
  Returns: string;
115712
117376
  };
117377
+ resolve_print_job_printer_id: {
117378
+ Args: {
117379
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
117380
+ };
117381
+ Returns: string;
117382
+ };
115713
117383
  resolve_product_id_for_item: {
115714
117384
  Args: {
115715
117385
  p_product_name: string;
@@ -116301,7 +117971,7 @@ export declare const getFlorydayVbnProduct: import("@tanstack/start-client-core"
116301
117971
  };
116302
117972
  CompositeTypes: { [_ in never]: never; };
116303
117973
  }, {
116304
- PostgrestVersion: "14.17";
117974
+ PostgrestVersion: "14.5";
116305
117975
  }>;
116306
117976
  userId: string;
116307
117977
  claims: import("@supabase/auth-js").User;
@@ -119165,6 +120835,84 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
119165
120835
  };
119166
120836
  Relationships: [];
119167
120837
  };
120838
+ delivery_notes: {
120839
+ Row: {
120840
+ byte_size: number | null;
120841
+ connection_id: string | null;
120842
+ content_type: string;
120843
+ created_at: string;
120844
+ error_message: string | null;
120845
+ fetched_at: string | null;
120846
+ fulfillment_order_id: string | null;
120847
+ http_status: number | null;
120848
+ id: string;
120849
+ label_code: string | null;
120850
+ letter: string | null;
120851
+ load_carrier_index: number | null;
120852
+ load_carrier_type: string | null;
120853
+ order_id: string | null;
120854
+ order_number: string | null;
120855
+ packages: number | null;
120856
+ source: string;
120857
+ status: string;
120858
+ storage_bucket: string;
120859
+ storage_path: string | null;
120860
+ updated_at: string;
120861
+ };
120862
+ Insert: {
120863
+ byte_size?: number | null;
120864
+ connection_id?: string | null;
120865
+ content_type?: string;
120866
+ created_at?: string;
120867
+ error_message?: string | null;
120868
+ fetched_at?: string | null;
120869
+ fulfillment_order_id?: string | null;
120870
+ http_status?: number | null;
120871
+ id?: string;
120872
+ label_code?: string | null;
120873
+ letter?: string | null;
120874
+ load_carrier_index?: number | null;
120875
+ load_carrier_type?: string | null;
120876
+ order_id?: string | null;
120877
+ order_number?: string | null;
120878
+ packages?: number | null;
120879
+ source?: string;
120880
+ status?: string;
120881
+ storage_bucket?: string;
120882
+ storage_path?: string | null;
120883
+ updated_at?: string;
120884
+ };
120885
+ Update: {
120886
+ byte_size?: number | null;
120887
+ connection_id?: string | null;
120888
+ content_type?: string;
120889
+ created_at?: string;
120890
+ error_message?: string | null;
120891
+ fetched_at?: string | null;
120892
+ fulfillment_order_id?: string | null;
120893
+ http_status?: number | null;
120894
+ id?: string;
120895
+ label_code?: string | null;
120896
+ letter?: string | null;
120897
+ load_carrier_index?: number | null;
120898
+ load_carrier_type?: string | null;
120899
+ order_id?: string | null;
120900
+ order_number?: string | null;
120901
+ packages?: number | null;
120902
+ source?: string;
120903
+ status?: string;
120904
+ storage_bucket?: string;
120905
+ storage_path?: string | null;
120906
+ updated_at?: string;
120907
+ };
120908
+ Relationships: [{
120909
+ foreignKeyName: "delivery_notes_order_id_fkey";
120910
+ columns: ["order_id"];
120911
+ isOneToOne: false;
120912
+ referencedRelation: "orders";
120913
+ referencedColumns: ["id"];
120914
+ }];
120915
+ };
119168
120916
  document_bronregels: {
119169
120917
  Row: {
119170
120918
  bron: string;
@@ -122218,10 +123966,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
122218
123966
  };
122219
123967
  floriday_connections: {
122220
123968
  Row: {
122221
- access_token: string | null;
122222
123969
  api_key: string;
122223
- client_id: string;
122224
- client_secret: string;
122225
123970
  created_at: string;
122226
123971
  customers_endpoint: string | null;
122227
123972
  environment: string;
@@ -122236,10 +123981,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
122236
123981
  updated_at: string;
122237
123982
  };
122238
123983
  Insert: {
122239
- access_token?: string | null;
122240
123984
  api_key: string;
122241
- client_id: string;
122242
- client_secret: string;
122243
123985
  created_at?: string;
122244
123986
  customers_endpoint?: string | null;
122245
123987
  environment: string;
@@ -122254,10 +123996,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
122254
123996
  updated_at?: string;
122255
123997
  };
122256
123998
  Update: {
122257
- access_token?: string | null;
122258
123999
  api_key?: string;
122259
- client_id?: string;
122260
- client_secret?: string;
122261
124000
  created_at?: string;
122262
124001
  customers_endpoint?: string | null;
122263
124002
  environment?: string;
@@ -129890,6 +131629,39 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
129890
131629
  };
129891
131630
  Relationships: [];
129892
131631
  };
131632
+ print_dedupe_events: {
131633
+ Row: {
131634
+ bestaande_job_id: string | null;
131635
+ created_at: string;
131636
+ detail: string | null;
131637
+ documentnaam: string | null;
131638
+ documenttype: string | null;
131639
+ id: string;
131640
+ idempotentie_sleutel: string;
131641
+ reden: string;
131642
+ };
131643
+ Insert: {
131644
+ bestaande_job_id?: string | null;
131645
+ created_at?: string;
131646
+ detail?: string | null;
131647
+ documentnaam?: string | null;
131648
+ documenttype?: string | null;
131649
+ id?: string;
131650
+ idempotentie_sleutel: string;
131651
+ reden: string;
131652
+ };
131653
+ Update: {
131654
+ bestaande_job_id?: string | null;
131655
+ created_at?: string;
131656
+ detail?: string | null;
131657
+ documentnaam?: string | null;
131658
+ documenttype?: string | null;
131659
+ id?: string;
131660
+ idempotentie_sleutel?: string;
131661
+ reden?: string;
131662
+ };
131663
+ Relationships: [];
131664
+ };
129893
131665
  print_job_logs: {
129894
131666
  Row: {
129895
131667
  created_at: string;
@@ -129940,6 +131712,9 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
129940
131712
  is_herprint: boolean;
129941
131713
  kopieen: number;
129942
131714
  layout_id: string | null;
131715
+ lokaal_opgeslagen_op: string | null;
131716
+ lokale_pdf_fout: string | null;
131717
+ lokale_pdf_status: string | null;
129943
131718
  opgepakt_op: string | null;
129944
131719
  paginas: number;
129945
131720
  payload: import("../integrations/supabase/types").Json;
@@ -129948,6 +131723,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
129948
131723
  pogingen: number;
129949
131724
  printer_id: string | null;
129950
131725
  render_html: string | null;
131726
+ resultaat_pdf_base64: string | null;
129951
131727
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
129952
131728
  updated_at: string;
129953
131729
  volgende_poging: string | null;
@@ -129972,6 +131748,9 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
129972
131748
  is_herprint?: boolean;
129973
131749
  kopieen?: number;
129974
131750
  layout_id?: string | null;
131751
+ lokaal_opgeslagen_op?: string | null;
131752
+ lokale_pdf_fout?: string | null;
131753
+ lokale_pdf_status?: string | null;
129975
131754
  opgepakt_op?: string | null;
129976
131755
  paginas?: number;
129977
131756
  payload?: import("../integrations/supabase/types").Json;
@@ -129980,6 +131759,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
129980
131759
  pogingen?: number;
129981
131760
  printer_id?: string | null;
129982
131761
  render_html?: string | null;
131762
+ resultaat_pdf_base64?: string | null;
129983
131763
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
129984
131764
  updated_at?: string;
129985
131765
  volgende_poging?: string | null;
@@ -130004,6 +131784,9 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
130004
131784
  is_herprint?: boolean;
130005
131785
  kopieen?: number;
130006
131786
  layout_id?: string | null;
131787
+ lokaal_opgeslagen_op?: string | null;
131788
+ lokale_pdf_fout?: string | null;
131789
+ lokale_pdf_status?: string | null;
130007
131790
  opgepakt_op?: string | null;
130008
131791
  paginas?: number;
130009
131792
  payload?: import("../integrations/supabase/types").Json;
@@ -130012,6 +131795,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
130012
131795
  pogingen?: number;
130013
131796
  printer_id?: string | null;
130014
131797
  render_html?: string | null;
131798
+ resultaat_pdf_base64?: string | null;
130015
131799
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
130016
131800
  updated_at?: string;
130017
131801
  volgende_poging?: string | null;
@@ -130130,6 +131914,39 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
130130
131914
  };
130131
131915
  Relationships: [];
130132
131916
  };
131917
+ print_preview_events: {
131918
+ Row: {
131919
+ code: string | null;
131920
+ created_at: string;
131921
+ detail: import("../integrations/supabase/types").Json;
131922
+ id: string;
131923
+ queue_item_id: string | null;
131924
+ reden: string | null;
131925
+ station_slug: string | null;
131926
+ uitkomst: string;
131927
+ };
131928
+ Insert: {
131929
+ code?: string | null;
131930
+ created_at?: string;
131931
+ detail?: import("../integrations/supabase/types").Json;
131932
+ id?: string;
131933
+ queue_item_id?: string | null;
131934
+ reden?: string | null;
131935
+ station_slug?: string | null;
131936
+ uitkomst?: string;
131937
+ };
131938
+ Update: {
131939
+ code?: string | null;
131940
+ created_at?: string;
131941
+ detail?: import("../integrations/supabase/types").Json;
131942
+ id?: string;
131943
+ queue_item_id?: string | null;
131944
+ reden?: string | null;
131945
+ station_slug?: string | null;
131946
+ uitkomst?: string;
131947
+ };
131948
+ Relationships: [];
131949
+ };
130133
131950
  print_queue_runners: {
130134
131951
  Row: {
130135
131952
  actief: boolean;
@@ -130369,6 +132186,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
130369
132186
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
130370
132187
  online: boolean;
130371
132188
  papierformaat: string;
132189
+ pdf_map: string | null;
130372
132190
  poort: number | null;
130373
132191
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
130374
132192
  systeemnaam: string;
@@ -130394,6 +132212,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
130394
132212
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
130395
132213
  online?: boolean;
130396
132214
  papierformaat?: string;
132215
+ pdf_map?: string | null;
130397
132216
  poort?: number | null;
130398
132217
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
130399
132218
  systeemnaam?: string;
@@ -130419,6 +132238,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
130419
132238
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
130420
132239
  online?: boolean;
130421
132240
  papierformaat?: string;
132241
+ pdf_map?: string | null;
130422
132242
  poort?: number | null;
130423
132243
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
130424
132244
  systeemnaam?: string;
@@ -136675,6 +138495,9 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
136675
138495
  is_herprint: boolean;
136676
138496
  kopieen: number;
136677
138497
  layout_id: string | null;
138498
+ lokaal_opgeslagen_op: string | null;
138499
+ lokale_pdf_fout: string | null;
138500
+ lokale_pdf_status: string | null;
136678
138501
  opgepakt_op: string | null;
136679
138502
  paginas: number;
136680
138503
  payload: import("../integrations/supabase/types").Json;
@@ -136683,6 +138506,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
136683
138506
  pogingen: number;
136684
138507
  printer_id: string | null;
136685
138508
  render_html: string | null;
138509
+ resultaat_pdf_base64: string | null;
136686
138510
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
136687
138511
  updated_at: string;
136688
138512
  volgende_poging: string | null;
@@ -136774,6 +138598,53 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
136774
138598
  isSetofReturn: true;
136775
138599
  };
136776
138600
  };
138601
+ claim_pdf_print_jobs: {
138602
+ Args: {
138603
+ _max?: number;
138604
+ };
138605
+ Returns: {
138606
+ agent_id: string | null;
138607
+ bron_job_id: string | null;
138608
+ created_at: string;
138609
+ documentnaam: string;
138610
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
138611
+ extern_job_id: string | null;
138612
+ foutmelding: string | null;
138613
+ gebruiker_id: string | null;
138614
+ gebruiker_naam: string;
138615
+ gebruikte_bron: string | null;
138616
+ gebruikte_layout_id: string | null;
138617
+ gestart_op: string | null;
138618
+ herkomst: string | null;
138619
+ id: string;
138620
+ idempotentie_sleutel: string | null;
138621
+ is_herprint: boolean;
138622
+ kopieen: number;
138623
+ layout_id: string | null;
138624
+ lokaal_opgeslagen_op: string | null;
138625
+ lokale_pdf_fout: string | null;
138626
+ lokale_pdf_status: string | null;
138627
+ opgepakt_op: string | null;
138628
+ paginas: number;
138629
+ payload: import("../integrations/supabase/types").Json;
138630
+ pdf_base64: string | null;
138631
+ pdf_url: string | null;
138632
+ pogingen: number;
138633
+ printer_id: string | null;
138634
+ render_html: string | null;
138635
+ resultaat_pdf_base64: string | null;
138636
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
138637
+ updated_at: string;
138638
+ volgende_poging: string | null;
138639
+ voltooid_op: string | null;
138640
+ }[];
138641
+ SetofOptions: {
138642
+ from: "*";
138643
+ to: "print_jobs";
138644
+ isOneToOne: false;
138645
+ isSetofReturn: true;
138646
+ };
138647
+ };
136777
138648
  claim_print_jobs: {
136778
138649
  Args: {
136779
138650
  _agent_id: string;
@@ -136798,6 +138669,9 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
136798
138669
  is_herprint: boolean;
136799
138670
  kopieen: number;
136800
138671
  layout_id: string | null;
138672
+ lokaal_opgeslagen_op: string | null;
138673
+ lokale_pdf_fout: string | null;
138674
+ lokale_pdf_status: string | null;
136801
138675
  opgepakt_op: string | null;
136802
138676
  paginas: number;
136803
138677
  payload: import("../integrations/supabase/types").Json;
@@ -136806,6 +138680,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
136806
138680
  pogingen: number;
136807
138681
  printer_id: string | null;
136808
138682
  render_html: string | null;
138683
+ resultaat_pdf_base64: string | null;
136809
138684
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
136810
138685
  updated_at: string;
136811
138686
  volgende_poging: string | null;
@@ -136946,6 +138821,8 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
136946
138821
  order_id: string;
136947
138822
  order_source: string;
136948
138823
  pick_date: string;
138824
+ printed_at: string;
138825
+ printed_today: boolean;
136949
138826
  status: string;
136950
138827
  }[];
136951
138828
  };
@@ -137654,6 +139531,10 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
137654
139531
  };
137655
139532
  Returns: number;
137656
139533
  };
139534
+ logistics_cancel_orphan_tasks: {
139535
+ Args: never;
139536
+ Returns: number;
139537
+ };
137657
139538
  logistics_capacity_day_check: {
137658
139539
  Args: {
137659
139540
  p_from?: string;
@@ -137674,6 +139555,25 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
137674
139555
  };
137675
139556
  Returns: number;
137676
139557
  };
139558
+ logistics_cart_index: {
139559
+ Args: {
139560
+ p_from?: string;
139561
+ p_to?: string;
139562
+ };
139563
+ Returns: {
139564
+ cart_id: string;
139565
+ cart_index: number;
139566
+ cart_label: string;
139567
+ is_shared: boolean;
139568
+ order_number: string;
139569
+ order_source: string;
139570
+ order_uuid: string;
139571
+ pick_date: string;
139572
+ printed_at: string;
139573
+ shifted: boolean;
139574
+ task_status: string;
139575
+ }[];
139576
+ };
137677
139577
  logistics_check_order_allowed: {
137678
139578
  Args: {
137679
139579
  p_lines: import("../integrations/supabase/types").Json;
@@ -137822,6 +139722,17 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
137822
139722
  isSetofReturn: false;
137823
139723
  };
137824
139724
  };
139725
+ logistics_consistency_check: {
139726
+ Args: never;
139727
+ Returns: {
139728
+ agenda_carts: number;
139729
+ control_carts: number;
139730
+ ok: boolean;
139731
+ orphan_tasks: number;
139732
+ pick_date: string;
139733
+ raw_carts: number;
139734
+ }[];
139735
+ };
137825
139736
  logistics_delay_customer_email: {
137826
139737
  Args: {
137827
139738
  p_customer: string;
@@ -137911,6 +139822,16 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
137911
139822
  isSetofReturn: false;
137912
139823
  };
137913
139824
  };
139825
+ logistics_floriday_cart_plan: {
139826
+ Args: {
139827
+ p_order_id: string;
139828
+ };
139829
+ Returns: {
139830
+ carrier_type: string;
139831
+ idx: number;
139832
+ packages: number;
139833
+ }[];
139834
+ };
137914
139835
  logistics_floriday_claim_pushes: {
137915
139836
  Args: {
137916
139837
  _lease_seconds?: number;
@@ -138015,6 +139936,25 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
138015
139936
  };
138016
139937
  Returns: number;
138017
139938
  };
139939
+ logistics_order_overview: {
139940
+ Args: {
139941
+ p_from?: string;
139942
+ p_to?: string;
139943
+ };
139944
+ Returns: {
139945
+ cart_count: number;
139946
+ customer_name: string;
139947
+ delivery_date: string;
139948
+ order_number: string;
139949
+ order_source: string;
139950
+ order_uuid: string;
139951
+ pick_date: string;
139952
+ plant_count: number;
139953
+ printed_at: string;
139954
+ shifted: boolean;
139955
+ status: string;
139956
+ }[];
139957
+ };
138018
139958
  logistics_order_pick_day: {
138019
139959
  Args: {
138020
139960
  p_order_ref: string;
@@ -138027,6 +139967,22 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
138027
139967
  };
138028
139968
  Returns: string;
138029
139969
  };
139970
+ logistics_pick_agenda: {
139971
+ Args: {
139972
+ p_from?: string;
139973
+ p_to?: string;
139974
+ };
139975
+ Returns: {
139976
+ cart_count: number;
139977
+ in_preparation: number;
139978
+ order_count: number;
139979
+ orders: import("../integrations/supabase/types").Json;
139980
+ pick_date: string;
139981
+ plant_count: number;
139982
+ ready: number;
139983
+ shifted_count: number;
139984
+ }[];
139985
+ };
138030
139986
  logistics_pick_email_purpose: {
138031
139987
  Args: never;
138032
139988
  Returns: string;
@@ -138081,6 +140037,13 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
138081
140037
  };
138082
140038
  Returns: undefined;
138083
140039
  };
140040
+ logistics_plan_floriday_order: {
140041
+ Args: {
140042
+ p_buffer_id?: string;
140043
+ p_order_id: string;
140044
+ };
140045
+ Returns: number;
140046
+ };
138084
140047
  logistics_plan_impact_orders: {
138085
140048
  Args: {
138086
140049
  p_order_id: string;
@@ -138186,6 +140149,15 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
138186
140149
  };
138187
140150
  Returns: import("../integrations/supabase/types").Json;
138188
140151
  };
140152
+ logistics_resolve_pick_document: {
140153
+ Args: {
140154
+ _is_herprint: boolean;
140155
+ _queue_item_id: string;
140156
+ _session_id: string;
140157
+ _voorbeeld: boolean;
140158
+ };
140159
+ Returns: import("../integrations/supabase/types").Json;
140160
+ };
138189
140161
  logistics_resolve_settings: {
138190
140162
  Args: {
138191
140163
  p_config_id: string;
@@ -138626,6 +140598,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
138626
140598
  };
138627
140599
  pick_enqueue_print_job: {
138628
140600
  Args: {
140601
+ _is_herprint?: boolean;
138629
140602
  _printer_id?: string;
138630
140603
  _queue_item_id: string;
138631
140604
  _session_id?: string;
@@ -138639,6 +140612,13 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
138639
140612
  };
138640
140613
  Returns: import("../integrations/supabase/types").Json;
138641
140614
  };
140615
+ pick_preview_job: {
140616
+ Args: {
140617
+ _queue_item_id: string;
140618
+ _station_slug: string;
140619
+ };
140620
+ Returns: import("../integrations/supabase/types").Json;
140621
+ };
138642
140622
  pick_print_job_status: {
138643
140623
  Args: {
138644
140624
  _job_id: string;
@@ -138816,6 +140796,24 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
138816
140796
  };
138817
140797
  Returns: undefined;
138818
140798
  };
140799
+ print_preview_toestaan: {
140800
+ Args: {
140801
+ _max?: number;
140802
+ _queue_item_id: string;
140803
+ _station_slug: string;
140804
+ _venster_sec?: number;
140805
+ };
140806
+ Returns: import("../integrations/supabase/types").Json;
140807
+ };
140808
+ print_preview_weiger: {
140809
+ Args: {
140810
+ _code: string;
140811
+ _queue_item_id: string;
140812
+ _reden: string;
140813
+ _station_slug: string;
140814
+ };
140815
+ Returns: undefined;
140816
+ };
138819
140817
  process_logistics_event: {
138820
140818
  Args: {
138821
140819
  p_event_id: string;
@@ -138970,6 +140968,12 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
138970
140968
  };
138971
140969
  Returns: string;
138972
140970
  };
140971
+ resolve_print_job_printer_id: {
140972
+ Args: {
140973
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
140974
+ };
140975
+ Returns: string;
140976
+ };
138973
140977
  resolve_product_id_for_item: {
138974
140978
  Args: {
138975
140979
  p_product_name: string;
@@ -139561,7 +141565,7 @@ export declare const getFlorydayResourceSchema: import("@tanstack/start-client-c
139561
141565
  };
139562
141566
  CompositeTypes: { [_ in never]: never; };
139563
141567
  }, {
139564
- PostgrestVersion: "14.17";
141568
+ PostgrestVersion: "14.5";
139565
141569
  }>;
139566
141570
  userId: string;
139567
141571
  claims: import("@supabase/auth-js").User;
@@ -142422,6 +144426,84 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
142422
144426
  };
142423
144427
  Relationships: [];
142424
144428
  };
144429
+ delivery_notes: {
144430
+ Row: {
144431
+ byte_size: number | null;
144432
+ connection_id: string | null;
144433
+ content_type: string;
144434
+ created_at: string;
144435
+ error_message: string | null;
144436
+ fetched_at: string | null;
144437
+ fulfillment_order_id: string | null;
144438
+ http_status: number | null;
144439
+ id: string;
144440
+ label_code: string | null;
144441
+ letter: string | null;
144442
+ load_carrier_index: number | null;
144443
+ load_carrier_type: string | null;
144444
+ order_id: string | null;
144445
+ order_number: string | null;
144446
+ packages: number | null;
144447
+ source: string;
144448
+ status: string;
144449
+ storage_bucket: string;
144450
+ storage_path: string | null;
144451
+ updated_at: string;
144452
+ };
144453
+ Insert: {
144454
+ byte_size?: number | null;
144455
+ connection_id?: string | null;
144456
+ content_type?: string;
144457
+ created_at?: string;
144458
+ error_message?: string | null;
144459
+ fetched_at?: string | null;
144460
+ fulfillment_order_id?: string | null;
144461
+ http_status?: number | null;
144462
+ id?: string;
144463
+ label_code?: string | null;
144464
+ letter?: string | null;
144465
+ load_carrier_index?: number | null;
144466
+ load_carrier_type?: string | null;
144467
+ order_id?: string | null;
144468
+ order_number?: string | null;
144469
+ packages?: number | null;
144470
+ source?: string;
144471
+ status?: string;
144472
+ storage_bucket?: string;
144473
+ storage_path?: string | null;
144474
+ updated_at?: string;
144475
+ };
144476
+ Update: {
144477
+ byte_size?: number | null;
144478
+ connection_id?: string | null;
144479
+ content_type?: string;
144480
+ created_at?: string;
144481
+ error_message?: string | null;
144482
+ fetched_at?: string | null;
144483
+ fulfillment_order_id?: string | null;
144484
+ http_status?: number | null;
144485
+ id?: string;
144486
+ label_code?: string | null;
144487
+ letter?: string | null;
144488
+ load_carrier_index?: number | null;
144489
+ load_carrier_type?: string | null;
144490
+ order_id?: string | null;
144491
+ order_number?: string | null;
144492
+ packages?: number | null;
144493
+ source?: string;
144494
+ status?: string;
144495
+ storage_bucket?: string;
144496
+ storage_path?: string | null;
144497
+ updated_at?: string;
144498
+ };
144499
+ Relationships: [{
144500
+ foreignKeyName: "delivery_notes_order_id_fkey";
144501
+ columns: ["order_id"];
144502
+ isOneToOne: false;
144503
+ referencedRelation: "orders";
144504
+ referencedColumns: ["id"];
144505
+ }];
144506
+ };
142425
144507
  document_bronregels: {
142426
144508
  Row: {
142427
144509
  bron: string;
@@ -145475,10 +147557,7 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
145475
147557
  };
145476
147558
  floriday_connections: {
145477
147559
  Row: {
145478
- access_token: string | null;
145479
147560
  api_key: string;
145480
- client_id: string;
145481
- client_secret: string;
145482
147561
  created_at: string;
145483
147562
  customers_endpoint: string | null;
145484
147563
  environment: string;
@@ -145493,10 +147572,7 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
145493
147572
  updated_at: string;
145494
147573
  };
145495
147574
  Insert: {
145496
- access_token?: string | null;
145497
147575
  api_key: string;
145498
- client_id: string;
145499
- client_secret: string;
145500
147576
  created_at?: string;
145501
147577
  customers_endpoint?: string | null;
145502
147578
  environment: string;
@@ -145511,10 +147587,7 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
145511
147587
  updated_at?: string;
145512
147588
  };
145513
147589
  Update: {
145514
- access_token?: string | null;
145515
147590
  api_key?: string;
145516
- client_id?: string;
145517
- client_secret?: string;
145518
147591
  created_at?: string;
145519
147592
  customers_endpoint?: string | null;
145520
147593
  environment?: string;
@@ -153147,6 +155220,39 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
153147
155220
  };
153148
155221
  Relationships: [];
153149
155222
  };
155223
+ print_dedupe_events: {
155224
+ Row: {
155225
+ bestaande_job_id: string | null;
155226
+ created_at: string;
155227
+ detail: string | null;
155228
+ documentnaam: string | null;
155229
+ documenttype: string | null;
155230
+ id: string;
155231
+ idempotentie_sleutel: string;
155232
+ reden: string;
155233
+ };
155234
+ Insert: {
155235
+ bestaande_job_id?: string | null;
155236
+ created_at?: string;
155237
+ detail?: string | null;
155238
+ documentnaam?: string | null;
155239
+ documenttype?: string | null;
155240
+ id?: string;
155241
+ idempotentie_sleutel: string;
155242
+ reden: string;
155243
+ };
155244
+ Update: {
155245
+ bestaande_job_id?: string | null;
155246
+ created_at?: string;
155247
+ detail?: string | null;
155248
+ documentnaam?: string | null;
155249
+ documenttype?: string | null;
155250
+ id?: string;
155251
+ idempotentie_sleutel?: string;
155252
+ reden?: string;
155253
+ };
155254
+ Relationships: [];
155255
+ };
153150
155256
  print_job_logs: {
153151
155257
  Row: {
153152
155258
  created_at: string;
@@ -153197,6 +155303,9 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
153197
155303
  is_herprint: boolean;
153198
155304
  kopieen: number;
153199
155305
  layout_id: string | null;
155306
+ lokaal_opgeslagen_op: string | null;
155307
+ lokale_pdf_fout: string | null;
155308
+ lokale_pdf_status: string | null;
153200
155309
  opgepakt_op: string | null;
153201
155310
  paginas: number;
153202
155311
  payload: import("../integrations/supabase/types").Json;
@@ -153205,6 +155314,7 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
153205
155314
  pogingen: number;
153206
155315
  printer_id: string | null;
153207
155316
  render_html: string | null;
155317
+ resultaat_pdf_base64: string | null;
153208
155318
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
153209
155319
  updated_at: string;
153210
155320
  volgende_poging: string | null;
@@ -153229,6 +155339,9 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
153229
155339
  is_herprint?: boolean;
153230
155340
  kopieen?: number;
153231
155341
  layout_id?: string | null;
155342
+ lokaal_opgeslagen_op?: string | null;
155343
+ lokale_pdf_fout?: string | null;
155344
+ lokale_pdf_status?: string | null;
153232
155345
  opgepakt_op?: string | null;
153233
155346
  paginas?: number;
153234
155347
  payload?: import("../integrations/supabase/types").Json;
@@ -153237,6 +155350,7 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
153237
155350
  pogingen?: number;
153238
155351
  printer_id?: string | null;
153239
155352
  render_html?: string | null;
155353
+ resultaat_pdf_base64?: string | null;
153240
155354
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
153241
155355
  updated_at?: string;
153242
155356
  volgende_poging?: string | null;
@@ -153261,6 +155375,9 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
153261
155375
  is_herprint?: boolean;
153262
155376
  kopieen?: number;
153263
155377
  layout_id?: string | null;
155378
+ lokaal_opgeslagen_op?: string | null;
155379
+ lokale_pdf_fout?: string | null;
155380
+ lokale_pdf_status?: string | null;
153264
155381
  opgepakt_op?: string | null;
153265
155382
  paginas?: number;
153266
155383
  payload?: import("../integrations/supabase/types").Json;
@@ -153269,6 +155386,7 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
153269
155386
  pogingen?: number;
153270
155387
  printer_id?: string | null;
153271
155388
  render_html?: string | null;
155389
+ resultaat_pdf_base64?: string | null;
153272
155390
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
153273
155391
  updated_at?: string;
153274
155392
  volgende_poging?: string | null;
@@ -153387,6 +155505,39 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
153387
155505
  };
153388
155506
  Relationships: [];
153389
155507
  };
155508
+ print_preview_events: {
155509
+ Row: {
155510
+ code: string | null;
155511
+ created_at: string;
155512
+ detail: import("../integrations/supabase/types").Json;
155513
+ id: string;
155514
+ queue_item_id: string | null;
155515
+ reden: string | null;
155516
+ station_slug: string | null;
155517
+ uitkomst: string;
155518
+ };
155519
+ Insert: {
155520
+ code?: string | null;
155521
+ created_at?: string;
155522
+ detail?: import("../integrations/supabase/types").Json;
155523
+ id?: string;
155524
+ queue_item_id?: string | null;
155525
+ reden?: string | null;
155526
+ station_slug?: string | null;
155527
+ uitkomst?: string;
155528
+ };
155529
+ Update: {
155530
+ code?: string | null;
155531
+ created_at?: string;
155532
+ detail?: import("../integrations/supabase/types").Json;
155533
+ id?: string;
155534
+ queue_item_id?: string | null;
155535
+ reden?: string | null;
155536
+ station_slug?: string | null;
155537
+ uitkomst?: string;
155538
+ };
155539
+ Relationships: [];
155540
+ };
153390
155541
  print_queue_runners: {
153391
155542
  Row: {
153392
155543
  actief: boolean;
@@ -153626,6 +155777,7 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
153626
155777
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
153627
155778
  online: boolean;
153628
155779
  papierformaat: string;
155780
+ pdf_map: string | null;
153629
155781
  poort: number | null;
153630
155782
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
153631
155783
  systeemnaam: string;
@@ -153651,6 +155803,7 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
153651
155803
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
153652
155804
  online?: boolean;
153653
155805
  papierformaat?: string;
155806
+ pdf_map?: string | null;
153654
155807
  poort?: number | null;
153655
155808
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
153656
155809
  systeemnaam?: string;
@@ -153676,6 +155829,7 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
153676
155829
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
153677
155830
  online?: boolean;
153678
155831
  papierformaat?: string;
155832
+ pdf_map?: string | null;
153679
155833
  poort?: number | null;
153680
155834
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
153681
155835
  systeemnaam?: string;
@@ -159932,6 +162086,9 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
159932
162086
  is_herprint: boolean;
159933
162087
  kopieen: number;
159934
162088
  layout_id: string | null;
162089
+ lokaal_opgeslagen_op: string | null;
162090
+ lokale_pdf_fout: string | null;
162091
+ lokale_pdf_status: string | null;
159935
162092
  opgepakt_op: string | null;
159936
162093
  paginas: number;
159937
162094
  payload: import("../integrations/supabase/types").Json;
@@ -159940,6 +162097,7 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
159940
162097
  pogingen: number;
159941
162098
  printer_id: string | null;
159942
162099
  render_html: string | null;
162100
+ resultaat_pdf_base64: string | null;
159943
162101
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
159944
162102
  updated_at: string;
159945
162103
  volgende_poging: string | null;
@@ -160031,6 +162189,53 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
160031
162189
  isSetofReturn: true;
160032
162190
  };
160033
162191
  };
162192
+ claim_pdf_print_jobs: {
162193
+ Args: {
162194
+ _max?: number;
162195
+ };
162196
+ Returns: {
162197
+ agent_id: string | null;
162198
+ bron_job_id: string | null;
162199
+ created_at: string;
162200
+ documentnaam: string;
162201
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
162202
+ extern_job_id: string | null;
162203
+ foutmelding: string | null;
162204
+ gebruiker_id: string | null;
162205
+ gebruiker_naam: string;
162206
+ gebruikte_bron: string | null;
162207
+ gebruikte_layout_id: string | null;
162208
+ gestart_op: string | null;
162209
+ herkomst: string | null;
162210
+ id: string;
162211
+ idempotentie_sleutel: string | null;
162212
+ is_herprint: boolean;
162213
+ kopieen: number;
162214
+ layout_id: string | null;
162215
+ lokaal_opgeslagen_op: string | null;
162216
+ lokale_pdf_fout: string | null;
162217
+ lokale_pdf_status: string | null;
162218
+ opgepakt_op: string | null;
162219
+ paginas: number;
162220
+ payload: import("../integrations/supabase/types").Json;
162221
+ pdf_base64: string | null;
162222
+ pdf_url: string | null;
162223
+ pogingen: number;
162224
+ printer_id: string | null;
162225
+ render_html: string | null;
162226
+ resultaat_pdf_base64: string | null;
162227
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
162228
+ updated_at: string;
162229
+ volgende_poging: string | null;
162230
+ voltooid_op: string | null;
162231
+ }[];
162232
+ SetofOptions: {
162233
+ from: "*";
162234
+ to: "print_jobs";
162235
+ isOneToOne: false;
162236
+ isSetofReturn: true;
162237
+ };
162238
+ };
160034
162239
  claim_print_jobs: {
160035
162240
  Args: {
160036
162241
  _agent_id: string;
@@ -160055,6 +162260,9 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
160055
162260
  is_herprint: boolean;
160056
162261
  kopieen: number;
160057
162262
  layout_id: string | null;
162263
+ lokaal_opgeslagen_op: string | null;
162264
+ lokale_pdf_fout: string | null;
162265
+ lokale_pdf_status: string | null;
160058
162266
  opgepakt_op: string | null;
160059
162267
  paginas: number;
160060
162268
  payload: import("../integrations/supabase/types").Json;
@@ -160063,6 +162271,7 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
160063
162271
  pogingen: number;
160064
162272
  printer_id: string | null;
160065
162273
  render_html: string | null;
162274
+ resultaat_pdf_base64: string | null;
160066
162275
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
160067
162276
  updated_at: string;
160068
162277
  volgende_poging: string | null;
@@ -160203,6 +162412,8 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
160203
162412
  order_id: string;
160204
162413
  order_source: string;
160205
162414
  pick_date: string;
162415
+ printed_at: string;
162416
+ printed_today: boolean;
160206
162417
  status: string;
160207
162418
  }[];
160208
162419
  };
@@ -160911,6 +163122,10 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
160911
163122
  };
160912
163123
  Returns: number;
160913
163124
  };
163125
+ logistics_cancel_orphan_tasks: {
163126
+ Args: never;
163127
+ Returns: number;
163128
+ };
160914
163129
  logistics_capacity_day_check: {
160915
163130
  Args: {
160916
163131
  p_from?: string;
@@ -160931,6 +163146,25 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
160931
163146
  };
160932
163147
  Returns: number;
160933
163148
  };
163149
+ logistics_cart_index: {
163150
+ Args: {
163151
+ p_from?: string;
163152
+ p_to?: string;
163153
+ };
163154
+ Returns: {
163155
+ cart_id: string;
163156
+ cart_index: number;
163157
+ cart_label: string;
163158
+ is_shared: boolean;
163159
+ order_number: string;
163160
+ order_source: string;
163161
+ order_uuid: string;
163162
+ pick_date: string;
163163
+ printed_at: string;
163164
+ shifted: boolean;
163165
+ task_status: string;
163166
+ }[];
163167
+ };
160934
163168
  logistics_check_order_allowed: {
160935
163169
  Args: {
160936
163170
  p_lines: import("../integrations/supabase/types").Json;
@@ -161079,6 +163313,17 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
161079
163313
  isSetofReturn: false;
161080
163314
  };
161081
163315
  };
163316
+ logistics_consistency_check: {
163317
+ Args: never;
163318
+ Returns: {
163319
+ agenda_carts: number;
163320
+ control_carts: number;
163321
+ ok: boolean;
163322
+ orphan_tasks: number;
163323
+ pick_date: string;
163324
+ raw_carts: number;
163325
+ }[];
163326
+ };
161082
163327
  logistics_delay_customer_email: {
161083
163328
  Args: {
161084
163329
  p_customer: string;
@@ -161168,6 +163413,16 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
161168
163413
  isSetofReturn: false;
161169
163414
  };
161170
163415
  };
163416
+ logistics_floriday_cart_plan: {
163417
+ Args: {
163418
+ p_order_id: string;
163419
+ };
163420
+ Returns: {
163421
+ carrier_type: string;
163422
+ idx: number;
163423
+ packages: number;
163424
+ }[];
163425
+ };
161171
163426
  logistics_floriday_claim_pushes: {
161172
163427
  Args: {
161173
163428
  _lease_seconds?: number;
@@ -161272,6 +163527,25 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
161272
163527
  };
161273
163528
  Returns: number;
161274
163529
  };
163530
+ logistics_order_overview: {
163531
+ Args: {
163532
+ p_from?: string;
163533
+ p_to?: string;
163534
+ };
163535
+ Returns: {
163536
+ cart_count: number;
163537
+ customer_name: string;
163538
+ delivery_date: string;
163539
+ order_number: string;
163540
+ order_source: string;
163541
+ order_uuid: string;
163542
+ pick_date: string;
163543
+ plant_count: number;
163544
+ printed_at: string;
163545
+ shifted: boolean;
163546
+ status: string;
163547
+ }[];
163548
+ };
161275
163549
  logistics_order_pick_day: {
161276
163550
  Args: {
161277
163551
  p_order_ref: string;
@@ -161284,6 +163558,22 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
161284
163558
  };
161285
163559
  Returns: string;
161286
163560
  };
163561
+ logistics_pick_agenda: {
163562
+ Args: {
163563
+ p_from?: string;
163564
+ p_to?: string;
163565
+ };
163566
+ Returns: {
163567
+ cart_count: number;
163568
+ in_preparation: number;
163569
+ order_count: number;
163570
+ orders: import("../integrations/supabase/types").Json;
163571
+ pick_date: string;
163572
+ plant_count: number;
163573
+ ready: number;
163574
+ shifted_count: number;
163575
+ }[];
163576
+ };
161287
163577
  logistics_pick_email_purpose: {
161288
163578
  Args: never;
161289
163579
  Returns: string;
@@ -161338,6 +163628,13 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
161338
163628
  };
161339
163629
  Returns: undefined;
161340
163630
  };
163631
+ logistics_plan_floriday_order: {
163632
+ Args: {
163633
+ p_buffer_id?: string;
163634
+ p_order_id: string;
163635
+ };
163636
+ Returns: number;
163637
+ };
161341
163638
  logistics_plan_impact_orders: {
161342
163639
  Args: {
161343
163640
  p_order_id: string;
@@ -161443,6 +163740,15 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
161443
163740
  };
161444
163741
  Returns: import("../integrations/supabase/types").Json;
161445
163742
  };
163743
+ logistics_resolve_pick_document: {
163744
+ Args: {
163745
+ _is_herprint: boolean;
163746
+ _queue_item_id: string;
163747
+ _session_id: string;
163748
+ _voorbeeld: boolean;
163749
+ };
163750
+ Returns: import("../integrations/supabase/types").Json;
163751
+ };
161446
163752
  logistics_resolve_settings: {
161447
163753
  Args: {
161448
163754
  p_config_id: string;
@@ -161883,6 +164189,7 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
161883
164189
  };
161884
164190
  pick_enqueue_print_job: {
161885
164191
  Args: {
164192
+ _is_herprint?: boolean;
161886
164193
  _printer_id?: string;
161887
164194
  _queue_item_id: string;
161888
164195
  _session_id?: string;
@@ -161896,6 +164203,13 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
161896
164203
  };
161897
164204
  Returns: import("../integrations/supabase/types").Json;
161898
164205
  };
164206
+ pick_preview_job: {
164207
+ Args: {
164208
+ _queue_item_id: string;
164209
+ _station_slug: string;
164210
+ };
164211
+ Returns: import("../integrations/supabase/types").Json;
164212
+ };
161899
164213
  pick_print_job_status: {
161900
164214
  Args: {
161901
164215
  _job_id: string;
@@ -162073,6 +164387,24 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
162073
164387
  };
162074
164388
  Returns: undefined;
162075
164389
  };
164390
+ print_preview_toestaan: {
164391
+ Args: {
164392
+ _max?: number;
164393
+ _queue_item_id: string;
164394
+ _station_slug: string;
164395
+ _venster_sec?: number;
164396
+ };
164397
+ Returns: import("../integrations/supabase/types").Json;
164398
+ };
164399
+ print_preview_weiger: {
164400
+ Args: {
164401
+ _code: string;
164402
+ _queue_item_id: string;
164403
+ _reden: string;
164404
+ _station_slug: string;
164405
+ };
164406
+ Returns: undefined;
164407
+ };
162076
164408
  process_logistics_event: {
162077
164409
  Args: {
162078
164410
  p_event_id: string;
@@ -162227,6 +164559,12 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
162227
164559
  };
162228
164560
  Returns: string;
162229
164561
  };
164562
+ resolve_print_job_printer_id: {
164563
+ Args: {
164564
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
164565
+ };
164566
+ Returns: string;
164567
+ };
162230
164568
  resolve_product_id_for_item: {
162231
164569
  Args: {
162232
164570
  p_product_name: string;
@@ -162818,7 +165156,7 @@ export declare const getActiveFloridayEnvironment: import("@tanstack/start-clien
162818
165156
  };
162819
165157
  CompositeTypes: { [_ in never]: never; };
162820
165158
  }, {
162821
- PostgrestVersion: "14.17";
165159
+ PostgrestVersion: "14.5";
162822
165160
  }>;
162823
165161
  userId: string;
162824
165162
  claims: import("@supabase/auth-js").User;