@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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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 listOrderShipments: import("@tanstack/start-client-core").O
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;
@@ -26136,6 +26473,84 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
26136
26473
  };
26137
26474
  Relationships: [];
26138
26475
  };
26476
+ delivery_notes: {
26477
+ Row: {
26478
+ byte_size: number | null;
26479
+ connection_id: string | null;
26480
+ content_type: string;
26481
+ created_at: string;
26482
+ error_message: string | null;
26483
+ fetched_at: string | null;
26484
+ fulfillment_order_id: string | null;
26485
+ http_status: number | null;
26486
+ id: string;
26487
+ label_code: string | null;
26488
+ letter: string | null;
26489
+ load_carrier_index: number | null;
26490
+ load_carrier_type: string | null;
26491
+ order_id: string | null;
26492
+ order_number: string | null;
26493
+ packages: number | null;
26494
+ source: string;
26495
+ status: string;
26496
+ storage_bucket: string;
26497
+ storage_path: string | null;
26498
+ updated_at: string;
26499
+ };
26500
+ Insert: {
26501
+ byte_size?: number | null;
26502
+ connection_id?: string | null;
26503
+ content_type?: string;
26504
+ created_at?: string;
26505
+ error_message?: string | null;
26506
+ fetched_at?: string | null;
26507
+ fulfillment_order_id?: string | null;
26508
+ http_status?: number | null;
26509
+ id?: string;
26510
+ label_code?: string | null;
26511
+ letter?: string | null;
26512
+ load_carrier_index?: number | null;
26513
+ load_carrier_type?: string | null;
26514
+ order_id?: string | null;
26515
+ order_number?: string | null;
26516
+ packages?: number | null;
26517
+ source?: string;
26518
+ status?: string;
26519
+ storage_bucket?: string;
26520
+ storage_path?: string | null;
26521
+ updated_at?: string;
26522
+ };
26523
+ Update: {
26524
+ byte_size?: number | null;
26525
+ connection_id?: string | null;
26526
+ content_type?: string;
26527
+ created_at?: string;
26528
+ error_message?: string | null;
26529
+ fetched_at?: string | null;
26530
+ fulfillment_order_id?: string | null;
26531
+ http_status?: number | null;
26532
+ id?: string;
26533
+ label_code?: string | null;
26534
+ letter?: string | null;
26535
+ load_carrier_index?: number | null;
26536
+ load_carrier_type?: string | null;
26537
+ order_id?: string | null;
26538
+ order_number?: string | null;
26539
+ packages?: number | null;
26540
+ source?: string;
26541
+ status?: string;
26542
+ storage_bucket?: string;
26543
+ storage_path?: string | null;
26544
+ updated_at?: string;
26545
+ };
26546
+ Relationships: [{
26547
+ foreignKeyName: "delivery_notes_order_id_fkey";
26548
+ columns: ["order_id"];
26549
+ isOneToOne: false;
26550
+ referencedRelation: "orders";
26551
+ referencedColumns: ["id"];
26552
+ }];
26553
+ };
26139
26554
  document_bronregels: {
26140
26555
  Row: {
26141
26556
  bron: string;
@@ -29189,10 +29604,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
29189
29604
  };
29190
29605
  floriday_connections: {
29191
29606
  Row: {
29192
- access_token: string | null;
29193
29607
  api_key: string;
29194
- client_id: string;
29195
- client_secret: string;
29196
29608
  created_at: string;
29197
29609
  customers_endpoint: string | null;
29198
29610
  environment: string;
@@ -29207,10 +29619,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
29207
29619
  updated_at: string;
29208
29620
  };
29209
29621
  Insert: {
29210
- access_token?: string | null;
29211
29622
  api_key: string;
29212
- client_id: string;
29213
- client_secret: string;
29214
29623
  created_at?: string;
29215
29624
  customers_endpoint?: string | null;
29216
29625
  environment: string;
@@ -29225,10 +29634,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
29225
29634
  updated_at?: string;
29226
29635
  };
29227
29636
  Update: {
29228
- access_token?: string | null;
29229
29637
  api_key?: string;
29230
- client_id?: string;
29231
- client_secret?: string;
29232
29638
  created_at?: string;
29233
29639
  customers_endpoint?: string | null;
29234
29640
  environment?: string;
@@ -34099,6 +34505,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
34099
34505
  last_error: string | null;
34100
34506
  last_error_at: string | null;
34101
34507
  last_success_at: string | null;
34508
+ provider: string;
34102
34509
  updated_at: string;
34103
34510
  };
34104
34511
  Insert: {
@@ -34110,6 +34517,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
34110
34517
  last_error?: string | null;
34111
34518
  last_error_at?: string | null;
34112
34519
  last_success_at?: string | null;
34520
+ provider?: string;
34113
34521
  updated_at?: string;
34114
34522
  };
34115
34523
  Update: {
@@ -34121,6 +34529,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
34121
34529
  last_error?: string | null;
34122
34530
  last_error_at?: string | null;
34123
34531
  last_success_at?: string | null;
34532
+ provider?: string;
34124
34533
  updated_at?: string;
34125
34534
  };
34126
34535
  Relationships: [];
@@ -36858,6 +37267,39 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36858
37267
  };
36859
37268
  Relationships: [];
36860
37269
  };
37270
+ print_dedupe_events: {
37271
+ Row: {
37272
+ bestaande_job_id: string | null;
37273
+ created_at: string;
37274
+ detail: string | null;
37275
+ documentnaam: string | null;
37276
+ documenttype: string | null;
37277
+ id: string;
37278
+ idempotentie_sleutel: string;
37279
+ reden: string;
37280
+ };
37281
+ Insert: {
37282
+ bestaande_job_id?: string | null;
37283
+ created_at?: string;
37284
+ detail?: string | null;
37285
+ documentnaam?: string | null;
37286
+ documenttype?: string | null;
37287
+ id?: string;
37288
+ idempotentie_sleutel: string;
37289
+ reden: string;
37290
+ };
37291
+ Update: {
37292
+ bestaande_job_id?: string | null;
37293
+ created_at?: string;
37294
+ detail?: string | null;
37295
+ documentnaam?: string | null;
37296
+ documenttype?: string | null;
37297
+ id?: string;
37298
+ idempotentie_sleutel?: string;
37299
+ reden?: string;
37300
+ };
37301
+ Relationships: [];
37302
+ };
36861
37303
  print_job_logs: {
36862
37304
  Row: {
36863
37305
  created_at: string;
@@ -36908,6 +37350,9 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36908
37350
  is_herprint: boolean;
36909
37351
  kopieen: number;
36910
37352
  layout_id: string | null;
37353
+ lokaal_opgeslagen_op: string | null;
37354
+ lokale_pdf_fout: string | null;
37355
+ lokale_pdf_status: string | null;
36911
37356
  opgepakt_op: string | null;
36912
37357
  paginas: number;
36913
37358
  payload: import("../integrations/supabase/types").Json;
@@ -36916,6 +37361,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36916
37361
  pogingen: number;
36917
37362
  printer_id: string | null;
36918
37363
  render_html: string | null;
37364
+ resultaat_pdf_base64: string | null;
36919
37365
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36920
37366
  updated_at: string;
36921
37367
  volgende_poging: string | null;
@@ -36940,6 +37386,9 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36940
37386
  is_herprint?: boolean;
36941
37387
  kopieen?: number;
36942
37388
  layout_id?: string | null;
37389
+ lokaal_opgeslagen_op?: string | null;
37390
+ lokale_pdf_fout?: string | null;
37391
+ lokale_pdf_status?: string | null;
36943
37392
  opgepakt_op?: string | null;
36944
37393
  paginas?: number;
36945
37394
  payload?: import("../integrations/supabase/types").Json;
@@ -36948,6 +37397,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36948
37397
  pogingen?: number;
36949
37398
  printer_id?: string | null;
36950
37399
  render_html?: string | null;
37400
+ resultaat_pdf_base64?: string | null;
36951
37401
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36952
37402
  updated_at?: string;
36953
37403
  volgende_poging?: string | null;
@@ -36972,6 +37422,9 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36972
37422
  is_herprint?: boolean;
36973
37423
  kopieen?: number;
36974
37424
  layout_id?: string | null;
37425
+ lokaal_opgeslagen_op?: string | null;
37426
+ lokale_pdf_fout?: string | null;
37427
+ lokale_pdf_status?: string | null;
36975
37428
  opgepakt_op?: string | null;
36976
37429
  paginas?: number;
36977
37430
  payload?: import("../integrations/supabase/types").Json;
@@ -36980,6 +37433,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
36980
37433
  pogingen?: number;
36981
37434
  printer_id?: string | null;
36982
37435
  render_html?: string | null;
37436
+ resultaat_pdf_base64?: string | null;
36983
37437
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36984
37438
  updated_at?: string;
36985
37439
  volgende_poging?: string | null;
@@ -37098,6 +37552,39 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
37098
37552
  };
37099
37553
  Relationships: [];
37100
37554
  };
