@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
@@ -2897,6 +2897,84 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
2897
2897
  };
2898
2898
  Relationships: [];
2899
2899
  };
2900
+ delivery_notes: {
2901
+ Row: {
2902
+ byte_size: number | null;
2903
+ connection_id: string | null;
2904
+ content_type: string;
2905
+ created_at: string;
2906
+ error_message: string | null;
2907
+ fetched_at: string | null;
2908
+ fulfillment_order_id: string | null;
2909
+ http_status: number | null;
2910
+ id: string;
2911
+ label_code: string | null;
2912
+ letter: string | null;
2913
+ load_carrier_index: number | null;
2914
+ load_carrier_type: string | null;
2915
+ order_id: string | null;
2916
+ order_number: string | null;
2917
+ packages: number | null;
2918
+ source: string;
2919
+ status: string;
2920
+ storage_bucket: string;
2921
+ storage_path: string | null;
2922
+ updated_at: string;
2923
+ };
2924
+ Insert: {
2925
+ byte_size?: number | null;
2926
+ connection_id?: string | null;
2927
+ content_type?: string;
2928
+ created_at?: string;
2929
+ error_message?: string | null;
2930
+ fetched_at?: string | null;
2931
+ fulfillment_order_id?: string | null;
2932
+ http_status?: number | null;
2933
+ id?: string;
2934
+ label_code?: string | null;
2935
+ letter?: string | null;
2936
+ load_carrier_index?: number | null;
2937
+ load_carrier_type?: string | null;
2938
+ order_id?: string | null;
2939
+ order_number?: string | null;
2940
+ packages?: number | null;
2941
+ source?: string;
2942
+ status?: string;
2943
+ storage_bucket?: string;
2944
+ storage_path?: string | null;
2945
+ updated_at?: string;
2946
+ };
2947
+ Update: {
2948
+ byte_size?: number | null;
2949
+ connection_id?: string | null;
2950
+ content_type?: string;
2951
+ created_at?: string;
2952
+ error_message?: string | null;
2953
+ fetched_at?: string | null;
2954
+ fulfillment_order_id?: string | null;
2955
+ http_status?: number | null;
2956
+ id?: string;
2957
+ label_code?: string | null;
2958
+ letter?: string | null;
2959
+ load_carrier_index?: number | null;
2960
+ load_carrier_type?: string | null;
2961
+ order_id?: string | null;
2962
+ order_number?: string | null;
2963
+ packages?: number | null;
2964
+ source?: string;
2965
+ status?: string;
2966
+ storage_bucket?: string;
2967
+ storage_path?: string | null;
2968
+ updated_at?: string;
2969
+ };
2970
+ Relationships: [{
2971
+ foreignKeyName: "delivery_notes_order_id_fkey";
2972
+ columns: ["order_id"];
2973
+ isOneToOne: false;
2974
+ referencedRelation: "orders";
2975
+ referencedColumns: ["id"];
2976
+ }];
2977
+ };
2900
2978
  document_bronregels: {
2901
2979
  Row: {
2902
2980
  bron: string;
@@ -5950,10 +6028,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
5950
6028
  };
5951
6029
  floriday_connections: {
5952
6030
  Row: {
5953
- access_token: string | null;
5954
6031
  api_key: string;
5955
- client_id: string;
5956
- client_secret: string;
5957
6032
  created_at: string;
5958
6033
  customers_endpoint: string | null;
5959
6034
  environment: string;
@@ -5968,10 +6043,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
5968
6043
  updated_at: string;
5969
6044
  };
5970
6045
  Insert: {
5971
- access_token?: string | null;
5972
6046
  api_key: string;
5973
- client_id: string;
5974
- client_secret: string;
5975
6047
  created_at?: string;
5976
6048
  customers_endpoint?: string | null;
5977
6049
  environment: string;
@@ -5986,10 +6058,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
5986
6058
  updated_at?: string;
5987
6059
  };
5988
6060
  Update: {
5989
- access_token?: string | null;
5990
6061
  api_key?: string;
5991
- client_id?: string;
5992
- client_secret?: string;
5993
6062
  created_at?: string;
5994
6063
  customers_endpoint?: string | null;
5995
6064
  environment?: string;
@@ -10860,6 +10929,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10860
10929
  last_error: string | null;
10861
10930
  last_error_at: string | null;
10862
10931
  last_success_at: string | null;
10932
+ provider: string;
10863
10933
  updated_at: string;
10864
10934
  };
10865
10935
  Insert: {
@@ -10871,6 +10941,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10871
10941
  last_error?: string | null;
10872
10942
  last_error_at?: string | null;
10873
10943
  last_success_at?: string | null;
10944
+ provider?: string;
10874
10945
  updated_at?: string;
10875
10946
  };
10876
10947
  Update: {
@@ -10882,6 +10953,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
10882
10953
  last_error?: string | null;
10883
10954
  last_error_at?: string | null;
10884
10955
  last_success_at?: string | null;
10956
+ provider?: string;
10885
10957
  updated_at?: string;
10886
10958
  };
10887
10959
  Relationships: [];
@@ -13619,6 +13691,39 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13619
13691
  };
13620
13692
  Relationships: [];
13621
13693
  };
13694
+ print_dedupe_events: {
13695
+ Row: {
13696
+ bestaande_job_id: string | null;
13697
+ created_at: string;
13698
+ detail: string | null;
13699
+ documentnaam: string | null;
13700
+ documenttype: string | null;
13701
+ id: string;
13702
+ idempotentie_sleutel: string;
13703
+ reden: string;
13704
+ };
13705
+ Insert: {
13706
+ bestaande_job_id?: string | null;
13707
+ created_at?: string;
13708
+ detail?: string | null;
13709
+ documentnaam?: string | null;
13710
+ documenttype?: string | null;
13711
+ id?: string;
13712
+ idempotentie_sleutel: string;
13713
+ reden: string;
13714
+ };
13715
+ Update: {
13716
+ bestaande_job_id?: string | null;
13717
+ created_at?: string;
13718
+ detail?: string | null;
13719
+ documentnaam?: string | null;
13720
+ documenttype?: string | null;
13721
+ id?: string;
13722
+ idempotentie_sleutel?: string;
13723
+ reden?: string;
13724
+ };
13725
+ Relationships: [];
13726
+ };
13622
13727
  print_job_logs: {
13623
13728
  Row: {
13624
13729
  created_at: string;
@@ -13669,6 +13774,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13669
13774
  is_herprint: boolean;
13670
13775
  kopieen: number;
13671
13776
  layout_id: string | null;
13777
+ lokaal_opgeslagen_op: string | null;
13778
+ lokale_pdf_fout: string | null;
13779
+ lokale_pdf_status: string | null;
13672
13780
  opgepakt_op: string | null;
13673
13781
  paginas: number;
13674
13782
  payload: import("../integrations/supabase/types").Json;
@@ -13677,6 +13785,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13677
13785
  pogingen: number;
13678
13786
  printer_id: string | null;
13679
13787
  render_html: string | null;
13788
+ resultaat_pdf_base64: string | null;
13680
13789
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13681
13790
  updated_at: string;
13682
13791
  volgende_poging: string | null;
@@ -13701,6 +13810,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13701
13810
  is_herprint?: boolean;
13702
13811
  kopieen?: number;
13703
13812
  layout_id?: string | null;
13813
+ lokaal_opgeslagen_op?: string | null;
13814
+ lokale_pdf_fout?: string | null;
13815
+ lokale_pdf_status?: string | null;
13704
13816
  opgepakt_op?: string | null;
13705
13817
  paginas?: number;
13706
13818
  payload?: import("../integrations/supabase/types").Json;
@@ -13709,6 +13821,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13709
13821
  pogingen?: number;
13710
13822
  printer_id?: string | null;
13711
13823
  render_html?: string | null;
13824
+ resultaat_pdf_base64?: string | null;
13712
13825
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13713
13826
  updated_at?: string;
13714
13827
  volgende_poging?: string | null;
@@ -13733,6 +13846,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13733
13846
  is_herprint?: boolean;
13734
13847
  kopieen?: number;
13735
13848
  layout_id?: string | null;
13849
+ lokaal_opgeslagen_op?: string | null;
13850
+ lokale_pdf_fout?: string | null;
13851
+ lokale_pdf_status?: string | null;
13736
13852
  opgepakt_op?: string | null;
13737
13853
  paginas?: number;
13738
13854
  payload?: import("../integrations/supabase/types").Json;
@@ -13741,6 +13857,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13741
13857
  pogingen?: number;
13742
13858
  printer_id?: string | null;
13743
13859
  render_html?: string | null;
13860
+ resultaat_pdf_base64?: string | null;
13744
13861
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13745
13862
  updated_at?: string;
13746
13863
  volgende_poging?: string | null;
@@ -13859,6 +13976,39 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
13859
13976
  };
13860
13977
  Relationships: [];
13861
13978
  };
