@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
@@ -2866,6 +2866,84 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
2866
2866
  };
2867
2867
  Relationships: [];
2868
2868
  };
2869
+ delivery_notes: {
2870
+ Row: {
2871
+ byte_size: number | null;
2872
+ connection_id: string | null;
2873
+ content_type: string;
2874
+ created_at: string;
2875
+ error_message: string | null;
2876
+ fetched_at: string | null;
2877
+ fulfillment_order_id: string | null;
2878
+ http_status: number | null;
2879
+ id: string;
2880
+ label_code: string | null;
2881
+ letter: string | null;
2882
+ load_carrier_index: number | null;
2883
+ load_carrier_type: string | null;
2884
+ order_id: string | null;
2885
+ order_number: string | null;
2886
+ packages: number | null;
2887
+ source: string;
2888
+ status: string;
2889
+ storage_bucket: string;
2890
+ storage_path: string | null;
2891
+ updated_at: string;
2892
+ };
2893
+ Insert: {
2894
+ byte_size?: number | null;
2895
+ connection_id?: string | null;
2896
+ content_type?: string;
2897
+ created_at?: string;
2898
+ error_message?: string | null;
2899
+ fetched_at?: string | null;
2900
+ fulfillment_order_id?: string | null;
2901
+ http_status?: number | null;
2902
+ id?: string;
2903
+ label_code?: string | null;
2904
+ letter?: string | null;
2905
+ load_carrier_index?: number | null;
2906
+ load_carrier_type?: string | null;
2907
+ order_id?: string | null;
2908
+ order_number?: string | null;
2909
+ packages?: number | null;
2910
+ source?: string;
2911
+ status?: string;
2912
+ storage_bucket?: string;
2913
+ storage_path?: string | null;
2914
+ updated_at?: string;
2915
+ };
2916
+ Update: {
2917
+ byte_size?: number | null;
2918
+ connection_id?: string | null;
2919
+ content_type?: string;
2920
+ created_at?: string;
2921
+ error_message?: string | null;
2922
+ fetched_at?: string | null;
2923
+ fulfillment_order_id?: string | null;
2924
+ http_status?: number | null;
2925
+ id?: string;
2926
+ label_code?: string | null;
2927
+ letter?: string | null;
2928
+ load_carrier_index?: number | null;
2929
+ load_carrier_type?: string | null;
2930
+ order_id?: string | null;
2931
+ order_number?: string | null;
2932
+ packages?: number | null;
2933
+ source?: string;
2934
+ status?: string;
2935
+ storage_bucket?: string;
2936
+ storage_path?: string | null;
2937
+ updated_at?: string;
2938
+ };
2939
+ Relationships: [{
2940
+ foreignKeyName: "delivery_notes_order_id_fkey";
2941
+ columns: ["order_id"];
2942
+ isOneToOne: false;
2943
+ referencedRelation: "orders";
2944
+ referencedColumns: ["id"];
2945
+ }];
2946
+ };
2869
2947
  document_bronregels: {
2870
2948
  Row: {
2871
2949
  bron: string;
@@ -5919,10 +5997,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
5919
5997
  };
5920
5998
  floriday_connections: {
5921
5999
  Row: {
5922
- access_token: string | null;
5923
6000
  api_key: string;
5924
- client_id: string;
5925
- client_secret: string;
5926
6001
  created_at: string;
5927
6002
  customers_endpoint: string | null;
5928
6003
  environment: string;
@@ -5937,10 +6012,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
5937
6012
  updated_at: string;
5938
6013
  };
5939
6014
  Insert: {
5940
- access_token?: string | null;
5941
6015
  api_key: string;
5942
- client_id: string;
5943
- client_secret: string;
5944
6016
  created_at?: string;
5945
6017
  customers_endpoint?: string | null;
5946
6018
  environment: string;
@@ -5955,10 +6027,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
5955
6027
  updated_at?: string;
5956
6028
  };
5957
6029
  Update: {
5958
- access_token?: string | null;
5959
6030
  api_key?: string;
5960
- client_id?: string;
5961
- client_secret?: string;
5962
6031
  created_at?: string;
5963
6032
  customers_endpoint?: string | null;
5964
6033
  environment?: string;
@@ -10829,6 +10898,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10829
10898
  last_error: string | null;
10830
10899
  last_error_at: string | null;
10831
10900
  last_success_at: string | null;
10901
+ provider: string;
10832
10902
  updated_at: string;
10833
10903
  };
10834
10904
  Insert: {
@@ -10840,6 +10910,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10840
10910
  last_error?: string | null;
10841
10911
  last_error_at?: string | null;
10842
10912
  last_success_at?: string | null;
10913
+ provider?: string;
10843
10914
  updated_at?: string;
10844
10915
  };
10845
10916
  Update: {
@@ -10851,6 +10922,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
10851
10922
  last_error?: string | null;
10852
10923
  last_error_at?: string | null;
10853
10924
  last_success_at?: string | null;
10925
+ provider?: string;
10854
10926
  updated_at?: string;
10855
10927
  };
10856
10928
  Relationships: [];
@@ -13588,6 +13660,39 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
13588
13660
  };
13589
13661
  Relationships: [];
13590
13662
  };
13663
+ print_dedupe_events: {
13664
+ Row: {
13665
+ bestaande_job_id: string | null;
13666
+ created_at: string;
13667
+ detail: string | null;
13668
+ documentnaam: string | null;
13669
+ documenttype: string | null;
13670
+ id: string;
13671
+ idempotentie_sleutel: string;
13672
+ reden: string;
13673
+ };
13674
+ Insert: {
13675
+ bestaande_job_id?: string | null;
13676
+ created_at?: string;
13677
+ detail?: string | null;
13678
+ documentnaam?: string | null;
13679
+ documenttype?: string | null;
13680
+ id?: string;
13681
+ idempotentie_sleutel: string;
13682
+ reden: string;
13683
+ };
13684
+ Update: {
13685
+ bestaande_job_id?: string | null;
13686
+ created_at?: string;
13687
+ detail?: string | null;
13688
+ documentnaam?: string | null;
13689
+ documenttype?: string | null;
13690
+ id?: string;
13691
+ idempotentie_sleutel?: string;
13692
+ reden?: string;
13693
+ };
13694
+ Relationships: [];
13695
+ };
13591
13696
  print_job_logs: {
13592
13697
  Row: {
13593
13698
  created_at: string;
@@ -13638,6 +13743,9 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
13638
13743
  is_herprint: boolean;
13639
13744
  kopieen: number;
13640
13745
  layout_id: string | null;
13746
+ lokaal_opgeslagen_op: string | null;
13747
+ lokale_pdf_fout: string | null;
13748
+ lokale_pdf_status: string | null;
13641
13749
  opgepakt_op: string | null;
13642
13750
  paginas: number;
13643
13751
  payload: import("../integrations/supabase/types").Json;
@@ -13646,6 +13754,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
13646
13754
  pogingen: number;
13647
13755
  printer_id: string | null;
13648
13756
  render_html: string | null;
13757
+ resultaat_pdf_base64: string | null;
13649
13758
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13650
13759
  updated_at: string;
13651
13760
  volgende_poging: string | null;
@@ -13670,6 +13779,9 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
13670
13779
  is_herprint?: boolean;
13671
13780
  kopieen?: number;
13672
13781
  layout_id?: string | null;
13782
+ lokaal_opgeslagen_op?: string | null;
13783
+ lokale_pdf_fout?: string | null;
13784
+ lokale_pdf_status?: string | null;
13673
13785
  opgepakt_op?: string | null;
13674
13786
  paginas?: number;
13675
13787
  payload?: import("../integrations/supabase/types").Json;
@@ -13678,6 +13790,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
13678
13790
  pogingen?: number;
13679
13791
  printer_id?: string | null;
13680
13792
  render_html?: string | null;
13793
+ resultaat_pdf_base64?: string | null;
13681
13794
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13682
13795
  updated_at?: string;
13683
13796
  volgende_poging?: string | null;
@@ -13702,6 +13815,9 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
13702
13815
  is_herprint?: boolean;
13703
13816
  kopieen?: number;
13704
13817
  layout_id?: string | null;
13818
+ lokaal_opgeslagen_op?: string | null;
13819
+ lokale_pdf_fout?: string | null;
13820
+ lokale_pdf_status?: string | null;
13705
13821
  opgepakt_op?: string | null;
13706
13822
  paginas?: number;
13707
13823
  payload?: import("../integrations/supabase/types").Json;
@@ -13710,6 +13826,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
13710
13826
  pogingen?: number;
13711
13827
  printer_id?: string | null;
13712
13828
  render_html?: string | null;
13829
+ resultaat_pdf_base64?: string | null;
13713
13830
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13714
13831
  updated_at?: string;
13715
13832
  volgende_poging?: string | null;
@@ -13828,6 +13945,39 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
13828
13945
  };
13829
13946
  Relationships: [];
13830
13947
  };
