@flowselections/floriday-verkoop-module 1.0.56 → 1.0.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
  2. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.js +5 -5
  3. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  4. package/dist-lib/components/verkoop/SalesOrdersTable.js +17 -4
  5. package/dist-lib/integrations/supabase/auth-middleware.d.ts +344 -10
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/client.d.ts +344 -10
  8. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/client.server.d.ts +344 -10
  10. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/types.d.ts +346 -10
  12. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  13. package/dist-lib/lib/cart-lock.functions.d.ts +344 -10
  14. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/cart-planning-settings.functions.d.ts +3906 -232
  16. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/cart-replan.functions.d.ts +1032 -30
  18. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/create-order.functions.d.ts +6128 -450
  20. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +1032 -30
  22. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floriday-gateway.server.d.ts +14 -0
  24. package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday-gateway.server.js +46 -0
  26. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +23961 -20
  27. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday-logistic-labels.functions.js +209 -90
  29. package/dist-lib/lib/floriday-mirror.functions.d.ts +344 -10
  30. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/floriday-public.functions.d.ts +2451 -113
  32. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floriday-sync.d.ts.map +1 -1
  34. package/dist-lib/lib/floriday-writes.functions.d.ts +1763 -93
  35. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/invoice-timing.functions.d.ts +1376 -40
  37. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/load-carriers.functions.d.ts +344 -10
  39. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/logistics-engine.functions.d.ts +1763 -93
  41. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/logistics-stock.functions.d.ts +688 -20
  43. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/order-addresses.functions.d.ts +344 -10
  45. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/order-buffers.functions.d.ts +1032 -30
  47. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/order-carrier.functions.d.ts +688 -20
  49. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/order-pickup.functions.d.ts +688 -20
  51. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/order-shipments.functions.d.ts +1376 -40
  53. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/salesorders-list.functions.d.ts +344 -10
  55. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  57. package/dist-lib/lib/salesorders-list.server.js +43 -1
  58. package/dist-lib/lib/salesorders-mapping.d.ts +8 -0
  59. package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
  60. package/dist-lib/lib/salesorders.functions.d.ts +1763 -93
  61. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +688 -20
  63. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/tradeitems.functions.d.ts +344 -10
  65. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  66. package/package.json +131 -131
@@ -2852,6 +2852,84 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
2852
2852
  };
2853
2853
  Relationships: [];
2854
2854
  };
2855
+ delivery_notes: {
2856
+ Row: {
2857
+ byte_size: number | null;
2858
+ connection_id: string | null;
2859
+ content_type: string;
2860
+ created_at: string;
2861
+ error_message: string | null;
2862
+ fetched_at: string | null;
2863
+ fulfillment_order_id: string | null;
2864
+ http_status: number | null;
2865
+ id: string;
2866
+ label_code: string | null;
2867
+ letter: string | null;
2868
+ load_carrier_index: number | null;
2869
+ load_carrier_type: string | null;
2870
+ order_id: string | null;
2871
+ order_number: string | null;
2872
+ packages: number | null;
2873
+ source: string;
2874
+ status: string;
2875
+ storage_bucket: string;
2876
+ storage_path: string | null;
2877
+ updated_at: string;
2878
+ };
2879
+ Insert: {
2880
+ byte_size?: number | null;
2881
+ connection_id?: string | null;
2882
+ content_type?: string;
2883
+ created_at?: string;
2884
+ error_message?: string | null;
2885
+ fetched_at?: string | null;
2886
+ fulfillment_order_id?: string | null;
2887
+ http_status?: number | null;
2888
+ id?: string;
2889
+ label_code?: string | null;
2890
+ letter?: string | null;
2891
+ load_carrier_index?: number | null;
2892
+ load_carrier_type?: string | null;
2893
+ order_id?: string | null;
2894
+ order_number?: string | null;
2895
+ packages?: number | null;
2896
+ source?: string;
2897
+ status?: string;
2898
+ storage_bucket?: string;
2899
+ storage_path?: string | null;
2900
+ updated_at?: string;
2901
+ };
2902
+ Update: {
2903
+ byte_size?: number | null;
2904
+ connection_id?: string | null;
2905
+ content_type?: string;
2906
+ created_at?: string;
2907
+ error_message?: string | null;
2908
+ fetched_at?: string | null;
2909
+ fulfillment_order_id?: string | null;
2910
+ http_status?: number | null;
2911
+ id?: string;
2912
+ label_code?: string | null;
2913
+ letter?: string | null;
2914
+ load_carrier_index?: number | null;
2915
+ load_carrier_type?: string | null;
2916
+ order_id?: string | null;
2917
+ order_number?: string | null;
2918
+ packages?: number | null;
2919
+ source?: string;
2920
+ status?: string;
2921
+ storage_bucket?: string;
2922
+ storage_path?: string | null;
2923
+ updated_at?: string;
2924
+ };
2925
+ Relationships: [{
2926
+ foreignKeyName: "delivery_notes_order_id_fkey";
2927
+ columns: ["order_id"];
2928
+ isOneToOne: false;
2929
+ referencedRelation: "orders";
2930
+ referencedColumns: ["id"];
2931
+ }];
2932
+ };
2855
2933
  document_bronregels: {
2856
2934
  Row: {
2857
2935
  bron: string;
@@ -5905,10 +5983,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
5905
5983
  };
5906
5984
  floriday_connections: {
5907
5985
  Row: {
5908
- access_token: string | null;
5909
5986
  api_key: string;
5910
- client_id: string;
5911
- client_secret: string;
5912
5987
  created_at: string;
5913
5988
  customers_endpoint: string | null;
5914
5989
  environment: string;
@@ -5923,10 +5998,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
5923
5998
  updated_at: string;
5924
5999
  };
5925
6000
  Insert: {
5926
- access_token?: string | null;
5927
6001
  api_key: string;
5928
- client_id: string;
5929
- client_secret: string;
5930
6002
  created_at?: string;
5931
6003
  customers_endpoint?: string | null;
5932
6004
  environment: string;
@@ -5941,10 +6013,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
5941
6013
  updated_at?: string;
5942
6014
  };
5943
6015
  Update: {
5944
- access_token?: string | null;
5945
6016
  api_key?: string;
5946
- client_id?: string;
5947
- client_secret?: string;
5948
6017
  created_at?: string;
5949
6018
  customers_endpoint?: string | null;
5950
6019
  environment?: string;
@@ -13577,6 +13646,39 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13577
13646
  };
13578
13647
  Relationships: [];
13579
13648
  };
13649
+ print_dedupe_events: {
13650
+ Row: {
13651
+ bestaande_job_id: string | null;
13652
+ created_at: string;
13653
+ detail: string | null;
13654
+ documentnaam: string | null;
13655
+ documenttype: string | null;
13656
+ id: string;
13657
+ idempotentie_sleutel: string;
13658
+ reden: string;
13659
+ };
13660
+ Insert: {
13661
+ bestaande_job_id?: string | null;
13662
+ created_at?: string;
13663
+ detail?: string | null;
13664
+ documentnaam?: string | null;
13665
+ documenttype?: string | null;
13666
+ id?: string;
13667
+ idempotentie_sleutel: string;
13668
+ reden: string;
13669
+ };
13670
+ Update: {
13671
+ bestaande_job_id?: string | null;
13672
+ created_at?: string;
13673
+ detail?: string | null;
13674
+ documentnaam?: string | null;
13675
+ documenttype?: string | null;
13676
+ id?: string;
13677
+ idempotentie_sleutel?: string;
13678
+ reden?: string;
13679
+ };
13680
+ Relationships: [];
13681
+ };
13580
13682
  print_job_logs: {
13581
13683
  Row: {
13582
13684
  created_at: string;
@@ -13627,6 +13729,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13627
13729
  is_herprint: boolean;
13628
13730
  kopieen: number;
13629
13731
  layout_id: string | null;
13732
+ lokaal_opgeslagen_op: string | null;
13733
+ lokale_pdf_fout: string | null;
13734
+ lokale_pdf_status: string | null;
13630
13735
  opgepakt_op: string | null;
13631
13736
  paginas: number;
13632
13737
  payload: import("../integrations/supabase/types").Json;
@@ -13635,6 +13740,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13635
13740
  pogingen: number;
13636
13741
  printer_id: string | null;
13637
13742
  render_html: string | null;
13743
+ resultaat_pdf_base64: string | null;
13638
13744
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13639
13745
  updated_at: string;
13640
13746
  volgende_poging: string | null;
@@ -13659,6 +13765,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13659
13765
  is_herprint?: boolean;
13660
13766
  kopieen?: number;
13661
13767
  layout_id?: string | null;
13768
+ lokaal_opgeslagen_op?: string | null;
13769
+ lokale_pdf_fout?: string | null;
13770
+ lokale_pdf_status?: string | null;
13662
13771
  opgepakt_op?: string | null;
13663
13772
  paginas?: number;
13664
13773
  payload?: import("../integrations/supabase/types").Json;
@@ -13667,6 +13776,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13667
13776
  pogingen?: number;
13668
13777
  printer_id?: string | null;
13669
13778
  render_html?: string | null;
13779
+ resultaat_pdf_base64?: string | null;
13670
13780
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13671
13781
  updated_at?: string;
13672
13782
  volgende_poging?: string | null;
@@ -13691,6 +13801,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13691
13801
  is_herprint?: boolean;
13692
13802
  kopieen?: number;
13693
13803
  layout_id?: string | null;
13804
+ lokaal_opgeslagen_op?: string | null;
13805
+ lokale_pdf_fout?: string | null;
13806
+ lokale_pdf_status?: string | null;
13694
13807
  opgepakt_op?: string | null;
13695
13808
  paginas?: number;
13696
13809
  payload?: import("../integrations/supabase/types").Json;
@@ -13699,6 +13812,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13699
13812
  pogingen?: number;
13700
13813
  printer_id?: string | null;
13701
13814
  render_html?: string | null;
13815
+ resultaat_pdf_base64?: string | null;
13702
13816
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13703
13817
  updated_at?: string;
13704
13818
  volgende_poging?: string | null;
@@ -13817,6 +13931,39 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13817
13931
  };
13818
13932
  Relationships: [];
13819
13933
  };
13934
+ print_preview_events: {
13935
+ Row: {
13936
+ code: string | null;
13937
+ created_at: string;
13938
+ detail: import("../integrations/supabase/types").Json;
13939
+ id: string;
13940
+ queue_item_id: string | null;
13941
+ reden: string | null;
13942
+ station_slug: string | null;
13943
+ uitkomst: string;
13944
+ };
13945
+ Insert: {
13946
+ code?: string | null;
13947
+ created_at?: string;
13948
+ detail?: import("../integrations/supabase/types").Json;
13949
+ id?: string;
13950
+ queue_item_id?: string | null;
13951
+ reden?: string | null;
13952
+ station_slug?: string | null;
13953
+ uitkomst?: string;
13954
+ };
13955
+ Update: {
13956
+ code?: string | null;
13957
+ created_at?: string;
13958
+ detail?: import("../integrations/supabase/types").Json;
13959
+ id?: string;
13960
+ queue_item_id?: string | null;
13961
+ reden?: string | null;
13962
+ station_slug?: string | null;
13963
+ uitkomst?: string;
13964
+ };
13965
+ Relationships: [];
13966
+ };
13820
13967
  print_queue_runners: {
13821
13968
  Row: {
13822
13969
  actief: boolean;
@@ -14056,6 +14203,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
14056
14203
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14057
14204
  online: boolean;
14058
14205
  papierformaat: string;
14206
+ pdf_map: string | null;
14059
14207
  poort: number | null;
14060
14208
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14061
14209
  systeemnaam: string;
@@ -14081,6 +14229,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
14081
14229
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14082
14230
  online?: boolean;
14083
14231
  papierformaat?: string;
14232
+ pdf_map?: string | null;
14084
14233
  poort?: number | null;
14085
14234
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14086
14235
  systeemnaam?: string;
@@ -14106,6 +14255,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
14106
14255
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14107
14256
  online?: boolean;
14108
14257
  papierformaat?: string;
14258
+ pdf_map?: string | null;
14109
14259
  poort?: number | null;
14110
14260
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14111
14261
  systeemnaam?: string;
@@ -20362,6 +20512,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20362
20512
  is_herprint: boolean;
20363
20513
  kopieen: number;
20364
20514
  layout_id: string | null;
20515
+ lokaal_opgeslagen_op: string | null;
20516
+ lokale_pdf_fout: string | null;
20517
+ lokale_pdf_status: string | null;
20365
20518
  opgepakt_op: string | null;
20366
20519
  paginas: number;
20367
20520
  payload: import("../integrations/supabase/types").Json;
@@ -20370,6 +20523,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20370
20523
  pogingen: number;
20371
20524
  printer_id: string | null;
20372
20525
  render_html: string | null;
20526
+ resultaat_pdf_base64: string | null;
20373
20527
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20374
20528
  updated_at: string;
20375
20529
  volgende_poging: string | null;
@@ -20461,6 +20615,53 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20461
20615
  isSetofReturn: true;
20462
20616
  };
20463
20617
  };
20618
+ claim_pdf_print_jobs: {
20619
+ Args: {
20620
+ _max?: number;
20621
+ };
20622
+ Returns: {
20623
+ agent_id: string | null;
20624
+ bron_job_id: string | null;
20625
+ created_at: string;
20626
+ documentnaam: string;
20627
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20628
+ extern_job_id: string | null;
20629
+ foutmelding: string | null;
20630
+ gebruiker_id: string | null;
20631
+ gebruiker_naam: string;
20632
+ gebruikte_bron: string | null;
20633
+ gebruikte_layout_id: string | null;
20634
+ gestart_op: string | null;
20635
+ herkomst: string | null;
20636
+ id: string;
20637
+ idempotentie_sleutel: string | null;
20638
+ is_herprint: boolean;
20639
+ kopieen: number;
20640
+ layout_id: string | null;
20641
+ lokaal_opgeslagen_op: string | null;
20642
+ lokale_pdf_fout: string | null;
20643
+ lokale_pdf_status: string | null;
20644
+ opgepakt_op: string | null;
20645
+ paginas: number;
20646
+ payload: import("../integrations/supabase/types").Json;
20647
+ pdf_base64: string | null;
20648
+ pdf_url: string | null;
20649
+ pogingen: number;
20650
+ printer_id: string | null;
20651
+ render_html: string | null;
20652
+ resultaat_pdf_base64: string | null;
20653
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20654
+ updated_at: string;
20655
+ volgende_poging: string | null;
20656
+ voltooid_op: string | null;
20657
+ }[];
20658
+ SetofOptions: {
20659
+ from: "*";
20660
+ to: "print_jobs";
20661
+ isOneToOne: false;
20662
+ isSetofReturn: true;
20663
+ };
20664
+ };
20464
20665
  claim_print_jobs: {
20465
20666
  Args: {
20466
20667
  _agent_id: string;
@@ -20485,6 +20686,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20485
20686
  is_herprint: boolean;
20486
20687
  kopieen: number;
20487
20688
  layout_id: string | null;
20689
+ lokaal_opgeslagen_op: string | null;
20690
+ lokale_pdf_fout: string | null;
20691
+ lokale_pdf_status: string | null;
20488
20692
  opgepakt_op: string | null;
20489
20693
  paginas: number;
20490
20694
  payload: import("../integrations/supabase/types").Json;
@@ -20493,6 +20697,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20493
20697
  pogingen: number;
20494
20698
  printer_id: string | null;
20495
20699
  render_html: string | null;
20700
+ resultaat_pdf_base64: string | null;
20496
20701
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20497
20702
  updated_at: string;
20498
20703
  volgende_poging: string | null;
@@ -20633,6 +20838,8 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20633
20838
  order_id: string;
20634
20839
  order_source: string;
20635
20840
  pick_date: string;
20841
+ printed_at: string;
20842
+ printed_today: boolean;
20636
20843
  status: string;
20637
20844
  }[];
20638
20845
  };
@@ -21341,6 +21548,10 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21341
21548
  };
