@flowselections/floriday-verkoop-module 1.0.55 → 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 (72) 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/OrderKarindelingCard.d.ts.map +1 -1
  4. package/dist-lib/components/verkoop/OrderKarindelingCard.js +2 -1
  5. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  6. package/dist-lib/components/verkoop/SalesOrdersTable.js +17 -4
  7. package/dist-lib/integrations/supabase/auth-middleware.d.ts +355 -18
  8. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/client.d.ts +355 -18
  10. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/client.server.d.ts +355 -18
  12. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/types.d.ts +357 -18
  14. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  15. package/dist-lib/lib/cart-lock.functions.d.ts +355 -18
  16. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/cart-planning-settings.functions.d.ts +3948 -241
  18. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/cart-replan.functions.d.ts +1065 -54
  20. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/cart-replan.functions.js +38 -31
  22. package/dist-lib/lib/create-order.functions.d.ts +6164 -435
  23. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +1065 -54
  25. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday-gateway.server.d.ts +14 -0
  27. package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday-gateway.server.js +46 -0
  29. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +23972 -28
  30. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/floriday-logistic-labels.functions.js +209 -90
  32. package/dist-lib/lib/floriday-mirror.functions.d.ts +355 -18
  33. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/floriday-public.functions.d.ts +2485 -126
  35. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday-sync.d.ts.map +1 -1
  37. package/dist-lib/lib/floriday-writes.functions.d.ts +1775 -90
  38. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/invoice-timing.functions.d.ts +1420 -72
  40. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/load-carriers.functions.d.ts +355 -18
  42. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/logistics-engine.functions.d.ts +1775 -90
  44. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/logistics-stock.functions.d.ts +710 -36
  46. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  47. package/dist-lib/lib/order-addresses.functions.d.ts +355 -18
  48. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/order-buffers.functions.d.ts +1065 -54
  50. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  51. package/dist-lib/lib/order-carrier.functions.d.ts +710 -36
  52. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  53. package/dist-lib/lib/order-pickup.functions.d.ts +710 -36
  54. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  55. package/dist-lib/lib/order-shipments.functions.d.ts +1420 -72
  56. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  57. package/dist-lib/lib/product-name.d.ts +3 -0
  58. package/dist-lib/lib/product-name.d.ts.map +1 -0
  59. package/dist-lib/lib/product-name.js +43 -0
  60. package/dist-lib/lib/salesorders-list.functions.d.ts +355 -18
  61. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  63. package/dist-lib/lib/salesorders-list.server.js +43 -1
  64. package/dist-lib/lib/salesorders-mapping.d.ts +8 -0
  65. package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
  66. package/dist-lib/lib/salesorders.functions.d.ts +1775 -90
  67. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +710 -36
  69. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/tradeitems.functions.d.ts +355 -18
  71. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  72. package/package.json +131 -131
@@ -2852,6 +2852,84 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
2852
2852
  };
2853
2853
  Relationships: [];
2854
2854
  };
2855
+ delivery_notes: {
2856
+ Row: {
2857
+ byte_size: number | null;
2858
+ connection_id: string | null;
2859
+ content_type: string;
2860
+ created_at: string;
2861
+ error_message: string | null;
2862
+ fetched_at: string | null;
2863
+ fulfillment_order_id: string | null;
2864
+ http_status: number | null;
2865
+ id: string;
2866
+ label_code: string | null;
2867
+ letter: string | null;
2868
+ load_carrier_index: number | null;
2869
+ load_carrier_type: string | null;
2870
+ order_id: string | null;
2871
+ order_number: string | null;
2872
+ packages: number | null;
2873
+ source: string;
2874
+ status: string;
2875
+ storage_bucket: string;
2876
+ storage_path: string | null;
2877
+ updated_at: string;
2878
+ };
2879
+ Insert: {
2880
+ byte_size?: number | null;
2881
+ connection_id?: string | null;
2882
+ content_type?: string;
2883
+ created_at?: string;
2884
+ error_message?: string | null;
2885
+ fetched_at?: string | null;
2886
+ fulfillment_order_id?: string | null;
2887
+ http_status?: number | null;
2888
+ id?: string;
2889
+ label_code?: string | null;
2890
+ letter?: string | null;
2891
+ load_carrier_index?: number | null;
2892
+ load_carrier_type?: string | null;
2893
+ order_id?: string | null;
2894
+ order_number?: string | null;
2895
+ packages?: number | null;
2896
+ source?: string;
2897
+ status?: string;
2898
+ storage_bucket?: string;
2899
+ storage_path?: string | null;
2900
+ updated_at?: string;
2901
+ };
2902
+ Update: {
2903
+ byte_size?: number | null;
2904
+ connection_id?: string | null;
2905
+ content_type?: string;
2906
+ created_at?: string;
2907
+ error_message?: string | null;
2908
+ fetched_at?: string | null;
2909
+ fulfillment_order_id?: string | null;
2910
+ http_status?: number | null;
2911
+ id?: string;
2912
+ label_code?: string | null;
2913
+ letter?: string | null;
2914
+ load_carrier_index?: number | null;
2915
+ load_carrier_type?: string | null;
2916
+ order_id?: string | null;
2917
+ order_number?: string | null;
2918
+ packages?: number | null;
2919
+ source?: string;
2920
+ status?: string;
2921
+ storage_bucket?: string;
2922
+ storage_path?: string | null;
2923
+ updated_at?: string;
2924
+ };
2925
+ Relationships: [{
2926
+ foreignKeyName: "delivery_notes_order_id_fkey";
2927
+ columns: ["order_id"];
2928
+ isOneToOne: false;
2929
+ referencedRelation: "orders";
2930
+ referencedColumns: ["id"];
2931
+ }];
2932
+ };
2855
2933
  document_bronregels: {
2856
2934
  Row: {
2857
2935
  bron: string;
@@ -5905,10 +5983,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
5905
5983
  };
5906
5984
  floriday_connections: {
5907
5985
  Row: {
5908
- access_token: string | null;
5909
5986
  api_key: string;
5910
- client_id: string;
5911
- client_secret: string;
5912
5987
  created_at: string;
5913
5988
  customers_endpoint: string | null;
5914
5989
  environment: string;
@@ -5923,10 +5998,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
5923
5998
  updated_at: string;
5924
5999
  };
5925
6000
  Insert: {
5926
- access_token?: string | null;
5927
6001
  api_key: string;
5928
- client_id: string;
5929
- client_secret: string;
5930
6002
  created_at?: string;
5931
6003
  customers_endpoint?: string | null;
5932
6004
  environment: string;
@@ -5941,10 +6013,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
5941
6013
  updated_at?: string;
5942
6014
  };
5943
6015
  Update: {
5944
- access_token?: string | null;
5945
6016
  api_key?: string;
5946
- client_id?: string;
5947
- client_secret?: string;
5948
6017
  created_at?: string;
5949
6018
  customers_endpoint?: string | null;
5950
6019
  environment?: string;
@@ -10815,6 +10884,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
10815
10884
  last_error: string | null;
10816
10885
  last_error_at: string | null;
10817
10886
  last_success_at: string | null;
10887
+ provider: string;
10818
10888
  updated_at: string;
10819
10889
  };
10820
10890
  Insert: {
@@ -10826,6 +10896,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
10826
10896
  last_error?: string | null;
10827
10897
  last_error_at?: string | null;
10828
10898
  last_success_at?: string | null;
10899
+ provider?: string;
10829
10900
  updated_at?: string;
10830
10901
  };
10831
10902
  Update: {
@@ -10837,6 +10908,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
10837
10908
  last_error?: string | null;
10838
10909
  last_error_at?: string | null;
10839
10910
  last_success_at?: string | null;
10911
+ provider?: string;
10840
10912
  updated_at?: string;
10841
10913
  };
10842
10914
  Relationships: [];
@@ -13574,6 +13646,39 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
13574
13646
  };
13575
13647
  Relationships: [];
13576
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
+ };
13577
13682
  print_job_logs: {
13578
13683
  Row: {
13579
13684
  created_at: string;
@@ -13624,6 +13729,9 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
13624
13729
  is_herprint: boolean;
13625
13730
  kopieen: number;
13626
13731
  layout_id: string | null;
13732
+ lokaal_opgeslagen_op: string | null;
13733
+ lokale_pdf_fout: string | null;
13734
+ lokale_pdf_status: string | null;
13627
13735
  opgepakt_op: string | null;
13628
13736
  paginas: number;
13629
13737
  payload: import("../integrations/supabase/types").Json;
@@ -13632,6 +13740,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
13632
13740
  pogingen: number;
13633
13741
  printer_id: string | null;
13634
13742
  render_html: string | null;
13743
+ resultaat_pdf_base64: string | null;
13635
13744
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13636
13745
  updated_at: string;
13637
13746
  volgende_poging: string | null;
@@ -13656,6 +13765,9 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
13656
13765
  is_herprint?: boolean;
13657
13766
  kopieen?: number;
13658
13767
  layout_id?: string | null;
13768
+ lokaal_opgeslagen_op?: string | null;
13769
+ lokale_pdf_fout?: string | null;
13770
+ lokale_pdf_status?: string | null;
13659
13771
  opgepakt_op?: string | null;
13660
13772
  paginas?: number;
13661
13773
  payload?: import("../integrations/supabase/types").Json;
@@ -13664,6 +13776,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
13664
13776
  pogingen?: number;
13665
13777
  printer_id?: string | null;
13666
13778
  render_html?: string | null;
13779
+ resultaat_pdf_base64?: string | null;
13667
13780
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13668
13781
  updated_at?: string;
13669
13782
  volgende_poging?: string | null;
@@ -13688,6 +13801,9 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
13688
13801
  is_herprint?: boolean;
13689
13802
  kopieen?: number;
13690
13803
  layout_id?: string | null;
13804
+ lokaal_opgeslagen_op?: string | null;
13805
+ lokale_pdf_fout?: string | null;
13806
+ lokale_pdf_status?: string | null;
13691
13807
  opgepakt_op?: string | null;
13692
13808
  paginas?: number;
13693
13809
  payload?: import("../integrations/supabase/types").Json;
@@ -13696,6 +13812,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
13696
13812
  pogingen?: number;
13697
13813
  printer_id?: string | null;
13698
13814
  render_html?: string | null;
13815
+ resultaat_pdf_base64?: string | null;
13699
13816
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13700
13817
  updated_at?: string;
13701
13818
  volgende_poging?: string | null;
@@ -13814,6 +13931,39 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
13814
13931
  };
13815
13932
  Relationships: [];
13816
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
+ };
13817
13967
  print_queue_runners: {
13818
13968
  Row: {
13819
13969
  actief: boolean;
@@ -14053,6 +14203,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
14053
14203
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14054
14204
  online: boolean;
14055
14205
  papierformaat: string;
14206
+ pdf_map: string | null;
14056
14207
  poort: number | null;
14057
14208
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14058
14209
  systeemnaam: string;
@@ -14078,6 +14229,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
14078
14229
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14079
14230
  online?: boolean;
14080
14231
  papierformaat?: string;
14232
+ pdf_map?: string | null;
14081
14233
  poort?: number | null;
14082
14234
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14083
14235
  systeemnaam?: string;
@@ -14103,6 +14255,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
14103
14255
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14104
14256
  online?: boolean;
14105
14257
  papierformaat?: string;
14258
+ pdf_map?: string | null;
14106
14259
  poort?: number | null;
14107
14260
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14108
14261
  systeemnaam?: string;
@@ -20359,6 +20512,9 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
20359
20512
  is_herprint: boolean;
20360
20513
  kopieen: number;
20361
20514
  layout_id: string | null;
20515
+ lokaal_opgeslagen_op: string | null;
20516
+ lokale_pdf_fout: string | null;
20517
+ lokale_pdf_status: string | null;
20362
20518
  opgepakt_op: string | null;
20363
20519
  paginas: number;
20364
20520
  payload: import("../integrations/supabase/types").Json;
@@ -20367,6 +20523,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
20367
20523
  pogingen: number;
20368
20524
  printer_id: string | null;
20369
20525
  render_html: string | null;
20526
+ resultaat_pdf_base64: string | null;
20370
20527
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20371
20528
  updated_at: string;
20372
20529
  volgende_poging: string | null;
@@ -20458,6 +20615,53 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
20458
20615
  isSetofReturn: true;
20459
20616
  };
20460
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
+ };
20461
20665
  claim_print_jobs: {
20462
20666
  Args: {
20463
20667
  _agent_id: string;
@@ -20482,6 +20686,9 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
20482
20686
  is_herprint: boolean;
20483
20687
  kopieen: number;
20484
20688
  layout_id: string | null;
20689
+ lokaal_opgeslagen_op: string | null;
20690
+ lokale_pdf_fout: string | null;
20691
+ lokale_pdf_status: string | null;
20485
20692
  opgepakt_op: string | null;
20486
20693
  paginas: number;
20487
20694
  payload: import("../integrations/supabase/types").Json;
@@ -20490,6 +20697,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
20490
20697
  pogingen: number;
20491
20698
  printer_id: string | null;
20492
20699
  render_html: string | null;
20700
+ resultaat_pdf_base64: string | null;
20493
20701
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20494
20702
  updated_at: string;
20495
20703
  volgende_poging: string | null;
@@ -20630,6 +20838,8 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
20630
20838
  order_id: string;
20631
20839
  order_source: string;
20632
20840
  pick_date: string;
20841
+ printed_at: string;
20842
+ printed_today: boolean;
20633
20843
  status: string;
20634
20844
  }[];
20635
20845
  };
@@ -21338,6 +21548,10 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
21338
21548
  };
21339
21549
  Returns: number;
21340
21550
  };