13948
+ print_preview_events: {
13949
+ Row: {
13950
+ code: string | null;
13951
+ created_at: string;
13952
+ detail: import("../integrations/supabase/types").Json;
13953
+ id: string;
13954
+ queue_item_id: string | null;
13955
+ reden: string | null;
13956
+ station_slug: string | null;
13957
+ uitkomst: string;
13958
+ };
13959
+ Insert: {
13960
+ code?: string | null;
13961
+ created_at?: string;
13962
+ detail?: import("../integrations/supabase/types").Json;
13963
+ id?: string;
13964
+ queue_item_id?: string | null;
13965
+ reden?: string | null;
13966
+ station_slug?: string | null;
13967
+ uitkomst?: string;
13968
+ };
13969
+ Update: {
13970
+ code?: string | null;
13971
+ created_at?: string;
13972
+ detail?: import("../integrations/supabase/types").Json;
13973
+ id?: string;
13974
+ queue_item_id?: string | null;
13975
+ reden?: string | null;
13976
+ station_slug?: string | null;
13977
+ uitkomst?: string;
13978
+ };
13979
+ Relationships: [];
13980
+ };
13831
13981
  print_queue_runners: {
13832
13982
  Row: {
13833
13983
  actief: boolean;
@@ -14067,6 +14217,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
14067
14217
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14068
14218
  online: boolean;
14069
14219
  papierformaat: string;
14220
+ pdf_map: string | null;
14070
14221
  poort: number | null;
14071
14222
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14072
14223
  systeemnaam: string;
@@ -14092,6 +14243,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
14092
14243
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14093
14244
  online?: boolean;
14094
14245
  papierformaat?: string;
14246
+ pdf_map?: string | null;
14095
14247
  poort?: number | null;
14096
14248
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14097
14249
  systeemnaam?: string;
@@ -14117,6 +14269,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
14117
14269
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14118
14270
  online?: boolean;
14119
14271
  papierformaat?: string;
14272
+ pdf_map?: string | null;
14120
14273
  poort?: number | null;
14121
14274
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14122
14275
  systeemnaam?: string;
@@ -20373,6 +20526,9 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
20373
20526
  is_herprint: boolean;
20374
20527
  kopieen: number;
20375
20528
  layout_id: string | null;
20529
+ lokaal_opgeslagen_op: string | null;
20530
+ lokale_pdf_fout: string | null;
20531
+ lokale_pdf_status: string | null;
20376
20532
  opgepakt_op: string | null;
20377
20533
  paginas: number;
20378
20534
  payload: import("../integrations/supabase/types").Json;
@@ -20381,6 +20537,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
20381
20537
  pogingen: number;
20382
20538
  printer_id: string | null;
20383
20539
  render_html: string | null;
20540
+ resultaat_pdf_base64: string | null;
20384
20541
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20385
20542
  updated_at: string;
20386
20543
  volgende_poging: string | null;
@@ -20472,6 +20629,53 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
20472
20629
  isSetofReturn: true;
20473
20630
  };
20474
20631
  };
20632
+ claim_pdf_print_jobs: {
20633
+ Args: {
20634
+ _max?: number;
20635
+ };
20636
+ Returns: {
20637
+ agent_id: string | null;
20638
+ bron_job_id: string | null;
20639
+ created_at: string;
20640
+ documentnaam: string;
20641
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20642
+ extern_job_id: string | null;
20643
+ foutmelding: string | null;
20644
+ gebruiker_id: string | null;
20645
+ gebruiker_naam: string;
20646
+ gebruikte_bron: string | null;
20647
+ gebruikte_layout_id: string | null;
20648
+ gestart_op: string | null;
20649
+ herkomst: string | null;
20650
+ id: string;
20651
+ idempotentie_sleutel: string | null;
20652
+ is_herprint: boolean;
20653
+ kopieen: number;
20654
+ layout_id: string | null;
20655
+ lokaal_opgeslagen_op: string | null;
20656
+ lokale_pdf_fout: string | null;
20657
+ lokale_pdf_status: string | null;
20658
+ opgepakt_op: string | null;
20659
+ paginas: number;
20660
+ payload: import("../integrations/supabase/types").Json;
20661
+ pdf_base64: string | null;
20662
+ pdf_url: string | null;
20663
+ pogingen: number;
20664
+ printer_id: string | null;
20665
+ render_html: string | null;
20666
+ resultaat_pdf_base64: string | null;
20667
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20668
+ updated_at: string;
20669
+ volgende_poging: string | null;
20670
+ voltooid_op: string | null;
20671
+ }[];
20672
+ SetofOptions: {
20673
+ from: "*";
20674
+ to: "print_jobs";
20675
+ isOneToOne: false;
20676
+ isSetofReturn: true;
20677
+ };
20678
+ };
20475
20679
  claim_print_jobs: {
20476
20680
  Args: {
20477
20681
  _agent_id: string;
@@ -20496,6 +20700,9 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
20496
20700
  is_herprint: boolean;
20497
20701
  kopieen: number;
20498
20702
  layout_id: string | null;
20703
+ lokaal_opgeslagen_op: string | null;
20704
+ lokale_pdf_fout: string | null;
20705
+ lokale_pdf_status: string | null;
20499
20706
  opgepakt_op: string | null;
20500
20707
  paginas: number;
20501
20708
  payload: import("../integrations/supabase/types").Json;
@@ -20504,6 +20711,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
20504
20711
  pogingen: number;
20505
20712
  printer_id: string | null;
20506
20713
  render_html: string | null;
20714
+ resultaat_pdf_base64: string | null;
20507
20715
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20508
20716
  updated_at: string;
20509
20717
  volgende_poging: string | null;
@@ -20644,6 +20852,8 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
20644
20852
  order_id: string;
20645
20853
  order_source: string;
20646
20854
  pick_date: string;
20855
+ printed_at: string;
20856
+ printed_today: boolean;
20647
20857
  status: string;
20648
20858
  }[];
20649
20859
  };
@@ -21352,6 +21562,10 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21352
21562
  };
21353
21563
  Returns: number;
21354
21564
  };
21565
+ logistics_cancel_orphan_tasks: {
21566
+ Args: never;
21567
+ Returns: number;
21568
+ };
21355
21569
  logistics_capacity_day_check: {
21356
21570
  Args: {
21357
21571
  p_from?: string;
@@ -21372,6 +21586,25 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21372
21586
  };
21373
21587
  Returns: number;
21374
21588
  };
21589
+ logistics_cart_index: {
21590
+ Args: {
21591
+ p_from?: string;
21592
+ p_to?: string;
21593
+ };
21594
+ Returns: {
21595
+ cart_id: string;
21596
+ cart_index: number;
21597
+ cart_label: string;
21598
+ is_shared: boolean;
21599
+ order_number: string;
21600
+ order_source: string;
21601
+ order_uuid: string;
21602
+ pick_date: string;
21603
+ printed_at: string;
21604
+ shifted: boolean;
21605
+ task_status: string;
21606
+ }[];
21607
+ };
21375
21608
  logistics_check_order_allowed: {
21376
21609
  Args: {
21377
21610
  p_lines: import("../integrations/supabase/types").Json;
@@ -21520,6 +21753,17 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21520
21753
  isSetofReturn: false;
21521
21754
  };
21522
21755
  };
21756
+ logistics_consistency_check: {
21757
+ Args: never;
21758
+ Returns: {
21759
+ agenda_carts: number;
21760
+ control_carts: number;
21761
+ ok: boolean;
21762
+ orphan_tasks: number;
21763
+ pick_date: string;
21764
+ raw_carts: number;
21765
+ }[];
21766
+ };
21523
21767
  logistics_delay_customer_email: {
21524
21768
  Args: {
21525
21769
  p_customer: string;
@@ -21609,6 +21853,16 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21609
21853
  isSetofReturn: false;
21610
21854
  };
21611
21855
  };
21856
+ logistics_floriday_cart_plan: {
21857
+ Args: {
21858
+ p_order_id: string;
21859
+ };
21860
+ Returns: {
21861
+ carrier_type: string;
21862
+ idx: number;
21863
+ packages: number;
21864
+ }[];
21865
+ };
21612
21866
  logistics_floriday_claim_pushes: {
21613
21867
  Args: {
21614
21868
  _lease_seconds?: number;
@@ -21713,6 +21967,25 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21713
21967
  };
21714
21968
  Returns: number;
21715
21969
  };
