@flowselections/floriday-verkoop-module 1.0.56 → 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 (66) 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/SalesOrdersTable.d.ts.map +1 -1
  4. package/dist-lib/components/verkoop/SalesOrdersTable.js +17 -4
  5. package/dist-lib/integrations/supabase/auth-middleware.d.ts +344 -10
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/client.d.ts +344 -10
  8. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/client.server.d.ts +344 -10
  10. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/types.d.ts +346 -10
  12. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  13. package/dist-lib/lib/cart-lock.functions.d.ts +344 -10
  14. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/cart-planning-settings.functions.d.ts +3906 -232
  16. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/cart-replan.functions.d.ts +1032 -30
  18. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/create-order.functions.d.ts +6128 -450
  20. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +1032 -30
  22. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/floriday-gateway.server.d.ts +14 -0
  24. package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday-gateway.server.js +46 -0
  26. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +23961 -20
  27. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday-logistic-labels.functions.js +209 -90
  29. package/dist-lib/lib/floriday-mirror.functions.d.ts +344 -10
  30. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/floriday-public.functions.d.ts +2451 -113
  32. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floriday-sync.d.ts.map +1 -1
  34. package/dist-lib/lib/floriday-writes.functions.d.ts +1763 -93
  35. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/invoice-timing.functions.d.ts +1376 -40
  37. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  38. package/dist-lib/lib/load-carriers.functions.d.ts +344 -10
  39. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  40. package/dist-lib/lib/logistics-engine.functions.d.ts +1763 -93
  41. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  42. package/dist-lib/lib/logistics-stock.functions.d.ts +688 -20
  43. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/order-addresses.functions.d.ts +344 -10
  45. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/order-buffers.functions.d.ts +1032 -30
  47. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/order-carrier.functions.d.ts +688 -20
  49. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/order-pickup.functions.d.ts +688 -20
  51. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/order-shipments.functions.d.ts +1376 -40
  53. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/salesorders-list.functions.d.ts +344 -10
  55. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  57. package/dist-lib/lib/salesorders-list.server.js +43 -1
  58. package/dist-lib/lib/salesorders-mapping.d.ts +8 -0
  59. package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
  60. package/dist-lib/lib/salesorders.functions.d.ts +1763 -93
  61. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +688 -20
  63. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
  64. package/dist-lib/lib/tradeitems.functions.d.ts +344 -10
  65. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  66. package/package.json +131 -131
@@ -2857,6 +2857,84 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
2857
2857
  };
2858
2858
  Relationships: [];
2859
2859
  };
2860
+ delivery_notes: {
2861
+ Row: {
2862
+ byte_size: number | null;
2863
+ connection_id: string | null;
2864
+ content_type: string;
2865
+ created_at: string;
2866
+ error_message: string | null;
2867
+ fetched_at: string | null;
2868
+ fulfillment_order_id: string | null;
2869
+ http_status: number | null;
2870
+ id: string;
2871
+ label_code: string | null;
2872
+ letter: string | null;
2873
+ load_carrier_index: number | null;
2874
+ load_carrier_type: string | null;
2875
+ order_id: string | null;
2876
+ order_number: string | null;
2877
+ packages: number | null;
2878
+ source: string;
2879
+ status: string;
2880
+ storage_bucket: string;
2881
+ storage_path: string | null;
2882
+ updated_at: string;
2883
+ };
2884
+ Insert: {
2885
+ byte_size?: number | null;
2886
+ connection_id?: string | null;
2887
+ content_type?: string;
2888
+ created_at?: string;
2889
+ error_message?: string | null;
2890
+ fetched_at?: string | null;
2891
+ fulfillment_order_id?: string | null;
2892
+ http_status?: number | null;
2893
+ id?: string;
2894
+ label_code?: string | null;
2895
+ letter?: string | null;
2896
+ load_carrier_index?: number | null;
2897
+ load_carrier_type?: string | null;
2898
+ order_id?: string | null;
2899
+ order_number?: string | null;
2900
+ packages?: number | null;
2901
+ source?: string;
2902
+ status?: string;
2903
+ storage_bucket?: string;
2904
+ storage_path?: string | null;
2905
+ updated_at?: string;
2906
+ };
2907
+ Update: {
2908
+ byte_size?: number | null;
2909
+ connection_id?: string | null;
2910
+ content_type?: string;
2911
+ created_at?: string;
2912
+ error_message?: string | null;
2913
+ fetched_at?: string | null;
2914
+ fulfillment_order_id?: string | null;
2915
+ http_status?: number | null;
2916
+ id?: string;
2917
+ label_code?: string | null;
2918
+ letter?: string | null;
2919
+ load_carrier_index?: number | null;
2920
+ load_carrier_type?: string | null;
2921
+ order_id?: string | null;
2922
+ order_number?: string | null;
2923
+ packages?: number | null;
2924
+ source?: string;
2925
+ status?: string;
2926
+ storage_bucket?: string;
2927
+ storage_path?: string | null;
2928
+ updated_at?: string;
2929
+ };
2930
+ Relationships: [{
2931
+ foreignKeyName: "delivery_notes_order_id_fkey";
2932
+ columns: ["order_id"];
2933
+ isOneToOne: false;
2934
+ referencedRelation: "orders";
2935
+ referencedColumns: ["id"];
2936
+ }];
2937
+ };
2860
2938
  document_bronregels: {
2861
2939
  Row: {
2862
2940
  bron: string;
@@ -5910,10 +5988,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
5910
5988
  };
5911
5989
  floriday_connections: {
5912
5990
  Row: {
5913
- access_token: string | null;
5914
5991
  api_key: string;
5915
- client_id: string;
5916
- client_secret: string;
5917
5992
  created_at: string;
5918
5993
  customers_endpoint: string | null;
5919
5994
  environment: string;
@@ -5928,10 +6003,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
5928
6003
  updated_at: string;
5929
6004
  };
5930
6005
  Insert: {
5931
- access_token?: string | null;
5932
6006
  api_key: string;
5933
- client_id: string;
5934
- client_secret: string;
5935
6007
  created_at?: string;
5936
6008
  customers_endpoint?: string | null;
5937
6009
  environment: string;
@@ -5946,10 +6018,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
5946
6018
  updated_at?: string;
5947
6019
  };
5948
6020
  Update: {
5949
- access_token?: string | null;
5950
6021
  api_key?: string;
5951
- client_id?: string;
5952
- client_secret?: string;
5953
6022
  created_at?: string;
5954
6023
  customers_endpoint?: string | null;
5955
6024
  environment?: string;
@@ -13582,6 +13651,39 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13582
13651
  };
13583
13652
  Relationships: [];
13584
13653
  };
13654
+ print_dedupe_events: {
13655
+ Row: {
13656
+ bestaande_job_id: string | null;
13657
+ created_at: string;
13658
+ detail: string | null;
13659
+ documentnaam: string | null;
13660
+ documenttype: string | null;
13661
+ id: string;
13662
+ idempotentie_sleutel: string;
13663
+ reden: string;
13664
+ };
13665
+ Insert: {
13666
+ bestaande_job_id?: string | null;
13667
+ created_at?: string;
13668
+ detail?: string | null;
13669
+ documentnaam?: string | null;
13670
+ documenttype?: string | null;
13671
+ id?: string;
13672
+ idempotentie_sleutel: string;
13673
+ reden: string;
13674
+ };
13675
+ Update: {
13676
+ bestaande_job_id?: string | null;
13677
+ created_at?: string;
13678
+ detail?: string | null;
13679
+ documentnaam?: string | null;
13680
+ documenttype?: string | null;
13681
+ id?: string;
13682
+ idempotentie_sleutel?: string;
13683
+ reden?: string;
13684
+ };
13685
+ Relationships: [];
13686
+ };
13585
13687
  print_job_logs: {
13586
13688
  Row: {
13587
13689
  created_at: string;
@@ -13632,6 +13734,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13632
13734
  is_herprint: boolean;
13633
13735
  kopieen: number;
13634
13736
  layout_id: string | null;
13737
+ lokaal_opgeslagen_op: string | null;
13738
+ lokale_pdf_fout: string | null;
13739
+ lokale_pdf_status: string | null;
13635
13740
  opgepakt_op: string | null;
13636
13741
  paginas: number;
13637
13742
  payload: import("../integrations/supabase/types").Json;
@@ -13640,6 +13745,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13640
13745
  pogingen: number;
13641
13746
  printer_id: string | null;
13642
13747
  render_html: string | null;
13748
+ resultaat_pdf_base64: string | null;
13643
13749
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13644
13750
  updated_at: string;
13645
13751
  volgende_poging: string | null;
@@ -13664,6 +13770,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13664
13770
  is_herprint?: boolean;
13665
13771
  kopieen?: number;
13666
13772
  layout_id?: string | null;
13773
+ lokaal_opgeslagen_op?: string | null;
13774
+ lokale_pdf_fout?: string | null;
13775
+ lokale_pdf_status?: string | null;
13667
13776
  opgepakt_op?: string | null;
13668
13777
  paginas?: number;
13669
13778
  payload?: import("../integrations/supabase/types").Json;
@@ -13672,6 +13781,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13672
13781
  pogingen?: number;
13673
13782
  printer_id?: string | null;
13674
13783
  render_html?: string | null;
13784
+ resultaat_pdf_base64?: string | null;
13675
13785
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13676
13786
  updated_at?: string;
13677
13787
  volgende_poging?: string | null;
@@ -13696,6 +13806,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13696
13806
  is_herprint?: boolean;
13697
13807
  kopieen?: number;
13698
13808
  layout_id?: string | null;
13809
+ lokaal_opgeslagen_op?: string | null;
13810
+ lokale_pdf_fout?: string | null;
13811
+ lokale_pdf_status?: string | null;
13699
13812
  opgepakt_op?: string | null;
13700
13813
  paginas?: number;
13701
13814
  payload?: import("../integrations/supabase/types").Json;
@@ -13704,6 +13817,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13704
13817
  pogingen?: number;
13705
13818
  printer_id?: string | null;
13706
13819
  render_html?: string | null;
13820
+ resultaat_pdf_base64?: string | null;
13707
13821
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13708
13822
  updated_at?: string;
13709
13823
  volgende_poging?: string | null;
@@ -13822,6 +13936,39 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13822
13936
  };
13823
13937
  Relationships: [];
13824
13938
  };
13939
+ print_preview_events: {
13940
+ Row: {
13941
+ code: string | null;
13942
+ created_at: string;
13943
+ detail: import("../integrations/supabase/types").Json;
13944
+ id: string;
13945
+ queue_item_id: string | null;
13946
+ reden: string | null;
13947
+ station_slug: string | null;
13948
+ uitkomst: string;
13949
+ };
13950
+ Insert: {
13951
+ code?: string | null;
13952
+ created_at?: string;
13953
+ detail?: import("../integrations/supabase/types").Json;
13954
+ id?: string;
13955
+ queue_item_id?: string | null;
13956
+ reden?: string | null;
13957
+ station_slug?: string | null;
13958
+ uitkomst?: string;
13959
+ };
13960
+ Update: {
13961
+ code?: string | null;
13962
+ created_at?: string;
13963
+ detail?: import("../integrations/supabase/types").Json;
13964
+ id?: string;
13965
+ queue_item_id?: string | null;
13966
+ reden?: string | null;
13967
+ station_slug?: string | null;
13968
+ uitkomst?: string;
13969
+ };
13970
+ Relationships: [];
13971
+ };
13825
13972
  print_queue_runners: {
13826
13973
  Row: {
13827
13974
  actief: boolean;
@@ -14061,6 +14208,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
14061
14208
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14062
14209
  online: boolean;
14063
14210
  papierformaat: string;
14211
+ pdf_map: string | null;
14064
14212
  poort: number | null;
14065
14213
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14066
14214
  systeemnaam: string;
@@ -14086,6 +14234,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
14086
14234
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14087
14235
  online?: boolean;
14088
14236
  papierformaat?: string;
14237
+ pdf_map?: string | null;
14089
14238
  poort?: number | null;
14090
14239
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14091
14240
  systeemnaam?: string;
@@ -14111,6 +14260,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
14111
14260
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14112
14261
  online?: boolean;
14113
14262
  papierformaat?: string;
14263
+ pdf_map?: string | null;
14114
14264
  poort?: number | null;
14115
14265
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14116
14266
  systeemnaam?: string;
@@ -20367,6 +20517,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
20367
20517
  is_herprint: boolean;
20368
20518
  kopieen: number;
20369
20519
  layout_id: string | null;
20520
+ lokaal_opgeslagen_op: string | null;
20521
+ lokale_pdf_fout: string | null;
20522
+ lokale_pdf_status: string | null;
20370
20523
  opgepakt_op: string | null;
20371
20524
  paginas: number;
20372
20525
  payload: import("../integrations/supabase/types").Json;
@@ -20375,6 +20528,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
20375
20528
  pogingen: number;
20376
20529
  printer_id: string | null;
20377
20530
  render_html: string | null;
20531
+ resultaat_pdf_base64: string | null;
20378
20532
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20379
20533
  updated_at: string;
20380
20534
  volgende_poging: string | null;
@@ -20466,6 +20620,53 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
20466
20620
  isSetofReturn: true;
20467
20621
  };
20468
20622
  };
20623
+ claim_pdf_print_jobs: {
20624
+ Args: {
20625
+ _max?: number;
20626
+ };
20627
+ Returns: {
20628
+ agent_id: string | null;
20629
+ bron_job_id: string | null;
20630
+ created_at: string;
20631
+ documentnaam: string;
20632
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20633
+ extern_job_id: string | null;
20634
+ foutmelding: string | null;
20635
+ gebruiker_id: string | null;
20636
+ gebruiker_naam: string;
20637
+ gebruikte_bron: string | null;
20638
+ gebruikte_layout_id: string | null;
20639
+ gestart_op: string | null;
20640
+ herkomst: string | null;
20641
+ id: string;
20642
+ idempotentie_sleutel: string | null;
20643
+ is_herprint: boolean;
20644
+ kopieen: number;
20645
+ layout_id: string | null;
20646
+ lokaal_opgeslagen_op: string | null;
20647
+ lokale_pdf_fout: string | null;
20648
+ lokale_pdf_status: string | null;
20649
+ opgepakt_op: string | null;
20650
+ paginas: number;
20651
+ payload: import("../integrations/supabase/types").Json;
20652
+ pdf_base64: string | null;
20653
+ pdf_url: string | null;
20654
+ pogingen: number;
20655
+ printer_id: string | null;
20656
+ render_html: string | null;
20657
+ resultaat_pdf_base64: string | null;
20658
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20659
+ updated_at: string;
20660
+ volgende_poging: string | null;
20661
+ voltooid_op: string | null;
20662
+ }[];
20663
+ SetofOptions: {
20664
+ from: "*";
20665
+ to: "print_jobs";
20666
+ isOneToOne: false;
20667
+ isSetofReturn: true;
20668
+ };
20669
+ };
20469
20670
  claim_print_jobs: {
20470
20671
  Args: {
20471
20672
  _agent_id: string;
@@ -20490,6 +20691,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
20490
20691
  is_herprint: boolean;
20491
20692
  kopieen: number;
20492
20693
  layout_id: string | null;
20694
+ lokaal_opgeslagen_op: string | null;
20695
+ lokale_pdf_fout: string | null;
20696
+ lokale_pdf_status: string | null;
20493
20697
  opgepakt_op: string | null;
20494
20698
  paginas: number;
20495
20699
  payload: import("../integrations/supabase/types").Json;
@@ -20498,6 +20702,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
20498
20702
  pogingen: number;
20499
20703
  printer_id: string | null;
20500
20704
  render_html: string | null;
20705
+ resultaat_pdf_base64: string | null;
20501
20706
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20502
20707
  updated_at: string;
20503
20708
  volgende_poging: string | null;
@@ -20638,6 +20843,8 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
20638
20843
  order_id: string;
20639
20844
  order_source: string;
20640
20845
  pick_date: string;
20846
+ printed_at: string;
20847
+ printed_today: boolean;
20641
20848
  status: string;
20642
20849
  }[];
20643
20850
  };
@@ -21346,6 +21553,10 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
21346
21553
  };
