@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
@@ -2851,6 +2851,84 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
2851
2851
  };
2852
2852
  Relationships: [];
2853
2853
  };
2854
+ delivery_notes: {
2855
+ Row: {
2856
+ byte_size: number | null;
2857
+ connection_id: string | null;
2858
+ content_type: string;
2859
+ created_at: string;
2860
+ error_message: string | null;
2861
+ fetched_at: string | null;
2862
+ fulfillment_order_id: string | null;
2863
+ http_status: number | null;
2864
+ id: string;
2865
+ label_code: string | null;
2866
+ letter: string | null;
2867
+ load_carrier_index: number | null;
2868
+ load_carrier_type: string | null;
2869
+ order_id: string | null;
2870
+ order_number: string | null;
2871
+ packages: number | null;
2872
+ source: string;
2873
+ status: string;
2874
+ storage_bucket: string;
2875
+ storage_path: string | null;
2876
+ updated_at: string;
2877
+ };
2878
+ Insert: {
2879
+ byte_size?: number | null;
2880
+ connection_id?: string | null;
2881
+ content_type?: string;
2882
+ created_at?: string;
2883
+ error_message?: string | null;
2884
+ fetched_at?: string | null;
2885
+ fulfillment_order_id?: string | null;
2886
+ http_status?: number | null;
2887
+ id?: string;
2888
+ label_code?: string | null;
2889
+ letter?: string | null;
2890
+ load_carrier_index?: number | null;
2891
+ load_carrier_type?: string | null;
2892
+ order_id?: string | null;
2893
+ order_number?: string | null;
2894
+ packages?: number | null;
2895
+ source?: string;
2896
+ status?: string;
2897
+ storage_bucket?: string;
2898
+ storage_path?: string | null;
2899
+ updated_at?: string;
2900
+ };
2901
+ Update: {
2902
+ byte_size?: number | null;
2903
+ connection_id?: string | null;
2904
+ content_type?: string;
2905
+ created_at?: string;
2906
+ error_message?: string | null;
2907
+ fetched_at?: string | null;
2908
+ fulfillment_order_id?: string | null;
2909
+ http_status?: number | null;
2910
+ id?: string;
2911
+ label_code?: string | null;
2912
+ letter?: string | null;
2913
+ load_carrier_index?: number | null;
2914
+ load_carrier_type?: string | null;
2915
+ order_id?: string | null;
2916
+ order_number?: string | null;
2917
+ packages?: number | null;
2918
+ source?: string;
2919
+ status?: string;
2920
+ storage_bucket?: string;
2921
+ storage_path?: string | null;
2922
+ updated_at?: string;
2923
+ };
2924
+ Relationships: [{
2925
+ foreignKeyName: "delivery_notes_order_id_fkey";
2926
+ columns: ["order_id"];
2927
+ isOneToOne: false;
2928
+ referencedRelation: "orders";
2929
+ referencedColumns: ["id"];
2930
+ }];
2931
+ };
2854
2932
  document_bronregels: {
2855
2933
  Row: {
2856
2934
  bron: string;
@@ -5904,10 +5982,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
5904
5982
  };
5905
5983
  floriday_connections: {
5906
5984
  Row: {
5907
- access_token: string | null;
5908
5985
  api_key: string;
5909
- client_id: string;
5910
- client_secret: string;
5911
5986
  created_at: string;
5912
5987
  customers_endpoint: string | null;
5913
5988
  environment: string;
@@ -5922,10 +5997,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
5922
5997
  updated_at: string;
5923
5998
  };
5924
5999
  Insert: {
5925
- access_token?: string | null;
5926
6000
  api_key: string;
5927
- client_id: string;
5928
- client_secret: string;
5929
6001
  created_at?: string;
5930
6002
  customers_endpoint?: string | null;
5931
6003
  environment: string;
@@ -5940,10 +6012,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
5940
6012
  updated_at?: string;
5941
6013
  };
5942
6014
  Update: {
5943
- access_token?: string | null;
5944
6015
  api_key?: string;
5945
- client_id?: string;
5946
- client_secret?: string;
5947
6016
  created_at?: string;
5948
6017
  customers_endpoint?: string | null;
5949
6018
  environment?: string;
@@ -10814,6 +10883,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
10814
10883
  last_error: string | null;
10815
10884
  last_error_at: string | null;
10816
10885
  last_success_at: string | null;
10886
+ provider: string;
10817
10887
  updated_at: string;
10818
10888
  };
10819
10889
  Insert: {
@@ -10825,6 +10895,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
10825
10895
  last_error?: string | null;
10826
10896
  last_error_at?: string | null;
10827
10897
  last_success_at?: string | null;
10898
+ provider?: string;
10828
10899
  updated_at?: string;
10829
10900
  };
10830
10901
  Update: {
@@ -10836,6 +10907,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
10836
10907
  last_error?: string | null;
10837
10908
  last_error_at?: string | null;
10838
10909
  last_success_at?: string | null;
10910
+ provider?: string;
10839
10911
  updated_at?: string;
10840
10912
  };
10841
10913
  Relationships: [];
@@ -13573,6 +13645,39 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13573
13645
  };
13574
13646
  Relationships: [];
13575
13647
  };
13648
+ print_dedupe_events: {
13649
+ Row: {
13650
+ bestaande_job_id: string | null;
13651
+ created_at: string;
13652
+ detail: string | null;
13653
+ documentnaam: string | null;
13654
+ documenttype: string | null;
13655
+ id: string;
13656
+ idempotentie_sleutel: string;
13657
+ reden: string;
13658
+ };
13659
+ Insert: {
13660
+ bestaande_job_id?: string | null;
13661
+ created_at?: string;
13662
+ detail?: string | null;
13663
+ documentnaam?: string | null;
13664
+ documenttype?: string | null;
13665
+ id?: string;
13666
+ idempotentie_sleutel: string;
13667
+ reden: string;
13668
+ };
13669
+ Update: {
13670
+ bestaande_job_id?: string | null;
13671
+ created_at?: string;
13672
+ detail?: string | null;
13673
+ documentnaam?: string | null;
13674
+ documenttype?: string | null;
13675
+ id?: string;
13676
+ idempotentie_sleutel?: string;
13677
+ reden?: string;
13678
+ };
13679
+ Relationships: [];
13680
+ };
13576
13681
  print_job_logs: {
13577
13682
  Row: {
13578
13683
  created_at: string;
@@ -13623,6 +13728,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13623
13728
  is_herprint: boolean;
13624
13729
  kopieen: number;
13625
13730
  layout_id: string | null;
13731
+ lokaal_opgeslagen_op: string | null;
13732
+ lokale_pdf_fout: string | null;
13733
+ lokale_pdf_status: string | null;
13626
13734
  opgepakt_op: string | null;
13627
13735
  paginas: number;
13628
13736
  payload: import("../integrations/supabase/types").Json;
@@ -13631,6 +13739,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13631
13739
  pogingen: number;
13632
13740
  printer_id: string | null;
13633
13741
  render_html: string | null;
13742
+ resultaat_pdf_base64: string | null;
13634
13743
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13635
13744
  updated_at: string;
13636
13745
  volgende_poging: string | null;
@@ -13655,6 +13764,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13655
13764
  is_herprint?: boolean;
13656
13765
  kopieen?: number;
13657
13766
  layout_id?: string | null;
13767
+ lokaal_opgeslagen_op?: string | null;
13768
+ lokale_pdf_fout?: string | null;
13769
+ lokale_pdf_status?: string | null;
13658
13770
  opgepakt_op?: string | null;
13659
13771
  paginas?: number;
13660
13772
  payload?: import("../integrations/supabase/types").Json;
@@ -13663,6 +13775,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13663
13775
  pogingen?: number;
13664
13776
  printer_id?: string | null;
13665
13777
  render_html?: string | null;
13778
+ resultaat_pdf_base64?: string | null;
13666
13779
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13667
13780
  updated_at?: string;
13668
13781
  volgende_poging?: string | null;
@@ -13687,6 +13800,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13687
13800
  is_herprint?: boolean;
13688
13801
  kopieen?: number;
13689
13802
  layout_id?: string | null;
13803
+ lokaal_opgeslagen_op?: string | null;
13804
+ lokale_pdf_fout?: string | null;
13805
+ lokale_pdf_status?: string | null;
13690
13806
  opgepakt_op?: string | null;
13691
13807
  paginas?: number;
13692
13808
  payload?: import("../integrations/supabase/types").Json;
@@ -13695,6 +13811,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13695
13811
  pogingen?: number;
13696
13812
  printer_id?: string | null;
13697
13813
  render_html?: string | null;
13814
+ resultaat_pdf_base64?: string | null;
13698
13815
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13699
13816
  updated_at?: string;
13700
13817
  volgende_poging?: string | null;
@@ -13813,6 +13930,39 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
13813
13930
  };
13814
13931
  Relationships: [];
13815
13932
  };
