@flowselections/floriday-verkoop-module 1.0.55 → 1.0.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.d.ts.map +1 -1
  2. package/dist-lib/components/verkoop/OrderAfleverbrievenCard.js +5 -5
  3. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  4. package/dist-lib/components/verkoop/OrderKarindelingCard.js +2 -1
  5. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  6. package/dist-lib/components/verkoop/SalesOrdersTable.js +17 -4
  7. package/dist-lib/integrations/supabase/auth-middleware.d.ts +355 -18
  8. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/client.d.ts +355 -18
  10. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/client.server.d.ts +355 -18
  12. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  13. package/dist-lib/integrations/supabase/types.d.ts +357 -18
  14. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  15. package/dist-lib/lib/cart-lock.functions.d.ts +355 -18
  16. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/cart-planning-settings.functions.d.ts +3948 -241
  18. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/cart-replan.functions.d.ts +1065 -54
  20. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/cart-replan.functions.js +38 -31
  22. package/dist-lib/lib/create-order.functions.d.ts +6164 -435
  23. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +1065 -54
  25. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/floriday-gateway.server.d.ts +14 -0
  27. package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday-gateway.server.js +46 -0
  29. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +23972 -28
  30. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/floriday-logistic-labels.functions.js +209 -90
  32. package/dist-lib/lib/floriday-mirror.functions.d.ts +355 -18
  33. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  34. package/dist-lib/lib/floriday-public.functions.d.ts +2485 -126
  35. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  36. package/dist-lib/lib/floriday-sync.d.ts.map +1 -1
  37. package/dist-lib/lib/floriday-writes.functions.d.ts +1775 -90
  38. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/invoice-timing.functions.d.ts +1420 -72
  40. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/load-carriers.functions.d.ts +355 -18
  42. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/logistics-engine.functions.d.ts +1775 -90
  44. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/logistics-stock.functions.d.ts +710 -36
  46. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  47. package/dist-lib/lib/order-addresses.functions.d.ts +355 -18
  48. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  49. package/dist-lib/lib/order-buffers.functions.d.ts +1065 -54
  50. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  51. package/dist-lib/lib/order-carrier.functions.d.ts +710 -36
  52. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  53. package/dist-lib/lib/order-pickup.functions.d.ts +710 -36
  54. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  55. package/dist-lib/lib/order-shipments.functions.d.ts +1420 -72
  56. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  57. package/dist-lib/lib/product-name.d.ts +3 -0
  58. package/dist-lib/lib/product-name.d.ts.map +1 -0
  59. package/dist-lib/lib/product-name.js +43 -0
  60. package/dist-lib/lib/salesorders-list.functions.d.ts +355 -18
  61. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  62. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  63. package/dist-lib/lib/salesorders-list.server.js +43 -1
  64. package/dist-lib/lib/salesorders-mapping.d.ts +8 -0
  65. package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
  66. package/dist-lib/lib/salesorders.functions.d.ts +1775 -90
  67. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  68. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +710 -36
  69. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/tradeitems.functions.d.ts +355 -18
  71. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  72. package/package.json +131 -131
@@ -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;
@@ -10820,6 +10889,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
10820
10889
  last_error: string | null;
10821
10890
  last_error_at: string | null;
10822
10891
  last_success_at: string | null;
10892
+ provider: string;
10823
10893
  updated_at: string;
10824
10894
  };
10825
10895
  Insert: {
@@ -10831,6 +10901,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
10831
10901
  last_error?: string | null;
10832
10902
  last_error_at?: string | null;
10833
10903
  last_success_at?: string | null;
10904
+ provider?: string;
10834
10905
  updated_at?: string;
10835
10906
  };
10836
10907
  Update: {
@@ -10842,6 +10913,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
10842
10913
  last_error?: string | null;
10843
10914
  last_error_at?: string | null;
10844
10915
  last_success_at?: string | null;
10916
+ provider?: string;
10845
10917
  updated_at?: string;
10846
10918
  };
10847
10919
  Relationships: [];
@@ -13579,6 +13651,39 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13579
13651
  };
13580
13652
  Relationships: [];
13581
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
+ };
13582
13687
  print_job_logs: {
13583
13688
  Row: {
13584
13689
  created_at: string;
@@ -13629,6 +13734,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13629
13734
  is_herprint: boolean;
13630
13735
  kopieen: number;
13631
13736
  layout_id: string | null;
13737
+ lokaal_opgeslagen_op: string | null;
13738
+ lokale_pdf_fout: string | null;
13739
+ lokale_pdf_status: string | null;
13632
13740
  opgepakt_op: string | null;
13633
13741
  paginas: number;
13634
13742
  payload: import("../integrations/supabase/types").Json;
@@ -13637,6 +13745,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13637
13745
  pogingen: number;
13638
13746
  printer_id: string | null;
13639
13747
  render_html: string | null;
13748
+ resultaat_pdf_base64: string | null;
13640
13749
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13641
13750
  updated_at: string;
13642
13751
  volgende_poging: string | null;
@@ -13661,6 +13770,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13661
13770
  is_herprint?: boolean;
13662
13771
  kopieen?: number;
13663
13772
  layout_id?: string | null;
13773
+ lokaal_opgeslagen_op?: string | null;
13774
+ lokale_pdf_fout?: string | null;
13775
+ lokale_pdf_status?: string | null;
13664
13776
  opgepakt_op?: string | null;
13665
13777
  paginas?: number;
13666
13778
  payload?: import("../integrations/supabase/types").Json;
@@ -13669,6 +13781,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13669
13781
  pogingen?: number;
13670
13782
  printer_id?: string | null;
13671
13783
  render_html?: string | null;
13784
+ resultaat_pdf_base64?: string | null;
13672
13785
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13673
13786
  updated_at?: string;
13674
13787
  volgende_poging?: string | null;
@@ -13693,6 +13806,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13693
13806
  is_herprint?: boolean;
13694
13807
  kopieen?: number;
13695
13808
  layout_id?: string | null;
13809
+ lokaal_opgeslagen_op?: string | null;
13810
+ lokale_pdf_fout?: string | null;
13811
+ lokale_pdf_status?: string | null;
13696
13812
  opgepakt_op?: string | null;
13697
13813
  paginas?: number;
13698
13814
  payload?: import("../integrations/supabase/types").Json;
@@ -13701,6 +13817,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13701
13817
  pogingen?: number;
13702
13818
  printer_id?: string | null;
13703
13819
  render_html?: string | null;
13820
+ resultaat_pdf_base64?: string | null;
13704
13821
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13705
13822
  updated_at?: string;
13706
13823
  volgende_poging?: string | null;
@@ -13819,6 +13936,39 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
13819
13936
  };
13820
13937
  Relationships: [];
13821
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
+ };
13822
13972
  print_queue_runners: {
13823
13973
  Row: {
13824
13974
  actief: boolean;
@@ -14058,6 +14208,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
14058
14208
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14059
14209
  online: boolean;
14060
14210
  papierformaat: string;
14211
+ pdf_map: string | null;
14061
14212
  poort: number | null;
14062
14213
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14063
14214
  systeemnaam: string;
@@ -14083,6 +14234,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
14083
14234
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14084
14235
  online?: boolean;
14085
14236
  papierformaat?: string;
14237
+ pdf_map?: string | null;
14086
14238
  poort?: number | null;
14087
14239
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14088
14240
  systeemnaam?: string;
@@ -14108,6 +14260,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
14108
14260
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14109
14261
  online?: boolean;
14110
14262
  papierformaat?: string;
14263
+ pdf_map?: string | null;
14111
14264
  poort?: number | null;
14112
14265
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14113
14266
  systeemnaam?: string;
@@ -20364,6 +20517,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
20364
20517
  is_herprint: boolean;
20365
20518
  kopieen: number;
20366
20519
  layout_id: string | null;
20520
+ lokaal_opgeslagen_op: string | null;
20521
+ lokale_pdf_fout: string | null;
20522
+ lokale_pdf_status: string | null;
20367
20523
  opgepakt_op: string | null;
20368
20524
  paginas: number;
20369
20525
  payload: import("../integrations/supabase/types").Json;
@@ -20372,6 +20528,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
20372
20528
  pogingen: number;
20373
20529
  printer_id: string | null;
20374
20530
  render_html: string | null;
20531
+ resultaat_pdf_base64: string | null;
20375
20532
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20376
20533
  updated_at: string;
20377
20534
  volgende_poging: string | null;
@@ -20463,6 +20620,53 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
20463
20620
  isSetofReturn: true;
20464
20621
  };
20465
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
+ };
20466
20670
  claim_print_jobs: {
20467
20671
  Args: {
20468
20672
  _agent_id: string;
@@ -20487,6 +20691,9 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
20487
20691
  is_herprint: boolean;
20488
20692
  kopieen: number;
20489
20693
  layout_id: string | null;
20694
+ lokaal_opgeslagen_op: string | null;
20695
+ lokale_pdf_fout: string | null;
20696
+ lokale_pdf_status: string | null;
20490
20697
  opgepakt_op: string | null;
20491
20698
  paginas: number;
20492
20699
  payload: import("../integrations/supabase/types").Json;
@@ -20495,6 +20702,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
20495
20702
  pogingen: number;
20496
20703
  printer_id: string | null;
20497
20704
  render_html: string | null;
20705
+ resultaat_pdf_base64: string | null;
20498
20706
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20499
20707
  updated_at: string;
20500
20708
  volgende_poging: string | null;
@@ -20635,6 +20843,8 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
20635
20843
  order_id: string;
20636
20844
  order_source: string;
20637
20845
  pick_date: string;
20846
+ printed_at: string;
20847
+ printed_today: boolean;
20638
20848
  status: string;
20639
20849
  }[];
20640
20850
  };