21347
21554
  Returns: number;
21348
21555
  };
21556
+ logistics_cancel_orphan_tasks: {
21557
+ Args: never;
21558
+ Returns: number;
21559
+ };
21349
21560
  logistics_capacity_day_check: {
21350
21561
  Args: {
21351
21562
  p_from?: string;
@@ -21366,6 +21577,25 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
21366
21577
  };
21367
21578
  Returns: number;
21368
21579
  };
21580
+ logistics_cart_index: {
21581
+ Args: {
21582
+ p_from?: string;
21583
+ p_to?: string;
21584
+ };
21585
+ Returns: {
21586
+ cart_id: string;
21587
+ cart_index: number;
21588
+ cart_label: string;
21589
+ is_shared: boolean;
21590
+ order_number: string;
21591
+ order_source: string;
21592
+ order_uuid: string;
21593
+ pick_date: string;
21594
+ printed_at: string;
21595
+ shifted: boolean;
21596
+ task_status: string;
21597
+ }[];
21598
+ };
21369
21599
  logistics_check_order_allowed: {
21370
21600
  Args: {
21371
21601
  p_lines: import("../integrations/supabase/types").Json;
@@ -21514,6 +21744,17 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
21514
21744
  isSetofReturn: false;
21515
21745
  };
21516
21746
  };
21747
+ logistics_consistency_check: {
21748
+ Args: never;
21749
+ Returns: {
21750
+ agenda_carts: number;
21751
+ control_carts: number;
21752
+ ok: boolean;
21753
+ orphan_tasks: number;
21754
+ pick_date: string;
21755
+ raw_carts: number;
21756
+ }[];
21757
+ };
21517
21758
  logistics_delay_customer_email: {
21518
21759
  Args: {
21519
21760
  p_customer: string;
@@ -21603,6 +21844,16 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
21603
21844
  isSetofReturn: false;
21604
21845
  };
21605
21846
  };
21847
+ logistics_floriday_cart_plan: {
21848
+ Args: {
21849
+ p_order_id: string;
21850
+ };
21851
+ Returns: {
21852
+ carrier_type: string;
21853
+ idx: number;
21854
+ packages: number;
21855
+ }[];
21856
+ };
21606
21857
  logistics_floriday_claim_pushes: {
21607
21858
  Args: {
21608
21859
  _lease_seconds?: number;
@@ -21707,6 +21958,25 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
21707
21958
  };
21708
21959
  Returns: number;
21709
21960
  };
21961
+ logistics_order_overview: {
21962
+ Args: {
21963
+ p_from?: string;
21964
+ p_to?: string;
21965
+ };
21966
+ Returns: {
21967
+ cart_count: number;
21968
+ customer_name: string;
21969
+ delivery_date: string;
21970
+ order_number: string;
21971
+ order_source: string;
21972
+ order_uuid: string;
21973
+ pick_date: string;
21974
+ plant_count: number;
21975
+ printed_at: string;
21976
+ shifted: boolean;
21977
+ status: string;
21978
+ }[];
21979
+ };
21710
21980
  logistics_order_pick_day: {
21711
21981
  Args: {
21712
21982
  p_order_ref: string;
@@ -21719,6 +21989,22 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
21719
21989
  };
21720
21990
  Returns: string;
21721
21991
  };
21992
+ logistics_pick_agenda: {
21993
+ Args: {
21994
+ p_from?: string;
21995
+ p_to?: string;
21996
+ };
21997
+ Returns: {
21998
+ cart_count: number;
21999
+ in_preparation: number;
22000
+ order_count: number;
22001
+ orders: import("../integrations/supabase/types").Json;
22002
+ pick_date: string;
22003
+ plant_count: number;
22004
+ ready: number;
22005
+ shifted_count: number;
22006
+ }[];
22007
+ };
21722
22008
  logistics_pick_email_purpose: {
21723
22009
  Args: never;
21724
22010
  Returns: string;
@@ -21773,6 +22059,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
21773
22059
  };
21774
22060
  Returns: undefined;
21775
22061
  };
22062
+ logistics_plan_floriday_order: {
22063
+ Args: {
22064
+ p_buffer_id?: string;
22065
+ p_order_id: string;
22066
+ };
22067
+ Returns: number;
22068
+ };
21776
22069
  logistics_plan_impact_orders: {
21777
22070
  Args: {
21778
22071
  p_order_id: string;
@@ -21878,6 +22171,15 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
21878
22171
  };
21879
22172
  Returns: import("../integrations/supabase/types").Json;
21880
22173
  };
22174
+ logistics_resolve_pick_document: {
22175
+ Args: {
22176
+ _is_herprint: boolean;
22177
+ _queue_item_id: string;
22178
+ _session_id: string;
22179
+ _voorbeeld: boolean;
22180
+ };
22181
+ Returns: import("../integrations/supabase/types").Json;
22182
+ };
21881
22183
  logistics_resolve_settings: {
21882
22184
  Args: {
21883
22185
  p_config_id: string;
@@ -22318,6 +22620,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
22318
22620
  };
22319
22621
  pick_enqueue_print_job: {
22320
22622
  Args: {
22623
+ _is_herprint?: boolean;
22321
22624
  _printer_id?: string;
22322
22625
  _queue_item_id: string;
22323
22626
  _session_id?: string;
@@ -22331,6 +22634,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
22331
22634
  };
22332
22635
  Returns: import("../integrations/supabase/types").Json;
22333
22636
  };
22637
+ pick_preview_job: {
22638
+ Args: {
22639
+ _queue_item_id: string;
22640
+ _station_slug: string;
22641
+ };
22642
+ Returns: import("../integrations/supabase/types").Json;
22643
+ };
22334
22644
  pick_print_job_status: {
22335
22645
  Args: {
22336
22646
  _job_id: string;
@@ -22508,6 +22818,24 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
22508
22818
  };
22509
22819
  Returns: undefined;
22510
22820
  };
22821
+ print_preview_toestaan: {
22822
+ Args: {
22823
+ _max?: number;
22824
+ _queue_item_id: string;
22825
+ _station_slug: string;
22826
+ _venster_sec?: number;
22827
+ };
22828
+ Returns: import("../integrations/supabase/types").Json;
22829
+ };
22830
+ print_preview_weiger: {
22831
+ Args: {
22832
+ _code: string;
22833
+ _queue_item_id: string;
22834
+ _reden: string;
22835
+ _station_slug: string;
22836
+ };
22837
+ Returns: undefined;
22838
+ };
22511
22839
  process_logistics_event: {
22512
22840
  Args: {
22513
22841
  p_event_id: string;
@@ -22662,6 +22990,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
22662
22990
  };
22663
22991
  Returns: string;
22664
22992
  };
22993
+ resolve_print_job_printer_id: {
22994
+ Args: {
22995
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
22996
+ };
22997
+ Returns: string;
22998
+ };
22665
22999
  resolve_product_id_for_item: {
22666
23000
  Args: {
22667
23001
  p_product_name: string;
@@ -23253,7 +23587,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
23253
23587
  };
23254
23588
  CompositeTypes: { [_ in never]: never; };
23255
23589
  }, {
23256
- PostgrestVersion: "14.17";
23590
+ PostgrestVersion: "14.5";
23257
23591
  }>;
23258
23592
  userId: string;
23259
23593
  claims: import("@supabase/auth-js").User;
@@ -26114,6 +26448,84 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
26114
26448
  };
26115
26449
  Relationships: [];
26116
26450
  };