13933
+ print_preview_events: {
13934
+ Row: {
13935
+ code: string | null;
13936
+ created_at: string;
13937
+ detail: import("../integrations/supabase/types").Json;
13938
+ id: string;
13939
+ queue_item_id: string | null;
13940
+ reden: string | null;
13941
+ station_slug: string | null;
13942
+ uitkomst: string;
13943
+ };
13944
+ Insert: {
13945
+ code?: string | null;
13946
+ created_at?: string;
13947
+ detail?: import("../integrations/supabase/types").Json;
13948
+ id?: string;
13949
+ queue_item_id?: string | null;
13950
+ reden?: string | null;
13951
+ station_slug?: string | null;
13952
+ uitkomst?: string;
13953
+ };
13954
+ Update: {
13955
+ code?: string | null;
13956
+ created_at?: string;
13957
+ detail?: import("../integrations/supabase/types").Json;
13958
+ id?: string;
13959
+ queue_item_id?: string | null;
13960
+ reden?: string | null;
13961
+ station_slug?: string | null;
13962
+ uitkomst?: string;
13963
+ };
13964
+ Relationships: [];
13965
+ };
13816
13966
  print_queue_runners: {
13817
13967
  Row: {
13818
13968
  actief: boolean;
@@ -14052,6 +14202,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
14052
14202
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14053
14203
  online: boolean;
14054
14204
  papierformaat: string;
14205
+ pdf_map: string | null;
14055
14206
  poort: number | null;
14056
14207
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14057
14208
  systeemnaam: string;
@@ -14077,6 +14228,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
14077
14228
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14078
14229
  online?: boolean;
14079
14230
  papierformaat?: string;
14231
+ pdf_map?: string | null;
14080
14232
  poort?: number | null;
14081
14233
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14082
14234
  systeemnaam?: string;
@@ -14102,6 +14254,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
14102
14254
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14103
14255
  online?: boolean;
14104
14256
  papierformaat?: string;
14257
+ pdf_map?: string | null;
14105
14258
  poort?: number | null;
14106
14259
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14107
14260
  systeemnaam?: string;
@@ -20358,6 +20511,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20358
20511
  is_herprint: boolean;
20359
20512
  kopieen: number;
20360
20513
  layout_id: string | null;
20514
+ lokaal_opgeslagen_op: string | null;
20515
+ lokale_pdf_fout: string | null;
20516
+ lokale_pdf_status: string | null;
20361
20517
  opgepakt_op: string | null;
20362
20518
  paginas: number;
20363
20519
  payload: import("../integrations/supabase/types").Json;
@@ -20366,6 +20522,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20366
20522
  pogingen: number;
20367
20523
  printer_id: string | null;
20368
20524
  render_html: string | null;
20525
+ resultaat_pdf_base64: string | null;
20369
20526
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20370
20527
  updated_at: string;
20371
20528
  volgende_poging: string | null;
@@ -20457,6 +20614,53 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20457
20614
  isSetofReturn: true;
20458
20615
  };
20459
20616
  };
20617
+ claim_pdf_print_jobs: {
20618
+ Args: {
20619
+ _max?: number;
20620
+ };
20621
+ Returns: {
20622
+ agent_id: string | null;
20623
+ bron_job_id: string | null;
20624
+ created_at: string;
20625
+ documentnaam: string;
20626
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20627
+ extern_job_id: string | null;
20628
+ foutmelding: string | null;
20629
+ gebruiker_id: string | null;
20630
+ gebruiker_naam: string;
20631
+ gebruikte_bron: string | null;
20632
+ gebruikte_layout_id: string | null;
20633
+ gestart_op: string | null;
20634
+ herkomst: string | null;
20635
+ id: string;
20636
+ idempotentie_sleutel: string | null;
20637
+ is_herprint: boolean;
20638
+ kopieen: number;
20639
+ layout_id: string | null;
20640
+ lokaal_opgeslagen_op: string | null;
20641
+ lokale_pdf_fout: string | null;
20642
+ lokale_pdf_status: string | null;
20643
+ opgepakt_op: string | null;
20644
+ paginas: number;
20645
+ payload: import("../integrations/supabase/types").Json;
20646
+ pdf_base64: string | null;
20647
+ pdf_url: string | null;
20648
+ pogingen: number;
20649
+ printer_id: string | null;
20650
+ render_html: string | null;
20651
+ resultaat_pdf_base64: string | null;
20652
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20653
+ updated_at: string;
20654
+ volgende_poging: string | null;
20655
+ voltooid_op: string | null;
20656
+ }[];
20657
+ SetofOptions: {
20658
+ from: "*";
20659
+ to: "print_jobs";
20660
+ isOneToOne: false;
20661
+ isSetofReturn: true;
20662
+ };
20663
+ };
20460
20664
  claim_print_jobs: {
20461
20665
  Args: {
20462
20666
  _agent_id: string;
@@ -20481,6 +20685,9 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20481
20685
  is_herprint: boolean;
20482
20686
  kopieen: number;
20483
20687
  layout_id: string | null;
20688
+ lokaal_opgeslagen_op: string | null;
20689
+ lokale_pdf_fout: string | null;
20690
+ lokale_pdf_status: string | null;
20484
20691
  opgepakt_op: string | null;
20485
20692
  paginas: number;
20486
20693
  payload: import("../integrations/supabase/types").Json;
@@ -20489,6 +20696,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20489
20696
  pogingen: number;
20490
20697
  printer_id: string | null;
20491
20698
  render_html: string | null;
20699
+ resultaat_pdf_base64: string | null;
20492
20700
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20493
20701
  updated_at: string;
20494
20702
  volgende_poging: string | null;
@@ -20629,6 +20837,8 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
20629
20837
  order_id: string;
20630
20838
  order_source: string;
20631
20839
  pick_date: string;
20840
+ printed_at: string;
20841
+ printed_today: boolean;
20632
20842
  status: string;
20633
20843
  }[];
20634
20844
  };
@@ -21337,6 +21547,10 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21337
21547
  };
21338
21548
  Returns: number;
21339
21549
  };
21550
+ logistics_cancel_orphan_tasks: {
21551
+ Args: never;
21552
+ Returns: number;
21553
+ };
21340
21554
  logistics_capacity_day_check: {
21341
21555
  Args: {
21342
21556
  p_from?: string;
@@ -21357,6 +21571,25 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21357
21571
  };
21358
21572
  Returns: number;
21359
21573
  };
21574
+ logistics_cart_index: {
21575
+ Args: {
21576
+ p_from?: string;
21577
+ p_to?: string;
21578
+ };
21579
+ Returns: {
21580
+ cart_id: string;
21581
+ cart_index: number;
21582
+ cart_label: string;
21583
+ is_shared: boolean;
21584
+ order_number: string;
21585
+ order_source: string;
21586
+ order_uuid: string;
21587
+ pick_date: string;
21588
+ printed_at: string;
21589
+ shifted: boolean;
21590
+ task_status: string;
21591
+ }[];
21592
+ };
21360
21593
  logistics_check_order_allowed: {
21361
21594
  Args: {
21362
21595
  p_lines: import("../integrations/supabase/types").Json;
@@ -21505,6 +21738,17 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21505
21738
  isSetofReturn: false;
21506
21739
  };
21507
21740
  };
21741
+ logistics_consistency_check: {
21742
+ Args: never;
21743
+ Returns: {
21744
+ agenda_carts: number;
21745
+ control_carts: number;
21746
+ ok: boolean;
21747
+ orphan_tasks: number;
21748
+ pick_date: string;
21749
+ raw_carts: number;
21750
+ }[];
21751
+ };
21508
21752
  logistics_delay_customer_email: {
21509
21753
  Args: {
21510
21754
  p_customer: string;
@@ -21594,6 +21838,16 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21594
21838
  isSetofReturn: false;
21595
21839
  };
21596
21840
  };
21841
+ logistics_floriday_cart_plan: {
21842
+ Args: {
21843
+ p_order_id: string;
21844
+ };
21845
+ Returns: {
21846
+ carrier_type: string;
21847
+ idx: number;
21848
+ packages: number;
21849
+ }[];
21850
+ };
21597
21851
  logistics_floriday_claim_pushes: {
21598
21852
  Args: {
21599
21853
  _lease_seconds?: number;
@@ -21698,6 +21952,25 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21698
21952
  };
21699
21953
  Returns: number;
21700
21954
  };