21342
21549
  Returns: number;
21343
21550
  };
21551
+ logistics_cancel_orphan_tasks: {
21552
+ Args: never;
21553
+ Returns: number;
21554
+ };
21344
21555
  logistics_capacity_day_check: {
21345
21556
  Args: {
21346
21557
  p_from?: string;
@@ -21361,6 +21572,25 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21361
21572
  };
21362
21573
  Returns: number;
21363
21574
  };
21575
+ logistics_cart_index: {
21576
+ Args: {
21577
+ p_from?: string;
21578
+ p_to?: string;
21579
+ };
21580
+ Returns: {
21581
+ cart_id: string;
21582
+ cart_index: number;
21583
+ cart_label: string;
21584
+ is_shared: boolean;
21585
+ order_number: string;
21586
+ order_source: string;
21587
+ order_uuid: string;
21588
+ pick_date: string;
21589
+ printed_at: string;
21590
+ shifted: boolean;
21591
+ task_status: string;
21592
+ }[];
21593
+ };
21364
21594
  logistics_check_order_allowed: {
21365
21595
  Args: {
21366
21596
  p_lines: import("../integrations/supabase/types").Json;
@@ -21509,6 +21739,17 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21509
21739
  isSetofReturn: false;
21510
21740
  };
21511
21741
  };
21742
+ logistics_consistency_check: {
21743
+ Args: never;
21744
+ Returns: {
21745
+ agenda_carts: number;
21746
+ control_carts: number;
21747
+ ok: boolean;
21748
+ orphan_tasks: number;
21749
+ pick_date: string;
21750
+ raw_carts: number;
21751
+ }[];
21752
+ };
21512
21753
  logistics_delay_customer_email: {
21513
21754
  Args: {
21514
21755
  p_customer: string;
@@ -21598,6 +21839,16 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21598
21839
  isSetofReturn: false;
21599
21840
  };
21600
21841
  };
21842
+ logistics_floriday_cart_plan: {
21843
+ Args: {
21844
+ p_order_id: string;
21845
+ };
21846
+ Returns: {
21847
+ carrier_type: string;
21848
+ idx: number;
21849
+ packages: number;
21850
+ }[];
21851
+ };
21601
21852
  logistics_floriday_claim_pushes: {
21602
21853
  Args: {
21603
21854
  _lease_seconds?: number;
@@ -21702,6 +21953,25 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21702
21953
  };
21703
21954
  Returns: number;
21704
21955
  };
21956
+ logistics_order_overview: {
21957
+ Args: {
21958
+ p_from?: string;
21959
+ p_to?: string;
21960
+ };
21961
+ Returns: {
21962
+ cart_count: number;
21963
+ customer_name: string;
21964
+ delivery_date: string;
21965
+ order_number: string;
21966
+ order_source: string;
21967
+ order_uuid: string;
21968
+ pick_date: string;
21969
+ plant_count: number;
21970
+ printed_at: string;
21971
+ shifted: boolean;
21972
+ status: string;
21973
+ }[];
21974
+ };
21705
21975
  logistics_order_pick_day: {
21706
21976
  Args: {
21707
21977
  p_order_ref: string;
@@ -21714,6 +21984,22 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21714
21984
  };
21715
21985
  Returns: string;
21716
21986
  };
21987
+ logistics_pick_agenda: {
21988
+ Args: {
21989
+ p_from?: string;
21990
+ p_to?: string;
21991
+ };
21992
+ Returns: {
21993
+ cart_count: number;
21994
+ in_preparation: number;
21995
+ order_count: number;
21996
+ orders: import("../integrations/supabase/types").Json;
21997
+ pick_date: string;
21998
+ plant_count: number;
21999
+ ready: number;
22000
+ shifted_count: number;
22001
+ }[];
22002
+ };
21717
22003
  logistics_pick_email_purpose: {
21718
22004
  Args: never;
21719
22005
  Returns: string;
@@ -21768,6 +22054,13 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21768
22054
  };
21769
22055
  Returns: undefined;
21770
22056
  };
22057
+ logistics_plan_floriday_order: {
22058
+ Args: {
22059
+ p_buffer_id?: string;
22060
+ p_order_id: string;
22061
+ };
22062
+ Returns: number;
22063
+ };
21771
22064
  logistics_plan_impact_orders: {
21772
22065
  Args: {
21773
22066
  p_order_id: string;
@@ -21873,6 +22166,15 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21873
22166
  };
21874
22167
  Returns: import("../integrations/supabase/types").Json;
21875
22168
  };