37555
+ print_preview_events: {
37556
+ Row: {
37557
+ code: string | null;
37558
+ created_at: string;
37559
+ detail: import("../integrations/supabase/types").Json;
37560
+ id: string;
37561
+ queue_item_id: string | null;
37562
+ reden: string | null;
37563
+ station_slug: string | null;
37564
+ uitkomst: string;
37565
+ };
37566
+ Insert: {
37567
+ code?: string | null;
37568
+ created_at?: string;
37569
+ detail?: import("../integrations/supabase/types").Json;
37570
+ id?: string;
37571
+ queue_item_id?: string | null;
37572
+ reden?: string | null;
37573
+ station_slug?: string | null;
37574
+ uitkomst?: string;
37575
+ };
37576
+ Update: {
37577
+ code?: string | null;
37578
+ created_at?: string;
37579
+ detail?: import("../integrations/supabase/types").Json;
37580
+ id?: string;
37581
+ queue_item_id?: string | null;
37582
+ reden?: string | null;
37583
+ station_slug?: string | null;
37584
+ uitkomst?: string;
37585
+ };
37586
+ Relationships: [];
37587
+ };
37101
37588
  print_queue_runners: {
37102
37589
  Row: {
37103
37590
  actief: boolean;
@@ -37337,6 +37824,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
37337
37824
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37338
37825
  online: boolean;
37339
37826
  papierformaat: string;
37827
+ pdf_map: string | null;
37340
37828
  poort: number | null;
37341
37829
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37342
37830
  systeemnaam: string;
@@ -37362,6 +37850,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
37362
37850
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37363
37851
  online?: boolean;
37364
37852
  papierformaat?: string;
37853
+ pdf_map?: string | null;
37365
37854
  poort?: number | null;
37366
37855
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37367
37856
  systeemnaam?: string;
@@ -37387,6 +37876,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
37387
37876
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37388
37877
  online?: boolean;
37389
37878
  papierformaat?: string;
37879
+ pdf_map?: string | null;
37390
37880
  poort?: number | null;
37391
37881
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37392
37882
  systeemnaam?: string;
@@ -43643,6 +44133,9 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
43643
44133
  is_herprint: boolean;
43644
44134
  kopieen: number;
43645
44135
  layout_id: string | null;
44136
+ lokaal_opgeslagen_op: string | null;
44137
+ lokale_pdf_fout: string | null;
44138
+ lokale_pdf_status: string | null;
43646
44139
  opgepakt_op: string | null;
43647
44140
  paginas: number;
43648
44141
  payload: import("../integrations/supabase/types").Json;
@@ -43651,6 +44144,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
43651
44144
  pogingen: number;
43652
44145
  printer_id: string | null;
43653
44146
  render_html: string | null;
44147
+ resultaat_pdf_base64: string | null;
43654
44148
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43655
44149
  updated_at: string;
43656
44150
  volgende_poging: string | null;
@@ -43742,6 +44236,53 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
43742
44236
  isSetofReturn: true;
43743
44237
  };
43744
44238
  };
44239
+ claim_pdf_print_jobs: {
44240
+ Args: {
44241
+ _max?: number;
44242
+ };
44243
+ Returns: {
44244
+ agent_id: string | null;
44245
+ bron_job_id: string | null;
44246
+ created_at: string;
44247
+ documentnaam: string;
44248
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44249
+ extern_job_id: string | null;
44250
+ foutmelding: string | null;
44251
+ gebruiker_id: string | null;
44252
+ gebruiker_naam: string;
44253
+ gebruikte_bron: string | null;
44254
+ gebruikte_layout_id: string | null;
44255
+ gestart_op: string | null;
44256
+ herkomst: string | null;
44257
+ id: string;
44258
+ idempotentie_sleutel: string | null;
44259
+ is_herprint: boolean;
44260
+ kopieen: number;
44261
+ layout_id: string | null;
44262
+ lokaal_opgeslagen_op: string | null;
44263
+ lokale_pdf_fout: string | null;
44264
+ lokale_pdf_status: string | null;
44265
+ opgepakt_op: string | null;
44266
+ paginas: number;
44267
+ payload: import("../integrations/supabase/types").Json;
44268
+ pdf_base64: string | null;
44269
+ pdf_url: string | null;
44270
+ pogingen: number;
44271
+ printer_id: string | null;
44272
+ render_html: string | null;
44273
+ resultaat_pdf_base64: string | null;
44274
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44275
+ updated_at: string;
44276
+ volgende_poging: string | null;
44277
+ voltooid_op: string | null;
44278
+ }[];
44279
+ SetofOptions: {
44280
+ from: "*";
44281
+ to: "print_jobs";
44282
+ isOneToOne: false;
44283
+ isSetofReturn: true;
44284
+ };
44285
+ };
43745
44286
  claim_print_jobs: {
43746
44287
  Args: {
43747
44288
  _agent_id: string;
@@ -43766,6 +44307,9 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
43766
44307
  is_herprint: boolean;
43767
44308
  kopieen: number;
43768
44309
  layout_id: string | null;
44310
+ lokaal_opgeslagen_op: string | null;
44311
+ lokale_pdf_fout: string | null;
44312
+ lokale_pdf_status: string | null;
43769
44313
  opgepakt_op: string | null;
43770
44314
  paginas: number;
43771
44315
  payload: import("../integrations/supabase/types").Json;
@@ -43774,6 +44318,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
43774
44318
  pogingen: number;
43775
44319
  printer_id: string | null;
43776
44320
  render_html: string | null;
44321
+ resultaat_pdf_base64: string | null;
43777
44322
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43778
44323
  updated_at: string;
43779
44324
  volgende_poging: string | null;
@@ -43914,6 +44459,8 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
43914
44459
  order_id: string;
43915
44460
  order_source: string;
43916
44461
  pick_date: string;
44462
+ printed_at: string;
44463
+ printed_today: boolean;
43917
44464
  status: string;
43918
44465
  }[];
43919
44466
  };
@@ -44622,6 +45169,10 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
44622
45169
  };
44623
45170
  Returns: number;
44624
45171
  };
45172
+ logistics_cancel_orphan_tasks: {
45173
+ Args: never;
45174
+ Returns: number;
45175
+ };
44625
45176
  logistics_capacity_day_check: {
44626
45177
  Args: {
44627
45178
  p_from?: string;
@@ -44642,6 +45193,25 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
44642
45193
  };
44643
45194
  Returns: number;
44644
45195
  };
45196
+ logistics_cart_index: {
45197
+ Args: {
45198
+ p_from?: string;
45199
+ p_to?: string;
45200
+ };
45201
+ Returns: {
45202
+ cart_id: string;
45203
+ cart_index: number;
45204
+ cart_label: string;
45205
+ is_shared: boolean;
45206
+ order_number: string;
45207
+ order_source: string;
45208
+ order_uuid: string;
45209
+ pick_date: string;
45210
+ printed_at: string;
45211
+ shifted: boolean;
45212
+ task_status: string;
45213
+ }[];
45214
+ };
44645
45215
  logistics_check_order_allowed: {
44646
45216
  Args: {
44647
45217
  p_lines: import("../integrations/supabase/types").Json;
@@ -44790,6 +45360,17 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
44790
45360
  isSetofReturn: false;
44791
45361
  };
44792
45362
  };
45363
+ logistics_consistency_check: {
45364
+ Args: never;
45365
+ Returns: {
45366
+ agenda_carts: number;
45367
+ control_carts: number;
45368
+ ok: boolean;
45369
+ orphan_tasks: number;
45370
+ pick_date: string;
45371
+ raw_carts: number;
45372
+ }[];
45373
+ };
44793
45374
  logistics_delay_customer_email: {
44794
45375
  Args: {
44795
45376
  p_customer: string;
@@ -44879,6 +45460,16 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
44879
45460
  isSetofReturn: false;
44880
45461
  };
44881
45462
  };
45463
+ logistics_floriday_cart_plan: {
45464
+ Args: {
45465
+ p_order_id: string;
45466
+ };
45467
+ Returns: {
45468
+ carrier_type: string;
45469
+ idx: number;
45470
+ packages: number;
45471
+ }[];
45472
+ };
44882
45473
  logistics_floriday_claim_pushes: {
44883
45474
  Args: {
44884
45475
  _lease_seconds?: number;
@@ -44983,6 +45574,25 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
44983
45574
  };
44984
45575
  Returns: number;
44985
45576
  };