21955
+ logistics_order_overview: {
21956
+ Args: {
21957
+ p_from?: string;
21958
+ p_to?: string;
21959
+ };
21960
+ Returns: {
21961
+ cart_count: number;
21962
+ customer_name: string;
21963
+ delivery_date: string;
21964
+ order_number: string;
21965
+ order_source: string;
21966
+ order_uuid: string;
21967
+ pick_date: string;
21968
+ plant_count: number;
21969
+ printed_at: string;
21970
+ shifted: boolean;
21971
+ status: string;
21972
+ }[];
21973
+ };
21701
21974
  logistics_order_pick_day: {
21702
21975
  Args: {
21703
21976
  p_order_ref: string;
@@ -21710,6 +21983,22 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21710
21983
  };
21711
21984
  Returns: string;
21712
21985
  };
21986
+ logistics_pick_agenda: {
21987
+ Args: {
21988
+ p_from?: string;
21989
+ p_to?: string;
21990
+ };
21991
+ Returns: {
21992
+ cart_count: number;
21993
+ in_preparation: number;
21994
+ order_count: number;
21995
+ orders: import("../integrations/supabase/types").Json;
21996
+ pick_date: string;
21997
+ plant_count: number;
21998
+ ready: number;
21999
+ shifted_count: number;
22000
+ }[];
22001
+ };
21713
22002
  logistics_pick_email_purpose: {
21714
22003
  Args: never;
21715
22004
  Returns: string;
@@ -21764,6 +22053,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21764
22053
  };
21765
22054
  Returns: undefined;
21766
22055
  };
22056
+ logistics_plan_floriday_order: {
22057
+ Args: {
22058
+ p_buffer_id?: string;
22059
+ p_order_id: string;
22060
+ };
22061
+ Returns: number;
22062
+ };
21767
22063
  logistics_plan_impact_orders: {
21768
22064
  Args: {
21769
22065
  p_order_id: string;
@@ -21869,6 +22165,15 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21869
22165
  };
21870
22166
  Returns: import("../integrations/supabase/types").Json;
21871
22167
  };
22168
+ logistics_resolve_pick_document: {
22169
+ Args: {
22170
+ _is_herprint: boolean;
22171
+ _queue_item_id: string;
22172
+ _session_id: string;
22173
+ _voorbeeld: boolean;
22174
+ };
22175
+ Returns: import("../integrations/supabase/types").Json;
22176
+ };
21872
22177
  logistics_resolve_settings: {
21873
22178
  Args: {
21874
22179
  p_config_id: string;
@@ -21999,14 +22304,6 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
21999
22304
  };
22000
22305
  Returns: string;
22001
22306
  };
22002
- maps_cron_token: {
22003
- Args: never;
22004
- Returns: string;
22005
- };
22006
- maps_kick_queue: {
22007
- Args: never;
22008
- Returns: undefined;
22009
- };
22010
22307
  mark_offer_clicked: {
22011
22308
  Args: {
22012
22309
  p_code: string;
@@ -22317,6 +22614,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
22317
22614
  };
22318
22615
  pick_enqueue_print_job: {
22319
22616
  Args: {
22617
+ _is_herprint?: boolean;
22320
22618
  _printer_id?: string;
22321
22619
  _queue_item_id: string;
22322
22620
  _session_id?: string;
@@ -22330,6 +22628,13 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
22330
22628
  };
22331
22629
  Returns: import("../integrations/supabase/types").Json;
22332
22630
  };
22631
+ pick_preview_job: {
22632
+ Args: {
22633
+ _queue_item_id: string;
22634
+ _station_slug: string;
22635
+ };
22636
+ Returns: import("../integrations/supabase/types").Json;
22637
+ };
22333
22638
  pick_print_job_status: {
22334
22639
  Args: {
22335
22640
  _job_id: string;
@@ -22507,6 +22812,24 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
22507
22812
  };
22508
22813
  Returns: undefined;
22509
22814
  };
22815
+ print_preview_toestaan: {
22816
+ Args: {
22817
+ _max?: number;
22818
+ _queue_item_id: string;
22819
+ _station_slug: string;
22820
+ _venster_sec?: number;
22821
+ };
22822
+ Returns: import("../integrations/supabase/types").Json;
22823
+ };
22824
+ print_preview_weiger: {
22825
+ Args: {
22826
+ _code: string;
22827
+ _queue_item_id: string;
22828
+ _reden: string;
22829
+ _station_slug: string;
22830
+ };
22831
+ Returns: undefined;
22832
+ };
22510
22833
  process_logistics_event: {
22511
22834
  Args: {
22512
22835
  p_event_id: string;
@@ -22624,6 +22947,14 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
22624
22947
  };
22625
22948
  Returns: undefined;
22626
22949
  };
22950
+ replace_order_carts: {
22951
+ Args: {
22952
+ p_buffer_id: string;
22953
+ p_carts: import("../integrations/supabase/types").Json;
22954
+ p_order_id: string;
22955
+ };
22956
+ Returns: import("../integrations/supabase/types").Json;
22957
+ };
22627
22958
  reset_floriday_sync_cursor: {
22628
22959
  Args: {
22629
22960
  p_connection_id: string;
@@ -22653,6 +22984,12 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
22653
22984
  };
22654
22985
  Returns: string;
22655
22986
  };
22987
+ resolve_print_job_printer_id: {
22988
+ Args: {
22989
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
22990
+ };
22991
+ Returns: string;
22992
+ };
22656
22993
  resolve_product_id_for_item: {
22657
22994
  Args: {
22658
22995
  p_product_name: string;
@@ -23244,7 +23581,7 @@ export declare const getPreferredWarehouseStatus: import("@tanstack/start-client
23244
23581
  };
23245
23582
  CompositeTypes: { [_ in never]: never; };
23246
23583
  }, {
23247
- PostgrestVersion: "14.17";
23584
+ PostgrestVersion: "14.5";
23248
23585
  }>;
23249
23586
  userId: string;
23250
23587
  claims: import("@supabase/auth-js").User;
@@ -26105,6 +26442,84 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
26105
26442
  };
26106
26443
  Relationships: [];
26107
26444
  };