22169
+ logistics_resolve_pick_document: {
22170
+ Args: {
22171
+ _is_herprint: boolean;
22172
+ _queue_item_id: string;
22173
+ _session_id: string;
22174
+ _voorbeeld: boolean;
22175
+ };
22176
+ Returns: import("../integrations/supabase/types").Json;
22177
+ };
21876
22178
  logistics_resolve_settings: {
21877
22179
  Args: {
21878
22180
  p_config_id: string;
@@ -22313,6 +22615,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22313
22615
  };
22314
22616
  pick_enqueue_print_job: {
22315
22617
  Args: {
22618
+ _is_herprint?: boolean;
22316
22619
  _printer_id?: string;
22317
22620
  _queue_item_id: string;
22318
22621
  _session_id?: string;
@@ -22326,6 +22629,13 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22326
22629
  };
22327
22630
  Returns: import("../integrations/supabase/types").Json;
22328
22631
  };
22632
+ pick_preview_job: {
22633
+ Args: {
22634
+ _queue_item_id: string;
22635
+ _station_slug: string;
22636
+ };
22637
+ Returns: import("../integrations/supabase/types").Json;
22638
+ };
22329
22639
  pick_print_job_status: {
22330
22640
  Args: {
22331
22641
  _job_id: string;
@@ -22503,6 +22813,24 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22503
22813
  };
22504
22814
  Returns: undefined;
22505
22815
  };
22816
+ print_preview_toestaan: {
22817
+ Args: {
22818
+ _max?: number;
22819
+ _queue_item_id: string;
22820
+ _station_slug: string;
22821
+ _venster_sec?: number;
22822
+ };
22823
+ Returns: import("../integrations/supabase/types").Json;
22824
+ };
22825
+ print_preview_weiger: {
22826
+ Args: {
22827
+ _code: string;
22828
+ _queue_item_id: string;
22829
+ _reden: string;
22830
+ _station_slug: string;
22831
+ };
22832
+ Returns: undefined;
22833
+ };
22506
22834
  process_logistics_event: {
22507
22835
  Args: {
22508
22836
  p_event_id: string;
@@ -22657,6 +22985,12 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22657
22985
  };
22658
22986
  Returns: string;
22659
22987
  };
22988
+ resolve_print_job_printer_id: {
22989
+ Args: {
22990
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
22991
+ };
22992
+ Returns: string;
22993
+ };
22660
22994
  resolve_product_id_for_item: {
22661
22995
  Args: {
22662
22996
  p_product_name: string;
@@ -23248,7 +23582,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
23248
23582
  };
23249
23583
  CompositeTypes: { [_ in never]: never; };
23250
23584
  }, {
23251
- PostgrestVersion: "14.17";
23585
+ PostgrestVersion: "14.5";
23252
23586
  }>;
23253
23587
  userId: string;
23254
23588
  claims: import("@supabase/auth-js").User;
@@ -26106,6 +26440,84 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
26106
26440
  };
26107
26441
  Relationships: [];
26108
26442
  };
26443
+ delivery_notes: {
26444
+ Row: {
26445
+ byte_size: number | null;
26446
+ connection_id: string | null;
26447
+ content_type: string;
26448
+ created_at: string;
26449
+ error_message: string | null;
26450
+ fetched_at: string | null;
26451
+ fulfillment_order_id: string | null;
26452
+ http_status: number | null;
26453
+ id: string;
26454
+ label_code: string | null;
26455
+ letter: string | null;
26456
+ load_carrier_index: number | null;
26457
+ load_carrier_type: string | null;
26458
+ order_id: string | null;
26459
+ order_number: string | null;
26460
+ packages: number | null;
26461
+ source: string;
26462
+ status: string;
26463
+ storage_bucket: string;
26464
+ storage_path: string | null;
26465
+ updated_at: string;
26466
+ };
26467
+ Insert: {
26468
+ byte_size?: number | null;
26469
+ connection_id?: string | null;
26470
+ content_type?: string;
26471
+ created_at?: string;
26472
+ error_message?: string | null;
26473
+ fetched_at?: string | null;
26474
+ fulfillment_order_id?: string | null;
26475
+ http_status?: number | null;
26476
+ id?: string;
26477
+ label_code?: string | null;
26478
+ letter?: string | null;
26479
+ load_carrier_index?: number | null;
26480
+ load_carrier_type?: string | null;
26481
+ order_id?: string | null;
26482
+ order_number?: string | null;
26483
+ packages?: number | null;
26484
+ source?: string;
26485
+ status?: string;
26486
+ storage_bucket?: string;
26487
+ storage_path?: string | null;
26488
+ updated_at?: string;
26489
+ };
26490
+ Update: {
26491
+ byte_size?: number | null;
26492
+ connection_id?: string | null;
26493
+ content_type?: string;
26494
+ created_at?: string;
26495
+ error_message?: string | null;
26496
+ fetched_at?: string | null;
26497
+ fulfillment_order_id?: string | null;
26498
+ http_status?: number | null;
26499
+ id?: string;
26500
+ label_code?: string | null;
26501
+ letter?: string | null;
26502
+ load_carrier_index?: number | null;
26503
+ load_carrier_type?: string | null;
26504
+ order_id?: string | null;
26505
+ order_number?: string | null;
26506
+ packages?: number | null;
26507
+ source?: string;
26508
+ status?: string;
26509
+ storage_bucket?: string;
26510
+ storage_path?: string | null;
26511
+ updated_at?: string;
26512
+ };
26513
+ Relationships: [{
26514
+ foreignKeyName: "delivery_notes_order_id_fkey";
26515
+ columns: ["order_id"];
26516
+ isOneToOne: false;
26517
+ referencedRelation: "orders";
26518
+ referencedColumns: ["id"];
26519
+ }];
26520
+ };
26109
26521
  document_bronregels: {
26110
26522
  Row: {
26111
26523
  bron: string;
@@ -29159,10 +29571,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29159
29571
  };
29160
29572
  floriday_connections: {
29161
29573
  Row: {
29162
- access_token: string | null;
29163
29574
  api_key: string;
29164
- client_id: string;
29165
- client_secret: string;
29166
29575
  created_at: string;
29167
29576
  customers_endpoint: string | null;
29168
29577
  environment: string;
@@ -29177,10 +29586,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29177
29586
  updated_at: string;
29178
29587
  };
29179
29588
  Insert: {
29180
- access_token?: string | null;
29181
29589
  api_key: string;
29182
- client_id: string;
29183
- client_secret: string;
29184
29590
  created_at?: string;
29185
29591
  customers_endpoint?: string | null;
29186
29592
  environment: string;
@@ -29195,10 +29601,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29195
29601
  updated_at?: string;
29196
29602
  };
29197
29603
  Update: {
29198
- access_token?: string | null;
29199
29604
  api_key?: string;
29200
- client_id?: string;
29201
- client_secret?: string;
29202
29605
  created_at?: string;
29203
29606
  customers_endpoint?: string | null;
29204
29607
  environment?: string;
@@ -36831,6 +37234,39 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36831
37234
  };
36832
37235
  Relationships: [];
36833
37236
  };
37237
+ print_dedupe_events: {
37238
+ Row: {
37239
+ bestaande_job_id: string | null;
37240
+ created_at: string;
37241
+ detail: string | null;
37242
+ documentnaam: string | null;
37243
+ documenttype: string | null;
37244
+ id: string;
37245
+ idempotentie_sleutel: string;
37246
+ reden: string;
37247
+ };
37248
+ Insert: {
37249
+ bestaande_job_id?: string | null;
37250
+ created_at?: string;
37251
+ detail?: string | null;
37252
+ documentnaam?: string | null;
37253
+ documenttype?: string | null;
37254
+ id?: string;
37255
+ idempotentie_sleutel: string;
37256
+ reden: string;
37257
+ };
37258
+ Update: {
37259
+ bestaande_job_id?: string | null;
37260
+ created_at?: string;
37261
+ detail?: string | null;
37262
+ documentnaam?: string | null;
37263
+ documenttype?: string | null;
37264
+ id?: string;
37265
+ idempotentie_sleutel?: string;
37266
+ reden?: string;
37267
+ };
37268
+ Relationships: [];
37269
+ };
36834
37270
  print_job_logs: {
36835
37271
  Row: {
36836
37272
  created_at: string;
@@ -36881,6 +37317,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36881
37317
  is_herprint: boolean;
36882
37318
  kopieen: number;
36883
37319
  layout_id: string | null;
37320
+ lokaal_opgeslagen_op: string | null;
37321
+ lokale_pdf_fout: string | null;
37322
+ lokale_pdf_status: string | null;
36884
37323
  opgepakt_op: string | null;
36885
37324
  paginas: number;
36886
37325
  payload: import("../integrations/supabase/types").Json;
@@ -36889,6 +37328,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36889
37328
  pogingen: number;
36890
37329
  printer_id: string | null;
36891
37330
  render_html: string | null;
37331
+ resultaat_pdf_base64: string | null;
36892
37332
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36893
37333
  updated_at: string;
36894
37334
  volgende_poging: string | null;
@@ -36913,6 +37353,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36913
37353
  is_herprint?: boolean;
36914
37354
  kopieen?: number;
36915
37355
  layout_id?: string | null;
37356
+ lokaal_opgeslagen_op?: string | null;
37357
+ lokale_pdf_fout?: string | null;
37358
+ lokale_pdf_status?: string | null;
36916
37359
  opgepakt_op?: string | null;
36917
37360
  paginas?: number;
36918
37361
  payload?: import("../integrations/supabase/types").Json;
@@ -36921,6 +37364,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36921
37364
  pogingen?: number;
36922
37365
  printer_id?: string | null;
36923
37366
  render_html?: string | null;
37367
+ resultaat_pdf_base64?: string | null;
36924
37368
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36925
37369
  updated_at?: string;
36926
37370
  volgende_poging?: string | null;
@@ -36945,6 +37389,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36945
37389
  is_herprint?: boolean;
36946
37390
  kopieen?: number;
36947
37391
  layout_id?: string | null;
37392
+ lokaal_opgeslagen_op?: string | null;
37393
+ lokale_pdf_fout?: string | null;
37394
+ lokale_pdf_status?: string | null;
36948
37395
  opgepakt_op?: string | null;
36949
37396
  paginas?: number;
36950
37397
  payload?: import("../integrations/supabase/types").Json;
@@ -36953,6 +37400,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36953
37400
  pogingen?: number;
36954
37401
  printer_id?: string | null;
36955
37402
  render_html?: string | null;
37403
+ resultaat_pdf_base64?: string | null;
36956
37404
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36957
37405
  updated_at?: string;
36958
37406
  volgende_poging?: string | null;
@@ -37071,6 +37519,39 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
37071
37519
  };
37072
37520
  Relationships: [];
37073
37521
  };
37522
+ print_preview_events: {
37523
+ Row: {
37524
+ code: string | null;
37525
+ created_at: string;
37526
+ detail: import("../integrations/supabase/types").Json;
37527
+ id: string;
37528
+ queue_item_id: string | null;
37529
+ reden: string | null;
37530
+ station_slug: string | null;
37531
+ uitkomst: string;
37532
+ };
37533
+ Insert: {
37534
+ code?: string | null;
37535
+ created_at?: string;
37536
+ detail?: import("../integrations/supabase/types").Json;
37537
+ id?: string;
37538
+ queue_item_id?: string | null;
37539
+ reden?: string | null;
37540
+ station_slug?: string | null;
37541
+ uitkomst?: string;
37542
+ };
37543
+ Update: {
37544
+ code?: string | null;
37545
+ created_at?: string;
37546
+ detail?: import("../integrations/supabase/types").Json;
37547
+ id?: string;
37548
+ queue_item_id?: string | null;
37549
+ reden?: string | null;
37550
+ station_slug?: string | null;
37551
+ uitkomst?: string;
37552
+ };
37553
+ Relationships: [];
37554
+ };
37074
37555
  print_queue_runners: {
37075
37556
  Row: {
37076
37557
  actief: boolean;
@@ -37310,6 +37791,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
37310
37791
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37311
37792
  online: boolean;
37312
37793
  papierformaat: string;
37794
+ pdf_map: string | null;
37313
37795
  poort: number | null;
37314
37796
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37315
37797
  systeemnaam: string;
@@ -37335,6 +37817,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
37335
37817
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37336
37818
  online?: boolean;
37337
37819
  papierformaat?: string;
37820
+ pdf_map?: string | null;
37338
37821
  poort?: number | null;
37339
37822
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37340
37823
  systeemnaam?: string;
@@ -37360,6 +37843,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
37360
37843
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37361
37844
  online?: boolean;
37362
37845
  papierformaat?: string;
37846
+ pdf_map?: string | null;
37363
37847
  poort?: number | null;
37364
37848
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37365
37849
  systeemnaam?: string;
@@ -43616,6 +44100,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43616
44100
  is_herprint: boolean;
43617
44101
  kopieen: number;
43618
44102
  layout_id: string | null;
44103
+ lokaal_opgeslagen_op: string | null;
44104
+ lokale_pdf_fout: string | null;
44105
+ lokale_pdf_status: string | null;
43619
44106
  opgepakt_op: string | null;
43620
44107
  paginas: number;
43621
44108
  payload: import("../integrations/supabase/types").Json;
@@ -43624,6 +44111,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43624
44111
  pogingen: number;
43625
44112
  printer_id: string | null;
43626
44113
  render_html: string | null;
44114
+ resultaat_pdf_base64: string | null;
43627
44115
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43628
44116
  updated_at: string;
43629
44117
  volgende_poging: string | null;
@@ -43715,6 +44203,53 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43715
44203
  isSetofReturn: true;
43716
44204
  };
43717
44205
  };
44206
+ claim_pdf_print_jobs: {
44207
+ Args: {
44208
+ _max?: number;
44209
+ };
44210
+ Returns: {
44211
+ agent_id: string | null;
44212
+ bron_job_id: string | null;
44213
+ created_at: string;
44214
+ documentnaam: string;
44215
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44216
+ extern_job_id: string | null;
44217
+ foutmelding: string | null;
44218
+ gebruiker_id: string | null;
44219
+ gebruiker_naam: string;
44220
+ gebruikte_bron: string | null;
44221
+ gebruikte_layout_id: string | null;
44222
+ gestart_op: string | null;
44223
+ herkomst: string | null;
44224
+ id: string;
44225
+ idempotentie_sleutel: string | null;
44226
+ is_herprint: boolean;
44227
+ kopieen: number;
44228
+ layout_id: string | null;
44229
+ lokaal_opgeslagen_op: string | null;
44230
+ lokale_pdf_fout: string | null;
44231
+ lokale_pdf_status: string | null;
44232
+ opgepakt_op: string | null;
44233
+ paginas: number;
44234
+ payload: import("../integrations/supabase/types").Json;
44235
+ pdf_base64: string | null;
44236
+ pdf_url: string | null;
44237
+ pogingen: number;
44238
+ printer_id: string | null;
44239
+ render_html: string | null;
44240
+ resultaat_pdf_base64: string | null;
44241
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44242
+ updated_at: string;
44243
+ volgende_poging: string | null;
44244
+ voltooid_op: string | null;
44245
+ }[];
44246
+ SetofOptions: {
44247
+ from: "*";
44248
+ to: "print_jobs";
44249
+ isOneToOne: false;
44250
+ isSetofReturn: true;
44251
+ };
44252
+ };
43718
44253
  claim_print_jobs: {
43719
44254
  Args: {
43720
44255
  _agent_id: string;
@@ -43739,6 +44274,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43739
44274
  is_herprint: boolean;
43740
44275
  kopieen: number;
43741
44276
  layout_id: string | null;
44277
+ lokaal_opgeslagen_op: string | null;
44278
+ lokale_pdf_fout: string | null;
44279
+ lokale_pdf_status: string | null;
43742
44280
  opgepakt_op: string | null;
43743
44281
  paginas: number;
43744
44282
  payload: import("../integrations/supabase/types").Json;
@@ -43747,6 +44285,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43747
44285
  pogingen: number;
43748
44286
  printer_id: string | null;
43749
44287
  render_html: string | null;
44288
+ resultaat_pdf_base64: string | null;
43750
44289
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43751
44290
  updated_at: string;
43752
44291
  volgende_poging: string | null;
@@ -43887,6 +44426,8 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43887
44426
  order_id: string;
43888
44427
  order_source: string;
43889
44428
  pick_date: string;
44429
+ printed_at: string;
44430
+ printed_today: boolean;
43890
44431
  status: string;
43891
44432
  }[];
43892
44433
  };
@@ -44595,6 +45136,10 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44595
45136
  };