45577
+ logistics_order_overview: {
45578
+ Args: {
45579
+ p_from?: string;
45580
+ p_to?: string;
45581
+ };
45582
+ Returns: {
45583
+ cart_count: number;
45584
+ customer_name: string;
45585
+ delivery_date: string;
45586
+ order_number: string;
45587
+ order_source: string;
45588
+ order_uuid: string;
45589
+ pick_date: string;
45590
+ plant_count: number;
45591
+ printed_at: string;
45592
+ shifted: boolean;
45593
+ status: string;
45594
+ }[];
45595
+ };
44986
45596
  logistics_order_pick_day: {
44987
45597
  Args: {
44988
45598
  p_order_ref: string;
@@ -44995,6 +45605,22 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
44995
45605
  };
44996
45606
  Returns: string;
44997
45607
  };
45608
+ logistics_pick_agenda: {
45609
+ Args: {
45610
+ p_from?: string;
45611
+ p_to?: string;
45612
+ };
45613
+ Returns: {
45614
+ cart_count: number;
45615
+ in_preparation: number;
45616
+ order_count: number;
45617
+ orders: import("../integrations/supabase/types").Json;
45618
+ pick_date: string;
45619
+ plant_count: number;
45620
+ ready: number;
45621
+ shifted_count: number;
45622
+ }[];
45623
+ };
44998
45624
  logistics_pick_email_purpose: {
44999
45625
  Args: never;
45000
45626
  Returns: string;
@@ -45049,6 +45675,13 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
45049
45675
  };
45050
45676
  Returns: undefined;
45051
45677
  };
45678
+ logistics_plan_floriday_order: {
45679
+ Args: {
45680
+ p_buffer_id?: string;
45681
+ p_order_id: string;
45682
+ };
45683
+ Returns: number;
45684
+ };
45052
45685
  logistics_plan_impact_orders: {
45053
45686
  Args: {
45054
45687
  p_order_id: string;
@@ -45154,6 +45787,15 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
45154
45787
  };
45155
45788
  Returns: import("../integrations/supabase/types").Json;
45156
45789
  };
45790
+ logistics_resolve_pick_document: {
45791
+ Args: {
45792
+ _is_herprint: boolean;
45793
+ _queue_item_id: string;
45794
+ _session_id: string;
45795
+ _voorbeeld: boolean;
45796
+ };
45797
+ Returns: import("../integrations/supabase/types").Json;
45798
+ };
45157
45799
  logistics_resolve_settings: {
45158
45800
  Args: {
45159
45801
  p_config_id: string;
@@ -45284,14 +45926,6 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
45284
45926
  };
45285
45927
  Returns: string;
45286
45928
  };
45287
- maps_cron_token: {
45288
- Args: never;
45289
- Returns: string;
45290
- };
45291
- maps_kick_queue: {
45292
- Args: never;
45293
- Returns: undefined;
45294
- };
45295
45929
  mark_offer_clicked: {
45296
45930
  Args: {
45297
45931
  p_code: string;
@@ -45602,6 +46236,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
45602
46236
  };
45603
46237
  pick_enqueue_print_job: {
45604
46238
  Args: {
46239
+ _is_herprint?: boolean;
45605
46240
  _printer_id?: string;
45606
46241
  _queue_item_id: string;
45607
46242
  _session_id?: string;
@@ -45615,6 +46250,13 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
45615
46250
  };
45616
46251
  Returns: import("../integrations/supabase/types").Json;
45617
46252
  };
46253
+ pick_preview_job: {
46254
+ Args: {
46255
+ _queue_item_id: string;
46256
+ _station_slug: string;
46257
+ };
46258
+ Returns: import("../integrations/supabase/types").Json;
46259
+ };
45618
46260
  pick_print_job_status: {
45619
46261
  Args: {
45620
46262
  _job_id: string;
@@ -45792,6 +46434,24 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
45792
46434
  };
45793
46435
  Returns: undefined;
45794
46436
  };
46437
+ print_preview_toestaan: {
46438
+ Args: {
46439
+ _max?: number;
46440
+ _queue_item_id: string;
46441
+ _station_slug: string;
46442
+ _venster_sec?: number;
46443
+ };
46444
+ Returns: import("../integrations/supabase/types").Json;
46445
+ };
46446
+ print_preview_weiger: {
46447
+ Args: {
46448
+ _code: string;
46449
+ _queue_item_id: string;
46450
+ _reden: string;
46451
+ _station_slug: string;
46452
+ };
46453
+ Returns: undefined;
46454
+ };
45795
46455
  process_logistics_event: {
45796
46456
  Args: {
45797
46457
  p_event_id: string;
@@ -45909,6 +46569,14 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
45909
46569
  };
45910
46570
  Returns: undefined;
45911
46571
  };
46572
+ replace_order_carts: {
46573
+ Args: {
46574
+ p_buffer_id: string;
46575
+ p_carts: import("../integrations/supabase/types").Json;
46576
+ p_order_id: string;
46577
+ };
46578
+ Returns: import("../integrations/supabase/types").Json;
46579
+ };
45912
46580
  reset_floriday_sync_cursor: {
45913
46581
  Args: {
45914
46582
  p_connection_id: string;
@@ -45938,6 +46606,12 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
45938
46606
  };
45939
46607
  Returns: string;
45940
46608
  };
46609
+ resolve_print_job_printer_id: {
46610
+ Args: {
46611
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
46612
+ };
46613
+ Returns: string;
46614
+ };
45941
46615
  resolve_product_id_for_item: {
45942
46616
  Args: {
45943
46617
  p_product_name: string;
@@ -46529,7 +47203,7 @@ export declare const createShipment: import("@tanstack/start-client-core").Optio
46529
47203
  };
46530
47204
  CompositeTypes: { [_ in never]: never; };
46531
47205
  }, {
46532
- PostgrestVersion: "14.17";
47206
+ PostgrestVersion: "14.5";
46533
47207
  }>;
46534
47208
  userId: string;
46535
47209
  claims: import("@supabase/auth-js").User;
@@ -49402,6 +50076,84 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
49402
50076
  };
49403
50077
  Relationships: [];
49404
50078
  };
50079
+ delivery_notes: {
50080
+ Row: {
50081
+ byte_size: number | null;
50082
+ connection_id: string | null;
50083
+ content_type: string;
50084
+ created_at: string;
50085
+ error_message: string | null;
50086
+ fetched_at: string | null;
50087
+ fulfillment_order_id: string | null;
50088
+ http_status: number | null;
50089
+ id: string;
50090
+ label_code: string | null;
50091
+ letter: string | null;
50092
+ load_carrier_index: number | null;
50093
+ load_carrier_type: string | null;
50094
+ order_id: string | null;
50095
+ order_number: string | null;
50096
+ packages: number | null;
50097
+ source: string;
50098
+ status: string;
50099
+ storage_bucket: string;
50100
+ storage_path: string | null;
50101
+ updated_at: string;
50102
+ };
50103
+ Insert: {
50104
+ byte_size?: number | null;
50105
+ connection_id?: string | null;
50106
+ content_type?: string;
50107
+ created_at?: string;
50108
+ error_message?: string | null;
50109
+ fetched_at?: string | null;
50110
+ fulfillment_order_id?: string | null;
50111
+ http_status?: number | null;
50112
+ id?: string;
50113
+ label_code?: string | null;
50114
+ letter?: string | null;
50115
+ load_carrier_index?: number | null;
50116
+ load_carrier_type?: string | null;
50117
+ order_id?: string | null;
50118
+ order_number?: string | null;
50119
+ packages?: number | null;
50120
+ source?: string;
50121
+ status?: string;
50122
+ storage_bucket?: string;
50123
+ storage_path?: string | null;
50124
+ updated_at?: string;
50125
+ };
50126
+ Update: {
50127
+ byte_size?: number | null;
50128
+ connection_id?: string | null;
50129
+ content_type?: string;
50130
+ created_at?: string;
50131
+ error_message?: string | null;
50132
+ fetched_at?: string | null;
50133
+ fulfillment_order_id?: string | null;
50134
+ http_status?: number | null;
50135
+ id?: string;
50136
+ label_code?: string | null;
50137
+ letter?: string | null;
50138
+ load_carrier_index?: number | null;
50139
+ load_carrier_type?: string | null;
50140
+ order_id?: string | null;
50141
+ order_number?: string | null;
50142
+ packages?: number | null;
50143
+ source?: string;
50144
+ status?: string;
50145
+ storage_bucket?: string;
50146
+ storage_path?: string | null;
50147
+ updated_at?: string;
50148
+ };
50149
+ Relationships: [{
50150
+ foreignKeyName: "delivery_notes_order_id_fkey";
50151
+ columns: ["order_id"];
50152
+ isOneToOne: false;
50153
+ referencedRelation: "orders";
50154
+ referencedColumns: ["id"];
50155
+ }];
50156
+ };
49405
50157
  document_bronregels: {
49406
50158
  Row: {
49407
50159
  bron: string;
@@ -52455,10 +53207,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
52455
53207
  };
52456
53208
  floriday_connections: {
52457
53209
  Row: {
52458
- access_token: string | null;
52459
53210
  api_key: string;
52460
- client_id: string;
52461
- client_secret: string;
52462
53211
  created_at: string;
52463
53212
  customers_endpoint: string | null;
52464
53213
  environment: string;
@@ -52473,10 +53222,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
52473
53222
  updated_at: string;
52474
53223
  };
52475
53224
  Insert: {
52476
- access_token?: string | null;
52477
53225
  api_key: string;
52478
- client_id: string;
52479
- client_secret: string;
52480
53226
  created_at?: string;
52481
53227
  customers_endpoint?: string | null;
52482
53228
  environment: string;
@@ -52491,10 +53237,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
52491
53237
  updated_at?: string;
52492
53238
  };
52493
53239
  Update: {
52494
- access_token?: string | null;
52495
53240
  api_key?: string;
52496
- client_id?: string;
52497
- client_secret?: string;
52498
53241
  created_at?: string;
52499
53242
  customers_endpoint?: string | null;
52500
53243
  environment?: string;
@@ -57365,6 +58108,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
57365
58108
  last_error: string | null;
57366
58109
  last_error_at: string | null;
57367
58110
  last_success_at: string | null;
58111
+ provider: string;
57368
58112
  updated_at: string;
57369
58113
  };
57370
58114
  Insert: {
@@ -57376,6 +58120,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
57376
58120
  last_error?: string | null;
57377
58121
  last_error_at?: string | null;
57378
58122
  last_success_at?: string | null;
58123
+ provider?: string;
57379
58124
  updated_at?: string;
57380
58125
  };
57381
58126
  Update: {
@@ -57387,6 +58132,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
57387
58132
  last_error?: string | null;
57388
58133
  last_error_at?: string | null;
57389
58134
  last_success_at?: string | null;
58135
+ provider?: string;
57390
58136
  updated_at?: string;
57391
58137
  };
57392
58138
  Relationships: [];
@@ -60124,6 +60870,39 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60124
60870
  };
60125
60871
  Relationships: [];
60126
60872
  };