26445
+ delivery_notes: {
26446
+ Row: {
26447
+ byte_size: number | null;
26448
+ connection_id: string | null;
26449
+ content_type: string;
26450
+ created_at: string;
26451
+ error_message: string | null;
26452
+ fetched_at: string | null;
26453
+ fulfillment_order_id: string | null;
26454
+ http_status: number | null;
26455
+ id: string;
26456
+ label_code: string | null;
26457
+ letter: string | null;
26458
+ load_carrier_index: number | null;
26459
+ load_carrier_type: string | null;
26460
+ order_id: string | null;
26461
+ order_number: string | null;
26462
+ packages: number | null;
26463
+ source: string;
26464
+ status: string;
26465
+ storage_bucket: string;
26466
+ storage_path: string | null;
26467
+ updated_at: string;
26468
+ };
26469
+ Insert: {
26470
+ byte_size?: number | null;
26471
+ connection_id?: string | null;
26472
+ content_type?: string;
26473
+ created_at?: string;
26474
+ error_message?: string | null;
26475
+ fetched_at?: string | null;
26476
+ fulfillment_order_id?: string | null;
26477
+ http_status?: number | null;
26478
+ id?: string;
26479
+ label_code?: string | null;
26480
+ letter?: string | null;
26481
+ load_carrier_index?: number | null;
26482
+ load_carrier_type?: string | null;
26483
+ order_id?: string | null;
26484
+ order_number?: string | null;
26485
+ packages?: number | null;
26486
+ source?: string;
26487
+ status?: string;
26488
+ storage_bucket?: string;
26489
+ storage_path?: string | null;
26490
+ updated_at?: string;
26491
+ };
26492
+ Update: {
26493
+ byte_size?: number | null;
26494
+ connection_id?: string | null;
26495
+ content_type?: string;
26496
+ created_at?: string;
26497
+ error_message?: string | null;
26498
+ fetched_at?: string | null;
26499
+ fulfillment_order_id?: string | null;
26500
+ http_status?: number | null;
26501
+ id?: string;
26502
+ label_code?: string | null;
26503
+ letter?: string | null;
26504
+ load_carrier_index?: number | null;
26505
+ load_carrier_type?: string | null;
26506
+ order_id?: string | null;
26507
+ order_number?: string | null;
26508
+ packages?: number | null;
26509
+ source?: string;
26510
+ status?: string;
26511
+ storage_bucket?: string;
26512
+ storage_path?: string | null;
26513
+ updated_at?: string;
26514
+ };
26515
+ Relationships: [{
26516
+ foreignKeyName: "delivery_notes_order_id_fkey";
26517
+ columns: ["order_id"];
26518
+ isOneToOne: false;
26519
+ referencedRelation: "orders";
26520
+ referencedColumns: ["id"];
26521
+ }];
26522
+ };
26108
26523
  document_bronregels: {
26109
26524
  Row: {
26110
26525
  bron: string;
@@ -29158,10 +29573,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29158
29573
  };
29159
29574
  floriday_connections: {
29160
29575
  Row: {
29161
- access_token: string | null;
29162
29576
  api_key: string;
29163
- client_id: string;
29164
- client_secret: string;
29165
29577
  created_at: string;
29166
29578
  customers_endpoint: string | null;
29167
29579
  environment: string;
@@ -29176,10 +29588,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29176
29588
  updated_at: string;
29177
29589
  };
29178
29590
  Insert: {
29179
- access_token?: string | null;
29180
29591
  api_key: string;
29181
- client_id: string;
29182
- client_secret: string;
29183
29592
  created_at?: string;
29184
29593
  customers_endpoint?: string | null;
29185
29594
  environment: string;
@@ -29194,10 +29603,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
29194
29603
  updated_at?: string;
29195
29604
  };
29196
29605
  Update: {
29197
- access_token?: string | null;
29198
29606
  api_key?: string;
29199
- client_id?: string;
29200
- client_secret?: string;
29201
29607
  created_at?: string;
29202
29608
  customers_endpoint?: string | null;
29203
29609
  environment?: string;
@@ -34068,6 +34474,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
34068
34474
  last_error: string | null;
34069
34475
  last_error_at: string | null;
34070
34476
  last_success_at: string | null;
34477
+ provider: string;
34071
34478
  updated_at: string;
34072
34479
  };
34073
34480
  Insert: {
@@ -34079,6 +34486,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
34079
34486
  last_error?: string | null;
34080
34487
  last_error_at?: string | null;
34081
34488
  last_success_at?: string | null;
34489
+ provider?: string;
34082
34490
  updated_at?: string;
34083
34491
  };
34084
34492
  Update: {
@@ -34090,6 +34498,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
34090
34498
  last_error?: string | null;
34091
34499
  last_error_at?: string | null;
34092
34500
  last_success_at?: string | null;
34501
+ provider?: string;
34093
34502
  updated_at?: string;
34094
34503
  };
34095
34504
  Relationships: [];
@@ -36827,6 +37236,39 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
36827
37236
  };
36828
37237
  Relationships: [];
36829
37238
  };
37239
+ print_dedupe_events: {
37240
+ Row: {
37241
+ bestaande_job_id: string | null;
37242
+ created_at: string;
37243
+ detail: string | null;
37244
+ documentnaam: string | null;
37245
+ documenttype: string | null;
37246
+ id: string;
37247
+ idempotentie_sleutel: string;
37248
+ reden: string;
37249
+ };
37250
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
37271
+ };
36830
37272
  print_job_logs: {
36831
37273
  Row: {
36832
37274
  created_at: string;
@@ -36877,6 +37319,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
36877
37319
  is_herprint: boolean;
36878
37320
  kopieen: number;
36879
37321
  layout_id: string | null;
37322
+ lokaal_opgeslagen_op: string | null;
37323
+ lokale_pdf_fout: string | null;
37324
+ lokale_pdf_status: string | null;
36880
37325
  opgepakt_op: string | null;
36881
37326
  paginas: number;
36882
37327
  payload: import("../integrations/supabase/types").Json;
@@ -36885,6 +37330,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
36885
37330
  pogingen: number;
36886
37331
  printer_id: string | null;
36887
37332
  render_html: string | null;
37333
+ resultaat_pdf_base64: string | null;
36888
37334
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36889
37335
  updated_at: string;
36890
37336
  volgende_poging: string | null;
@@ -36909,6 +37355,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
36909
37355
  is_herprint?: boolean;
36910
37356
  kopieen?: number;
36911
37357
  layout_id?: string | null;
37358
+ lokaal_opgeslagen_op?: string | null;
37359
+ lokale_pdf_fout?: string | null;
37360
+ lokale_pdf_status?: string | null;
36912
37361
  opgepakt_op?: string | null;
36913
37362
  paginas?: number;
36914
37363
  payload?: import("../integrations/supabase/types").Json;
@@ -36917,6 +37366,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
36917
37366
  pogingen?: number;
36918
37367
  printer_id?: string | null;
36919
37368
  render_html?: string | null;
37369
+ resultaat_pdf_base64?: string | null;
36920
37370
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36921
37371
  updated_at?: string;
36922
37372
  volgende_poging?: string | null;
@@ -36941,6 +37391,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
36941
37391
  is_herprint?: boolean;
36942
37392
  kopieen?: number;
36943
37393
  layout_id?: string | null;
37394
+ lokaal_opgeslagen_op?: string | null;
37395
+ lokale_pdf_fout?: string | null;
37396
+ lokale_pdf_status?: string | null;
36944
37397
  opgepakt_op?: string | null;
36945
37398
  paginas?: number;
36946
37399
  payload?: import("../integrations/supabase/types").Json;
@@ -36949,6 +37402,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
36949
37402
  pogingen?: number;
36950
37403
  printer_id?: string | null;
36951
37404
  render_html?: string | null;
37405
+ resultaat_pdf_base64?: string | null;
36952
37406
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36953
37407
  updated_at?: string;
36954
37408
  volgende_poging?: string | null;
@@ -37067,6 +37521,39 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
37067
37521
  };
37068
37522
  Relationships: [];
37069
37523
  };
37524
+ print_preview_events: {
37525
+ Row: {
37526
+ code: string | null;
37527
+ created_at: string;
37528
+ detail: import("../integrations/supabase/types").Json;
37529
+ id: string;
37530
+ queue_item_id: string | null;
37531
+ reden: string | null;
37532
+ station_slug: string | null;
37533
+ uitkomst: string;
37534
+ };
37535
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
37556
+ };
37070
37557
  print_queue_runners: {
37071
37558
  Row: {
37072
37559
  actief: boolean;
@@ -37306,6 +37793,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
37306
37793
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37307
37794
  online: boolean;
37308
37795
  papierformaat: string;
37796
+ pdf_map: string | null;
37309
37797
  poort: number | null;
37310
37798
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37311
37799
  systeemnaam: string;
@@ -37331,6 +37819,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
37331
37819
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37332
37820
  online?: boolean;
37333
37821
  papierformaat?: string;
37822
+ pdf_map?: string | null;
37334
37823
  poort?: number | null;
37335
37824
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37336
37825
  systeemnaam?: string;
@@ -37356,6 +37845,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
37356
37845
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37357
37846
  online?: boolean;
37358
37847
  papierformaat?: string;
37848
+ pdf_map?: string | null;
37359
37849
  poort?: number | null;
37360
37850
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37361
37851
  systeemnaam?: string;
@@ -43612,6 +44102,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43612
44102
  is_herprint: boolean;
43613
44103
  kopieen: number;
43614
44104
  layout_id: string | null;
44105
+ lokaal_opgeslagen_op: string | null;
44106
+ lokale_pdf_fout: string | null;
44107
+ lokale_pdf_status: string | null;
43615
44108
  opgepakt_op: string | null;
43616
44109
  paginas: number;
43617
44110
  payload: import("../integrations/supabase/types").Json;
@@ -43620,6 +44113,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43620
44113
  pogingen: number;
43621
44114
  printer_id: string | null;
43622
44115
  render_html: string | null;
44116
+ resultaat_pdf_base64: string | null;
43623
44117
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43624
44118
  updated_at: string;
43625
44119
  volgende_poging: string | null;
@@ -43711,6 +44205,53 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43711
44205
  isSetofReturn: true;
43712
44206
  };
43713
44207
  };