13979
+ print_preview_events: {
13980
+ Row: {
13981
+ code: string | null;
13982
+ created_at: string;
13983
+ detail: import("../integrations/supabase/types").Json;
13984
+ id: string;
13985
+ queue_item_id: string | null;
13986
+ reden: string | null;
13987
+ station_slug: string | null;
13988
+ uitkomst: string;
13989
+ };
13990
+ Insert: {
13991
+ code?: string | null;
13992
+ created_at?: string;
13993
+ detail?: import("../integrations/supabase/types").Json;
13994
+ id?: string;
13995
+ queue_item_id?: string | null;
13996
+ reden?: string | null;
13997
+ station_slug?: string | null;
13998
+ uitkomst?: string;
13999
+ };
14000
+ Update: {
14001
+ code?: string | null;
14002
+ created_at?: string;
14003
+ detail?: import("../integrations/supabase/types").Json;
14004
+ id?: string;
14005
+ queue_item_id?: string | null;
14006
+ reden?: string | null;
14007
+ station_slug?: string | null;
14008
+ uitkomst?: string;
14009
+ };
14010
+ Relationships: [];
14011
+ };
13862
14012
  print_queue_runners: {
13863
14013
  Row: {
13864
14014
  actief: boolean;
@@ -14098,6 +14248,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
14098
14248
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14099
14249
  online: boolean;
14100
14250
  papierformaat: string;
14251
+ pdf_map: string | null;
14101
14252
  poort: number | null;
14102
14253
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14103
14254
  systeemnaam: string;
@@ -14123,6 +14274,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
14123
14274
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14124
14275
  online?: boolean;
14125
14276
  papierformaat?: string;
14277
+ pdf_map?: string | null;
14126
14278
  poort?: number | null;
14127
14279
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14128
14280
  systeemnaam?: string;
@@ -14148,6 +14300,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
14148
14300
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14149
14301
  online?: boolean;
14150
14302
  papierformaat?: string;
14303
+ pdf_map?: string | null;
14151
14304
  poort?: number | null;
14152
14305
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14153
14306
  systeemnaam?: string;
@@ -20404,6 +20557,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20404
20557
  is_herprint: boolean;
20405
20558
  kopieen: number;
20406
20559
  layout_id: string | null;
20560
+ lokaal_opgeslagen_op: string | null;
20561
+ lokale_pdf_fout: string | null;
20562
+ lokale_pdf_status: string | null;
20407
20563
  opgepakt_op: string | null;
20408
20564
  paginas: number;
20409
20565
  payload: import("../integrations/supabase/types").Json;
@@ -20412,6 +20568,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20412
20568
  pogingen: number;
20413
20569
  printer_id: string | null;
20414
20570
  render_html: string | null;
20571
+ resultaat_pdf_base64: string | null;
20415
20572
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20416
20573
  updated_at: string;
20417
20574
  volgende_poging: string | null;
@@ -20503,6 +20660,53 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20503
20660
  isSetofReturn: true;
20504
20661
  };
20505
20662
  };
20663
+ claim_pdf_print_jobs: {
20664
+ Args: {
20665
+ _max?: number;
20666
+ };
20667
+ Returns: {
20668
+ agent_id: string | null;
20669
+ bron_job_id: string | null;
20670
+ created_at: string;
20671
+ documentnaam: string;
20672
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20673
+ extern_job_id: string | null;
20674
+ foutmelding: string | null;
20675
+ gebruiker_id: string | null;
20676
+ gebruiker_naam: string;
20677
+ gebruikte_bron: string | null;
20678
+ gebruikte_layout_id: string | null;
20679
+ gestart_op: string | null;
20680
+ herkomst: string | null;
20681
+ id: string;
20682
+ idempotentie_sleutel: string | null;
20683
+ is_herprint: boolean;
20684
+ kopieen: number;
20685
+ layout_id: string | null;
20686
+ lokaal_opgeslagen_op: string | null;
20687
+ lokale_pdf_fout: string | null;
20688
+ lokale_pdf_status: string | null;
20689
+ opgepakt_op: string | null;
20690
+ paginas: number;
20691
+ payload: import("../integrations/supabase/types").Json;
20692
+ pdf_base64: string | null;
20693
+ pdf_url: string | null;
20694
+ pogingen: number;
20695
+ printer_id: string | null;
20696
+ render_html: string | null;
20697
+ resultaat_pdf_base64: string | null;
20698
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20699
+ updated_at: string;
20700
+ volgende_poging: string | null;
20701
+ voltooid_op: string | null;
20702
+ }[];
20703
+ SetofOptions: {
20704
+ from: "*";
20705
+ to: "print_jobs";
20706
+ isOneToOne: false;
20707
+ isSetofReturn: true;
20708
+ };
20709
+ };
20506
20710
  claim_print_jobs: {
20507
20711
  Args: {
20508
20712
  _agent_id: string;
@@ -20527,6 +20731,9 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20527
20731
  is_herprint: boolean;
20528
20732
  kopieen: number;
20529
20733
  layout_id: string | null;
20734
+ lokaal_opgeslagen_op: string | null;
20735
+ lokale_pdf_fout: string | null;
20736
+ lokale_pdf_status: string | null;
20530
20737
  opgepakt_op: string | null;
20531
20738
  paginas: number;
20532
20739
  payload: import("../integrations/supabase/types").Json;
@@ -20535,6 +20742,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20535
20742
  pogingen: number;
20536
20743
  printer_id: string | null;
20537
20744
  render_html: string | null;
20745
+ resultaat_pdf_base64: string | null;
20538
20746
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20539
20747
  updated_at: string;
20540
20748
  volgende_poging: string | null;
@@ -20675,6 +20883,8 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
20675
20883
  order_id: string;
20676
20884
  order_source: string;
20677
20885
  pick_date: string;
20886
+ printed_at: string;
20887
+ printed_today: boolean;
20678
20888
  status: string;
20679
20889
  }[];
20680
20890
  };
@@ -21383,6 +21593,10 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21383
21593
  };
21384
21594
  Returns: number;
21385
21595
  };
21596
+ logistics_cancel_orphan_tasks: {
21597
+ Args: never;
21598
+ Returns: number;
21599
+ };
21386
21600
  logistics_capacity_day_check: {
21387
21601
  Args: {
21388
21602
  p_from?: string;
@@ -21403,6 +21617,25 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21403
21617
  };
21404
21618
  Returns: number;
21405
21619
  };
21620
+ logistics_cart_index: {
21621
+ Args: {
21622
+ p_from?: string;
21623
+ p_to?: string;
21624
+ };
21625
+ Returns: {
21626
+ cart_id: string;
21627
+ cart_index: number;
21628
+ cart_label: string;
21629
+ is_shared: boolean;
21630
+ order_number: string;
21631
+ order_source: string;
21632
+ order_uuid: string;
21633
+ pick_date: string;
21634
+ printed_at: string;
21635
+ shifted: boolean;
21636
+ task_status: string;
21637
+ }[];
21638
+ };
21406
21639
  logistics_check_order_allowed: {
21407
21640
  Args: {
21408
21641
  p_lines: import("../integrations/supabase/types").Json;
@@ -21551,6 +21784,17 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21551
21784
  isSetofReturn: false;
21552
21785
  };
21553
21786
  };
21787
+ logistics_consistency_check: {
21788
+ Args: never;
21789
+ Returns: {
21790
+ agenda_carts: number;
21791
+ control_carts: number;
21792
+ ok: boolean;
21793
+ orphan_tasks: number;
21794
+ pick_date: string;
21795
+ raw_carts: number;
21796
+ }[];
21797
+ };
21554
21798
  logistics_delay_customer_email: {
21555
21799
  Args: {
21556
21800
  p_customer: string;
@@ -21640,6 +21884,16 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21640
21884
  isSetofReturn: false;
21641
21885
  };
21642
21886
  };
21887
+ logistics_floriday_cart_plan: {
21888
+ Args: {
21889
+ p_order_id: string;
21890
+ };
21891
+ Returns: {
21892
+ carrier_type: string;
21893
+ idx: number;
21894
+ packages: number;
21895
+ }[];
21896
+ };
21643
21897
  logistics_floriday_claim_pushes: {
21644
21898
  Args: {
21645
21899
  _lease_seconds?: number;
@@ -21744,6 +21998,25 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21744
21998
  };
21745
21999
  Returns: number;
21746
22000
  };