26451
+ delivery_notes: {
26452
+ Row: {
26453
+ byte_size: number | null;
26454
+ connection_id: string | null;
26455
+ content_type: string;
26456
+ created_at: string;
26457
+ error_message: string | null;
26458
+ fetched_at: string | null;
26459
+ fulfillment_order_id: string | null;
26460
+ http_status: number | null;
26461
+ id: string;
26462
+ label_code: string | null;
26463
+ letter: string | null;
26464
+ load_carrier_index: number | null;
26465
+ load_carrier_type: string | null;
26466
+ order_id: string | null;
26467
+ order_number: string | null;
26468
+ packages: number | null;
26469
+ source: string;
26470
+ status: string;
26471
+ storage_bucket: string;
26472
+ storage_path: string | null;
26473
+ updated_at: string;
26474
+ };
26475
+ Insert: {
26476
+ byte_size?: number | null;
26477
+ connection_id?: string | null;
26478
+ content_type?: string;
26479
+ created_at?: string;
26480
+ error_message?: string | null;
26481
+ fetched_at?: string | null;
26482
+ fulfillment_order_id?: string | null;
26483
+ http_status?: number | null;
26484
+ id?: string;
26485
+ label_code?: string | null;
26486
+ letter?: string | null;
26487
+ load_carrier_index?: number | null;
26488
+ load_carrier_type?: string | null;
26489
+ order_id?: string | null;
26490
+ order_number?: string | null;
26491
+ packages?: number | null;
26492
+ source?: string;
26493
+ status?: string;
26494
+ storage_bucket?: string;
26495
+ storage_path?: string | null;
26496
+ updated_at?: string;
26497
+ };
26498
+ Update: {
26499
+ byte_size?: number | null;
26500
+ connection_id?: string | null;
26501
+ content_type?: string;
26502
+ created_at?: string;
26503
+ error_message?: string | null;
26504
+ fetched_at?: string | null;
26505
+ fulfillment_order_id?: string | null;
26506
+ http_status?: number | null;
26507
+ id?: string;
26508
+ label_code?: string | null;
26509
+ letter?: string | null;
26510
+ load_carrier_index?: number | null;
26511
+ load_carrier_type?: string | null;
26512
+ order_id?: string | null;
26513
+ order_number?: string | null;
26514
+ packages?: number | null;
26515
+ source?: string;
26516
+ status?: string;
26517
+ storage_bucket?: string;
26518
+ storage_path?: string | null;
26519
+ updated_at?: string;
26520
+ };
26521
+ Relationships: [{
26522
+ foreignKeyName: "delivery_notes_order_id_fkey";
26523
+ columns: ["order_id"];
26524
+ isOneToOne: false;
26525
+ referencedRelation: "orders";
26526
+ referencedColumns: ["id"];
26527
+ }];
26528
+ };
26117
26529
  document_bronregels: {
26118
26530
  Row: {
26119
26531
  bron: string;
@@ -29167,10 +29579,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
29167
29579
  };
29168
29580
  floriday_connections: {
29169
29581
  Row: {
29170
- access_token: string | null;
29171
29582
  api_key: string;
29172
- client_id: string;
29173
- client_secret: string;
29174
29583
  created_at: string;
29175
29584
  customers_endpoint: string | null;
29176
29585
  environment: string;
@@ -29185,10 +29594,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
29185
29594
  updated_at: string;
29186
29595
  };
29187
29596
  Insert: {
29188
- access_token?: string | null;
29189
29597
  api_key: string;
29190
- client_id: string;
29191
- client_secret: string;
29192
29598
  created_at?: string;
29193
29599
  customers_endpoint?: string | null;
29194
29600
  environment: string;
@@ -29203,10 +29609,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
29203
29609
  updated_at?: string;
29204
29610
  };
29205
29611
  Update: {
29206
- access_token?: string | null;
29207
29612
  api_key?: string;
29208
- client_id?: string;
29209
- client_secret?: string;
29210
29613
  created_at?: string;
29211
29614
  customers_endpoint?: string | null;
29212
29615
  environment?: string;
@@ -36839,6 +37242,39 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36839
37242
  };
36840
37243
  Relationships: [];
36841
37244
  };
37245
+ print_dedupe_events: {
37246
+ Row: {
37247
+ bestaande_job_id: string | null;
37248
+ created_at: string;
37249
+ detail: string | null;
37250
+ documentnaam: string | null;
37251
+ documenttype: string | null;
37252
+ id: string;
37253
+ idempotentie_sleutel: string;
37254
+ reden: string;
37255
+ };
37256
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
37277
+ };
36842
37278
  print_job_logs: {
36843
37279
  Row: {
36844
37280
  created_at: string;
@@ -36889,6 +37325,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36889
37325
  is_herprint: boolean;
36890
37326
  kopieen: number;
36891
37327
  layout_id: string | null;
37328
+ lokaal_opgeslagen_op: string | null;
37329
+ lokale_pdf_fout: string | null;
37330
+ lokale_pdf_status: string | null;
36892
37331
  opgepakt_op: string | null;
36893
37332
  paginas: number;
36894
37333
  payload: import("../integrations/supabase/types").Json;
@@ -36897,6 +37336,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36897
37336
  pogingen: number;
36898
37337
  printer_id: string | null;
36899
37338
  render_html: string | null;
37339
+ resultaat_pdf_base64: string | null;
36900
37340
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36901
37341
  updated_at: string;
36902
37342
  volgende_poging: string | null;
@@ -36921,6 +37361,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36921
37361
  is_herprint?: boolean;
36922
37362
  kopieen?: number;
36923
37363
  layout_id?: string | null;
37364
+ lokaal_opgeslagen_op?: string | null;
37365
+ lokale_pdf_fout?: string | null;
37366
+ lokale_pdf_status?: string | null;
36924
37367
  opgepakt_op?: string | null;
36925
37368
  paginas?: number;
36926
37369
  payload?: import("../integrations/supabase/types").Json;
@@ -36929,6 +37372,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36929
37372
  pogingen?: number;
36930
37373
  printer_id?: string | null;
36931
37374
  render_html?: string | null;
37375
+ resultaat_pdf_base64?: string | null;
36932
37376
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36933
37377
  updated_at?: string;
36934
37378
  volgende_poging?: string | null;
@@ -36953,6 +37397,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36953
37397
  is_herprint?: boolean;
36954
37398
  kopieen?: number;
36955
37399
  layout_id?: string | null;
37400
+ lokaal_opgeslagen_op?: string | null;
37401
+ lokale_pdf_fout?: string | null;
37402
+ lokale_pdf_status?: string | null;
36956
37403
  opgepakt_op?: string | null;
36957
37404
  paginas?: number;
36958
37405
  payload?: import("../integrations/supabase/types").Json;
@@ -36961,6 +37408,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36961
37408
  pogingen?: number;
36962
37409
  printer_id?: string | null;
36963
37410
  render_html?: string | null;
37411
+ resultaat_pdf_base64?: string | null;
36964
37412
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36965
37413
  updated_at?: string;
36966
37414
  volgende_poging?: string | null;
@@ -37079,6 +37527,39 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
37079
37527
  };
37080
37528
  Relationships: [];
37081
37529
  };
37530
+ print_preview_events: {
37531
+ Row: {
37532
+ code: string | null;
37533
+ created_at: string;
37534
+ detail: import("../integrations/supabase/types").Json;
37535
+ id: string;
37536
+ queue_item_id: string | null;
37537
+ reden: string | null;
37538
+ station_slug: string | null;
37539
+ uitkomst: string;
37540
+ };
37541
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
37562
+ };
37082
37563
  print_queue_runners: {
37083
37564
  Row: {
37084
37565
  actief: boolean;
@@ -37318,6 +37799,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
37318
37799
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37319
37800
  online: boolean;
37320
37801
  papierformaat: string;
37802
+ pdf_map: string | null;
37321
37803
  poort: number | null;
37322
37804
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37323
37805
  systeemnaam: string;
@@ -37343,6 +37825,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
37343
37825
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37344
37826
  online?: boolean;
37345
37827
  papierformaat?: string;
37828
+ pdf_map?: string | null;
37346
37829
  poort?: number | null;
37347
37830
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37348
37831
  systeemnaam?: string;
@@ -37368,6 +37851,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
37368
37851
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37369
37852
  online?: boolean;
37370
37853
  papierformaat?: string;
37854
+ pdf_map?: string | null;
37371
37855
  poort?: number | null;
37372
37856
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37373
37857
  systeemnaam?: string;
@@ -43624,6 +44108,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
43624
44108
  is_herprint: boolean;
43625
44109
  kopieen: number;
43626
44110
  layout_id: string | null;
44111
+ lokaal_opgeslagen_op: string | null;
44112
+ lokale_pdf_fout: string | null;
44113
+ lokale_pdf_status: string | null;
43627
44114
  opgepakt_op: string | null;
43628
44115
  paginas: number;
43629
44116
  payload: import("../integrations/supabase/types").Json;
@@ -43632,6 +44119,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
43632
44119
  pogingen: number;
43633
44120
  printer_id: string | null;
43634
44121
  render_html: string | null;
44122
+ resultaat_pdf_base64: string | null;
43635
44123
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43636
44124
  updated_at: string;
43637
44125
  volgende_poging: string | null;
@@ -43723,6 +44211,53 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
43723
44211
  isSetofReturn: true;
43724
44212
  };
43725
44213
  };
44214
+ claim_pdf_print_jobs: {
44215
+ Args: {
44216
+ _max?: number;
44217
+ };
44218
+ Returns: {
44219
+ agent_id: string | null;
44220
+ bron_job_id: string | null;
44221
+ created_at: string;
44222
+ documentnaam: string;
44223
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44224
+ extern_job_id: string | null;
44225
+ foutmelding: string | null;
44226
+ gebruiker_id: string | null;
44227
+ gebruiker_naam: string;
44228
+ gebruikte_bron: string | null;
44229
+ gebruikte_layout_id: string | null;
44230
+ gestart_op: string | null;
44231
+ herkomst: string | null;
44232
+ id: string;
44233
+ idempotentie_sleutel: string | null;
44234
+ is_herprint: boolean;
44235
+ kopieen: number;
44236
+ layout_id: string | null;
44237
+ lokaal_opgeslagen_op: string | null;
44238
+ lokale_pdf_fout: string | null;
44239
+ lokale_pdf_status: string | null;
44240
+ opgepakt_op: string | null;
44241
+ paginas: number;
44242
+ payload: import("../integrations/supabase/types").Json;
44243
+ pdf_base64: string | null;
44244
+ pdf_url: string | null;
44245
+ pogingen: number;
44246
+ printer_id: string | null;
44247
+ render_html: string | null;
44248
+ resultaat_pdf_base64: string | null;
44249
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44250
+ updated_at: string;
44251
+ volgende_poging: string | null;
44252
+ voltooid_op: string | null;
44253
+ }[];
44254
+ SetofOptions: {
44255
+ from: "*";
44256
+ to: "print_jobs";
44257
+ isOneToOne: false;
44258
+ isSetofReturn: true;
44259
+ };
44260
+ };
43726
44261
  claim_print_jobs: {
43727
44262
  Args: {
43728
44263
  _agent_id: string;
@@ -43747,6 +44282,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
43747
44282
  is_herprint: boolean;
43748
44283
  kopieen: number;
43749
44284
  layout_id: string | null;
44285
+ lokaal_opgeslagen_op: string | null;
44286
+ lokale_pdf_fout: string | null;
44287
+ lokale_pdf_status: string | null;
43750
44288
  opgepakt_op: string | null;
43751
44289
  paginas: number;
43752
44290
  payload: import("../integrations/supabase/types").Json;
@@ -43755,6 +44293,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
43755
44293
  pogingen: number;
43756
44294
  printer_id: string | null;
43757
44295
  render_html: string | null;
44296
+ resultaat_pdf_base64: string | null;
43758
44297
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43759
44298
  updated_at: string;
43760
44299
  volgende_poging: string | null;
@@ -43895,6 +44434,8 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
43895
44434
  order_id: string;
43896
44435
  order_source: string;
43897
44436
  pick_date: string;
44437
+ printed_at: string;
44438
+ printed_today: boolean;
43898
44439
  status: string;
43899
44440
  }[];
43900
44441
  };
@@ -44603,6 +45144,10 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
44603
45144
  };
44604
45145
  Returns: number;
44605
45146
  };
45147
+ logistics_cancel_orphan_tasks: {
45148
+ Args: never;
45149
+ Returns: number;
45150
+ };
44606
45151
  logistics_capacity_day_check: {
44607
45152
  Args: {
44608
45153
  p_from?: string;
@@ -44623,6 +45168,25 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
44623
45168
  };
44624
45169
  Returns: number;
44625
45170
  };
45171
+ logistics_cart_index: {
45172
+ Args: {
45173
+ p_from?: string;
45174
+ p_to?: string;
45175
+ };
45176
+ Returns: {
45177
+ cart_id: string;
45178
+ cart_index: number;
45179
+ cart_label: string;
45180
+ is_shared: boolean;
45181
+ order_number: string;
45182
+ order_source: string;
45183
+ order_uuid: string;
45184
+ pick_date: string;
45185
+ printed_at: string;
45186
+ shifted: boolean;
45187
+ task_status: string;
45188
+ }[];
45189
+ };
44626
45190
  logistics_check_order_allowed: {
44627
45191
  Args: {
44628
45192
  p_lines: import("../integrations/supabase/types").Json;
@@ -44726,50 +45290,61 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
44726
45290
  isSetofReturn: false;
44727
45291
  };
44728
45292
  };