21551
+ logistics_cancel_orphan_tasks: {
21552
+ Args: never;
21553
+ Returns: number;
21554
+ };
21341
21555
  logistics_capacity_day_check: {
21342
21556
  Args: {
21343
21557
  p_from?: string;
@@ -21358,6 +21572,25 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
21358
21572
  };
21359
21573
  Returns: number;
21360
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
+ };
21361
21594
  logistics_check_order_allowed: {
21362
21595
  Args: {
21363
21596
  p_lines: import("../integrations/supabase/types").Json;
@@ -21506,6 +21739,17 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
21506
21739
  isSetofReturn: false;
21507
21740
  };
21508
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
+ };
21509
21753
  logistics_delay_customer_email: {
21510
21754
  Args: {
21511
21755
  p_customer: string;
@@ -21595,6 +21839,16 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
21595
21839
  isSetofReturn: false;
21596
21840
  };
21597
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
+ };
21598
21852
  logistics_floriday_claim_pushes: {
21599
21853
  Args: {
21600
21854
  _lease_seconds?: number;
@@ -21699,6 +21953,25 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
21699
21953
  };
21700
21954
  Returns: number;
21701
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
+ };
21702
21975
  logistics_order_pick_day: {
21703
21976
  Args: {
21704
21977
  p_order_ref: string;
@@ -21711,6 +21984,22 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
21711
21984
  };
21712
21985
  Returns: string;
21713
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
+ };
21714
22003
  logistics_pick_email_purpose: {
21715
22004
  Args: never;
21716
22005
  Returns: string;
@@ -21765,6 +22054,13 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
21765
22054
  };
21766
22055
  Returns: undefined;
21767
22056
  };
22057
+ logistics_plan_floriday_order: {
22058
+ Args: {
22059
+ p_buffer_id?: string;
22060
+ p_order_id: string;
22061
+ };
22062
+ Returns: number;
22063
+ };
21768
22064
  logistics_plan_impact_orders: {
21769
22065
  Args: {
21770
22066
  p_order_id: string;
@@ -21870,6 +22166,15 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
21870
22166
  };
21871
22167
  Returns: import("../integrations/supabase/types").Json;
21872
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
+ };
21873
22178
  logistics_resolve_settings: {
21874
22179
  Args: {
21875
22180
  p_config_id: string;
@@ -22000,14 +22305,6 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
22000
22305
  };
22001
22306
  Returns: string;
22002
22307
  };
22003
- maps_cron_token: {
22004
- Args: never;
22005
- Returns: string;
22006
- };
22007
- maps_kick_queue: {
22008
- Args: never;
22009
- Returns: undefined;
22010
- };
22011
22308
  mark_offer_clicked: {
22012
22309
  Args: {
22013
22310
  p_code: string;
@@ -22318,6 +22615,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
22318
22615
  };
22319
22616
  pick_enqueue_print_job: {
22320
22617
  Args: {
22618
+ _is_herprint?: boolean;
22321
22619
  _printer_id?: string;
22322
22620
  _queue_item_id: string;
22323
22621
  _session_id?: string;
@@ -22331,6 +22629,13 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
22331
22629
  };
22332
22630
  Returns: import("../integrations/supabase/types").Json;
22333
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
+ };
22334
22639
  pick_print_job_status: {
22335
22640
  Args: {
22336
22641
  _job_id: string;
@@ -22508,6 +22813,24 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
22508
22813
  };
22509
22814
  Returns: undefined;
22510
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
+ };
22511
22834
  process_logistics_event: {
22512
22835
  Args: {
22513
22836
  p_event_id: string;
@@ -22625,6 +22948,14 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
22625
22948
  };
22626
22949
  Returns: undefined;
22627
22950
  };
22951
+ replace_order_carts: {
22952
+ Args: {
22953
+ p_buffer_id: string;
22954
+ p_carts: import("../integrations/supabase/types").Json;
22955
+ p_order_id: string;
22956
+ };
22957
+ Returns: import("../integrations/supabase/types").Json;
22958
+ };
22628
22959
  reset_floriday_sync_cursor: {
22629
22960
  Args: {
22630
22961
  p_connection_id: string;
@@ -22654,6 +22985,12 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
22654
22985
  };
22655
22986
  Returns: string;
22656
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
+ };
22657
22994
  resolve_product_id_for_item: {
22658
22995
  Args: {
22659
22996
  p_product_name: string;
@@ -23245,7 +23582,7 @@ export declare const sendOrderEventToEngine: import("@tanstack/start-client-core
23245
23582
  };
23246
23583
  CompositeTypes: { [_ in never]: never; };
23247
23584
  }, {
23248
- PostgrestVersion: "14.17";
23585
+ PostgrestVersion: "14.5";
23249
23586
  }>;
23250
23587
  userId: string;
23251
23588
  claims: import("@supabase/auth-js").User;
@@ -26115,6 +26452,84 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
26115
26452
  };
26116
26453
  Relationships: [];
26117
26454
  };
26455
+ delivery_notes: {
26456
+ Row: {
26457
+ byte_size: number | null;
26458
+ connection_id: string | null;
26459
+ content_type: string;
26460
+ created_at: string;
26461
+ error_message: string | null;
26462
+ fetched_at: string | null;
26463
+ fulfillment_order_id: string | null;
26464
+ http_status: number | null;
26465
+ id: string;
26466
+ label_code: string | null;
26467
+ letter: string | null;
26468
+ load_carrier_index: number | null;
26469
+ load_carrier_type: string | null;
26470
+ order_id: string | null;
26471
+ order_number: string | null;
26472
+ packages: number | null;
26473
+ source: string;
26474
+ status: string;
26475
+ storage_bucket: string;
26476
+ storage_path: string | null;
26477
+ updated_at: string;
26478
+ };
26479
+ Insert: {
26480
+ byte_size?: number | null;
26481
+ connection_id?: string | null;
26482
+ content_type?: string;
26483
+ created_at?: string;
26484
+ error_message?: string | null;
26485
+ fetched_at?: string | null;
26486
+ fulfillment_order_id?: string | null;
26487
+ http_status?: number | null;
26488
+ id?: string;
26489
+ label_code?: string | null;
26490
+ letter?: string | null;
26491
+ load_carrier_index?: number | null;
26492
+ load_carrier_type?: string | null;
26493
+ order_id?: string | null;
26494
+ order_number?: string | null;
26495
+ packages?: number | null;
26496
+ source?: string;
26497
+ status?: string;
26498
+ storage_bucket?: string;
26499
+ storage_path?: string | null;
26500
+ updated_at?: string;
26501
+ };
26502
+ Update: {
26503
+ byte_size?: number | null;
26504
+ connection_id?: string | null;
26505
+ content_type?: string;
26506
+ created_at?: string;
26507
+ error_message?: string | null;
26508
+ fetched_at?: string | null;
26509
+ fulfillment_order_id?: string | null;
26510
+ http_status?: number | null;
26511
+ id?: string;
26512
+ label_code?: string | null;
26513
+ letter?: string | null;
26514
+ load_carrier_index?: number | null;
26515
+ load_carrier_type?: string | null;
26516
+ order_id?: string | null;
26517
+ order_number?: string | null;
26518
+ packages?: number | null;
26519
+ source?: string;
26520
+ status?: string;
26521
+ storage_bucket?: string;
26522
+ storage_path?: string | null;
26523
+ updated_at?: string;
26524
+ };
26525
+ Relationships: [{
26526
+ foreignKeyName: "delivery_notes_order_id_fkey";
26527
+ columns: ["order_id"];
26528
+ isOneToOne: false;
26529
+ referencedRelation: "orders";
26530
+ referencedColumns: ["id"];
26531
+ }];
26532
+ };
26118
26533
  document_bronregels: {
26119
26534
  Row: {
26120
26535
  bron: string;
@@ -29168,10 +29583,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
29168
29583
  };
29169
29584
  floriday_connections: {
29170
29585
  Row: {
29171
- access_token: string | null;
29172
29586
  api_key: string;
29173
- client_id: string;
29174
- client_secret: string;
29175
29587
  created_at: string;
29176
29588
  customers_endpoint: string | null;
29177
29589
  environment: string;
@@ -29186,10 +29598,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
29186
29598
  updated_at: string;
29187
29599
  };
29188
29600
  Insert: {
29189
- access_token?: string | null;
29190
29601
  api_key: string;
29191
- client_id: string;
29192
- client_secret: string;
29193
29602
  created_at?: string;
29194
29603
  customers_endpoint?: string | null;
29195
29604
  environment: string;
@@ -29204,10 +29613,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
29204
29613
  updated_at?: string;
29205
29614
  };
29206
29615
  Update: {
29207
- access_token?: string | null;
29208
29616
  api_key?: string;
29209
- client_id?: string;
29210
- client_secret?: string;
29211
29617
  created_at?: string;
29212
29618
  customers_endpoint?: string | null;
29213
29619
  environment?: string;
@@ -34078,6 +34484,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
34078
34484
  last_error: string | null;
34079
34485
  last_error_at: string | null;
34080
34486
  last_success_at: string | null;
34487
+ provider: string;
34081
34488
  updated_at: string;
34082
34489
  };
34083
34490
  Insert: {
@@ -34089,6 +34496,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
34089
34496
  last_error?: string | null;
34090
34497
  last_error_at?: string | null;
34091
34498
  last_success_at?: string | null;
34499
+ provider?: string;
34092
34500
  updated_at?: string;
34093
34501
  };
34094
34502
  Update: {
@@ -34100,6 +34508,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
34100
34508
  last_error?: string | null;
34101
34509
  last_error_at?: string | null;
34102
34510
  last_success_at?: string | null;
34511
+ provider?: string;
34103
34512
  updated_at?: string;
34104
34513
  };
34105
34514
  Relationships: [];
@@ -36837,6 +37246,39 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
36837
37246
  };
36838
37247
  Relationships: [];
36839
37248
  };
37249
+ print_dedupe_events: {
37250
+ Row: {
37251
+ bestaande_job_id: string | null;
37252
+ created_at: string;
37253
+ detail: string | null;
37254
+ documentnaam: string | null;
37255
+ documenttype: string | null;
37256
+ id: string;
37257
+ idempotentie_sleutel: string;
37258
+ reden: string;
37259
+ };
37260
+ Insert: {
37261
+ bestaande_job_id?: string | null;
37262
+ created_at?: string;
37263
+ detail?: string | null;
37264
+ documentnaam?: string | null;
37265
+ documenttype?: string | null;
37266
+ id?: string;
37267
+ idempotentie_sleutel: string;
37268
+ reden: string;
37269
+ };
37270
+ Update: {
37271
+ bestaande_job_id?: string | null;
37272
+ created_at?: string;
37273
+ detail?: string | null;
37274
+ documentnaam?: string | null;
37275
+ documenttype?: string | null;
37276
+ id?: string;
37277
+ idempotentie_sleutel?: string;
37278
+ reden?: string;
37279
+ };
37280
+ Relationships: [];
37281
+ };
36840
37282
  print_job_logs: {
36841
37283
  Row: {
36842
37284
  created_at: string;
@@ -36887,6 +37329,9 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
36887
37329
  is_herprint: boolean;
36888
37330
  kopieen: number;
36889
37331
  layout_id: string | null;
37332
+ lokaal_opgeslagen_op: string | null;
37333
+ lokale_pdf_fout: string | null;
37334
+ lokale_pdf_status: string | null;
36890
37335
  opgepakt_op: string | null;
36891
37336
  paginas: number;
36892
37337
  payload: import("../integrations/supabase/types").Json;
@@ -36895,6 +37340,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
36895
37340
  pogingen: number;
36896
37341
  printer_id: string | null;
36897
37342
  render_html: string | null;
37343
+ resultaat_pdf_base64: string | null;
36898
37344
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36899
37345
  updated_at: string;
36900
37346
  volgende_poging: string | null;
@@ -36919,6 +37365,9 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
36919
37365
  is_herprint?: boolean;
36920
37366
  kopieen?: number;
36921
37367
  layout_id?: string | null;
37368
+ lokaal_opgeslagen_op?: string | null;
37369
+ lokale_pdf_fout?: string | null;
37370
+ lokale_pdf_status?: string | null;
36922
37371
  opgepakt_op?: string | null;
36923
37372
  paginas?: number;
36924
37373
  payload?: import("../integrations/supabase/types").Json;
@@ -36927,6 +37376,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
36927
37376
  pogingen?: number;
36928
37377
  printer_id?: string | null;
36929
37378
  render_html?: string | null;
37379
+ resultaat_pdf_base64?: string | null;
36930
37380
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36931
37381
  updated_at?: string;
36932
37382
  volgende_poging?: string | null;
@@ -36951,6 +37401,9 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
36951
37401
  is_herprint?: boolean;
36952
37402
  kopieen?: number;
36953
37403
  layout_id?: string | null;
37404
+ lokaal_opgeslagen_op?: string | null;
37405
+ lokale_pdf_fout?: string | null;
37406
+ lokale_pdf_status?: string | null;
36954
37407
  opgepakt_op?: string | null;
36955
37408
  paginas?: number;
36956
37409
  payload?: import("../integrations/supabase/types").Json;
@@ -36959,6 +37412,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
36959
37412
  pogingen?: number;
36960
37413
  printer_id?: string | null;
36961
37414
  render_html?: string | null;
37415
+ resultaat_pdf_base64?: string | null;
36962
37416
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36963
37417
  updated_at?: string;
36964
37418
  volgende_poging?: string | null;
@@ -37077,6 +37531,39 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
37077
37531
  };
37078
37532
  Relationships: [];
37079
37533
  };