60873
+ print_dedupe_events: {
60874
+ Row: {
60875
+ bestaande_job_id: string | null;
60876
+ created_at: string;
60877
+ detail: string | null;
60878
+ documentnaam: string | null;
60879
+ documenttype: string | null;
60880
+ id: string;
60881
+ idempotentie_sleutel: string;
60882
+ reden: string;
60883
+ };
60884
+ Insert: {
60885
+ bestaande_job_id?: string | null;
60886
+ created_at?: string;
60887
+ detail?: string | null;
60888
+ documentnaam?: string | null;
60889
+ documenttype?: string | null;
60890
+ id?: string;
60891
+ idempotentie_sleutel: string;
60892
+ reden: string;
60893
+ };
60894
+ Update: {
60895
+ bestaande_job_id?: string | null;
60896
+ created_at?: string;
60897
+ detail?: string | null;
60898
+ documentnaam?: string | null;
60899
+ documenttype?: string | null;
60900
+ id?: string;
60901
+ idempotentie_sleutel?: string;
60902
+ reden?: string;
60903
+ };
60904
+ Relationships: [];
60905
+ };
60127
60906
  print_job_logs: {
60128
60907
  Row: {
60129
60908
  created_at: string;
@@ -60174,6 +60953,9 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60174
60953
  is_herprint: boolean;
60175
60954
  kopieen: number;
60176
60955
  layout_id: string | null;
60956
+ lokaal_opgeslagen_op: string | null;
60957
+ lokale_pdf_fout: string | null;
60958
+ lokale_pdf_status: string | null;
60177
60959
  opgepakt_op: string | null;
60178
60960
  paginas: number;
60179
60961
  payload: import("../integrations/supabase/types").Json;
@@ -60182,6 +60964,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60182
60964
  pogingen: number;
60183
60965
  printer_id: string | null;
60184
60966
  render_html: string | null;
60967
+ resultaat_pdf_base64: string | null;
60185
60968
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60186
60969
  updated_at: string;
60187
60970
  volgende_poging: string | null;
@@ -60206,6 +60989,9 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60206
60989
  is_herprint?: boolean;
60207
60990
  kopieen?: number;
60208
60991
  layout_id?: string | null;
60992
+ lokaal_opgeslagen_op?: string | null;
60993
+ lokale_pdf_fout?: string | null;
60994
+ lokale_pdf_status?: string | null;
60209
60995
  opgepakt_op?: string | null;
60210
60996
  paginas?: number;
60211
60997
  payload?: import("../integrations/supabase/types").Json;
@@ -60214,6 +61000,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60214
61000
  pogingen?: number;
60215
61001
  printer_id?: string | null;
60216
61002
  render_html?: string | null;
61003
+ resultaat_pdf_base64?: string | null;
60217
61004
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60218
61005
  updated_at?: string;
60219
61006
  volgende_poging?: string | null;
@@ -60238,6 +61025,9 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60238
61025
  is_herprint?: boolean;
60239
61026
  kopieen?: number;
60240
61027
  layout_id?: string | null;
61028
+ lokaal_opgeslagen_op?: string | null;
61029
+ lokale_pdf_fout?: string | null;
61030
+ lokale_pdf_status?: string | null;
60241
61031
  opgepakt_op?: string | null;
60242
61032
  paginas?: number;
60243
61033
  payload?: import("../integrations/supabase/types").Json;
@@ -60246,6 +61036,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60246
61036
  pogingen?: number;
60247
61037
  printer_id?: string | null;
60248
61038
  render_html?: string | null;
61039
+ resultaat_pdf_base64?: string | null;
60249
61040
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60250
61041
  updated_at?: string;
60251
61042
  volgende_poging?: string | null;
@@ -60364,6 +61155,39 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60364
61155
  };
60365
61156
  Relationships: [];
60366
61157
  };
61158
+ print_preview_events: {
61159
+ Row: {
61160
+ code: string | null;
61161
+ created_at: string;
61162
+ detail: import("../integrations/supabase/types").Json;
61163
+ id: string;
61164
+ queue_item_id: string | null;
61165
+ reden: string | null;
61166
+ station_slug: string | null;
61167
+ uitkomst: string;
61168
+ };
61169
+ Insert: {
61170
+ code?: string | null;
61171
+ created_at?: string;
61172
+ detail?: import("../integrations/supabase/types").Json;
61173
+ id?: string;
61174
+ queue_item_id?: string | null;
61175
+ reden?: string | null;
61176
+ station_slug?: string | null;
61177
+ uitkomst?: string;
61178
+ };
61179
+ Update: {
61180
+ code?: string | null;
61181
+ created_at?: string;
61182
+ detail?: import("../integrations/supabase/types").Json;
61183
+ id?: string;
61184
+ queue_item_id?: string | null;
61185
+ reden?: string | null;
61186
+ station_slug?: string | null;
61187
+ uitkomst?: string;
61188
+ };
61189
+ Relationships: [];
61190
+ };
60367
61191
  print_queue_runners: {
60368
61192
  Row: {
60369
61193
  actief: boolean;
@@ -60603,6 +61427,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60603
61427
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
60604
61428
  online: boolean;
60605
61429
  papierformaat: string;
61430
+ pdf_map: string | null;
60606
61431
  poort: number | null;
60607
61432
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60608
61433
  systeemnaam: string;
@@ -60628,6 +61453,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60628
61453
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60629
61454
  online?: boolean;
60630
61455
  papierformaat?: string;
61456
+ pdf_map?: string | null;
60631
61457
  poort?: number | null;
60632
61458
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60633
61459
  systeemnaam?: string;
@@ -60653,6 +61479,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
60653
61479
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60654
61480
  online?: boolean;
60655
61481
  papierformaat?: string;
61482
+ pdf_map?: string | null;
60656
61483
  poort?: number | null;
60657
61484
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60658
61485
  systeemnaam?: string;
@@ -66909,6 +67736,9 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
66909
67736
  is_herprint: boolean;
66910
67737
  kopieen: number;
66911
67738
  layout_id: string | null;
67739
+ lokaal_opgeslagen_op: string | null;
67740
+ lokale_pdf_fout: string | null;
67741
+ lokale_pdf_status: string | null;
66912
67742
  opgepakt_op: string | null;
66913
67743
  paginas: number;
66914
67744
  payload: import("../integrations/supabase/types").Json;
@@ -66917,6 +67747,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
66917
67747
  pogingen: number;
66918
67748
  printer_id: string | null;
66919
67749
  render_html: string | null;
67750
+ resultaat_pdf_base64: string | null;
66920
67751
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
66921
67752
  updated_at: string;
66922
67753
  volgende_poging: string | null;
@@ -67008,6 +67839,53 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
67008
67839
  isSetofReturn: true;
67009
67840
  };
67010
67841
  };