44208
+ claim_pdf_print_jobs: {
44209
+ Args: {
44210
+ _max?: number;
44211
+ };
44212
+ Returns: {
44213
+ agent_id: string | null;
44214
+ bron_job_id: string | null;
44215
+ created_at: string;
44216
+ documentnaam: string;
44217
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44218
+ extern_job_id: string | null;
44219
+ foutmelding: string | null;
44220
+ gebruiker_id: string | null;
44221
+ gebruiker_naam: string;
44222
+ gebruikte_bron: string | null;
44223
+ gebruikte_layout_id: string | null;
44224
+ gestart_op: string | null;
44225
+ herkomst: string | null;
44226
+ id: string;
44227
+ idempotentie_sleutel: string | null;
44228
+ is_herprint: boolean;
44229
+ kopieen: number;
44230
+ layout_id: string | null;
44231
+ lokaal_opgeslagen_op: string | null;
44232
+ lokale_pdf_fout: string | null;
44233
+ lokale_pdf_status: string | null;
44234
+ opgepakt_op: string | null;
44235
+ paginas: number;
44236
+ payload: import("../integrations/supabase/types").Json;
44237
+ pdf_base64: string | null;
44238
+ pdf_url: string | null;
44239
+ pogingen: number;
44240
+ printer_id: string | null;
44241
+ render_html: string | null;
44242
+ resultaat_pdf_base64: string | null;
44243
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44244
+ updated_at: string;
44245
+ volgende_poging: string | null;
44246
+ voltooid_op: string | null;
44247
+ }[];
44248
+ SetofOptions: {
44249
+ from: "*";
44250
+ to: "print_jobs";
44251
+ isOneToOne: false;
44252
+ isSetofReturn: true;
44253
+ };
44254
+ };
43714
44255
  claim_print_jobs: {
43715
44256
  Args: {
43716
44257
  _agent_id: string;
@@ -43735,6 +44276,9 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43735
44276
  is_herprint: boolean;
43736
44277
  kopieen: number;
43737
44278
  layout_id: string | null;
44279
+ lokaal_opgeslagen_op: string | null;
44280
+ lokale_pdf_fout: string | null;
44281
+ lokale_pdf_status: string | null;
43738
44282
  opgepakt_op: string | null;
43739
44283
  paginas: number;
43740
44284
  payload: import("../integrations/supabase/types").Json;
@@ -43743,6 +44287,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43743
44287
  pogingen: number;
43744
44288
  printer_id: string | null;
43745
44289
  render_html: string | null;
44290
+ resultaat_pdf_base64: string | null;
43746
44291
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43747
44292
  updated_at: string;
43748
44293
  volgende_poging: string | null;
@@ -43883,6 +44428,8 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
43883
44428
  order_id: string;
43884
44429
  order_source: string;
43885
44430
  pick_date: string;
44431
+ printed_at: string;
44432
+ printed_today: boolean;
43886
44433
  status: string;
43887
44434
  }[];
43888
44435
  };
@@ -44591,6 +45138,10 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44591
45138
  };
44592
45139
  Returns: number;
44593
45140
  };
45141
+ logistics_cancel_orphan_tasks: {
45142
+ Args: never;
45143
+ Returns: number;
45144
+ };
44594
45145
  logistics_capacity_day_check: {
44595
45146
  Args: {
44596
45147
  p_from?: string;
@@ -44611,6 +45162,25 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44611
45162
  };
44612
45163
  Returns: number;
44613
45164
  };
45165
+ logistics_cart_index: {
45166
+ Args: {
45167
+ p_from?: string;
45168
+ p_to?: string;
45169
+ };
45170
+ Returns: {
45171
+ cart_id: string;
45172
+ cart_index: number;
45173
+ cart_label: string;
45174
+ is_shared: boolean;
45175
+ order_number: string;
45176
+ order_source: string;
45177
+ order_uuid: string;
45178
+ pick_date: string;
45179
+ printed_at: string;
45180
+ shifted: boolean;
45181
+ task_status: string;
45182
+ }[];
45183
+ };
44614
45184
  logistics_check_order_allowed: {
44615
45185
  Args: {
44616
45186
  p_lines: import("../integrations/supabase/types").Json;
@@ -44759,6 +45329,17 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44759
45329
  isSetofReturn: false;
44760
45330
  };
44761
45331
  };
45332
+ logistics_consistency_check: {
45333
+ Args: never;
45334
+ Returns: {
45335
+ agenda_carts: number;
45336
+ control_carts: number;
45337
+ ok: boolean;
45338
+ orphan_tasks: number;
45339
+ pick_date: string;
45340
+ raw_carts: number;
45341
+ }[];
45342
+ };
44762
45343
  logistics_delay_customer_email: {
44763
45344
  Args: {
44764
45345
  p_customer: string;
@@ -44848,6 +45429,16 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44848
45429
  isSetofReturn: false;
44849
45430
  };
44850
45431
  };
45432
+ logistics_floriday_cart_plan: {
45433
+ Args: {
45434
+ p_order_id: string;
45435
+ };
45436
+ Returns: {
45437
+ carrier_type: string;
45438
+ idx: number;
45439
+ packages: number;
45440
+ }[];
45441
+ };
44851
45442
  logistics_floriday_claim_pushes: {
44852
45443
  Args: {
44853
45444
  _lease_seconds?: number;
@@ -44952,6 +45543,25 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44952
45543
  };
44953
45544
  Returns: number;
44954
45545
  };
45546
+ logistics_order_overview: {
45547
+ Args: {
45548
+ p_from?: string;
45549
+ p_to?: string;
45550
+ };
45551
+ Returns: {
45552
+ cart_count: number;
45553
+ customer_name: string;
45554
+ delivery_date: string;
45555
+ order_number: string;
45556
+ order_source: string;
45557
+ order_uuid: string;
45558
+ pick_date: string;
45559
+ plant_count: number;
45560
+ printed_at: string;
45561
+ shifted: boolean;
45562
+ status: string;
45563
+ }[];
45564
+ };
44955
45565
  logistics_order_pick_day: {
44956
45566
  Args: {
44957
45567
  p_order_ref: string;
@@ -44964,6 +45574,22 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
44964
45574
  };
44965
45575
  Returns: string;
44966
45576
  };
45577
+ logistics_pick_agenda: {
45578
+ Args: {
45579
+ p_from?: string;
45580
+ p_to?: string;
45581
+ };
45582
+ Returns: {
45583
+ cart_count: number;
45584
+ in_preparation: number;
45585
+ order_count: number;
45586
+ orders: import("../integrations/supabase/types").Json;
45587
+ pick_date: string;
45588
+ plant_count: number;
45589
+ ready: number;
45590
+ shifted_count: number;
45591
+ }[];
45592
+ };
44967
45593
  logistics_pick_email_purpose: {
44968
45594
  Args: never;
44969
45595
  Returns: string;
@@ -45018,6 +45644,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
45018
45644
  };
45019
45645
  Returns: undefined;
45020
45646
  };
45647
+ logistics_plan_floriday_order: {
45648
+ Args: {
45649
+ p_buffer_id?: string;
45650
+ p_order_id: string;
45651
+ };
45652
+ Returns: number;
45653
+ };
45021
45654
  logistics_plan_impact_orders: {
45022
45655
  Args: {
45023
45656
  p_order_id: string;
@@ -45123,6 +45756,15 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
45123
45756
  };
45124
45757
  Returns: import("../integrations/supabase/types").Json;
45125
45758
  };
45759
+ logistics_resolve_pick_document: {
45760
+ Args: {
45761
+ _is_herprint: boolean;
45762
+ _queue_item_id: string;
45763
+ _session_id: string;
45764
+ _voorbeeld: boolean;
45765
+ };
45766
+ Returns: import("../integrations/supabase/types").Json;
45767
+ };
45126
45768
  logistics_resolve_settings: {
45127
45769
  Args: {
45128
45770
  p_config_id: string;
@@ -45253,14 +45895,6 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
45253
45895
  };
45254
45896
  Returns: string;
45255
45897
  };