44729
- logistics_complete_task: {
44730
- Args: {
44731
- p_result?: import("../integrations/supabase/types").Json;
44732
- p_task_id: string;
44733
- };
45293
+ logistics_complete_task: {
45294
+ Args: {
45295
+ p_result?: import("../integrations/supabase/types").Json;
45296
+ p_task_id: string;
45297
+ };
45298
+ Returns: {
45299
+ attempt_log: import("../integrations/supabase/types").Json;
45300
+ attempts: number;
45301
+ buffer_ref: string | null;
45302
+ claimed_at: string | null;
45303
+ claimed_by: string | null;
45304
+ completed_at: string | null;
45305
+ created_at: string;
45306
+ depends_on: string[];
45307
+ due_at: string | null;
45308
+ error: string | null;
45309
+ id: string;
45310
+ last_error: string | null;
45311
+ next_attempt_at: string | null;
45312
+ order_ref: string;
45313
+ owner_module: string;
45314
+ payload: import("../integrations/supabase/types").Json;
45315
+ plan_run_id: string | null;
45316
+ planned_end: string | null;
45317
+ planned_start: string | null;
45318
+ priority: number;
45319
+ result: import("../integrations/supabase/types").Json | null;
45320
+ rule_config_id: string | null;
45321
+ rule_version: number | null;
45322
+ sequence: number;
45323
+ shadow: boolean;
45324
+ started_at: string | null;
45325
+ status: string;
45326
+ strategy_id: string | null;
45327
+ task_type: string;
45328
+ updated_at: string;
45329
+ user_id: string;
45330
+ };
45331
+ SetofOptions: {
45332
+ from: "*";
45333
+ to: "logistics_tasks";
45334
+ isOneToOne: true;
45335
+ isSetofReturn: false;
45336
+ };
45337
+ };
45338
+ logistics_consistency_check: {
45339
+ Args: never;
44734
45340
  Returns: {
44735
- attempt_log: import("../integrations/supabase/types").Json;
44736
- attempts: number;
44737
- buffer_ref: string | null;
44738
- claimed_at: string | null;
44739
- claimed_by: string | null;
44740
- completed_at: string | null;
44741
- created_at: string;
44742
- depends_on: string[];
44743
- due_at: string | null;
44744
- error: string | null;
44745
- id: string;
44746
- last_error: string | null;
44747
- next_attempt_at: string | null;
44748
- order_ref: string;
44749
- owner_module: string;
44750
- payload: import("../integrations/supabase/types").Json;
44751
- plan_run_id: string | null;
44752
- planned_end: string | null;
44753
- planned_start: string | null;
44754
- priority: number;
44755
- result: import("../integrations/supabase/types").Json | null;
44756
- rule_config_id: string | null;
44757
- rule_version: number | null;
44758
- sequence: number;
44759
- shadow: boolean;
44760
- started_at: string | null;
44761
- status: string;
44762
- strategy_id: string | null;
44763
- task_type: string;
44764
- updated_at: string;
44765
- user_id: string;
44766
- };
44767
- SetofOptions: {
44768
- from: "*";
44769
- to: "logistics_tasks";
44770
- isOneToOne: true;
44771
- isSetofReturn: false;
44772
- };
45341
+ agenda_carts: number;
45342
+ control_carts: number;
45343
+ ok: boolean;
45344
+ orphan_tasks: number;
45345
+ pick_date: string;
45346
+ raw_carts: number;
45347
+ }[];
44773
45348
  };
44774
45349
  logistics_delay_customer_email: {
44775
45350
  Args: {
@@ -44860,6 +45435,16 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
44860
45435
  isSetofReturn: false;
44861
45436
  };
44862
45437
  };
45438
+ logistics_floriday_cart_plan: {
45439
+ Args: {
45440
+ p_order_id: string;
45441
+ };
45442
+ Returns: {
45443
+ carrier_type: string;
45444
+ idx: number;
45445
+ packages: number;
45446
+ }[];
45447
+ };
44863
45448
  logistics_floriday_claim_pushes: {
44864
45449
  Args: {
44865
45450
  _lease_seconds?: number;
@@ -44964,6 +45549,25 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
44964
45549
  };
44965
45550
  Returns: number;
44966
45551
  };
45552
+ logistics_order_overview: {
45553
+ Args: {
45554
+ p_from?: string;
45555
+ p_to?: string;
45556
+ };
45557
+ Returns: {
45558
+ cart_count: number;
45559
+ customer_name: string;
45560
+ delivery_date: string;
45561
+ order_number: string;
45562
+ order_source: string;
45563
+ order_uuid: string;
45564
+ pick_date: string;
45565
+ plant_count: number;
45566
+ printed_at: string;
45567
+ shifted: boolean;
45568
+ status: string;
45569
+ }[];
45570
+ };
44967
45571
  logistics_order_pick_day: {
44968
45572
  Args: {
44969
45573
  p_order_ref: string;
@@ -44976,6 +45580,22 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
44976
45580
  };
44977
45581
  Returns: string;
44978
45582
  };
45583
+ logistics_pick_agenda: {
45584
+ Args: {
45585
+ p_from?: string;
45586
+ p_to?: string;
45587
+ };
45588
+ Returns: {
45589
+ cart_count: number;
45590
+ in_preparation: number;
45591
+ order_count: number;
45592
+ orders: import("../integrations/supabase/types").Json;
45593
+ pick_date: string;
45594
+ plant_count: number;
45595
+ ready: number;
45596
+ shifted_count: number;
45597
+ }[];
45598
+ };
44979
45599
  logistics_pick_email_purpose: {
44980
45600
  Args: never;
44981
45601
  Returns: string;
@@ -45030,6 +45650,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
45030
45650
  };
45031
45651
  Returns: undefined;
45032
45652
  };
45653
+ logistics_plan_floriday_order: {
45654
+ Args: {
45655
+ p_buffer_id?: string;
45656
+ p_order_id: string;
45657
+ };
45658
+ Returns: number;
45659
+ };
45033
45660
  logistics_plan_impact_orders: {
45034
45661
  Args: {
45035
45662
  p_order_id: string;
@@ -45135,6 +45762,15 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
45135
45762
  };
45136
45763
  Returns: import("../integrations/supabase/types").Json;
45137
45764
  };
45765
+ logistics_resolve_pick_document: {
45766
+ Args: {
45767
+ _is_herprint: boolean;
45768
+ _queue_item_id: string;
45769
+ _session_id: string;
45770
+ _voorbeeld: boolean;
45771
+ };
45772
+ Returns: import("../integrations/supabase/types").Json;
45773
+ };
45138
45774
  logistics_resolve_settings: {
45139
45775
  Args: {
45140
45776
  p_config_id: string;
@@ -45575,6 +46211,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
45575
46211
  };
45576
46212
  pick_enqueue_print_job: {
45577
46213
  Args: {
46214
+ _is_herprint?: boolean;
45578
46215
  _printer_id?: string;
45579
46216
  _queue_item_id: string;
45580
46217
  _session_id?: string;
@@ -45588,6 +46225,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
45588
46225
  };
45589
46226
  Returns: import("../integrations/supabase/types").Json;
45590
46227
  };
46228
+ pick_preview_job: {
46229
+ Args: {
46230
+ _queue_item_id: string;
46231
+ _station_slug: string;
46232
+ };
46233
+ Returns: import("../integrations/supabase/types").Json;
46234
+ };
45591
46235
  pick_print_job_status: {
45592
46236
  Args: {
45593
46237
  _job_id: string;
@@ -45765,6 +46409,24 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
45765
46409
  };
45766
46410
  Returns: undefined;
45767
46411
  };
46412
+ print_preview_toestaan: {
46413
+ Args: {
46414
+ _max?: number;
46415
+ _queue_item_id: string;
46416
+ _station_slug: string;
46417
+ _venster_sec?: number;
46418
+ };
46419
+ Returns: import("../integrations/supabase/types").Json;
46420
+ };
46421
+ print_preview_weiger: {
46422
+ Args: {
46423
+ _code: string;
46424
+ _queue_item_id: string;
46425
+ _reden: string;
46426
+ _station_slug: string;
46427
+ };
46428
+ Returns: undefined;
46429
+ };
45768
46430
  process_logistics_event: {
45769
46431
  Args: {
45770
46432
  p_event_id: string;
@@ -45919,6 +46581,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
45919
46581
  };
45920
46582
  Returns: string;
45921
46583
  };
46584
+ resolve_print_job_printer_id: {
46585
+ Args: {
46586
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
46587
+ };
46588
+ Returns: string;
46589
+ };
45922
46590
  resolve_product_id_for_item: {
45923
46591
  Args: {
45924
46592
  p_product_name: string;
@@ -46510,7 +47178,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
46510
47178
  };
46511
47179
  CompositeTypes: { [_ in never]: never; };
46512
47180
  }, {
46513
- PostgrestVersion: "14.17";
47181
+ PostgrestVersion: "14.5";
46514
47182
  }>;
46515
47183
  userId: string;
46516
47184
  claims: import("@supabase/auth-js").User;
@@ -49381,6 +50049,84 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
49381
50049
  };
49382
50050
  Relationships: [];
49383
50051
  };