21970
+ logistics_order_overview: {
21971
+ Args: {
21972
+ p_from?: string;
21973
+ p_to?: string;
21974
+ };
21975
+ Returns: {
21976
+ cart_count: number;
21977
+ customer_name: string;
21978
+ delivery_date: string;
21979
+ order_number: string;
21980
+ order_source: string;
21981
+ order_uuid: string;
21982
+ pick_date: string;
21983
+ plant_count: number;
21984
+ printed_at: string;
21985
+ shifted: boolean;
21986
+ status: string;
21987
+ }[];
21988
+ };
21716
21989
  logistics_order_pick_day: {
21717
21990
  Args: {
21718
21991
  p_order_ref: string;
@@ -21725,6 +21998,22 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21725
21998
  };
21726
21999
  Returns: string;
21727
22000
  };
22001
+ logistics_pick_agenda: {
22002
+ Args: {
22003
+ p_from?: string;
22004
+ p_to?: string;
22005
+ };
22006
+ Returns: {
22007
+ cart_count: number;
22008
+ in_preparation: number;
22009
+ order_count: number;
22010
+ orders: import("../integrations/supabase/types").Json;
22011
+ pick_date: string;
22012
+ plant_count: number;
22013
+ ready: number;
22014
+ shifted_count: number;
22015
+ }[];
22016
+ };
21728
22017
  logistics_pick_email_purpose: {
21729
22018
  Args: never;
21730
22019
  Returns: string;
@@ -21779,6 +22068,13 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21779
22068
  };
21780
22069
  Returns: undefined;
21781
22070
  };
22071
+ logistics_plan_floriday_order: {
22072
+ Args: {
22073
+ p_buffer_id?: string;
22074
+ p_order_id: string;
22075
+ };
22076
+ Returns: number;
22077
+ };
21782
22078
  logistics_plan_impact_orders: {
21783
22079
  Args: {
21784
22080
  p_order_id: string;
@@ -21884,6 +22180,15 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
21884
22180
  };
21885
22181
  Returns: import("../integrations/supabase/types").Json;
21886
22182
  };
22183
+ logistics_resolve_pick_document: {
22184
+ Args: {
22185
+ _is_herprint: boolean;
22186
+ _queue_item_id: string;
22187
+ _session_id: string;
22188
+ _voorbeeld: boolean;
22189
+ };
22190
+ Returns: import("../integrations/supabase/types").Json;
22191
+ };
21887
22192
  logistics_resolve_settings: {
21888
22193
  Args: {
21889
22194
  p_config_id: string;
@@ -22014,14 +22319,6 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
22014
22319
  };
22015
22320
  Returns: string;
22016
22321
  };
22017
- maps_cron_token: {
22018
- Args: never;
22019
- Returns: string;
22020
- };
22021
- maps_kick_queue: {
22022
- Args: never;
22023
- Returns: undefined;
22024
- };
22025
22322
  mark_offer_clicked: {
22026
22323
  Args: {
22027
22324
  p_code: string;
@@ -22332,6 +22629,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
22332
22629
  };
22333
22630
  pick_enqueue_print_job: {
22334
22631
  Args: {
22632
+ _is_herprint?: boolean;
22335
22633
  _printer_id?: string;
22336
22634
  _queue_item_id: string;
22337
22635
  _session_id?: string;
@@ -22345,6 +22643,13 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
22345
22643
  };
22346
22644
  Returns: import("../integrations/supabase/types").Json;
22347
22645
  };
22646
+ pick_preview_job: {
22647
+ Args: {
22648
+ _queue_item_id: string;
22649
+ _station_slug: string;
22650
+ };
22651
+ Returns: import("../integrations/supabase/types").Json;
22652
+ };
22348
22653
  pick_print_job_status: {
22349
22654
  Args: {
22350
22655
  _job_id: string;
@@ -22522,6 +22827,24 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
22522
22827
  };
22523
22828
  Returns: undefined;
22524
22829
  };
22830
+ print_preview_toestaan: {
22831
+ Args: {
22832
+ _max?: number;
22833
+ _queue_item_id: string;
22834
+ _station_slug: string;
22835
+ _venster_sec?: number;
22836
+ };
22837
+ Returns: import("../integrations/supabase/types").Json;
22838
+ };
22839
+ print_preview_weiger: {
22840
+ Args: {
22841
+ _code: string;
22842
+ _queue_item_id: string;
22843
+ _reden: string;
22844
+ _station_slug: string;
22845
+ };
22846
+ Returns: undefined;
22847
+ };
22525
22848
  process_logistics_event: {
22526
22849
  Args: {
22527
22850
  p_event_id: string;
@@ -22639,6 +22962,14 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
22639
22962
  };
22640
22963
  Returns: undefined;
22641
22964
  };
22965
+ replace_order_carts: {
22966
+ Args: {
22967
+ p_buffer_id: string;
22968
+ p_carts: import("../integrations/supabase/types").Json;
22969
+ p_order_id: string;
22970
+ };
22971
+ Returns: import("../integrations/supabase/types").Json;
22972
+ };
22642
22973
  reset_floriday_sync_cursor: {
22643
22974
  Args: {
22644
22975
  p_connection_id: string;
@@ -22668,6 +22999,12 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
22668
22999
  };
22669
23000
  Returns: string;
22670
23001
  };
23002
+ resolve_print_job_printer_id: {
23003
+ Args: {
23004
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
23005
+ };
23006
+ Returns: string;
23007
+ };
22671
23008
  resolve_product_id_for_item: {
22672
23009
  Args: {
22673
23010
  p_product_name: string;
@@ -23259,7 +23596,7 @@ export declare const rebufferAllOrders: import("@tanstack/start-client-core").Op
23259
23596
  };
23260
23597
  CompositeTypes: { [_ in never]: never; };
23261
23598
  }, {
23262
- PostgrestVersion: "14.17";
23599
+ PostgrestVersion: "14.5";
23263
23600
  }>;
23264
23601
  userId: string;
23265
23602
  claims: import("@supabase/auth-js").User;
@@ -26121,6 +26458,84 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
26121
26458
  };
26122
26459
  Relationships: [];
26123
26460
  };
26461
+ delivery_notes: {
26462
+ Row: {
26463
+ byte_size: number | null;
26464
+ connection_id: string | null;
26465
+ content_type: string;
26466
+ created_at: string;
26467
+ error_message: string | null;
26468
+ fetched_at: string | null;
26469
+ fulfillment_order_id: string | null;
26470
+ http_status: number | null;
26471
+ id: string;
26472
+ label_code: string | null;
26473
+ letter: string | null;
26474
+ load_carrier_index: number | null;
26475
+ load_carrier_type: string | null;
26476
+ order_id: string | null;
26477
+ order_number: string | null;
26478
+ packages: number | null;
26479
+ source: string;
26480
+ status: string;
26481
+ storage_bucket: string;
26482
+ storage_path: string | null;
26483
+ updated_at: string;
26484
+ };
26485
+ Insert: {
26486
+ byte_size?: number | null;
26487
+ connection_id?: string | null;
26488
+ content_type?: string;
26489
+ created_at?: string;
26490
+ error_message?: string | null;
26491
+ fetched_at?: string | null;
26492
+ fulfillment_order_id?: string | null;
26493
+ http_status?: number | null;
26494
+ id?: string;
26495
+ label_code?: string | null;
26496
+ letter?: string | null;
26497
+ load_carrier_index?: number | null;
26498
+ load_carrier_type?: string | null;
26499
+ order_id?: string | null;
26500
+ order_number?: string | null;
26501
+ packages?: number | null;
26502
+ source?: string;
26503
+ status?: string;
26504
+ storage_bucket?: string;
26505
+ storage_path?: string | null;
26506
+ updated_at?: string;
26507
+ };
26508
+ Update: {
26509
+ byte_size?: number | null;
26510
+ connection_id?: string | null;
26511
+ content_type?: string;
26512
+ created_at?: string;
26513
+ error_message?: string | null;
26514
+ fetched_at?: string | null;
26515
+ fulfillment_order_id?: string | null;
26516
+ http_status?: number | null;
26517
+ id?: string;
26518
+ label_code?: string | null;
26519
+ letter?: string | null;
26520
+ load_carrier_index?: number | null;
26521
+ load_carrier_type?: string | null;
26522
+ order_id?: string | null;
26523
+ order_number?: string | null;
26524
+ packages?: number | null;
26525
+ source?: string;
26526
+ status?: string;
26527
+ storage_bucket?: string;
26528
+ storage_path?: string | null;
26529
+ updated_at?: string;
26530
+ };
26531
+ Relationships: [{
26532
+ foreignKeyName: "delivery_notes_order_id_fkey";
26533
+ columns: ["order_id"];
26534
+ isOneToOne: false;
26535
+ referencedRelation: "orders";
26536
+ referencedColumns: ["id"];
26537
+ }];
26538
+ };
26124
26539
  document_bronregels: {
26125
26540
  Row: {
26126
26541
  bron: string;
@@ -29174,10 +29589,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
29174
29589
  };
29175
29590
  floriday_connections: {
29176
29591
  Row: {
29177
- access_token: string | null;
29178
29592
  api_key: string;
29179
- client_id: string;
29180
- client_secret: string;
29181
29593
  created_at: string;
29182
29594
  customers_endpoint: string | null;
29183
29595
  environment: string;
@@ -29192,10 +29604,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
29192
29604
  updated_at: string;
29193
29605
  };
29194
29606
  Insert: {
29195
- access_token?: string | null;
29196
29607
  api_key: string;
29197
- client_id: string;
29198
- client_secret: string;
29199
29608
  created_at?: string;
29200
29609
  customers_endpoint?: string | null;
29201
29610
  environment: string;
@@ -29210,10 +29619,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
29210
29619
  updated_at?: string;
29211
29620
  };
29212
29621
  Update: {
29213
- access_token?: string | null;
29214
29622
  api_key?: string;
29215
- client_id?: string;
29216
- client_secret?: string;
29217
29623
  created_at?: string;
29218
29624
  customers_endpoint?: string | null;
29219
29625
  environment?: string;
@@ -34084,6 +34490,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
34084
34490
  last_error: string | null;
34085
34491
  last_error_at: string | null;
34086
34492
  last_success_at: string | null;
34493
+ provider: string;
34087
34494
  updated_at: string;
34088
34495
  };
34089
34496
  Insert: {
@@ -34095,6 +34502,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
34095
34502
  last_error?: string | null;
34096
34503
  last_error_at?: string | null;
34097
34504
  last_success_at?: string | null;
34505
+ provider?: string;
34098
34506
  updated_at?: string;
34099
34507
  };
34100
34508
  Update: {
@@ -34106,6 +34514,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
34106
34514
  last_error?: string | null;
34107
34515
  last_error_at?: string | null;
34108
34516
  last_success_at?: string | null;
34517
+ provider?: string;
34109
34518
  updated_at?: string;
34110
34519
  };
34111
34520
  Relationships: [];
@@ -36843,6 +37252,39 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
36843
37252
  };
36844
37253
  Relationships: [];
36845
37254
  };