45256
- maps_cron_token: {
45257
- Args: never;
45258
- Returns: string;
45259
- };
45260
- maps_kick_queue: {
45261
- Args: never;
45262
- Returns: undefined;
45263
- };
45264
45898
  mark_offer_clicked: {
45265
45899
  Args: {
45266
45900
  p_code: string;
@@ -45571,6 +46205,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
45571
46205
  };
45572
46206
  pick_enqueue_print_job: {
45573
46207
  Args: {
46208
+ _is_herprint?: boolean;
45574
46209
  _printer_id?: string;
45575
46210
  _queue_item_id: string;
45576
46211
  _session_id?: string;
@@ -45584,6 +46219,13 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
45584
46219
  };
45585
46220
  Returns: import("../integrations/supabase/types").Json;
45586
46221
  };
46222
+ pick_preview_job: {
46223
+ Args: {
46224
+ _queue_item_id: string;
46225
+ _station_slug: string;
46226
+ };
46227
+ Returns: import("../integrations/supabase/types").Json;
46228
+ };
45587
46229
  pick_print_job_status: {
45588
46230
  Args: {
45589
46231
  _job_id: string;
@@ -45761,6 +46403,24 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
45761
46403
  };
45762
46404
  Returns: undefined;
45763
46405
  };
46406
+ print_preview_toestaan: {
46407
+ Args: {
46408
+ _max?: number;
46409
+ _queue_item_id: string;
46410
+ _station_slug: string;
46411
+ _venster_sec?: number;
46412
+ };
46413
+ Returns: import("../integrations/supabase/types").Json;
46414
+ };
46415
+ print_preview_weiger: {
46416
+ Args: {
46417
+ _code: string;
46418
+ _queue_item_id: string;
46419
+ _reden: string;
46420
+ _station_slug: string;
46421
+ };
46422
+ Returns: undefined;
46423
+ };
45764
46424
  process_logistics_event: {
45765
46425
  Args: {
45766
46426
  p_event_id: string;
@@ -45878,6 +46538,14 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
45878
46538
  };
45879
46539
  Returns: undefined;
45880
46540
  };
46541
+ replace_order_carts: {
46542
+ Args: {
46543
+ p_buffer_id: string;
46544
+ p_carts: import("../integrations/supabase/types").Json;
46545
+ p_order_id: string;
46546
+ };
46547
+ Returns: import("../integrations/supabase/types").Json;
46548
+ };
45881
46549
  reset_floriday_sync_cursor: {
45882
46550
  Args: {
45883
46551
  p_connection_id: string;
@@ -45907,6 +46575,12 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
45907
46575
  };
45908
46576
  Returns: string;
45909
46577
  };
46578
+ resolve_print_job_printer_id: {
46579
+ Args: {
46580
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
46581
+ };
46582
+ Returns: string;
46583
+ };
45910
46584
  resolve_product_id_for_item: {
45911
46585
  Args: {
45912
46586
  p_product_name: string;
@@ -46498,7 +47172,7 @@ export declare const getAutoFulfillmentStatus: import("@tanstack/start-client-co
46498
47172
  };
46499
47173
  CompositeTypes: { [_ in never]: never; };
46500
47174
  }, {
46501
- PostgrestVersion: "14.17";
47175
+ PostgrestVersion: "14.5";
46502
47176
  }>;
46503
47177
  userId: string;
46504
47178
  claims: import("@supabase/auth-js").User;
@@ -49368,6 +50042,84 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
49368
50042
  };
49369
50043
  Relationships: [];
49370
50044
  };
50045
+ delivery_notes: {
50046
+ Row: {
50047
+ byte_size: number | null;
50048
+ connection_id: string | null;
50049
+ content_type: string;
50050
+ created_at: string;
50051
+ error_message: string | null;
50052
+ fetched_at: string | null;
50053
+ fulfillment_order_id: string | null;
50054
+ http_status: number | null;
50055
+ id: string;
50056
+ label_code: string | null;
50057
+ letter: string | null;
50058
+ load_carrier_index: number | null;
50059
+ load_carrier_type: string | null;
50060
+ order_id: string | null;
50061
+ order_number: string | null;
50062
+ packages: number | null;
50063
+ source: string;
50064
+ status: string;
50065
+ storage_bucket: string;
50066
+ storage_path: string | null;
50067
+ updated_at: string;
50068
+ };
50069
+ Insert: {
50070
+ byte_size?: number | null;
50071
+ connection_id?: string | null;
50072
+ content_type?: string;
50073
+ created_at?: string;
50074
+ error_message?: string | null;
50075
+ fetched_at?: string | null;
50076
+ fulfillment_order_id?: string | null;
50077
+ http_status?: number | null;
50078
+ id?: string;
50079
+ label_code?: string | null;
50080
+ letter?: string | null;
50081
+ load_carrier_index?: number | null;
50082
+ load_carrier_type?: string | null;
50083
+ order_id?: string | null;
50084
+ order_number?: string | null;
50085
+ packages?: number | null;
50086
+ source?: string;
50087
+ status?: string;
50088
+ storage_bucket?: string;
50089
+ storage_path?: string | null;
50090
+ updated_at?: string;
50091
+ };
50092
+ Update: {
50093
+ byte_size?: number | null;
50094
+ connection_id?: string | null;
50095
+ content_type?: string;
50096
+ created_at?: string;
50097
+ error_message?: string | null;
50098
+ fetched_at?: string | null;
50099
+ fulfillment_order_id?: string | null;
50100
+ http_status?: number | null;
50101
+ id?: string;
50102
+ label_code?: string | null;
50103
+ letter?: string | null;
50104
+ load_carrier_index?: number | null;
50105
+ load_carrier_type?: string | null;
50106
+ order_id?: string | null;
50107
+ order_number?: string | null;
50108
+ packages?: number | null;
50109
+ source?: string;
50110
+ status?: string;
50111
+ storage_bucket?: string;
50112
+ storage_path?: string | null;
50113
+ updated_at?: string;
50114
+ };
50115
+ Relationships: [{
50116
+ foreignKeyName: "delivery_notes_order_id_fkey";
50117
+ columns: ["order_id"];
50118
+ isOneToOne: false;
50119
+ referencedRelation: "orders";
50120
+ referencedColumns: ["id"];
50121
+ }];
50122
+ };
49371
50123
  document_bronregels: {
49372
50124
  Row: {
49373
50125
  bron: string;
@@ -52421,10 +53173,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
52421
53173
  };
52422
53174
  floriday_connections: {
52423
53175
  Row: {
52424
- access_token: string | null;
52425
53176
  api_key: string;
52426
- client_id: string;
52427
- client_secret: string;
52428
53177
  created_at: string;
52429
53178
  customers_endpoint: string | null;
52430
53179
  environment: string;
@@ -52439,10 +53188,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
52439
53188
  updated_at: string;
52440
53189
  };
52441
53190
  Insert: {
52442
- access_token?: string | null;
52443
53191
  api_key: string;
52444
- client_id: string;
52445
- client_secret: string;
52446
53192
  created_at?: string;
52447
53193
  customers_endpoint?: string | null;
52448
53194
  environment: string;
@@ -52457,10 +53203,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
52457
53203
  updated_at?: string;
52458
53204
  };
52459
53205
  Update: {
52460
- access_token?: string | null;
52461
53206
  api_key?: string;
52462
- client_id?: string;
52463
- client_secret?: string;
52464
53207
  created_at?: string;
52465
53208
  customers_endpoint?: string | null;
52466
53209
  environment?: string;
@@ -57331,6 +58074,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
57331
58074
  last_error: string | null;
57332
58075
  last_error_at: string | null;
57333
58076
  last_success_at: string | null;
58077
+ provider: string;
57334
58078
  updated_at: string;
57335
58079
  };
57336
58080
  Insert: {
@@ -57342,6 +58086,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
57342
58086
  last_error?: string | null;
57343
58087
  last_error_at?: string | null;
57344
58088
  last_success_at?: string | null;
58089
+ provider?: string;
57345
58090
  updated_at?: string;
57346
58091
  };
57347
58092
  Update: {
@@ -57353,6 +58098,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
57353
58098
  last_error?: string | null;
57354
58099
  last_error_at?: string | null;
57355
58100
  last_success_at?: string | null;
58101
+ provider?: string;
57356
58102
  updated_at?: string;
57357
58103
  };
57358
58104
  Relationships: [];
@@ -60090,6 +60836,39 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60090
60836
  };
60091
60837
  Relationships: [];
60092
60838
  };