22001
+ logistics_order_overview: {
22002
+ Args: {
22003
+ p_from?: string;
22004
+ p_to?: string;
22005
+ };
22006
+ Returns: {
22007
+ cart_count: number;
22008
+ customer_name: string;
22009
+ delivery_date: string;
22010
+ order_number: string;
22011
+ order_source: string;
22012
+ order_uuid: string;
22013
+ pick_date: string;
22014
+ plant_count: number;
22015
+ printed_at: string;
22016
+ shifted: boolean;
22017
+ status: string;
22018
+ }[];
22019
+ };
21747
22020
  logistics_order_pick_day: {
21748
22021
  Args: {
21749
22022
  p_order_ref: string;
@@ -21756,6 +22029,22 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21756
22029
  };
21757
22030
  Returns: string;
21758
22031
  };
22032
+ logistics_pick_agenda: {
22033
+ Args: {
22034
+ p_from?: string;
22035
+ p_to?: string;
22036
+ };
22037
+ Returns: {
22038
+ cart_count: number;
22039
+ in_preparation: number;
22040
+ order_count: number;
22041
+ orders: import("../integrations/supabase/types").Json;
22042
+ pick_date: string;
22043
+ plant_count: number;
22044
+ ready: number;
22045
+ shifted_count: number;
22046
+ }[];
22047
+ };
21759
22048
  logistics_pick_email_purpose: {
21760
22049
  Args: never;
21761
22050
  Returns: string;
@@ -21810,6 +22099,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21810
22099
  };
21811
22100
  Returns: undefined;
21812
22101
  };
22102
+ logistics_plan_floriday_order: {
22103
+ Args: {
22104
+ p_buffer_id?: string;
22105
+ p_order_id: string;
22106
+ };
22107
+ Returns: number;
22108
+ };
21813
22109
  logistics_plan_impact_orders: {
21814
22110
  Args: {
21815
22111
  p_order_id: string;
@@ -21915,6 +22211,15 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
21915
22211
  };
21916
22212
  Returns: import("../integrations/supabase/types").Json;
21917
22213
  };
22214
+ logistics_resolve_pick_document: {
22215
+ Args: {
22216
+ _is_herprint: boolean;
22217
+ _queue_item_id: string;
22218
+ _session_id: string;
22219
+ _voorbeeld: boolean;
22220
+ };
22221
+ Returns: import("../integrations/supabase/types").Json;
22222
+ };
21918
22223
  logistics_resolve_settings: {
21919
22224
  Args: {
21920
22225
  p_config_id: string;
@@ -22045,14 +22350,6 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22045
22350
  };
22046
22351
  Returns: string;
22047
22352
  };
22048
- maps_cron_token: {
22049
- Args: never;
22050
- Returns: string;
22051
- };
22052
- maps_kick_queue: {
22053
- Args: never;
22054
- Returns: undefined;
22055
- };
22056
22353
  mark_offer_clicked: {
22057
22354
  Args: {
22058
22355
  p_code: string;
@@ -22363,6 +22660,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22363
22660
  };
22364
22661
  pick_enqueue_print_job: {
22365
22662
  Args: {
22663
+ _is_herprint?: boolean;
22366
22664
  _printer_id?: string;
22367
22665
  _queue_item_id: string;
22368
22666
  _session_id?: string;
@@ -22376,6 +22674,13 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22376
22674
  };
22377
22675
  Returns: import("../integrations/supabase/types").Json;
22378
22676
  };
22677
+ pick_preview_job: {
22678
+ Args: {
22679
+ _queue_item_id: string;
22680
+ _station_slug: string;
22681
+ };
22682
+ Returns: import("../integrations/supabase/types").Json;
22683
+ };
22379
22684
  pick_print_job_status: {
22380
22685
  Args: {
22381
22686
  _job_id: string;
@@ -22553,6 +22858,24 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22553
22858
  };
22554
22859
  Returns: undefined;
22555
22860
  };
22861
+ print_preview_toestaan: {
22862
+ Args: {
22863
+ _max?: number;
22864
+ _queue_item_id: string;
22865
+ _station_slug: string;
22866
+ _venster_sec?: number;
22867
+ };
22868
+ Returns: import("../integrations/supabase/types").Json;
22869
+ };
22870
+ print_preview_weiger: {
22871
+ Args: {
22872
+ _code: string;
22873
+ _queue_item_id: string;
22874
+ _reden: string;
22875
+ _station_slug: string;
22876
+ };
22877
+ Returns: undefined;
22878
+ };
22556
22879
  process_logistics_event: {
22557
22880
  Args: {
22558
22881
  p_event_id: string;
@@ -22670,6 +22993,14 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22670
22993
  };
22671
22994
  Returns: undefined;
22672
22995
  };
22996
+ replace_order_carts: {
22997
+ Args: {
22998
+ p_buffer_id: string;
22999
+ p_carts: import("../integrations/supabase/types").Json;
23000
+ p_order_id: string;
23001
+ };
23002
+ Returns: import("../integrations/supabase/types").Json;
23003
+ };
22673
23004
  reset_floriday_sync_cursor: {
22674
23005
  Args: {
22675
23006
  p_connection_id: string;
@@ -22699,6 +23030,12 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
22699
23030
  };
22700
23031
  Returns: string;
22701
23032
  };
23033
+ resolve_print_job_printer_id: {
23034
+ Args: {
23035
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
23036
+ };
23037
+ Returns: string;
23038
+ };
22702
23039
  resolve_product_id_for_item: {
22703
23040
  Args: {
22704
23041
  p_product_name: string;
@@ -23290,7 +23627,7 @@ export declare const replanOrderCarts: import("@tanstack/start-client-core").Opt
23290
23627
  };
23291
23628
  CompositeTypes: { [_ in never]: never; };
23292
23629
  }, {
23293
- PostgrestVersion: "14.17";
23630
+ PostgrestVersion: "14.5";
23294
23631
  }>;
23295
23632
  userId: string;
23296
23633
  claims: import("@supabase/auth-js").User;
@@ -26169,6 +26506,84 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
26169
26506
  };
26170
26507
  Relationships: [];
26171
26508
  };
26509
+ delivery_notes: {
26510
+ Row: {
26511
+ byte_size: number | null;
26512
+ connection_id: string | null;
26513
+ content_type: string;
26514
+ created_at: string;
26515
+ error_message: string | null;
26516
+ fetched_at: string | null;
26517
+ fulfillment_order_id: string | null;
26518
+ http_status: number | null;
26519
+ id: string;
26520
+ label_code: string | null;
26521
+ letter: string | null;
26522
+ load_carrier_index: number | null;
26523
+ load_carrier_type: string | null;
26524
+ order_id: string | null;
26525
+ order_number: string | null;
26526
+ packages: number | null;
26527
+ source: string;
26528
+ status: string;
26529
+ storage_bucket: string;
26530
+ storage_path: string | null;
26531
+ updated_at: string;
26532
+ };
26533
+ Insert: {
26534
+ byte_size?: number | null;
26535
+ connection_id?: string | null;
26536
+ content_type?: string;
26537
+ created_at?: string;
26538
+ error_message?: string | null;
26539
+ fetched_at?: string | null;
26540
+ fulfillment_order_id?: string | null;
26541
+ http_status?: number | null;
26542
+ id?: string;
26543
+ label_code?: string | null;
26544
+ letter?: string | null;
26545
+ load_carrier_index?: number | null;
26546
+ load_carrier_type?: string | null;
26547
+ order_id?: string | null;
26548
+ order_number?: string | null;
26549
+ packages?: number | null;
26550
+ source?: string;
26551
+ status?: string;
26552
+ storage_bucket?: string;
26553
+ storage_path?: string | null;
26554
+ updated_at?: string;
26555
+ };
26556
+ Update: {
26557
+ byte_size?: number | null;
26558
+ connection_id?: string | null;
26559
+ content_type?: string;
26560
+ created_at?: string;
26561
+ error_message?: string | null;
26562
+ fetched_at?: string | null;
26563
+ fulfillment_order_id?: string | null;
26564
+ http_status?: number | null;
26565
+ id?: string;
26566
+ label_code?: string | null;
26567
+ letter?: string | null;
26568
+ load_carrier_index?: number | null;
26569
+ load_carrier_type?: string | null;
26570
+ order_id?: string | null;
26571
+ order_number?: string | null;
26572
+ packages?: number | null;
26573
+ source?: string;
26574
+ status?: string;
26575
+ storage_bucket?: string;
26576
+ storage_path?: string | null;
26577
+ updated_at?: string;
26578
+ };
26579
+ Relationships: [{
26580
+ foreignKeyName: "delivery_notes_order_id_fkey";
26581
+ columns: ["order_id"];
26582
+ isOneToOne: false;
26583
+ referencedRelation: "orders";
26584
+ referencedColumns: ["id"];
26585
+ }];
26586
+ };
26172
26587
  document_bronregels: {
26173
26588
  Row: {
26174
26589
  bron: string;
@@ -29222,10 +29637,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29222
29637
  };
29223
29638
  floriday_connections: {
29224
29639
  Row: {
29225
- access_token: string | null;
29226
29640
  api_key: string;
29227
- client_id: string;
29228
- client_secret: string;
29229
29641
  created_at: string;
29230
29642
  customers_endpoint: string | null;
29231
29643
  environment: string;
@@ -29240,10 +29652,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29240
29652
  updated_at: string;
29241
29653
  };
29242
29654
  Insert: {
29243
- access_token?: string | null;
29244
29655
  api_key: string;
29245
- client_id: string;
29246
- client_secret: string;
29247
29656
  created_at?: string;
29248
29657
  customers_endpoint?: string | null;
29249
29658
  environment: string;
@@ -29258,10 +29667,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
29258
29667
  updated_at?: string;
29259
29668
  };
29260
29669
  Update: {
29261
- access_token?: string | null;
29262
29670
  api_key?: string;
29263
- client_id?: string;
29264
- client_secret?: string;
29265
29671
  created_at?: string;
29266
29672
  customers_endpoint?: string | null;
29267
29673
  environment?: string;
@@ -34132,6 +34538,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
34132
34538
  last_error: string | null;
34133
34539
  last_error_at: string | null;
34134
34540
  last_success_at: string | null;
34541
+ provider: string;
34135
34542
  updated_at: string;
34136
34543
  };
34137
34544
  Insert: {
@@ -34143,6 +34550,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
34143
34550
  last_error?: string | null;
34144
34551
  last_error_at?: string | null;
34145
34552
  last_success_at?: string | null;
34553
+ provider?: string;
34146
34554
  updated_at?: string;
34147
34555
  };
34148
34556
  Update: {
@@ -34154,6 +34562,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
34154
34562
  last_error?: string | null;
34155
34563
  last_error_at?: string | null;
34156
34564
  last_success_at?: string | null;
34565
+ provider?: string;
34157
34566
  updated_at?: string;
34158
34567
  };
34159
34568
  Relationships: [];
@@ -36891,6 +37300,39 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
36891
37300
  };
36892
37301
  Relationships: [];
36893
37302
  };