37255
+ print_dedupe_events: {
37256
+ Row: {
37257
+ bestaande_job_id: string | null;
37258
+ created_at: string;
37259
+ detail: string | null;
37260
+ documentnaam: string | null;
37261
+ documenttype: string | null;
37262
+ id: string;
37263
+ idempotentie_sleutel: string;
37264
+ reden: string;
37265
+ };
37266
+ Insert: {
37267
+ bestaande_job_id?: string | null;
37268
+ created_at?: string;
37269
+ detail?: string | null;
37270
+ documentnaam?: string | null;
37271
+ documenttype?: string | null;
37272
+ id?: string;
37273
+ idempotentie_sleutel: string;
37274
+ reden: string;
37275
+ };
37276
+ Update: {
37277
+ bestaande_job_id?: string | null;
37278
+ created_at?: string;
37279
+ detail?: string | null;
37280
+ documentnaam?: string | null;
37281
+ documenttype?: string | null;
37282
+ id?: string;
37283
+ idempotentie_sleutel?: string;
37284
+ reden?: string;
37285
+ };
37286
+ Relationships: [];
37287
+ };
36846
37288
  print_job_logs: {
36847
37289
  Row: {
36848
37290
  created_at: string;
@@ -36893,6 +37335,9 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
36893
37335
  is_herprint: boolean;
36894
37336
  kopieen: number;
36895
37337
  layout_id: string | null;
37338
+ lokaal_opgeslagen_op: string | null;
37339
+ lokale_pdf_fout: string | null;
37340
+ lokale_pdf_status: string | null;
36896
37341
  opgepakt_op: string | null;
36897
37342
  paginas: number;
36898
37343
  payload: import("../integrations/supabase/types").Json;
@@ -36901,6 +37346,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
36901
37346
  pogingen: number;
36902
37347
  printer_id: string | null;
36903
37348
  render_html: string | null;
37349
+ resultaat_pdf_base64: string | null;
36904
37350
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36905
37351
  updated_at: string;
36906
37352
  volgende_poging: string | null;
@@ -36925,6 +37371,9 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
36925
37371
  is_herprint?: boolean;
36926
37372
  kopieen?: number;
36927
37373
  layout_id?: string | null;
37374
+ lokaal_opgeslagen_op?: string | null;
37375
+ lokale_pdf_fout?: string | null;
37376
+ lokale_pdf_status?: string | null;
36928
37377
  opgepakt_op?: string | null;
36929
37378
  paginas?: number;
36930
37379
  payload?: import("../integrations/supabase/types").Json;
@@ -36933,6 +37382,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
36933
37382
  pogingen?: number;
36934
37383
  printer_id?: string | null;
36935
37384
  render_html?: string | null;
37385
+ resultaat_pdf_base64?: string | null;
36936
37386
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36937
37387
  updated_at?: string;
36938
37388
  volgende_poging?: string | null;
@@ -36957,6 +37407,9 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
36957
37407
  is_herprint?: boolean;
36958
37408
  kopieen?: number;
36959
37409
  layout_id?: string | null;
37410
+ lokaal_opgeslagen_op?: string | null;
37411
+ lokale_pdf_fout?: string | null;
37412
+ lokale_pdf_status?: string | null;
36960
37413
  opgepakt_op?: string | null;
36961
37414
  paginas?: number;
36962
37415
  payload?: import("../integrations/supabase/types").Json;
@@ -36965,6 +37418,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
36965
37418
  pogingen?: number;
36966
37419
  printer_id?: string | null;
36967
37420
  render_html?: string | null;
37421
+ resultaat_pdf_base64?: string | null;
36968
37422
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36969
37423
  updated_at?: string;
36970
37424
  volgende_poging?: string | null;
@@ -37083,6 +37537,39 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
37083
37537
  };
37084
37538
  Relationships: [];
37085
37539
  };
37540
+ print_preview_events: {
37541
+ Row: {
37542
+ code: string | null;
37543
+ created_at: string;
37544
+ detail: import("../integrations/supabase/types").Json;
37545
+ id: string;
37546
+ queue_item_id: string | null;
37547
+ reden: string | null;
37548
+ station_slug: string | null;
37549
+ uitkomst: string;
37550
+ };
37551
+ Insert: {
37552
+ code?: string | null;
37553
+ created_at?: string;
37554
+ detail?: import("../integrations/supabase/types").Json;
37555
+ id?: string;
37556
+ queue_item_id?: string | null;
37557
+ reden?: string | null;
37558
+ station_slug?: string | null;
37559
+ uitkomst?: string;
37560
+ };
37561
+ Update: {
37562
+ code?: string | null;
37563
+ created_at?: string;
37564
+ detail?: import("../integrations/supabase/types").Json;
37565
+ id?: string;
37566
+ queue_item_id?: string | null;
37567
+ reden?: string | null;
37568
+ station_slug?: string | null;
37569
+ uitkomst?: string;
37570
+ };
37571
+ Relationships: [];
37572
+ };
37086
37573
  print_queue_runners: {
37087
37574
  Row: {
37088
37575
  actief: boolean;
@@ -37322,6 +37809,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
37322
37809
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37323
37810
  online: boolean;
37324
37811
  papierformaat: string;
37812
+ pdf_map: string | null;
37325
37813
  poort: number | null;
37326
37814
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37327
37815
  systeemnaam: string;
@@ -37347,6 +37835,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
37347
37835
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37348
37836
  online?: boolean;
37349
37837
  papierformaat?: string;
37838
+ pdf_map?: string | null;
37350
37839
  poort?: number | null;
37351
37840
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37352
37841
  systeemnaam?: string;
@@ -37372,6 +37861,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
37372
37861
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37373
37862
  online?: boolean;
37374
37863
  papierformaat?: string;
37864
+ pdf_map?: string | null;
37375
37865
  poort?: number | null;
37376
37866
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37377
37867
  systeemnaam?: string;
@@ -43628,6 +44118,9 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43628
44118
  is_herprint: boolean;
43629
44119
  kopieen: number;
43630
44120
  layout_id: string | null;
44121
+ lokaal_opgeslagen_op: string | null;
44122
+ lokale_pdf_fout: string | null;
44123
+ lokale_pdf_status: string | null;
43631
44124
  opgepakt_op: string | null;
43632
44125
  paginas: number;
43633
44126
  payload: import("../integrations/supabase/types").Json;
@@ -43636,6 +44129,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43636
44129
  pogingen: number;
43637
44130
  printer_id: string | null;
43638
44131
  render_html: string | null;
44132
+ resultaat_pdf_base64: string | null;
43639
44133
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43640
44134
  updated_at: string;
43641
44135
  volgende_poging: string | null;
@@ -43727,6 +44221,53 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43727
44221
  isSetofReturn: true;
43728
44222
  };
43729
44223
  };