60839
+ print_dedupe_events: {
60840
+ Row: {
60841
+ bestaande_job_id: string | null;
60842
+ created_at: string;
60843
+ detail: string | null;
60844
+ documentnaam: string | null;
60845
+ documenttype: string | null;
60846
+ id: string;
60847
+ idempotentie_sleutel: string;
60848
+ reden: string;
60849
+ };
60850
+ Insert: {
60851
+ bestaande_job_id?: string | null;
60852
+ created_at?: string;
60853
+ detail?: string | null;
60854
+ documentnaam?: string | null;
60855
+ documenttype?: string | null;
60856
+ id?: string;
60857
+ idempotentie_sleutel: string;
60858
+ reden: string;
60859
+ };
60860
+ Update: {
60861
+ bestaande_job_id?: string | null;
60862
+ created_at?: string;
60863
+ detail?: string | null;
60864
+ documentnaam?: string | null;
60865
+ documenttype?: string | null;
60866
+ id?: string;
60867
+ idempotentie_sleutel?: string;
60868
+ reden?: string;
60869
+ };
60870
+ Relationships: [];
60871
+ };
60093
60872
  print_job_logs: {
60094
60873
  Row: {
60095
60874
  created_at: string;
@@ -60140,6 +60919,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60140
60919
  is_herprint: boolean;
60141
60920
  kopieen: number;
60142
60921
  layout_id: string | null;
60922
+ lokaal_opgeslagen_op: string | null;
60923
+ lokale_pdf_fout: string | null;
60924
+ lokale_pdf_status: string | null;
60143
60925
  opgepakt_op: string | null;
60144
60926
  paginas: number;
60145
60927
  payload: import("../integrations/supabase/types").Json;
@@ -60148,6 +60930,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60148
60930
  pogingen: number;
60149
60931
  printer_id: string | null;
60150
60932
  render_html: string | null;
60933
+ resultaat_pdf_base64: string | null;
60151
60934
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60152
60935
  updated_at: string;
60153
60936
  volgende_poging: string | null;
@@ -60172,6 +60955,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60172
60955
  is_herprint?: boolean;
60173
60956
  kopieen?: number;
60174
60957
  layout_id?: string | null;
60958
+ lokaal_opgeslagen_op?: string | null;
60959
+ lokale_pdf_fout?: string | null;
60960
+ lokale_pdf_status?: string | null;
60175
60961
  opgepakt_op?: string | null;
60176
60962
  paginas?: number;
60177
60963
  payload?: import("../integrations/supabase/types").Json;
@@ -60180,6 +60966,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60180
60966
  pogingen?: number;
60181
60967
  printer_id?: string | null;
60182
60968
  render_html?: string | null;
60969
+ resultaat_pdf_base64?: string | null;
60183
60970
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60184
60971
  updated_at?: string;
60185
60972
  volgende_poging?: string | null;
@@ -60204,6 +60991,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60204
60991
  is_herprint?: boolean;
60205
60992
  kopieen?: number;
60206
60993
  layout_id?: string | null;
60994
+ lokaal_opgeslagen_op?: string | null;
60995
+ lokale_pdf_fout?: string | null;
60996
+ lokale_pdf_status?: string | null;
60207
60997
  opgepakt_op?: string | null;
60208
60998
  paginas?: number;
60209
60999
  payload?: import("../integrations/supabase/types").Json;
@@ -60212,6 +61002,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60212
61002
  pogingen?: number;
60213
61003
  printer_id?: string | null;
60214
61004
  render_html?: string | null;
61005
+ resultaat_pdf_base64?: string | null;
60215
61006
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60216
61007
  updated_at?: string;
60217
61008
  volgende_poging?: string | null;
@@ -60330,6 +61121,39 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60330
61121
  };
60331
61122
  Relationships: [];
60332
61123
  };
61124
+ print_preview_events: {
61125
+ Row: {
61126
+ code: string | null;
61127
+ created_at: string;
61128
+ detail: import("../integrations/supabase/types").Json;
61129
+ id: string;
61130
+ queue_item_id: string | null;
61131
+ reden: string | null;
61132
+ station_slug: string | null;
61133
+ uitkomst: string;
61134
+ };
61135
+ Insert: {
61136
+ code?: string | null;
61137
+ created_at?: string;
61138
+ detail?: import("../integrations/supabase/types").Json;
61139
+ id?: string;
61140
+ queue_item_id?: string | null;
61141
+ reden?: string | null;
61142
+ station_slug?: string | null;
61143
+ uitkomst?: string;
61144
+ };
61145
+ Update: {
61146
+ code?: string | null;
61147
+ created_at?: string;
61148
+ detail?: import("../integrations/supabase/types").Json;
61149
+ id?: string;
61150
+ queue_item_id?: string | null;
61151
+ reden?: string | null;
61152
+ station_slug?: string | null;
61153
+ uitkomst?: string;
61154
+ };
61155
+ Relationships: [];
61156
+ };
60333
61157
  print_queue_runners: {
60334
61158
  Row: {
60335
61159
  actief: boolean;
@@ -60569,6 +61393,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60569
61393
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
60570
61394
  online: boolean;
60571
61395
  papierformaat: string;
61396
+ pdf_map: string | null;
60572
61397
  poort: number | null;
60573
61398
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60574
61399
  systeemnaam: string;
@@ -60594,6 +61419,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60594
61419
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60595
61420
  online?: boolean;
60596
61421
  papierformaat?: string;
61422
+ pdf_map?: string | null;
60597
61423
  poort?: number | null;
60598
61424
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60599
61425
  systeemnaam?: string;
@@ -60619,6 +61445,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
60619
61445
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60620
61446
  online?: boolean;
60621
61447
  papierformaat?: string;
61448
+ pdf_map?: string | null;
60622
61449
  poort?: number | null;
60623
61450
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60624
61451
  systeemnaam?: string;
@@ -66875,6 +67702,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
66875
67702
  is_herprint: boolean;
66876
67703
  kopieen: number;
66877
67704
  layout_id: string | null;
67705
+ lokaal_opgeslagen_op: string | null;
67706
+ lokale_pdf_fout: string | null;
67707
+ lokale_pdf_status: string | null;
66878
67708
  opgepakt_op: string | null;
66879
67709
  paginas: number;
66880
67710
  payload: import("../integrations/supabase/types").Json;
@@ -66883,6 +67713,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
66883
67713
  pogingen: number;
66884
67714
  printer_id: string | null;
66885
67715
  render_html: string | null;
67716
+ resultaat_pdf_base64: string | null;
66886
67717
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
66887
67718
  updated_at: string;
66888
67719
  volgende_poging: string | null;
@@ -66974,6 +67805,53 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
66974
67805
  isSetofReturn: true;
66975
67806
  };
66976
67807
  };
67808
+ claim_pdf_print_jobs: {
67809
+ Args: {
67810
+ _max?: number;
67811
+ };
67812
+ Returns: {
67813
+ agent_id: string | null;
67814
+ bron_job_id: string | null;
67815
+ created_at: string;
67816
+ documentnaam: string;
67817
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
67818
+ extern_job_id: string | null;
67819
+ foutmelding: string | null;
67820
+ gebruiker_id: string | null;
67821
+ gebruiker_naam: string;
67822
+ gebruikte_bron: string | null;
67823
+ gebruikte_layout_id: string | null;
67824
+ gestart_op: string | null;
67825
+ herkomst: string | null;
67826
+ id: string;
67827
+ idempotentie_sleutel: string | null;
67828
+ is_herprint: boolean;
67829
+ kopieen: number;
67830
+ layout_id: string | null;
67831
+ lokaal_opgeslagen_op: string | null;
67832
+ lokale_pdf_fout: string | null;
67833
+ lokale_pdf_status: string | null;
67834
+ opgepakt_op: string | null;
67835
+ paginas: number;
67836
+ payload: import("../integrations/supabase/types").Json;
67837
+ pdf_base64: string | null;
67838
+ pdf_url: string | null;
67839
+ pogingen: number;
67840
+ printer_id: string | null;
67841
+ render_html: string | null;
67842
+ resultaat_pdf_base64: string | null;
67843
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67844
+ updated_at: string;
67845
+ volgende_poging: string | null;
67846
+ voltooid_op: string | null;
67847
+ }[];
67848
+ SetofOptions: {
67849
+ from: "*";
67850
+ to: "print_jobs";
67851
+ isOneToOne: false;
67852
+ isSetofReturn: true;
67853
+ };
67854
+ };
66977
67855
  claim_print_jobs: {
66978
67856
  Args: {
66979
67857
  _agent_id: string;
@@ -66998,6 +67876,9 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
66998
67876
  is_herprint: boolean;
66999
67877
  kopieen: number;
67000
67878
  layout_id: string | null;
67879
+ lokaal_opgeslagen_op: string | null;
67880
+ lokale_pdf_fout: string | null;
67881
+ lokale_pdf_status: string | null;
67001
67882
  opgepakt_op: string | null;
67002
67883
  paginas: number;
67003
67884
  payload: import("../integrations/supabase/types").Json;
@@ -67006,6 +67887,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
67006
67887
  pogingen: number;
67007
67888
  printer_id: string | null;
67008
67889
  render_html: string | null;
67890
+ resultaat_pdf_base64: string | null;
67009
67891
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67010
67892
  updated_at: string;
67011
67893
  volgende_poging: string | null;
@@ -67146,6 +68028,8 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
67146
68028
  order_id: string;
67147
68029
  order_source: string;
67148
68030
  pick_date: string;
68031
+ printed_at: string;
68032
+ printed_today: boolean;
67149
68033
  status: string;
67150
68034
  }[];
67151
68035
  };