37303
+ print_dedupe_events: {
37304
+ Row: {
37305
+ bestaande_job_id: string | null;
37306
+ created_at: string;
37307
+ detail: string | null;
37308
+ documentnaam: string | null;
37309
+ documenttype: string | null;
37310
+ id: string;
37311
+ idempotentie_sleutel: string;
37312
+ reden: string;
37313
+ };
37314
+ Insert: {
37315
+ bestaande_job_id?: string | null;
37316
+ created_at?: string;
37317
+ detail?: string | null;
37318
+ documentnaam?: string | null;
37319
+ documenttype?: string | null;
37320
+ id?: string;
37321
+ idempotentie_sleutel: string;
37322
+ reden: string;
37323
+ };
37324
+ Update: {
37325
+ bestaande_job_id?: string | null;
37326
+ created_at?: string;
37327
+ detail?: string | null;
37328
+ documentnaam?: string | null;
37329
+ documenttype?: string | null;
37330
+ id?: string;
37331
+ idempotentie_sleutel?: string;
37332
+ reden?: string;
37333
+ };
37334
+ Relationships: [];
37335
+ };
36894
37336
  print_job_logs: {
36895
37337
  Row: {
36896
37338
  created_at: string;
@@ -36941,6 +37383,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
36941
37383
  is_herprint: boolean;
36942
37384
  kopieen: number;
36943
37385
  layout_id: string | null;
37386
+ lokaal_opgeslagen_op: string | null;
37387
+ lokale_pdf_fout: string | null;
37388
+ lokale_pdf_status: string | null;
36944
37389
  opgepakt_op: string | null;
36945
37390
  paginas: number;
36946
37391
  payload: import("../integrations/supabase/types").Json;
@@ -36949,6 +37394,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
36949
37394
  pogingen: number;
36950
37395
  printer_id: string | null;
36951
37396
  render_html: string | null;
37397
+ resultaat_pdf_base64: string | null;
36952
37398
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36953
37399
  updated_at: string;
36954
37400
  volgende_poging: string | null;
@@ -36973,6 +37419,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
36973
37419
  is_herprint?: boolean;
36974
37420
  kopieen?: number;
36975
37421
  layout_id?: string | null;
37422
+ lokaal_opgeslagen_op?: string | null;
37423
+ lokale_pdf_fout?: string | null;
37424
+ lokale_pdf_status?: string | null;
36976
37425
  opgepakt_op?: string | null;
36977
37426
  paginas?: number;
36978
37427
  payload?: import("../integrations/supabase/types").Json;
@@ -36981,6 +37430,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
36981
37430
  pogingen?: number;
36982
37431
  printer_id?: string | null;
36983
37432
  render_html?: string | null;
37433
+ resultaat_pdf_base64?: string | null;
36984
37434
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36985
37435
  updated_at?: string;
36986
37436
  volgende_poging?: string | null;
@@ -37005,6 +37455,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37005
37455
  is_herprint?: boolean;
37006
37456
  kopieen?: number;
37007
37457
  layout_id?: string | null;
37458
+ lokaal_opgeslagen_op?: string | null;
37459
+ lokale_pdf_fout?: string | null;
37460
+ lokale_pdf_status?: string | null;
37008
37461
  opgepakt_op?: string | null;
37009
37462
  paginas?: number;
37010
37463
  payload?: import("../integrations/supabase/types").Json;
@@ -37013,6 +37466,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37013
37466
  pogingen?: number;
37014
37467
  printer_id?: string | null;
37015
37468
  render_html?: string | null;
37469
+ resultaat_pdf_base64?: string | null;
37016
37470
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
37017
37471
  updated_at?: string;
37018
37472
  volgende_poging?: string | null;
@@ -37131,6 +37585,39 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37131
37585
  };
37132
37586
  Relationships: [];
37133
37587
  };
37588
+ print_preview_events: {
37589
+ Row: {
37590
+ code: string | null;
37591
+ created_at: string;
37592
+ detail: import("../integrations/supabase/types").Json;
37593
+ id: string;
37594
+ queue_item_id: string | null;
37595
+ reden: string | null;
37596
+ station_slug: string | null;
37597
+ uitkomst: string;
37598
+ };
37599
+ Insert: {
37600
+ code?: string | null;
37601
+ created_at?: string;
37602
+ detail?: import("../integrations/supabase/types").Json;
37603
+ id?: string;
37604
+ queue_item_id?: string | null;
37605
+ reden?: string | null;
37606
+ station_slug?: string | null;
37607
+ uitkomst?: string;
37608
+ };
37609
+ Update: {
37610
+ code?: string | null;
37611
+ created_at?: string;
37612
+ detail?: import("../integrations/supabase/types").Json;
37613
+ id?: string;
37614
+ queue_item_id?: string | null;
37615
+ reden?: string | null;
37616
+ station_slug?: string | null;
37617
+ uitkomst?: string;
37618
+ };
37619
+ Relationships: [];
37620
+ };
37134
37621
  print_queue_runners: {
37135
37622
  Row: {
37136
37623
  actief: boolean;
@@ -37370,6 +37857,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37370
37857
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37371
37858
  online: boolean;
37372
37859
  papierformaat: string;
37860
+ pdf_map: string | null;
37373
37861
  poort: number | null;
37374
37862
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37375
37863
  systeemnaam: string;
@@ -37395,6 +37883,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37395
37883
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37396
37884
  online?: boolean;
37397
37885
  papierformaat?: string;
37886
+ pdf_map?: string | null;
37398
37887
  poort?: number | null;
37399
37888
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37400
37889
  systeemnaam?: string;
@@ -37420,6 +37909,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
37420
37909
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37421
37910
  online?: boolean;
37422
37911
  papierformaat?: string;
37912
+ pdf_map?: string | null;
37423
37913
  poort?: number | null;
37424
37914
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37425
37915
  systeemnaam?: string;
@@ -43676,6 +44166,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43676
44166
  is_herprint: boolean;
43677
44167
  kopieen: number;
43678
44168
  layout_id: string | null;
44169
+ lokaal_opgeslagen_op: string | null;
44170
+ lokale_pdf_fout: string | null;
44171
+ lokale_pdf_status: string | null;
43679
44172
  opgepakt_op: string | null;
43680
44173
  paginas: number;
43681
44174
  payload: import("../integrations/supabase/types").Json;
@@ -43684,6 +44177,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43684
44177
  pogingen: number;
43685
44178
  printer_id: string | null;
43686
44179
  render_html: string | null;
44180
+ resultaat_pdf_base64: string | null;
43687
44181
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43688
44182
  updated_at: string;
43689
44183
  volgende_poging: string | null;
@@ -43775,6 +44269,53 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43775
44269
  isSetofReturn: true;
43776
44270
  };
43777
44271
  };