@@ -21343,6 +21553,10 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
21343
21553
  };
21344
21554
  Returns: number;
21345
21555
  };
21556
+ logistics_cancel_orphan_tasks: {
21557
+ Args: never;
21558
+ Returns: number;
21559
+ };
21346
21560
  logistics_capacity_day_check: {
21347
21561
  Args: {
21348
21562
  p_from?: string;
@@ -21363,6 +21577,25 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
21363
21577
  };
21364
21578
  Returns: number;
21365
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
+ };
21366
21599
  logistics_check_order_allowed: {
21367
21600
  Args: {
21368
21601
  p_lines: import("../integrations/supabase/types").Json;
@@ -21511,6 +21744,17 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
21511
21744
  isSetofReturn: false;
21512
21745
  };
21513
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
+ };
21514
21758
  logistics_delay_customer_email: {
21515
21759
  Args: {
21516
21760
  p_customer: string;
@@ -21600,6 +21844,16 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
21600
21844
  isSetofReturn: false;
21601
21845
  };
21602
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
+ };
21603
21857
  logistics_floriday_claim_pushes: {
21604
21858
  Args: {
21605
21859
  _lease_seconds?: number;
@@ -21704,6 +21958,25 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
21704
21958
  };
21705
21959
  Returns: number;
21706
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
+ };
21707
21980
  logistics_order_pick_day: {
21708
21981
  Args: {
21709
21982
  p_order_ref: string;
@@ -21716,6 +21989,22 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
21716
21989
  };
21717
21990
  Returns: string;
21718
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
+ };
21719
22008
  logistics_pick_email_purpose: {
21720
22009
  Args: never;
21721
22010
  Returns: string;
@@ -21770,6 +22059,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
21770
22059
  };
21771
22060
  Returns: undefined;
21772
22061
  };
22062
+ logistics_plan_floriday_order: {
22063
+ Args: {
22064
+ p_buffer_id?: string;
22065
+ p_order_id: string;
22066
+ };
22067
+ Returns: number;
22068
+ };
21773
22069
  logistics_plan_impact_orders: {
21774
22070
  Args: {
21775
22071
  p_order_id: string;
@@ -21875,6 +22171,15 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
21875
22171
  };
21876
22172
  Returns: import("../integrations/supabase/types").Json;
21877
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
+ };
21878
22183
  logistics_resolve_settings: {
21879
22184
  Args: {
21880
22185
  p_config_id: string;
@@ -22005,14 +22310,6 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
22005
22310
  };
22006
22311
  Returns: string;
22007
22312
  };
22008
- maps_cron_token: {
22009
- Args: never;
22010
- Returns: string;
22011
- };
22012
- maps_kick_queue: {
22013
- Args: never;
22014
- Returns: undefined;
22015
- };
22016
22313
  mark_offer_clicked: {
22017
22314
  Args: {
22018
22315
  p_code: string;
@@ -22323,6 +22620,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
22323
22620
  };
22324
22621
  pick_enqueue_print_job: {
22325
22622
  Args: {
22623
+ _is_herprint?: boolean;
22326
22624
  _printer_id?: string;
22327
22625
  _queue_item_id: string;
22328
22626
  _session_id?: string;
@@ -22336,6 +22634,13 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
22336
22634
  };
22337
22635
  Returns: import("../integrations/supabase/types").Json;
22338
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
+ };
22339
22644
  pick_print_job_status: {
22340
22645
  Args: {
22341
22646
  _job_id: string;
@@ -22513,6 +22818,24 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
22513
22818
  };
22514
22819
  Returns: undefined;
22515
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
+ };
22516
22839
  process_logistics_event: {
22517
22840
  Args: {
22518
22841
  p_event_id: string;
@@ -22630,6 +22953,14 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
22630
22953
  };
22631
22954
  Returns: undefined;
22632
22955
  };
22956
+ replace_order_carts: {
22957
+ Args: {
22958
+ p_buffer_id: string;
22959
+ p_carts: import("../integrations/supabase/types").Json;
22960
+ p_order_id: string;
22961
+ };
22962
+ Returns: import("../integrations/supabase/types").Json;
22963
+ };
22633
22964
  reset_floriday_sync_cursor: {
22634
22965
  Args: {
22635
22966
  p_connection_id: string;
@@ -22659,6 +22990,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
22659
22990
  };
22660
22991
  Returns: string;
22661
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
+ };
22662
22999
  resolve_product_id_for_item: {
22663
23000
  Args: {
22664
23001
  p_product_name: string;
@@ -23250,7 +23587,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
23250
23587
  };
23251
23588
  CompositeTypes: { [_ in never]: never; };
23252
23589
  }, {
23253
- PostgrestVersion: "14.17";
23590
+ PostgrestVersion: "14.5";
23254
23591
  }>;
23255
23592
  userId: string;
23256
23593
  claims: import("@supabase/auth-js").User;
@@ -26111,6 +26448,84 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
26111
26448
  };
26112
26449
  Relationships: [];
26113
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
+ };
26114
26529
  document_bronregels: {
26115
26530
  Row: {
26116
26531
  bron: string;
@@ -29164,10 +29579,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
29164
29579
  };
29165
29580
  floriday_connections: {
29166
29581
  Row: {
29167
- access_token: string | null;
29168
29582
  api_key: string;
29169
- client_id: string;
29170
- client_secret: string;
29171
29583
  created_at: string;
29172
29584
  customers_endpoint: string | null;
29173
29585
  environment: string;
@@ -29182,10 +29594,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
29182
29594
  updated_at: string;
29183
29595
  };
29184
29596
  Insert: {
29185
- access_token?: string | null;
29186
29597
  api_key: string;
29187
- client_id: string;
29188
- client_secret: string;
29189
29598
  created_at?: string;
29190
29599
  customers_endpoint?: string | null;
29191
29600
  environment: string;
@@ -29200,10 +29609,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
29200
29609
  updated_at?: string;
29201
29610
  };
29202
29611
  Update: {
29203
- access_token?: string | null;
29204
29612
  api_key?: string;
29205
- client_id?: string;
29206
- client_secret?: string;
29207
29613
  created_at?: string;
29208
29614
  customers_endpoint?: string | null;
29209
29615
  environment?: string;
@@ -34074,6 +34480,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
34074
34480
  last_error: string | null;
34075
34481
  last_error_at: string | null;
34076
34482
  last_success_at: string | null;
34483
+ provider: string;
34077
34484
  updated_at: string;
34078
34485
  };
34079
34486
  Insert: {
@@ -34085,6 +34492,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
34085
34492
  last_error?: string | null;
34086
34493
  last_error_at?: string | null;
34087
34494
  last_success_at?: string | null;
34495
+ provider?: string;
34088
34496
  updated_at?: string;
34089
34497
  };
34090
34498
  Update: {
@@ -34096,6 +34504,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
34096
34504
  last_error?: string | null;
34097
34505
  last_error_at?: string | null;
34098
34506
  last_success_at?: string | null;
34507
+ provider?: string;
34099
34508
  updated_at?: string;
34100
34509
  };
34101
34510
  Relationships: [];
@@ -36833,6 +37242,39 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36833
37242
  };
36834
37243
  Relationships: [];
36835
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
+ };
36836
37278
  print_job_logs: {
36837
37279
  Row: {
36838
37280
  created_at: string;
@@ -36883,6 +37325,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36883
37325
  is_herprint: boolean;
36884
37326
  kopieen: number;
36885
37327
  layout_id: string | null;
37328
+ lokaal_opgeslagen_op: string | null;
37329
+ lokale_pdf_fout: string | null;
37330
+ lokale_pdf_status: string | null;
36886
37331
  opgepakt_op: string | null;
36887
37332
  paginas: number;
36888
37333
  payload: import("../integrations/supabase/types").Json;
@@ -36891,6 +37336,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36891
37336
  pogingen: number;
36892
37337
  printer_id: string | null;
36893
37338
  render_html: string | null;
37339
+ resultaat_pdf_base64: string | null;
36894
37340
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36895
37341
  updated_at: string;
36896
37342
  volgende_poging: string | null;
@@ -36915,6 +37361,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36915
37361
  is_herprint?: boolean;
36916
37362
  kopieen?: number;
36917
37363
  layout_id?: string | null;
37364
+ lokaal_opgeslagen_op?: string | null;
37365
+ lokale_pdf_fout?: string | null;
37366
+ lokale_pdf_status?: string | null;
36918
37367
  opgepakt_op?: string | null;
36919
37368
  paginas?: number;
36920
37369
  payload?: import("../integrations/supabase/types").Json;
@@ -36923,6 +37372,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36923
37372
  pogingen?: number;
36924
37373
  printer_id?: string | null;
36925
37374
  render_html?: string | null;
37375
+ resultaat_pdf_base64?: string | null;
36926
37376
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36927
37377
  updated_at?: string;
36928
37378
  volgende_poging?: string | null;
@@ -36947,6 +37397,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36947
37397
  is_herprint?: boolean;
36948
37398
  kopieen?: number;
36949
37399
  layout_id?: string | null;
37400
+ lokaal_opgeslagen_op?: string | null;
37401
+ lokale_pdf_fout?: string | null;
37402
+ lokale_pdf_status?: string | null;
36950
37403
  opgepakt_op?: string | null;
36951
37404
  paginas?: number;
36952
37405
  payload?: import("../integrations/supabase/types").Json;
@@ -36955,6 +37408,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
36955
37408
  pogingen?: number;
36956
37409
  printer_id?: string | null;
36957
37410
  render_html?: string | null;
37411
+ resultaat_pdf_base64?: string | null;
36958
37412
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36959
37413
  updated_at?: string;
36960
37414
  volgende_poging?: string | null;
@@ -37073,6 +37527,39 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
37073
37527
  };
37074
37528
  Relationships: [];
37075
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
+ };
37076
37563
  print_queue_runners: {
37077
37564
  Row: {
37078
37565
  actief: boolean;
@@ -37312,6 +37799,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
37312
37799
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37313
37800
  online: boolean;
37314
37801
  papierformaat: string;
37802
+ pdf_map: string | null;
37315
37803
  poort: number | null;
37316
37804
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37317
37805
  systeemnaam: string;
@@ -37337,6 +37825,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
37337
37825
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37338
37826
  online?: boolean;
37339
37827
  papierformaat?: string;
37828
+ pdf_map?: string | null;
37340
37829
  poort?: number | null;
37341
37830
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37342
37831
  systeemnaam?: string;
@@ -37362,6 +37851,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
37362
37851
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37363
37852
  online?: boolean;
37364
37853
  papierformaat?: string;
37854
+ pdf_map?: string | null;
37365
37855
  poort?: number | null;
37366
37856
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37367
37857
  systeemnaam?: string;
@@ -43618,6 +44108,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
43618
44108
  is_herprint: boolean;
43619
44109
  kopieen: number;
43620
44110
  layout_id: string | null;
44111
+ lokaal_opgeslagen_op: string | null;
44112
+ lokale_pdf_fout: string | null;
44113
+ lokale_pdf_status: string | null;
43621
44114
  opgepakt_op: string | null;
43622
44115
  paginas: number;
43623
44116
  payload: import("../integrations/supabase/types").Json;
@@ -43626,6 +44119,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
43626
44119
  pogingen: number;
43627
44120
  printer_id: string | null;
43628
44121
  render_html: string | null;
44122
+ resultaat_pdf_base64: string | null;
43629
44123
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43630
44124
  updated_at: string;
43631
44125
  volgende_poging: string | null;
@@ -43717,6 +44211,53 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
43717
44211
  isSetofReturn: true;
43718
44212
  };
43719
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
+ };
43720
44261
  claim_print_jobs: {
43721
44262
  Args: {
43722
44263
  _agent_id: string;
@@ -43741,6 +44282,9 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
43741
44282
  is_herprint: boolean;
43742
44283
  kopieen: number;
43743
44284
  layout_id: string | null;
44285
+ lokaal_opgeslagen_op: string | null;
44286
+ lokale_pdf_fout: string | null;
44287
+ lokale_pdf_status: string | null;
43744
44288
  opgepakt_op: string | null;
43745
44289
  paginas: number;
43746
44290
  payload: import("../integrations/supabase/types").Json;
@@ -43749,6 +44293,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
43749
44293
  pogingen: number;
43750
44294
  printer_id: string | null;
43751
44295
  render_html: string | null;
44296
+ resultaat_pdf_base64: string | null;
43752
44297
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43753
44298
  updated_at: string;
43754
44299
  volgende_poging: string | null;
@@ -43889,6 +44434,8 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
43889
44434
  order_id: string;
43890
44435
  order_source: string;
43891
44436
  pick_date: string;
44437
+ printed_at: string;
44438
+ printed_today: boolean;
43892
44439
  status: string;
43893
44440
  }[];
43894
44441
  };