44596
45137
  Returns: number;
44597
45138
  };
45139
+ logistics_cancel_orphan_tasks: {
45140
+ Args: never;
45141
+ Returns: number;
45142
+ };
44598
45143
  logistics_capacity_day_check: {
44599
45144
  Args: {
44600
45145
  p_from?: string;
@@ -44615,6 +45160,25 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44615
45160
  };
44616
45161
  Returns: number;
44617
45162
  };
45163
+ logistics_cart_index: {
45164
+ Args: {
45165
+ p_from?: string;
45166
+ p_to?: string;
45167
+ };
45168
+ Returns: {
45169
+ cart_id: string;
45170
+ cart_index: number;
45171
+ cart_label: string;
45172
+ is_shared: boolean;
45173
+ order_number: string;
45174
+ order_source: string;
45175
+ order_uuid: string;
45176
+ pick_date: string;
45177
+ printed_at: string;
45178
+ shifted: boolean;
45179
+ task_status: string;
45180
+ }[];
45181
+ };
44618
45182
  logistics_check_order_allowed: {
44619
45183
  Args: {
44620
45184
  p_lines: import("../integrations/supabase/types").Json;
@@ -44763,6 +45327,17 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44763
45327
  isSetofReturn: false;
44764
45328
  };
44765
45329
  };
45330
+ logistics_consistency_check: {
45331
+ Args: never;
45332
+ Returns: {
45333
+ agenda_carts: number;
45334
+ control_carts: number;
45335
+ ok: boolean;
45336
+ orphan_tasks: number;
45337
+ pick_date: string;
45338
+ raw_carts: number;
45339
+ }[];
45340
+ };
44766
45341
  logistics_delay_customer_email: {
44767
45342
  Args: {
44768
45343
  p_customer: string;
@@ -44852,6 +45427,16 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44852
45427
  isSetofReturn: false;
44853
45428
  };
44854
45429
  };
45430
+ logistics_floriday_cart_plan: {
45431
+ Args: {
45432
+ p_order_id: string;
45433
+ };
45434
+ Returns: {
45435
+ carrier_type: string;
45436
+ idx: number;
45437
+ packages: number;
45438
+ }[];
45439
+ };
44855
45440
  logistics_floriday_claim_pushes: {
44856
45441
  Args: {
44857
45442
  _lease_seconds?: number;
@@ -44956,6 +45541,25 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44956
45541
  };
44957
45542
  Returns: number;
44958
45543
  };
45544
+ logistics_order_overview: {
45545
+ Args: {
45546
+ p_from?: string;
45547
+ p_to?: string;
45548
+ };
45549
+ Returns: {
45550
+ cart_count: number;
45551
+ customer_name: string;
45552
+ delivery_date: string;
45553
+ order_number: string;
45554
+ order_source: string;
45555
+ order_uuid: string;
45556
+ pick_date: string;
45557
+ plant_count: number;
45558
+ printed_at: string;
45559
+ shifted: boolean;
45560
+ status: string;
45561
+ }[];
45562
+ };
44959
45563
  logistics_order_pick_day: {
44960
45564
  Args: {
44961
45565
  p_order_ref: string;
@@ -44968,6 +45572,22 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44968
45572
  };
44969
45573
  Returns: string;
44970
45574
  };
45575
+ logistics_pick_agenda: {
45576
+ Args: {
45577
+ p_from?: string;
45578
+ p_to?: string;
45579
+ };
45580
+ Returns: {
45581
+ cart_count: number;
45582
+ in_preparation: number;
45583
+ order_count: number;
45584
+ orders: import("../integrations/supabase/types").Json;
45585
+ pick_date: string;
45586
+ plant_count: number;
45587
+ ready: number;
45588
+ shifted_count: number;
45589
+ }[];
45590
+ };
44971
45591
  logistics_pick_email_purpose: {
44972
45592
  Args: never;
44973
45593
  Returns: string;
@@ -45022,6 +45642,13 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45022
45642
  };
45023
45643
  Returns: undefined;
45024
45644
  };
45645
+ logistics_plan_floriday_order: {
45646
+ Args: {
45647
+ p_buffer_id?: string;
45648
+ p_order_id: string;
45649
+ };
45650
+ Returns: number;
45651
+ };
45025
45652
  logistics_plan_impact_orders: {
45026
45653
  Args: {
45027
45654
  p_order_id: string;
@@ -45127,6 +45754,15 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45127
45754
  };
45128
45755
  Returns: import("../integrations/supabase/types").Json;
45129
45756
  };
45757
+ logistics_resolve_pick_document: {
45758
+ Args: {
45759
+ _is_herprint: boolean;
45760
+ _queue_item_id: string;
45761
+ _session_id: string;
45762
+ _voorbeeld: boolean;
45763
+ };
45764
+ Returns: import("../integrations/supabase/types").Json;
45765
+ };
45130
45766
  logistics_resolve_settings: {
45131
45767
  Args: {
45132
45768
  p_config_id: string;
@@ -45567,6 +46203,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45567
46203
  };
45568
46204
  pick_enqueue_print_job: {
45569
46205
  Args: {
46206
+ _is_herprint?: boolean;
45570
46207
  _printer_id?: string;
45571
46208
  _queue_item_id: string;
45572
46209
  _session_id?: string;
@@ -45580,6 +46217,13 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45580
46217
  };
45581
46218
  Returns: import("../integrations/supabase/types").Json;
45582
46219
  };
46220
+ pick_preview_job: {
46221
+ Args: {
46222
+ _queue_item_id: string;
46223
+ _station_slug: string;
46224
+ };
46225
+ Returns: import("../integrations/supabase/types").Json;
46226
+ };
45583
46227
  pick_print_job_status: {
45584
46228
  Args: {
45585
46229
  _job_id: string;
@@ -45757,6 +46401,24 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45757
46401
  };
45758
46402
  Returns: undefined;
45759
46403
  };
46404
+ print_preview_toestaan: {
46405
+ Args: {
46406
+ _max?: number;
46407
+ _queue_item_id: string;
46408
+ _station_slug: string;
46409
+ _venster_sec?: number;
46410
+ };
46411
+ Returns: import("../integrations/supabase/types").Json;
46412
+ };
46413
+ print_preview_weiger: {
46414
+ Args: {
46415
+ _code: string;
46416
+ _queue_item_id: string;
46417
+ _reden: string;
46418
+ _station_slug: string;
46419
+ };
46420
+ Returns: undefined;
46421
+ };
45760
46422
  process_logistics_event: {
45761
46423
  Args: {
45762
46424
  p_event_id: string;
@@ -45911,6 +46573,12 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45911
46573
  };
45912
46574
  Returns: string;
45913
46575
  };
46576
+ resolve_print_job_printer_id: {
46577
+ Args: {
46578
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
46579
+ };
46580
+ Returns: string;
46581
+ };
45914
46582
  resolve_product_id_for_item: {
45915
46583
  Args: {
45916
46584
  p_product_name: string;
@@ -46502,7 +47170,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
46502
47170
  };
46503
47171
  CompositeTypes: { [_ in never]: never; };
46504
47172
  }, {
46505
- PostgrestVersion: "14.17";
47173
+ PostgrestVersion: "14.5";
46506
47174
  }>;
46507
47175
  userId: string;
46508
47176
  claims: import("@supabase/auth-js").User;
@@ -49373,6 +50041,84 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
49373
50041
  };