44224
+ claim_pdf_print_jobs: {
44225
+ Args: {
44226
+ _max?: number;
44227
+ };
44228
+ Returns: {
44229
+ agent_id: string | null;
44230
+ bron_job_id: string | null;
44231
+ created_at: string;
44232
+ documentnaam: string;
44233
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44234
+ extern_job_id: string | null;
44235
+ foutmelding: string | null;
44236
+ gebruiker_id: string | null;
44237
+ gebruiker_naam: string;
44238
+ gebruikte_bron: string | null;
44239
+ gebruikte_layout_id: string | null;
44240
+ gestart_op: string | null;
44241
+ herkomst: string | null;
44242
+ id: string;
44243
+ idempotentie_sleutel: string | null;
44244
+ is_herprint: boolean;
44245
+ kopieen: number;
44246
+ layout_id: string | null;
44247
+ lokaal_opgeslagen_op: string | null;
44248
+ lokale_pdf_fout: string | null;
44249
+ lokale_pdf_status: string | null;
44250
+ opgepakt_op: string | null;
44251
+ paginas: number;
44252
+ payload: import("../integrations/supabase/types").Json;
44253
+ pdf_base64: string | null;
44254
+ pdf_url: string | null;
44255
+ pogingen: number;
44256
+ printer_id: string | null;
44257
+ render_html: string | null;
44258
+ resultaat_pdf_base64: string | null;
44259
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44260
+ updated_at: string;
44261
+ volgende_poging: string | null;
44262
+ voltooid_op: string | null;
44263
+ }[];
44264
+ SetofOptions: {
44265
+ from: "*";
44266
+ to: "print_jobs";
44267
+ isOneToOne: false;
44268
+ isSetofReturn: true;
44269
+ };
44270
+ };
43730
44271
  claim_print_jobs: {
43731
44272
  Args: {
43732
44273
  _agent_id: string;
@@ -43751,6 +44292,9 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43751
44292
  is_herprint: boolean;
43752
44293
  kopieen: number;
43753
44294
  layout_id: string | null;
44295
+ lokaal_opgeslagen_op: string | null;
44296
+ lokale_pdf_fout: string | null;
44297
+ lokale_pdf_status: string | null;
43754
44298
  opgepakt_op: string | null;
43755
44299
  paginas: number;
43756
44300
  payload: import("../integrations/supabase/types").Json;
@@ -43759,6 +44303,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43759
44303
  pogingen: number;
43760
44304
  printer_id: string | null;
43761
44305
  render_html: string | null;
44306
+ resultaat_pdf_base64: string | null;
43762
44307
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43763
44308
  updated_at: string;
43764
44309
  volgende_poging: string | null;
@@ -43899,6 +44444,8 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
43899
44444
  order_id: string;
43900
44445
  order_source: string;
43901
44446
  pick_date: string;
44447
+ printed_at: string;
44448
+ printed_today: boolean;
43902
44449
  status: string;
43903
44450
  }[];
43904
44451
  };
@@ -44607,6 +45154,10 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
44607
45154
  };
44608
45155
  Returns: number;
44609
45156
  };
45157
+ logistics_cancel_orphan_tasks: {
45158
+ Args: never;
45159
+ Returns: number;
45160
+ };
44610
45161
  logistics_capacity_day_check: {
44611
45162
  Args: {
44612
45163
  p_from?: string;
@@ -44627,6 +45178,25 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
44627
45178
  };
44628
45179
  Returns: number;
44629
45180
  };
45181
+ logistics_cart_index: {
45182
+ Args: {
45183
+ p_from?: string;
45184
+ p_to?: string;
45185
+ };
45186
+ Returns: {
45187
+ cart_id: string;
45188
+ cart_index: number;
45189
+ cart_label: string;
45190
+ is_shared: boolean;
45191
+ order_number: string;
45192
+ order_source: string;
45193
+ order_uuid: string;
45194
+ pick_date: string;
45195
+ printed_at: string;
45196
+ shifted: boolean;
45197
+ task_status: string;
45198
+ }[];
45199
+ };
44630
45200
  logistics_check_order_allowed: {
44631
45201
  Args: {
44632
45202
  p_lines: import("../integrations/supabase/types").Json;
@@ -44775,6 +45345,17 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
44775
45345
  isSetofReturn: false;
44776
45346
  };
44777
45347
  };
45348
+ logistics_consistency_check: {
45349
+ Args: never;
45350
+ Returns: {
45351
+ agenda_carts: number;
45352
+ control_carts: number;
45353
+ ok: boolean;
45354
+ orphan_tasks: number;
45355
+ pick_date: string;
45356
+ raw_carts: number;
45357
+ }[];
45358
+ };
44778
45359
  logistics_delay_customer_email: {
44779
45360
  Args: {
44780
45361
  p_customer: string;
@@ -44864,6 +45445,16 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
44864
45445
  isSetofReturn: false;
44865
45446
  };
44866
45447
  };
45448
+ logistics_floriday_cart_plan: {
45449
+ Args: {
45450
+ p_order_id: string;
45451
+ };
45452
+ Returns: {
45453
+ carrier_type: string;
45454
+ idx: number;
45455
+ packages: number;
45456
+ }[];
45457
+ };
44867
45458
  logistics_floriday_claim_pushes: {
44868
45459
  Args: {
44869
45460
  _lease_seconds?: number;
@@ -44968,6 +45559,25 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
44968
45559
  };
44969
45560
  Returns: number;
44970
45561
  };
45562
+ logistics_order_overview: {
45563
+ Args: {
45564
+ p_from?: string;
45565
+ p_to?: string;
45566
+ };
45567
+ Returns: {
45568
+ cart_count: number;
45569
+ customer_name: string;
45570
+ delivery_date: string;
45571
+ order_number: string;
45572
+ order_source: string;
45573
+ order_uuid: string;
45574
+ pick_date: string;
45575
+ plant_count: number;
45576
+ printed_at: string;
45577
+ shifted: boolean;
45578
+ status: string;
45579
+ }[];
45580
+ };
44971
45581
  logistics_order_pick_day: {
44972
45582
  Args: {
44973
45583
  p_order_ref: string;
@@ -44980,6 +45590,22 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
44980
45590
  };
44981
45591
  Returns: string;
44982
45592
  };
45593
+ logistics_pick_agenda: {
45594
+ Args: {
45595
+ p_from?: string;
45596
+ p_to?: string;
45597
+ };
45598
+ Returns: {
45599
+ cart_count: number;
45600
+ in_preparation: number;
45601
+ order_count: number;
45602
+ orders: import("../integrations/supabase/types").Json;
45603
+ pick_date: string;
45604
+ plant_count: number;
45605
+ ready: number;
45606
+ shifted_count: number;
45607
+ }[];
45608
+ };
44983
45609
  logistics_pick_email_purpose: {
44984
45610
  Args: never;
44985
45611
  Returns: string;
@@ -45034,6 +45660,13 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
45034
45660
  };
45035
45661
  Returns: undefined;
45036
45662
  };
45663
+ logistics_plan_floriday_order: {
45664
+ Args: {
45665
+ p_buffer_id?: string;
45666
+ p_order_id: string;
45667
+ };
45668
+ Returns: number;
45669
+ };
45037
45670
  logistics_plan_impact_orders: {
45038
45671
  Args: {
45039
45672
  p_order_id: string;
@@ -45139,6 +45772,15 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
45139
45772
  };
45140
45773
  Returns: import("../integrations/supabase/types").Json;
45141
45774
  };
45775
+ logistics_resolve_pick_document: {
45776
+ Args: {
45777
+ _is_herprint: boolean;
45778
+ _queue_item_id: string;
45779
+ _session_id: string;
45780
+ _voorbeeld: boolean;
45781
+ };
45782
+ Returns: import("../integrations/supabase/types").Json;
45783
+ };
45142
45784
  logistics_resolve_settings: {
45143
45785
  Args: {
45144
45786
  p_config_id: string;
@@ -45269,14 +45911,6 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
45269
45911
  };
45270
45912
  Returns: string;
45271
45913
  };