50052
+ delivery_notes: {
50053
+ Row: {
50054
+ byte_size: number | null;
50055
+ connection_id: string | null;
50056
+ content_type: string;
50057
+ created_at: string;
50058
+ error_message: string | null;
50059
+ fetched_at: string | null;
50060
+ fulfillment_order_id: string | null;
50061
+ http_status: number | null;
50062
+ id: string;
50063
+ label_code: string | null;
50064
+ letter: string | null;
50065
+ load_carrier_index: number | null;
50066
+ load_carrier_type: string | null;
50067
+ order_id: string | null;
50068
+ order_number: string | null;
50069
+ packages: number | null;
50070
+ source: string;
50071
+ status: string;
50072
+ storage_bucket: string;
50073
+ storage_path: string | null;
50074
+ updated_at: string;
50075
+ };
50076
+ Insert: {
50077
+ byte_size?: number | null;
50078
+ connection_id?: string | null;
50079
+ content_type?: string;
50080
+ created_at?: string;
50081
+ error_message?: string | null;
50082
+ fetched_at?: string | null;
50083
+ fulfillment_order_id?: string | null;
50084
+ http_status?: number | null;
50085
+ id?: string;
50086
+ label_code?: string | null;
50087
+ letter?: string | null;
50088
+ load_carrier_index?: number | null;
50089
+ load_carrier_type?: string | null;
50090
+ order_id?: string | null;
50091
+ order_number?: string | null;
50092
+ packages?: number | null;
50093
+ source?: string;
50094
+ status?: string;
50095
+ storage_bucket?: string;
50096
+ storage_path?: string | null;
50097
+ updated_at?: string;
50098
+ };
50099
+ Update: {
50100
+ byte_size?: number | null;
50101
+ connection_id?: string | null;
50102
+ content_type?: string;
50103
+ created_at?: string;
50104
+ error_message?: string | null;
50105
+ fetched_at?: string | null;
50106
+ fulfillment_order_id?: string | null;
50107
+ http_status?: number | null;
50108
+ id?: string;
50109
+ label_code?: string | null;
50110
+ letter?: string | null;
50111
+ load_carrier_index?: number | null;
50112
+ load_carrier_type?: string | null;
50113
+ order_id?: string | null;
50114
+ order_number?: string | null;
50115
+ packages?: number | null;
50116
+ source?: string;
50117
+ status?: string;
50118
+ storage_bucket?: string;
50119
+ storage_path?: string | null;
50120
+ updated_at?: string;
50121
+ };
50122
+ Relationships: [{
50123
+ foreignKeyName: "delivery_notes_order_id_fkey";
50124
+ columns: ["order_id"];
50125
+ isOneToOne: false;
50126
+ referencedRelation: "orders";
50127
+ referencedColumns: ["id"];
50128
+ }];
50129
+ };
49384
50130
  document_bronregels: {
49385
50131
  Row: {
49386
50132
  bron: string;
@@ -52434,10 +53180,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
52434
53180
  };
52435
53181
  floriday_connections: {
52436
53182
  Row: {
52437
- access_token: string | null;
52438
53183
  api_key: string;
52439
- client_id: string;
52440
- client_secret: string;
52441
53184
  created_at: string;
52442
53185
  customers_endpoint: string | null;
52443
53186
  environment: string;
@@ -52452,10 +53195,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
52452
53195
  updated_at: string;
52453
53196
  };
52454
53197
  Insert: {
52455
- access_token?: string | null;
52456
53198
  api_key: string;
52457
- client_id: string;
52458
- client_secret: string;
52459
53199
  created_at?: string;
52460
53200
  customers_endpoint?: string | null;
52461
53201
  environment: string;
@@ -52470,10 +53210,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
52470
53210
  updated_at?: string;
52471
53211
  };
52472
53212
  Update: {
52473
- access_token?: string | null;
52474
53213
  api_key?: string;
52475
- client_id?: string;
52476
- client_secret?: string;
52477
53214
  created_at?: string;
52478
53215
  customers_endpoint?: string | null;
52479
53216
  environment?: string;
@@ -60106,6 +60843,39 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60106
60843
  };
60107
60844
  Relationships: [];
60108
60845
  };
60846
+ print_dedupe_events: {
60847
+ Row: {
60848
+ bestaande_job_id: string | null;
60849
+ created_at: string;
60850
+ detail: string | null;
60851
+ documentnaam: string | null;
60852
+ documenttype: string | null;
60853
+ id: string;
60854
+ idempotentie_sleutel: string;
60855
+ reden: string;
60856
+ };
60857
+ Insert: {
60858
+ bestaande_job_id?: string | null;
60859
+ created_at?: string;
60860
+ detail?: string | null;
60861
+ documentnaam?: string | null;
60862
+ documenttype?: string | null;
60863
+ id?: string;
60864
+ idempotentie_sleutel: string;
60865
+ reden: string;
60866
+ };
60867
+ Update: {
60868
+ bestaande_job_id?: string | null;
60869
+ created_at?: string;
60870
+ detail?: string | null;
60871
+ documentnaam?: string | null;
60872
+ documenttype?: string | null;
60873
+ id?: string;
60874
+ idempotentie_sleutel?: string;
60875
+ reden?: string;
60876
+ };
60877
+ Relationships: [];
60878
+ };
60109
60879
  print_job_logs: {
60110
60880
  Row: {
60111
60881
  created_at: string;
@@ -60156,6 +60926,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60156
60926
  is_herprint: boolean;
60157
60927
  kopieen: number;
60158
60928
  layout_id: string | null;
60929
+ lokaal_opgeslagen_op: string | null;
60930
+ lokale_pdf_fout: string | null;
60931
+ lokale_pdf_status: string | null;
60159
60932
  opgepakt_op: string | null;
60160
60933
  paginas: number;
60161
60934
  payload: import("../integrations/supabase/types").Json;
@@ -60164,6 +60937,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60164
60937
  pogingen: number;
60165
60938
  printer_id: string | null;
60166
60939
  render_html: string | null;
60940
+ resultaat_pdf_base64: string | null;
60167
60941
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60168
60942
  updated_at: string;
60169
60943
  volgende_poging: string | null;
@@ -60188,6 +60962,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60188
60962
  is_herprint?: boolean;
60189
60963
  kopieen?: number;
60190
60964
  layout_id?: string | null;
60965
+ lokaal_opgeslagen_op?: string | null;
60966
+ lokale_pdf_fout?: string | null;
60967
+ lokale_pdf_status?: string | null;
60191
60968
  opgepakt_op?: string | null;
60192
60969
  paginas?: number;
60193
60970
  payload?: import("../integrations/supabase/types").Json;
@@ -60196,6 +60973,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60196
60973
  pogingen?: number;
60197
60974
  printer_id?: string | null;
60198
60975
  render_html?: string | null;
60976
+ resultaat_pdf_base64?: string | null;
60199
60977
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60200
60978
  updated_at?: string;
60201
60979
  volgende_poging?: string | null;
@@ -60220,6 +60998,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60220
60998
  is_herprint?: boolean;
60221
60999
  kopieen?: number;
60222
61000
  layout_id?: string | null;
61001
+ lokaal_opgeslagen_op?: string | null;
61002
+ lokale_pdf_fout?: string | null;
61003
+ lokale_pdf_status?: string | null;
60223
61004
  opgepakt_op?: string | null;
60224
61005
  paginas?: number;
60225
61006
  payload?: import("../integrations/supabase/types").Json;
@@ -60228,6 +61009,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60228
61009
  pogingen?: number;
60229
61010
  printer_id?: string | null;
60230
61011
  render_html?: string | null;
61012
+ resultaat_pdf_base64?: string | null;
60231
61013
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60232
61014
  updated_at?: string;
60233
61015
  volgende_poging?: string | null;
@@ -60346,6 +61128,39 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60346
61128
  };
60347
61129
  Relationships: [];
60348
61130
  };
61131
+ print_preview_events: {
61132
+ Row: {
61133
+ code: string | null;
61134
+ created_at: string;
61135
+ detail: import("../integrations/supabase/types").Json;
61136
+ id: string;
61137
+ queue_item_id: string | null;
61138
+ reden: string | null;
61139
+ station_slug: string | null;
61140
+ uitkomst: string;
61141
+ };
61142
+ Insert: {
61143
+ code?: string | null;
61144
+ created_at?: string;
61145
+ detail?: import("../integrations/supabase/types").Json;
61146
+ id?: string;
61147
+ queue_item_id?: string | null;
61148
+ reden?: string | null;
61149
+ station_slug?: string | null;
61150
+ uitkomst?: string;
61151
+ };
61152
+ Update: {
61153
+ code?: string | null;
61154
+ created_at?: string;
61155
+ detail?: import("../integrations/supabase/types").Json;
61156
+ id?: string;
61157
+ queue_item_id?: string | null;
61158
+ reden?: string | null;
61159
+ station_slug?: string | null;
61160
+ uitkomst?: string;
61161
+ };
61162
+ Relationships: [];
61163
+ };
60349
61164
  print_queue_runners: {
60350
61165
  Row: {
60351
61166
  actief: boolean;
@@ -60585,6 +61400,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60585
61400
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
60586
61401
  online: boolean;
60587
61402
  papierformaat: string;
61403
+ pdf_map: string | null;
60588
61404
  poort: number | null;
60589
61405
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60590
61406
  systeemnaam: string;
@@ -60610,6 +61426,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60610
61426
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60611
61427
  online?: boolean;
60612
61428
  papierformaat?: string;
61429
+ pdf_map?: string | null;
60613
61430
  poort?: number | null;
60614
61431
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60615
61432
  systeemnaam?: string;
@@ -60635,6 +61452,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60635
61452
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60636
61453
  online?: boolean;
60637
61454
  papierformaat?: string;
61455
+ pdf_map?: string | null;
60638
61456
  poort?: number | null;
60639
61457
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60640
61458
  systeemnaam?: string;
@@ -66891,6 +67709,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
66891
67709
  is_herprint: boolean;
66892
67710
  kopieen: number;
66893
67711
  layout_id: string | null;
67712
+ lokaal_opgeslagen_op: string | null;
67713
+ lokale_pdf_fout: string | null;
67714
+ lokale_pdf_status: string | null;
66894
67715
  opgepakt_op: string | null;
66895
67716
  paginas: number;
66896
67717
  payload: import("../integrations/supabase/types").Json;
@@ -66899,6 +67720,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
66899
67720
  pogingen: number;
66900
67721
  printer_id: string | null;
66901
67722
  render_html: string | null;
67723
+ resultaat_pdf_base64: string | null;
66902
67724
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
66903
67725
  updated_at: string;
66904
67726
  volgende_poging: string | null;
@@ -66990,6 +67812,53 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
66990
67812
  isSetofReturn: true;
66991
67813
  };
66992
67814
  };
67815
+ claim_pdf_print_jobs: {
67816
+ Args: {
67817
+ _max?: number;
67818
+ };
67819
+ Returns: {
67820
+ agent_id: string | null;
67821
+ bron_job_id: string | null;
67822
+ created_at: string;
67823
+ documentnaam: string;
67824
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
67825
+ extern_job_id: string | null;
67826
+ foutmelding: string | null;
67827
+ gebruiker_id: string | null;
67828
+ gebruiker_naam: string;
67829
+ gebruikte_bron: string | null;
67830
+ gebruikte_layout_id: string | null;
67831
+ gestart_op: string | null;
67832
+ herkomst: string | null;
67833
+ id: string;
67834
+ idempotentie_sleutel: string | null;
67835
+ is_herprint: boolean;
67836
+ kopieen: number;
67837
+ layout_id: string | null;
67838
+ lokaal_opgeslagen_op: string | null;
67839
+ lokale_pdf_fout: string | null;
67840
+ lokale_pdf_status: string | null;
67841
+ opgepakt_op: string | null;
67842
+ paginas: number;
67843
+ payload: import("../integrations/supabase/types").Json;
67844
+ pdf_base64: string | null;
67845
+ pdf_url: string | null;
67846
+ pogingen: number;
67847
+ printer_id: string | null;
67848
+ render_html: string | null;
67849
+ resultaat_pdf_base64: string | null;
67850
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67851
+ updated_at: string;
67852
+ volgende_poging: string | null;
67853
+ voltooid_op: string | null;
67854
+ }[];
67855
+ SetofOptions: {
67856
+ from: "*";
67857
+ to: "print_jobs";
67858
+ isOneToOne: false;
67859
+ isSetofReturn: true;
67860
+ };
67861
+ };
66993
67862
  claim_print_jobs: {
66994
67863
  Args: {
66995
67864
  _agent_id: string;
@@ -67014,6 +67883,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
67014
67883
  is_herprint: boolean;
67015
67884
  kopieen: number;
67016
67885
  layout_id: string | null;
67886
+ lokaal_opgeslagen_op: string | null;
67887
+ lokale_pdf_fout: string | null;
67888
+ lokale_pdf_status: string | null;
67017
67889
  opgepakt_op: string | null;
67018
67890
  paginas: number;
67019
67891
  payload: import("../integrations/supabase/types").Json;
@@ -67022,6 +67894,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
67022
67894
  pogingen: number;
67023
67895
  printer_id: string | null;
67024
67896
  render_html: string | null;
67897
+ resultaat_pdf_base64: string | null;
67025
67898
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67026
67899
  updated_at: string;
67027
67900
  volgende_poging: string | null;
@@ -67162,6 +68035,8 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
67162
68035
  order_id: string;
67163
68036
  order_source: string;
67164
68037
  pick_date: string;
68038
+ printed_at: string;
68039
+ printed_today: boolean;
67165
68040
  status: string;
67166
68041
  }[];
67167
68042
  };
@@ -67870,6 +68745,10 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
67870
68745
  };
67871
68746
  Returns: number;
67872
68747
  };
68748
+ logistics_cancel_orphan_tasks: {
68749
+ Args: never;
68750
+ Returns: number;
68751
+ };
67873
68752
  logistics_capacity_day_check: {
67874
68753
  Args: {
67875
68754
  p_from?: string;
@@ -67890,6 +68769,25 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
67890
68769
  };
67891
68770
  Returns: number;
67892
68771
  };
68772
+ logistics_cart_index: {
68773
+ Args: {
68774
+ p_from?: string;
68775
+ p_to?: string;
68776
+ };
68777
+ Returns: {
68778
+ cart_id: string;
68779
+ cart_index: number;
68780
+ cart_label: string;
68781
+ is_shared: boolean;
68782
+ order_number: string;
68783
+ order_source: string;
68784
+ order_uuid: string;
68785
+ pick_date: string;
68786
+ printed_at: string;
68787
+ shifted: boolean;
68788
+ task_status: string;
68789
+ }[];
68790
+ };
67893
68791
  logistics_check_order_allowed: {
67894
68792
  Args: {
67895
68793
  p_lines: import("../integrations/supabase/types").Json;
@@ -68038,6 +68936,17 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68038
68936
  isSetofReturn: false;
68039
68937
  };
68040
68938
  };
68939
+ logistics_consistency_check: {
68940
+ Args: never;
68941
+ Returns: {
68942
+ agenda_carts: number;
68943
+ control_carts: number;
68944
+ ok: boolean;
68945
+ orphan_tasks: number;
68946
+ pick_date: string;
68947
+ raw_carts: number;
68948
+ }[];
68949
+ };
68041
68950
  logistics_delay_customer_email: {
68042
68951
  Args: {
68043
68952
  p_customer: string;
@@ -68127,6 +69036,16 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68127
69036
  isSetofReturn: false;
68128
69037
  };
68129
69038
  };