49374
50042
  Relationships: [];
49375
50043
  };
50044
+ delivery_notes: {
50045
+ Row: {
50046
+ byte_size: number | null;
50047
+ connection_id: string | null;
50048
+ content_type: string;
50049
+ created_at: string;
50050
+ error_message: string | null;
50051
+ fetched_at: string | null;
50052
+ fulfillment_order_id: string | null;
50053
+ http_status: number | null;
50054
+ id: string;
50055
+ label_code: string | null;
50056
+ letter: string | null;
50057
+ load_carrier_index: number | null;
50058
+ load_carrier_type: string | null;
50059
+ order_id: string | null;
50060
+ order_number: string | null;
50061
+ packages: number | null;
50062
+ source: string;
50063
+ status: string;
50064
+ storage_bucket: string;
50065
+ storage_path: string | null;
50066
+ updated_at: string;
50067
+ };
50068
+ Insert: {
50069
+ byte_size?: number | null;
50070
+ connection_id?: string | null;
50071
+ content_type?: string;
50072
+ created_at?: string;
50073
+ error_message?: string | null;
50074
+ fetched_at?: string | null;
50075
+ fulfillment_order_id?: string | null;
50076
+ http_status?: number | null;
50077
+ id?: string;
50078
+ label_code?: string | null;
50079
+ letter?: string | null;
50080
+ load_carrier_index?: number | null;
50081
+ load_carrier_type?: string | null;
50082
+ order_id?: string | null;
50083
+ order_number?: string | null;
50084
+ packages?: number | null;
50085
+ source?: string;
50086
+ status?: string;
50087
+ storage_bucket?: string;
50088
+ storage_path?: string | null;
50089
+ updated_at?: string;
50090
+ };
50091
+ Update: {
50092
+ byte_size?: number | null;
50093
+ connection_id?: string | null;
50094
+ content_type?: string;
50095
+ created_at?: string;
50096
+ error_message?: string | null;
50097
+ fetched_at?: string | null;
50098
+ fulfillment_order_id?: string | null;
50099
+ http_status?: number | null;
50100
+ id?: string;
50101
+ label_code?: string | null;
50102
+ letter?: string | null;
50103
+ load_carrier_index?: number | null;
50104
+ load_carrier_type?: string | null;
50105
+ order_id?: string | null;
50106
+ order_number?: string | null;
50107
+ packages?: number | null;
50108
+ source?: string;
50109
+ status?: string;
50110
+ storage_bucket?: string;
50111
+ storage_path?: string | null;
50112
+ updated_at?: string;
50113
+ };
50114
+ Relationships: [{
50115
+ foreignKeyName: "delivery_notes_order_id_fkey";
50116
+ columns: ["order_id"];
50117
+ isOneToOne: false;
50118
+ referencedRelation: "orders";
50119
+ referencedColumns: ["id"];
50120
+ }];
50121
+ };
49376
50122
  document_bronregels: {
49377
50123
  Row: {
49378
50124
  bron: string;
@@ -52426,10 +53172,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
52426
53172
  };
52427
53173
  floriday_connections: {
52428
53174
  Row: {
52429
- access_token: string | null;
52430
53175
  api_key: string;
52431
- client_id: string;
52432
- client_secret: string;
52433
53176
  created_at: string;
52434
53177
  customers_endpoint: string | null;
52435
53178
  environment: string;
@@ -52444,10 +53187,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
52444
53187
  updated_at: string;
52445
53188
  };
52446
53189
  Insert: {
52447
- access_token?: string | null;
52448
53190
  api_key: string;
52449
- client_id: string;
52450
- client_secret: string;
52451
53191
  created_at?: string;
52452
53192
  customers_endpoint?: string | null;
52453
53193
  environment: string;
@@ -52462,10 +53202,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
52462
53202
  updated_at?: string;
52463
53203
  };
52464
53204
  Update: {
52465
- access_token?: string | null;
52466
53205
  api_key?: string;
52467
- client_id?: string;
52468
- client_secret?: string;
52469
53206
  created_at?: string;
52470
53207
  customers_endpoint?: string | null;
52471
53208
  environment?: string;
@@ -60098,6 +60835,39 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60098
60835
  };
60099
60836
  Relationships: [];
60100
60837
  };
60838
+ print_dedupe_events: {
60839
+ Row: {
60840
+ bestaande_job_id: string | null;
60841
+ created_at: string;
60842
+ detail: string | null;
60843
+ documentnaam: string | null;
60844
+ documenttype: string | null;
60845
+ id: string;
60846
+ idempotentie_sleutel: string;
60847
+ reden: string;
60848
+ };
60849
+ Insert: {
60850
+ bestaande_job_id?: string | null;
60851
+ created_at?: string;
60852
+ detail?: string | null;
60853
+ documentnaam?: string | null;
60854
+ documenttype?: string | null;
60855
+ id?: string;
60856
+ idempotentie_sleutel: string;
60857
+ reden: string;
60858
+ };
60859
+ Update: {
60860
+ bestaande_job_id?: string | null;
60861
+ created_at?: string;
60862
+ detail?: string | null;
60863
+ documentnaam?: string | null;
60864
+ documenttype?: string | null;
60865
+ id?: string;
60866
+ idempotentie_sleutel?: string;
60867
+ reden?: string;
60868
+ };
60869
+ Relationships: [];
60870
+ };
60101
60871
  print_job_logs: {
60102
60872
  Row: {
60103
60873
  created_at: string;
@@ -60148,6 +60918,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60148
60918
  is_herprint: boolean;
60149
60919
  kopieen: number;
60150
60920
  layout_id: string | null;
60921
+ lokaal_opgeslagen_op: string | null;
60922
+ lokale_pdf_fout: string | null;
60923
+ lokale_pdf_status: string | null;
60151
60924
  opgepakt_op: string | null;
60152
60925
  paginas: number;
60153
60926
  payload: import("../integrations/supabase/types").Json;
@@ -60156,6 +60929,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60156
60929
  pogingen: number;
60157
60930
  printer_id: string | null;
60158
60931
  render_html: string | null;
60932
+ resultaat_pdf_base64: string | null;
60159
60933
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60160
60934
  updated_at: string;
60161
60935
  volgende_poging: string | null;
@@ -60180,6 +60954,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60180
60954
  is_herprint?: boolean;
60181
60955
  kopieen?: number;
60182
60956
  layout_id?: string | null;
60957
+ lokaal_opgeslagen_op?: string | null;
60958
+ lokale_pdf_fout?: string | null;
60959
+ lokale_pdf_status?: string | null;
60183
60960
  opgepakt_op?: string | null;
60184
60961
  paginas?: number;
60185
60962
  payload?: import("../integrations/supabase/types").Json;
@@ -60188,6 +60965,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60188
60965
  pogingen?: number;
60189
60966
  printer_id?: string | null;
60190
60967
  render_html?: string | null;
60968
+ resultaat_pdf_base64?: string | null;
60191
60969
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60192
60970
  updated_at?: string;
60193
60971
  volgende_poging?: string | null;
@@ -60212,6 +60990,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60212
60990
  is_herprint?: boolean;
60213
60991
  kopieen?: number;
60214
60992
  layout_id?: string | null;
60993
+ lokaal_opgeslagen_op?: string | null;
60994
+ lokale_pdf_fout?: string | null;
60995
+ lokale_pdf_status?: string | null;
60215
60996
  opgepakt_op?: string | null;
60216
60997
  paginas?: number;
60217
60998
  payload?: import("../integrations/supabase/types").Json;
@@ -60220,6 +61001,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60220
61001
  pogingen?: number;
60221
61002
  printer_id?: string | null;
60222
61003
  render_html?: string | null;
61004
+ resultaat_pdf_base64?: string | null;
60223
61005
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60224
61006
  updated_at?: string;
60225
61007
  volgende_poging?: string | null;
@@ -60338,6 +61120,39 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60338
61120
  };
60339
61121
  Relationships: [];
60340
61122
  };
61123
+ print_preview_events: {
61124
+ Row: {
61125
+ code: string | null;
61126
+ created_at: string;
61127
+ detail: import("../integrations/supabase/types").Json;
61128
+ id: string;
61129
+ queue_item_id: string | null;
61130
+ reden: string | null;
61131
+ station_slug: string | null;
61132
+ uitkomst: string;
61133
+ };
61134
+ Insert: {
61135
+ code?: string | null;
61136
+ created_at?: string;
61137
+ detail?: import("../integrations/supabase/types").Json;
61138
+ id?: string;
61139
+ queue_item_id?: string | null;
61140
+ reden?: string | null;
61141
+ station_slug?: string | null;
61142
+ uitkomst?: string;
61143
+ };
61144
+ Update: {
61145
+ code?: string | null;
61146
+ created_at?: string;
61147
+ detail?: import("../integrations/supabase/types").Json;
61148
+ id?: string;
61149
+ queue_item_id?: string | null;
61150
+ reden?: string | null;
61151
+ station_slug?: string | null;
61152
+ uitkomst?: string;
61153
+ };
61154
+ Relationships: [];
61155
+ };
60341
61156
  print_queue_runners: {
60342
61157
  Row: {
60343
61158
  actief: boolean;
@@ -60577,6 +61392,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60577
61392
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
60578
61393
  online: boolean;
60579
61394
  papierformaat: string;
61395
+ pdf_map: string | null;
60580
61396
  poort: number | null;
60581
61397
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60582
61398
  systeemnaam: string;
@@ -60602,6 +61418,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60602
61418
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60603
61419
  online?: boolean;
60604
61420
  papierformaat?: string;
61421
+ pdf_map?: string | null;
60605
61422
  poort?: number | null;
60606
61423
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60607
61424
  systeemnaam?: string;
@@ -60627,6 +61444,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60627
61444
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60628
61445
  online?: boolean;
60629
61446
  papierformaat?: string;
61447
+ pdf_map?: string | null;
60630
61448
  poort?: number | null;
60631
61449
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60632
61450
  systeemnaam?: string;
@@ -66883,6 +67701,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
66883
67701
  is_herprint: boolean;
66884
67702
  kopieen: number;
66885
67703
  layout_id: string | null;
67704
+ lokaal_opgeslagen_op: string | null;
67705
+ lokale_pdf_fout: string | null;
67706
+ lokale_pdf_status: string | null;
66886
67707
  opgepakt_op: string | null;
66887
67708
  paginas: number;
66888
67709
  payload: import("../integrations/supabase/types").Json;
@@ -66891,6 +67712,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
66891
67712
  pogingen: number;
66892
67713
  printer_id: string | null;
66893
67714
  render_html: string | null;
67715
+ resultaat_pdf_base64: string | null;
66894
67716
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
66895
67717
  updated_at: string;
66896
67718
  volgende_poging: string | null;
@@ -66982,6 +67804,53 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
66982
67804
  isSetofReturn: true;
66983
67805
  };
66984
67806
  };
67807
+ claim_pdf_print_jobs: {
67808
+ Args: {
67809
+ _max?: number;
67810
+ };
67811
+ Returns: {
67812
+ agent_id: string | null;
67813
+ bron_job_id: string | null;
67814
+ created_at: string;
67815
+ documentnaam: string;
67816
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
67817
+ extern_job_id: string | null;
67818
+ foutmelding: string | null;
67819
+ gebruiker_id: string | null;
67820
+ gebruiker_naam: string;
67821
+ gebruikte_bron: string | null;
67822
+ gebruikte_layout_id: string | null;
67823
+ gestart_op: string | null;
67824
+ herkomst: string | null;
67825
+ id: string;
67826
+ idempotentie_sleutel: string | null;
67827
+ is_herprint: boolean;
67828
+ kopieen: number;
67829
+ layout_id: string | null;
67830
+ lokaal_opgeslagen_op: string | null;
67831
+ lokale_pdf_fout: string | null;
67832
+ lokale_pdf_status: string | null;
67833
+ opgepakt_op: string | null;
67834
+ paginas: number;
67835
+ payload: import("../integrations/supabase/types").Json;
67836
+ pdf_base64: string | null;
67837
+ pdf_url: string | null;
67838
+ pogingen: number;
67839
+ printer_id: string | null;
67840
+ render_html: string | null;
67841
+ resultaat_pdf_base64: string | null;
67842
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67843
+ updated_at: string;
67844
+ volgende_poging: string | null;
67845
+ voltooid_op: string | null;
67846
+ }[];
67847
+ SetofOptions: {
67848
+ from: "*";
67849
+ to: "print_jobs";
67850
+ isOneToOne: false;
67851
+ isSetofReturn: true;
67852
+ };
67853
+ };
66985
67854
  claim_print_jobs: {
66986
67855
  Args: {
66987
67856
  _agent_id: string;
@@ -67006,6 +67875,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
67006
67875
  is_herprint: boolean;
67007
67876
  kopieen: number;
67008
67877
  layout_id: string | null;
67878
+ lokaal_opgeslagen_op: string | null;
67879
+ lokale_pdf_fout: string | null;
67880
+ lokale_pdf_status: string | null;
67009
67881
  opgepakt_op: string | null;
67010
67882
  paginas: number;
67011
67883
  payload: import("../integrations/supabase/types").Json;
@@ -67014,6 +67886,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
67014
67886
  pogingen: number;
67015
67887
  printer_id: string | null;
67016
67888
  render_html: string | null;
67889
+ resultaat_pdf_base64: string | null;
67017
67890
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67018
67891
  updated_at: string;
67019
67892
  volgende_poging: string | null;
@@ -67154,6 +68027,8 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
67154
68027
  order_id: string;
67155
68028
  order_source: string;
67156
68029
  pick_date: string;
68030
+ printed_at: string;
68031
+ printed_today: boolean;
67157
68032
  status: string;
67158
68033
  }[];
67159
68034
  };
@@ -67862,6 +68737,10 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
67862
68737
  };