44272
+ claim_pdf_print_jobs: {
44273
+ Args: {
44274
+ _max?: number;
44275
+ };
44276
+ Returns: {
44277
+ agent_id: string | null;
44278
+ bron_job_id: string | null;
44279
+ created_at: string;
44280
+ documentnaam: string;
44281
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44282
+ extern_job_id: string | null;
44283
+ foutmelding: string | null;
44284
+ gebruiker_id: string | null;
44285
+ gebruiker_naam: string;
44286
+ gebruikte_bron: string | null;
44287
+ gebruikte_layout_id: string | null;
44288
+ gestart_op: string | null;
44289
+ herkomst: string | null;
44290
+ id: string;
44291
+ idempotentie_sleutel: string | null;
44292
+ is_herprint: boolean;
44293
+ kopieen: number;
44294
+ layout_id: string | null;
44295
+ lokaal_opgeslagen_op: string | null;
44296
+ lokale_pdf_fout: string | null;
44297
+ lokale_pdf_status: string | null;
44298
+ opgepakt_op: string | null;
44299
+ paginas: number;
44300
+ payload: import("../integrations/supabase/types").Json;
44301
+ pdf_base64: string | null;
44302
+ pdf_url: string | null;
44303
+ pogingen: number;
44304
+ printer_id: string | null;
44305
+ render_html: string | null;
44306
+ resultaat_pdf_base64: string | null;
44307
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44308
+ updated_at: string;
44309
+ volgende_poging: string | null;
44310
+ voltooid_op: string | null;
44311
+ }[];
44312
+ SetofOptions: {
44313
+ from: "*";
44314
+ to: "print_jobs";
44315
+ isOneToOne: false;
44316
+ isSetofReturn: true;
44317
+ };
44318
+ };
43778
44319
  claim_print_jobs: {
43779
44320
  Args: {
43780
44321
  _agent_id: string;
@@ -43799,6 +44340,9 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43799
44340
  is_herprint: boolean;
43800
44341
  kopieen: number;
43801
44342
  layout_id: string | null;
44343
+ lokaal_opgeslagen_op: string | null;
44344
+ lokale_pdf_fout: string | null;
44345
+ lokale_pdf_status: string | null;
43802
44346
  opgepakt_op: string | null;
43803
44347
  paginas: number;
43804
44348
  payload: import("../integrations/supabase/types").Json;
@@ -43807,6 +44351,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43807
44351
  pogingen: number;
43808
44352
  printer_id: string | null;
43809
44353
  render_html: string | null;
44354
+ resultaat_pdf_base64: string | null;
43810
44355
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43811
44356
  updated_at: string;
43812
44357
  volgende_poging: string | null;
@@ -43947,6 +44492,8 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
43947
44492
  order_id: string;
43948
44493
  order_source: string;
43949
44494
  pick_date: string;
44495
+ printed_at: string;
44496
+ printed_today: boolean;
43950
44497
  status: string;
43951
44498
  }[];
43952
44499
  };
@@ -44655,6 +45202,10 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
44655
45202
  };
44656
45203
  Returns: number;
44657
45204
  };
45205
+ logistics_cancel_orphan_tasks: {
45206
+ Args: never;
45207
+ Returns: number;
45208
+ };
44658
45209
  logistics_capacity_day_check: {
44659
45210
  Args: {
44660
45211
  p_from?: string;
@@ -44675,6 +45226,25 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
44675
45226
  };
44676
45227
  Returns: number;
44677
45228
  };
45229
+ logistics_cart_index: {
45230
+ Args: {
45231
+ p_from?: string;
45232
+ p_to?: string;
45233
+ };
45234
+ Returns: {
45235
+ cart_id: string;
45236
+ cart_index: number;
45237
+ cart_label: string;
45238
+ is_shared: boolean;
45239
+ order_number: string;
45240
+ order_source: string;
45241
+ order_uuid: string;
45242
+ pick_date: string;
45243
+ printed_at: string;
45244
+ shifted: boolean;
45245
+ task_status: string;
45246
+ }[];
45247
+ };
44678
45248
  logistics_check_order_allowed: {
44679
45249
  Args: {
44680
45250
  p_lines: import("../integrations/supabase/types").Json;
@@ -44823,6 +45393,17 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
44823
45393
  isSetofReturn: false;
44824
45394
  };
44825
45395
  };
45396
+ logistics_consistency_check: {
45397
+ Args: never;
45398
+ Returns: {
45399
+ agenda_carts: number;
45400
+ control_carts: number;
45401
+ ok: boolean;
45402
+ orphan_tasks: number;
45403
+ pick_date: string;
45404
+ raw_carts: number;
45405
+ }[];
45406
+ };
44826
45407
  logistics_delay_customer_email: {
44827
45408
  Args: {
44828
45409
  p_customer: string;
@@ -44912,6 +45493,16 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
44912
45493
  isSetofReturn: false;
44913
45494
  };
44914
45495
  };
45496
+ logistics_floriday_cart_plan: {
45497
+ Args: {
45498
+ p_order_id: string;
45499
+ };
45500
+ Returns: {
45501
+ carrier_type: string;
45502
+ idx: number;
45503
+ packages: number;
45504
+ }[];
45505
+ };
44915
45506
  logistics_floriday_claim_pushes: {
44916
45507
  Args: {
44917
45508
  _lease_seconds?: number;
@@ -45016,6 +45607,25 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45016
45607
  };
45017
45608
  Returns: number;
45018
45609
  };
45610
+ logistics_order_overview: {
45611
+ Args: {
45612
+ p_from?: string;
45613
+ p_to?: string;
45614
+ };
45615
+ Returns: {
45616
+ cart_count: number;
45617
+ customer_name: string;
45618
+ delivery_date: string;
45619
+ order_number: string;
45620
+ order_source: string;
45621
+ order_uuid: string;
45622
+ pick_date: string;
45623
+ plant_count: number;
45624
+ printed_at: string;
45625
+ shifted: boolean;
45626
+ status: string;
45627
+ }[];
45628
+ };
45019
45629
  logistics_order_pick_day: {
45020
45630
  Args: {
45021
45631
  p_order_ref: string;
@@ -45028,6 +45638,22 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45028
45638
  };
45029
45639
  Returns: string;
45030
45640
  };
45641
+ logistics_pick_agenda: {
45642
+ Args: {
45643
+ p_from?: string;
45644
+ p_to?: string;
45645
+ };
45646
+ Returns: {
45647
+ cart_count: number;
45648
+ in_preparation: number;
45649
+ order_count: number;
45650
+ orders: import("../integrations/supabase/types").Json;
45651
+ pick_date: string;
45652
+ plant_count: number;
45653
+ ready: number;
45654
+ shifted_count: number;
45655
+ }[];
45656
+ };
45031
45657
  logistics_pick_email_purpose: {
45032
45658
  Args: never;
45033
45659
  Returns: string;
@@ -45082,6 +45708,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45082
45708
  };
45083
45709
  Returns: undefined;
45084
45710
  };
45711
+ logistics_plan_floriday_order: {
45712
+ Args: {
45713
+ p_buffer_id?: string;
45714
+ p_order_id: string;
45715
+ };
45716
+ Returns: number;
45717
+ };
45085
45718
  logistics_plan_impact_orders: {
45086
45719
  Args: {
45087
45720
  p_order_id: string;
@@ -45187,6 +45820,15 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45187
45820
  };
45188
45821
  Returns: import("../integrations/supabase/types").Json;
45189
45822
  };
45823
+ logistics_resolve_pick_document: {
45824
+ Args: {
45825
+ _is_herprint: boolean;
45826
+ _queue_item_id: string;
45827
+ _session_id: string;
45828
+ _voorbeeld: boolean;
45829
+ };
45830
+ Returns: import("../integrations/supabase/types").Json;
45831
+ };
45190
45832
  logistics_resolve_settings: {
45191
45833
  Args: {
45192
45834
  p_config_id: string;
@@ -45317,14 +45959,6 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45317
45959
  };
45318
45960
  Returns: string;
45319
45961
  };