37534
+ print_preview_events: {
37535
+ Row: {
37536
+ code: string | null;
37537
+ created_at: string;
37538
+ detail: import("../integrations/supabase/types").Json;
37539
+ id: string;
37540
+ queue_item_id: string | null;
37541
+ reden: string | null;
37542
+ station_slug: string | null;
37543
+ uitkomst: string;
37544
+ };
37545
+ Insert: {
37546
+ code?: string | null;
37547
+ created_at?: string;
37548
+ detail?: import("../integrations/supabase/types").Json;
37549
+ id?: string;
37550
+ queue_item_id?: string | null;
37551
+ reden?: string | null;
37552
+ station_slug?: string | null;
37553
+ uitkomst?: string;
37554
+ };
37555
+ Update: {
37556
+ code?: string | null;
37557
+ created_at?: string;
37558
+ detail?: import("../integrations/supabase/types").Json;
37559
+ id?: string;
37560
+ queue_item_id?: string | null;
37561
+ reden?: string | null;
37562
+ station_slug?: string | null;
37563
+ uitkomst?: string;
37564
+ };
37565
+ Relationships: [];
37566
+ };
37080
37567
  print_queue_runners: {
37081
37568
  Row: {
37082
37569
  actief: boolean;
@@ -37316,6 +37803,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
37316
37803
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37317
37804
  online: boolean;
37318
37805
  papierformaat: string;
37806
+ pdf_map: string | null;
37319
37807
  poort: number | null;
37320
37808
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37321
37809
  systeemnaam: string;
@@ -37341,6 +37829,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
37341
37829
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37342
37830
  online?: boolean;
37343
37831
  papierformaat?: string;
37832
+ pdf_map?: string | null;
37344
37833
  poort?: number | null;
37345
37834
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37346
37835
  systeemnaam?: string;
@@ -37366,6 +37855,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
37366
37855
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37367
37856
  online?: boolean;
37368
37857
  papierformaat?: string;
37858
+ pdf_map?: string | null;
37369
37859
  poort?: number | null;
37370
37860
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37371
37861
  systeemnaam?: string;
@@ -43622,6 +44112,9 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
43622
44112
  is_herprint: boolean;
43623
44113
  kopieen: number;
43624
44114
  layout_id: string | null;
44115
+ lokaal_opgeslagen_op: string | null;
44116
+ lokale_pdf_fout: string | null;
44117
+ lokale_pdf_status: string | null;
43625
44118
  opgepakt_op: string | null;
43626
44119
  paginas: number;
43627
44120
  payload: import("../integrations/supabase/types").Json;
@@ -43630,6 +44123,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
43630
44123
  pogingen: number;
43631
44124
  printer_id: string | null;
43632
44125
  render_html: string | null;
44126
+ resultaat_pdf_base64: string | null;
43633
44127
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43634
44128
  updated_at: string;
43635
44129
  volgende_poging: string | null;
@@ -43721,6 +44215,53 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
43721
44215
  isSetofReturn: true;
43722
44216
  };
43723
44217
  };
44218
+ claim_pdf_print_jobs: {
44219
+ Args: {
44220
+ _max?: number;
44221
+ };
44222
+ Returns: {
44223
+ agent_id: string | null;
44224
+ bron_job_id: string | null;
44225
+ created_at: string;
44226
+ documentnaam: string;
44227
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44228
+ extern_job_id: string | null;
44229
+ foutmelding: string | null;
44230
+ gebruiker_id: string | null;
44231
+ gebruiker_naam: string;
44232
+ gebruikte_bron: string | null;
44233
+ gebruikte_layout_id: string | null;
44234
+ gestart_op: string | null;
44235
+ herkomst: string | null;
44236
+ id: string;
44237
+ idempotentie_sleutel: string | null;
44238
+ is_herprint: boolean;
44239
+ kopieen: number;
44240
+ layout_id: string | null;
44241
+ lokaal_opgeslagen_op: string | null;
44242
+ lokale_pdf_fout: string | null;
44243
+ lokale_pdf_status: string | null;
44244
+ opgepakt_op: string | null;
44245
+ paginas: number;
44246
+ payload: import("../integrations/supabase/types").Json;
44247
+ pdf_base64: string | null;
44248
+ pdf_url: string | null;
44249
+ pogingen: number;
44250
+ printer_id: string | null;
44251
+ render_html: string | null;
44252
+ resultaat_pdf_base64: string | null;
44253
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44254
+ updated_at: string;
44255
+ volgende_poging: string | null;
44256
+ voltooid_op: string | null;
44257
+ }[];
44258
+ SetofOptions: {
44259
+ from: "*";
44260
+ to: "print_jobs";
44261
+ isOneToOne: false;
44262
+ isSetofReturn: true;
44263
+ };
44264
+ };
43724
44265
  claim_print_jobs: {
43725
44266
  Args: {
43726
44267
  _agent_id: string;
@@ -43745,6 +44286,9 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
43745
44286
  is_herprint: boolean;
43746
44287
  kopieen: number;
43747
44288
  layout_id: string | null;
44289
+ lokaal_opgeslagen_op: string | null;
44290
+ lokale_pdf_fout: string | null;
44291
+ lokale_pdf_status: string | null;
43748
44292
  opgepakt_op: string | null;
43749
44293
  paginas: number;
43750
44294
  payload: import("../integrations/supabase/types").Json;
@@ -43753,6 +44297,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
43753
44297
  pogingen: number;
43754
44298
  printer_id: string | null;
43755
44299
  render_html: string | null;
44300
+ resultaat_pdf_base64: string | null;
43756
44301
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43757
44302
  updated_at: string;
43758
44303
  volgende_poging: string | null;
@@ -43893,6 +44438,8 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
43893
44438
  order_id: string;
43894
44439
  order_source: string;
43895
44440
  pick_date: string;
44441
+ printed_at: string;
44442
+ printed_today: boolean;
43896
44443
  status: string;
43897
44444
  }[];
43898
44445
  };
@@ -44601,6 +45148,10 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
44601
45148
  };
44602
45149
  Returns: number;
44603
45150
  };
45151
+ logistics_cancel_orphan_tasks: {
45152
+ Args: never;
45153
+ Returns: number;
45154
+ };
44604
45155
  logistics_capacity_day_check: {
44605
45156
  Args: {
44606
45157
  p_from?: string;
@@ -44621,6 +45172,25 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
44621
45172
  };
44622
45173
  Returns: number;
44623
45174
  };
45175
+ logistics_cart_index: {
45176
+ Args: {
45177
+ p_from?: string;
45178
+ p_to?: string;
45179
+ };
45180
+ Returns: {
45181
+ cart_id: string;
45182
+ cart_index: number;
45183
+ cart_label: string;
45184
+ is_shared: boolean;
45185
+ order_number: string;
45186
+ order_source: string;
45187
+ order_uuid: string;
45188
+ pick_date: string;
45189
+ printed_at: string;
45190
+ shifted: boolean;
45191
+ task_status: string;
45192
+ }[];
45193
+ };
44624
45194
  logistics_check_order_allowed: {
44625
45195
  Args: {
44626
45196
  p_lines: import("../integrations/supabase/types").Json;
@@ -44769,6 +45339,17 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
44769
45339
  isSetofReturn: false;
44770
45340
  };
44771
45341
  };
45342
+ logistics_consistency_check: {
45343
+ Args: never;
45344
+ Returns: {
45345
+ agenda_carts: number;
45346
+ control_carts: number;
45347
+ ok: boolean;
45348
+ orphan_tasks: number;
45349
+ pick_date: string;
45350
+ raw_carts: number;
45351
+ }[];
45352
+ };
44772
45353
  logistics_delay_customer_email: {
44773
45354
  Args: {
44774
45355
  p_customer: string;
@@ -44858,6 +45439,16 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
44858
45439
  isSetofReturn: false;
44859
45440
  };
44860
45441
  };
45442
+ logistics_floriday_cart_plan: {
45443
+ Args: {
45444
+ p_order_id: string;
45445
+ };
45446
+ Returns: {
45447
+ carrier_type: string;
45448
+ idx: number;
45449
+ packages: number;
45450
+ }[];
45451
+ };
44861
45452
  logistics_floriday_claim_pushes: {
44862
45453
  Args: {
44863
45454
  _lease_seconds?: number;
@@ -44962,6 +45553,25 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
44962
45553
  };
44963
45554
  Returns: number;
44964
45555
  };
45556
+ logistics_order_overview: {
45557
+ Args: {
45558
+ p_from?: string;
45559
+ p_to?: string;
45560
+ };
45561
+ Returns: {
45562
+ cart_count: number;
45563
+ customer_name: string;
45564
+ delivery_date: string;
45565
+ order_number: string;
45566
+ order_source: string;
45567
+ order_uuid: string;
45568
+ pick_date: string;
45569
+ plant_count: number;
45570
+ printed_at: string;
45571
+ shifted: boolean;
45572
+ status: string;
45573
+ }[];
45574
+ };
44965
45575
  logistics_order_pick_day: {
44966
45576
  Args: {
44967
45577
  p_order_ref: string;
@@ -44974,6 +45584,22 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
44974
45584
  };
44975
45585
  Returns: string;
44976
45586
  };
45587
+ logistics_pick_agenda: {
45588
+ Args: {
45589
+ p_from?: string;
45590
+ p_to?: string;
45591
+ };
45592
+ Returns: {
45593
+ cart_count: number;
45594
+ in_preparation: number;
45595
+ order_count: number;
45596
+ orders: import("../integrations/supabase/types").Json;
45597
+ pick_date: string;
45598
+ plant_count: number;
45599
+ ready: number;
45600
+ shifted_count: number;
45601
+ }[];
45602
+ };
44977
45603
  logistics_pick_email_purpose: {
44978
45604
  Args: never;
44979
45605
  Returns: string;
@@ -45028,6 +45654,13 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
45028
45654
  };
45029
45655
  Returns: undefined;
45030
45656
  };
45657
+ logistics_plan_floriday_order: {
45658
+ Args: {
45659
+ p_buffer_id?: string;
45660
+ p_order_id: string;
45661
+ };
45662
+ Returns: number;
45663
+ };
45031
45664
  logistics_plan_impact_orders: {
45032
45665
  Args: {
45033
45666
  p_order_id: string;
@@ -45133,6 +45766,15 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
45133
45766
  };
45134
45767
  Returns: import("../integrations/supabase/types").Json;
45135
45768
  };
45769
+ logistics_resolve_pick_document: {
45770
+ Args: {
45771
+ _is_herprint: boolean;
45772
+ _queue_item_id: string;
45773
+ _session_id: string;
45774
+ _voorbeeld: boolean;
45775
+ };
45776
+ Returns: import("../integrations/supabase/types").Json;
45777
+ };
45136
45778
  logistics_resolve_settings: {
45137
45779
  Args: {
45138
45780
  p_config_id: string;
@@ -45263,14 +45905,6 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
45263
45905
  };
45264
45906
  Returns: string;
45265
45907
  };
45266
- maps_cron_token: {
45267
- Args: never;
45268
- Returns: string;
45269
- };
45270
- maps_kick_queue: {
45271
- Args: never;
45272
- Returns: undefined;
45273
- };
45274
45908
  mark_offer_clicked: {
45275
45909
  Args: {
45276
45910
  p_code: string;
@@ -45581,6 +46215,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
45581
46215
  };
45582
46216
  pick_enqueue_print_job: {
45583
46217
  Args: {
46218
+ _is_herprint?: boolean;
45584
46219
  _printer_id?: string;
45585
46220
  _queue_item_id: string;
45586
46221
  _session_id?: string;
@@ -45594,6 +46229,13 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
45594
46229
  };
45595
46230
  Returns: import("../integrations/supabase/types").Json;
45596
46231
  };
46232
+ pick_preview_job: {
46233
+ Args: {
46234
+ _queue_item_id: string;
46235
+ _station_slug: string;
46236
+ };
46237
+ Returns: import("../integrations/supabase/types").Json;
46238
+ };
45597
46239
  pick_print_job_status: {
45598
46240
  Args: {
45599
46241
  _job_id: string;
@@ -45771,6 +46413,24 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
45771
46413
  };
45772
46414
  Returns: undefined;
45773
46415
  };
46416
+ print_preview_toestaan: {
46417
+ Args: {
46418
+ _max?: number;
46419
+ _queue_item_id: string;
46420
+ _station_slug: string;
46421
+ _venster_sec?: number;
46422
+ };
46423
+ Returns: import("../integrations/supabase/types").Json;
46424
+ };
46425
+ print_preview_weiger: {
46426
+ Args: {
46427
+ _code: string;
46428
+ _queue_item_id: string;
46429
+ _reden: string;
46430
+ _station_slug: string;
46431
+ };
46432
+ Returns: undefined;
46433
+ };
45774
46434
  process_logistics_event: {
45775
46435
  Args: {
45776
46436
  p_event_id: string;
@@ -45888,6 +46548,14 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
45888
46548
  };
45889
46549
  Returns: undefined;
45890
46550
  };
46551
+ replace_order_carts: {
46552
+ Args: {
46553
+ p_buffer_id: string;
46554
+ p_carts: import("../integrations/supabase/types").Json;
46555
+ p_order_id: string;
46556
+ };
46557
+ Returns: import("../integrations/supabase/types").Json;
46558
+ };
45891
46559
  reset_floriday_sync_cursor: {
45892
46560
  Args: {
45893
46561
  p_connection_id: string;
@@ -45917,6 +46585,12 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
45917
46585
  };
45918
46586
  Returns: string;
45919
46587
  };
46588
+ resolve_print_job_printer_id: {
46589
+ Args: {
46590
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
46591
+ };
46592
+ Returns: string;
46593
+ };
45920
46594
  resolve_product_id_for_item: {
45921
46595
  Args: {
45922
46596
  p_product_name: string;
@@ -46508,7 +47182,7 @@ export declare const listEngineTasks: import("@tanstack/start-client-core").Opti
46508
47182
  };
46509
47183
  CompositeTypes: { [_ in never]: never; };
46510
47184
  }, {
46511
- PostgrestVersion: "14.17";
47185
+ PostgrestVersion: "14.5";
46512
47186
  }>;
46513
47187
  userId: string;
46514
47188
  claims: import("@supabase/auth-js").User;
@@ -49412,6 +50086,84 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
49412
50086
  };