67842
+ claim_pdf_print_jobs: {
67843
+ Args: {
67844
+ _max?: number;
67845
+ };
67846
+ Returns: {
67847
+ agent_id: string | null;
67848
+ bron_job_id: string | null;
67849
+ created_at: string;
67850
+ documentnaam: string;
67851
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
67852
+ extern_job_id: string | null;
67853
+ foutmelding: string | null;
67854
+ gebruiker_id: string | null;
67855
+ gebruiker_naam: string;
67856
+ gebruikte_bron: string | null;
67857
+ gebruikte_layout_id: string | null;
67858
+ gestart_op: string | null;
67859
+ herkomst: string | null;
67860
+ id: string;
67861
+ idempotentie_sleutel: string | null;
67862
+ is_herprint: boolean;
67863
+ kopieen: number;
67864
+ layout_id: string | null;
67865
+ lokaal_opgeslagen_op: string | null;
67866
+ lokale_pdf_fout: string | null;
67867
+ lokale_pdf_status: string | null;
67868
+ opgepakt_op: string | null;
67869
+ paginas: number;
67870
+ payload: import("../integrations/supabase/types").Json;
67871
+ pdf_base64: string | null;
67872
+ pdf_url: string | null;
67873
+ pogingen: number;
67874
+ printer_id: string | null;
67875
+ render_html: string | null;
67876
+ resultaat_pdf_base64: string | null;
67877
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67878
+ updated_at: string;
67879
+ volgende_poging: string | null;
67880
+ voltooid_op: string | null;
67881
+ }[];
67882
+ SetofOptions: {
67883
+ from: "*";
67884
+ to: "print_jobs";
67885
+ isOneToOne: false;
67886
+ isSetofReturn: true;
67887
+ };
67888
+ };
67011
67889
  claim_print_jobs: {
67012
67890
  Args: {
67013
67891
  _agent_id: string;
@@ -67032,6 +67910,9 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
67032
67910
  is_herprint: boolean;
67033
67911
  kopieen: number;
67034
67912
  layout_id: string | null;
67913
+ lokaal_opgeslagen_op: string | null;
67914
+ lokale_pdf_fout: string | null;
67915
+ lokale_pdf_status: string | null;
67035
67916
  opgepakt_op: string | null;
67036
67917
  paginas: number;
67037
67918
  payload: import("../integrations/supabase/types").Json;
@@ -67040,6 +67921,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
67040
67921
  pogingen: number;
67041
67922
  printer_id: string | null;
67042
67923
  render_html: string | null;
67924
+ resultaat_pdf_base64: string | null;
67043
67925
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67044
67926
  updated_at: string;
67045
67927
  volgende_poging: string | null;
@@ -67180,6 +68062,8 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
67180
68062
  order_id: string;
67181
68063
  order_source: string;
67182
68064
  pick_date: string;
68065
+ printed_at: string;
68066
+ printed_today: boolean;
67183
68067
  status: string;
67184
68068
  }[];
67185
68069
  };
@@ -67888,6 +68772,10 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
67888
68772
  };
67889
68773
  Returns: number;
67890
68774
  };
68775
+ logistics_cancel_orphan_tasks: {
68776
+ Args: never;
68777
+ Returns: number;
68778
+ };
67891
68779
  logistics_capacity_day_check: {
67892
68780
  Args: {
67893
68781
  p_from?: string;
@@ -67908,6 +68796,25 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
67908
68796
  };
67909
68797
  Returns: number;
67910
68798
  };
68799
+ logistics_cart_index: {
68800
+ Args: {
68801
+ p_from?: string;
68802
+ p_to?: string;
68803
+ };
68804
+ Returns: {
68805
+ cart_id: string;
68806
+ cart_index: number;
68807
+ cart_label: string;
68808
+ is_shared: boolean;
68809
+ order_number: string;
68810
+ order_source: string;
68811
+ order_uuid: string;
68812
+ pick_date: string;
68813
+ printed_at: string;
68814
+ shifted: boolean;
68815
+ task_status: string;
68816
+ }[];
68817
+ };
67911
68818
  logistics_check_order_allowed: {
67912
68819
  Args: {
67913
68820
  p_lines: import("../integrations/supabase/types").Json;
@@ -68056,6 +68963,17 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
68056
68963
  isSetofReturn: false;
68057
68964
  };
68058
68965
  };
68966
+ logistics_consistency_check: {
68967
+ Args: never;
68968
+ Returns: {
68969
+ agenda_carts: number;
68970
+ control_carts: number;
68971
+ ok: boolean;
68972
+ orphan_tasks: number;
68973
+ pick_date: string;
68974
+ raw_carts: number;
68975
+ }[];
68976
+ };
68059
68977
  logistics_delay_customer_email: {
68060
68978
  Args: {
68061
68979
  p_customer: string;
@@ -68145,6 +69063,16 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
68145
69063
  isSetofReturn: false;
68146
69064
  };
68147
69065
  };
69066
+ logistics_floriday_cart_plan: {
69067
+ Args: {
69068
+ p_order_id: string;
69069
+ };
69070
+ Returns: {
69071
+ carrier_type: string;
69072
+ idx: number;
69073
+ packages: number;
69074
+ }[];
69075
+ };
68148
69076
  logistics_floriday_claim_pushes: {
68149
69077
  Args: {
68150
69078
  _lease_seconds?: number;
@@ -68249,6 +69177,25 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
68249
69177
  };
68250
69178
  Returns: number;
68251
69179
  };
69180
+ logistics_order_overview: {
69181
+ Args: {
69182
+ p_from?: string;
69183
+ p_to?: string;
69184
+ };
69185
+ Returns: {
69186
+ cart_count: number;
69187
+ customer_name: string;
69188
+ delivery_date: string;
69189
+ order_number: string;
69190
+ order_source: string;
69191
+ order_uuid: string;
69192
+ pick_date: string;
69193
+ plant_count: number;
69194
+ printed_at: string;
69195
+ shifted: boolean;
69196
+ status: string;
69197
+ }[];
69198
+ };
68252
69199
  logistics_order_pick_day: {
68253
69200
  Args: {
68254
69201
  p_order_ref: string;
@@ -68261,6 +69208,22 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
68261
69208
  };
68262
69209
  Returns: string;
68263
69210
  };
69211
+ logistics_pick_agenda: {
69212
+ Args: {
69213
+ p_from?: string;
69214
+ p_to?: string;
69215
+ };
69216
+ Returns: {
69217
+ cart_count: number;
69218
+ in_preparation: number;
69219
+ order_count: number;
69220
+ orders: import("../integrations/supabase/types").Json;
69221
+ pick_date: string;
69222
+ plant_count: number;
69223
+ ready: number;
69224
+ shifted_count: number;
69225
+ }[];
69226
+ };
68264
69227
  logistics_pick_email_purpose: {
68265
69228
  Args: never;
68266
69229
  Returns: string;
@@ -68315,6 +69278,13 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
68315
69278
  };
68316
69279
  Returns: undefined;
68317
69280
  };
69281
+ logistics_plan_floriday_order: {
69282
+ Args: {
69283
+ p_buffer_id?: string;
69284
+ p_order_id: string;
69285
+ };
69286
+ Returns: number;
69287
+ };
68318
69288
  logistics_plan_impact_orders: {
68319
69289
  Args: {
68320
69290
  p_order_id: string;
@@ -68420,6 +69390,15 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
68420
69390
  };
68421
69391
  Returns: import("../integrations/supabase/types").Json;
68422
69392
  };
69393
+ logistics_resolve_pick_document: {
69394
+ Args: {
69395
+ _is_herprint: boolean;
69396
+ _queue_item_id: string;
69397
+ _session_id: string;
69398
+ _voorbeeld: boolean;
69399
+ };
69400
+ Returns: import("../integrations/supabase/types").Json;
69401
+ };
68423
69402
  logistics_resolve_settings: {
68424
69403
  Args: {
68425
69404
  p_config_id: string;
@@ -68550,14 +69529,6 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
68550
69529
  };
68551
69530
  Returns: string;
68552
69531
  };