45320
- maps_cron_token: {
45321
- Args: never;
45322
- Returns: string;
45323
- };
45324
- maps_kick_queue: {
45325
- Args: never;
45326
- Returns: undefined;
45327
- };
45328
45962
  mark_offer_clicked: {
45329
45963
  Args: {
45330
45964
  p_code: string;
@@ -45635,6 +46269,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45635
46269
  };
45636
46270
  pick_enqueue_print_job: {
45637
46271
  Args: {
46272
+ _is_herprint?: boolean;
45638
46273
  _printer_id?: string;
45639
46274
  _queue_item_id: string;
45640
46275
  _session_id?: string;
@@ -45648,6 +46283,13 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45648
46283
  };
45649
46284
  Returns: import("../integrations/supabase/types").Json;
45650
46285
  };
46286
+ pick_preview_job: {
46287
+ Args: {
46288
+ _queue_item_id: string;
46289
+ _station_slug: string;
46290
+ };
46291
+ Returns: import("../integrations/supabase/types").Json;
46292
+ };
45651
46293
  pick_print_job_status: {
45652
46294
  Args: {
45653
46295
  _job_id: string;
@@ -45825,6 +46467,24 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45825
46467
  };
45826
46468
  Returns: undefined;
45827
46469
  };
46470
+ print_preview_toestaan: {
46471
+ Args: {
46472
+ _max?: number;
46473
+ _queue_item_id: string;
46474
+ _station_slug: string;
46475
+ _venster_sec?: number;
46476
+ };
46477
+ Returns: import("../integrations/supabase/types").Json;
46478
+ };
46479
+ print_preview_weiger: {
46480
+ Args: {
46481
+ _code: string;
46482
+ _queue_item_id: string;
46483
+ _reden: string;
46484
+ _station_slug: string;
46485
+ };
46486
+ Returns: undefined;
46487
+ };
45828
46488
  process_logistics_event: {
45829
46489
  Args: {
45830
46490
  p_event_id: string;
@@ -45942,6 +46602,14 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45942
46602
  };
45943
46603
  Returns: undefined;
45944
46604
  };
46605
+ replace_order_carts: {
46606
+ Args: {
46607
+ p_buffer_id: string;
46608
+ p_carts: import("../integrations/supabase/types").Json;
46609
+ p_order_id: string;
46610
+ };
46611
+ Returns: import("../integrations/supabase/types").Json;
46612
+ };
45945
46613
  reset_floriday_sync_cursor: {
45946
46614
  Args: {
45947
46615
  p_connection_id: string;
@@ -45971,6 +46639,12 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
45971
46639
  };
45972
46640
  Returns: string;
45973
46641
  };
46642
+ resolve_print_job_printer_id: {
46643
+ Args: {
46644
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
46645
+ };
46646
+ Returns: string;
46647
+ };
45974
46648
  resolve_product_id_for_item: {
45975
46649
  Args: {
45976
46650
  p_product_name: string;
@@ -46562,7 +47236,7 @@ export declare const listOrderCarts: import("@tanstack/start-client-core").Optio
46562
47236
  };
46563
47237
  CompositeTypes: { [_ in never]: never; };
46564
47238
  }, {
46565
- PostgrestVersion: "14.17";
47239
+ PostgrestVersion: "14.5";
46566
47240
  }>;
46567
47241
  userId: string;
46568
47242
  claims: import("@supabase/auth-js").User;
@@ -49440,6 +50114,84 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
49440
50114
  };
49441
50115
  Relationships: [];
49442
50116
  };
50117
+ delivery_notes: {
50118
+ Row: {
50119
+ byte_size: number | null;
50120
+ connection_id: string | null;
50121
+ content_type: string;
50122
+ created_at: string;
50123
+ error_message: string | null;
50124
+ fetched_at: string | null;
50125
+ fulfillment_order_id: string | null;
50126
+ http_status: number | null;
50127
+ id: string;
50128
+ label_code: string | null;
50129
+ letter: string | null;
50130
+ load_carrier_index: number | null;
50131
+ load_carrier_type: string | null;
50132
+ order_id: string | null;
50133
+ order_number: string | null;
50134
+ packages: number | null;
50135
+ source: string;
50136
+ status: string;
50137
+ storage_bucket: string;
50138
+ storage_path: string | null;
50139
+ updated_at: string;
50140
+ };
50141
+ Insert: {
50142
+ byte_size?: number | null;
50143
+ connection_id?: string | null;
50144
+ content_type?: string;
50145
+ created_at?: string;
50146
+ error_message?: string | null;
50147
+ fetched_at?: string | null;
50148
+ fulfillment_order_id?: string | null;
50149
+ http_status?: number | null;
50150
+ id?: string;
50151
+ label_code?: string | null;
50152
+ letter?: string | null;
50153
+ load_carrier_index?: number | null;
50154
+ load_carrier_type?: string | null;
50155
+ order_id?: string | null;
50156
+ order_number?: string | null;
50157
+ packages?: number | null;
50158
+ source?: string;
50159
+ status?: string;
50160
+ storage_bucket?: string;
50161
+ storage_path?: string | null;
50162
+ updated_at?: string;
50163
+ };
50164
+ Update: {
50165
+ byte_size?: number | null;
50166
+ connection_id?: string | null;
50167
+ content_type?: string;
50168
+ created_at?: string;
50169
+ error_message?: string | null;
50170
+ fetched_at?: string | null;
50171
+ fulfillment_order_id?: string | null;
50172
+ http_status?: number | null;
50173
+ id?: string;
50174
+ label_code?: string | null;
50175
+ letter?: string | null;
50176
+ load_carrier_index?: number | null;
50177
+ load_carrier_type?: string | null;
50178
+ order_id?: string | null;
50179
+ order_number?: string | null;
50180
+ packages?: number | null;
50181
+ source?: string;
50182
+ status?: string;
50183
+ storage_bucket?: string;
50184
+ storage_path?: string | null;
50185
+ updated_at?: string;
50186
+ };
50187
+ Relationships: [{
50188
+ foreignKeyName: "delivery_notes_order_id_fkey";
50189
+ columns: ["order_id"];
50190
+ isOneToOne: false;
50191
+ referencedRelation: "orders";
50192
+ referencedColumns: ["id"];
50193
+ }];
50194
+ };
49443
50195
  document_bronregels: {
49444
50196
  Row: {
49445
50197
  bron: string;
@@ -52493,10 +53245,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52493
53245
  };
52494
53246
  floriday_connections: {
52495
53247
  Row: {
52496
- access_token: string | null;
52497
53248
  api_key: string;
52498
- client_id: string;
52499
- client_secret: string;
52500
53249
  created_at: string;
52501
53250
  customers_endpoint: string | null;
52502
53251
  environment: string;
@@ -52511,10 +53260,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52511
53260
  updated_at: string;
52512
53261
  };
52513
53262
  Insert: {
52514
- access_token?: string | null;
52515
53263
  api_key: string;
52516
- client_id: string;
52517
- client_secret: string;
52518
53264
  created_at?: string;
52519
53265
  customers_endpoint?: string | null;
52520
53266
  environment: string;
@@ -52529,10 +53275,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
52529
53275
  updated_at?: string;
52530
53276
  };
52531
53277
  Update: {
52532
- access_token?: string | null;
52533
53278
  api_key?: string;
52534
- client_id?: string;
52535
- client_secret?: string;
52536
53279
  created_at?: string;
52537
53280
  customers_endpoint?: string | null;
52538
53281
  environment?: string;
@@ -57403,6 +58146,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57403
58146
  last_error: string | null;
57404
58147
  last_error_at: string | null;
57405
58148
  last_success_at: string | null;
58149
+ provider: string;
57406
58150
  updated_at: string;
57407
58151
  };
57408
58152
  Insert: {
@@ -57414,6 +58158,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57414
58158
  last_error?: string | null;
57415
58159
  last_error_at?: string | null;
57416
58160
  last_success_at?: string | null;
58161
+ provider?: string;
57417
58162
  updated_at?: string;
57418
58163
  };
57419
58164
  Update: {
@@ -57425,6 +58170,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
57425
58170
  last_error?: string | null;
57426
58171
  last_error_at?: string | null;
57427
58172
  last_success_at?: string | null;
58173
+ provider?: string;
57428
58174
  updated_at?: string;
57429
58175
  };
57430
58176
  Relationships: [];
@@ -60162,6 +60908,39 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60162
60908
  };
60163
60909
  Relationships: [];
60164
60910
  };