67863
68738
  Returns: number;
67864
68739
  };
68740
+ logistics_cancel_orphan_tasks: {
68741
+ Args: never;
68742
+ Returns: number;
68743
+ };
67865
68744
  logistics_capacity_day_check: {
67866
68745
  Args: {
67867
68746
  p_from?: string;
@@ -67882,6 +68761,25 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
67882
68761
  };
67883
68762
  Returns: number;
67884
68763
  };
68764
+ logistics_cart_index: {
68765
+ Args: {
68766
+ p_from?: string;
68767
+ p_to?: string;
68768
+ };
68769
+ Returns: {
68770
+ cart_id: string;
68771
+ cart_index: number;
68772
+ cart_label: string;
68773
+ is_shared: boolean;
68774
+ order_number: string;
68775
+ order_source: string;
68776
+ order_uuid: string;
68777
+ pick_date: string;
68778
+ printed_at: string;
68779
+ shifted: boolean;
68780
+ task_status: string;
68781
+ }[];
68782
+ };
67885
68783
  logistics_check_order_allowed: {
67886
68784
  Args: {
67887
68785
  p_lines: import("../integrations/supabase/types").Json;
@@ -68030,6 +68928,17 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68030
68928
  isSetofReturn: false;
68031
68929
  };
68032
68930
  };
68931
+ logistics_consistency_check: {
68932
+ Args: never;
68933
+ Returns: {
68934
+ agenda_carts: number;
68935
+ control_carts: number;
68936
+ ok: boolean;
68937
+ orphan_tasks: number;
68938
+ pick_date: string;
68939
+ raw_carts: number;
68940
+ }[];
68941
+ };
68033
68942
  logistics_delay_customer_email: {
68034
68943
  Args: {
68035
68944
  p_customer: string;
@@ -68119,6 +69028,16 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68119
69028
  isSetofReturn: false;
68120
69029
  };
68121
69030
  };
69031
+ logistics_floriday_cart_plan: {
69032
+ Args: {
69033
+ p_order_id: string;
69034
+ };
69035
+ Returns: {
69036
+ carrier_type: string;
69037
+ idx: number;
69038
+ packages: number;
69039
+ }[];
69040
+ };
68122
69041
  logistics_floriday_claim_pushes: {
68123
69042
  Args: {
68124
69043
  _lease_seconds?: number;
@@ -68223,6 +69142,25 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68223
69142
  };
68224
69143
  Returns: number;
68225
69144
  };
69145
+ logistics_order_overview: {
69146
+ Args: {
69147
+ p_from?: string;
69148
+ p_to?: string;
69149
+ };
69150
+ Returns: {
69151
+ cart_count: number;
69152
+ customer_name: string;
69153
+ delivery_date: string;
69154
+ order_number: string;
69155
+ order_source: string;
69156
+ order_uuid: string;
69157
+ pick_date: string;
69158
+ plant_count: number;
69159
+ printed_at: string;
69160
+ shifted: boolean;
69161
+ status: string;
69162
+ }[];
69163
+ };
68226
69164
  logistics_order_pick_day: {
68227
69165
  Args: {
68228
69166
  p_order_ref: string;
@@ -68235,6 +69173,22 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68235
69173
  };
68236
69174
  Returns: string;
68237
69175
  };
69176
+ logistics_pick_agenda: {
69177
+ Args: {
69178
+ p_from?: string;
69179
+ p_to?: string;
69180
+ };
69181
+ Returns: {
69182
+ cart_count: number;
69183
+ in_preparation: number;
69184
+ order_count: number;
69185
+ orders: import("../integrations/supabase/types").Json;
69186
+ pick_date: string;
69187
+ plant_count: number;
69188
+ ready: number;
69189
+ shifted_count: number;
69190
+ }[];
69191
+ };
68238
69192
  logistics_pick_email_purpose: {
68239
69193
  Args: never;
68240
69194
  Returns: string;
@@ -68289,6 +69243,13 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68289
69243
  };
68290
69244
  Returns: undefined;
68291
69245
  };
69246
+ logistics_plan_floriday_order: {
69247
+ Args: {
69248
+ p_buffer_id?: string;
69249
+ p_order_id: string;
69250
+ };
69251
+ Returns: number;
69252
+ };
68292
69253
  logistics_plan_impact_orders: {
68293
69254
  Args: {
68294
69255
  p_order_id: string;
@@ -68394,6 +69355,15 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68394
69355
  };
68395
69356
  Returns: import("../integrations/supabase/types").Json;
68396
69357
  };
69358
+ logistics_resolve_pick_document: {
69359
+ Args: {
69360
+ _is_herprint: boolean;
69361
+ _queue_item_id: string;
69362
+ _session_id: string;
69363
+ _voorbeeld: boolean;
69364
+ };
69365
+ Returns: import("../integrations/supabase/types").Json;
69366
+ };
68397
69367
  logistics_resolve_settings: {
68398
69368
  Args: {
68399
69369
  p_config_id: string;
@@ -68834,6 +69804,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68834
69804
  };
68835
69805
  pick_enqueue_print_job: {
68836
69806
  Args: {
69807
+ _is_herprint?: boolean;
68837
69808
  _printer_id?: string;
68838
69809
  _queue_item_id: string;
68839
69810
  _session_id?: string;
@@ -68847,6 +69818,13 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68847
69818
  };
68848
69819
  Returns: import("../integrations/supabase/types").Json;
68849
69820
  };
69821
+ pick_preview_job: {
69822
+ Args: {
69823
+ _queue_item_id: string;
69824
+ _station_slug: string;
69825
+ };
69826
+ Returns: import("../integrations/supabase/types").Json;
69827
+ };
68850
69828
  pick_print_job_status: {
68851
69829
  Args: {
68852
69830
  _job_id: string;
@@ -69024,6 +70002,24 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
69024
70002
  };
69025
70003
  Returns: undefined;
69026
70004
  };
70005
+ print_preview_toestaan: {
70006
+ Args: {
70007
+ _max?: number;
70008
+ _queue_item_id: string;
70009
+ _station_slug: string;
70010
+ _venster_sec?: number;
70011
+ };
70012
+ Returns: import("../integrations/supabase/types").Json;
70013
+ };
70014
+ print_preview_weiger: {
70015
+ Args: {
70016
+ _code: string;
70017
+ _queue_item_id: string;
70018
+ _reden: string;
70019
+ _station_slug: string;
70020
+ };
70021
+ Returns: undefined;
70022
+ };
69027
70023
  process_logistics_event: {
69028
70024
  Args: {
69029
70025
  p_event_id: string;
@@ -69178,6 +70174,12 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
69178
70174
  };
69179
70175
  Returns: string;
69180
70176
  };
70177
+ resolve_print_job_printer_id: {
70178
+ Args: {
70179
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
70180
+ };
70181
+ Returns: string;
70182
+ };
69181
70183
  resolve_product_id_for_item: {
69182
70184
  Args: {
69183
70185
  p_product_name: string;
@@ -69769,7 +70771,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
69769
70771
  };
69770
70772
  CompositeTypes: { [_ in never]: never; };
69771
70773
  }, {
69772
- PostgrestVersion: "14.17";
70774
+ PostgrestVersion: "14.5";
69773
70775
  }>;
69774
70776
  userId: string;
69775
70777
  claims: import("@supabase/auth-js").User;
@@ -72631,6 +73633,84 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
72631
73633
  };