68553
- maps_cron_token: {
68554
- Args: never;
68555
- Returns: string;
68556
- };
68557
- maps_kick_queue: {
68558
- Args: never;
68559
- Returns: undefined;
68560
- };
68561
69532
  mark_offer_clicked: {
68562
69533
  Args: {
68563
69534
  p_code: string;
@@ -68868,6 +69839,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
68868
69839
  };
68869
69840
  pick_enqueue_print_job: {
68870
69841
  Args: {
69842
+ _is_herprint?: boolean;
68871
69843
  _printer_id?: string;
68872
69844
  _queue_item_id: string;
68873
69845
  _session_id?: string;
@@ -68881,6 +69853,13 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
68881
69853
  };
68882
69854
  Returns: import("../integrations/supabase/types").Json;
68883
69855
  };
69856
+ pick_preview_job: {
69857
+ Args: {
69858
+ _queue_item_id: string;
69859
+ _station_slug: string;
69860
+ };
69861
+ Returns: import("../integrations/supabase/types").Json;
69862
+ };
68884
69863
  pick_print_job_status: {
68885
69864
  Args: {
68886
69865
  _job_id: string;
@@ -69058,6 +70037,24 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
69058
70037
  };
69059
70038
  Returns: undefined;
69060
70039
  };
70040
+ print_preview_toestaan: {
70041
+ Args: {
70042
+ _max?: number;
70043
+ _queue_item_id: string;
70044
+ _station_slug: string;
70045
+ _venster_sec?: number;
70046
+ };
70047
+ Returns: import("../integrations/supabase/types").Json;
70048
+ };
70049
+ print_preview_weiger: {
70050
+ Args: {
70051
+ _code: string;
70052
+ _queue_item_id: string;
70053
+ _reden: string;
70054
+ _station_slug: string;
70055
+ };
70056
+ Returns: undefined;
70057
+ };
69061
70058
  process_logistics_event: {
69062
70059
  Args: {
69063
70060
  p_event_id: string;
@@ -69175,6 +70172,14 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
69175
70172
  };
69176
70173
  Returns: undefined;
69177
70174
  };
70175
+ replace_order_carts: {
70176
+ Args: {
70177
+ p_buffer_id: string;
70178
+ p_carts: import("../integrations/supabase/types").Json;
70179
+ p_order_id: string;
70180
+ };
70181
+ Returns: import("../integrations/supabase/types").Json;
70182
+ };
69178
70183
  reset_floriday_sync_cursor: {
69179
70184
  Args: {
69180
70185
  p_connection_id: string;
@@ -69204,6 +70209,12 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
69204
70209
  };
69205
70210
  Returns: string;
69206
70211
  };
70212
+ resolve_print_job_printer_id: {
70213
+ Args: {
70214
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
70215
+ };
70216
+ Returns: string;
70217
+ };
69207
70218
  resolve_product_id_for_item: {
69208
70219
  Args: {
69209
70220
  p_product_name: string;
@@ -69795,7 +70806,7 @@ export declare const markShipmentShipped: import("@tanstack/start-client-core").
69795
70806
  };
69796
70807
  CompositeTypes: { [_ in never]: never; };
69797
70808
  }, {
69798
- PostgrestVersion: "14.17";
70809
+ PostgrestVersion: "14.5";
69799
70810
  }>;
69800
70811
  userId: string;
69801
70812
  claims: import("@supabase/auth-js").User;
@@ -72657,6 +73668,84 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
72657
73668
  };
72658
73669
  Relationships: [];
72659
73670
  };
73671
+ delivery_notes: {
73672
+ Row: {
73673
+ byte_size: number | null;
73674
+ connection_id: string | null;
73675
+ content_type: string;
73676
+ created_at: string;
73677
+ error_message: string | null;
73678
+ fetched_at: string | null;
73679
+ fulfillment_order_id: string | null;
73680
+ http_status: number | null;
73681
+ id: string;
73682
+ label_code: string | null;
73683
+ letter: string | null;
73684
+ load_carrier_index: number | null;
73685
+ load_carrier_type: string | null;
73686
+ order_id: string | null;
73687
+ order_number: string | null;
73688
+ packages: number | null;
73689
+ source: string;
73690
+ status: string;
73691
+ storage_bucket: string;
73692
+ storage_path: string | null;
73693
+ updated_at: string;
73694
+ };
73695
+ Insert: {
73696
+ byte_size?: number | null;
73697
+ connection_id?: string | null;
73698
+ content_type?: string;
73699
+ created_at?: string;
73700
+ error_message?: string | null;
73701
+ fetched_at?: string | null;
73702
+ fulfillment_order_id?: string | null;
73703
+ http_status?: number | null;
73704
+ id?: string;
73705
+ label_code?: string | null;
73706
+ letter?: string | null;
73707
+ load_carrier_index?: number | null;
73708
+ load_carrier_type?: string | null;
73709
+ order_id?: string | null;
73710
+ order_number?: string | null;
73711
+ packages?: number | null;
73712
+ source?: string;
73713
+ status?: string;
73714
+ storage_bucket?: string;
73715
+ storage_path?: string | null;
73716
+ updated_at?: string;
73717
+ };
73718
+ Update: {
73719
+ byte_size?: number | null;
73720
+ connection_id?: string | null;
73721
+ content_type?: string;
73722
+ created_at?: string;
73723
+ error_message?: string | null;
73724
+ fetched_at?: string | null;
73725
+ fulfillment_order_id?: string | null;
73726
+ http_status?: number | null;
73727
+ id?: string;
73728
+ label_code?: string | null;
73729
+ letter?: string | null;
73730
+ load_carrier_index?: number | null;
73731
+ load_carrier_type?: string | null;
73732
+ order_id?: string | null;
73733
+ order_number?: string | null;
73734
+ packages?: number | null;
73735
+ source?: string;
73736
+ status?: string;
73737
+ storage_bucket?: string;
73738
+ storage_path?: string | null;
73739
+ updated_at?: string;
73740
+ };
73741
+ Relationships: [{
73742
+ foreignKeyName: "delivery_notes_order_id_fkey";
73743
+ columns: ["order_id"];
73744
+ isOneToOne: false;
73745
+ referencedRelation: "orders";
73746
+ referencedColumns: ["id"];
73747
+ }];
73748
+ };
72660
73749
  document_bronregels: {
72661
73750
  Row: {
72662
73751
  bron: string;
@@ -75710,10 +76799,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
75710
76799
  };
75711
76800
  floriday_connections: {
75712
76801
  Row: {
75713
- access_token: string | null;
75714
76802
  api_key: string;
75715
- client_id: string;
75716
- client_secret: string;
75717
76803
  created_at: string;
75718
76804
  customers_endpoint: string | null;
75719
76805
  environment: string;
@@ -75728,10 +76814,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
75728
76814
  updated_at: string;
75729
76815
  };
75730
76816
  Insert: {
75731
- access_token?: string | null;
75732
76817
  api_key: string;
75733
- client_id: string;
75734
- client_secret: string;
75735
76818
  created_at?: string;
75736
76819
  customers_endpoint?: string | null;
75737
76820
  environment: string;
@@ -75746,10 +76829,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
75746
76829
  updated_at?: string;
75747
76830
  };
75748
76831
  Update: {
75749
- access_token?: string | null;
75750
76832
  api_key?: string;
75751
- client_id?: string;
75752
- client_secret?: string;
75753
76833
  created_at?: string;
75754
76834
  customers_endpoint?: string | null;
75755
76835
  environment?: string;
@@ -80620,6 +81700,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
80620
81700
  last_error: string | null;
80621
81701
  last_error_at: string | null;
80622
81702
  last_success_at: string | null;
81703
+ provider: string;
80623
81704
  updated_at: string;
80624
81705
  };
80625
81706
  Insert: {
@@ -80631,6 +81712,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
80631
81712
  last_error?: string | null;
80632
81713
  last_error_at?: string | null;
80633
81714
  last_success_at?: string | null;
81715
+ provider?: string;
80634
81716
  updated_at?: string;
80635
81717
  };
80636
81718
  Update: {
@@ -80642,6 +81724,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
80642
81724
  last_error?: string | null;
80643
81725
  last_error_at?: string | null;
80644
81726
  last_success_at?: string | null;
81727
+ provider?: string;
80645
81728
  updated_at?: string;
80646
81729
  };
80647
81730
  Relationships: [];
@@ -83379,6 +84462,39 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83379
84462
  };
83380
84463
  Relationships: [];
83381
84464
  };