69039
+ logistics_floriday_cart_plan: {
69040
+ Args: {
69041
+ p_order_id: string;
69042
+ };
69043
+ Returns: {
69044
+ carrier_type: string;
69045
+ idx: number;
69046
+ packages: number;
69047
+ }[];
69048
+ };
68130
69049
  logistics_floriday_claim_pushes: {
68131
69050
  Args: {
68132
69051
  _lease_seconds?: number;
@@ -68231,6 +69150,25 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68231
69150
  };
68232
69151
  Returns: number;
68233
69152
  };
69153
+ logistics_order_overview: {
69154
+ Args: {
69155
+ p_from?: string;
69156
+ p_to?: string;
69157
+ };
69158
+ Returns: {
69159
+ cart_count: number;
69160
+ customer_name: string;
69161
+ delivery_date: string;
69162
+ order_number: string;
69163
+ order_source: string;
69164
+ order_uuid: string;
69165
+ pick_date: string;
69166
+ plant_count: number;
69167
+ printed_at: string;
69168
+ shifted: boolean;
69169
+ status: string;
69170
+ }[];
69171
+ };
68234
69172
  logistics_order_pick_day: {
68235
69173
  Args: {
68236
69174
  p_order_ref: string;
@@ -68243,6 +69181,22 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68243
69181
  };
68244
69182
  Returns: string;
68245
69183
  };
69184
+ logistics_pick_agenda: {
69185
+ Args: {
69186
+ p_from?: string;
69187
+ p_to?: string;
69188
+ };
69189
+ Returns: {
69190
+ cart_count: number;
69191
+ in_preparation: number;
69192
+ order_count: number;
69193
+ orders: import("../integrations/supabase/types").Json;
69194
+ pick_date: string;
69195
+ plant_count: number;
69196
+ ready: number;
69197
+ shifted_count: number;
69198
+ }[];
69199
+ };
68246
69200
  logistics_pick_email_purpose: {
68247
69201
  Args: never;
68248
69202
  Returns: string;
@@ -68297,6 +69251,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68297
69251
  };
68298
69252
  Returns: undefined;
68299
69253
  };
69254
+ logistics_plan_floriday_order: {
69255
+ Args: {
69256
+ p_buffer_id?: string;
69257
+ p_order_id: string;
69258
+ };
69259
+ Returns: number;
69260
+ };
68300
69261
  logistics_plan_impact_orders: {
68301
69262
  Args: {
68302
69263
  p_order_id: string;
@@ -68402,6 +69363,15 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68402
69363
  };
68403
69364
  Returns: import("../integrations/supabase/types").Json;
68404
69365
  };
69366
+ logistics_resolve_pick_document: {
69367
+ Args: {
69368
+ _is_herprint: boolean;
69369
+ _queue_item_id: string;
69370
+ _session_id: string;
69371
+ _voorbeeld: boolean;
69372
+ };
69373
+ Returns: import("../integrations/supabase/types").Json;
69374
+ };
68405
69375
  logistics_resolve_settings: {
68406
69376
  Args: {
68407
69377
  p_config_id: string;
@@ -68842,6 +69812,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68842
69812
  };
68843
69813
  pick_enqueue_print_job: {
68844
69814
  Args: {
69815
+ _is_herprint?: boolean;
68845
69816
  _printer_id?: string;
68846
69817
  _queue_item_id: string;
68847
69818
  _session_id?: string;
@@ -68855,6 +69826,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68855
69826
  };
68856
69827
  Returns: import("../integrations/supabase/types").Json;
68857
69828
  };
69829
+ pick_preview_job: {
69830
+ Args: {
69831
+ _queue_item_id: string;
69832
+ _station_slug: string;
69833
+ };
69834
+ Returns: import("../integrations/supabase/types").Json;
69835
+ };
68858
69836
  pick_print_job_status: {
68859
69837
  Args: {
68860
69838
  _job_id: string;
@@ -69032,6 +70010,24 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
69032
70010
  };
69033
70011
  Returns: undefined;
69034
70012
  };
70013
+ print_preview_toestaan: {
70014
+ Args: {
70015
+ _max?: number;
70016
+ _queue_item_id: string;
70017
+ _station_slug: string;
70018
+ _venster_sec?: number;
70019
+ };
70020
+ Returns: import("../integrations/supabase/types").Json;
70021
+ };
70022
+ print_preview_weiger: {
70023
+ Args: {
70024
+ _code: string;
70025
+ _queue_item_id: string;
70026
+ _reden: string;
70027
+ _station_slug: string;
70028
+ };
70029
+ Returns: undefined;
70030
+ };
69035
70031
  process_logistics_event: {
69036
70032
  Args: {
69037
70033
  p_event_id: string;
@@ -69186,6 +70182,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
69186
70182
  };
69187
70183
  Returns: string;
69188
70184
  };
70185
+ resolve_print_job_printer_id: {
70186
+ Args: {
70187
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
70188
+ };
70189
+ Returns: string;
70190
+ };
69189
70191
  resolve_product_id_for_item: {
69190
70192
  Args: {
69191
70193
  p_product_name: string;
@@ -69777,7 +70779,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
69777
70779
  };
69778
70780
  CompositeTypes: { [_ in never]: never; };
69779
70781
  }, {
69780
- PostgrestVersion: "14.17";
70782
+ PostgrestVersion: "14.5";
69781
70783
  }>;
69782
70784
  userId: string;
69783
70785
  claims: import("@supabase/auth-js").User;
@@ -72666,6 +73668,84 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
72666
73668
  };
72667
73669
  Relationships: [];
72668
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
+ };
72669
73749
  document_bronregels: {
72670
73750
  Row: {
72671
73751
  bron: string;
@@ -75719,10 +76799,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
75719
76799
  };
75720
76800
  floriday_connections: {
75721
76801
  Row: {
75722
- access_token: string | null;
75723
76802
  api_key: string;
75724
- client_id: string;
75725
- client_secret: string;
75726
76803
  created_at: string;
75727
76804
  customers_endpoint: string | null;
75728
76805
  environment: string;
@@ -75737,10 +76814,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
75737
76814
  updated_at: string;
75738
76815
  };
75739
76816
  Insert: {
75740
- access_token?: string | null;
75741
76817
  api_key: string;
75742
- client_id: string;
75743
- client_secret: string;
75744
76818
  created_at?: string;
75745
76819
  customers_endpoint?: string | null;
75746
76820
  environment: string;
@@ -75755,10 +76829,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
75755
76829
  updated_at?: string;
75756
76830
  };
75757
76831
  Update: {
75758
- access_token?: string | null;
75759
76832
  api_key?: string;
75760
- client_id?: string;
75761
- client_secret?: string;
75762
76833
  created_at?: string;
75763
76834
  customers_endpoint?: string | null;
75764
76835
  environment?: string;
@@ -83391,6 +84462,39 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83391
84462
  };
83392
84463
  Relationships: [];
83393
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
+ };
83394
84498
  print_job_logs: {
83395
84499
  Row: {
83396
84500
  created_at: string;
@@ -83441,6 +84545,9 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83441
84545
  is_herprint: boolean;
83442
84546
  kopieen: number;
83443
84547
  layout_id: string | null;
84548
+ lokaal_opgeslagen_op: string | null;
84549
+ lokale_pdf_fout: string | null;
84550
+ lokale_pdf_status: string | null;
83444
84551
  opgepakt_op: string | null;
83445
84552
  paginas: number;
83446
84553
  payload: import("../integrations/supabase/types").Json;
@@ -83449,6 +84556,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83449
84556
  pogingen: number;
83450
84557
  printer_id: string | null;
83451
84558
  render_html: string | null;
84559
+ resultaat_pdf_base64: string | null;
83452
84560
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83453
84561
  updated_at: string;
83454
84562
  volgende_poging: string | null;
@@ -83473,6 +84581,9 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83473
84581
  is_herprint?: boolean;
83474
84582
  kopieen?: number;
83475
84583
  layout_id?: string | null;
84584
+ lokaal_opgeslagen_op?: string | null;
84585
+ lokale_pdf_fout?: string | null;
84586
+ lokale_pdf_status?: string | null;
83476
84587
  opgepakt_op?: string | null;
83477
84588
  paginas?: number;
83478
84589
  payload?: import("../integrations/supabase/types").Json;
@@ -83481,6 +84592,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83481
84592
  pogingen?: number;
83482
84593
  printer_id?: string | null;
83483
84594
  render_html?: string | null;
84595
+ resultaat_pdf_base64?: string | null;
83484
84596
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83485
84597
  updated_at?: string;
83486
84598
  volgende_poging?: string | null;
@@ -83505,6 +84617,9 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83505
84617
  is_herprint?: boolean;
83506
84618
  kopieen?: number;
83507
84619
  layout_id?: string | null;
84620
+ lokaal_opgeslagen_op?: string | null;
84621
+ lokale_pdf_fout?: string | null;
84622
+ lokale_pdf_status?: string | null;
83508
84623
  opgepakt_op?: string | null;
83509
84624
  paginas?: number;
83510
84625
  payload?: import("../integrations/supabase/types").Json;
@@ -83513,6 +84628,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83513
84628
  pogingen?: number;
83514
84629
  printer_id?: string | null;
83515
84630
  render_html?: string | null;
84631
+ resultaat_pdf_base64?: string | null;
83516
84632
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83517
84633
  updated_at?: string;
83518
84634
  volgende_poging?: string | null;
@@ -83631,6 +84747,39 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83631
84747
  };
83632
84748
  Relationships: [];
83633
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
+ };
83634
84783
  print_queue_runners: {
83635
84784
  Row: {
83636
84785
  actief: boolean;
@@ -83870,6 +85019,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83870
85019
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
83871
85020
  online: boolean;
83872
85021
  papierformaat: string;
85022
+ pdf_map: string | null;
83873
85023
  poort: number | null;
83874
85024
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83875
85025
  systeemnaam: string;
@@ -83895,6 +85045,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83895
85045
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83896
85046
  online?: boolean;
83897
85047
  papierformaat?: string;
85048
+ pdf_map?: string | null;
83898
85049
  poort?: number | null;
83899
85050
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83900
85051
  systeemnaam?: string;
@@ -83920,6 +85071,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83920
85071
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83921
85072
  online?: boolean;
83922
85073
  papierformaat?: string;
85074
+ pdf_map?: string | null;
83923
85075
  poort?: number | null;
83924
85076
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83925
85077
  systeemnaam?: string;
@@ -90176,6 +91328,9 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
90176
91328
  is_herprint: boolean;
90177
91329
  kopieen: number;
90178
91330
  layout_id: string | null;
91331
+ lokaal_opgeslagen_op: string | null;
91332
+ lokale_pdf_fout: string | null;
91333
+ lokale_pdf_status: string | null;
90179
91334
  opgepakt_op: string | null;
90180
91335
  paginas: number;
90181
91336
  payload: import("../integrations/supabase/types").Json;
@@ -90184,6 +91339,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
90184
91339
  pogingen: number;
90185
91340
  printer_id: string | null;
90186
91341
  render_html: string | null;
91342
+ resultaat_pdf_base64: string | null;
90187
91343
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90188
91344
  updated_at: string;
90189
91345
  volgende_poging: string | null;
@@ -90275,6 +91431,53 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
90275
91431
  isSetofReturn: true;
90276
91432
  };
90277
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
+ };
90278
91481
  claim_print_jobs: {
90279
91482
  Args: {
90280
91483
  _agent_id: string;
@@ -90299,6 +91502,9 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
90299
91502
  is_herprint: boolean;
90300
91503
  kopieen: number;
90301
91504
  layout_id: string | null;
91505
+ lokaal_opgeslagen_op: string | null;
91506
+ lokale_pdf_fout: string | null;
91507
+ lokale_pdf_status: string | null;
90302
91508
  opgepakt_op: string | null;
90303
91509
  paginas: number;
90304
91510
  payload: import("../integrations/supabase/types").Json;
@@ -90307,6 +91513,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
90307
91513
  pogingen: number;
90308
91514
  printer_id: string | null;
90309
91515
  render_html: string | null;
91516
+ resultaat_pdf_base64: string | null;
90310
91517
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90311
91518
  updated_at: string;
90312
91519
  volgende_poging: string | null;
@@ -90447,6 +91654,8 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
90447
91654
  order_id: string;
90448
91655
  order_source: string;
90449
91656
  pick_date: string;
91657
+ printed_at: string;
91658
+ printed_today: boolean;
90450
91659
  status: string;
90451
91660
  }[];
90452
91661
  };
@@ -91155,6 +92364,10 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
91155
92364
  };
91156
92365
  Returns: number;
91157
92366
  };