72632
73634
  Relationships: [];
72633
73635
  };
73636
+ delivery_notes: {
73637
+ Row: {
73638
+ byte_size: number | null;
73639
+ connection_id: string | null;
73640
+ content_type: string;
73641
+ created_at: string;
73642
+ error_message: string | null;
73643
+ fetched_at: string | null;
73644
+ fulfillment_order_id: string | null;
73645
+ http_status: number | null;
73646
+ id: string;
73647
+ label_code: string | null;
73648
+ letter: string | null;
73649
+ load_carrier_index: number | null;
73650
+ load_carrier_type: string | null;
73651
+ order_id: string | null;
73652
+ order_number: string | null;
73653
+ packages: number | null;
73654
+ source: string;
73655
+ status: string;
73656
+ storage_bucket: string;
73657
+ storage_path: string | null;
73658
+ updated_at: string;
73659
+ };
73660
+ Insert: {
73661
+ byte_size?: number | null;
73662
+ connection_id?: string | null;
73663
+ content_type?: string;
73664
+ created_at?: string;
73665
+ error_message?: string | null;
73666
+ fetched_at?: string | null;
73667
+ fulfillment_order_id?: string | null;
73668
+ http_status?: number | null;
73669
+ id?: string;
73670
+ label_code?: string | null;
73671
+ letter?: string | null;
73672
+ load_carrier_index?: number | null;
73673
+ load_carrier_type?: string | null;
73674
+ order_id?: string | null;
73675
+ order_number?: string | null;
73676
+ packages?: number | null;
73677
+ source?: string;
73678
+ status?: string;
73679
+ storage_bucket?: string;
73680
+ storage_path?: string | null;
73681
+ updated_at?: string;
73682
+ };
73683
+ Update: {
73684
+ byte_size?: number | null;
73685
+ connection_id?: string | null;
73686
+ content_type?: string;
73687
+ created_at?: string;
73688
+ error_message?: string | null;
73689
+ fetched_at?: string | null;
73690
+ fulfillment_order_id?: string | null;
73691
+ http_status?: number | null;
73692
+ id?: string;
73693
+ label_code?: string | null;
73694
+ letter?: string | null;
73695
+ load_carrier_index?: number | null;
73696
+ load_carrier_type?: string | null;
73697
+ order_id?: string | null;
73698
+ order_number?: string | null;
73699
+ packages?: number | null;
73700
+ source?: string;
73701
+ status?: string;
73702
+ storage_bucket?: string;
73703
+ storage_path?: string | null;
73704
+ updated_at?: string;
73705
+ };
73706
+ Relationships: [{
73707
+ foreignKeyName: "delivery_notes_order_id_fkey";
73708
+ columns: ["order_id"];
73709
+ isOneToOne: false;
73710
+ referencedRelation: "orders";
73711
+ referencedColumns: ["id"];
73712
+ }];
73713
+ };
72634
73714
  document_bronregels: {
72635
73715
  Row: {
72636
73716
  bron: string;
@@ -75684,10 +76764,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
75684
76764
  };
75685
76765
  floriday_connections: {
75686
76766
  Row: {
75687
- access_token: string | null;
75688
76767
  api_key: string;
75689
- client_id: string;
75690
- client_secret: string;
75691
76768
  created_at: string;
75692
76769
  customers_endpoint: string | null;
75693
76770
  environment: string;
@@ -75702,10 +76779,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
75702
76779
  updated_at: string;
75703
76780
  };
75704
76781
  Insert: {
75705
- access_token?: string | null;
75706
76782
  api_key: string;
75707
- client_id: string;
75708
- client_secret: string;
75709
76783
  created_at?: string;
75710
76784
  customers_endpoint?: string | null;
75711
76785
  environment: string;
@@ -75720,10 +76794,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
75720
76794
  updated_at?: string;
75721
76795
  };
75722
76796
  Update: {
75723
- access_token?: string | null;
75724
76797
  api_key?: string;
75725
- client_id?: string;
75726
- client_secret?: string;
75727
76798
  created_at?: string;
75728
76799
  customers_endpoint?: string | null;
75729
76800
  environment?: string;
@@ -83356,6 +84427,39 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83356
84427
  };
83357
84428
  Relationships: [];
83358
84429
  };
84430
+ print_dedupe_events: {
84431
+ Row: {
84432
+ bestaande_job_id: string | null;
84433
+ created_at: string;
84434
+ detail: string | null;
84435
+ documentnaam: string | null;
84436
+ documenttype: string | null;
84437
+ id: string;
84438
+ idempotentie_sleutel: string;
84439
+ reden: string;
84440
+ };
84441
+ Insert: {
84442
+ bestaande_job_id?: string | null;
84443
+ created_at?: string;
84444
+ detail?: string | null;
84445
+ documentnaam?: string | null;
84446
+ documenttype?: string | null;
84447
+ id?: string;
84448
+ idempotentie_sleutel: string;
84449
+ reden: string;
84450
+ };
84451
+ Update: {
84452
+ bestaande_job_id?: string | null;
84453
+ created_at?: string;
84454
+ detail?: string | null;
84455
+ documentnaam?: string | null;
84456
+ documenttype?: string | null;
84457
+ id?: string;
84458
+ idempotentie_sleutel?: string;
84459
+ reden?: string;
84460
+ };
84461
+ Relationships: [];
84462
+ };
83359
84463
  print_job_logs: {
83360
84464
  Row: {
83361
84465
  created_at: string;
@@ -83406,6 +84510,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83406
84510
  is_herprint: boolean;
83407
84511
  kopieen: number;
83408
84512
  layout_id: string | null;
84513
+ lokaal_opgeslagen_op: string | null;
84514
+ lokale_pdf_fout: string | null;
84515
+ lokale_pdf_status: string | null;
83409
84516
  opgepakt_op: string | null;
83410
84517
  paginas: number;
83411
84518
  payload: import("../integrations/supabase/types").Json;
@@ -83414,6 +84521,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83414
84521
  pogingen: number;
83415
84522
  printer_id: string | null;
83416
84523
  render_html: string | null;
84524
+ resultaat_pdf_base64: string | null;
83417
84525
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83418
84526
  updated_at: string;
83419
84527
  volgende_poging: string | null;
@@ -83438,6 +84546,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83438
84546
  is_herprint?: boolean;
83439
84547
  kopieen?: number;
83440
84548
  layout_id?: string | null;
84549
+ lokaal_opgeslagen_op?: string | null;
84550
+ lokale_pdf_fout?: string | null;
84551
+ lokale_pdf_status?: string | null;
83441
84552
  opgepakt_op?: string | null;
83442
84553
  paginas?: number;
83443
84554
  payload?: import("../integrations/supabase/types").Json;
@@ -83446,6 +84557,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83446
84557
  pogingen?: number;
83447
84558
  printer_id?: string | null;
83448
84559
  render_html?: string | null;
84560
+ resultaat_pdf_base64?: string | null;
83449
84561
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83450
84562
  updated_at?: string;
83451
84563
  volgende_poging?: string | null;
@@ -83470,6 +84582,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83470
84582
  is_herprint?: boolean;
83471
84583
  kopieen?: number;
83472
84584
  layout_id?: string | null;
84585
+ lokaal_opgeslagen_op?: string | null;
84586
+ lokale_pdf_fout?: string | null;
84587
+ lokale_pdf_status?: string | null;
83473
84588
  opgepakt_op?: string | null;
83474
84589
  paginas?: number;
83475
84590
  payload?: import("../integrations/supabase/types").Json;
@@ -83478,6 +84593,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83478
84593
  pogingen?: number;
83479
84594
  printer_id?: string | null;
83480
84595
  render_html?: string | null;
84596
+ resultaat_pdf_base64?: string | null;
83481
84597
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83482
84598
  updated_at?: string;
83483
84599
  volgende_poging?: string | null;
@@ -83596,6 +84712,39 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83596
84712
  };
83597
84713
  Relationships: [];
83598
84714
  };
84715
+ print_preview_events: {
84716
+ Row: {
84717
+ code: string | null;
84718
+ created_at: string;
84719
+ detail: import("../integrations/supabase/types").Json;
84720
+ id: string;
84721
+ queue_item_id: string | null;
84722
+ reden: string | null;
84723
+ station_slug: string | null;
84724
+ uitkomst: string;
84725
+ };
84726
+ Insert: {
84727
+ code?: string | null;
84728
+ created_at?: string;
84729
+ detail?: import("../integrations/supabase/types").Json;
84730
+ id?: string;
84731
+ queue_item_id?: string | null;
84732
+ reden?: string | null;
84733
+ station_slug?: string | null;
84734
+ uitkomst?: string;
84735
+ };
84736
+ Update: {
84737
+ code?: string | null;
84738
+ created_at?: string;
84739
+ detail?: import("../integrations/supabase/types").Json;
84740
+ id?: string;
84741
+ queue_item_id?: string | null;
84742
+ reden?: string | null;
84743
+ station_slug?: string | null;
84744
+ uitkomst?: string;
84745
+ };
84746
+ Relationships: [];
84747
+ };
83599
84748
  print_queue_runners: {
83600
84749
  Row: {
83601
84750
  actief: boolean;
@@ -83835,6 +84984,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83835
84984
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
83836
84985
  online: boolean;
83837
84986
  papierformaat: string;
84987
+ pdf_map: string | null;
83838
84988
  poort: number | null;
83839
84989
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83840
84990
  systeemnaam: string;
@@ -83860,6 +85010,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83860
85010
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83861
85011
  online?: boolean;
83862
85012
  papierformaat?: string;
85013
+ pdf_map?: string | null;
83863
85014
  poort?: number | null;
83864
85015
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83865
85016
  systeemnaam?: string;
@@ -83885,6 +85036,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83885
85036
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83886
85037
  online?: boolean;
83887
85038
  papierformaat?: string;
85039
+ pdf_map?: string | null;
83888
85040
  poort?: number | null;
83889
85041
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83890
85042
  systeemnaam?: string;
@@ -90141,6 +91293,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90141
91293
  is_herprint: boolean;
90142
91294
  kopieen: number;
90143
91295
  layout_id: string | null;
91296
+ lokaal_opgeslagen_op: string | null;
91297
+ lokale_pdf_fout: string | null;
91298
+ lokale_pdf_status: string | null;
90144
91299
  opgepakt_op: string | null;
90145
91300
  paginas: number;
90146
91301
  payload: import("../integrations/supabase/types").Json;
@@ -90149,6 +91304,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90149
91304
  pogingen: number;
90150
91305
  printer_id: string | null;
90151
91306
  render_html: string | null;
91307
+ resultaat_pdf_base64: string | null;
90152
91308
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90153
91309
  updated_at: string;
90154
91310
  volgende_poging: string | null;
@@ -90240,6 +91396,53 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90240
91396
  isSetofReturn: true;
90241
91397
  };
90242
91398
  };
91399
+ claim_pdf_print_jobs: {
91400
+ Args: {
91401
+ _max?: number;
91402
+ };
91403
+ Returns: {
91404
+ agent_id: string | null;
91405
+ bron_job_id: string | null;
91406
+ created_at: string;
91407
+ documentnaam: string;
91408
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
91409
+ extern_job_id: string | null;
91410
+ foutmelding: string | null;
91411
+ gebruiker_id: string | null;
91412
+ gebruiker_naam: string;
91413
+ gebruikte_bron: string | null;
91414
+ gebruikte_layout_id: string | null;
91415
+ gestart_op: string | null;
91416
+ herkomst: string | null;
91417
+ id: string;
91418
+ idempotentie_sleutel: string | null;
91419
+ is_herprint: boolean;
91420
+ kopieen: number;
91421
+ layout_id: string | null;
91422
+ lokaal_opgeslagen_op: string | null;
91423
+ lokale_pdf_fout: string | null;
91424
+ lokale_pdf_status: string | null;
91425
+ opgepakt_op: string | null;
91426
+ paginas: number;
91427
+ payload: import("../integrations/supabase/types").Json;
91428
+ pdf_base64: string | null;
91429
+ pdf_url: string | null;
91430
+ pogingen: number;
91431
+ printer_id: string | null;
91432
+ render_html: string | null;
91433
+ resultaat_pdf_base64: string | null;
91434
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
91435
+ updated_at: string;
91436
+ volgende_poging: string | null;
91437
+ voltooid_op: string | null;
91438
+ }[];
91439
+ SetofOptions: {
91440
+ from: "*";
91441
+ to: "print_jobs";
91442
+ isOneToOne: false;
91443
+ isSetofReturn: true;
91444
+ };
91445
+ };
90243
91446
  claim_print_jobs: {
90244
91447
  Args: {
90245
91448
  _agent_id: string;
@@ -90264,6 +91467,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90264
91467
  is_herprint: boolean;
90265
91468
  kopieen: number;
90266
91469
  layout_id: string | null;
91470
+ lokaal_opgeslagen_op: string | null;
91471
+ lokale_pdf_fout: string | null;
91472
+ lokale_pdf_status: string | null;
90267
91473
  opgepakt_op: string | null;
90268
91474
  paginas: number;
90269
91475
  payload: import("../integrations/supabase/types").Json;
@@ -90272,6 +91478,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90272
91478
  pogingen: number;
90273
91479
  printer_id: string | null;
90274
91480
  render_html: string | null;
91481
+ resultaat_pdf_base64: string | null;
90275
91482
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90276
91483
  updated_at: string;
90277
91484
  volgende_poging: string | null;
@@ -90412,6 +91619,8 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90412
91619
  order_id: string;
90413
91620
  order_source: string;
90414
91621
  pick_date: string;
91622
+ printed_at: string;
91623
+ printed_today: boolean;
90415
91624
  status: string;
90416
91625
  }[];
90417
91626
  };
@@ -91120,6 +92329,10 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91120
92329
  };