49413
50087
  Relationships: [];
49414
50088
  };
50089
+ delivery_notes: {
50090
+ Row: {
50091
+ byte_size: number | null;
50092
+ connection_id: string | null;
50093
+ content_type: string;
50094
+ created_at: string;
50095
+ error_message: string | null;
50096
+ fetched_at: string | null;
50097
+ fulfillment_order_id: string | null;
50098
+ http_status: number | null;
50099
+ id: string;
50100
+ label_code: string | null;
50101
+ letter: string | null;
50102
+ load_carrier_index: number | null;
50103
+ load_carrier_type: string | null;
50104
+ order_id: string | null;
50105
+ order_number: string | null;
50106
+ packages: number | null;
50107
+ source: string;
50108
+ status: string;
50109
+ storage_bucket: string;
50110
+ storage_path: string | null;
50111
+ updated_at: string;
50112
+ };
50113
+ Insert: {
50114
+ byte_size?: number | null;
50115
+ connection_id?: string | null;
50116
+ content_type?: string;
50117
+ created_at?: string;
50118
+ error_message?: string | null;
50119
+ fetched_at?: string | null;
50120
+ fulfillment_order_id?: string | null;
50121
+ http_status?: number | null;
50122
+ id?: string;
50123
+ label_code?: string | null;
50124
+ letter?: string | null;
50125
+ load_carrier_index?: number | null;
50126
+ load_carrier_type?: string | null;
50127
+ order_id?: string | null;
50128
+ order_number?: string | null;
50129
+ packages?: number | null;
50130
+ source?: string;
50131
+ status?: string;
50132
+ storage_bucket?: string;
50133
+ storage_path?: string | null;
50134
+ updated_at?: string;
50135
+ };
50136
+ Update: {
50137
+ byte_size?: number | null;
50138
+ connection_id?: string | null;
50139
+ content_type?: string;
50140
+ created_at?: string;
50141
+ error_message?: string | null;
50142
+ fetched_at?: string | null;
50143
+ fulfillment_order_id?: string | null;
50144
+ http_status?: number | null;
50145
+ id?: string;
50146
+ label_code?: string | null;
50147
+ letter?: string | null;
50148
+ load_carrier_index?: number | null;
50149
+ load_carrier_type?: string | null;
50150
+ order_id?: string | null;
50151
+ order_number?: string | null;
50152
+ packages?: number | null;
50153
+ source?: string;
50154
+ status?: string;
50155
+ storage_bucket?: string;
50156
+ storage_path?: string | null;
50157
+ updated_at?: string;
50158
+ };
50159
+ Relationships: [{
50160
+ foreignKeyName: "delivery_notes_order_id_fkey";
50161
+ columns: ["order_id"];
50162
+ isOneToOne: false;
50163
+ referencedRelation: "orders";
50164
+ referencedColumns: ["id"];
50165
+ }];
50166
+ };
49415
50167
  document_bronregels: {
49416
50168
  Row: {
49417
50169
  bron: string;
@@ -52465,10 +53217,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
52465
53217
  };
52466
53218
  floriday_connections: {
52467
53219
  Row: {
52468
- access_token: string | null;
52469
53220
  api_key: string;
52470
- client_id: string;
52471
- client_secret: string;
52472
53221
  created_at: string;
52473
53222
  customers_endpoint: string | null;
52474
53223
  environment: string;
@@ -52483,10 +53232,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
52483
53232
  updated_at: string;
52484
53233
  };
52485
53234
  Insert: {
52486
- access_token?: string | null;
52487
53235
  api_key: string;
52488
- client_id: string;
52489
- client_secret: string;
52490
53236
  created_at?: string;
52491
53237
  customers_endpoint?: string | null;
52492
53238
  environment: string;
@@ -52501,10 +53247,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
52501
53247
  updated_at?: string;
52502
53248
  };
52503
53249
  Update: {
52504
- access_token?: string | null;
52505
53250
  api_key?: string;
52506
- client_id?: string;
52507
- client_secret?: string;
52508
53251
  created_at?: string;
52509
53252
  customers_endpoint?: string | null;
52510
53253
  environment?: string;
@@ -57375,6 +58118,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
57375
58118
  last_error: string | null;
57376
58119
  last_error_at: string | null;
57377
58120
  last_success_at: string | null;
58121
+ provider: string;
57378
58122
  updated_at: string;
57379
58123
  };
57380
58124
  Insert: {
@@ -57386,6 +58130,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
57386
58130
  last_error?: string | null;
57387
58131
  last_error_at?: string | null;
57388
58132
  last_success_at?: string | null;
58133
+ provider?: string;
57389
58134
  updated_at?: string;
57390
58135
  };
57391
58136
  Update: {
@@ -57397,6 +58142,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
57397
58142
  last_error?: string | null;
57398
58143
  last_error_at?: string | null;
57399
58144
  last_success_at?: string | null;
58145
+ provider?: string;
57400
58146
  updated_at?: string;
57401
58147
  };
57402
58148
  Relationships: [];
@@ -60134,6 +60880,39 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60134
60880
  };
60135
60881
  Relationships: [];
60136
60882
  };
60883
+ print_dedupe_events: {
60884
+ Row: {
60885
+ bestaande_job_id: string | null;
60886
+ created_at: string;
60887
+ detail: string | null;
60888
+ documentnaam: string | null;
60889
+ documenttype: string | null;
60890
+ id: string;
60891
+ idempotentie_sleutel: string;
60892
+ reden: string;
60893
+ };
60894
+ Insert: {
60895
+ bestaande_job_id?: string | null;
60896
+ created_at?: string;
60897
+ detail?: string | null;
60898
+ documentnaam?: string | null;
60899
+ documenttype?: string | null;
60900
+ id?: string;
60901
+ idempotentie_sleutel: string;
60902
+ reden: string;
60903
+ };
60904
+ Update: {
60905
+ bestaande_job_id?: string | null;
60906
+ created_at?: string;
60907
+ detail?: string | null;
60908
+ documentnaam?: string | null;
60909
+ documenttype?: string | null;
60910
+ id?: string;
60911
+ idempotentie_sleutel?: string;
60912
+ reden?: string;
60913
+ };
60914
+ Relationships: [];
60915
+ };
60137
60916
  print_job_logs: {
60138
60917
  Row: {
60139
60918
  created_at: string;
@@ -60184,6 +60963,9 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60184
60963
  is_herprint: boolean;
60185
60964
  kopieen: number;
60186
60965
  layout_id: string | null;
60966
+ lokaal_opgeslagen_op: string | null;
60967
+ lokale_pdf_fout: string | null;
60968
+ lokale_pdf_status: string | null;
60187
60969
  opgepakt_op: string | null;
60188
60970
  paginas: number;
60189
60971
  payload: import("../integrations/supabase/types").Json;
@@ -60192,6 +60974,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60192
60974
  pogingen: number;
60193
60975
  printer_id: string | null;
60194
60976
  render_html: string | null;
60977
+ resultaat_pdf_base64: string | null;
60195
60978
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60196
60979
  updated_at: string;
60197
60980
  volgende_poging: string | null;
@@ -60216,6 +60999,9 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60216
60999
  is_herprint?: boolean;
60217
61000
  kopieen?: number;
60218
61001
  layout_id?: string | null;
61002
+ lokaal_opgeslagen_op?: string | null;
61003
+ lokale_pdf_fout?: string | null;
61004
+ lokale_pdf_status?: string | null;
60219
61005
  opgepakt_op?: string | null;
60220
61006
  paginas?: number;
60221
61007
  payload?: import("../integrations/supabase/types").Json;
@@ -60224,6 +61010,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60224
61010
  pogingen?: number;
60225
61011
  printer_id?: string | null;
60226
61012
  render_html?: string | null;
61013
+ resultaat_pdf_base64?: string | null;
60227
61014
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60228
61015
  updated_at?: string;
60229
61016
  volgende_poging?: string | null;
@@ -60248,6 +61035,9 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60248
61035
  is_herprint?: boolean;
60249
61036
  kopieen?: number;
60250
61037
  layout_id?: string | null;
61038
+ lokaal_opgeslagen_op?: string | null;
61039
+ lokale_pdf_fout?: string | null;
61040
+ lokale_pdf_status?: string | null;
60251
61041
  opgepakt_op?: string | null;
60252
61042
  paginas?: number;
60253
61043
  payload?: import("../integrations/supabase/types").Json;
@@ -60256,6 +61046,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60256
61046
  pogingen?: number;
60257
61047
  printer_id?: string | null;
60258
61048
  render_html?: string | null;
61049
+ resultaat_pdf_base64?: string | null;
60259
61050
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60260
61051
  updated_at?: string;
60261
61052
  volgende_poging?: string | null;
@@ -60374,6 +61165,39 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60374
61165
  };
60375
61166
  Relationships: [];
60376
61167
  };
61168
+ print_preview_events: {
61169
+ Row: {
61170
+ code: string | null;
61171
+ created_at: string;
61172
+ detail: import("../integrations/supabase/types").Json;
61173
+ id: string;
61174
+ queue_item_id: string | null;
61175
+ reden: string | null;
61176
+ station_slug: string | null;
61177
+ uitkomst: string;
61178
+ };
61179
+ Insert: {
61180
+ code?: string | null;
61181
+ created_at?: string;
61182
+ detail?: import("../integrations/supabase/types").Json;
61183
+ id?: string;
61184
+ queue_item_id?: string | null;
61185
+ reden?: string | null;
61186
+ station_slug?: string | null;
61187
+ uitkomst?: string;
61188
+ };
61189
+ Update: {
61190
+ code?: string | null;
61191
+ created_at?: string;
61192
+ detail?: import("../integrations/supabase/types").Json;
61193
+ id?: string;
61194
+ queue_item_id?: string | null;
61195
+ reden?: string | null;
61196
+ station_slug?: string | null;
61197
+ uitkomst?: string;
61198
+ };
61199
+ Relationships: [];
61200
+ };
60377
61201
  print_queue_runners: {
60378
61202
  Row: {
60379
61203
  actief: boolean;
@@ -60613,6 +61437,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60613
61437
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
60614
61438
  online: boolean;
60615
61439
  papierformaat: string;
61440
+ pdf_map: string | null;
60616
61441
  poort: number | null;
60617
61442
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60618
61443
  systeemnaam: string;
@@ -60638,6 +61463,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60638
61463
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60639
61464
  online?: boolean;
60640
61465
  papierformaat?: string;
61466
+ pdf_map?: string | null;
60641
61467
  poort?: number | null;
60642
61468
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60643
61469
  systeemnaam?: string;
@@ -60663,6 +61489,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
60663
61489
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60664
61490
  online?: boolean;
60665
61491
  papierformaat?: string;
61492
+ pdf_map?: string | null;
60666
61493
  poort?: number | null;
60667
61494
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60668
61495
  systeemnaam?: string;
@@ -66919,6 +67746,9 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
66919
67746
  is_herprint: boolean;
66920
67747
  kopieen: number;
66921
67748
  layout_id: string | null;
67749
+ lokaal_opgeslagen_op: string | null;
67750
+ lokale_pdf_fout: string | null;
67751
+ lokale_pdf_status: string | null;
66922
67752
  opgepakt_op: string | null;
66923
67753
  paginas: number;
66924
67754
  payload: import("../integrations/supabase/types").Json;
@@ -66927,6 +67757,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
66927
67757
  pogingen: number;
66928
67758
  printer_id: string | null;
66929
67759
  render_html: string | null;
67760
+ resultaat_pdf_base64: string | null;
66930
67761
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
66931
67762
  updated_at: string;
66932
67763
  volgende_poging: string | null;
@@ -67018,6 +67849,53 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
67018
67849
  isSetofReturn: true;
67019
67850
  };
67020
67851
  };
67852
+ claim_pdf_print_jobs: {
67853
+ Args: {
67854
+ _max?: number;
67855
+ };
67856
+ Returns: {
67857
+ agent_id: string | null;
67858
+ bron_job_id: string | null;
67859
+ created_at: string;
67860
+ documentnaam: string;
67861
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
67862
+ extern_job_id: string | null;
67863
+ foutmelding: string | null;
67864
+ gebruiker_id: string | null;
67865
+ gebruiker_naam: string;
67866
+ gebruikte_bron: string | null;
67867
+ gebruikte_layout_id: string | null;
67868
+ gestart_op: string | null;
67869
+ herkomst: string | null;
67870
+ id: string;
67871
+ idempotentie_sleutel: string | null;
67872
+ is_herprint: boolean;
67873
+ kopieen: number;
67874
+ layout_id: string | null;
67875
+ lokaal_opgeslagen_op: string | null;
67876
+ lokale_pdf_fout: string | null;
67877
+ lokale_pdf_status: string | null;
67878
+ opgepakt_op: string | null;
67879
+ paginas: number;
67880
+ payload: import("../integrations/supabase/types").Json;
67881
+ pdf_base64: string | null;
67882
+ pdf_url: string | null;
67883
+ pogingen: number;
67884
+ printer_id: string | null;
67885
+ render_html: string | null;
67886
+ resultaat_pdf_base64: string | null;
67887
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67888
+ updated_at: string;
67889
+ volgende_poging: string | null;
67890
+ voltooid_op: string | null;
67891
+ }[];
67892
+ SetofOptions: {
67893
+ from: "*";
67894
+ to: "print_jobs";
67895
+ isOneToOne: false;
67896
+ isSetofReturn: true;
67897
+ };
67898
+ };
67021
67899
  claim_print_jobs: {
67022
67900
  Args: {
67023
67901
  _agent_id: string;
@@ -67042,6 +67920,9 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
67042
67920
  is_herprint: boolean;
67043
67921
  kopieen: number;
67044
67922
  layout_id: string | null;
67923
+ lokaal_opgeslagen_op: string | null;
67924
+ lokale_pdf_fout: string | null;
67925
+ lokale_pdf_status: string | null;
67045
67926
  opgepakt_op: string | null;
67046
67927
  paginas: number;
67047
67928
  payload: import("../integrations/supabase/types").Json;
@@ -67050,6 +67931,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
67050
67931
  pogingen: number;
67051
67932
  printer_id: string | null;
67052
67933
  render_html: string | null;
67934
+ resultaat_pdf_base64: string | null;
67053
67935
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67054
67936
  updated_at: string;
67055
67937
  volgende_poging: string | null;
@@ -67190,6 +68072,8 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
67190
68072
  order_id: string;
67191
68073
  order_source: string;
67192
68074
  pick_date: string;
68075
+ printed_at: string;
68076
+ printed_today: boolean;
67193
68077
  status: string;
67194
68078
  }[];
67195
68079
  };