45272
- maps_cron_token: {
45273
- Args: never;
45274
- Returns: string;
45275
- };
45276
- maps_kick_queue: {
45277
- Args: never;
45278
- Returns: undefined;
45279
- };
45280
45914
  mark_offer_clicked: {
45281
45915
  Args: {
45282
45916
  p_code: string;
@@ -45587,6 +46221,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
45587
46221
  };
45588
46222
  pick_enqueue_print_job: {
45589
46223
  Args: {
46224
+ _is_herprint?: boolean;
45590
46225
  _printer_id?: string;
45591
46226
  _queue_item_id: string;
45592
46227
  _session_id?: string;
@@ -45600,6 +46235,13 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
45600
46235
  };
45601
46236
  Returns: import("../integrations/supabase/types").Json;
45602
46237
  };
46238
+ pick_preview_job: {
46239
+ Args: {
46240
+ _queue_item_id: string;
46241
+ _station_slug: string;
46242
+ };
46243
+ Returns: import("../integrations/supabase/types").Json;
46244
+ };
45603
46245
  pick_print_job_status: {
45604
46246
  Args: {
45605
46247
  _job_id: string;
@@ -45777,6 +46419,24 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
45777
46419
  };
45778
46420
  Returns: undefined;
45779
46421
  };
46422
+ print_preview_toestaan: {
46423
+ Args: {
46424
+ _max?: number;
46425
+ _queue_item_id: string;
46426
+ _station_slug: string;
46427
+ _venster_sec?: number;
46428
+ };
46429
+ Returns: import("../integrations/supabase/types").Json;
46430
+ };
46431
+ print_preview_weiger: {
46432
+ Args: {
46433
+ _code: string;
46434
+ _queue_item_id: string;
46435
+ _reden: string;
46436
+ _station_slug: string;
46437
+ };
46438
+ Returns: undefined;
46439
+ };
45780
46440
  process_logistics_event: {
45781
46441
  Args: {
45782
46442
  p_event_id: string;
@@ -45894,6 +46554,14 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
45894
46554
  };
45895
46555
  Returns: undefined;
45896
46556
  };
46557
+ replace_order_carts: {
46558
+ Args: {
46559
+ p_buffer_id: string;
46560
+ p_carts: import("../integrations/supabase/types").Json;
46561
+ p_order_id: string;
46562
+ };
46563
+ Returns: import("../integrations/supabase/types").Json;
46564
+ };
45897
46565
  reset_floriday_sync_cursor: {
45898
46566
  Args: {
45899
46567
  p_connection_id: string;
@@ -45923,6 +46591,12 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
45923
46591
  };
45924
46592
  Returns: string;
45925
46593
  };
46594
+ resolve_print_job_printer_id: {
46595
+ Args: {
46596
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
46597
+ };
46598
+ Returns: string;
46599
+ };
45926
46600
  resolve_product_id_for_item: {
45927
46601
  Args: {
45928
46602
  p_product_name: string;
@@ -46514,7 +47188,7 @@ export declare const resolveBufferForOrder: import("@tanstack/start-client-core"
46514
47188
  };
46515
47189
  CompositeTypes: { [_ in never]: never; };
46516
47190
  }, {
46517
- PostgrestVersion: "14.17";
47191
+ PostgrestVersion: "14.5";
46518
47192
  }>;
46519
47193
  userId: string;
46520
47194
  claims: import("@supabase/auth-js").User;
@@ -49377,6 +50051,84 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
49377
50051
  };
49378
50052
  Relationships: [];
49379
50053
  };
50054
+ delivery_notes: {
50055
+ Row: {
50056
+ byte_size: number | null;
50057
+ connection_id: string | null;
50058
+ content_type: string;
50059
+ created_at: string;
50060
+ error_message: string | null;
50061
+ fetched_at: string | null;
50062
+ fulfillment_order_id: string | null;
50063
+ http_status: number | null;
50064
+ id: string;
50065
+ label_code: string | null;
50066
+ letter: string | null;
50067
+ load_carrier_index: number | null;
50068
+ load_carrier_type: string | null;
50069
+ order_id: string | null;
50070
+ order_number: string | null;
50071
+ packages: number | null;
50072
+ source: string;
50073
+ status: string;
50074
+ storage_bucket: string;
50075
+ storage_path: string | null;
50076
+ updated_at: string;
50077
+ };
50078
+ Insert: {
50079
+ byte_size?: number | null;
50080
+ connection_id?: string | null;
50081
+ content_type?: string;
50082
+ created_at?: string;
50083
+ error_message?: string | null;
50084
+ fetched_at?: string | null;
50085
+ fulfillment_order_id?: string | null;
50086
+ http_status?: number | null;
50087
+ id?: string;
50088
+ label_code?: string | null;
50089
+ letter?: string | null;
50090
+ load_carrier_index?: number | null;
50091
+ load_carrier_type?: string | null;
50092
+ order_id?: string | null;
50093
+ order_number?: string | null;
50094
+ packages?: number | null;
50095
+ source?: string;
50096
+ status?: string;
50097
+ storage_bucket?: string;
50098
+ storage_path?: string | null;
50099
+ updated_at?: string;
50100
+ };
50101
+ Update: {
50102
+ byte_size?: number | null;
50103
+ connection_id?: string | null;
50104
+ content_type?: string;
50105
+ created_at?: string;
50106
+ error_message?: string | null;
50107
+ fetched_at?: string | null;
50108
+ fulfillment_order_id?: string | null;
50109
+ http_status?: number | null;
50110
+ id?: string;
50111
+ label_code?: string | null;
50112
+ letter?: string | null;
50113
+ load_carrier_index?: number | null;
50114
+ load_carrier_type?: string | null;
50115
+ order_id?: string | null;
50116
+ order_number?: string | null;
50117
+ packages?: number | null;
50118
+ source?: string;
50119
+ status?: string;
50120
+ storage_bucket?: string;
50121
+ storage_path?: string | null;
50122
+ updated_at?: string;
50123
+ };
50124
+ Relationships: [{
50125
+ foreignKeyName: "delivery_notes_order_id_fkey";
50126
+ columns: ["order_id"];
50127
+ isOneToOne: false;
50128
+ referencedRelation: "orders";
50129
+ referencedColumns: ["id"];
50130
+ }];
50131
+ };
49380
50132
  document_bronregels: {
49381
50133
  Row: {
49382
50134
  bron: string;
@@ -52430,10 +53182,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
52430
53182
  };
52431
53183
  floriday_connections: {
52432
53184
  Row: {
52433
- access_token: string | null;
52434
53185
  api_key: string;
52435
- client_id: string;
52436
- client_secret: string;
52437
53186
  created_at: string;
52438
53187
  customers_endpoint: string | null;
52439
53188
  environment: string;
@@ -52448,10 +53197,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
52448
53197
  updated_at: string;
52449
53198
  };
52450
53199
  Insert: {
52451
- access_token?: string | null;
52452
53200
  api_key: string;
52453
- client_id: string;
52454
- client_secret: string;
52455
53201
  created_at?: string;
52456
53202
  customers_endpoint?: string | null;
52457
53203
  environment: string;
@@ -52466,10 +53212,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
52466
53212
  updated_at?: string;
52467
53213
  };
52468
53214
  Update: {
52469
- access_token?: string | null;
52470
53215
  api_key?: string;
52471
- client_id?: string;
52472
- client_secret?: string;
52473
53216
  created_at?: string;
52474
53217
  customers_endpoint?: string | null;
52475
53218
  environment?: string;
@@ -57340,6 +58083,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
57340
58083
  last_error: string | null;
57341
58084
  last_error_at: string | null;
57342
58085
  last_success_at: string | null;
58086
+ provider: string;
57343
58087
  updated_at: string;
57344
58088
  };
57345
58089
  Insert: {
@@ -57351,6 +58095,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
57351
58095
  last_error?: string | null;
57352
58096
  last_error_at?: string | null;
57353
58097
  last_success_at?: string | null;
58098
+ provider?: string;
57354
58099
  updated_at?: string;
57355
58100
  };
57356
58101
  Update: {
@@ -57362,6 +58107,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
57362
58107
  last_error?: string | null;
57363
58108
  last_error_at?: string | null;
57364
58109
  last_success_at?: string | null;
58110
+ provider?: string;
57365
58111
  updated_at?: string;
57366
58112
  };
57367
58113
  Relationships: [];
@@ -60099,6 +60845,39 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60099
60845
  };
60100
60846
  Relationships: [];
60101
60847
  };