60911
+ print_dedupe_events: {
60912
+ Row: {
60913
+ bestaande_job_id: string | null;
60914
+ created_at: string;
60915
+ detail: string | null;
60916
+ documentnaam: string | null;
60917
+ documenttype: string | null;
60918
+ id: string;
60919
+ idempotentie_sleutel: string;
60920
+ reden: string;
60921
+ };
60922
+ Insert: {
60923
+ bestaande_job_id?: string | null;
60924
+ created_at?: string;
60925
+ detail?: string | null;
60926
+ documentnaam?: string | null;
60927
+ documenttype?: string | null;
60928
+ id?: string;
60929
+ idempotentie_sleutel: string;
60930
+ reden: string;
60931
+ };
60932
+ Update: {
60933
+ bestaande_job_id?: string | null;
60934
+ created_at?: string;
60935
+ detail?: string | null;
60936
+ documentnaam?: string | null;
60937
+ documenttype?: string | null;
60938
+ id?: string;
60939
+ idempotentie_sleutel?: string;
60940
+ reden?: string;
60941
+ };
60942
+ Relationships: [];
60943
+ };
60165
60944
  print_job_logs: {
60166
60945
  Row: {
60167
60946
  created_at: string;
@@ -60212,6 +60991,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60212
60991
  is_herprint: boolean;
60213
60992
  kopieen: number;
60214
60993
  layout_id: string | null;
60994
+ lokaal_opgeslagen_op: string | null;
60995
+ lokale_pdf_fout: string | null;
60996
+ lokale_pdf_status: string | null;
60215
60997
  opgepakt_op: string | null;
60216
60998
  paginas: number;
60217
60999
  payload: import("../integrations/supabase/types").Json;
@@ -60220,6 +61002,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60220
61002
  pogingen: number;
60221
61003
  printer_id: string | null;
60222
61004
  render_html: string | null;
61005
+ resultaat_pdf_base64: string | null;
60223
61006
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60224
61007
  updated_at: string;
60225
61008
  volgende_poging: string | null;
@@ -60244,6 +61027,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60244
61027
  is_herprint?: boolean;
60245
61028
  kopieen?: number;
60246
61029
  layout_id?: string | null;
61030
+ lokaal_opgeslagen_op?: string | null;
61031
+ lokale_pdf_fout?: string | null;
61032
+ lokale_pdf_status?: string | null;
60247
61033
  opgepakt_op?: string | null;
60248
61034
  paginas?: number;
60249
61035
  payload?: import("../integrations/supabase/types").Json;
@@ -60252,6 +61038,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60252
61038
  pogingen?: number;
60253
61039
  printer_id?: string | null;
60254
61040
  render_html?: string | null;
61041
+ resultaat_pdf_base64?: string | null;
60255
61042
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60256
61043
  updated_at?: string;
60257
61044
  volgende_poging?: string | null;
@@ -60276,6 +61063,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60276
61063
  is_herprint?: boolean;
60277
61064
  kopieen?: number;
60278
61065
  layout_id?: string | null;
61066
+ lokaal_opgeslagen_op?: string | null;
61067
+ lokale_pdf_fout?: string | null;
61068
+ lokale_pdf_status?: string | null;
60279
61069
  opgepakt_op?: string | null;
60280
61070
  paginas?: number;
60281
61071
  payload?: import("../integrations/supabase/types").Json;
@@ -60284,6 +61074,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60284
61074
  pogingen?: number;
60285
61075
  printer_id?: string | null;
60286
61076
  render_html?: string | null;
61077
+ resultaat_pdf_base64?: string | null;
60287
61078
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60288
61079
  updated_at?: string;
60289
61080
  volgende_poging?: string | null;
@@ -60402,6 +61193,39 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60402
61193
  };
60403
61194
  Relationships: [];
60404
61195
  };
61196
+ print_preview_events: {
61197
+ Row: {
61198
+ code: string | null;
61199
+ created_at: string;
61200
+ detail: import("../integrations/supabase/types").Json;
61201
+ id: string;
61202
+ queue_item_id: string | null;
61203
+ reden: string | null;
61204
+ station_slug: string | null;
61205
+ uitkomst: string;
61206
+ };
61207
+ Insert: {
61208
+ code?: string | null;
61209
+ created_at?: string;
61210
+ detail?: import("../integrations/supabase/types").Json;
61211
+ id?: string;
61212
+ queue_item_id?: string | null;
61213
+ reden?: string | null;
61214
+ station_slug?: string | null;
61215
+ uitkomst?: string;
61216
+ };
61217
+ Update: {
61218
+ code?: string | null;
61219
+ created_at?: string;
61220
+ detail?: import("../integrations/supabase/types").Json;
61221
+ id?: string;
61222
+ queue_item_id?: string | null;
61223
+ reden?: string | null;
61224
+ station_slug?: string | null;
61225
+ uitkomst?: string;
61226
+ };
61227
+ Relationships: [];
61228
+ };
60405
61229
  print_queue_runners: {
60406
61230
  Row: {
60407
61231
  actief: boolean;
@@ -60641,6 +61465,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60641
61465
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
60642
61466
  online: boolean;
60643
61467
  papierformaat: string;
61468
+ pdf_map: string | null;
60644
61469
  poort: number | null;
60645
61470
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60646
61471
  systeemnaam: string;
@@ -60666,6 +61491,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60666
61491
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60667
61492
  online?: boolean;
60668
61493
  papierformaat?: string;
61494
+ pdf_map?: string | null;
60669
61495
  poort?: number | null;
60670
61496
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60671
61497
  systeemnaam?: string;
@@ -60691,6 +61517,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
60691
61517
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60692
61518
  online?: boolean;
60693
61519
  papierformaat?: string;
61520
+ pdf_map?: string | null;
60694
61521
  poort?: number | null;
60695
61522
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60696
61523
  systeemnaam?: string;
@@ -66947,6 +67774,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
66947
67774
  is_herprint: boolean;
66948
67775
  kopieen: number;
66949
67776
  layout_id: string | null;
67777
+ lokaal_opgeslagen_op: string | null;
67778
+ lokale_pdf_fout: string | null;
67779
+ lokale_pdf_status: string | null;
66950
67780
  opgepakt_op: string | null;
66951
67781
  paginas: number;
66952
67782
  payload: import("../integrations/supabase/types").Json;
@@ -66955,6 +67785,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
66955
67785
  pogingen: number;
66956
67786
  printer_id: string | null;
66957
67787
  render_html: string | null;
67788
+ resultaat_pdf_base64: string | null;
66958
67789
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
66959
67790
  updated_at: string;
66960
67791
  volgende_poging: string | null;
@@ -67046,6 +67877,53 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
67046
67877
  isSetofReturn: true;
67047
67878
  };
67048
67879
  };
67880
+ claim_pdf_print_jobs: {
67881
+ Args: {
67882
+ _max?: number;
67883
+ };
67884
+ Returns: {
67885
+ agent_id: string | null;
67886
+ bron_job_id: string | null;
67887
+ created_at: string;
67888
+ documentnaam: string;
67889
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
67890
+ extern_job_id: string | null;
67891
+ foutmelding: string | null;
67892
+ gebruiker_id: string | null;
67893
+ gebruiker_naam: string;
67894
+ gebruikte_bron: string | null;
67895
+ gebruikte_layout_id: string | null;
67896
+ gestart_op: string | null;
67897
+ herkomst: string | null;
67898
+ id: string;
67899
+ idempotentie_sleutel: string | null;
67900
+ is_herprint: boolean;
67901
+ kopieen: number;
67902
+ layout_id: string | null;
67903
+ lokaal_opgeslagen_op: string | null;
67904
+ lokale_pdf_fout: string | null;
67905
+ lokale_pdf_status: string | null;
67906
+ opgepakt_op: string | null;
67907
+ paginas: number;
67908
+ payload: import("../integrations/supabase/types").Json;
67909
+ pdf_base64: string | null;
67910
+ pdf_url: string | null;
67911
+ pogingen: number;
67912
+ printer_id: string | null;
67913
+ render_html: string | null;
67914
+ resultaat_pdf_base64: string | null;
67915
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67916
+ updated_at: string;
67917
+ volgende_poging: string | null;
67918
+ voltooid_op: string | null;
67919
+ }[];
67920
+ SetofOptions: {
67921
+ from: "*";
67922
+ to: "print_jobs";
67923
+ isOneToOne: false;
67924
+ isSetofReturn: true;
67925
+ };
67926
+ };
67049
67927
  claim_print_jobs: {
67050
67928
  Args: {
67051
67929
  _agent_id: string;
@@ -67070,6 +67948,9 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
67070
67948
  is_herprint: boolean;
67071
67949
  kopieen: number;
67072
67950
  layout_id: string | null;
67951
+ lokaal_opgeslagen_op: string | null;
67952
+ lokale_pdf_fout: string | null;
67953
+ lokale_pdf_status: string | null;
67073
67954
  opgepakt_op: string | null;
67074
67955
  paginas: number;
67075
67956
  payload: import("../integrations/supabase/types").Json;
@@ -67078,6 +67959,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
67078
67959
  pogingen: number;
67079
67960
  printer_id: string | null;
67080
67961
  render_html: string | null;
67962
+ resultaat_pdf_base64: string | null;
67081
67963
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67082
67964
  updated_at: string;
67083
67965
  volgende_poging: string | null;
@@ -67218,6 +68100,8 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
67218
68100
  order_id: string;
67219
68101
  order_source: string;
67220
68102
  pick_date: string;
68103
+ printed_at: string;
68104
+ printed_today: boolean;
67221
68105
  status: string;
67222
68106
  }[];
67223
68107
  };