@@ -44597,6 +45144,10 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
44597
45144
  };
44598
45145
  Returns: number;
44599
45146
  };
45147
+ logistics_cancel_orphan_tasks: {
45148
+ Args: never;
45149
+ Returns: number;
45150
+ };
44600
45151
  logistics_capacity_day_check: {
44601
45152
  Args: {
44602
45153
  p_from?: string;
@@ -44617,6 +45168,25 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
44617
45168
  };
44618
45169
  Returns: number;
44619
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
+ };
44620
45190
  logistics_check_order_allowed: {
44621
45191
  Args: {
44622
45192
  p_lines: import("../integrations/supabase/types").Json;
@@ -44765,6 +45335,17 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
44765
45335
  isSetofReturn: false;
44766
45336
  };
44767
45337
  };
45338
+ logistics_consistency_check: {
45339
+ Args: never;
45340
+ Returns: {
45341
+ agenda_carts: number;
45342
+ control_carts: number;
45343
+ ok: boolean;
45344
+ orphan_tasks: number;
45345
+ pick_date: string;
45346
+ raw_carts: number;
45347
+ }[];
45348
+ };
44768
45349
  logistics_delay_customer_email: {
44769
45350
  Args: {
44770
45351
  p_customer: string;
@@ -44854,6 +45435,16 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
44854
45435
  isSetofReturn: false;
44855
45436
  };
44856
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
+ };
44857
45448
  logistics_floriday_claim_pushes: {
44858
45449
  Args: {
44859
45450
  _lease_seconds?: number;
@@ -44958,6 +45549,25 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
44958
45549
  };
44959
45550
  Returns: number;
44960
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
+ };
44961
45571
  logistics_order_pick_day: {
44962
45572
  Args: {
44963
45573
  p_order_ref: string;
@@ -44970,6 +45580,22 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
44970
45580
  };
44971
45581
  Returns: string;
44972
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
+ };
44973
45599
  logistics_pick_email_purpose: {
44974
45600
  Args: never;
44975
45601
  Returns: string;
@@ -45024,6 +45650,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
45024
45650
  };
45025
45651
  Returns: undefined;
45026
45652
  };
45653
+ logistics_plan_floriday_order: {
45654
+ Args: {
45655
+ p_buffer_id?: string;
45656
+ p_order_id: string;
45657
+ };
45658
+ Returns: number;
45659
+ };
45027
45660
  logistics_plan_impact_orders: {
45028
45661
  Args: {
45029
45662
  p_order_id: string;
@@ -45129,6 +45762,15 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
45129
45762
  };
45130
45763
  Returns: import("../integrations/supabase/types").Json;
45131
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
+ };
45132
45774
  logistics_resolve_settings: {
45133
45775
  Args: {
45134
45776
  p_config_id: string;
@@ -45259,14 +45901,6 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
45259
45901
  };
45260
45902
  Returns: string;
45261
45903
  };
45262
- maps_cron_token: {
45263
- Args: never;
45264
- Returns: string;
45265
- };
45266
- maps_kick_queue: {
45267
- Args: never;
45268
- Returns: undefined;
45269
- };
45270
45904
  mark_offer_clicked: {
45271
45905
  Args: {
45272
45906
  p_code: string;
@@ -45577,6 +46211,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
45577
46211
  };
45578
46212
  pick_enqueue_print_job: {
45579
46213
  Args: {
46214
+ _is_herprint?: boolean;
45580
46215
  _printer_id?: string;
45581
46216
  _queue_item_id: string;
45582
46217
  _session_id?: string;
@@ -45590,6 +46225,13 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
45590
46225
  };
45591
46226
  Returns: import("../integrations/supabase/types").Json;
45592
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
+ };
45593
46235
  pick_print_job_status: {
45594
46236
  Args: {
45595
46237
  _job_id: string;
@@ -45767,6 +46409,24 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
45767
46409
  };
45768
46410
  Returns: undefined;
45769
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
+ };
45770
46430
  process_logistics_event: {
45771
46431
  Args: {
45772
46432
  p_event_id: string;
@@ -45884,6 +46544,14 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
45884
46544
  };
45885
46545
  Returns: undefined;
45886
46546
  };
46547
+ replace_order_carts: {
46548
+ Args: {
46549
+ p_buffer_id: string;
46550
+ p_carts: import("../integrations/supabase/types").Json;
46551
+ p_order_id: string;
46552
+ };
46553
+ Returns: import("../integrations/supabase/types").Json;
46554
+ };
45887
46555
  reset_floriday_sync_cursor: {
45888
46556
  Args: {
45889
46557
  p_connection_id: string;
@@ -45913,6 +46581,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
45913
46581
  };
45914
46582
  Returns: string;
45915
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
+ };
45916
46590
  resolve_product_id_for_item: {
45917
46591
  Args: {
45918
46592
  p_product_name: string;
@@ -46504,7 +47178,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
46504
47178
  };
46505
47179
  CompositeTypes: { [_ in never]: never; };
46506
47180
  }, {
46507
- PostgrestVersion: "14.17";
47181
+ PostgrestVersion: "14.5";
46508
47182
  }>;
46509
47183
  userId: string;
46510
47184
  claims: import("@supabase/auth-js").User;
@@ -49375,6 +50049,84 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
49375
50049
  };
49376
50050
  Relationships: [];