60848
+ print_dedupe_events: {
60849
+ Row: {
60850
+ bestaande_job_id: string | null;
60851
+ created_at: string;
60852
+ detail: string | null;
60853
+ documentnaam: string | null;
60854
+ documenttype: string | null;
60855
+ id: string;
60856
+ idempotentie_sleutel: string;
60857
+ reden: string;
60858
+ };
60859
+ Insert: {
60860
+ bestaande_job_id?: string | null;
60861
+ created_at?: string;
60862
+ detail?: string | null;
60863
+ documentnaam?: string | null;
60864
+ documenttype?: string | null;
60865
+ id?: string;
60866
+ idempotentie_sleutel: string;
60867
+ reden: string;
60868
+ };
60869
+ Update: {
60870
+ bestaande_job_id?: string | null;
60871
+ created_at?: string;
60872
+ detail?: string | null;
60873
+ documentnaam?: string | null;
60874
+ documenttype?: string | null;
60875
+ id?: string;
60876
+ idempotentie_sleutel?: string;
60877
+ reden?: string;
60878
+ };
60879
+ Relationships: [];
60880
+ };
60102
60881
  print_job_logs: {
60103
60882
  Row: {
60104
60883
  created_at: string;
@@ -60149,6 +60928,9 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60149
60928
  is_herprint: boolean;
60150
60929
  kopieen: number;
60151
60930
  layout_id: string | null;
60931
+ lokaal_opgeslagen_op: string | null;
60932
+ lokale_pdf_fout: string | null;
60933
+ lokale_pdf_status: string | null;
60152
60934
  opgepakt_op: string | null;
60153
60935
  paginas: number;
60154
60936
  payload: import("../integrations/supabase/types").Json;
@@ -60157,6 +60939,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60157
60939
  pogingen: number;
60158
60940
  printer_id: string | null;
60159
60941
  render_html: string | null;
60942
+ resultaat_pdf_base64: string | null;
60160
60943
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60161
60944
  updated_at: string;
60162
60945
  volgende_poging: string | null;
@@ -60181,6 +60964,9 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60181
60964
  is_herprint?: boolean;
60182
60965
  kopieen?: number;
60183
60966
  layout_id?: string | null;
60967
+ lokaal_opgeslagen_op?: string | null;
60968
+ lokale_pdf_fout?: string | null;
60969
+ lokale_pdf_status?: string | null;
60184
60970
  opgepakt_op?: string | null;
60185
60971
  paginas?: number;
60186
60972
  payload?: import("../integrations/supabase/types").Json;
@@ -60189,6 +60975,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60189
60975
  pogingen?: number;
60190
60976
  printer_id?: string | null;
60191
60977
  render_html?: string | null;
60978
+ resultaat_pdf_base64?: string | null;
60192
60979
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60193
60980
  updated_at?: string;
60194
60981
  volgende_poging?: string | null;
@@ -60213,6 +61000,9 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60213
61000
  is_herprint?: boolean;
60214
61001
  kopieen?: number;
60215
61002
  layout_id?: string | null;
61003
+ lokaal_opgeslagen_op?: string | null;
61004
+ lokale_pdf_fout?: string | null;
61005
+ lokale_pdf_status?: string | null;
60216
61006
  opgepakt_op?: string | null;
60217
61007
  paginas?: number;
60218
61008
  payload?: import("../integrations/supabase/types").Json;
@@ -60221,6 +61011,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60221
61011
  pogingen?: number;
60222
61012
  printer_id?: string | null;
60223
61013
  render_html?: string | null;
61014
+ resultaat_pdf_base64?: string | null;
60224
61015
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60225
61016
  updated_at?: string;
60226
61017
  volgende_poging?: string | null;
@@ -60339,6 +61130,39 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60339
61130
  };
60340
61131
  Relationships: [];
60341
61132
  };
61133
+ print_preview_events: {
61134
+ Row: {
61135
+ code: string | null;
61136
+ created_at: string;
61137
+ detail: import("../integrations/supabase/types").Json;
61138
+ id: string;
61139
+ queue_item_id: string | null;
61140
+ reden: string | null;
61141
+ station_slug: string | null;
61142
+ uitkomst: string;
61143
+ };
61144
+ Insert: {
61145
+ code?: string | null;
61146
+ created_at?: string;
61147
+ detail?: import("../integrations/supabase/types").Json;
61148
+ id?: string;
61149
+ queue_item_id?: string | null;
61150
+ reden?: string | null;
61151
+ station_slug?: string | null;
61152
+ uitkomst?: string;
61153
+ };
61154
+ Update: {
61155
+ code?: string | null;
61156
+ created_at?: string;
61157
+ detail?: import("../integrations/supabase/types").Json;
61158
+ id?: string;
61159
+ queue_item_id?: string | null;
61160
+ reden?: string | null;
61161
+ station_slug?: string | null;
61162
+ uitkomst?: string;
61163
+ };
61164
+ Relationships: [];
61165
+ };
60342
61166
  print_queue_runners: {
60343
61167
  Row: {
60344
61168
  actief: boolean;
@@ -60578,6 +61402,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60578
61402
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
60579
61403
  online: boolean;
60580
61404
  papierformaat: string;
61405
+ pdf_map: string | null;
60581
61406
  poort: number | null;
60582
61407
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60583
61408
  systeemnaam: string;
@@ -60603,6 +61428,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60603
61428
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60604
61429
  online?: boolean;
60605
61430
  papierformaat?: string;
61431
+ pdf_map?: string | null;
60606
61432
  poort?: number | null;
60607
61433
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60608
61434
  systeemnaam?: string;
@@ -60628,6 +61454,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
60628
61454
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60629
61455
  online?: boolean;
60630
61456
  papierformaat?: string;
61457
+ pdf_map?: string | null;
60631
61458
  poort?: number | null;
60632
61459
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60633
61460
  systeemnaam?: string;
@@ -66884,6 +67711,9 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
66884
67711
  is_herprint: boolean;
66885
67712
  kopieen: number;
66886
67713
  layout_id: string | null;
67714
+ lokaal_opgeslagen_op: string | null;
67715
+ lokale_pdf_fout: string | null;
67716
+ lokale_pdf_status: string | null;
66887
67717
  opgepakt_op: string | null;
66888
67718
  paginas: number;
66889
67719
  payload: import("../integrations/supabase/types").Json;
@@ -66892,6 +67722,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
66892
67722
  pogingen: number;
66893
67723
  printer_id: string | null;
66894
67724
  render_html: string | null;
67725
+ resultaat_pdf_base64: string | null;
66895
67726
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
66896
67727
  updated_at: string;
66897
67728
  volgende_poging: string | null;
@@ -66983,6 +67814,53 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
66983
67814
  isSetofReturn: true;
66984
67815
  };
66985
67816
  };
67817
+ claim_pdf_print_jobs: {
67818
+ Args: {
67819
+ _max?: number;
67820
+ };
67821
+ Returns: {
67822
+ agent_id: string | null;
67823
+ bron_job_id: string | null;
67824
+ created_at: string;
67825
+ documentnaam: string;
67826
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
67827
+ extern_job_id: string | null;
67828
+ foutmelding: string | null;
67829
+ gebruiker_id: string | null;
67830
+ gebruiker_naam: string;
67831
+ gebruikte_bron: string | null;
67832
+ gebruikte_layout_id: string | null;
67833
+ gestart_op: string | null;
67834
+ herkomst: string | null;
67835
+ id: string;
67836
+ idempotentie_sleutel: string | null;
67837
+ is_herprint: boolean;
67838
+ kopieen: number;
67839
+ layout_id: string | null;
67840
+ lokaal_opgeslagen_op: string | null;
67841
+ lokale_pdf_fout: string | null;
67842
+ lokale_pdf_status: string | null;
67843
+ opgepakt_op: string | null;
67844
+ paginas: number;
67845
+ payload: import("../integrations/supabase/types").Json;
67846
+ pdf_base64: string | null;
67847
+ pdf_url: string | null;
67848
+ pogingen: number;
67849
+ printer_id: string | null;
67850
+ render_html: string | null;
67851
+ resultaat_pdf_base64: string | null;
67852
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67853
+ updated_at: string;
67854
+ volgende_poging: string | null;
67855
+ voltooid_op: string | null;
67856
+ }[];
67857
+ SetofOptions: {
67858
+ from: "*";
67859
+ to: "print_jobs";
67860
+ isOneToOne: false;
67861
+ isSetofReturn: true;
67862
+ };
67863
+ };
66986
67864
  claim_print_jobs: {
66987
67865
  Args: {
66988
67866
  _agent_id: string;
@@ -67007,6 +67885,9 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
67007
67885
  is_herprint: boolean;
67008
67886
  kopieen: number;
67009
67887
  layout_id: string | null;
67888
+ lokaal_opgeslagen_op: string | null;
67889
+ lokale_pdf_fout: string | null;
67890
+ lokale_pdf_status: string | null;
67010
67891
  opgepakt_op: string | null;
67011
67892
  paginas: number;
67012
67893
  payload: import("../integrations/supabase/types").Json;
@@ -67015,6 +67896,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
67015
67896
  pogingen: number;
67016
67897
  printer_id: string | null;
67017
67898
  render_html: string | null;
67899
+ resultaat_pdf_base64: string | null;
67018
67900
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67019
67901
  updated_at: string;
67020
67902
  volgende_poging: string | null;
@@ -67155,6 +68037,8 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
67155
68037
  order_id: string;
67156
68038
  order_source: string;
67157
68039
  pick_date: string;
68040
+ printed_at: string;
68041
+ printed_today: boolean;
67158
68042
  status: string;
67159
68043
  }[];
67160
68044
  };