84465
+ print_dedupe_events: {
84466
+ Row: {
84467
+ bestaande_job_id: string | null;
84468
+ created_at: string;
84469
+ detail: string | null;
84470
+ documentnaam: string | null;
84471
+ documenttype: string | null;
84472
+ id: string;
84473
+ idempotentie_sleutel: string;
84474
+ reden: string;
84475
+ };
84476
+ Insert: {
84477
+ bestaande_job_id?: string | null;
84478
+ created_at?: string;
84479
+ detail?: string | null;
84480
+ documentnaam?: string | null;
84481
+ documenttype?: string | null;
84482
+ id?: string;
84483
+ idempotentie_sleutel: string;
84484
+ reden: string;
84485
+ };
84486
+ Update: {
84487
+ bestaande_job_id?: string | null;
84488
+ created_at?: string;
84489
+ detail?: string | null;
84490
+ documentnaam?: string | null;
84491
+ documenttype?: string | null;
84492
+ id?: string;
84493
+ idempotentie_sleutel?: string;
84494
+ reden?: string;
84495
+ };
84496
+ Relationships: [];
84497
+ };
83382
84498
  print_job_logs: {
83383
84499
  Row: {
83384
84500
  created_at: string;
@@ -83429,6 +84545,9 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83429
84545
  is_herprint: boolean;
83430
84546
  kopieen: number;
83431
84547
  layout_id: string | null;
84548
+ lokaal_opgeslagen_op: string | null;
84549
+ lokale_pdf_fout: string | null;
84550
+ lokale_pdf_status: string | null;
83432
84551
  opgepakt_op: string | null;
83433
84552
  paginas: number;
83434
84553
  payload: import("../integrations/supabase/types").Json;
@@ -83437,6 +84556,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83437
84556
  pogingen: number;
83438
84557
  printer_id: string | null;
83439
84558
  render_html: string | null;
84559
+ resultaat_pdf_base64: string | null;
83440
84560
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83441
84561
  updated_at: string;
83442
84562
  volgende_poging: string | null;
@@ -83461,6 +84581,9 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83461
84581
  is_herprint?: boolean;
83462
84582
  kopieen?: number;
83463
84583
  layout_id?: string | null;
84584
+ lokaal_opgeslagen_op?: string | null;
84585
+ lokale_pdf_fout?: string | null;
84586
+ lokale_pdf_status?: string | null;
83464
84587
  opgepakt_op?: string | null;
83465
84588
  paginas?: number;
83466
84589
  payload?: import("../integrations/supabase/types").Json;
@@ -83469,6 +84592,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83469
84592
  pogingen?: number;
83470
84593
  printer_id?: string | null;
83471
84594
  render_html?: string | null;
84595
+ resultaat_pdf_base64?: string | null;
83472
84596
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83473
84597
  updated_at?: string;
83474
84598
  volgende_poging?: string | null;
@@ -83493,6 +84617,9 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83493
84617
  is_herprint?: boolean;
83494
84618
  kopieen?: number;
83495
84619
  layout_id?: string | null;
84620
+ lokaal_opgeslagen_op?: string | null;
84621
+ lokale_pdf_fout?: string | null;
84622
+ lokale_pdf_status?: string | null;
83496
84623
  opgepakt_op?: string | null;
83497
84624
  paginas?: number;
83498
84625
  payload?: import("../integrations/supabase/types").Json;
@@ -83501,6 +84628,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83501
84628
  pogingen?: number;
83502
84629
  printer_id?: string | null;
83503
84630
  render_html?: string | null;
84631
+ resultaat_pdf_base64?: string | null;
83504
84632
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83505
84633
  updated_at?: string;
83506
84634
  volgende_poging?: string | null;
@@ -83619,6 +84747,39 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83619
84747
  };
83620
84748
  Relationships: [];
83621
84749
  };
84750
+ print_preview_events: {
84751
+ Row: {
84752
+ code: string | null;
84753
+ created_at: string;
84754
+ detail: import("../integrations/supabase/types").Json;
84755
+ id: string;
84756
+ queue_item_id: string | null;
84757
+ reden: string | null;
84758
+ station_slug: string | null;
84759
+ uitkomst: string;
84760
+ };
84761
+ Insert: {
84762
+ code?: string | null;
84763
+ created_at?: string;
84764
+ detail?: import("../integrations/supabase/types").Json;
84765
+ id?: string;
84766
+ queue_item_id?: string | null;
84767
+ reden?: string | null;
84768
+ station_slug?: string | null;
84769
+ uitkomst?: string;
84770
+ };
84771
+ Update: {
84772
+ code?: string | null;
84773
+ created_at?: string;
84774
+ detail?: import("../integrations/supabase/types").Json;
84775
+ id?: string;
84776
+ queue_item_id?: string | null;
84777
+ reden?: string | null;
84778
+ station_slug?: string | null;
84779
+ uitkomst?: string;
84780
+ };
84781
+ Relationships: [];
84782
+ };
83622
84783
  print_queue_runners: {
83623
84784
  Row: {
83624
84785
  actief: boolean;
@@ -83858,6 +85019,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83858
85019
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
83859
85020
  online: boolean;
83860
85021
  papierformaat: string;
85022
+ pdf_map: string | null;
83861
85023
  poort: number | null;
83862
85024
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83863
85025
  systeemnaam: string;
@@ -83883,6 +85045,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83883
85045
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83884
85046
  online?: boolean;
83885
85047
  papierformaat?: string;
85048
+ pdf_map?: string | null;
83886
85049
  poort?: number | null;
83887
85050
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83888
85051
  systeemnaam?: string;
@@ -83908,6 +85071,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
83908
85071
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83909
85072
  online?: boolean;
83910
85073
  papierformaat?: string;
85074
+ pdf_map?: string | null;
83911
85075
  poort?: number | null;
83912
85076
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83913
85077
  systeemnaam?: string;
@@ -90164,6 +91328,9 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90164
91328
  is_herprint: boolean;
90165
91329
  kopieen: number;
90166
91330
  layout_id: string | null;
91331
+ lokaal_opgeslagen_op: string | null;
91332
+ lokale_pdf_fout: string | null;
91333
+ lokale_pdf_status: string | null;
90167
91334
  opgepakt_op: string | null;
90168
91335
  paginas: number;
90169
91336
  payload: import("../integrations/supabase/types").Json;
@@ -90172,6 +91339,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90172
91339
  pogingen: number;
90173
91340
  printer_id: string | null;
90174
91341
  render_html: string | null;
91342
+ resultaat_pdf_base64: string | null;
90175
91343
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90176
91344
  updated_at: string;
90177
91345
  volgende_poging: string | null;
@@ -90263,6 +91431,53 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90263
91431
  isSetofReturn: true;
90264
91432
  };
90265
91433
  };
91434
+ claim_pdf_print_jobs: {
91435
+ Args: {
91436
+ _max?: number;
91437
+ };
91438
+ Returns: {
91439
+ agent_id: string | null;
91440
+ bron_job_id: string | null;
91441
+ created_at: string;
91442
+ documentnaam: string;
91443
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
91444
+ extern_job_id: string | null;
91445
+ foutmelding: string | null;
91446
+ gebruiker_id: string | null;
91447
+ gebruiker_naam: string;
91448
+ gebruikte_bron: string | null;
91449
+ gebruikte_layout_id: string | null;
91450
+ gestart_op: string | null;
91451
+ herkomst: string | null;
91452
+ id: string;
91453
+ idempotentie_sleutel: string | null;
91454
+ is_herprint: boolean;
91455
+ kopieen: number;
91456
+ layout_id: string | null;
91457
+ lokaal_opgeslagen_op: string | null;
91458
+ lokale_pdf_fout: string | null;
91459
+ lokale_pdf_status: string | null;
91460
+ opgepakt_op: string | null;
91461
+ paginas: number;
91462
+ payload: import("../integrations/supabase/types").Json;
91463
+ pdf_base64: string | null;
91464
+ pdf_url: string | null;
91465
+ pogingen: number;
91466
+ printer_id: string | null;
91467
+ render_html: string | null;
91468
+ resultaat_pdf_base64: string | null;
91469
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
91470
+ updated_at: string;
91471
+ volgende_poging: string | null;
91472
+ voltooid_op: string | null;
91473
+ }[];
91474
+ SetofOptions: {
91475
+ from: "*";
91476
+ to: "print_jobs";
91477
+ isOneToOne: false;
91478
+ isSetofReturn: true;
91479
+ };
91480
+ };
90266
91481
  claim_print_jobs: {
90267
91482
  Args: {
90268
91483
  _agent_id: string;
@@ -90287,6 +91502,9 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90287
91502
  is_herprint: boolean;
90288
91503
  kopieen: number;
90289
91504
  layout_id: string | null;
91505
+ lokaal_opgeslagen_op: string | null;
91506
+ lokale_pdf_fout: string | null;
91507
+ lokale_pdf_status: string | null;
90290
91508
  opgepakt_op: string | null;
90291
91509
  paginas: number;
90292
91510
  payload: import("../integrations/supabase/types").Json;
@@ -90295,6 +91513,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90295
91513
  pogingen: number;
90296
91514
  printer_id: string | null;
90297
91515
  render_html: string | null;
91516
+ resultaat_pdf_base64: string | null;
90298
91517
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90299
91518
  updated_at: string;
90300
91519
  volgende_poging: string | null;
@@ -90435,6 +91654,8 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
90435
91654
  order_id: string;
90436
91655
  order_source: string;
90437
91656
  pick_date: string;
91657
+ printed_at: string;
91658
+ printed_today: boolean;
90438
91659
  status: string;
90439
91660
  }[];
90440
91661
  };