49377
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
+ };
49378
50130
  document_bronregels: {
49379
50131
  Row: {
49380
50132
  bron: string;
@@ -52428,10 +53180,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
52428
53180
  };
52429
53181
  floriday_connections: {
52430
53182
  Row: {
52431
- access_token: string | null;
52432
53183
  api_key: string;
52433
- client_id: string;
52434
- client_secret: string;
52435
53184
  created_at: string;
52436
53185
  customers_endpoint: string | null;
52437
53186
  environment: string;
@@ -52446,10 +53195,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
52446
53195
  updated_at: string;
52447
53196
  };
52448
53197
  Insert: {
52449
- access_token?: string | null;
52450
53198
  api_key: string;
52451
- client_id: string;
52452
- client_secret: string;
52453
53199
  created_at?: string;
52454
53200
  customers_endpoint?: string | null;
52455
53201
  environment: string;
@@ -52464,10 +53210,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
52464
53210
  updated_at?: string;
52465
53211
  };
52466
53212
  Update: {
52467
- access_token?: string | null;
52468
53213
  api_key?: string;
52469
- client_id?: string;
52470
- client_secret?: string;
52471
53214
  created_at?: string;
52472
53215
  customers_endpoint?: string | null;
52473
53216
  environment?: string;
@@ -57338,6 +58081,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
57338
58081
  last_error: string | null;
57339
58082
  last_error_at: string | null;
57340
58083
  last_success_at: string | null;
58084
+ provider: string;
57341
58085
  updated_at: string;
57342
58086
  };
57343
58087
  Insert: {
@@ -57349,6 +58093,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
57349
58093
  last_error?: string | null;
57350
58094
  last_error_at?: string | null;
57351
58095
  last_success_at?: string | null;
58096
+ provider?: string;
57352
58097
  updated_at?: string;
57353
58098
  };
57354
58099
  Update: {
@@ -57360,6 +58105,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
57360
58105
  last_error?: string | null;
57361
58106
  last_error_at?: string | null;
57362
58107
  last_success_at?: string | null;
58108
+ provider?: string;
57363
58109
  updated_at?: string;
57364
58110
  };
57365
58111
  Relationships: [];
@@ -60097,6 +60843,39 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60097
60843
  };
60098
60844
  Relationships: [];
60099
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
+ };
60100
60879
  print_job_logs: {
60101
60880
  Row: {
60102
60881
  created_at: string;
@@ -60147,6 +60926,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60147
60926
  is_herprint: boolean;
60148
60927
  kopieen: number;
60149
60928
  layout_id: string | null;
60929
+ lokaal_opgeslagen_op: string | null;
60930
+ lokale_pdf_fout: string | null;
60931
+ lokale_pdf_status: string | null;
60150
60932
  opgepakt_op: string | null;
60151
60933
  paginas: number;
60152
60934
  payload: import("../integrations/supabase/types").Json;
@@ -60155,6 +60937,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60155
60937
  pogingen: number;
60156
60938
  printer_id: string | null;
60157
60939
  render_html: string | null;
60940
+ resultaat_pdf_base64: string | null;
60158
60941
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60159
60942
  updated_at: string;
60160
60943
  volgende_poging: string | null;
@@ -60179,6 +60962,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60179
60962
  is_herprint?: boolean;
60180
60963
  kopieen?: number;
60181
60964
  layout_id?: string | null;
60965
+ lokaal_opgeslagen_op?: string | null;
60966
+ lokale_pdf_fout?: string | null;
60967
+ lokale_pdf_status?: string | null;
60182
60968
  opgepakt_op?: string | null;
60183
60969
  paginas?: number;
60184
60970
  payload?: import("../integrations/supabase/types").Json;
@@ -60187,6 +60973,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60187
60973
  pogingen?: number;
60188
60974
  printer_id?: string | null;
60189
60975
  render_html?: string | null;
60976
+ resultaat_pdf_base64?: string | null;
60190
60977
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60191
60978
  updated_at?: string;
60192
60979
  volgende_poging?: string | null;
@@ -60211,6 +60998,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60211
60998
  is_herprint?: boolean;
60212
60999
  kopieen?: number;
60213
61000
  layout_id?: string | null;
61001
+ lokaal_opgeslagen_op?: string | null;
61002
+ lokale_pdf_fout?: string | null;
61003
+ lokale_pdf_status?: string | null;
60214
61004
  opgepakt_op?: string | null;
60215
61005
  paginas?: number;
60216
61006
  payload?: import("../integrations/supabase/types").Json;
@@ -60219,6 +61009,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60219
61009
  pogingen?: number;
60220
61010
  printer_id?: string | null;
60221
61011
  render_html?: string | null;
61012
+ resultaat_pdf_base64?: string | null;
60222
61013
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60223
61014
  updated_at?: string;
60224
61015
  volgende_poging?: string | null;
@@ -60337,6 +61128,39 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60337
61128
  };
60338
61129
  Relationships: [];
60339
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
+ };
60340
61164
  print_queue_runners: {
60341
61165
  Row: {
60342
61166
  actief: boolean;
@@ -60576,6 +61400,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60576
61400
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
60577
61401
  online: boolean;
60578
61402
  papierformaat: string;
61403
+ pdf_map: string | null;
60579
61404
  poort: number | null;
60580
61405
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60581
61406
  systeemnaam: string;
@@ -60601,6 +61426,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60601
61426
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60602
61427
  online?: boolean;
60603
61428
  papierformaat?: string;
61429
+ pdf_map?: string | null;
60604
61430
  poort?: number | null;
60605
61431
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60606
61432
  systeemnaam?: string;
@@ -60626,6 +61452,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
60626
61452
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60627
61453
  online?: boolean;
60628
61454
  papierformaat?: string;
61455
+ pdf_map?: string | null;
60629
61456
  poort?: number | null;
60630
61457
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60631
61458
  systeemnaam?: string;
@@ -66882,6 +67709,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
66882
67709
  is_herprint: boolean;
66883
67710
  kopieen: number;
66884
67711
  layout_id: string | null;
67712
+ lokaal_opgeslagen_op: string | null;
67713
+ lokale_pdf_fout: string | null;
67714
+ lokale_pdf_status: string | null;
66885
67715
  opgepakt_op: string | null;
66886
67716
  paginas: number;
66887
67717
  payload: import("../integrations/supabase/types").Json;
@@ -66890,6 +67720,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
66890
67720
  pogingen: number;
66891
67721
  printer_id: string | null;
66892
67722
  render_html: string | null;
67723
+ resultaat_pdf_base64: string | null;
66893
67724
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
66894
67725
  updated_at: string;
66895
67726
  volgende_poging: string | null;
@@ -66981,6 +67812,53 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
66981
67812
  isSetofReturn: true;
66982
67813
  };
66983
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
+ };
66984
67862
  claim_print_jobs: {
66985
67863
  Args: {
66986
67864
  _agent_id: string;
@@ -67005,6 +67883,9 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
67005
67883
  is_herprint: boolean;
67006
67884
  kopieen: number;
67007
67885
  layout_id: string | null;
67886
+ lokaal_opgeslagen_op: string | null;
67887
+ lokale_pdf_fout: string | null;
67888
+ lokale_pdf_status: string | null;
67008
67889
  opgepakt_op: string | null;
67009
67890
  paginas: number;
67010
67891
  payload: import("../integrations/supabase/types").Json;
@@ -67013,6 +67894,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
67013
67894
  pogingen: number;
67014
67895
  printer_id: string | null;
67015
67896
  render_html: string | null;
67897
+ resultaat_pdf_base64: string | null;
67016
67898
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67017
67899
  updated_at: string;
67018
67900
  volgende_poging: string | null;
@@ -67153,6 +68035,8 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
67153
68035
  order_id: string;
67154
68036
  order_source: string;
67155
68037
  pick_date: string;
68038
+ printed_at: string;
68039
+ printed_today: boolean;
67156
68040
  status: string;
67157
68041
  }[];
67158
68042
  };
@@ -67861,6 +68745,10 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
67861
68745
  };
67862
68746
  Returns: number;
67863
68747
  };
68748
+ logistics_cancel_orphan_tasks: {
68749
+ Args: never;
68750
+ Returns: number;
68751
+ };
67864
68752
  logistics_capacity_day_check: {
67865
68753
  Args: {
67866
68754
  p_from?: string;
@@ -67881,6 +68769,25 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
67881
68769
  };
67882
68770
  Returns: number;
67883
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
+ };
67884
68791
  logistics_check_order_allowed: {
67885
68792
  Args: {
67886
68793
  p_lines: import("../integrations/supabase/types").Json;
@@ -68029,6 +68936,17 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68029
68936
  isSetofReturn: false;
68030
68937
  };
68031
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
+ };
68032
68950
  logistics_delay_customer_email: {
68033
68951
  Args: {
68034
68952
  p_customer: string;
@@ -68118,6 +69036,16 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68118
69036
  isSetofReturn: false;
68119
69037
  };
68120
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
+ };
68121
69049
  logistics_floriday_claim_pushes: {
68122
69050
  Args: {
68123
69051
  _lease_seconds?: number;
@@ -68222,6 +69150,25 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68222
69150
  };
68223
69151
  Returns: number;
68224
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
+ };
68225
69172
  logistics_order_pick_day: {
68226
69173
  Args: {
68227
69174
  p_order_ref: string;
@@ -68234,6 +69181,22 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68234
69181
  };
68235
69182
  Returns: string;
68236
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
+ };
68237
69200
  logistics_pick_email_purpose: {
68238
69201
  Args: never;
68239
69202
  Returns: string;
@@ -68288,6 +69251,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68288
69251
  };
68289
69252
  Returns: undefined;
68290
69253
  };
69254
+ logistics_plan_floriday_order: {
69255
+ Args: {
69256
+ p_buffer_id?: string;
69257
+ p_order_id: string;
69258
+ };
69259
+ Returns: number;
69260
+ };
68291
69261
  logistics_plan_impact_orders: {
68292
69262
  Args: {
68293
69263
  p_order_id: string;
@@ -68393,6 +69363,15 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68393
69363
  };
68394
69364
  Returns: import("../integrations/supabase/types").Json;
68395
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
+ };
68396
69375
  logistics_resolve_settings: {
68397
69376
  Args: {
68398
69377
  p_config_id: string;
@@ -68523,14 +69502,6 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68523
69502
  };
68524
69503
  Returns: string;
68525
69504
  };