@@ -67854,6 +68738,10 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
67854
68738
  };
67855
68739
  Returns: number;
67856
68740
  };
68741
+ logistics_cancel_orphan_tasks: {
68742
+ Args: never;
68743
+ Returns: number;
68744
+ };
67857
68745
  logistics_capacity_day_check: {
67858
68746
  Args: {
67859
68747
  p_from?: string;
@@ -67874,6 +68762,25 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
67874
68762
  };
67875
68763
  Returns: number;
67876
68764
  };
68765
+ logistics_cart_index: {
68766
+ Args: {
68767
+ p_from?: string;
68768
+ p_to?: string;
68769
+ };
68770
+ Returns: {
68771
+ cart_id: string;
68772
+ cart_index: number;
68773
+ cart_label: string;
68774
+ is_shared: boolean;
68775
+ order_number: string;
68776
+ order_source: string;
68777
+ order_uuid: string;
68778
+ pick_date: string;
68779
+ printed_at: string;
68780
+ shifted: boolean;
68781
+ task_status: string;
68782
+ }[];
68783
+ };
67877
68784
  logistics_check_order_allowed: {
67878
68785
  Args: {
67879
68786
  p_lines: import("../integrations/supabase/types").Json;
@@ -68022,6 +68929,17 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
68022
68929
  isSetofReturn: false;
68023
68930
  };
68024
68931
  };
68932
+ logistics_consistency_check: {
68933
+ Args: never;
68934
+ Returns: {
68935
+ agenda_carts: number;
68936
+ control_carts: number;
68937
+ ok: boolean;
68938
+ orphan_tasks: number;
68939
+ pick_date: string;
68940
+ raw_carts: number;
68941
+ }[];
68942
+ };
68025
68943
  logistics_delay_customer_email: {
68026
68944
  Args: {
68027
68945
  p_customer: string;
@@ -68111,6 +69029,16 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
68111
69029
  isSetofReturn: false;
68112
69030
  };
68113
69031
  };
69032
+ logistics_floriday_cart_plan: {
69033
+ Args: {
69034
+ p_order_id: string;
69035
+ };
69036
+ Returns: {
69037
+ carrier_type: string;
69038
+ idx: number;
69039
+ packages: number;
69040
+ }[];
69041
+ };
68114
69042
  logistics_floriday_claim_pushes: {
68115
69043
  Args: {
68116
69044
  _lease_seconds?: number;
@@ -68215,6 +69143,25 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
68215
69143
  };
68216
69144
  Returns: number;
68217
69145
  };
69146
+ logistics_order_overview: {
69147
+ Args: {
69148
+ p_from?: string;
69149
+ p_to?: string;
69150
+ };
69151
+ Returns: {
69152
+ cart_count: number;
69153
+ customer_name: string;
69154
+ delivery_date: string;
69155
+ order_number: string;
69156
+ order_source: string;
69157
+ order_uuid: string;
69158
+ pick_date: string;
69159
+ plant_count: number;
69160
+ printed_at: string;
69161
+ shifted: boolean;
69162
+ status: string;
69163
+ }[];
69164
+ };
68218
69165
  logistics_order_pick_day: {
68219
69166
  Args: {
68220
69167
  p_order_ref: string;
@@ -68227,6 +69174,22 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
68227
69174
  };
68228
69175
  Returns: string;
68229
69176
  };
69177
+ logistics_pick_agenda: {
69178
+ Args: {
69179
+ p_from?: string;
69180
+ p_to?: string;
69181
+ };
69182
+ Returns: {
69183
+ cart_count: number;
69184
+ in_preparation: number;
69185
+ order_count: number;
69186
+ orders: import("../integrations/supabase/types").Json;
69187
+ pick_date: string;
69188
+ plant_count: number;
69189
+ ready: number;
69190
+ shifted_count: number;
69191
+ }[];
69192
+ };
68230
69193
  logistics_pick_email_purpose: {
68231
69194
  Args: never;
68232
69195
  Returns: string;
@@ -68281,6 +69244,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
68281
69244
  };
68282
69245
  Returns: undefined;
68283
69246
  };
69247
+ logistics_plan_floriday_order: {
69248
+ Args: {
69249
+ p_buffer_id?: string;
69250
+ p_order_id: string;
69251
+ };
69252
+ Returns: number;
69253
+ };
68284
69254
  logistics_plan_impact_orders: {
68285
69255
  Args: {
68286
69256
  p_order_id: string;
@@ -68386,6 +69356,15 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
68386
69356
  };
68387
69357
  Returns: import("../integrations/supabase/types").Json;
68388
69358
  };
69359
+ logistics_resolve_pick_document: {
69360
+ Args: {
69361
+ _is_herprint: boolean;
69362
+ _queue_item_id: string;
69363
+ _session_id: string;
69364
+ _voorbeeld: boolean;
69365
+ };
69366
+ Returns: import("../integrations/supabase/types").Json;
69367
+ };
68389
69368
  logistics_resolve_settings: {
68390
69369
  Args: {
68391
69370
  p_config_id: string;
@@ -68516,14 +69495,6 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
68516
69495
  };
68517
69496
  Returns: string;
68518
69497
  };
68519
- maps_cron_token: {
68520
- Args: never;
68521
- Returns: string;
68522
- };
68523
- maps_kick_queue: {
68524
- Args: never;
68525
- Returns: undefined;
68526
- };
68527
69498
  mark_offer_clicked: {
68528
69499
  Args: {
68529
69500
  p_code: string;
@@ -68834,6 +69805,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
68834
69805
  };
68835
69806
  pick_enqueue_print_job: {
68836
69807
  Args: {
69808
+ _is_herprint?: boolean;
68837
69809
  _printer_id?: string;
68838
69810
  _queue_item_id: string;
68839
69811
  _session_id?: string;
@@ -68847,6 +69819,13 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
68847
69819
  };
68848
69820
  Returns: import("../integrations/supabase/types").Json;
68849
69821
  };
69822
+ pick_preview_job: {
69823
+ Args: {
69824
+ _queue_item_id: string;
69825
+ _station_slug: string;
69826
+ };
69827
+ Returns: import("../integrations/supabase/types").Json;
69828
+ };
68850
69829
  pick_print_job_status: {
68851
69830
  Args: {
68852
69831
  _job_id: string;
@@ -69024,6 +70003,24 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
69024
70003
  };
69025
70004
  Returns: undefined;
69026
70005
  };
70006
+ print_preview_toestaan: {
70007
+ Args: {
70008
+ _max?: number;
70009
+ _queue_item_id: string;
70010
+ _station_slug: string;
70011
+ _venster_sec?: number;
70012
+ };
70013
+ Returns: import("../integrations/supabase/types").Json;
70014
+ };
70015
+ print_preview_weiger: {
70016
+ Args: {
70017
+ _code: string;
70018
+ _queue_item_id: string;
70019
+ _reden: string;
70020
+ _station_slug: string;
70021
+ };
70022
+ Returns: undefined;
70023
+ };
69027
70024
  process_logistics_event: {
69028
70025
  Args: {
69029
70026
  p_event_id: string;
@@ -69141,6 +70138,14 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
69141
70138
  };
69142
70139
  Returns: undefined;
69143
70140
  };
70141
+ replace_order_carts: {
70142
+ Args: {
70143
+ p_buffer_id: string;
70144
+ p_carts: import("../integrations/supabase/types").Json;
70145
+ p_order_id: string;
70146
+ };
70147
+ Returns: import("../integrations/supabase/types").Json;
70148
+ };
69144
70149
  reset_floriday_sync_cursor: {
69145
70150
  Args: {
69146
70151
  p_connection_id: string;
@@ -69170,6 +70175,12 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
69170
70175
  };
69171
70176
  Returns: string;
69172
70177
  };
70178
+ resolve_print_job_printer_id: {
70179
+ Args: {
70180
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
70181
+ };
70182
+ Returns: string;
70183
+ };
69173
70184
  resolve_product_id_for_item: {
69174
70185
  Args: {
69175
70186
  p_product_name: string;
@@ -69761,7 +70772,7 @@ export declare const retryAutoFulfillment: import("@tanstack/start-client-core")
69761
70772
  };
69762
70773
  CompositeTypes: { [_ in never]: never; };
69763
70774
  }, {
69764
- PostgrestVersion: "14.17";
70775
+ PostgrestVersion: "14.5";
69765
70776
  }>;
69766
70777
  userId: string;
69767
70778
  claims: import("@supabase/auth-js").User;