@@ -67898,6 +68782,10 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
67898
68782
  };
67899
68783
  Returns: number;
67900
68784
  };
68785
+ logistics_cancel_orphan_tasks: {
68786
+ Args: never;
68787
+ Returns: number;
68788
+ };
67901
68789
  logistics_capacity_day_check: {
67902
68790
  Args: {
67903
68791
  p_from?: string;
@@ -67918,6 +68806,25 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
67918
68806
  };
67919
68807
  Returns: number;
67920
68808
  };
68809
+ logistics_cart_index: {
68810
+ Args: {
68811
+ p_from?: string;
68812
+ p_to?: string;
68813
+ };
68814
+ Returns: {
68815
+ cart_id: string;
68816
+ cart_index: number;
68817
+ cart_label: string;
68818
+ is_shared: boolean;
68819
+ order_number: string;
68820
+ order_source: string;
68821
+ order_uuid: string;
68822
+ pick_date: string;
68823
+ printed_at: string;
68824
+ shifted: boolean;
68825
+ task_status: string;
68826
+ }[];
68827
+ };
67921
68828
  logistics_check_order_allowed: {
67922
68829
  Args: {
67923
68830
  p_lines: import("../integrations/supabase/types").Json;
@@ -68066,6 +68973,17 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
68066
68973
  isSetofReturn: false;
68067
68974
  };
68068
68975
  };
68976
+ logistics_consistency_check: {
68977
+ Args: never;
68978
+ Returns: {
68979
+ agenda_carts: number;
68980
+ control_carts: number;
68981
+ ok: boolean;
68982
+ orphan_tasks: number;
68983
+ pick_date: string;
68984
+ raw_carts: number;
68985
+ }[];
68986
+ };
68069
68987
  logistics_delay_customer_email: {
68070
68988
  Args: {
68071
68989
  p_customer: string;
@@ -68155,6 +69073,16 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
68155
69073
  isSetofReturn: false;
68156
69074
  };
68157
69075
  };
69076
+ logistics_floriday_cart_plan: {
69077
+ Args: {
69078
+ p_order_id: string;
69079
+ };
69080
+ Returns: {
69081
+ carrier_type: string;
69082
+ idx: number;
69083
+ packages: number;
69084
+ }[];
69085
+ };
68158
69086
  logistics_floriday_claim_pushes: {
68159
69087
  Args: {
68160
69088
  _lease_seconds?: number;
@@ -68259,6 +69187,25 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
68259
69187
  };
68260
69188
  Returns: number;
68261
69189
  };
69190
+ logistics_order_overview: {
69191
+ Args: {
69192
+ p_from?: string;
69193
+ p_to?: string;
69194
+ };
69195
+ Returns: {
69196
+ cart_count: number;
69197
+ customer_name: string;
69198
+ delivery_date: string;
69199
+ order_number: string;
69200
+ order_source: string;
69201
+ order_uuid: string;
69202
+ pick_date: string;
69203
+ plant_count: number;
69204
+ printed_at: string;
69205
+ shifted: boolean;
69206
+ status: string;
69207
+ }[];
69208
+ };
68262
69209
  logistics_order_pick_day: {
68263
69210
  Args: {
68264
69211
  p_order_ref: string;
@@ -68271,6 +69218,22 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
68271
69218
  };
68272
69219
  Returns: string;
68273
69220
  };
69221
+ logistics_pick_agenda: {
69222
+ Args: {
69223
+ p_from?: string;
69224
+ p_to?: string;
69225
+ };
69226
+ Returns: {
69227
+ cart_count: number;
69228
+ in_preparation: number;
69229
+ order_count: number;
69230
+ orders: import("../integrations/supabase/types").Json;
69231
+ pick_date: string;
69232
+ plant_count: number;
69233
+ ready: number;
69234
+ shifted_count: number;
69235
+ }[];
69236
+ };
68274
69237
  logistics_pick_email_purpose: {
68275
69238
  Args: never;
68276
69239
  Returns: string;
@@ -68325,6 +69288,13 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
68325
69288
  };
68326
69289
  Returns: undefined;
68327
69290
  };
69291
+ logistics_plan_floriday_order: {
69292
+ Args: {
69293
+ p_buffer_id?: string;
69294
+ p_order_id: string;
69295
+ };
69296
+ Returns: number;
69297
+ };
68328
69298
  logistics_plan_impact_orders: {
68329
69299
  Args: {
68330
69300
  p_order_id: string;
@@ -68430,6 +69400,15 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
68430
69400
  };
68431
69401
  Returns: import("../integrations/supabase/types").Json;
68432
69402
  };
69403
+ logistics_resolve_pick_document: {
69404
+ Args: {
69405
+ _is_herprint: boolean;
69406
+ _queue_item_id: string;
69407
+ _session_id: string;
69408
+ _voorbeeld: boolean;
69409
+ };
69410
+ Returns: import("../integrations/supabase/types").Json;
69411
+ };
68433
69412
  logistics_resolve_settings: {
68434
69413
  Args: {
68435
69414
  p_config_id: string;
@@ -68560,14 +69539,6 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
68560
69539
  };
68561
69540
  Returns: string;
68562
69541
  };
68563
- maps_cron_token: {
68564
- Args: never;
68565
- Returns: string;
68566
- };
68567
- maps_kick_queue: {
68568
- Args: never;
68569
- Returns: undefined;
68570
- };
68571
69542
  mark_offer_clicked: {
68572
69543
  Args: {
68573
69544
  p_code: string;
@@ -68878,6 +69849,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
68878
69849
  };
68879
69850
  pick_enqueue_print_job: {
68880
69851
  Args: {
69852
+ _is_herprint?: boolean;
68881
69853
  _printer_id?: string;
68882
69854
  _queue_item_id: string;
68883
69855
  _session_id?: string;
@@ -68891,6 +69863,13 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
68891
69863
  };
68892
69864
  Returns: import("../integrations/supabase/types").Json;
68893
69865
  };
69866
+ pick_preview_job: {
69867
+ Args: {
69868
+ _queue_item_id: string;
69869
+ _station_slug: string;
69870
+ };
69871
+ Returns: import("../integrations/supabase/types").Json;
69872
+ };
68894
69873
  pick_print_job_status: {
68895
69874
  Args: {
68896
69875
  _job_id: string;
@@ -69068,6 +70047,24 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
69068
70047
  };
69069
70048
  Returns: undefined;
69070
70049
  };
70050
+ print_preview_toestaan: {
70051
+ Args: {
70052
+ _max?: number;
70053
+ _queue_item_id: string;
70054
+ _station_slug: string;
70055
+ _venster_sec?: number;
70056
+ };
70057
+ Returns: import("../integrations/supabase/types").Json;
70058
+ };
70059
+ print_preview_weiger: {
70060
+ Args: {
70061
+ _code: string;
70062
+ _queue_item_id: string;
70063
+ _reden: string;
70064
+ _station_slug: string;
70065
+ };
70066
+ Returns: undefined;
70067
+ };
69071
70068
  process_logistics_event: {
69072
70069
  Args: {
69073
70070
  p_event_id: string;
@@ -69185,6 +70182,14 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
69185
70182
  };
69186
70183
  Returns: undefined;
69187
70184
  };
70185
+ replace_order_carts: {
70186
+ Args: {
70187
+ p_buffer_id: string;
70188
+ p_carts: import("../integrations/supabase/types").Json;
70189
+ p_order_id: string;
70190
+ };
70191
+ Returns: import("../integrations/supabase/types").Json;
70192
+ };
69188
70193
  reset_floriday_sync_cursor: {
69189
70194
  Args: {
69190
70195
  p_connection_id: string;
@@ -69214,6 +70219,12 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
69214
70219
  };
69215
70220
  Returns: string;
69216
70221
  };
70222
+ resolve_print_job_printer_id: {
70223
+ Args: {
70224
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
70225
+ };
70226
+ Returns: string;
70227
+ };
69217
70228
  resolve_product_id_for_item: {
69218
70229
  Args: {
69219
70230
  p_product_name: string;
@@ -69805,7 +70816,7 @@ export declare const completeEngineTask: import("@tanstack/start-client-core").O
69805
70816
  };
69806
70817
  CompositeTypes: { [_ in never]: never; };
69807
70818
  }, {
69808
- PostgrestVersion: "14.17";
70819
+ PostgrestVersion: "14.5";
69809
70820
  }>;
69810
70821
  userId: string;
69811
70822
  claims: import("@supabase/auth-js").User;
@@ -72673,6 +73684,84 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
72673
73684
  };
72674
73685
  Relationships: [];
72675
73686
  };
73687
+ delivery_notes: {
73688
+ Row: {
73689
+ byte_size: number | null;
73690
+ connection_id: string | null;
73691
+ content_type: string;
73692
+ created_at: string;
73693
+ error_message: string | null;
73694
+ fetched_at: string | null;
73695
+ fulfillment_order_id: string | null;
73696
+ http_status: number | null;
73697
+ id: string;
73698
+ label_code: string | null;
73699
+ letter: string | null;
73700
+ load_carrier_index: number | null;
73701
+ load_carrier_type: string | null;
73702
+ order_id: string | null;
73703
+ order_number: string | null;
73704
+ packages: number | null;
73705
+ source: string;
73706
+ status: string;
73707
+ storage_bucket: string;
73708
+ storage_path: string | null;
73709
+ updated_at: string;
73710
+ };
73711
+ Insert: {
73712
+ byte_size?: number | null;
73713
+ connection_id?: string | null;
73714
+ content_type?: string;
73715
+ created_at?: string;
73716
+ error_message?: string | null;
73717
+ fetched_at?: string | null;
73718
+ fulfillment_order_id?: string | null;
73719
+ http_status?: number | null;
73720
+ id?: string;
73721
+ label_code?: string | null;
73722
+ letter?: string | null;
73723
+ load_carrier_index?: number | null;
73724
+ load_carrier_type?: string | null;
73725
+ order_id?: string | null;
73726
+ order_number?: string | null;
73727
+ packages?: number | null;
73728
+ source?: string;
73729
+ status?: string;
73730
+ storage_bucket?: string;
73731
+ storage_path?: string | null;
73732
+ updated_at?: string;
73733
+ };
73734
+ Update: {
73735
+ byte_size?: number | null;
73736
+ connection_id?: string | null;
73737
+ content_type?: string;
73738
+ created_at?: string;
73739
+ error_message?: string | null;
73740
+ fetched_at?: string | null;
73741
+ fulfillment_order_id?: string | null;
73742
+ http_status?: number | null;
73743
+ id?: string;
73744
+ label_code?: string | null;
73745
+ letter?: string | null;
73746
+ load_carrier_index?: number | null;
73747
+ load_carrier_type?: string | null;
73748
+ order_id?: string | null;
73749
+ order_number?: string | null;
73750
+ packages?: number | null;
73751
+ source?: string;
73752
+ status?: string;
73753
+ storage_bucket?: string;
73754
+ storage_path?: string | null;
73755
+ updated_at?: string;
73756
+ };
73757
+ Relationships: [{
73758
+ foreignKeyName: "delivery_notes_order_id_fkey";
73759
+ columns: ["order_id"];
73760
+ isOneToOne: false;
73761
+ referencedRelation: "orders";
73762
+ referencedColumns: ["id"];
73763
+ }];
73764
+ };
72676
73765
  document_bronregels: {
72677
73766
  Row: {
72678
73767
  bron: string;
@@ -75726,10 +76815,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
75726
76815
  };
75727
76816
  floriday_connections: {
75728
76817
  Row: {
75729
- access_token: string | null;
75730
76818
  api_key: string;
75731
- client_id: string;
75732
- client_secret: string;
75733
76819
  created_at: string;
75734
76820
  customers_endpoint: string | null;
75735
76821
  environment: string;
@@ -75744,10 +76830,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
75744
76830
  updated_at: string;
75745
76831
  };
75746
76832
  Insert: {
75747
- access_token?: string | null;
75748
76833
  api_key: string;
75749
- client_id: string;
75750
- client_secret: string;
75751
76834
  created_at?: string;
75752
76835
  customers_endpoint?: string | null;
75753
76836
  environment: string;
@@ -75762,10 +76845,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
75762
76845
  updated_at?: string;
75763
76846
  };
75764
76847
  Update: {
75765
- access_token?: string | null;
75766
76848
  api_key?: string;
75767
- client_id?: string;
75768
- client_secret?: string;
75769
76849
  created_at?: string;
75770
76850
  customers_endpoint?: string | null;
75771
76851
  environment?: string;
@@ -80636,6 +81716,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
80636
81716
  last_error: string | null;
80637
81717
  last_error_at: string | null;
80638
81718
  last_success_at: string | null;
81719
+ provider: string;
80639
81720
  updated_at: string;
80640
81721
  };
80641
81722
  Insert: {
@@ -80647,6 +81728,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
80647
81728
  last_error?: string | null;
80648
81729
  last_error_at?: string | null;
80649
81730
  last_success_at?: string | null;
81731
+ provider?: string;
80650
81732
  updated_at?: string;
80651
81733
  };
80652
81734
  Update: {
@@ -80658,6 +81740,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
80658
81740
  last_error?: string | null;
80659
81741
  last_error_at?: string | null;
80660
81742
  last_success_at?: string | null;
81743
+ provider?: string;
80661
81744
  updated_at?: string;
80662
81745
  };
80663
81746
  Relationships: [];
@@ -83395,6 +84478,39 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83395
84478
  };
83396
84479
  Relationships: [];
83397
84480
  };