68526
- maps_cron_token: {
68527
- Args: never;
68528
- Returns: string;
68529
- };
68530
- maps_kick_queue: {
68531
- Args: never;
68532
- Returns: undefined;
68533
- };
68534
69505
  mark_offer_clicked: {
68535
69506
  Args: {
68536
69507
  p_code: string;
@@ -68841,6 +69812,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68841
69812
  };
68842
69813
  pick_enqueue_print_job: {
68843
69814
  Args: {
69815
+ _is_herprint?: boolean;
68844
69816
  _printer_id?: string;
68845
69817
  _queue_item_id: string;
68846
69818
  _session_id?: string;
@@ -68854,6 +69826,13 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68854
69826
  };
68855
69827
  Returns: import("../integrations/supabase/types").Json;
68856
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
+ };
68857
69836
  pick_print_job_status: {
68858
69837
  Args: {
68859
69838
  _job_id: string;
@@ -69031,6 +70010,24 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
69031
70010
  };
69032
70011
  Returns: undefined;
69033
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
+ };
69034
70031
  process_logistics_event: {
69035
70032
  Args: {
69036
70033
  p_event_id: string;
@@ -69148,6 +70145,14 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
69148
70145
  };
69149
70146
  Returns: undefined;
69150
70147
  };
70148
+ replace_order_carts: {
70149
+ Args: {
70150
+ p_buffer_id: string;
70151
+ p_carts: import("../integrations/supabase/types").Json;
70152
+ p_order_id: string;
70153
+ };
70154
+ Returns: import("../integrations/supabase/types").Json;
70155
+ };
69151
70156
  reset_floriday_sync_cursor: {
69152
70157
  Args: {
69153
70158
  p_connection_id: string;
@@ -69177,6 +70182,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
69177
70182
  };
69178
70183
  Returns: string;
69179
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
+ };
69180
70191
  resolve_product_id_for_item: {
69181
70192
  Args: {
69182
70193
  p_product_name: string;
@@ -69768,7 +70779,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
69768
70779
  };
69769
70780
  CompositeTypes: { [_ in never]: never; };
69770
70781
  }, {
69771
- PostgrestVersion: "14.17";
70782
+ PostgrestVersion: "14.5";
69772
70783
  }>;
69773
70784
  userId: string;
69774
70785
  claims: import("@supabase/auth-js").User;
@@ -72657,6 +73668,84 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
72657
73668
  };
72658
73669
  Relationships: [];
72659
73670
  };
73671
+ delivery_notes: {
73672
+ Row: {
73673
+ byte_size: number | null;
73674
+ connection_id: string | null;
73675
+ content_type: string;
73676
+ created_at: string;
73677
+ error_message: string | null;
73678
+ fetched_at: string | null;
73679
+ fulfillment_order_id: string | null;
73680
+ http_status: number | null;
73681
+ id: string;
73682
+ label_code: string | null;
73683
+ letter: string | null;
73684
+ load_carrier_index: number | null;
73685
+ load_carrier_type: string | null;
73686
+ order_id: string | null;
73687
+ order_number: string | null;
73688
+ packages: number | null;
73689
+ source: string;
73690
+ status: string;
73691
+ storage_bucket: string;
73692
+ storage_path: string | null;
73693
+ updated_at: string;
73694
+ };
73695
+ Insert: {
73696
+ byte_size?: number | null;
73697
+ connection_id?: string | null;
73698
+ content_type?: string;
73699
+ created_at?: string;
73700
+ error_message?: string | null;
73701
+ fetched_at?: string | null;
73702
+ fulfillment_order_id?: string | null;
73703
+ http_status?: number | null;
73704
+ id?: string;
73705
+ label_code?: string | null;
73706
+ letter?: string | null;
73707
+ load_carrier_index?: number | null;
73708
+ load_carrier_type?: string | null;
73709
+ order_id?: string | null;
73710
+ order_number?: string | null;
73711
+ packages?: number | null;
73712
+ source?: string;
73713
+ status?: string;
73714
+ storage_bucket?: string;
73715
+ storage_path?: string | null;
73716
+ updated_at?: string;
73717
+ };
73718
+ Update: {
73719
+ byte_size?: number | null;
73720
+ connection_id?: string | null;
73721
+ content_type?: string;
73722
+ created_at?: string;
73723
+ error_message?: string | null;
73724
+ fetched_at?: string | null;
73725
+ fulfillment_order_id?: string | null;
73726
+ http_status?: number | null;
73727
+ id?: string;
73728
+ label_code?: string | null;
73729
+ letter?: string | null;
73730
+ load_carrier_index?: number | null;
73731
+ load_carrier_type?: string | null;
73732
+ order_id?: string | null;
73733
+ order_number?: string | null;
73734
+ packages?: number | null;
73735
+ source?: string;
73736
+ status?: string;
73737
+ storage_bucket?: string;
73738
+ storage_path?: string | null;
73739
+ updated_at?: string;
73740
+ };
73741
+ Relationships: [{
73742
+ foreignKeyName: "delivery_notes_order_id_fkey";
73743
+ columns: ["order_id"];
73744
+ isOneToOne: false;
73745
+ referencedRelation: "orders";
73746
+ referencedColumns: ["id"];
73747
+ }];
73748
+ };
72660
73749
  document_bronregels: {
72661
73750
  Row: {
72662
73751
  bron: string;
@@ -75710,10 +76799,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
75710
76799
  };
75711
76800
  floriday_connections: {
75712
76801
  Row: {
75713
- access_token: string | null;
75714
76802
  api_key: string;
75715
- client_id: string;
75716
- client_secret: string;
75717
76803
  created_at: string;
75718
76804
  customers_endpoint: string | null;
75719
76805
  environment: string;
@@ -75728,10 +76814,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
75728
76814
  updated_at: string;
75729
76815
  };
75730
76816
  Insert: {
75731
- access_token?: string | null;
75732
76817
  api_key: string;
75733
- client_id: string;
75734
- client_secret: string;
75735
76818
  created_at?: string;
75736
76819
  customers_endpoint?: string | null;
75737
76820
  environment: string;
@@ -75746,10 +76829,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
75746
76829
  updated_at?: string;
75747
76830
  };
75748
76831
  Update: {
75749
- access_token?: string | null;
75750
76832
  api_key?: string;
75751
- client_id?: string;
75752
- client_secret?: string;
75753
76833
  created_at?: string;
75754
76834
  customers_endpoint?: string | null;
75755
76835
  environment?: string;
@@ -80620,6 +81700,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
80620
81700
  last_error: string | null;
80621
81701
  last_error_at: string | null;
80622
81702
  last_success_at: string | null;
81703
+ provider: string;
80623
81704
  updated_at: string;
80624
81705
  };
80625
81706
  Insert: {
@@ -80631,6 +81712,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
80631
81712
  last_error?: string | null;
80632
81713
  last_error_at?: string | null;
80633
81714
  last_success_at?: string | null;
81715
+ provider?: string;
80634
81716
  updated_at?: string;
80635
81717
  };
80636
81718
  Update: {
@@ -80642,6 +81724,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
80642
81724
  last_error?: string | null;
80643
81725
  last_error_at?: string | null;
80644
81726
  last_success_at?: string | null;
81727
+ provider?: string;
80645
81728
  updated_at?: string;
80646
81729
  };
80647
81730
  Relationships: [];
@@ -83379,6 +84462,39 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83379
84462
  };
83380
84463
  Relationships: [];
83381
84464
  };
84465
+ print_dedupe_events: {
84466
+ Row: {
84467
+ bestaande_job_id: string | null;
84468
+ created_at: string;
84469
+ detail: string | null;
84470
+ documentnaam: string | null;
84471
+ documenttype: string | null;
84472
+ id: string;
84473
+ idempotentie_sleutel: string;
84474
+ reden: string;
84475
+ };
84476
+ Insert: {
84477
+ bestaande_job_id?: string | null;
84478
+ created_at?: string;
84479
+ detail?: string | null;
84480
+ documentnaam?: string | null;
84481
+ documenttype?: string | null;
84482
+ id?: string;
84483
+ idempotentie_sleutel: string;
84484
+ reden: string;
84485
+ };
84486
+ Update: {
84487
+ bestaande_job_id?: string | null;
84488
+ created_at?: string;
84489
+ detail?: string | null;
84490
+ documentnaam?: string | null;
84491
+ documenttype?: string | null;
84492
+ id?: string;
84493
+ idempotentie_sleutel?: string;
84494
+ reden?: string;
84495
+ };
84496
+ Relationships: [];
84497
+ };
83382
84498
  print_job_logs: {
83383
84499
  Row: {
83384
84500
  created_at: string;
@@ -83429,6 +84545,9 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83429
84545
  is_herprint: boolean;
83430
84546
  kopieen: number;
83431
84547
  layout_id: string | null;
84548
+ lokaal_opgeslagen_op: string | null;
84549
+ lokale_pdf_fout: string | null;
84550
+ lokale_pdf_status: string | null;
83432
84551
  opgepakt_op: string | null;
83433
84552
  paginas: number;
83434
84553
  payload: import("../integrations/supabase/types").Json;
@@ -83437,6 +84556,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83437
84556
  pogingen: number;
83438
84557
  printer_id: string | null;
83439
84558
  render_html: string | null;
84559
+ resultaat_pdf_base64: string | null;
83440
84560
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83441
84561
  updated_at: string;
83442
84562
  volgende_poging: string | null;
@@ -83461,6 +84581,9 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83461
84581
  is_herprint?: boolean;
83462
84582
  kopieen?: number;
83463
84583
  layout_id?: string | null;
84584
+ lokaal_opgeslagen_op?: string | null;
84585
+ lokale_pdf_fout?: string | null;
84586
+ lokale_pdf_status?: string | null;
83464
84587
  opgepakt_op?: string | null;
83465
84588
  paginas?: number;
83466
84589
  payload?: import("../integrations/supabase/types").Json;
@@ -83469,6 +84592,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83469
84592
  pogingen?: number;
83470
84593
  printer_id?: string | null;
83471
84594
  render_html?: string | null;
84595
+ resultaat_pdf_base64?: string | null;
83472
84596
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83473
84597
  updated_at?: string;
83474
84598
  volgende_poging?: string | null;
@@ -83493,6 +84617,9 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83493
84617
  is_herprint?: boolean;
83494
84618
  kopieen?: number;
83495
84619
  layout_id?: string | null;
84620
+ lokaal_opgeslagen_op?: string | null;
84621
+ lokale_pdf_fout?: string | null;
84622
+ lokale_pdf_status?: string | null;
83496
84623
  opgepakt_op?: string | null;
83497
84624
  paginas?: number;
83498
84625
  payload?: import("../integrations/supabase/types").Json;
@@ -83501,6 +84628,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83501
84628
  pogingen?: number;
83502
84629
  printer_id?: string | null;
83503
84630
  render_html?: string | null;
84631
+ resultaat_pdf_base64?: string | null;
83504
84632
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83505
84633
  updated_at?: string;
83506
84634
  volgende_poging?: string | null;
@@ -83619,6 +84747,39 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83619
84747
  };
83620
84748
  Relationships: [];
83621
84749
  };