91121
92330
  Returns: number;
91122
92331
  };
92332
+ logistics_cancel_orphan_tasks: {
92333
+ Args: never;
92334
+ Returns: number;
92335
+ };
91123
92336
  logistics_capacity_day_check: {
91124
92337
  Args: {
91125
92338
  p_from?: string;
@@ -91140,6 +92353,25 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91140
92353
  };
91141
92354
  Returns: number;
91142
92355
  };
92356
+ logistics_cart_index: {
92357
+ Args: {
92358
+ p_from?: string;
92359
+ p_to?: string;
92360
+ };
92361
+ Returns: {
92362
+ cart_id: string;
92363
+ cart_index: number;
92364
+ cart_label: string;
92365
+ is_shared: boolean;
92366
+ order_number: string;
92367
+ order_source: string;
92368
+ order_uuid: string;
92369
+ pick_date: string;
92370
+ printed_at: string;
92371
+ shifted: boolean;
92372
+ task_status: string;
92373
+ }[];
92374
+ };
91143
92375
  logistics_check_order_allowed: {
91144
92376
  Args: {
91145
92377
  p_lines: import("../integrations/supabase/types").Json;
@@ -91288,6 +92520,17 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91288
92520
  isSetofReturn: false;
91289
92521
  };
91290
92522
  };
92523
+ logistics_consistency_check: {
92524
+ Args: never;
92525
+ Returns: {
92526
+ agenda_carts: number;
92527
+ control_carts: number;
92528
+ ok: boolean;
92529
+ orphan_tasks: number;
92530
+ pick_date: string;
92531
+ raw_carts: number;
92532
+ }[];
92533
+ };
91291
92534
  logistics_delay_customer_email: {
91292
92535
  Args: {
91293
92536
  p_customer: string;
@@ -91377,6 +92620,16 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91377
92620
  isSetofReturn: false;
91378
92621
  };
91379
92622
  };
92623
+ logistics_floriday_cart_plan: {
92624
+ Args: {
92625
+ p_order_id: string;
92626
+ };
92627
+ Returns: {
92628
+ carrier_type: string;
92629
+ idx: number;
92630
+ packages: number;
92631
+ }[];
92632
+ };
91380
92633
  logistics_floriday_claim_pushes: {
91381
92634
  Args: {
91382
92635
  _lease_seconds?: number;
@@ -91481,6 +92734,25 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91481
92734
  };
91482
92735
  Returns: number;
91483
92736
  };
92737
+ logistics_order_overview: {
92738
+ Args: {
92739
+ p_from?: string;
92740
+ p_to?: string;
92741
+ };
92742
+ Returns: {
92743
+ cart_count: number;
92744
+ customer_name: string;
92745
+ delivery_date: string;
92746
+ order_number: string;
92747
+ order_source: string;
92748
+ order_uuid: string;
92749
+ pick_date: string;
92750
+ plant_count: number;
92751
+ printed_at: string;
92752
+ shifted: boolean;
92753
+ status: string;
92754
+ }[];
92755
+ };
91484
92756
  logistics_order_pick_day: {
91485
92757
  Args: {
91486
92758
  p_order_ref: string;
@@ -91493,6 +92765,22 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91493
92765
  };
91494
92766
  Returns: string;
91495
92767
  };
92768
+ logistics_pick_agenda: {
92769
+ Args: {
92770
+ p_from?: string;
92771
+ p_to?: string;
92772
+ };
92773
+ Returns: {
92774
+ cart_count: number;
92775
+ in_preparation: number;
92776
+ order_count: number;
92777
+ orders: import("../integrations/supabase/types").Json;
92778
+ pick_date: string;
92779
+ plant_count: number;
92780
+ ready: number;
92781
+ shifted_count: number;
92782
+ }[];
92783
+ };
91496
92784
  logistics_pick_email_purpose: {
91497
92785
  Args: never;
91498
92786
  Returns: string;
@@ -91547,6 +92835,13 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91547
92835
  };
91548
92836
  Returns: undefined;
91549
92837
  };
92838
+ logistics_plan_floriday_order: {
92839
+ Args: {
92840
+ p_buffer_id?: string;
92841
+ p_order_id: string;
92842
+ };
92843
+ Returns: number;
92844
+ };
91550
92845
  logistics_plan_impact_orders: {
91551
92846
  Args: {
91552
92847
  p_order_id: string;
@@ -91652,6 +92947,15 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91652
92947
  };
91653
92948
  Returns: import("../integrations/supabase/types").Json;
91654
92949
  };
92950
+ logistics_resolve_pick_document: {
92951
+ Args: {
92952
+ _is_herprint: boolean;
92953
+ _queue_item_id: string;
92954
+ _session_id: string;
92955
+ _voorbeeld: boolean;
92956
+ };
92957
+ Returns: import("../integrations/supabase/types").Json;
92958
+ };
91655
92959
  logistics_resolve_settings: {
91656
92960
  Args: {
91657
92961
  p_config_id: string;
@@ -92092,6 +93396,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
92092
93396
  };
92093
93397
  pick_enqueue_print_job: {
92094
93398
  Args: {
93399
+ _is_herprint?: boolean;
92095
93400
  _printer_id?: string;
92096
93401
  _queue_item_id: string;
92097
93402
  _session_id?: string;
@@ -92105,6 +93410,13 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
92105
93410
  };
92106
93411
  Returns: import("../integrations/supabase/types").Json;
92107
93412
  };
93413
+ pick_preview_job: {
93414
+ Args: {
93415
+ _queue_item_id: string;
93416
+ _station_slug: string;
93417
+ };
93418
+ Returns: import("../integrations/supabase/types").Json;
93419
+ };
92108
93420
  pick_print_job_status: {
92109
93421
  Args: {
92110
93422
  _job_id: string;
@@ -92282,6 +93594,24 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
92282
93594
  };
92283
93595
  Returns: undefined;
92284
93596
  };
93597
+ print_preview_toestaan: {
93598
+ Args: {
93599
+ _max?: number;
93600
+ _queue_item_id: string;
93601
+ _station_slug: string;
93602
+ _venster_sec?: number;
93603
+ };
93604
+ Returns: import("../integrations/supabase/types").Json;
93605
+ };
93606
+ print_preview_weiger: {
93607
+ Args: {
93608
+ _code: string;
93609
+ _queue_item_id: string;
93610
+ _reden: string;
93611
+ _station_slug: string;
93612
+ };
93613
+ Returns: undefined;
93614
+ };
92285
93615
  process_logistics_event: {
92286
93616
  Args: {
92287
93617
  p_event_id: string;
@@ -92436,6 +93766,12 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
92436
93766
  };
92437
93767
  Returns: string;
92438
93768
  };
93769
+ resolve_print_job_printer_id: {
93770
+ Args: {
93771
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
93772
+ };
93773
+ Returns: string;
93774
+ };
92439
93775
  resolve_product_id_for_item: {
92440
93776
  Args: {
92441
93777
  p_product_name: string;
@@ -93027,7 +94363,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
93027
94363
  };
93028
94364
  CompositeTypes: { [_ in never]: never; };
93029
94365
  }, {
93030
- PostgrestVersion: "14.17";
94366
+ PostgrestVersion: "14.5";
93031
94367
  }>;
93032
94368
  userId: string;
93033
94369
  claims: import("@supabase/auth-js").User;