84481
+ print_dedupe_events: {
84482
+ Row: {
84483
+ bestaande_job_id: string | null;
84484
+ created_at: string;
84485
+ detail: string | null;
84486
+ documentnaam: string | null;
84487
+ documenttype: string | null;
84488
+ id: string;
84489
+ idempotentie_sleutel: string;
84490
+ reden: string;
84491
+ };
84492
+ Insert: {
84493
+ bestaande_job_id?: string | null;
84494
+ created_at?: string;
84495
+ detail?: string | null;
84496
+ documentnaam?: string | null;
84497
+ documenttype?: string | null;
84498
+ id?: string;
84499
+ idempotentie_sleutel: string;
84500
+ reden: string;
84501
+ };
84502
+ Update: {
84503
+ bestaande_job_id?: string | null;
84504
+ created_at?: string;
84505
+ detail?: string | null;
84506
+ documentnaam?: string | null;
84507
+ documenttype?: string | null;
84508
+ id?: string;
84509
+ idempotentie_sleutel?: string;
84510
+ reden?: string;
84511
+ };
84512
+ Relationships: [];
84513
+ };
83398
84514
  print_job_logs: {
83399
84515
  Row: {
83400
84516
  created_at: string;
@@ -83445,6 +84561,9 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83445
84561
  is_herprint: boolean;
83446
84562
  kopieen: number;
83447
84563
  layout_id: string | null;
84564
+ lokaal_opgeslagen_op: string | null;
84565
+ lokale_pdf_fout: string | null;
84566
+ lokale_pdf_status: string | null;
83448
84567
  opgepakt_op: string | null;
83449
84568
  paginas: number;
83450
84569
  payload: import("../integrations/supabase/types").Json;
@@ -83453,6 +84572,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83453
84572
  pogingen: number;
83454
84573
  printer_id: string | null;
83455
84574
  render_html: string | null;
84575
+ resultaat_pdf_base64: string | null;
83456
84576
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83457
84577
  updated_at: string;
83458
84578
  volgende_poging: string | null;
@@ -83477,6 +84597,9 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83477
84597
  is_herprint?: boolean;
83478
84598
  kopieen?: number;
83479
84599
  layout_id?: string | null;
84600
+ lokaal_opgeslagen_op?: string | null;
84601
+ lokale_pdf_fout?: string | null;
84602
+ lokale_pdf_status?: string | null;
83480
84603
  opgepakt_op?: string | null;
83481
84604
  paginas?: number;
83482
84605
  payload?: import("../integrations/supabase/types").Json;
@@ -83485,6 +84608,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83485
84608
  pogingen?: number;
83486
84609
  printer_id?: string | null;
83487
84610
  render_html?: string | null;
84611
+ resultaat_pdf_base64?: string | null;
83488
84612
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83489
84613
  updated_at?: string;
83490
84614
  volgende_poging?: string | null;
@@ -83509,6 +84633,9 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83509
84633
  is_herprint?: boolean;
83510
84634
  kopieen?: number;
83511
84635
  layout_id?: string | null;
84636
+ lokaal_opgeslagen_op?: string | null;
84637
+ lokale_pdf_fout?: string | null;
84638
+ lokale_pdf_status?: string | null;
83512
84639
  opgepakt_op?: string | null;
83513
84640
  paginas?: number;
83514
84641
  payload?: import("../integrations/supabase/types").Json;
@@ -83517,6 +84644,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83517
84644
  pogingen?: number;
83518
84645
  printer_id?: string | null;
83519
84646
  render_html?: string | null;
84647
+ resultaat_pdf_base64?: string | null;
83520
84648
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83521
84649
  updated_at?: string;
83522
84650
  volgende_poging?: string | null;
@@ -83635,6 +84763,39 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83635
84763
  };
83636
84764
  Relationships: [];
83637
84765
  };
84766
+ print_preview_events: {
84767
+ Row: {
84768
+ code: string | null;
84769
+ created_at: string;
84770
+ detail: import("../integrations/supabase/types").Json;
84771
+ id: string;
84772
+ queue_item_id: string | null;
84773
+ reden: string | null;
84774
+ station_slug: string | null;
84775
+ uitkomst: string;
84776
+ };
84777
+ Insert: {
84778
+ code?: string | null;
84779
+ created_at?: string;
84780
+ detail?: import("../integrations/supabase/types").Json;
84781
+ id?: string;
84782
+ queue_item_id?: string | null;
84783
+ reden?: string | null;
84784
+ station_slug?: string | null;
84785
+ uitkomst?: string;
84786
+ };
84787
+ Update: {
84788
+ code?: string | null;
84789
+ created_at?: string;
84790
+ detail?: import("../integrations/supabase/types").Json;
84791
+ id?: string;
84792
+ queue_item_id?: string | null;
84793
+ reden?: string | null;
84794
+ station_slug?: string | null;
84795
+ uitkomst?: string;
84796
+ };
84797
+ Relationships: [];
84798
+ };
83638
84799
  print_queue_runners: {
83639
84800
  Row: {
83640
84801
  actief: boolean;
@@ -83874,6 +85035,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83874
85035
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
83875
85036
  online: boolean;
83876
85037
  papierformaat: string;
85038
+ pdf_map: string | null;
83877
85039
  poort: number | null;
83878
85040
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83879
85041
  systeemnaam: string;
@@ -83899,6 +85061,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83899
85061
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83900
85062
  online?: boolean;
83901
85063
  papierformaat?: string;
85064
+ pdf_map?: string | null;
83902
85065
  poort?: number | null;
83903
85066
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83904
85067
  systeemnaam?: string;
@@ -83924,6 +85087,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
83924
85087
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83925
85088
  online?: boolean;
83926
85089
  papierformaat?: string;
85090
+ pdf_map?: string | null;
83927
85091
  poort?: number | null;
83928
85092
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83929
85093
  systeemnaam?: string;
@@ -90180,6 +91344,9 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
90180
91344
  is_herprint: boolean;
90181
91345
  kopieen: number;
90182
91346
  layout_id: string | null;
91347
+ lokaal_opgeslagen_op: string | null;
91348
+ lokale_pdf_fout: string | null;
91349
+ lokale_pdf_status: string | null;
90183
91350
  opgepakt_op: string | null;
90184
91351
  paginas: number;
90185
91352
  payload: import("../integrations/supabase/types").Json;
@@ -90188,6 +91355,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
90188
91355
  pogingen: number;
90189
91356
  printer_id: string | null;
90190
91357
  render_html: string | null;
91358
+ resultaat_pdf_base64: string | null;
90191
91359
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90192
91360
  updated_at: string;
90193
91361
  volgende_poging: string | null;
@@ -90279,6 +91447,53 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
90279
91447
  isSetofReturn: true;
90280
91448
  };
90281
91449
  };
91450
+ claim_pdf_print_jobs: {
91451
+ Args: {
91452
+ _max?: number;
91453
+ };
91454
+ Returns: {
91455
+ agent_id: string | null;
91456
+ bron_job_id: string | null;
91457
+ created_at: string;
91458
+ documentnaam: string;
91459
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
91460
+ extern_job_id: string | null;
91461
+ foutmelding: string | null;
91462
+ gebruiker_id: string | null;
91463
+ gebruiker_naam: string;
91464
+ gebruikte_bron: string | null;
91465
+ gebruikte_layout_id: string | null;
91466
+ gestart_op: string | null;
91467
+ herkomst: string | null;
91468
+ id: string;
91469
+ idempotentie_sleutel: string | null;
91470
+ is_herprint: boolean;
91471
+ kopieen: number;
91472
+ layout_id: string | null;
91473
+ lokaal_opgeslagen_op: string | null;
91474
+ lokale_pdf_fout: string | null;
91475
+ lokale_pdf_status: string | null;
91476
+ opgepakt_op: string | null;
91477
+ paginas: number;
91478
+ payload: import("../integrations/supabase/types").Json;
91479
+ pdf_base64: string | null;
91480
+ pdf_url: string | null;
91481
+ pogingen: number;
91482
+ printer_id: string | null;
91483
+ render_html: string | null;
91484
+ resultaat_pdf_base64: string | null;
91485
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
91486
+ updated_at: string;
91487
+ volgende_poging: string | null;
91488
+ voltooid_op: string | null;
91489
+ }[];
91490
+ SetofOptions: {
91491
+ from: "*";
91492
+ to: "print_jobs";
91493
+ isOneToOne: false;
91494
+ isSetofReturn: true;
91495
+ };
91496
+ };
90282
91497
  claim_print_jobs: {
90283
91498
  Args: {
90284
91499
  _agent_id: string;
@@ -90303,6 +91518,9 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
90303
91518
  is_herprint: boolean;
90304
91519
  kopieen: number;
90305
91520
  layout_id: string | null;
91521
+ lokaal_opgeslagen_op: string | null;
91522
+ lokale_pdf_fout: string | null;
91523
+ lokale_pdf_status: string | null;
90306
91524
  opgepakt_op: string | null;
90307
91525
  paginas: number;
90308
91526
  payload: import("../integrations/supabase/types").Json;
@@ -90311,6 +91529,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
90311
91529
  pogingen: number;
90312
91530
  printer_id: string | null;
90313
91531
  render_html: string | null;
91532
+ resultaat_pdf_base64: string | null;
90314
91533
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90315
91534
  updated_at: string;
90316
91535
  volgende_poging: string | null;
@@ -90451,6 +91670,8 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
90451
91670
  order_id: string;
90452
91671
  order_source: string;
90453
91672
  pick_date: string;
91673
+ printed_at: string;
91674
+ printed_today: boolean;
90454
91675
  status: string;
90455
91676
  }[];
90456
91677
  };
@@ -91159,6 +92380,10 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
91159
92380
  };
91160
92381
  Returns: number;
91161
92382
  };
92383
+ logistics_cancel_orphan_tasks: {
92384
+ Args: never;
92385
+ Returns: number;
92386
+ };
91162
92387
  logistics_capacity_day_check: {
91163
92388
  Args: {
91164
92389
  p_from?: string;
@@ -91179,6 +92404,25 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
91179
92404
  };
91180
92405
  Returns: number;
91181
92406
  };
92407
+ logistics_cart_index: {
92408
+ Args: {
92409
+ p_from?: string;
92410
+ p_to?: string;
92411
+ };
92412
+ Returns: {
92413
+ cart_id: string;
92414
+ cart_index: number;
92415
+ cart_label: string;
92416
+ is_shared: boolean;
92417
+ order_number: string;
92418
+ order_source: string;
92419
+ order_uuid: string;
92420
+ pick_date: string;
92421
+ printed_at: string;
92422
+ shifted: boolean;
92423
+ task_status: string;
92424
+ }[];
92425
+ };
91182
92426
  logistics_check_order_allowed: {
91183
92427
  Args: {
91184
92428
  p_lines: import("../integrations/supabase/types").Json;
@@ -91327,6 +92571,17 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
91327
92571
  isSetofReturn: false;
91328
92572
  };
91329
92573
  };
92574
+ logistics_consistency_check: {
92575
+ Args: never;
92576
+ Returns: {
92577
+ agenda_carts: number;
92578
+ control_carts: number;
92579
+ ok: boolean;
92580
+ orphan_tasks: number;
92581
+ pick_date: string;
92582
+ raw_carts: number;
92583
+ }[];
92584
+ };
91330
92585
  logistics_delay_customer_email: {
91331
92586
  Args: {
91332
92587
  p_customer: string;
@@ -91416,6 +92671,16 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
91416
92671
  isSetofReturn: false;
91417
92672
  };
91418
92673
  };
92674
+ logistics_floriday_cart_plan: {
92675
+ Args: {
92676
+ p_order_id: string;
92677
+ };
92678
+ Returns: {
92679
+ carrier_type: string;
92680
+ idx: number;
92681
+ packages: number;
92682
+ }[];
92683
+ };
91419
92684
  logistics_floriday_claim_pushes: {
91420
92685
  Args: {
91421
92686
  _lease_seconds?: number;
@@ -91520,6 +92785,25 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
91520
92785
  };
91521
92786
  Returns: number;
91522
92787
  };
92788
+ logistics_order_overview: {
92789
+ Args: {
92790
+ p_from?: string;
92791
+ p_to?: string;
92792
+ };
92793
+ Returns: {
92794
+ cart_count: number;
92795
+ customer_name: string;
92796
+ delivery_date: string;
92797
+ order_number: string;
92798
+ order_source: string;
92799
+ order_uuid: string;
92800
+ pick_date: string;
92801
+ plant_count: number;
92802
+ printed_at: string;
92803
+ shifted: boolean;
92804
+ status: string;
92805
+ }[];
92806
+ };
91523
92807
  logistics_order_pick_day: {
91524
92808
  Args: {
91525
92809
  p_order_ref: string;
@@ -91532,6 +92816,22 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
91532
92816
  };
91533
92817
  Returns: string;
91534
92818
  };
92819
+ logistics_pick_agenda: {
92820
+ Args: {
92821
+ p_from?: string;
92822
+ p_to?: string;
92823
+ };
92824
+ Returns: {
92825
+ cart_count: number;
92826
+ in_preparation: number;
92827
+ order_count: number;
92828
+ orders: import("../integrations/supabase/types").Json;
92829
+ pick_date: string;
92830
+ plant_count: number;
92831
+ ready: number;
92832
+ shifted_count: number;
92833
+ }[];
92834
+ };
91535
92835
  logistics_pick_email_purpose: {
91536
92836
  Args: never;
91537
92837
  Returns: string;
@@ -91586,6 +92886,13 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
91586
92886
  };