@@ -67863,6 +68747,10 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
67863
68747
  };
67864
68748
  Returns: number;
67865
68749
  };
68750
+ logistics_cancel_orphan_tasks: {
68751
+ Args: never;
68752
+ Returns: number;
68753
+ };
67866
68754
  logistics_capacity_day_check: {
67867
68755
  Args: {
67868
68756
  p_from?: string;
@@ -67883,6 +68771,25 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
67883
68771
  };
67884
68772
  Returns: number;
67885
68773
  };
68774
+ logistics_cart_index: {
68775
+ Args: {
68776
+ p_from?: string;
68777
+ p_to?: string;
68778
+ };
68779
+ Returns: {
68780
+ cart_id: string;
68781
+ cart_index: number;
68782
+ cart_label: string;
68783
+ is_shared: boolean;
68784
+ order_number: string;
68785
+ order_source: string;
68786
+ order_uuid: string;
68787
+ pick_date: string;
68788
+ printed_at: string;
68789
+ shifted: boolean;
68790
+ task_status: string;
68791
+ }[];
68792
+ };
67886
68793
  logistics_check_order_allowed: {
67887
68794
  Args: {
67888
68795
  p_lines: import("../integrations/supabase/types").Json;
@@ -68031,6 +68938,17 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
68031
68938
  isSetofReturn: false;
68032
68939
  };
68033
68940
  };
68941
+ logistics_consistency_check: {
68942
+ Args: never;
68943
+ Returns: {
68944
+ agenda_carts: number;
68945
+ control_carts: number;
68946
+ ok: boolean;
68947
+ orphan_tasks: number;
68948
+ pick_date: string;
68949
+ raw_carts: number;
68950
+ }[];
68951
+ };
68034
68952
  logistics_delay_customer_email: {
68035
68953
  Args: {
68036
68954
  p_customer: string;
@@ -68120,6 +69038,16 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
68120
69038
  isSetofReturn: false;
68121
69039
  };
68122
69040
  };
69041
+ logistics_floriday_cart_plan: {
69042
+ Args: {
69043
+ p_order_id: string;
69044
+ };
69045
+ Returns: {
69046
+ carrier_type: string;
69047
+ idx: number;
69048
+ packages: number;
69049
+ }[];
69050
+ };
68123
69051
  logistics_floriday_claim_pushes: {
68124
69052
  Args: {
68125
69053
  _lease_seconds?: number;
@@ -68224,6 +69152,25 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
68224
69152
  };
68225
69153
  Returns: number;
68226
69154
  };
69155
+ logistics_order_overview: {
69156
+ Args: {
69157
+ p_from?: string;
69158
+ p_to?: string;
69159
+ };
69160
+ Returns: {
69161
+ cart_count: number;
69162
+ customer_name: string;
69163
+ delivery_date: string;
69164
+ order_number: string;
69165
+ order_source: string;
69166
+ order_uuid: string;
69167
+ pick_date: string;
69168
+ plant_count: number;
69169
+ printed_at: string;
69170
+ shifted: boolean;
69171
+ status: string;
69172
+ }[];
69173
+ };
68227
69174
  logistics_order_pick_day: {
68228
69175
  Args: {
68229
69176
  p_order_ref: string;
@@ -68236,6 +69183,22 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
68236
69183
  };
68237
69184
  Returns: string;
68238
69185
  };
69186
+ logistics_pick_agenda: {
69187
+ Args: {
69188
+ p_from?: string;
69189
+ p_to?: string;
69190
+ };
69191
+ Returns: {
69192
+ cart_count: number;
69193
+ in_preparation: number;
69194
+ order_count: number;
69195
+ orders: import("../integrations/supabase/types").Json;
69196
+ pick_date: string;
69197
+ plant_count: number;
69198
+ ready: number;
69199
+ shifted_count: number;
69200
+ }[];
69201
+ };
68239
69202
  logistics_pick_email_purpose: {
68240
69203
  Args: never;
68241
69204
  Returns: string;
@@ -68290,6 +69253,13 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
68290
69253
  };
68291
69254
  Returns: undefined;
68292
69255
  };
69256
+ logistics_plan_floriday_order: {
69257
+ Args: {
69258
+ p_buffer_id?: string;
69259
+ p_order_id: string;
69260
+ };
69261
+ Returns: number;
69262
+ };
68293
69263
  logistics_plan_impact_orders: {
68294
69264
  Args: {
68295
69265
  p_order_id: string;
@@ -68395,6 +69365,15 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
68395
69365
  };
68396
69366
  Returns: import("../integrations/supabase/types").Json;
68397
69367
  };
69368
+ logistics_resolve_pick_document: {
69369
+ Args: {
69370
+ _is_herprint: boolean;
69371
+ _queue_item_id: string;
69372
+ _session_id: string;
69373
+ _voorbeeld: boolean;
69374
+ };
69375
+ Returns: import("../integrations/supabase/types").Json;
69376
+ };
68398
69377
  logistics_resolve_settings: {
68399
69378
  Args: {
68400
69379
  p_config_id: string;
@@ -68525,14 +69504,6 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
68525
69504
  };
68526
69505
  Returns: string;
68527
69506
  };
68528
- maps_cron_token: {
68529
- Args: never;
68530
- Returns: string;
68531
- };
68532
- maps_kick_queue: {
68533
- Args: never;
68534
- Returns: undefined;
68535
- };
68536
69507
  mark_offer_clicked: {
68537
69508
  Args: {
68538
69509
  p_code: string;
@@ -68843,6 +69814,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
68843
69814
  };
68844
69815
  pick_enqueue_print_job: {
68845
69816
  Args: {
69817
+ _is_herprint?: boolean;
68846
69818
  _printer_id?: string;
68847
69819
  _queue_item_id: string;
68848
69820
  _session_id?: string;
@@ -68856,6 +69828,13 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
68856
69828
  };
68857
69829
  Returns: import("../integrations/supabase/types").Json;
68858
69830
  };
69831
+ pick_preview_job: {
69832
+ Args: {
69833
+ _queue_item_id: string;
69834
+ _station_slug: string;
69835
+ };
69836
+ Returns: import("../integrations/supabase/types").Json;
69837
+ };
68859
69838
  pick_print_job_status: {
68860
69839
  Args: {
68861
69840
  _job_id: string;
@@ -69033,6 +70012,24 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
69033
70012
  };
69034
70013
  Returns: undefined;
69035
70014
  };
70015
+ print_preview_toestaan: {
70016
+ Args: {
70017
+ _max?: number;
70018
+ _queue_item_id: string;
70019
+ _station_slug: string;
70020
+ _venster_sec?: number;
70021
+ };
70022
+ Returns: import("../integrations/supabase/types").Json;
70023
+ };
70024
+ print_preview_weiger: {
70025
+ Args: {
70026
+ _code: string;
70027
+ _queue_item_id: string;
70028
+ _reden: string;
70029
+ _station_slug: string;
70030
+ };
70031
+ Returns: undefined;
70032
+ };
69036
70033
  process_logistics_event: {
69037
70034
  Args: {
69038
70035
  p_event_id: string;
@@ -69150,6 +70147,14 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
69150
70147
  };
69151
70148
  Returns: undefined;
69152
70149
  };
70150
+ replace_order_carts: {
70151
+ Args: {
70152
+ p_buffer_id: string;
70153
+ p_carts: import("../integrations/supabase/types").Json;
70154
+ p_order_id: string;
70155
+ };
70156
+ Returns: import("../integrations/supabase/types").Json;
70157
+ };
69153
70158
  reset_floriday_sync_cursor: {
69154
70159
  Args: {
69155
70160
  p_connection_id: string;
@@ -69179,6 +70184,12 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
69179
70184
  };
69180
70185
  Returns: string;
69181
70186
  };
70187
+ resolve_print_job_printer_id: {
70188
+ Args: {
70189
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
70190
+ };
70191
+ Returns: string;
70192
+ };
69182
70193
  resolve_product_id_for_item: {
69183
70194
  Args: {
69184
70195
  p_product_name: string;
@@ -69770,7 +70781,7 @@ export declare const listOrdersInBufferOfOrder: import("@tanstack/start-client-c
69770
70781
  };
69771
70782
  CompositeTypes: { [_ in never]: never; };
69772
70783
  }, {
69773
- PostgrestVersion: "14.17";
70784
+ PostgrestVersion: "14.5";
69774
70785
  }>;
69775
70786
  userId: string;
69776
70787
  claims: import("@supabase/auth-js").User;