84750
+ print_preview_events: {
84751
+ Row: {
84752
+ code: string | null;
84753
+ created_at: string;
84754
+ detail: import("../integrations/supabase/types").Json;
84755
+ id: string;
84756
+ queue_item_id: string | null;
84757
+ reden: string | null;
84758
+ station_slug: string | null;
84759
+ uitkomst: string;
84760
+ };
84761
+ Insert: {
84762
+ code?: string | null;
84763
+ created_at?: string;
84764
+ detail?: import("../integrations/supabase/types").Json;
84765
+ id?: string;
84766
+ queue_item_id?: string | null;
84767
+ reden?: string | null;
84768
+ station_slug?: string | null;
84769
+ uitkomst?: string;
84770
+ };
84771
+ Update: {
84772
+ code?: string | null;
84773
+ created_at?: string;
84774
+ detail?: import("../integrations/supabase/types").Json;
84775
+ id?: string;
84776
+ queue_item_id?: string | null;
84777
+ reden?: string | null;
84778
+ station_slug?: string | null;
84779
+ uitkomst?: string;
84780
+ };
84781
+ Relationships: [];
84782
+ };
83622
84783
  print_queue_runners: {
83623
84784
  Row: {
83624
84785
  actief: boolean;
@@ -83858,6 +85019,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83858
85019
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
83859
85020
  online: boolean;
83860
85021
  papierformaat: string;
85022
+ pdf_map: string | null;
83861
85023
  poort: number | null;
83862
85024
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83863
85025
  systeemnaam: string;
@@ -83883,6 +85045,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83883
85045
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83884
85046
  online?: boolean;
83885
85047
  papierformaat?: string;
85048
+ pdf_map?: string | null;
83886
85049
  poort?: number | null;
83887
85050
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83888
85051
  systeemnaam?: string;
@@ -83908,6 +85071,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
83908
85071
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83909
85072
  online?: boolean;
83910
85073
  papierformaat?: string;
85074
+ pdf_map?: string | null;
83911
85075
  poort?: number | null;
83912
85076
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83913
85077
  systeemnaam?: string;
@@ -90164,6 +91328,9 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
90164
91328
  is_herprint: boolean;
90165
91329
  kopieen: number;
90166
91330
  layout_id: string | null;
91331
+ lokaal_opgeslagen_op: string | null;
91332
+ lokale_pdf_fout: string | null;
91333
+ lokale_pdf_status: string | null;
90167
91334
  opgepakt_op: string | null;
90168
91335
  paginas: number;
90169
91336
  payload: import("../integrations/supabase/types").Json;
@@ -90172,6 +91339,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
90172
91339
  pogingen: number;
90173
91340
  printer_id: string | null;
90174
91341
  render_html: string | null;
91342
+ resultaat_pdf_base64: string | null;
90175
91343
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90176
91344
  updated_at: string;
90177
91345
  volgende_poging: string | null;
@@ -90263,6 +91431,53 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
90263
91431
  isSetofReturn: true;
90264
91432
  };
90265
91433
  };
91434
+ claim_pdf_print_jobs: {
91435
+ Args: {
91436
+ _max?: number;
91437
+ };
91438
+ Returns: {
91439
+ agent_id: string | null;
91440
+ bron_job_id: string | null;
91441
+ created_at: string;
91442
+ documentnaam: string;
91443
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
91444
+ extern_job_id: string | null;
91445
+ foutmelding: string | null;
91446
+ gebruiker_id: string | null;
91447
+ gebruiker_naam: string;
91448
+ gebruikte_bron: string | null;
91449
+ gebruikte_layout_id: string | null;
91450
+ gestart_op: string | null;
91451
+ herkomst: string | null;
91452
+ id: string;
91453
+ idempotentie_sleutel: string | null;
91454
+ is_herprint: boolean;
91455
+ kopieen: number;
91456
+ layout_id: string | null;
91457
+ lokaal_opgeslagen_op: string | null;
91458
+ lokale_pdf_fout: string | null;
91459
+ lokale_pdf_status: string | null;
91460
+ opgepakt_op: string | null;
91461
+ paginas: number;
91462
+ payload: import("../integrations/supabase/types").Json;
91463
+ pdf_base64: string | null;
91464
+ pdf_url: string | null;
91465
+ pogingen: number;
91466
+ printer_id: string | null;
91467
+ render_html: string | null;
91468
+ resultaat_pdf_base64: string | null;
91469
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
91470
+ updated_at: string;
91471
+ volgende_poging: string | null;
91472
+ voltooid_op: string | null;
91473
+ }[];
91474
+ SetofOptions: {
91475
+ from: "*";
91476
+ to: "print_jobs";
91477
+ isOneToOne: false;
91478
+ isSetofReturn: true;
91479
+ };
91480
+ };
90266
91481
  claim_print_jobs: {
90267
91482
  Args: {
90268
91483
  _agent_id: string;
@@ -90287,6 +91502,9 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
90287
91502
  is_herprint: boolean;
90288
91503
  kopieen: number;
90289
91504
  layout_id: string | null;
91505
+ lokaal_opgeslagen_op: string | null;
91506
+ lokale_pdf_fout: string | null;
91507
+ lokale_pdf_status: string | null;
90290
91508
  opgepakt_op: string | null;
90291
91509
  paginas: number;
90292
91510
  payload: import("../integrations/supabase/types").Json;
@@ -90295,6 +91513,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
90295
91513
  pogingen: number;
90296
91514
  printer_id: string | null;
90297
91515
  render_html: string | null;
91516
+ resultaat_pdf_base64: string | null;
90298
91517
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90299
91518
  updated_at: string;
90300
91519
  volgende_poging: string | null;
@@ -90435,6 +91654,8 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
90435
91654
  order_id: string;
90436
91655
  order_source: string;
90437
91656
  pick_date: string;
91657
+ printed_at: string;
91658
+ printed_today: boolean;
90438
91659
  status: string;
90439
91660
  }[];
90440
91661
  };
@@ -91143,6 +92364,10 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
91143
92364
  };
91144
92365
  Returns: number;
91145
92366
  };
92367
+ logistics_cancel_orphan_tasks: {
92368
+ Args: never;
92369
+ Returns: number;
92370
+ };
91146
92371
  logistics_capacity_day_check: {
91147
92372
  Args: {
91148
92373
  p_from?: string;
@@ -91163,6 +92388,25 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
91163
92388
  };
91164
92389
  Returns: number;
91165
92390
  };
92391
+ logistics_cart_index: {
92392
+ Args: {
92393
+ p_from?: string;
92394
+ p_to?: string;
92395
+ };
92396
+ Returns: {
92397
+ cart_id: string;
92398
+ cart_index: number;
92399
+ cart_label: string;
92400
+ is_shared: boolean;
92401
+ order_number: string;
92402
+ order_source: string;
92403
+ order_uuid: string;
92404
+ pick_date: string;
92405
+ printed_at: string;
92406
+ shifted: boolean;
92407
+ task_status: string;
92408
+ }[];
92409
+ };
91166
92410
  logistics_check_order_allowed: {
91167
92411
  Args: {
91168
92412
  p_lines: import("../integrations/supabase/types").Json;
@@ -91311,6 +92555,17 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
91311
92555
  isSetofReturn: false;
91312
92556
  };
91313
92557
  };
92558
+ logistics_consistency_check: {
92559
+ Args: never;
92560
+ Returns: {
92561
+ agenda_carts: number;
92562
+ control_carts: number;
92563
+ ok: boolean;
92564
+ orphan_tasks: number;
92565
+ pick_date: string;
92566
+ raw_carts: number;
92567
+ }[];
92568
+ };
91314
92569
  logistics_delay_customer_email: {
91315
92570
  Args: {
91316
92571
  p_customer: string;
@@ -91400,6 +92655,16 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
91400
92655
  isSetofReturn: false;
91401
92656
  };
91402
92657
  };