91587
92887
  Returns: undefined;
91588
92888
  };
92889
+ logistics_plan_floriday_order: {
92890
+ Args: {
92891
+ p_buffer_id?: string;
92892
+ p_order_id: string;
92893
+ };
92894
+ Returns: number;
92895
+ };
91589
92896
  logistics_plan_impact_orders: {
91590
92897
  Args: {
91591
92898
  p_order_id: string;
@@ -91691,6 +92998,15 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
91691
92998
  };
91692
92999
  Returns: import("../integrations/supabase/types").Json;
91693
93000
  };
93001
+ logistics_resolve_pick_document: {
93002
+ Args: {
93003
+ _is_herprint: boolean;
93004
+ _queue_item_id: string;
93005
+ _session_id: string;
93006
+ _voorbeeld: boolean;
93007
+ };
93008
+ Returns: import("../integrations/supabase/types").Json;
93009
+ };
91694
93010
  logistics_resolve_settings: {
91695
93011
  Args: {
91696
93012
  p_config_id: string;
@@ -91821,14 +93137,6 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
91821
93137
  };
91822
93138
  Returns: string;
91823
93139
  };
91824
- maps_cron_token: {
91825
- Args: never;
91826
- Returns: string;
91827
- };
91828
- maps_kick_queue: {
91829
- Args: never;
91830
- Returns: undefined;
91831
- };
91832
93140
  mark_offer_clicked: {
91833
93141
  Args: {
91834
93142
  p_code: string;
@@ -92139,6 +93447,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
92139
93447
  };
92140
93448
  pick_enqueue_print_job: {
92141
93449
  Args: {
93450
+ _is_herprint?: boolean;
92142
93451
  _printer_id?: string;
92143
93452
  _queue_item_id: string;
92144
93453
  _session_id?: string;
@@ -92152,6 +93461,13 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
92152
93461
  };
92153
93462
  Returns: import("../integrations/supabase/types").Json;
92154
93463
  };
93464
+ pick_preview_job: {
93465
+ Args: {
93466
+ _queue_item_id: string;
93467
+ _station_slug: string;
93468
+ };
93469
+ Returns: import("../integrations/supabase/types").Json;
93470
+ };
92155
93471
  pick_print_job_status: {
92156
93472
  Args: {
92157
93473
  _job_id: string;
@@ -92329,6 +93645,24 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
92329
93645
  };
92330
93646
  Returns: undefined;
92331
93647
  };
93648
+ print_preview_toestaan: {
93649
+ Args: {
93650
+ _max?: number;
93651
+ _queue_item_id: string;
93652
+ _station_slug: string;
93653
+ _venster_sec?: number;
93654
+ };
93655
+ Returns: import("../integrations/supabase/types").Json;
93656
+ };
93657
+ print_preview_weiger: {
93658
+ Args: {
93659
+ _code: string;
93660
+ _queue_item_id: string;
93661
+ _reden: string;
93662
+ _station_slug: string;
93663
+ };
93664
+ Returns: undefined;
93665
+ };
92332
93666
  process_logistics_event: {
92333
93667
  Args: {
92334
93668
  p_event_id: string;
@@ -92446,6 +93780,14 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
92446
93780
  };
92447
93781
  Returns: undefined;
92448
93782
  };
93783
+ replace_order_carts: {
93784
+ Args: {
93785
+ p_buffer_id: string;
93786
+ p_carts: import("../integrations/supabase/types").Json;
93787
+ p_order_id: string;
93788
+ };
93789
+ Returns: import("../integrations/supabase/types").Json;
93790
+ };
92449
93791
  reset_floriday_sync_cursor: {
92450
93792
  Args: {
92451
93793
  p_connection_id: string;
@@ -92475,6 +93817,12 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
92475
93817
  };
92476
93818
  Returns: string;
92477
93819
  };
93820
+ resolve_print_job_printer_id: {
93821
+ Args: {
93822
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
93823
+ };
93824
+ Returns: string;
93825
+ };
92478
93826
  resolve_product_id_for_item: {
92479
93827
  Args: {
92480
93828
  p_product_name: string;
@@ -93066,7 +94414,7 @@ export declare const getEngineBufferForOrder: import("@tanstack/start-client-cor
93066
94414
  };
93067
94415
  CompositeTypes: { [_ in never]: never; };
93068
94416
  }, {
93069
- PostgrestVersion: "14.17";
94417
+ PostgrestVersion: "14.5";
93070
94418
  }>;
93071
94419
  userId: string;
93072
94420
  claims: import("@supabase/auth-js").User;
@@ -95948,6 +97296,84 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
95948
97296
  };
95949
97297
  Relationships: [];
95950
97298
  };
97299
+ delivery_notes: {
97300
+ Row: {
97301
+ byte_size: number | null;
97302
+ connection_id: string | null;
97303
+ content_type: string;
97304
+ created_at: string;
97305
+ error_message: string | null;
97306
+ fetched_at: string | null;
97307
+ fulfillment_order_id: string | null;
97308
+ http_status: number | null;
97309
+ id: string;
97310
+ label_code: string | null;
97311
+ letter: string | null;
97312
+ load_carrier_index: number | null;
97313
+ load_carrier_type: string | null;
97314
+ order_id: string | null;
97315
+ order_number: string | null;
97316
+ packages: number | null;
97317
+ source: string;
97318
+ status: string;
97319
+ storage_bucket: string;
97320
+ storage_path: string | null;
97321
+ updated_at: string;
97322
+ };
97323
+ Insert: {
97324
+ byte_size?: number | null;
97325
+ connection_id?: string | null;
97326
+ content_type?: string;
97327
+ created_at?: string;
97328
+ error_message?: string | null;
97329
+ fetched_at?: string | null;
97330
+ fulfillment_order_id?: string | null;
97331
+ http_status?: number | null;
97332
+ id?: string;
97333
+ label_code?: string | null;
97334
+ letter?: string | null;
97335
+ load_carrier_index?: number | null;
97336
+ load_carrier_type?: string | null;
97337
+ order_id?: string | null;
97338
+ order_number?: string | null;
97339
+ packages?: number | null;
97340
+ source?: string;
97341
+ status?: string;
97342
+ storage_bucket?: string;
97343
+ storage_path?: string | null;
97344
+ updated_at?: string;
97345
+ };
97346
+ Update: {
97347
+ byte_size?: number | null;
97348
+ connection_id?: string | null;
97349
+ content_type?: string;
97350
+ created_at?: string;
97351
+ error_message?: string | null;
97352
+ fetched_at?: string | null;
97353
+ fulfillment_order_id?: string | null;
97354
+ http_status?: number | null;
97355
+ id?: string;
97356
+ label_code?: string | null;
97357
+ letter?: string | null;
97358
+ load_carrier_index?: number | null;
97359
+ load_carrier_type?: string | null;
97360
+ order_id?: string | null;
97361
+ order_number?: string | null;
97362
+ packages?: number | null;
97363
+ source?: string;
97364
+ status?: string;
97365
+ storage_bucket?: string;
97366
+ storage_path?: string | null;
97367
+ updated_at?: string;
97368
+ };
97369
+ Relationships: [{
97370
+ foreignKeyName: "delivery_notes_order_id_fkey";
97371
+ columns: ["order_id"];
97372
+ isOneToOne: false;
97373
+ referencedRelation: "orders";
97374
+ referencedColumns: ["id"];
97375
+ }];
97376
+ };
95951
97377
  document_bronregels: {
95952
97378
  Row: {
95953
97379
  bron: string;
@@ -99001,10 +100427,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
99001
100427
  };
99002
100428
  floriday_connections: {
99003
100429
  Row: {
99004
- access_token: string | null;
99005
100430
  api_key: string;
99006
- client_id: string;
99007
- client_secret: string;
99008
100431
  created_at: string;
99009
100432
  customers_endpoint: string | null;
99010
100433
  environment: string;
@@ -99019,10 +100442,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
99019
100442
  updated_at: string;
99020
100443
  };
99021
100444
  Insert: {
99022
- access_token?: string | null;
99023
100445
  api_key: string;
99024
- client_id: string;
99025
- client_secret: string;
99026
100446
  created_at?: string;
99027
100447
  customers_endpoint?: string | null;
99028
100448
  environment: string;
@@ -99037,10 +100457,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
99037
100457
  updated_at?: string;
99038
100458
  };
99039
100459
  Update: {
99040
- access_token?: string | null;
99041
100460
  api_key?: string;
99042
- client_id?: string;
99043
- client_secret?: string;
99044
100461
  created_at?: string;
99045
100462
  customers_endpoint?: string | null;
99046
100463
  environment?: string;
@@ -103911,6 +105328,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
103911
105328
  last_error: string | null;
103912
105329
  last_error_at: string | null;
103913
105330
  last_success_at: string | null;
105331
+ provider: string;
103914
105332
  updated_at: string;
103915
105333
  };
103916
105334
  Insert: {
@@ -103922,6 +105340,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
103922
105340
  last_error?: string | null;
103923
105341
  last_error_at?: string | null;
103924
105342
  last_success_at?: string | null;
105343
+ provider?: string;
103925
105344
  updated_at?: string;
103926
105345
  };
103927
105346
  Update: {
@@ -103933,6 +105352,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
103933
105352
  last_error?: string | null;
103934
105353
  last_error_at?: string | null;
103935
105354
  last_success_at?: string | null;
105355
+ provider?: string;
103936
105356
  updated_at?: string;
103937
105357
  };
103938
105358
  Relationships: [];
@@ -106670,6 +108090,39 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
106670
108090
  };
106671
108091
  Relationships: [];
106672
108092
  };
108093
+ print_dedupe_events: {
108094
+ Row: {
108095
+ bestaande_job_id: string | null;
108096
+ created_at: string;
108097
+ detail: string | null;
108098
+ documentnaam: string | null;
108099
+ documenttype: string | null;
108100
+ id: string;
108101
+ idempotentie_sleutel: string;
108102
+ reden: string;
108103
+ };
108104
+ Insert: {
108105
+ bestaande_job_id?: string | null;
108106
+ created_at?: string;
108107
+ detail?: string | null;
108108
+ documentnaam?: string | null;
108109
+ documenttype?: string | null;
108110
+ id?: string;
108111
+ idempotentie_sleutel: string;
108112
+ reden: string;
108113
+ };
108114
+ Update: {
108115
+ bestaande_job_id?: string | null;
108116
+ created_at?: string;
108117
+ detail?: string | null;
108118
+ documentnaam?: string | null;
108119
+ documenttype?: string | null;
108120
+ id?: string;
108121
+ idempotentie_sleutel?: string;
108122
+ reden?: string;
108123
+ };
108124
+ Relationships: [];
108125
+ };
106673
108126
  print_job_logs: {
106674
108127
  Row: {
106675
108128
  created_at: string;
@@ -106720,6 +108173,9 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
106720
108173
  is_herprint: boolean;
106721
108174
  kopieen: number;
106722
108175
  layout_id: string | null;
108176
+ lokaal_opgeslagen_op: string | null;
108177
+ lokale_pdf_fout: string | null;
108178
+ lokale_pdf_status: string | null;
106723
108179
  opgepakt_op: string | null;
106724
108180
  paginas: number;
106725
108181
  payload: import("../integrations/supabase/types").Json;
@@ -106728,6 +108184,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
106728
108184
  pogingen: number;
106729
108185
  printer_id: string | null;
106730
108186
  render_html: string | null;
108187
+ resultaat_pdf_base64: string | null;
106731
108188
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
106732
108189
  updated_at: string;
106733
108190
  volgende_poging: string | null;
@@ -106752,6 +108209,9 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
106752
108209
  is_herprint?: boolean;
106753
108210
  kopieen?: number;
106754
108211
  layout_id?: string | null;
108212
+ lokaal_opgeslagen_op?: string | null;
108213
+ lokale_pdf_fout?: string | null;
108214
+ lokale_pdf_status?: string | null;
106755
108215
  opgepakt_op?: string | null;
106756
108216
  paginas?: number;
106757
108217
  payload?: import("../integrations/supabase/types").Json;
@@ -106760,6 +108220,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
106760
108220
  pogingen?: number;
106761
108221
  printer_id?: string | null;
106762
108222
  render_html?: string | null;
108223
+ resultaat_pdf_base64?: string | null;
106763
108224
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
106764
108225
  updated_at?: string;
106765
108226
  volgende_poging?: string | null;
@@ -106784,6 +108245,9 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
106784
108245
  is_herprint?: boolean;
106785
108246
  kopieen?: number;
106786
108247
  layout_id?: string | null;
108248
+ lokaal_opgeslagen_op?: string | null;
108249
+ lokale_pdf_fout?: string | null;
108250
+ lokale_pdf_status?: string | null;
106787
108251
  opgepakt_op?: string | null;
106788
108252
  paginas?: number;
106789
108253
  payload?: import("../integrations/supabase/types").Json;
@@ -106792,6 +108256,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
106792
108256
  pogingen?: number;
106793
108257
  printer_id?: string | null;
106794
108258
  render_html?: string | null;
108259
+ resultaat_pdf_base64?: string | null;
106795
108260
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
106796
108261
  updated_at?: string;
106797
108262
  volgende_poging?: string | null;
@@ -106910,6 +108375,39 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
106910
108375
  };
106911
108376
  Relationships: [];
106912
108377
  };