@@ -67926,6 +68810,10 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
67926
68810
  };
67927
68811
  Returns: number;
67928
68812
  };
68813
+ logistics_cancel_orphan_tasks: {
68814
+ Args: never;
68815
+ Returns: number;
68816
+ };
67929
68817
  logistics_capacity_day_check: {
67930
68818
  Args: {
67931
68819
  p_from?: string;
@@ -67946,6 +68834,25 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
67946
68834
  };
67947
68835
  Returns: number;
67948
68836
  };
68837
+ logistics_cart_index: {
68838
+ Args: {
68839
+ p_from?: string;
68840
+ p_to?: string;
68841
+ };
68842
+ Returns: {
68843
+ cart_id: string;
68844
+ cart_index: number;
68845
+ cart_label: string;
68846
+ is_shared: boolean;
68847
+ order_number: string;
68848
+ order_source: string;
68849
+ order_uuid: string;
68850
+ pick_date: string;
68851
+ printed_at: string;
68852
+ shifted: boolean;
68853
+ task_status: string;
68854
+ }[];
68855
+ };
67949
68856
  logistics_check_order_allowed: {
67950
68857
  Args: {
67951
68858
  p_lines: import("../integrations/supabase/types").Json;
@@ -68094,6 +69001,17 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68094
69001
  isSetofReturn: false;
68095
69002
  };
68096
69003
  };
69004
+ logistics_consistency_check: {
69005
+ Args: never;
69006
+ Returns: {
69007
+ agenda_carts: number;
69008
+ control_carts: number;
69009
+ ok: boolean;
69010
+ orphan_tasks: number;
69011
+ pick_date: string;
69012
+ raw_carts: number;
69013
+ }[];
69014
+ };
68097
69015
  logistics_delay_customer_email: {
68098
69016
  Args: {
68099
69017
  p_customer: string;
@@ -68183,6 +69101,16 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68183
69101
  isSetofReturn: false;
68184
69102
  };
68185
69103
  };
69104
+ logistics_floriday_cart_plan: {
69105
+ Args: {
69106
+ p_order_id: string;
69107
+ };
69108
+ Returns: {
69109
+ carrier_type: string;
69110
+ idx: number;
69111
+ packages: number;
69112
+ }[];
69113
+ };
68186
69114
  logistics_floriday_claim_pushes: {
68187
69115
  Args: {
68188
69116
  _lease_seconds?: number;
@@ -68287,6 +69215,25 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68287
69215
  };
68288
69216
  Returns: number;
68289
69217
  };
69218
+ logistics_order_overview: {
69219
+ Args: {
69220
+ p_from?: string;
69221
+ p_to?: string;
69222
+ };
69223
+ Returns: {
69224
+ cart_count: number;
69225
+ customer_name: string;
69226
+ delivery_date: string;
69227
+ order_number: string;
69228
+ order_source: string;
69229
+ order_uuid: string;
69230
+ pick_date: string;
69231
+ plant_count: number;
69232
+ printed_at: string;
69233
+ shifted: boolean;
69234
+ status: string;
69235
+ }[];
69236
+ };
68290
69237
  logistics_order_pick_day: {
68291
69238
  Args: {
68292
69239
  p_order_ref: string;
@@ -68299,6 +69246,22 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68299
69246
  };
68300
69247
  Returns: string;
68301
69248
  };
69249
+ logistics_pick_agenda: {
69250
+ Args: {
69251
+ p_from?: string;
69252
+ p_to?: string;
69253
+ };
69254
+ Returns: {
69255
+ cart_count: number;
69256
+ in_preparation: number;
69257
+ order_count: number;
69258
+ orders: import("../integrations/supabase/types").Json;
69259
+ pick_date: string;
69260
+ plant_count: number;
69261
+ ready: number;
69262
+ shifted_count: number;
69263
+ }[];
69264
+ };
68302
69265
  logistics_pick_email_purpose: {
68303
69266
  Args: never;
68304
69267
  Returns: string;
@@ -68353,6 +69316,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68353
69316
  };
68354
69317
  Returns: undefined;
68355
69318
  };
69319
+ logistics_plan_floriday_order: {
69320
+ Args: {
69321
+ p_buffer_id?: string;
69322
+ p_order_id: string;
69323
+ };
69324
+ Returns: number;
69325
+ };
68356
69326
  logistics_plan_impact_orders: {
68357
69327
  Args: {
68358
69328
  p_order_id: string;
@@ -68458,6 +69428,15 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68458
69428
  };
68459
69429
  Returns: import("../integrations/supabase/types").Json;
68460
69430
  };
69431
+ logistics_resolve_pick_document: {
69432
+ Args: {
69433
+ _is_herprint: boolean;
69434
+ _queue_item_id: string;
69435
+ _session_id: string;
69436
+ _voorbeeld: boolean;
69437
+ };
69438
+ Returns: import("../integrations/supabase/types").Json;
69439
+ };
68461
69440
  logistics_resolve_settings: {
68462
69441
  Args: {
68463
69442
  p_config_id: string;
@@ -68588,14 +69567,6 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68588
69567
  };
68589
69568
  Returns: string;
68590
69569
  };
68591
- maps_cron_token: {
68592
- Args: never;
68593
- Returns: string;
68594
- };
68595
- maps_kick_queue: {
68596
- Args: never;
68597
- Returns: undefined;
68598
- };
68599
69570
  mark_offer_clicked: {
68600
69571
  Args: {
68601
69572
  p_code: string;
@@ -68906,6 +69877,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68906
69877
  };
68907
69878
  pick_enqueue_print_job: {
68908
69879
  Args: {
69880
+ _is_herprint?: boolean;
68909
69881
  _printer_id?: string;
68910
69882
  _queue_item_id: string;
68911
69883
  _session_id?: string;
@@ -68919,6 +69891,13 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
68919
69891
  };
68920
69892
  Returns: import("../integrations/supabase/types").Json;
68921
69893
  };
69894
+ pick_preview_job: {
69895
+ Args: {
69896
+ _queue_item_id: string;
69897
+ _station_slug: string;
69898
+ };
69899
+ Returns: import("../integrations/supabase/types").Json;
69900
+ };
68922
69901
  pick_print_job_status: {
68923
69902
  Args: {
68924
69903
  _job_id: string;
@@ -69096,6 +70075,24 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
69096
70075
  };
69097
70076
  Returns: undefined;
69098
70077
  };
70078
+ print_preview_toestaan: {
70079
+ Args: {
70080
+ _max?: number;
70081
+ _queue_item_id: string;
70082
+ _station_slug: string;
70083
+ _venster_sec?: number;
70084
+ };
70085
+ Returns: import("../integrations/supabase/types").Json;
70086
+ };
70087
+ print_preview_weiger: {
70088
+ Args: {
70089
+ _code: string;
70090
+ _queue_item_id: string;
70091
+ _reden: string;
70092
+ _station_slug: string;
70093
+ };
70094
+ Returns: undefined;
70095
+ };
69099
70096
  process_logistics_event: {
69100
70097
  Args: {
69101
70098
  p_event_id: string;
@@ -69213,6 +70210,14 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
69213
70210
  };
69214
70211
  Returns: undefined;
69215
70212
  };
70213
+ replace_order_carts: {
70214
+ Args: {
70215
+ p_buffer_id: string;
70216
+ p_carts: import("../integrations/supabase/types").Json;
70217
+ p_order_id: string;
70218
+ };
70219
+ Returns: import("../integrations/supabase/types").Json;
70220
+ };
69216
70221
  reset_floriday_sync_cursor: {
69217
70222
  Args: {
69218
70223
  p_connection_id: string;
@@ -69242,6 +70247,12 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
69242
70247
  };
69243
70248
  Returns: string;
69244
70249
  };
70250
+ resolve_print_job_printer_id: {
70251
+ Args: {
70252
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
70253
+ };
70254
+ Returns: string;
70255
+ };
69245
70256
  resolve_product_id_for_item: {
69246
70257
  Args: {
69247
70258
  p_product_name: string;
@@ -69833,7 +70844,7 @@ export declare const replanBufferForOrder: import("@tanstack/start-client-core")
69833
70844
  };
69834
70845
  CompositeTypes: { [_ in never]: never; };
69835
70846
  }, {
69836
- PostgrestVersion: "14.17";
70847
+ PostgrestVersion: "14.5";
69837
70848
  }>;
69838
70849
  userId: string;
69839
70850
  claims: import("@supabase/auth-js").User;