@@ -91143,6 +92364,10 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
91143
92364
  };
91144
92365
  Returns: number;
91145
92366
  };
92367
+ logistics_cancel_orphan_tasks: {
92368
+ Args: never;
92369
+ Returns: number;
92370
+ };
91146
92371
  logistics_capacity_day_check: {
91147
92372
  Args: {
91148
92373
  p_from?: string;
@@ -91163,6 +92388,25 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
91163
92388
  };
91164
92389
  Returns: number;
91165
92390
  };
92391
+ logistics_cart_index: {
92392
+ Args: {
92393
+ p_from?: string;
92394
+ p_to?: string;
92395
+ };
92396
+ Returns: {
92397
+ cart_id: string;
92398
+ cart_index: number;
92399
+ cart_label: string;
92400
+ is_shared: boolean;
92401
+ order_number: string;
92402
+ order_source: string;
92403
+ order_uuid: string;
92404
+ pick_date: string;
92405
+ printed_at: string;
92406
+ shifted: boolean;
92407
+ task_status: string;
92408
+ }[];
92409
+ };
91166
92410
  logistics_check_order_allowed: {
91167
92411
  Args: {
91168
92412
  p_lines: import("../integrations/supabase/types").Json;
@@ -91311,6 +92555,17 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
91311
92555
  isSetofReturn: false;
91312
92556
  };
91313
92557
  };
92558
+ logistics_consistency_check: {
92559
+ Args: never;
92560
+ Returns: {
92561
+ agenda_carts: number;
92562
+ control_carts: number;
92563
+ ok: boolean;
92564
+ orphan_tasks: number;
92565
+ pick_date: string;
92566
+ raw_carts: number;
92567
+ }[];
92568
+ };
91314
92569
  logistics_delay_customer_email: {
91315
92570
  Args: {
91316
92571
  p_customer: string;
@@ -91400,6 +92655,16 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
91400
92655
  isSetofReturn: false;
91401
92656
  };
91402
92657
  };
92658
+ logistics_floriday_cart_plan: {
92659
+ Args: {
92660
+ p_order_id: string;
92661
+ };
92662
+ Returns: {
92663
+ carrier_type: string;
92664
+ idx: number;
92665
+ packages: number;
92666
+ }[];
92667
+ };
91403
92668
  logistics_floriday_claim_pushes: {
91404
92669
  Args: {
91405
92670
  _lease_seconds?: number;
@@ -91504,6 +92769,25 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
91504
92769
  };
91505
92770
  Returns: number;
91506
92771
  };
92772
+ logistics_order_overview: {
92773
+ Args: {
92774
+ p_from?: string;
92775
+ p_to?: string;
92776
+ };
92777
+ Returns: {
92778
+ cart_count: number;
92779
+ customer_name: string;
92780
+ delivery_date: string;
92781
+ order_number: string;
92782
+ order_source: string;
92783
+ order_uuid: string;
92784
+ pick_date: string;
92785
+ plant_count: number;
92786
+ printed_at: string;
92787
+ shifted: boolean;
92788
+ status: string;
92789
+ }[];
92790
+ };
91507
92791
  logistics_order_pick_day: {
91508
92792
  Args: {
91509
92793
  p_order_ref: string;
@@ -91516,6 +92800,22 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
91516
92800
  };
91517
92801
  Returns: string;
91518
92802
  };
92803
+ logistics_pick_agenda: {
92804
+ Args: {
92805
+ p_from?: string;
92806
+ p_to?: string;
92807
+ };
92808
+ Returns: {
92809
+ cart_count: number;
92810
+ in_preparation: number;
92811
+ order_count: number;
92812
+ orders: import("../integrations/supabase/types").Json;
92813
+ pick_date: string;
92814
+ plant_count: number;
92815
+ ready: number;
92816
+ shifted_count: number;
92817
+ }[];
92818
+ };
91519
92819
  logistics_pick_email_purpose: {
91520
92820
  Args: never;
91521
92821
  Returns: string;
@@ -91570,6 +92870,13 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
91570
92870
  };
91571
92871
  Returns: undefined;
91572
92872
  };
92873
+ logistics_plan_floriday_order: {
92874
+ Args: {
92875
+ p_buffer_id?: string;
92876
+ p_order_id: string;
92877
+ };
92878
+ Returns: number;
92879
+ };
91573
92880
  logistics_plan_impact_orders: {
91574
92881
  Args: {
91575
92882
  p_order_id: string;
@@ -91675,6 +92982,15 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
91675
92982
  };
91676
92983
  Returns: import("../integrations/supabase/types").Json;
91677
92984
  };
92985
+ logistics_resolve_pick_document: {
92986
+ Args: {
92987
+ _is_herprint: boolean;
92988
+ _queue_item_id: string;
92989
+ _session_id: string;
92990
+ _voorbeeld: boolean;
92991
+ };
92992
+ Returns: import("../integrations/supabase/types").Json;
92993
+ };
91678
92994
  logistics_resolve_settings: {
91679
92995
  Args: {
91680
92996
  p_config_id: string;
@@ -91805,14 +93121,6 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
91805
93121
  };
91806
93122
  Returns: string;
91807
93123
  };
91808
- maps_cron_token: {
91809
- Args: never;
91810
- Returns: string;
91811
- };
91812
- maps_kick_queue: {
91813
- Args: never;
91814
- Returns: undefined;
91815
- };
91816
93124
  mark_offer_clicked: {
91817
93125
  Args: {
91818
93126
  p_code: string;
@@ -92123,6 +93431,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
92123
93431
  };
92124
93432
  pick_enqueue_print_job: {
92125
93433
  Args: {
93434
+ _is_herprint?: boolean;
92126
93435
  _printer_id?: string;
92127
93436
  _queue_item_id: string;
92128
93437
  _session_id?: string;
@@ -92136,6 +93445,13 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
92136
93445
  };
92137
93446
  Returns: import("../integrations/supabase/types").Json;
92138
93447
  };
93448
+ pick_preview_job: {
93449
+ Args: {
93450
+ _queue_item_id: string;
93451
+ _station_slug: string;
93452
+ };
93453
+ Returns: import("../integrations/supabase/types").Json;
93454
+ };
92139
93455
  pick_print_job_status: {
92140
93456
  Args: {
92141
93457
  _job_id: string;
@@ -92313,6 +93629,24 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
92313
93629
  };
92314
93630
  Returns: undefined;
92315
93631
  };
93632
+ print_preview_toestaan: {
93633
+ Args: {
93634
+ _max?: number;
93635
+ _queue_item_id: string;
93636
+ _station_slug: string;
93637
+ _venster_sec?: number;
93638
+ };
93639
+ Returns: import("../integrations/supabase/types").Json;
93640
+ };
93641
+ print_preview_weiger: {
93642
+ Args: {
93643
+ _code: string;
93644
+ _queue_item_id: string;
93645
+ _reden: string;
93646
+ _station_slug: string;
93647
+ };
93648
+ Returns: undefined;
93649
+ };
92316
93650
  process_logistics_event: {
92317
93651
  Args: {
92318
93652
  p_event_id: string;
@@ -92430,6 +93764,14 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
92430
93764
  };
92431
93765
  Returns: undefined;
92432
93766
  };
93767
+ replace_order_carts: {
93768
+ Args: {
93769
+ p_buffer_id: string;
93770
+ p_carts: import("../integrations/supabase/types").Json;
93771
+ p_order_id: string;
93772
+ };
93773
+ Returns: import("../integrations/supabase/types").Json;
93774
+ };
92433
93775
  reset_floriday_sync_cursor: {
92434
93776
  Args: {
92435
93777
  p_connection_id: string;
@@ -92459,6 +93801,12 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
92459
93801
  };
92460
93802
  Returns: string;
92461
93803
  };
93804
+ resolve_print_job_printer_id: {
93805
+ Args: {
93806
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
93807
+ };
93808
+ Returns: string;
93809
+ };
92462
93810
  resolve_product_id_for_item: {
92463
93811
  Args: {
92464
93812
  p_product_name: string;
@@ -93050,7 +94398,7 @@ export declare const cancelShipment: import("@tanstack/start-client-core").Optio
93050
94398
  };
93051
94399
  CompositeTypes: { [_ in never]: never; };
93052
94400
  }, {
93053
- PostgrestVersion: "14.17";
94401
+ PostgrestVersion: "14.5";
93054
94402
  }>;
93055
94403
  userId: string;
93056
94404
  claims: import("@supabase/auth-js").User;