92367
+ logistics_cancel_orphan_tasks: {
92368
+ Args: never;
92369
+ Returns: number;
92370
+ };
91158
92371
  logistics_capacity_day_check: {
91159
92372
  Args: {
91160
92373
  p_from?: string;
@@ -91175,6 +92388,25 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
91175
92388
  };
91176
92389
  Returns: number;
91177
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
+ };
91178
92410
  logistics_check_order_allowed: {
91179
92411
  Args: {
91180
92412
  p_lines: import("../integrations/supabase/types").Json;
@@ -91323,6 +92555,17 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
91323
92555
  isSetofReturn: false;
91324
92556
  };
91325
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
+ };
91326
92569
  logistics_delay_customer_email: {
91327
92570
  Args: {
91328
92571
  p_customer: string;
@@ -91412,6 +92655,16 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
91412
92655
  isSetofReturn: false;
91413
92656
  };
91414
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
+ };
91415
92668
  logistics_floriday_claim_pushes: {
91416
92669
  Args: {
91417
92670
  _lease_seconds?: number;
@@ -91516,6 +92769,25 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
91516
92769
  };
91517
92770
  Returns: number;
91518
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
+ };
91519
92791
  logistics_order_pick_day: {
91520
92792
  Args: {
91521
92793
  p_order_ref: string;
@@ -91528,6 +92800,22 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
91528
92800
  };
91529
92801
  Returns: string;
91530
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
+ };
91531
92819
  logistics_pick_email_purpose: {
91532
92820
  Args: never;
91533
92821
  Returns: string;
@@ -91582,6 +92870,13 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
91582
92870
  };
91583
92871
  Returns: undefined;
91584
92872
  };
92873
+ logistics_plan_floriday_order: {
92874
+ Args: {
92875
+ p_buffer_id?: string;
92876
+ p_order_id: string;
92877
+ };
92878
+ Returns: number;
92879
+ };
91585
92880
  logistics_plan_impact_orders: {
91586
92881
  Args: {
91587
92882
  p_order_id: string;
@@ -91687,6 +92982,15 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
91687
92982
  };
91688
92983
  Returns: import("../integrations/supabase/types").Json;
91689
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
+ };
91690
92994
  logistics_resolve_settings: {
91691
92995
  Args: {
91692
92996
  p_config_id: string;
@@ -92127,6 +93431,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
92127
93431
  };
92128
93432
  pick_enqueue_print_job: {
92129
93433
  Args: {
93434
+ _is_herprint?: boolean;
92130
93435
  _printer_id?: string;
92131
93436
  _queue_item_id: string;
92132
93437
  _session_id?: string;
@@ -92140,6 +93445,13 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
92140
93445
  };
92141
93446
  Returns: import("../integrations/supabase/types").Json;
92142
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
+ };
92143
93455
  pick_print_job_status: {
92144
93456
  Args: {
92145
93457
  _job_id: string;
@@ -92317,6 +93629,24 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
92317
93629
  };
92318
93630
  Returns: undefined;
92319
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
+ };
92320
93650
  process_logistics_event: {
92321
93651
  Args: {
92322
93652
  p_event_id: string;
@@ -92471,6 +93801,12 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
92471
93801
  };
92472
93802
  Returns: string;
92473
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
+ };
92474
93810
  resolve_product_id_for_item: {
92475
93811
  Args: {
92476
93812
  p_product_name: string;
@@ -93062,7 +94398,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
93062
94398
  };
93063
94399
  CompositeTypes: { [_ in never]: never; };
93064
94400
  }, {
93065
- PostgrestVersion: "14.17";
94401
+ PostgrestVersion: "14.5";
93066
94402
  }>;
93067
94403
  userId: string;
93068
94404
  claims: import("@supabase/auth-js").User;
@@ -95922,6 +97258,84 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
95922
97258
  };
95923
97259
  Relationships: [];
95924
97260
  };
97261
+ delivery_notes: {
97262
+ Row: {
97263
+ byte_size: number | null;
97264
+ connection_id: string | null;
97265
+ content_type: string;
97266
+ created_at: string;
97267
+ error_message: string | null;
97268
+ fetched_at: string | null;
97269
+ fulfillment_order_id: string | null;
97270
+ http_status: number | null;
97271
+ id: string;
97272
+ label_code: string | null;
97273
+ letter: string | null;
97274
+ load_carrier_index: number | null;
97275
+ load_carrier_type: string | null;
97276
+ order_id: string | null;
97277
+ order_number: string | null;
97278
+ packages: number | null;
97279
+ source: string;
97280
+ status: string;
97281
+ storage_bucket: string;
97282
+ storage_path: string | null;
97283
+ updated_at: string;
97284
+ };
97285
+ Insert: {
97286
+ byte_size?: number | null;
97287
+ connection_id?: string | null;
97288
+ content_type?: string;
97289
+ created_at?: string;
97290
+ error_message?: string | null;
97291
+ fetched_at?: string | null;
97292
+ fulfillment_order_id?: string | null;
97293
+ http_status?: number | null;
97294
+ id?: string;
97295
+ label_code?: string | null;
97296
+ letter?: string | null;
97297
+ load_carrier_index?: number | null;
97298
+ load_carrier_type?: string | null;
97299
+ order_id?: string | null;
97300
+ order_number?: string | null;
97301
+ packages?: number | null;
97302
+ source?: string;
97303
+ status?: string;
97304
+ storage_bucket?: string;
97305
+ storage_path?: string | null;
97306
+ updated_at?: string;
97307
+ };
97308
+ Update: {
97309
+ byte_size?: number | null;
97310
+ connection_id?: string | null;
97311
+ content_type?: string;
97312
+ created_at?: string;
97313
+ error_message?: string | null;
97314
+ fetched_at?: string | null;
97315
+ fulfillment_order_id?: string | null;
97316
+ http_status?: number | null;
97317
+ id?: string;
97318
+ label_code?: string | null;
97319
+ letter?: string | null;
97320
+ load_carrier_index?: number | null;
97321
+ load_carrier_type?: string | null;
97322
+ order_id?: string | null;
97323
+ order_number?: string | null;
97324
+ packages?: number | null;
97325
+ source?: string;
97326
+ status?: string;
97327
+ storage_bucket?: string;
97328
+ storage_path?: string | null;
97329
+ updated_at?: string;
97330
+ };
97331
+ Relationships: [{
97332
+ foreignKeyName: "delivery_notes_order_id_fkey";
97333
+ columns: ["order_id"];
97334
+ isOneToOne: false;
97335
+ referencedRelation: "orders";
97336
+ referencedColumns: ["id"];
97337
+ }];
97338
+ };
95925
97339
  document_bronregels: {
95926
97340
  Row: {
95927
97341
  bron: string;
@@ -98975,10 +100389,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
98975
100389
  };
98976
100390
  floriday_connections: {
98977
100391
  Row: {
98978
- access_token: string | null;
98979
100392
  api_key: string;
98980
- client_id: string;
98981
- client_secret: string;
98982
100393
  created_at: string;
98983
100394
  customers_endpoint: string | null;
98984
100395
  environment: string;
@@ -98993,10 +100404,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
98993
100404
  updated_at: string;
98994
100405
  };
98995
100406
  Insert: {
98996
- access_token?: string | null;
98997
100407
  api_key: string;
98998
- client_id: string;
98999
- client_secret: string;
99000
100408
  created_at?: string;
99001
100409
  customers_endpoint?: string | null;
99002
100410
  environment: string;
@@ -99011,10 +100419,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
99011
100419
  updated_at?: string;
99012
100420
  };
99013
100421
  Update: {
99014
- access_token?: string | null;
99015
100422
  api_key?: string;
99016
- client_id?: string;
99017
- client_secret?: string;
99018
100423
  created_at?: string;
99019
100424
  customers_endpoint?: string | null;
99020
100425
  environment?: string;
@@ -106647,6 +108052,39 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
106647
108052
  };
106648
108053
  Relationships: [];
106649
108054
  };
108055
+ print_dedupe_events: {
108056
+ Row: {
108057
+ bestaande_job_id: string | null;
108058
+ created_at: string;
108059
+ detail: string | null;
108060
+ documentnaam: string | null;
108061
+ documenttype: string | null;
108062
+ id: string;
108063
+ idempotentie_sleutel: string;
108064
+ reden: string;
108065
+ };
108066
+ Insert: {
108067
+ bestaande_job_id?: string | null;
108068
+ created_at?: string;
108069
+ detail?: string | null;
108070
+ documentnaam?: string | null;
108071
+ documenttype?: string | null;
108072
+ id?: string;
108073
+ idempotentie_sleutel: string;
108074
+ reden: string;
108075
+ };
108076
+ Update: {
108077
+ bestaande_job_id?: string | null;
108078
+ created_at?: string;
108079
+ detail?: string | null;
108080
+ documentnaam?: string | null;
108081
+ documenttype?: string | null;
108082
+ id?: string;
108083
+ idempotentie_sleutel?: string;
108084
+ reden?: string;
108085
+ };
108086
+ Relationships: [];
108087
+ };
106650
108088
  print_job_logs: {
106651
108089
  Row: {
106652
108090
  created_at: string;
@@ -106697,6 +108135,9 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
106697
108135
  is_herprint: boolean;
106698
108136
  kopieen: number;
106699
108137
  layout_id: string | null;
108138
+ lokaal_opgeslagen_op: string | null;
108139
+ lokale_pdf_fout: string | null;
108140
+ lokale_pdf_status: string | null;
106700
108141
  opgepakt_op: string | null;
106701
108142
  paginas: number;
106702
108143
  payload: import("../integrations/supabase/types").Json;
@@ -106705,6 +108146,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
106705
108146
  pogingen: number;
106706
108147
  printer_id: string | null;
106707
108148
  render_html: string | null;
108149
+ resultaat_pdf_base64: string | null;
106708
108150
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
106709
108151
  updated_at: string;
106710
108152
  volgende_poging: string | null;
@@ -106729,6 +108171,9 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
106729
108171
  is_herprint?: boolean;
106730
108172
  kopieen?: number;
106731
108173
  layout_id?: string | null;
108174
+ lokaal_opgeslagen_op?: string | null;
108175
+ lokale_pdf_fout?: string | null;
108176
+ lokale_pdf_status?: string | null;
106732
108177
  opgepakt_op?: string | null;
106733
108178
  paginas?: number;
106734
108179
  payload?: import("../integrations/supabase/types").Json;
@@ -106737,6 +108182,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
106737
108182
  pogingen?: number;
106738
108183
  printer_id?: string | null;
106739
108184
  render_html?: string | null;
108185
+ resultaat_pdf_base64?: string | null;
106740
108186
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
106741
108187
  updated_at?: string;
106742
108188
  volgende_poging?: string | null;
@@ -106761,6 +108207,9 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
106761
108207
  is_herprint?: boolean;
106762
108208
  kopieen?: number;
106763
108209
  layout_id?: string | null;
108210
+ lokaal_opgeslagen_op?: string | null;
108211
+ lokale_pdf_fout?: string | null;
108212
+ lokale_pdf_status?: string | null;
106764
108213
  opgepakt_op?: string | null;
106765
108214
  paginas?: number;
106766
108215
  payload?: import("../integrations/supabase/types").Json;
@@ -106769,6 +108218,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
106769
108218
  pogingen?: number;
106770
108219
  printer_id?: string | null;
106771
108220
  render_html?: string | null;
108221
+ resultaat_pdf_base64?: string | null;
106772
108222
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
106773
108223
  updated_at?: string;
106774
108224
  volgende_poging?: string | null;
@@ -106887,6 +108337,39 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
106887
108337
  };
106888
108338
  Relationships: [];
106889
108339
  };
108340
+ print_preview_events: {
108341
+ Row: {
108342
+ code: string | null;
108343
+ created_at: string;
108344
+ detail: import("../integrations/supabase/types").Json;
108345
+ id: string;
108346
+ queue_item_id: string | null;
108347
+ reden: string | null;
108348
+ station_slug: string | null;
108349
+ uitkomst: string;
108350
+ };
108351
+ Insert: {
108352
+ code?: string | null;
108353
+ created_at?: string;
108354
+ detail?: import("../integrations/supabase/types").Json;
108355
+ id?: string;
108356
+ queue_item_id?: string | null;
108357
+ reden?: string | null;
108358
+ station_slug?: string | null;
108359
+ uitkomst?: string;
108360
+ };
108361
+ Update: {
108362
+ code?: string | null;
108363
+ created_at?: string;
108364
+ detail?: import("../integrations/supabase/types").Json;
108365
+ id?: string;
108366
+ queue_item_id?: string | null;
108367
+ reden?: string | null;
108368
+ station_slug?: string | null;
108369
+ uitkomst?: string;
108370
+ };
108371
+ Relationships: [];
108372
+ };
106890
108373
  print_queue_runners: {
106891
108374
  Row: {
106892
108375
  actief: boolean;
@@ -107126,6 +108609,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
107126
108609
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
107127
108610
  online: boolean;
107128
108611
  papierformaat: string;
108612
+ pdf_map: string | null;
107129
108613
  poort: number | null;
107130
108614
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107131
108615
  systeemnaam: string;
@@ -107151,6 +108635,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
107151
108635
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
107152
108636
  online?: boolean;
107153
108637
  papierformaat?: string;
108638
+ pdf_map?: string | null;
107154
108639
  poort?: number | null;
107155
108640
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107156
108641
  systeemnaam?: string;
@@ -107176,6 +108661,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
107176
108661
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
107177
108662
  online?: boolean;
107178
108663
  papierformaat?: string;
108664
+ pdf_map?: string | null;
107179
108665
  poort?: number | null;
107180
108666
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107181
108667
  systeemnaam?: string;
@@ -113432,6 +114918,9 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
113432
114918
  is_herprint: boolean;
113433
114919
  kopieen: number;
113434
114920
  layout_id: string | null;
114921
+ lokaal_opgeslagen_op: string | null;
114922
+ lokale_pdf_fout: string | null;
114923
+ lokale_pdf_status: string | null;
113435
114924
  opgepakt_op: string | null;
113436
114925
  paginas: number;
113437
114926
  payload: import("../integrations/supabase/types").Json;
@@ -113440,6 +114929,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
113440
114929
  pogingen: number;
113441
114930
  printer_id: string | null;
113442
114931
  render_html: string | null;
114932
+ resultaat_pdf_base64: string | null;
113443
114933
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
113444
114934
  updated_at: string;
113445
114935
  volgende_poging: string | null;
@@ -113531,6 +115021,53 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
113531
115021
  isSetofReturn: true;
113532
115022
  };
113533
115023
  };
115024
+ claim_pdf_print_jobs: {
115025
+ Args: {
115026
+ _max?: number;
115027
+ };
115028
+ Returns: {
115029
+ agent_id: string | null;
115030
+ bron_job_id: string | null;
115031
+ created_at: string;
115032
+ documentnaam: string;
115033
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
115034
+ extern_job_id: string | null;
115035
+ foutmelding: string | null;
115036
+ gebruiker_id: string | null;
115037
+ gebruiker_naam: string;
115038
+ gebruikte_bron: string | null;
115039
+ gebruikte_layout_id: string | null;
115040
+ gestart_op: string | null;
115041
+ herkomst: string | null;
115042
+ id: string;
115043
+ idempotentie_sleutel: string | null;
115044
+ is_herprint: boolean;
115045
+ kopieen: number;
115046
+ layout_id: string | null;
115047
+ lokaal_opgeslagen_op: string | null;
115048
+ lokale_pdf_fout: string | null;
115049
+ lokale_pdf_status: string | null;
115050
+ opgepakt_op: string | null;
115051
+ paginas: number;
115052
+ payload: import("../integrations/supabase/types").Json;
115053
+ pdf_base64: string | null;
115054
+ pdf_url: string | null;
115055
+ pogingen: number;
115056
+ printer_id: string | null;
115057
+ render_html: string | null;
115058
+ resultaat_pdf_base64: string | null;
115059
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
115060
+ updated_at: string;
115061
+ volgende_poging: string | null;
115062
+ voltooid_op: string | null;
115063
+ }[];
115064
+ SetofOptions: {
115065
+ from: "*";
115066
+ to: "print_jobs";
115067
+ isOneToOne: false;
115068
+ isSetofReturn: true;
115069
+ };
115070
+ };
113534
115071
  claim_print_jobs: {
113535
115072
  Args: {
113536
115073
  _agent_id: string;
@@ -113555,6 +115092,9 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
113555
115092
  is_herprint: boolean;
113556
115093
  kopieen: number;
113557
115094
  layout_id: string | null;
115095
+ lokaal_opgeslagen_op: string | null;
115096
+ lokale_pdf_fout: string | null;
115097
+ lokale_pdf_status: string | null;
113558
115098
  opgepakt_op: string | null;
113559
115099
  paginas: number;
113560
115100
  payload: import("../integrations/supabase/types").Json;
@@ -113563,6 +115103,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
113563
115103
  pogingen: number;
113564
115104
  printer_id: string | null;
113565
115105
  render_html: string | null;
115106
+ resultaat_pdf_base64: string | null;
113566
115107
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
113567
115108
  updated_at: string;
113568
115109
  volgende_poging: string | null;
@@ -113703,6 +115244,8 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
113703
115244
  order_id: string;
113704
115245
  order_source: string;
113705
115246
  pick_date: string;
115247
+ printed_at: string;
115248
+ printed_today: boolean;
113706
115249
  status: string;
113707
115250
  }[];
113708
115251
  };
@@ -114411,6 +115954,10 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114411
115954
  };