92658
+ logistics_floriday_cart_plan: {
92659
+ Args: {
92660
+ p_order_id: string;
92661
+ };
92662
+ Returns: {
92663
+ carrier_type: string;
92664
+ idx: number;
92665
+ packages: number;
92666
+ }[];
92667
+ };
91403
92668
  logistics_floriday_claim_pushes: {
91404
92669
  Args: {
91405
92670
  _lease_seconds?: number;
@@ -91504,6 +92769,25 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
91504
92769
  };
91505
92770
  Returns: number;
91506
92771
  };
92772
+ logistics_order_overview: {
92773
+ Args: {
92774
+ p_from?: string;
92775
+ p_to?: string;
92776
+ };
92777
+ Returns: {
92778
+ cart_count: number;
92779
+ customer_name: string;
92780
+ delivery_date: string;
92781
+ order_number: string;
92782
+ order_source: string;
92783
+ order_uuid: string;
92784
+ pick_date: string;
92785
+ plant_count: number;
92786
+ printed_at: string;
92787
+ shifted: boolean;
92788
+ status: string;
92789
+ }[];
92790
+ };
91507
92791
  logistics_order_pick_day: {
91508
92792
  Args: {
91509
92793
  p_order_ref: string;
@@ -91516,6 +92800,22 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
91516
92800
  };
91517
92801
  Returns: string;
91518
92802
  };
92803
+ logistics_pick_agenda: {
92804
+ Args: {
92805
+ p_from?: string;
92806
+ p_to?: string;
92807
+ };
92808
+ Returns: {
92809
+ cart_count: number;
92810
+ in_preparation: number;
92811
+ order_count: number;
92812
+ orders: import("../integrations/supabase/types").Json;
92813
+ pick_date: string;
92814
+ plant_count: number;
92815
+ ready: number;
92816
+ shifted_count: number;
92817
+ }[];
92818
+ };
91519
92819
  logistics_pick_email_purpose: {
91520
92820
  Args: never;
91521
92821
  Returns: string;
@@ -91570,6 +92870,13 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
91570
92870
  };
91571
92871
  Returns: undefined;
91572
92872
  };
92873
+ logistics_plan_floriday_order: {
92874
+ Args: {
92875
+ p_buffer_id?: string;
92876
+ p_order_id: string;
92877
+ };
92878
+ Returns: number;
92879
+ };
91573
92880
  logistics_plan_impact_orders: {
91574
92881
  Args: {
91575
92882
  p_order_id: string;
@@ -91675,6 +92982,15 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
91675
92982
  };
91676
92983
  Returns: import("../integrations/supabase/types").Json;
91677
92984
  };
92985
+ logistics_resolve_pick_document: {
92986
+ Args: {
92987
+ _is_herprint: boolean;
92988
+ _queue_item_id: string;
92989
+ _session_id: string;
92990
+ _voorbeeld: boolean;
92991
+ };
92992
+ Returns: import("../integrations/supabase/types").Json;
92993
+ };
91678
92994
  logistics_resolve_settings: {
91679
92995
  Args: {
91680
92996
  p_config_id: string;
@@ -91805,14 +93121,6 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
91805
93121
  };
91806
93122
  Returns: string;
91807
93123
  };
91808
- maps_cron_token: {
91809
- Args: never;
91810
- Returns: string;
91811
- };
91812
- maps_kick_queue: {
91813
- Args: never;
91814
- Returns: undefined;
91815
- };
91816
93124
  mark_offer_clicked: {
91817
93125
  Args: {
91818
93126
  p_code: string;
@@ -92123,6 +93431,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
92123
93431
  };
92124
93432
  pick_enqueue_print_job: {
92125
93433
  Args: {
93434
+ _is_herprint?: boolean;
92126
93435
  _printer_id?: string;
92127
93436
  _queue_item_id: string;
92128
93437
  _session_id?: string;
@@ -92136,6 +93445,13 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
92136
93445
  };
92137
93446
  Returns: import("../integrations/supabase/types").Json;
92138
93447
  };
93448
+ pick_preview_job: {
93449
+ Args: {
93450
+ _queue_item_id: string;
93451
+ _station_slug: string;
93452
+ };
93453
+ Returns: import("../integrations/supabase/types").Json;
93454
+ };
92139
93455
  pick_print_job_status: {
92140
93456
  Args: {
92141
93457
  _job_id: string;
@@ -92313,6 +93629,24 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
92313
93629
  };
92314
93630
  Returns: undefined;
92315
93631
  };
93632
+ print_preview_toestaan: {
93633
+ Args: {
93634
+ _max?: number;
93635
+ _queue_item_id: string;
93636
+ _station_slug: string;
93637
+ _venster_sec?: number;
93638
+ };
93639
+ Returns: import("../integrations/supabase/types").Json;
93640
+ };
93641
+ print_preview_weiger: {
93642
+ Args: {
93643
+ _code: string;
93644
+ _queue_item_id: string;
93645
+ _reden: string;
93646
+ _station_slug: string;
93647
+ };
93648
+ Returns: undefined;
93649
+ };
92316
93650
  process_logistics_event: {
92317
93651
  Args: {
92318
93652
  p_event_id: string;
@@ -92430,6 +93764,14 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
92430
93764
  };
92431
93765
  Returns: undefined;
92432
93766
  };
93767
+ replace_order_carts: {
93768
+ Args: {
93769
+ p_buffer_id: string;
93770
+ p_carts: import("../integrations/supabase/types").Json;
93771
+ p_order_id: string;
93772
+ };
93773
+ Returns: import("../integrations/supabase/types").Json;
93774
+ };
92433
93775
  reset_floriday_sync_cursor: {
92434
93776
  Args: {
92435
93777
  p_connection_id: string;
@@ -92459,6 +93801,12 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
92459
93801
  };
92460
93802
  Returns: string;
92461
93803
  };
93804
+ resolve_print_job_printer_id: {
93805
+ Args: {
93806
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
93807
+ };
93808
+ Returns: string;
93809
+ };
92462
93810
  resolve_product_id_for_item: {
92463
93811
  Args: {
92464
93812
  p_product_name: string;
@@ -93050,7 +94398,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
93050
94398
  };
93051
94399
  CompositeTypes: { [_ in never]: never; };
93052
94400
  }, {
93053
- PostgrestVersion: "14.17";
94401
+ PostgrestVersion: "14.5";
93054
94402
  }>;
93055
94403
  userId: string;
93056
94404
  claims: import("@supabase/auth-js").User;
@@ -95910,6 +97258,84 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
95910
97258
  };
95911
97259
  Relationships: [];