108378
+ print_preview_events: {
108379
+ Row: {
108380
+ code: string | null;
108381
+ created_at: string;
108382
+ detail: import("../integrations/supabase/types").Json;
108383
+ id: string;
108384
+ queue_item_id: string | null;
108385
+ reden: string | null;
108386
+ station_slug: string | null;
108387
+ uitkomst: string;
108388
+ };
108389
+ Insert: {
108390
+ code?: string | null;
108391
+ created_at?: string;
108392
+ detail?: import("../integrations/supabase/types").Json;
108393
+ id?: string;
108394
+ queue_item_id?: string | null;
108395
+ reden?: string | null;
108396
+ station_slug?: string | null;
108397
+ uitkomst?: string;
108398
+ };
108399
+ Update: {
108400
+ code?: string | null;
108401
+ created_at?: string;
108402
+ detail?: import("../integrations/supabase/types").Json;
108403
+ id?: string;
108404
+ queue_item_id?: string | null;
108405
+ reden?: string | null;
108406
+ station_slug?: string | null;
108407
+ uitkomst?: string;
108408
+ };
108409
+ Relationships: [];
108410
+ };
106913
108411
  print_queue_runners: {
106914
108412
  Row: {
106915
108413
  actief: boolean;
@@ -107149,6 +108647,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
107149
108647
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
107150
108648
  online: boolean;
107151
108649
  papierformaat: string;
108650
+ pdf_map: string | null;
107152
108651
  poort: number | null;
107153
108652
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107154
108653
  systeemnaam: string;
@@ -107174,6 +108673,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
107174
108673
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
107175
108674
  online?: boolean;
107176
108675
  papierformaat?: string;
108676
+ pdf_map?: string | null;
107177
108677
  poort?: number | null;
107178
108678
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107179
108679
  systeemnaam?: string;
@@ -107199,6 +108699,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
107199
108699
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
107200
108700
  online?: boolean;
107201
108701
  papierformaat?: string;
108702
+ pdf_map?: string | null;
107202
108703
  poort?: number | null;
107203
108704
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107204
108705
  systeemnaam?: string;
@@ -113455,6 +114956,9 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
113455
114956
  is_herprint: boolean;
113456
114957
  kopieen: number;
113457
114958
  layout_id: string | null;
114959
+ lokaal_opgeslagen_op: string | null;
114960
+ lokale_pdf_fout: string | null;
114961
+ lokale_pdf_status: string | null;
113458
114962
  opgepakt_op: string | null;
113459
114963
  paginas: number;
113460
114964
  payload: import("../integrations/supabase/types").Json;
@@ -113463,6 +114967,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
113463
114967
  pogingen: number;
113464
114968
  printer_id: string | null;
113465
114969
  render_html: string | null;
114970
+ resultaat_pdf_base64: string | null;
113466
114971
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
113467
114972
  updated_at: string;
113468
114973
  volgende_poging: string | null;
@@ -113554,6 +115059,53 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
113554
115059
  isSetofReturn: true;
113555
115060
  };
113556
115061
  };
115062
+ claim_pdf_print_jobs: {
115063
+ Args: {
115064
+ _max?: number;
115065
+ };
115066
+ Returns: {
115067
+ agent_id: string | null;
115068
+ bron_job_id: string | null;
115069
+ created_at: string;
115070
+ documentnaam: string;
115071
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
115072
+ extern_job_id: string | null;
115073
+ foutmelding: string | null;
115074
+ gebruiker_id: string | null;
115075
+ gebruiker_naam: string;
115076
+ gebruikte_bron: string | null;
115077
+ gebruikte_layout_id: string | null;
115078
+ gestart_op: string | null;
115079
+ herkomst: string | null;
115080
+ id: string;
115081
+ idempotentie_sleutel: string | null;
115082
+ is_herprint: boolean;
115083
+ kopieen: number;
115084
+ layout_id: string | null;
115085
+ lokaal_opgeslagen_op: string | null;
115086
+ lokale_pdf_fout: string | null;
115087
+ lokale_pdf_status: string | null;
115088
+ opgepakt_op: string | null;
115089
+ paginas: number;
115090
+ payload: import("../integrations/supabase/types").Json;
115091
+ pdf_base64: string | null;
115092
+ pdf_url: string | null;
115093
+ pogingen: number;
115094
+ printer_id: string | null;
115095
+ render_html: string | null;
115096
+ resultaat_pdf_base64: string | null;
115097
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
115098
+ updated_at: string;
115099
+ volgende_poging: string | null;
115100
+ voltooid_op: string | null;
115101
+ }[];
115102
+ SetofOptions: {
115103
+ from: "*";
115104
+ to: "print_jobs";
115105
+ isOneToOne: false;
115106
+ isSetofReturn: true;
115107
+ };
115108
+ };
113557
115109
  claim_print_jobs: {
113558
115110
  Args: {
113559
115111
  _agent_id: string;
@@ -113578,6 +115130,9 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
113578
115130
  is_herprint: boolean;
113579
115131
  kopieen: number;
113580
115132
  layout_id: string | null;
115133
+ lokaal_opgeslagen_op: string | null;
115134
+ lokale_pdf_fout: string | null;
115135
+ lokale_pdf_status: string | null;
113581
115136
  opgepakt_op: string | null;
113582
115137
  paginas: number;
113583
115138
  payload: import("../integrations/supabase/types").Json;
@@ -113586,6 +115141,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
113586
115141
  pogingen: number;
113587
115142
  printer_id: string | null;
113588
115143
  render_html: string | null;
115144
+ resultaat_pdf_base64: string | null;
113589
115145
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
113590
115146
  updated_at: string;
113591
115147
  volgende_poging: string | null;
@@ -113726,6 +115282,8 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
113726
115282
  order_id: string;
113727
115283
  order_source: string;
113728
115284
  pick_date: string;
115285
+ printed_at: string;
115286
+ printed_today: boolean;
113729
115287
  status: string;
113730
115288
  }[];
113731
115289
  };
@@ -114434,6 +115992,10 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
114434
115992
  };
114435
115993
  Returns: number;
114436
115994
  };
115995
+ logistics_cancel_orphan_tasks: {
115996
+ Args: never;
115997
+ Returns: number;
115998
+ };
114437
115999
  logistics_capacity_day_check: {
114438
116000
  Args: {
114439
116001
  p_from?: string;
@@ -114454,6 +116016,25 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
114454
116016
  };
114455
116017
  Returns: number;
114456
116018
  };
116019
+ logistics_cart_index: {
116020
+ Args: {
116021
+ p_from?: string;
116022
+ p_to?: string;
116023
+ };
116024
+ Returns: {
116025
+ cart_id: string;
116026
+ cart_index: number;
116027
+ cart_label: string;
116028
+ is_shared: boolean;
116029
+ order_number: string;
116030
+ order_source: string;
116031
+ order_uuid: string;
116032
+ pick_date: string;
116033
+ printed_at: string;
116034
+ shifted: boolean;
116035
+ task_status: string;
116036
+ }[];
116037
+ };
114457
116038
  logistics_check_order_allowed: {
114458
116039
  Args: {
114459
116040
  p_lines: import("../integrations/supabase/types").Json;
@@ -114602,6 +116183,17 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
114602
116183
  isSetofReturn: false;
114603
116184
  };
114604
116185
  };
116186
+ logistics_consistency_check: {
116187
+ Args: never;
116188
+ Returns: {
116189
+ agenda_carts: number;
116190
+ control_carts: number;
116191
+ ok: boolean;
116192
+ orphan_tasks: number;
116193
+ pick_date: string;
116194
+ raw_carts: number;
116195
+ }[];
116196
+ };
114605
116197
  logistics_delay_customer_email: {
114606
116198
  Args: {
114607
116199
  p_customer: string;
@@ -114691,6 +116283,16 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
114691
116283
  isSetofReturn: false;
114692
116284
  };
114693
116285
  };
116286
+ logistics_floriday_cart_plan: {
116287
+ Args: {
116288
+ p_order_id: string;
116289
+ };
116290
+ Returns: {
116291
+ carrier_type: string;
116292
+ idx: number;
116293
+ packages: number;
116294
+ }[];
116295
+ };
114694
116296
  logistics_floriday_claim_pushes: {
114695
116297
  Args: {
114696
116298
  _lease_seconds?: number;
@@ -114795,6 +116397,25 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
114795
116397
  };
114796
116398
  Returns: number;
114797
116399
  };
116400
+ logistics_order_overview: {
116401
+ Args: {
116402
+ p_from?: string;
116403
+ p_to?: string;
116404
+ };
116405
+ Returns: {
116406
+ cart_count: number;
116407
+ customer_name: string;
116408
+ delivery_date: string;
116409
+ order_number: string;
116410
+ order_source: string;
116411
+ order_uuid: string;
116412
+ pick_date: string;
116413
+ plant_count: number;
116414
+ printed_at: string;
116415
+ shifted: boolean;
116416
+ status: string;
116417
+ }[];
116418
+ };
114798
116419
  logistics_order_pick_day: {
114799
116420
  Args: {
114800
116421
  p_order_ref: string;
@@ -114807,6 +116428,22 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
114807
116428
  };
114808
116429
  Returns: string;
114809
116430
  };
116431
+ logistics_pick_agenda: {
116432
+ Args: {
116433
+ p_from?: string;
116434
+ p_to?: string;
116435
+ };
116436
+ Returns: {
116437
+ cart_count: number;
116438
+ in_preparation: number;
116439
+ order_count: number;
116440
+ orders: import("../integrations/supabase/types").Json;
116441
+ pick_date: string;
116442
+ plant_count: number;
116443
+ ready: number;
116444
+ shifted_count: number;
116445
+ }[];
116446
+ };
114810
116447
  logistics_pick_email_purpose: {
114811
116448
  Args: never;
114812
116449
  Returns: string;
@@ -114861,6 +116498,13 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
114861
116498
  };
114862
116499
  Returns: undefined;
114863
116500
  };
116501
+ logistics_plan_floriday_order: {
116502
+ Args: {
116503
+ p_buffer_id?: string;
116504
+ p_order_id: string;
116505
+ };
116506
+ Returns: number;
116507
+ };
114864
116508
  logistics_plan_impact_orders: {
114865
116509
  Args: {
114866
116510
  p_order_id: string;
@@ -114966,6 +116610,15 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
114966
116610
  };
114967
116611
  Returns: import("../integrations/supabase/types").Json;
114968
116612
  };
116613
+ logistics_resolve_pick_document: {
116614
+ Args: {
116615
+ _is_herprint: boolean;
116616
+ _queue_item_id: string;
116617
+ _session_id: string;
116618
+ _voorbeeld: boolean;
116619
+ };
116620
+ Returns: import("../integrations/supabase/types").Json;
116621
+ };
114969
116622
  logistics_resolve_settings: {
114970
116623
  Args: {
114971
116624
  p_config_id: string;
@@ -115096,14 +116749,6 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
115096
116749
  };
115097
116750
  Returns: string;
115098
116751
  };
115099
- maps_cron_token: {
115100
- Args: never;
115101
- Returns: string;
115102
- };
115103
- maps_kick_queue: {
115104
- Args: never;
115105
- Returns: undefined;
115106
- };
115107
116752
  mark_offer_clicked: {
115108
116753
  Args: {
115109
116754
  p_code: string;
@@ -115414,6 +117059,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
115414
117059
  };
115415
117060
  pick_enqueue_print_job: {
115416
117061
  Args: {
117062
+ _is_herprint?: boolean;
115417
117063
  _printer_id?: string;
115418
117064
  _queue_item_id: string;
115419
117065
  _session_id?: string;
@@ -115427,6 +117073,13 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
115427
117073
  };
115428
117074
  Returns: import("../integrations/supabase/types").Json;
115429
117075
  };
117076
+ pick_preview_job: {
117077
+ Args: {
117078
+ _queue_item_id: string;
117079
+ _station_slug: string;
117080
+ };
117081
+ Returns: import("../integrations/supabase/types").Json;
117082
+ };
115430
117083
  pick_print_job_status: {
115431
117084
  Args: {
115432
117085
  _job_id: string;
@@ -115604,6 +117257,24 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
115604
117257
  };
115605
117258
  Returns: undefined;
115606
117259
  };
117260
+ print_preview_toestaan: {
117261
+ Args: {
117262
+ _max?: number;
117263
+ _queue_item_id: string;
117264
+ _station_slug: string;
117265
+ _venster_sec?: number;
117266
+ };
117267
+ Returns: import("../integrations/supabase/types").Json;
117268
+ };
117269
+ print_preview_weiger: {
117270
+ Args: {
117271
+ _code: string;
117272
+ _queue_item_id: string;
117273
+ _reden: string;
117274
+ _station_slug: string;
117275
+ };
117276
+ Returns: undefined;
117277
+ };
115607
117278
  process_logistics_event: {
115608
117279
  Args: {
115609
117280
  p_event_id: string;
@@ -115721,6 +117392,14 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
115721
117392
  };
115722
117393
  Returns: undefined;
115723
117394
  };
117395
+ replace_order_carts: {
117396
+ Args: {
117397
+ p_buffer_id: string;
117398
+ p_carts: import("../integrations/supabase/types").Json;
117399
+ p_order_id: string;
117400
+ };
117401
+ Returns: import("../integrations/supabase/types").Json;
117402
+ };
115724
117403
  reset_floriday_sync_cursor: {
115725
117404
  Args: {
115726
117405
  p_connection_id: string;
@@ -115750,6 +117429,12 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
115750
117429
  };
115751
117430
  Returns: string;
115752
117431
  };
117432
+ resolve_print_job_printer_id: {
117433
+ Args: {
117434
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
117435
+ };
117436
+ Returns: string;
117437
+ };
115753
117438
  resolve_product_id_for_item: {
115754
117439
  Args: {
115755
117440
  p_product_name: string;
@@ -116341,7 +118026,7 @@ export declare const releaseEngineBuffer: import("@tanstack/start-client-core").
116341
118026
  };
116342
118027
  CompositeTypes: { [_ in never]: never; };
116343
118028
  }, {
116344
- PostgrestVersion: "14.17";
118029
+ PostgrestVersion: "14.5";
116345
118030
  }>;
116346
118031
  userId: string;
116347
118032
  claims: import("@supabase/auth-js").User;