114412
115955
  Returns: number;
114413
115956
  };
115957
+ logistics_cancel_orphan_tasks: {
115958
+ Args: never;
115959
+ Returns: number;
115960
+ };
114414
115961
  logistics_capacity_day_check: {
114415
115962
  Args: {
114416
115963
  p_from?: string;
@@ -114431,6 +115978,25 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114431
115978
  };
114432
115979
  Returns: number;
114433
115980
  };
115981
+ logistics_cart_index: {
115982
+ Args: {
115983
+ p_from?: string;
115984
+ p_to?: string;
115985
+ };
115986
+ Returns: {
115987
+ cart_id: string;
115988
+ cart_index: number;
115989
+ cart_label: string;
115990
+ is_shared: boolean;
115991
+ order_number: string;
115992
+ order_source: string;
115993
+ order_uuid: string;
115994
+ pick_date: string;
115995
+ printed_at: string;
115996
+ shifted: boolean;
115997
+ task_status: string;
115998
+ }[];
115999
+ };
114434
116000
  logistics_check_order_allowed: {
114435
116001
  Args: {
114436
116002
  p_lines: import("../integrations/supabase/types").Json;
@@ -114579,6 +116145,17 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114579
116145
  isSetofReturn: false;
114580
116146
  };
114581
116147
  };
116148
+ logistics_consistency_check: {
116149
+ Args: never;
116150
+ Returns: {
116151
+ agenda_carts: number;
116152
+ control_carts: number;
116153
+ ok: boolean;
116154
+ orphan_tasks: number;
116155
+ pick_date: string;
116156
+ raw_carts: number;
116157
+ }[];
116158
+ };
114582
116159
  logistics_delay_customer_email: {
114583
116160
  Args: {
114584
116161
  p_customer: string;
@@ -114668,6 +116245,16 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114668
116245
  isSetofReturn: false;
114669
116246
  };
114670
116247
  };
116248
+ logistics_floriday_cart_plan: {
116249
+ Args: {
116250
+ p_order_id: string;
116251
+ };
116252
+ Returns: {
116253
+ carrier_type: string;
116254
+ idx: number;
116255
+ packages: number;
116256
+ }[];
116257
+ };
114671
116258
  logistics_floriday_claim_pushes: {
114672
116259
  Args: {
114673
116260
  _lease_seconds?: number;
@@ -114772,6 +116359,25 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114772
116359
  };
114773
116360
  Returns: number;
114774
116361
  };
116362
+ logistics_order_overview: {
116363
+ Args: {
116364
+ p_from?: string;
116365
+ p_to?: string;
116366
+ };
116367
+ Returns: {
116368
+ cart_count: number;
116369
+ customer_name: string;
116370
+ delivery_date: string;
116371
+ order_number: string;
116372
+ order_source: string;
116373
+ order_uuid: string;
116374
+ pick_date: string;
116375
+ plant_count: number;
116376
+ printed_at: string;
116377
+ shifted: boolean;
116378
+ status: string;
116379
+ }[];
116380
+ };
114775
116381
  logistics_order_pick_day: {
114776
116382
  Args: {
114777
116383
  p_order_ref: string;
@@ -114784,6 +116390,22 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114784
116390
  };
114785
116391
  Returns: string;
114786
116392
  };
116393
+ logistics_pick_agenda: {
116394
+ Args: {
116395
+ p_from?: string;
116396
+ p_to?: string;
116397
+ };
116398
+ Returns: {
116399
+ cart_count: number;
116400
+ in_preparation: number;
116401
+ order_count: number;
116402
+ orders: import("../integrations/supabase/types").Json;
116403
+ pick_date: string;
116404
+ plant_count: number;
116405
+ ready: number;
116406
+ shifted_count: number;
116407
+ }[];
116408
+ };
114787
116409
  logistics_pick_email_purpose: {
114788
116410
  Args: never;
114789
116411
  Returns: string;
@@ -114838,6 +116460,13 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114838
116460
  };
114839
116461
  Returns: undefined;
114840
116462
  };
116463
+ logistics_plan_floriday_order: {
116464
+ Args: {
116465
+ p_buffer_id?: string;
116466
+ p_order_id: string;
116467
+ };
116468
+ Returns: number;
116469
+ };
114841
116470
  logistics_plan_impact_orders: {
114842
116471
  Args: {
114843
116472
  p_order_id: string;
@@ -114943,6 +116572,15 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114943
116572
  };
114944
116573
  Returns: import("../integrations/supabase/types").Json;
114945
116574
  };
116575
+ logistics_resolve_pick_document: {
116576
+ Args: {
116577
+ _is_herprint: boolean;
116578
+ _queue_item_id: string;
116579
+ _session_id: string;
116580
+ _voorbeeld: boolean;
116581
+ };
116582
+ Returns: import("../integrations/supabase/types").Json;
116583
+ };
114946
116584
  logistics_resolve_settings: {
114947
116585
  Args: {
114948
116586
  p_config_id: string;
@@ -115383,6 +117021,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
115383
117021
  };
115384
117022
  pick_enqueue_print_job: {
115385
117023
  Args: {
117024
+ _is_herprint?: boolean;
115386
117025
  _printer_id?: string;
115387
117026
  _queue_item_id: string;
115388
117027
  _session_id?: string;
@@ -115396,6 +117035,13 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
115396
117035
  };
115397
117036
  Returns: import("../integrations/supabase/types").Json;
115398
117037
  };
117038
+ pick_preview_job: {
117039
+ Args: {
117040
+ _queue_item_id: string;
117041
+ _station_slug: string;
117042
+ };
117043
+ Returns: import("../integrations/supabase/types").Json;
117044
+ };
115399
117045
  pick_print_job_status: {
115400
117046
  Args: {
115401
117047
  _job_id: string;
@@ -115573,6 +117219,24 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
115573
117219
  };
115574
117220
  Returns: undefined;
115575
117221
  };
117222
+ print_preview_toestaan: {
117223
+ Args: {
117224
+ _max?: number;
117225
+ _queue_item_id: string;
117226
+ _station_slug: string;
117227
+ _venster_sec?: number;
117228
+ };
117229
+ Returns: import("../integrations/supabase/types").Json;
117230
+ };
117231
+ print_preview_weiger: {
117232
+ Args: {
117233
+ _code: string;
117234
+ _queue_item_id: string;
117235
+ _reden: string;
117236
+ _station_slug: string;
117237
+ };
117238
+ Returns: undefined;
117239
+ };
115576
117240
  process_logistics_event: {
115577
117241
  Args: {
115578
117242
  p_event_id: string;
@@ -115727,6 +117391,12 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
115727
117391
  };
115728
117392
  Returns: string;
115729
117393
  };
117394
+ resolve_print_job_printer_id: {
117395
+ Args: {
117396
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
117397
+ };
117398
+ Returns: string;
117399
+ };
115730
117400
  resolve_product_id_for_item: {
115731
117401
  Args: {
115732
117402
  p_product_name: string;
@@ -116318,7 +117988,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
116318
117988
  };
116319
117989
  CompositeTypes: { [_ in never]: never; };
116320
117990
  }, {
116321
- PostgrestVersion: "14.17";
117991
+ PostgrestVersion: "14.5";
116322
117992
  }>;
116323
117993
  userId: string;
116324
117994
  claims: import("@supabase/auth-js").User;