95912
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
+ };
95913
97339
  document_bronregels: {
95914
97340
  Row: {
95915
97341
  bron: string;
@@ -98963,10 +100389,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
98963
100389
  };
98964
100390
  floriday_connections: {
98965
100391
  Row: {
98966
- access_token: string | null;
98967
100392
  api_key: string;
98968
- client_id: string;
98969
- client_secret: string;
98970
100393
  created_at: string;
98971
100394
  customers_endpoint: string | null;
98972
100395
  environment: string;
@@ -98981,10 +100404,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
98981
100404
  updated_at: string;
98982
100405
  };
98983
100406
  Insert: {
98984
- access_token?: string | null;
98985
100407
  api_key: string;
98986
- client_id: string;
98987
- client_secret: string;
98988
100408
  created_at?: string;
98989
100409
  customers_endpoint?: string | null;
98990
100410
  environment: string;
@@ -98999,10 +100419,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
98999
100419
  updated_at?: string;
99000
100420
  };
99001
100421
  Update: {
99002
- access_token?: string | null;
99003
100422
  api_key?: string;
99004
- client_id?: string;
99005
- client_secret?: string;
99006
100423
  created_at?: string;
99007
100424
  customers_endpoint?: string | null;
99008
100425
  environment?: string;
@@ -103873,6 +105290,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
103873
105290
  last_error: string | null;
103874
105291
  last_error_at: string | null;
103875
105292
  last_success_at: string | null;
105293
+ provider: string;
103876
105294
  updated_at: string;
103877
105295
  };
103878
105296
  Insert: {
@@ -103884,6 +105302,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
103884
105302
  last_error?: string | null;
103885
105303
  last_error_at?: string | null;
103886
105304
  last_success_at?: string | null;
105305
+ provider?: string;
103887
105306
  updated_at?: string;
103888
105307
  };
103889
105308
  Update: {
@@ -103895,6 +105314,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
103895
105314
  last_error?: string | null;
103896
105315
  last_error_at?: string | null;
103897
105316
  last_success_at?: string | null;
105317
+ provider?: string;
103898
105318
  updated_at?: string;
103899
105319
  };
103900
105320
  Relationships: [];
@@ -106632,6 +108052,39 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
106632
108052
  };
106633
108053
  Relationships: [];
106634
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
+ };
106635
108088
  print_job_logs: {
106636
108089
  Row: {
106637
108090
  created_at: string;
@@ -106682,6 +108135,9 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
106682
108135
  is_herprint: boolean;
106683
108136
  kopieen: number;
106684
108137
  layout_id: string | null;
108138
+ lokaal_opgeslagen_op: string | null;
108139
+ lokale_pdf_fout: string | null;
108140
+ lokale_pdf_status: string | null;
106685
108141
  opgepakt_op: string | null;
106686
108142
  paginas: number;
106687
108143
  payload: import("../integrations/supabase/types").Json;
@@ -106690,6 +108146,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
106690
108146
  pogingen: number;
106691
108147
  printer_id: string | null;
106692
108148
  render_html: string | null;
108149
+ resultaat_pdf_base64: string | null;
106693
108150
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
106694
108151
  updated_at: string;
106695
108152
  volgende_poging: string | null;
@@ -106714,6 +108171,9 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
106714
108171
  is_herprint?: boolean;
106715
108172
  kopieen?: number;
106716
108173
  layout_id?: string | null;
108174
+ lokaal_opgeslagen_op?: string | null;
108175
+ lokale_pdf_fout?: string | null;
108176
+ lokale_pdf_status?: string | null;
106717
108177
  opgepakt_op?: string | null;
106718
108178
  paginas?: number;
106719
108179
  payload?: import("../integrations/supabase/types").Json;
@@ -106722,6 +108182,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
106722
108182
  pogingen?: number;
106723
108183
  printer_id?: string | null;
106724
108184
  render_html?: string | null;
108185
+ resultaat_pdf_base64?: string | null;
106725
108186
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
106726
108187
  updated_at?: string;
106727
108188
  volgende_poging?: string | null;
@@ -106746,6 +108207,9 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
106746
108207
  is_herprint?: boolean;
106747
108208
  kopieen?: number;
106748
108209
  layout_id?: string | null;
108210
+ lokaal_opgeslagen_op?: string | null;
108211
+ lokale_pdf_fout?: string | null;
108212
+ lokale_pdf_status?: string | null;
106749
108213
  opgepakt_op?: string | null;
106750
108214
  paginas?: number;
106751
108215
  payload?: import("../integrations/supabase/types").Json;
@@ -106754,6 +108218,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
106754
108218
  pogingen?: number;
106755
108219
  printer_id?: string | null;
106756
108220
  render_html?: string | null;
108221
+ resultaat_pdf_base64?: string | null;
106757
108222
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
106758
108223
  updated_at?: string;
106759
108224
  volgende_poging?: string | null;
@@ -106872,6 +108337,39 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
106872
108337
  };
106873
108338
  Relationships: [];
106874
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
+ };
106875
108373
  print_queue_runners: {
106876
108374
  Row: {
106877
108375
  actief: boolean;
@@ -107111,6 +108609,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
107111
108609
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
107112
108610
  online: boolean;
107113
108611
  papierformaat: string;
108612
+ pdf_map: string | null;
107114
108613
  poort: number | null;
107115
108614
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107116
108615
  systeemnaam: string;
@@ -107136,6 +108635,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
107136
108635
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
107137
108636
  online?: boolean;
107138
108637
  papierformaat?: string;
108638
+ pdf_map?: string | null;
107139
108639
  poort?: number | null;
107140
108640
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107141
108641
  systeemnaam?: string;
@@ -107161,6 +108661,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
107161
108661
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
107162
108662
  online?: boolean;
107163
108663
  papierformaat?: string;
108664
+ pdf_map?: string | null;
107164
108665
  poort?: number | null;
107165
108666
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
107166
108667
  systeemnaam?: string;
@@ -113417,6 +114918,9 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
113417
114918
  is_herprint: boolean;
113418
114919
  kopieen: number;
113419
114920
  layout_id: string | null;
114921
+ lokaal_opgeslagen_op: string | null;
114922
+ lokale_pdf_fout: string | null;
114923
+ lokale_pdf_status: string | null;
113420
114924
  opgepakt_op: string | null;
113421
114925
  paginas: number;
113422
114926
  payload: import("../integrations/supabase/types").Json;
@@ -113425,6 +114929,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
113425
114929
  pogingen: number;
113426
114930
  printer_id: string | null;
113427
114931
  render_html: string | null;
114932
+ resultaat_pdf_base64: string | null;
113428
114933
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
113429
114934
  updated_at: string;
113430
114935
  volgende_poging: string | null;
@@ -113516,6 +115021,53 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
113516
115021
  isSetofReturn: true;
113517
115022
  };
113518
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
+ };
113519
115071
  claim_print_jobs: {
113520
115072
  Args: {
113521
115073
  _agent_id: string;
@@ -113540,6 +115092,9 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
113540
115092
  is_herprint: boolean;
113541
115093
  kopieen: number;
113542
115094
  layout_id: string | null;
115095
+ lokaal_opgeslagen_op: string | null;
115096
+ lokale_pdf_fout: string | null;
115097
+ lokale_pdf_status: string | null;
113543
115098
  opgepakt_op: string | null;
113544
115099
  paginas: number;
113545
115100
  payload: import("../integrations/supabase/types").Json;
@@ -113548,6 +115103,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
113548
115103
  pogingen: number;
113549
115104
  printer_id: string | null;
113550
115105
  render_html: string | null;
115106
+ resultaat_pdf_base64: string | null;
113551
115107
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
113552
115108
  updated_at: string;
113553
115109
  volgende_poging: string | null;
@@ -113688,6 +115244,8 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
113688
115244
  order_id: string;
113689
115245
  order_source: string;
113690
115246
  pick_date: string;
115247
+ printed_at: string;
115248
+ printed_today: boolean;
113691
115249
  status: string;
113692
115250
  }[];
113693
115251
  };
@@ -114396,6 +115954,10 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114396
115954
  };
114397
115955
  Returns: number;
114398
115956
  };
115957
+ logistics_cancel_orphan_tasks: {
115958
+ Args: never;
115959
+ Returns: number;
115960
+ };
114399
115961
  logistics_capacity_day_check: {
114400
115962
  Args: {
114401
115963
  p_from?: string;
@@ -114416,6 +115978,25 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114416
115978
  };
114417
115979
  Returns: number;
114418
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
+ };
114419
116000
  logistics_check_order_allowed: {
114420
116001
  Args: {
114421
116002
  p_lines: import("../integrations/supabase/types").Json;
@@ -114564,6 +116145,17 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114564
116145
  isSetofReturn: false;
114565
116146
  };
114566
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
+ };
114567
116159
  logistics_delay_customer_email: {
114568
116160
  Args: {
114569
116161
  p_customer: string;
@@ -114653,6 +116245,16 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114653
116245
  isSetofReturn: false;
114654
116246
  };
114655
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
+ };
114656
116258
  logistics_floriday_claim_pushes: {
114657
116259
  Args: {
114658
116260
  _lease_seconds?: number;
@@ -114757,6 +116359,25 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114757
116359
  };
114758
116360
  Returns: number;
114759
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
+ };
114760
116381
  logistics_order_pick_day: {
114761
116382
  Args: {
114762
116383
  p_order_ref: string;
@@ -114769,6 +116390,22 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114769
116390
  };
114770
116391
  Returns: string;
114771
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
+ };
114772
116409
  logistics_pick_email_purpose: {
114773
116410
  Args: never;
114774
116411
  Returns: string;
@@ -114823,6 +116460,13 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114823
116460
  };
114824
116461
  Returns: undefined;
114825
116462
  };
116463
+ logistics_plan_floriday_order: {
116464
+ Args: {
116465
+ p_buffer_id?: string;
116466
+ p_order_id: string;
116467
+ };
116468
+ Returns: number;
116469
+ };
114826
116470
  logistics_plan_impact_orders: {
114827
116471
  Args: {
114828
116472
  p_order_id: string;
@@ -114928,6 +116572,15 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114928
116572
  };
114929
116573
  Returns: import("../integrations/supabase/types").Json;
114930
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
+ };
114931
116584
  logistics_resolve_settings: {
114932
116585
  Args: {
114933
116586
  p_config_id: string;
@@ -115058,14 +116711,6 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
115058
116711
  };
115059
116712
  Returns: string;
115060
116713
  };
115061
- maps_cron_token: {
115062
- Args: never;
115063
- Returns: string;
115064
- };
115065
- maps_kick_queue: {
115066
- Args: never;
115067
- Returns: undefined;
115068
- };
115069
116714
  mark_offer_clicked: {
115070
116715
  Args: {
115071
116716
  p_code: string;
@@ -115376,6 +117021,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
115376
117021
  };
115377
117022
  pick_enqueue_print_job: {
115378
117023
  Args: {
117024
+ _is_herprint?: boolean;
115379
117025
  _printer_id?: string;
115380
117026
  _queue_item_id: string;
115381
117027
  _session_id?: string;
@@ -115389,6 +117035,13 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
115389
117035
  };
115390
117036
  Returns: import("../integrations/supabase/types").Json;
115391
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
+ };
115392
117045
  pick_print_job_status: {
115393
117046
  Args: {
115394
117047
  _job_id: string;
@@ -115566,6 +117219,24 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
115566
117219
  };
115567
117220
  Returns: undefined;
115568
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
+ };
115569
117240
  process_logistics_event: {
115570
117241
  Args: {
115571
117242
  p_event_id: string;
@@ -115683,6 +117354,14 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
115683
117354
  };
115684
117355
  Returns: undefined;
115685
117356
  };
117357
+ replace_order_carts: {
117358
+ Args: {
117359
+ p_buffer_id: string;
117360
+ p_carts: import("../integrations/supabase/types").Json;
117361
+ p_order_id: string;
117362
+ };
117363
+ Returns: import("../integrations/supabase/types").Json;
117364
+ };
115686
117365
  reset_floriday_sync_cursor: {
115687
117366
  Args: {
115688
117367
  p_connection_id: string;
@@ -115712,6 +117391,12 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
115712
117391
  };
115713
117392
  Returns: string;
115714
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
+ };
115715
117400
  resolve_product_id_for_item: {
115716
117401
  Args: {
115717
117402
  p_product_name: string;
@@ -116303,7 +117988,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
116303
117988
  };
116304
117989
  CompositeTypes: { [_ in never]: never; };
116305
117990
  }, {
116306
- PostgrestVersion: "14.17";
117991
+ PostgrestVersion: "14.5";
116307
117992
  }>;
116308
117993
  userId: string;
116309
117994
  claims: import("@supabase/auth-js").User;