@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
@@ -2852,6 +2852,84 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
2852
2852
  };
2853
2853
  Relationships: [];
2854
2854
  };
2855
+ delivery_notes: {
2856
+ Row: {
2857
+ byte_size: number | null;
2858
+ connection_id: string | null;
2859
+ content_type: string;
2860
+ created_at: string;
2861
+ error_message: string | null;
2862
+ fetched_at: string | null;
2863
+ fulfillment_order_id: string | null;
2864
+ http_status: number | null;
2865
+ id: string;
2866
+ label_code: string | null;
2867
+ letter: string | null;
2868
+ load_carrier_index: number | null;
2869
+ load_carrier_type: string | null;
2870
+ order_id: string | null;
2871
+ order_number: string | null;
2872
+ packages: number | null;
2873
+ source: string;
2874
+ status: string;
2875
+ storage_bucket: string;
2876
+ storage_path: string | null;
2877
+ updated_at: string;
2878
+ };
2879
+ Insert: {
2880
+ byte_size?: number | null;
2881
+ connection_id?: string | null;
2882
+ content_type?: string;
2883
+ created_at?: string;
2884
+ error_message?: string | null;
2885
+ fetched_at?: string | null;
2886
+ fulfillment_order_id?: string | null;
2887
+ http_status?: number | null;
2888
+ id?: string;
2889
+ label_code?: string | null;
2890
+ letter?: string | null;
2891
+ load_carrier_index?: number | null;
2892
+ load_carrier_type?: string | null;
2893
+ order_id?: string | null;
2894
+ order_number?: string | null;
2895
+ packages?: number | null;
2896
+ source?: string;
2897
+ status?: string;
2898
+ storage_bucket?: string;
2899
+ storage_path?: string | null;
2900
+ updated_at?: string;
2901
+ };
2902
+ Update: {
2903
+ byte_size?: number | null;
2904
+ connection_id?: string | null;
2905
+ content_type?: string;
2906
+ created_at?: string;
2907
+ error_message?: string | null;
2908
+ fetched_at?: string | null;
2909
+ fulfillment_order_id?: string | null;
2910
+ http_status?: number | null;
2911
+ id?: string;
2912
+ label_code?: string | null;
2913
+ letter?: string | null;
2914
+ load_carrier_index?: number | null;
2915
+ load_carrier_type?: string | null;
2916
+ order_id?: string | null;
2917
+ order_number?: string | null;
2918
+ packages?: number | null;
2919
+ source?: string;
2920
+ status?: string;
2921
+ storage_bucket?: string;
2922
+ storage_path?: string | null;
2923
+ updated_at?: string;
2924
+ };
2925
+ Relationships: [{
2926
+ foreignKeyName: "delivery_notes_order_id_fkey";
2927
+ columns: ["order_id"];
2928
+ isOneToOne: false;
2929
+ referencedRelation: "orders";
2930
+ referencedColumns: ["id"];
2931
+ }];
2932
+ };
2855
2933
  document_bronregels: {
2856
2934
  Row: {
2857
2935
  bron: string;
@@ -5905,10 +5983,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
5905
5983
  };
5906
5984
  floriday_connections: {
5907
5985
  Row: {
5908
- access_token: string | null;
5909
5986
  api_key: string;
5910
- client_id: string;
5911
- client_secret: string;
5912
5987
  created_at: string;
5913
5988
  customers_endpoint: string | null;
5914
5989
  environment: string;
@@ -5923,10 +5998,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
5923
5998
  updated_at: string;
5924
5999
  };
5925
6000
  Insert: {
5926
- access_token?: string | null;
5927
6001
  api_key: string;
5928
- client_id: string;
5929
- client_secret: string;
5930
6002
  created_at?: string;
5931
6003
  customers_endpoint?: string | null;
5932
6004
  environment: string;
@@ -5941,10 +6013,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
5941
6013
  updated_at?: string;
5942
6014
  };
5943
6015
  Update: {
5944
- access_token?: string | null;
5945
6016
  api_key?: string;
5946
- client_id?: string;
5947
- client_secret?: string;
5948
6017
  created_at?: string;
5949
6018
  customers_endpoint?: string | null;
5950
6019
  environment?: string;
@@ -10815,6 +10884,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
10815
10884
  last_error: string | null;
10816
10885
  last_error_at: string | null;
10817
10886
  last_success_at: string | null;
10887
+ provider: string;
10818
10888
  updated_at: string;
10819
10889
  };
10820
10890
  Insert: {
@@ -10826,6 +10896,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
10826
10896
  last_error?: string | null;
10827
10897
  last_error_at?: string | null;
10828
10898
  last_success_at?: string | null;
10899
+ provider?: string;
10829
10900
  updated_at?: string;
10830
10901
  };
10831
10902
  Update: {
@@ -10837,6 +10908,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
10837
10908
  last_error?: string | null;
10838
10909
  last_error_at?: string | null;
10839
10910
  last_success_at?: string | null;
10911
+ provider?: string;
10840
10912
  updated_at?: string;
10841
10913
  };
10842
10914
  Relationships: [];
@@ -13574,6 +13646,39 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13574
13646
  };
13575
13647
  Relationships: [];
13576
13648
  };
13649
+ print_dedupe_events: {
13650
+ Row: {
13651
+ bestaande_job_id: string | null;
13652
+ created_at: string;
13653
+ detail: string | null;
13654
+ documentnaam: string | null;
13655
+ documenttype: string | null;
13656
+ id: string;
13657
+ idempotentie_sleutel: string;
13658
+ reden: string;
13659
+ };
13660
+ Insert: {
13661
+ bestaande_job_id?: string | null;
13662
+ created_at?: string;
13663
+ detail?: string | null;
13664
+ documentnaam?: string | null;
13665
+ documenttype?: string | null;
13666
+ id?: string;
13667
+ idempotentie_sleutel: string;
13668
+ reden: string;
13669
+ };
13670
+ Update: {
13671
+ bestaande_job_id?: string | null;
13672
+ created_at?: string;
13673
+ detail?: string | null;
13674
+ documentnaam?: string | null;
13675
+ documenttype?: string | null;
13676
+ id?: string;
13677
+ idempotentie_sleutel?: string;
13678
+ reden?: string;
13679
+ };
13680
+ Relationships: [];
13681
+ };
13577
13682
  print_job_logs: {
13578
13683
  Row: {
13579
13684
  created_at: string;
@@ -13624,6 +13729,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13624
13729
  is_herprint: boolean;
13625
13730
  kopieen: number;
13626
13731
  layout_id: string | null;
13732
+ lokaal_opgeslagen_op: string | null;
13733
+ lokale_pdf_fout: string | null;
13734
+ lokale_pdf_status: string | null;
13627
13735
  opgepakt_op: string | null;
13628
13736
  paginas: number;
13629
13737
  payload: import("../integrations/supabase/types").Json;
@@ -13632,6 +13740,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13632
13740
  pogingen: number;
13633
13741
  printer_id: string | null;
13634
13742
  render_html: string | null;
13743
+ resultaat_pdf_base64: string | null;
13635
13744
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13636
13745
  updated_at: string;
13637
13746
  volgende_poging: string | null;
@@ -13656,6 +13765,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13656
13765
  is_herprint?: boolean;
13657
13766
  kopieen?: number;
13658
13767
  layout_id?: string | null;
13768
+ lokaal_opgeslagen_op?: string | null;
13769
+ lokale_pdf_fout?: string | null;
13770
+ lokale_pdf_status?: string | null;
13659
13771
  opgepakt_op?: string | null;
13660
13772
  paginas?: number;
13661
13773
  payload?: import("../integrations/supabase/types").Json;
@@ -13664,6 +13776,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13664
13776
  pogingen?: number;
13665
13777
  printer_id?: string | null;
13666
13778
  render_html?: string | null;
13779
+ resultaat_pdf_base64?: string | null;
13667
13780
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13668
13781
  updated_at?: string;
13669
13782
  volgende_poging?: string | null;
@@ -13688,6 +13801,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13688
13801
  is_herprint?: boolean;
13689
13802
  kopieen?: number;
13690
13803
  layout_id?: string | null;
13804
+ lokaal_opgeslagen_op?: string | null;
13805
+ lokale_pdf_fout?: string | null;
13806
+ lokale_pdf_status?: string | null;
13691
13807
  opgepakt_op?: string | null;
13692
13808
  paginas?: number;
13693
13809
  payload?: import("../integrations/supabase/types").Json;
@@ -13696,6 +13812,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13696
13812
  pogingen?: number;
13697
13813
  printer_id?: string | null;
13698
13814
  render_html?: string | null;
13815
+ resultaat_pdf_base64?: string | null;
13699
13816
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13700
13817
  updated_at?: string;
13701
13818
  volgende_poging?: string | null;
@@ -13814,6 +13931,39 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
13814
13931
  };
13815
13932
  Relationships: [];
13816
13933
  };
13934
+ print_preview_events: {
13935
+ Row: {
13936
+ code: string | null;
13937
+ created_at: string;
13938
+ detail: import("../integrations/supabase/types").Json;
13939
+ id: string;
13940
+ queue_item_id: string | null;
13941
+ reden: string | null;
13942
+ station_slug: string | null;
13943
+ uitkomst: string;
13944
+ };
13945
+ Insert: {
13946
+ code?: string | null;
13947
+ created_at?: string;
13948
+ detail?: import("../integrations/supabase/types").Json;
13949
+ id?: string;
13950
+ queue_item_id?: string | null;
13951
+ reden?: string | null;
13952
+ station_slug?: string | null;
13953
+ uitkomst?: string;
13954
+ };
13955
+ Update: {
13956
+ code?: string | null;
13957
+ created_at?: string;
13958
+ detail?: import("../integrations/supabase/types").Json;
13959
+ id?: string;
13960
+ queue_item_id?: string | null;
13961
+ reden?: string | null;
13962
+ station_slug?: string | null;
13963
+ uitkomst?: string;
13964
+ };
13965
+ Relationships: [];
13966
+ };
13817
13967
  print_queue_runners: {
13818
13968
  Row: {
13819
13969
  actief: boolean;
@@ -14053,6 +14203,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
14053
14203
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14054
14204
  online: boolean;
14055
14205
  papierformaat: string;
14206
+ pdf_map: string | null;
14056
14207
  poort: number | null;
14057
14208
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14058
14209
  systeemnaam: string;
@@ -14078,6 +14229,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
14078
14229
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14079
14230
  online?: boolean;
14080
14231
  papierformaat?: string;
14232
+ pdf_map?: string | null;
14081
14233
  poort?: number | null;
14082
14234
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14083
14235
  systeemnaam?: string;
@@ -14103,6 +14255,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
14103
14255
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14104
14256
  online?: boolean;
14105
14257
  papierformaat?: string;
14258
+ pdf_map?: string | null;
14106
14259
  poort?: number | null;
14107
14260
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14108
14261
  systeemnaam?: string;
@@ -20359,6 +20512,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20359
20512
  is_herprint: boolean;
20360
20513
  kopieen: number;
20361
20514
  layout_id: string | null;
20515
+ lokaal_opgeslagen_op: string | null;
20516
+ lokale_pdf_fout: string | null;
20517
+ lokale_pdf_status: string | null;
20362
20518
  opgepakt_op: string | null;
20363
20519
  paginas: number;
20364
20520
  payload: import("../integrations/supabase/types").Json;
@@ -20367,6 +20523,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20367
20523
  pogingen: number;
20368
20524
  printer_id: string | null;
20369
20525
  render_html: string | null;
20526
+ resultaat_pdf_base64: string | null;
20370
20527
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20371
20528
  updated_at: string;
20372
20529
  volgende_poging: string | null;
@@ -20458,6 +20615,53 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20458
20615
  isSetofReturn: true;
20459
20616
  };
20460
20617
  };
20618
+ claim_pdf_print_jobs: {
20619
+ Args: {
20620
+ _max?: number;
20621
+ };
20622
+ Returns: {
20623
+ agent_id: string | null;
20624
+ bron_job_id: string | null;
20625
+ created_at: string;
20626
+ documentnaam: string;
20627
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20628
+ extern_job_id: string | null;
20629
+ foutmelding: string | null;
20630
+ gebruiker_id: string | null;
20631
+ gebruiker_naam: string;
20632
+ gebruikte_bron: string | null;
20633
+ gebruikte_layout_id: string | null;
20634
+ gestart_op: string | null;
20635
+ herkomst: string | null;
20636
+ id: string;
20637
+ idempotentie_sleutel: string | null;
20638
+ is_herprint: boolean;
20639
+ kopieen: number;
20640
+ layout_id: string | null;
20641
+ lokaal_opgeslagen_op: string | null;
20642
+ lokale_pdf_fout: string | null;
20643
+ lokale_pdf_status: string | null;
20644
+ opgepakt_op: string | null;
20645
+ paginas: number;
20646
+ payload: import("../integrations/supabase/types").Json;
20647
+ pdf_base64: string | null;
20648
+ pdf_url: string | null;
20649
+ pogingen: number;
20650
+ printer_id: string | null;
20651
+ render_html: string | null;
20652
+ resultaat_pdf_base64: string | null;
20653
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20654
+ updated_at: string;
20655
+ volgende_poging: string | null;
20656
+ voltooid_op: string | null;
20657
+ }[];
20658
+ SetofOptions: {
20659
+ from: "*";
20660
+ to: "print_jobs";
20661
+ isOneToOne: false;
20662
+ isSetofReturn: true;
20663
+ };
20664
+ };
20461
20665
  claim_print_jobs: {
20462
20666
  Args: {
20463
20667
  _agent_id: string;
@@ -20482,6 +20686,9 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20482
20686
  is_herprint: boolean;
20483
20687
  kopieen: number;
20484
20688
  layout_id: string | null;
20689
+ lokaal_opgeslagen_op: string | null;
20690
+ lokale_pdf_fout: string | null;
20691
+ lokale_pdf_status: string | null;
20485
20692
  opgepakt_op: string | null;
20486
20693
  paginas: number;
20487
20694
  payload: import("../integrations/supabase/types").Json;
@@ -20490,6 +20697,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20490
20697
  pogingen: number;
20491
20698
  printer_id: string | null;
20492
20699
  render_html: string | null;
20700
+ resultaat_pdf_base64: string | null;
20493
20701
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20494
20702
  updated_at: string;
20495
20703
  volgende_poging: string | null;
@@ -20630,6 +20838,8 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
20630
20838
  order_id: string;
20631
20839
  order_source: string;
20632
20840
  pick_date: string;
20841
+ printed_at: string;
20842
+ printed_today: boolean;
20633
20843
  status: string;
20634
20844
  }[];
20635
20845
  };
@@ -21338,6 +21548,10 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21338
21548
  };
21339
21549
  Returns: number;
21340
21550
  };
21551
+ logistics_cancel_orphan_tasks: {
21552
+ Args: never;
21553
+ Returns: number;
21554
+ };
21341
21555
  logistics_capacity_day_check: {
21342
21556
  Args: {
21343
21557
  p_from?: string;
@@ -21358,6 +21572,25 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21358
21572
  };
21359
21573
  Returns: number;
21360
21574
  };
21575
+ logistics_cart_index: {
21576
+ Args: {
21577
+ p_from?: string;
21578
+ p_to?: string;
21579
+ };
21580
+ Returns: {
21581
+ cart_id: string;
21582
+ cart_index: number;
21583
+ cart_label: string;
21584
+ is_shared: boolean;
21585
+ order_number: string;
21586
+ order_source: string;
21587
+ order_uuid: string;
21588
+ pick_date: string;
21589
+ printed_at: string;
21590
+ shifted: boolean;
21591
+ task_status: string;
21592
+ }[];
21593
+ };
21361
21594
  logistics_check_order_allowed: {
21362
21595
  Args: {
21363
21596
  p_lines: import("../integrations/supabase/types").Json;
@@ -21506,6 +21739,17 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21506
21739
  isSetofReturn: false;
21507
21740
  };
21508
21741
  };
21742
+ logistics_consistency_check: {
21743
+ Args: never;
21744
+ Returns: {
21745
+ agenda_carts: number;
21746
+ control_carts: number;
21747
+ ok: boolean;
21748
+ orphan_tasks: number;
21749
+ pick_date: string;
21750
+ raw_carts: number;
21751
+ }[];
21752
+ };
21509
21753
  logistics_delay_customer_email: {
21510
21754
  Args: {
21511
21755
  p_customer: string;
@@ -21595,6 +21839,16 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21595
21839
  isSetofReturn: false;
21596
21840
  };
21597
21841
  };
21842
+ logistics_floriday_cart_plan: {
21843
+ Args: {
21844
+ p_order_id: string;
21845
+ };
21846
+ Returns: {
21847
+ carrier_type: string;
21848
+ idx: number;
21849
+ packages: number;
21850
+ }[];
21851
+ };
21598
21852
  logistics_floriday_claim_pushes: {
21599
21853
  Args: {
21600
21854
  _lease_seconds?: number;
@@ -21699,6 +21953,25 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21699
21953
  };
21700
21954
  Returns: number;
21701
21955
  };
21956
+ logistics_order_overview: {
21957
+ Args: {
21958
+ p_from?: string;
21959
+ p_to?: string;
21960
+ };
21961
+ Returns: {
21962
+ cart_count: number;
21963
+ customer_name: string;
21964
+ delivery_date: string;
21965
+ order_number: string;
21966
+ order_source: string;
21967
+ order_uuid: string;
21968
+ pick_date: string;
21969
+ plant_count: number;
21970
+ printed_at: string;
21971
+ shifted: boolean;
21972
+ status: string;
21973
+ }[];
21974
+ };
21702
21975
  logistics_order_pick_day: {
21703
21976
  Args: {
21704
21977
  p_order_ref: string;
@@ -21711,6 +21984,22 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21711
21984
  };
21712
21985
  Returns: string;
21713
21986
  };
21987
+ logistics_pick_agenda: {
21988
+ Args: {
21989
+ p_from?: string;
21990
+ p_to?: string;
21991
+ };
21992
+ Returns: {
21993
+ cart_count: number;
21994
+ in_preparation: number;
21995
+ order_count: number;
21996
+ orders: import("../integrations/supabase/types").Json;
21997
+ pick_date: string;
21998
+ plant_count: number;
21999
+ ready: number;
22000
+ shifted_count: number;
22001
+ }[];
22002
+ };
21714
22003
  logistics_pick_email_purpose: {
21715
22004
  Args: never;
21716
22005
  Returns: string;
@@ -21765,6 +22054,13 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21765
22054
  };
21766
22055
  Returns: undefined;
21767
22056
  };
22057
+ logistics_plan_floriday_order: {
22058
+ Args: {
22059
+ p_buffer_id?: string;
22060
+ p_order_id: string;
22061
+ };
22062
+ Returns: number;
22063
+ };
21768
22064
  logistics_plan_impact_orders: {
21769
22065
  Args: {
21770
22066
  p_order_id: string;
@@ -21870,6 +22166,15 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
21870
22166
  };
21871
22167
  Returns: import("../integrations/supabase/types").Json;
21872
22168
  };
22169
+ logistics_resolve_pick_document: {
22170
+ Args: {
22171
+ _is_herprint: boolean;
22172
+ _queue_item_id: string;
22173
+ _session_id: string;
22174
+ _voorbeeld: boolean;
22175
+ };
22176
+ Returns: import("../integrations/supabase/types").Json;
22177
+ };
21873
22178
  logistics_resolve_settings: {
21874
22179
  Args: {
21875
22180
  p_config_id: string;
@@ -22000,14 +22305,6 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22000
22305
  };
22001
22306
  Returns: string;
22002
22307
  };
22003
- maps_cron_token: {
22004
- Args: never;
22005
- Returns: string;
22006
- };
22007
- maps_kick_queue: {
22008
- Args: never;
22009
- Returns: undefined;
22010
- };
22011
22308
  mark_offer_clicked: {
22012
22309
  Args: {
22013
22310
  p_code: string;
@@ -22318,6 +22615,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22318
22615
  };
22319
22616
  pick_enqueue_print_job: {
22320
22617
  Args: {
22618
+ _is_herprint?: boolean;
22321
22619
  _printer_id?: string;
22322
22620
  _queue_item_id: string;
22323
22621
  _session_id?: string;
@@ -22331,6 +22629,13 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22331
22629
  };
22332
22630
  Returns: import("../integrations/supabase/types").Json;
22333
22631
  };
22632
+ pick_preview_job: {
22633
+ Args: {
22634
+ _queue_item_id: string;
22635
+ _station_slug: string;
22636
+ };
22637
+ Returns: import("../integrations/supabase/types").Json;
22638
+ };
22334
22639
  pick_print_job_status: {
22335
22640
  Args: {
22336
22641
  _job_id: string;
@@ -22508,6 +22813,24 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22508
22813
  };
22509
22814
  Returns: undefined;
22510
22815
  };
22816
+ print_preview_toestaan: {
22817
+ Args: {
22818
+ _max?: number;
22819
+ _queue_item_id: string;
22820
+ _station_slug: string;
22821
+ _venster_sec?: number;
22822
+ };
22823
+ Returns: import("../integrations/supabase/types").Json;
22824
+ };
22825
+ print_preview_weiger: {
22826
+ Args: {
22827
+ _code: string;
22828
+ _queue_item_id: string;
22829
+ _reden: string;
22830
+ _station_slug: string;
22831
+ };
22832
+ Returns: undefined;
22833
+ };
22511
22834
  process_logistics_event: {
22512
22835
  Args: {
22513
22836
  p_event_id: string;
@@ -22625,6 +22948,14 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22625
22948
  };
22626
22949
  Returns: undefined;
22627
22950
  };
22951
+ replace_order_carts: {
22952
+ Args: {
22953
+ p_buffer_id: string;
22954
+ p_carts: import("../integrations/supabase/types").Json;
22955
+ p_order_id: string;
22956
+ };
22957
+ Returns: import("../integrations/supabase/types").Json;
22958
+ };
22628
22959
  reset_floriday_sync_cursor: {
22629
22960
  Args: {
22630
22961
  p_connection_id: string;
@@ -22654,6 +22985,12 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
22654
22985
  };
22655
22986
  Returns: string;
22656
22987
  };
22988
+ resolve_print_job_printer_id: {
22989
+ Args: {
22990
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
22991
+ };
22992
+ Returns: string;
22993
+ };
22657
22994
  resolve_product_id_for_item: {
22658
22995
  Args: {
22659
22996
  p_product_name: string;
@@ -23245,7 +23582,7 @@ export declare const getInvoiceTimingSettings: import("@tanstack/start-client-co
23245
23582
  };
23246
23583
  CompositeTypes: { [_ in never]: never; };
23247
23584
  }, {
23248
- PostgrestVersion: "14.17";
23585
+ PostgrestVersion: "14.5";
23249
23586
  }>;
23250
23587
  userId: string;
23251
23588
  claims: import("@supabase/auth-js").User;
@@ -26103,6 +26440,84 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
26103
26440
  };
26104
26441
  Relationships: [];
26105
26442
  };
26443
+ delivery_notes: {
26444
+ Row: {
26445
+ byte_size: number | null;
26446
+ connection_id: string | null;
26447
+ content_type: string;
26448
+ created_at: string;
26449
+ error_message: string | null;
26450
+ fetched_at: string | null;
26451
+ fulfillment_order_id: string | null;
26452
+ http_status: number | null;
26453
+ id: string;
26454
+ label_code: string | null;
26455
+ letter: string | null;
26456
+ load_carrier_index: number | null;
26457
+ load_carrier_type: string | null;
26458
+ order_id: string | null;
26459
+ order_number: string | null;
26460
+ packages: number | null;
26461
+ source: string;
26462
+ status: string;
26463
+ storage_bucket: string;
26464
+ storage_path: string | null;
26465
+ updated_at: string;
26466
+ };
26467
+ Insert: {
26468
+ byte_size?: number | null;
26469
+ connection_id?: string | null;
26470
+ content_type?: string;
26471
+ created_at?: string;
26472
+ error_message?: string | null;
26473
+ fetched_at?: string | null;
26474
+ fulfillment_order_id?: string | null;
26475
+ http_status?: number | null;
26476
+ id?: string;
26477
+ label_code?: string | null;
26478
+ letter?: string | null;
26479
+ load_carrier_index?: number | null;
26480
+ load_carrier_type?: string | null;
26481
+ order_id?: string | null;
26482
+ order_number?: string | null;
26483
+ packages?: number | null;
26484
+ source?: string;
26485
+ status?: string;
26486
+ storage_bucket?: string;
26487
+ storage_path?: string | null;
26488
+ updated_at?: string;
26489
+ };
26490
+ Update: {
26491
+ byte_size?: number | null;
26492
+ connection_id?: string | null;
26493
+ content_type?: string;
26494
+ created_at?: string;
26495
+ error_message?: string | null;
26496
+ fetched_at?: string | null;
26497
+ fulfillment_order_id?: string | null;
26498
+ http_status?: number | null;
26499
+ id?: string;
26500
+ label_code?: string | null;
26501
+ letter?: string | null;
26502
+ load_carrier_index?: number | null;
26503
+ load_carrier_type?: string | null;
26504
+ order_id?: string | null;
26505
+ order_number?: string | null;
26506
+ packages?: number | null;
26507
+ source?: string;
26508
+ status?: string;
26509
+ storage_bucket?: string;
26510
+ storage_path?: string | null;
26511
+ updated_at?: string;
26512
+ };
26513
+ Relationships: [{
26514
+ foreignKeyName: "delivery_notes_order_id_fkey";
26515
+ columns: ["order_id"];
26516
+ isOneToOne: false;
26517
+ referencedRelation: "orders";
26518
+ referencedColumns: ["id"];
26519
+ }];
26520
+ };
26106
26521
  document_bronregels: {
26107
26522
  Row: {
26108
26523
  bron: string;
@@ -29156,10 +29571,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29156
29571
  };
29157
29572
  floriday_connections: {
29158
29573
  Row: {
29159
- access_token: string | null;
29160
29574
  api_key: string;
29161
- client_id: string;
29162
- client_secret: string;
29163
29575
  created_at: string;
29164
29576
  customers_endpoint: string | null;
29165
29577
  environment: string;
@@ -29174,10 +29586,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29174
29586
  updated_at: string;
29175
29587
  };
29176
29588
  Insert: {
29177
- access_token?: string | null;
29178
29589
  api_key: string;
29179
- client_id: string;
29180
- client_secret: string;
29181
29590
  created_at?: string;
29182
29591
  customers_endpoint?: string | null;
29183
29592
  environment: string;
@@ -29192,10 +29601,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
29192
29601
  updated_at?: string;
29193
29602
  };
29194
29603
  Update: {
29195
- access_token?: string | null;
29196
29604
  api_key?: string;
29197
- client_id?: string;
29198
- client_secret?: string;
29199
29605
  created_at?: string;
29200
29606
  customers_endpoint?: string | null;
29201
29607
  environment?: string;
@@ -34066,6 +34472,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
34066
34472
  last_error: string | null;
34067
34473
  last_error_at: string | null;
34068
34474
  last_success_at: string | null;
34475
+ provider: string;
34069
34476
  updated_at: string;
34070
34477
  };
34071
34478
  Insert: {
@@ -34077,6 +34484,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
34077
34484
  last_error?: string | null;
34078
34485
  last_error_at?: string | null;
34079
34486
  last_success_at?: string | null;
34487
+ provider?: string;
34080
34488
  updated_at?: string;
34081
34489
  };
34082
34490
  Update: {
@@ -34088,6 +34496,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
34088
34496
  last_error?: string | null;
34089
34497
  last_error_at?: string | null;
34090
34498
  last_success_at?: string | null;
34499
+ provider?: string;
34091
34500
  updated_at?: string;
34092
34501
  };
34093
34502
  Relationships: [];
@@ -36825,6 +37234,39 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36825
37234
  };
36826
37235
  Relationships: [];
36827
37236
  };
37237
+ print_dedupe_events: {
37238
+ Row: {
37239
+ bestaande_job_id: string | null;
37240
+ created_at: string;
37241
+ detail: string | null;
37242
+ documentnaam: string | null;
37243
+ documenttype: string | null;
37244
+ id: string;
37245
+ idempotentie_sleutel: string;
37246
+ reden: string;
37247
+ };
37248
+ Insert: {
37249
+ bestaande_job_id?: string | null;
37250
+ created_at?: string;
37251
+ detail?: string | null;
37252
+ documentnaam?: string | null;
37253
+ documenttype?: string | null;
37254
+ id?: string;
37255
+ idempotentie_sleutel: string;
37256
+ reden: string;
37257
+ };
37258
+ Update: {
37259
+ bestaande_job_id?: string | null;
37260
+ created_at?: string;
37261
+ detail?: string | null;
37262
+ documentnaam?: string | null;
37263
+ documenttype?: string | null;
37264
+ id?: string;
37265
+ idempotentie_sleutel?: string;
37266
+ reden?: string;
37267
+ };
37268
+ Relationships: [];
37269
+ };
36828
37270
  print_job_logs: {
36829
37271
  Row: {
36830
37272
  created_at: string;
@@ -36875,6 +37317,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36875
37317
  is_herprint: boolean;
36876
37318
  kopieen: number;
36877
37319
  layout_id: string | null;
37320
+ lokaal_opgeslagen_op: string | null;
37321
+ lokale_pdf_fout: string | null;
37322
+ lokale_pdf_status: string | null;
36878
37323
  opgepakt_op: string | null;
36879
37324
  paginas: number;
36880
37325
  payload: import("../integrations/supabase/types").Json;
@@ -36883,6 +37328,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36883
37328
  pogingen: number;
36884
37329
  printer_id: string | null;
36885
37330
  render_html: string | null;
37331
+ resultaat_pdf_base64: string | null;
36886
37332
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36887
37333
  updated_at: string;
36888
37334
  volgende_poging: string | null;
@@ -36907,6 +37353,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36907
37353
  is_herprint?: boolean;
36908
37354
  kopieen?: number;
36909
37355
  layout_id?: string | null;
37356
+ lokaal_opgeslagen_op?: string | null;
37357
+ lokale_pdf_fout?: string | null;
37358
+ lokale_pdf_status?: string | null;
36910
37359
  opgepakt_op?: string | null;
36911
37360
  paginas?: number;
36912
37361
  payload?: import("../integrations/supabase/types").Json;
@@ -36915,6 +37364,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36915
37364
  pogingen?: number;
36916
37365
  printer_id?: string | null;
36917
37366
  render_html?: string | null;
37367
+ resultaat_pdf_base64?: string | null;
36918
37368
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36919
37369
  updated_at?: string;
36920
37370
  volgende_poging?: string | null;
@@ -36939,6 +37389,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36939
37389
  is_herprint?: boolean;
36940
37390
  kopieen?: number;
36941
37391
  layout_id?: string | null;
37392
+ lokaal_opgeslagen_op?: string | null;
37393
+ lokale_pdf_fout?: string | null;
37394
+ lokale_pdf_status?: string | null;
36942
37395
  opgepakt_op?: string | null;
36943
37396
  paginas?: number;
36944
37397
  payload?: import("../integrations/supabase/types").Json;
@@ -36947,6 +37400,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
36947
37400
  pogingen?: number;
36948
37401
  printer_id?: string | null;
36949
37402
  render_html?: string | null;
37403
+ resultaat_pdf_base64?: string | null;
36950
37404
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36951
37405
  updated_at?: string;
36952
37406
  volgende_poging?: string | null;
@@ -37065,6 +37519,39 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
37065
37519
  };
37066
37520
  Relationships: [];
37067
37521
  };
37522
+ print_preview_events: {
37523
+ Row: {
37524
+ code: string | null;
37525
+ created_at: string;
37526
+ detail: import("../integrations/supabase/types").Json;
37527
+ id: string;
37528
+ queue_item_id: string | null;
37529
+ reden: string | null;
37530
+ station_slug: string | null;
37531
+ uitkomst: string;
37532
+ };
37533
+ Insert: {
37534
+ code?: string | null;
37535
+ created_at?: string;
37536
+ detail?: import("../integrations/supabase/types").Json;
37537
+ id?: string;
37538
+ queue_item_id?: string | null;
37539
+ reden?: string | null;
37540
+ station_slug?: string | null;
37541
+ uitkomst?: string;
37542
+ };
37543
+ Update: {
37544
+ code?: string | null;
37545
+ created_at?: string;
37546
+ detail?: import("../integrations/supabase/types").Json;
37547
+ id?: string;
37548
+ queue_item_id?: string | null;
37549
+ reden?: string | null;
37550
+ station_slug?: string | null;
37551
+ uitkomst?: string;
37552
+ };
37553
+ Relationships: [];
37554
+ };
37068
37555
  print_queue_runners: {
37069
37556
  Row: {
37070
37557
  actief: boolean;
@@ -37304,6 +37791,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
37304
37791
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37305
37792
  online: boolean;
37306
37793
  papierformaat: string;
37794
+ pdf_map: string | null;
37307
37795
  poort: number | null;
37308
37796
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37309
37797
  systeemnaam: string;
@@ -37329,6 +37817,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
37329
37817
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37330
37818
  online?: boolean;
37331
37819
  papierformaat?: string;
37820
+ pdf_map?: string | null;
37332
37821
  poort?: number | null;
37333
37822
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37334
37823
  systeemnaam?: string;
@@ -37354,6 +37843,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
37354
37843
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37355
37844
  online?: boolean;
37356
37845
  papierformaat?: string;
37846
+ pdf_map?: string | null;
37357
37847
  poort?: number | null;
37358
37848
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37359
37849
  systeemnaam?: string;
@@ -43610,6 +44100,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43610
44100
  is_herprint: boolean;
43611
44101
  kopieen: number;
43612
44102
  layout_id: string | null;
44103
+ lokaal_opgeslagen_op: string | null;
44104
+ lokale_pdf_fout: string | null;
44105
+ lokale_pdf_status: string | null;
43613
44106
  opgepakt_op: string | null;
43614
44107
  paginas: number;
43615
44108
  payload: import("../integrations/supabase/types").Json;
@@ -43618,6 +44111,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43618
44111
  pogingen: number;
43619
44112
  printer_id: string | null;
43620
44113
  render_html: string | null;
44114
+ resultaat_pdf_base64: string | null;
43621
44115
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43622
44116
  updated_at: string;
43623
44117
  volgende_poging: string | null;
@@ -43709,6 +44203,53 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43709
44203
  isSetofReturn: true;
43710
44204
  };
43711
44205
  };
44206
+ claim_pdf_print_jobs: {
44207
+ Args: {
44208
+ _max?: number;
44209
+ };
44210
+ Returns: {
44211
+ agent_id: string | null;
44212
+ bron_job_id: string | null;
44213
+ created_at: string;
44214
+ documentnaam: string;
44215
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44216
+ extern_job_id: string | null;
44217
+ foutmelding: string | null;
44218
+ gebruiker_id: string | null;
44219
+ gebruiker_naam: string;
44220
+ gebruikte_bron: string | null;
44221
+ gebruikte_layout_id: string | null;
44222
+ gestart_op: string | null;
44223
+ herkomst: string | null;
44224
+ id: string;
44225
+ idempotentie_sleutel: string | null;
44226
+ is_herprint: boolean;
44227
+ kopieen: number;
44228
+ layout_id: string | null;
44229
+ lokaal_opgeslagen_op: string | null;
44230
+ lokale_pdf_fout: string | null;
44231
+ lokale_pdf_status: string | null;
44232
+ opgepakt_op: string | null;
44233
+ paginas: number;
44234
+ payload: import("../integrations/supabase/types").Json;
44235
+ pdf_base64: string | null;
44236
+ pdf_url: string | null;
44237
+ pogingen: number;
44238
+ printer_id: string | null;
44239
+ render_html: string | null;
44240
+ resultaat_pdf_base64: string | null;
44241
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44242
+ updated_at: string;
44243
+ volgende_poging: string | null;
44244
+ voltooid_op: string | null;
44245
+ }[];
44246
+ SetofOptions: {
44247
+ from: "*";
44248
+ to: "print_jobs";
44249
+ isOneToOne: false;
44250
+ isSetofReturn: true;
44251
+ };
44252
+ };
43712
44253
  claim_print_jobs: {
43713
44254
  Args: {
43714
44255
  _agent_id: string;
@@ -43733,6 +44274,9 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43733
44274
  is_herprint: boolean;
43734
44275
  kopieen: number;
43735
44276
  layout_id: string | null;
44277
+ lokaal_opgeslagen_op: string | null;
44278
+ lokale_pdf_fout: string | null;
44279
+ lokale_pdf_status: string | null;
43736
44280
  opgepakt_op: string | null;
43737
44281
  paginas: number;
43738
44282
  payload: import("../integrations/supabase/types").Json;
@@ -43741,6 +44285,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43741
44285
  pogingen: number;
43742
44286
  printer_id: string | null;
43743
44287
  render_html: string | null;
44288
+ resultaat_pdf_base64: string | null;
43744
44289
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43745
44290
  updated_at: string;
43746
44291
  volgende_poging: string | null;
@@ -43881,6 +44426,8 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
43881
44426
  order_id: string;
43882
44427
  order_source: string;
43883
44428
  pick_date: string;
44429
+ printed_at: string;
44430
+ printed_today: boolean;
43884
44431
  status: string;
43885
44432
  }[];
43886
44433
  };
@@ -44589,6 +45136,10 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44589
45136
  };
44590
45137
  Returns: number;
44591
45138
  };
45139
+ logistics_cancel_orphan_tasks: {
45140
+ Args: never;
45141
+ Returns: number;
45142
+ };
44592
45143
  logistics_capacity_day_check: {
44593
45144
  Args: {
44594
45145
  p_from?: string;
@@ -44609,6 +45160,25 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44609
45160
  };
44610
45161
  Returns: number;
44611
45162
  };
45163
+ logistics_cart_index: {
45164
+ Args: {
45165
+ p_from?: string;
45166
+ p_to?: string;
45167
+ };
45168
+ Returns: {
45169
+ cart_id: string;
45170
+ cart_index: number;
45171
+ cart_label: string;
45172
+ is_shared: boolean;
45173
+ order_number: string;
45174
+ order_source: string;
45175
+ order_uuid: string;
45176
+ pick_date: string;
45177
+ printed_at: string;
45178
+ shifted: boolean;
45179
+ task_status: string;
45180
+ }[];
45181
+ };
44612
45182
  logistics_check_order_allowed: {
44613
45183
  Args: {
44614
45184
  p_lines: import("../integrations/supabase/types").Json;
@@ -44757,6 +45327,17 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44757
45327
  isSetofReturn: false;
44758
45328
  };
44759
45329
  };
45330
+ logistics_consistency_check: {
45331
+ Args: never;
45332
+ Returns: {
45333
+ agenda_carts: number;
45334
+ control_carts: number;
45335
+ ok: boolean;
45336
+ orphan_tasks: number;
45337
+ pick_date: string;
45338
+ raw_carts: number;
45339
+ }[];
45340
+ };
44760
45341
  logistics_delay_customer_email: {
44761
45342
  Args: {
44762
45343
  p_customer: string;
@@ -44846,6 +45427,16 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44846
45427
  isSetofReturn: false;
44847
45428
  };
44848
45429
  };
45430
+ logistics_floriday_cart_plan: {
45431
+ Args: {
45432
+ p_order_id: string;
45433
+ };
45434
+ Returns: {
45435
+ carrier_type: string;
45436
+ idx: number;
45437
+ packages: number;
45438
+ }[];
45439
+ };
44849
45440
  logistics_floriday_claim_pushes: {
44850
45441
  Args: {
44851
45442
  _lease_seconds?: number;
@@ -44950,6 +45541,25 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44950
45541
  };
44951
45542
  Returns: number;
44952
45543
  };
45544
+ logistics_order_overview: {
45545
+ Args: {
45546
+ p_from?: string;
45547
+ p_to?: string;
45548
+ };
45549
+ Returns: {
45550
+ cart_count: number;
45551
+ customer_name: string;
45552
+ delivery_date: string;
45553
+ order_number: string;
45554
+ order_source: string;
45555
+ order_uuid: string;
45556
+ pick_date: string;
45557
+ plant_count: number;
45558
+ printed_at: string;
45559
+ shifted: boolean;
45560
+ status: string;
45561
+ }[];
45562
+ };
44953
45563
  logistics_order_pick_day: {
44954
45564
  Args: {
44955
45565
  p_order_ref: string;
@@ -44962,6 +45572,22 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
44962
45572
  };
44963
45573
  Returns: string;
44964
45574
  };
45575
+ logistics_pick_agenda: {
45576
+ Args: {
45577
+ p_from?: string;
45578
+ p_to?: string;
45579
+ };
45580
+ Returns: {
45581
+ cart_count: number;
45582
+ in_preparation: number;
45583
+ order_count: number;
45584
+ orders: import("../integrations/supabase/types").Json;
45585
+ pick_date: string;
45586
+ plant_count: number;
45587
+ ready: number;
45588
+ shifted_count: number;
45589
+ }[];
45590
+ };
44965
45591
  logistics_pick_email_purpose: {
44966
45592
  Args: never;
44967
45593
  Returns: string;
@@ -45016,6 +45642,13 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45016
45642
  };
45017
45643
  Returns: undefined;
45018
45644
  };
45645
+ logistics_plan_floriday_order: {
45646
+ Args: {
45647
+ p_buffer_id?: string;
45648
+ p_order_id: string;
45649
+ };
45650
+ Returns: number;
45651
+ };
45019
45652
  logistics_plan_impact_orders: {
45020
45653
  Args: {
45021
45654
  p_order_id: string;
@@ -45121,6 +45754,15 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45121
45754
  };
45122
45755
  Returns: import("../integrations/supabase/types").Json;
45123
45756
  };
45757
+ logistics_resolve_pick_document: {
45758
+ Args: {
45759
+ _is_herprint: boolean;
45760
+ _queue_item_id: string;
45761
+ _session_id: string;
45762
+ _voorbeeld: boolean;
45763
+ };
45764
+ Returns: import("../integrations/supabase/types").Json;
45765
+ };
45124
45766
  logistics_resolve_settings: {
45125
45767
  Args: {
45126
45768
  p_config_id: string;
@@ -45251,14 +45893,6 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45251
45893
  };
45252
45894
  Returns: string;
45253
45895
  };
45254
- maps_cron_token: {
45255
- Args: never;
45256
- Returns: string;
45257
- };
45258
- maps_kick_queue: {
45259
- Args: never;
45260
- Returns: undefined;
45261
- };
45262
45896
  mark_offer_clicked: {
45263
45897
  Args: {
45264
45898
  p_code: string;
@@ -45569,6 +46203,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45569
46203
  };
45570
46204
  pick_enqueue_print_job: {
45571
46205
  Args: {
46206
+ _is_herprint?: boolean;
45572
46207
  _printer_id?: string;
45573
46208
  _queue_item_id: string;
45574
46209
  _session_id?: string;
@@ -45582,6 +46217,13 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45582
46217
  };
45583
46218
  Returns: import("../integrations/supabase/types").Json;
45584
46219
  };
46220
+ pick_preview_job: {
46221
+ Args: {
46222
+ _queue_item_id: string;
46223
+ _station_slug: string;
46224
+ };
46225
+ Returns: import("../integrations/supabase/types").Json;
46226
+ };
45585
46227
  pick_print_job_status: {
45586
46228
  Args: {
45587
46229
  _job_id: string;
@@ -45759,6 +46401,24 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45759
46401
  };
45760
46402
  Returns: undefined;
45761
46403
  };
46404
+ print_preview_toestaan: {
46405
+ Args: {
46406
+ _max?: number;
46407
+ _queue_item_id: string;
46408
+ _station_slug: string;
46409
+ _venster_sec?: number;
46410
+ };
46411
+ Returns: import("../integrations/supabase/types").Json;
46412
+ };
46413
+ print_preview_weiger: {
46414
+ Args: {
46415
+ _code: string;
46416
+ _queue_item_id: string;
46417
+ _reden: string;
46418
+ _station_slug: string;
46419
+ };
46420
+ Returns: undefined;
46421
+ };
45762
46422
  process_logistics_event: {
45763
46423
  Args: {
45764
46424
  p_event_id: string;
@@ -45876,6 +46536,14 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45876
46536
  };
45877
46537
  Returns: undefined;
45878
46538
  };
46539
+ replace_order_carts: {
46540
+ Args: {
46541
+ p_buffer_id: string;
46542
+ p_carts: import("../integrations/supabase/types").Json;
46543
+ p_order_id: string;
46544
+ };
46545
+ Returns: import("../integrations/supabase/types").Json;
46546
+ };
45879
46547
  reset_floriday_sync_cursor: {
45880
46548
  Args: {
45881
46549
  p_connection_id: string;
@@ -45905,6 +46573,12 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
45905
46573
  };
45906
46574
  Returns: string;
45907
46575
  };
46576
+ resolve_print_job_printer_id: {
46577
+ Args: {
46578
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
46579
+ };
46580
+ Returns: string;
46581
+ };
45908
46582
  resolve_product_id_for_item: {
45909
46583
  Args: {
45910
46584
  p_product_name: string;
@@ -46496,7 +47170,7 @@ export declare const saveInvoiceTimingSettings: import("@tanstack/start-client-c
46496
47170
  };
46497
47171
  CompositeTypes: { [_ in never]: never; };
46498
47172
  }, {
46499
- PostgrestVersion: "14.17";
47173
+ PostgrestVersion: "14.5";
46500
47174
  }>;
46501
47175
  userId: string;
46502
47176
  claims: import("@supabase/auth-js").User;
@@ -49367,6 +50041,84 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
49367
50041
  };
49368
50042
  Relationships: [];
49369
50043
  };
50044
+ delivery_notes: {
50045
+ Row: {
50046
+ byte_size: number | null;
50047
+ connection_id: string | null;
50048
+ content_type: string;
50049
+ created_at: string;
50050
+ error_message: string | null;
50051
+ fetched_at: string | null;
50052
+ fulfillment_order_id: string | null;
50053
+ http_status: number | null;
50054
+ id: string;
50055
+ label_code: string | null;
50056
+ letter: string | null;
50057
+ load_carrier_index: number | null;
50058
+ load_carrier_type: string | null;
50059
+ order_id: string | null;
50060
+ order_number: string | null;
50061
+ packages: number | null;
50062
+ source: string;
50063
+ status: string;
50064
+ storage_bucket: string;
50065
+ storage_path: string | null;
50066
+ updated_at: string;
50067
+ };
50068
+ Insert: {
50069
+ byte_size?: number | null;
50070
+ connection_id?: string | null;
50071
+ content_type?: string;
50072
+ created_at?: string;
50073
+ error_message?: string | null;
50074
+ fetched_at?: string | null;
50075
+ fulfillment_order_id?: string | null;
50076
+ http_status?: number | null;
50077
+ id?: string;
50078
+ label_code?: string | null;
50079
+ letter?: string | null;
50080
+ load_carrier_index?: number | null;
50081
+ load_carrier_type?: string | null;
50082
+ order_id?: string | null;
50083
+ order_number?: string | null;
50084
+ packages?: number | null;
50085
+ source?: string;
50086
+ status?: string;
50087
+ storage_bucket?: string;
50088
+ storage_path?: string | null;
50089
+ updated_at?: string;
50090
+ };
50091
+ Update: {
50092
+ byte_size?: number | null;
50093
+ connection_id?: string | null;
50094
+ content_type?: string;
50095
+ created_at?: string;
50096
+ error_message?: string | null;
50097
+ fetched_at?: string | null;
50098
+ fulfillment_order_id?: string | null;
50099
+ http_status?: number | null;
50100
+ id?: string;
50101
+ label_code?: string | null;
50102
+ letter?: string | null;
50103
+ load_carrier_index?: number | null;
50104
+ load_carrier_type?: string | null;
50105
+ order_id?: string | null;
50106
+ order_number?: string | null;
50107
+ packages?: number | null;
50108
+ source?: string;
50109
+ status?: string;
50110
+ storage_bucket?: string;
50111
+ storage_path?: string | null;
50112
+ updated_at?: string;
50113
+ };
50114
+ Relationships: [{
50115
+ foreignKeyName: "delivery_notes_order_id_fkey";
50116
+ columns: ["order_id"];
50117
+ isOneToOne: false;
50118
+ referencedRelation: "orders";
50119
+ referencedColumns: ["id"];
50120
+ }];
50121
+ };
49370
50122
  document_bronregels: {
49371
50123
  Row: {
49372
50124
  bron: string;
@@ -52420,10 +53172,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
52420
53172
  };
52421
53173
  floriday_connections: {
52422
53174
  Row: {
52423
- access_token: string | null;
52424
53175
  api_key: string;
52425
- client_id: string;
52426
- client_secret: string;
52427
53176
  created_at: string;
52428
53177
  customers_endpoint: string | null;
52429
53178
  environment: string;
@@ -52438,10 +53187,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
52438
53187
  updated_at: string;
52439
53188
  };
52440
53189
  Insert: {
52441
- access_token?: string | null;
52442
53190
  api_key: string;
52443
- client_id: string;
52444
- client_secret: string;
52445
53191
  created_at?: string;
52446
53192
  customers_endpoint?: string | null;
52447
53193
  environment: string;
@@ -52456,10 +53202,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
52456
53202
  updated_at?: string;
52457
53203
  };
52458
53204
  Update: {
52459
- access_token?: string | null;
52460
53205
  api_key?: string;
52461
- client_id?: string;
52462
- client_secret?: string;
52463
53206
  created_at?: string;
52464
53207
  customers_endpoint?: string | null;
52465
53208
  environment?: string;
@@ -57330,6 +58073,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
57330
58073
  last_error: string | null;
57331
58074
  last_error_at: string | null;
57332
58075
  last_success_at: string | null;
58076
+ provider: string;
57333
58077
  updated_at: string;
57334
58078
  };
57335
58079
  Insert: {
@@ -57341,6 +58085,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
57341
58085
  last_error?: string | null;
57342
58086
  last_error_at?: string | null;
57343
58087
  last_success_at?: string | null;
58088
+ provider?: string;
57344
58089
  updated_at?: string;
57345
58090
  };
57346
58091
  Update: {
@@ -57352,6 +58097,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
57352
58097
  last_error?: string | null;
57353
58098
  last_error_at?: string | null;
57354
58099
  last_success_at?: string | null;
58100
+ provider?: string;
57355
58101
  updated_at?: string;
57356
58102
  };
57357
58103
  Relationships: [];
@@ -60089,6 +60835,39 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60089
60835
  };
60090
60836
  Relationships: [];
60091
60837
  };
60838
+ print_dedupe_events: {
60839
+ Row: {
60840
+ bestaande_job_id: string | null;
60841
+ created_at: string;
60842
+ detail: string | null;
60843
+ documentnaam: string | null;
60844
+ documenttype: string | null;
60845
+ id: string;
60846
+ idempotentie_sleutel: string;
60847
+ reden: string;
60848
+ };
60849
+ Insert: {
60850
+ bestaande_job_id?: string | null;
60851
+ created_at?: string;
60852
+ detail?: string | null;
60853
+ documentnaam?: string | null;
60854
+ documenttype?: string | null;
60855
+ id?: string;
60856
+ idempotentie_sleutel: string;
60857
+ reden: string;
60858
+ };
60859
+ Update: {
60860
+ bestaande_job_id?: string | null;
60861
+ created_at?: string;
60862
+ detail?: string | null;
60863
+ documentnaam?: string | null;
60864
+ documenttype?: string | null;
60865
+ id?: string;
60866
+ idempotentie_sleutel?: string;
60867
+ reden?: string;
60868
+ };
60869
+ Relationships: [];
60870
+ };
60092
60871
  print_job_logs: {
60093
60872
  Row: {
60094
60873
  created_at: string;
@@ -60139,6 +60918,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60139
60918
  is_herprint: boolean;
60140
60919
  kopieen: number;
60141
60920
  layout_id: string | null;
60921
+ lokaal_opgeslagen_op: string | null;
60922
+ lokale_pdf_fout: string | null;
60923
+ lokale_pdf_status: string | null;
60142
60924
  opgepakt_op: string | null;
60143
60925
  paginas: number;
60144
60926
  payload: import("../integrations/supabase/types").Json;
@@ -60147,6 +60929,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60147
60929
  pogingen: number;
60148
60930
  printer_id: string | null;
60149
60931
  render_html: string | null;
60932
+ resultaat_pdf_base64: string | null;
60150
60933
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60151
60934
  updated_at: string;
60152
60935
  volgende_poging: string | null;
@@ -60171,6 +60954,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60171
60954
  is_herprint?: boolean;
60172
60955
  kopieen?: number;
60173
60956
  layout_id?: string | null;
60957
+ lokaal_opgeslagen_op?: string | null;
60958
+ lokale_pdf_fout?: string | null;
60959
+ lokale_pdf_status?: string | null;
60174
60960
  opgepakt_op?: string | null;
60175
60961
  paginas?: number;
60176
60962
  payload?: import("../integrations/supabase/types").Json;
@@ -60179,6 +60965,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60179
60965
  pogingen?: number;
60180
60966
  printer_id?: string | null;
60181
60967
  render_html?: string | null;
60968
+ resultaat_pdf_base64?: string | null;
60182
60969
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60183
60970
  updated_at?: string;
60184
60971
  volgende_poging?: string | null;
@@ -60203,6 +60990,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60203
60990
  is_herprint?: boolean;
60204
60991
  kopieen?: number;
60205
60992
  layout_id?: string | null;
60993
+ lokaal_opgeslagen_op?: string | null;
60994
+ lokale_pdf_fout?: string | null;
60995
+ lokale_pdf_status?: string | null;
60206
60996
  opgepakt_op?: string | null;
60207
60997
  paginas?: number;
60208
60998
  payload?: import("../integrations/supabase/types").Json;
@@ -60211,6 +61001,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60211
61001
  pogingen?: number;
60212
61002
  printer_id?: string | null;
60213
61003
  render_html?: string | null;
61004
+ resultaat_pdf_base64?: string | null;
60214
61005
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
60215
61006
  updated_at?: string;
60216
61007
  volgende_poging?: string | null;
@@ -60329,6 +61120,39 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60329
61120
  };
60330
61121
  Relationships: [];
60331
61122
  };
61123
+ print_preview_events: {
61124
+ Row: {
61125
+ code: string | null;
61126
+ created_at: string;
61127
+ detail: import("../integrations/supabase/types").Json;
61128
+ id: string;
61129
+ queue_item_id: string | null;
61130
+ reden: string | null;
61131
+ station_slug: string | null;
61132
+ uitkomst: string;
61133
+ };
61134
+ Insert: {
61135
+ code?: string | null;
61136
+ created_at?: string;
61137
+ detail?: import("../integrations/supabase/types").Json;
61138
+ id?: string;
61139
+ queue_item_id?: string | null;
61140
+ reden?: string | null;
61141
+ station_slug?: string | null;
61142
+ uitkomst?: string;
61143
+ };
61144
+ Update: {
61145
+ code?: string | null;
61146
+ created_at?: string;
61147
+ detail?: import("../integrations/supabase/types").Json;
61148
+ id?: string;
61149
+ queue_item_id?: string | null;
61150
+ reden?: string | null;
61151
+ station_slug?: string | null;
61152
+ uitkomst?: string;
61153
+ };
61154
+ Relationships: [];
61155
+ };
60332
61156
  print_queue_runners: {
60333
61157
  Row: {
60334
61158
  actief: boolean;
@@ -60568,6 +61392,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60568
61392
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
60569
61393
  online: boolean;
60570
61394
  papierformaat: string;
61395
+ pdf_map: string | null;
60571
61396
  poort: number | null;
60572
61397
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60573
61398
  systeemnaam: string;
@@ -60593,6 +61418,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60593
61418
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60594
61419
  online?: boolean;
60595
61420
  papierformaat?: string;
61421
+ pdf_map?: string | null;
60596
61422
  poort?: number | null;
60597
61423
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60598
61424
  systeemnaam?: string;
@@ -60618,6 +61444,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
60618
61444
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
60619
61445
  online?: boolean;
60620
61446
  papierformaat?: string;
61447
+ pdf_map?: string | null;
60621
61448
  poort?: number | null;
60622
61449
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
60623
61450
  systeemnaam?: string;
@@ -66874,6 +67701,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
66874
67701
  is_herprint: boolean;
66875
67702
  kopieen: number;
66876
67703
  layout_id: string | null;
67704
+ lokaal_opgeslagen_op: string | null;
67705
+ lokale_pdf_fout: string | null;
67706
+ lokale_pdf_status: string | null;
66877
67707
  opgepakt_op: string | null;
66878
67708
  paginas: number;
66879
67709
  payload: import("../integrations/supabase/types").Json;
@@ -66882,6 +67712,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
66882
67712
  pogingen: number;
66883
67713
  printer_id: string | null;
66884
67714
  render_html: string | null;
67715
+ resultaat_pdf_base64: string | null;
66885
67716
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
66886
67717
  updated_at: string;
66887
67718
  volgende_poging: string | null;
@@ -66973,6 +67804,53 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
66973
67804
  isSetofReturn: true;
66974
67805
  };
66975
67806
  };
67807
+ claim_pdf_print_jobs: {
67808
+ Args: {
67809
+ _max?: number;
67810
+ };
67811
+ Returns: {
67812
+ agent_id: string | null;
67813
+ bron_job_id: string | null;
67814
+ created_at: string;
67815
+ documentnaam: string;
67816
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
67817
+ extern_job_id: string | null;
67818
+ foutmelding: string | null;
67819
+ gebruiker_id: string | null;
67820
+ gebruiker_naam: string;
67821
+ gebruikte_bron: string | null;
67822
+ gebruikte_layout_id: string | null;
67823
+ gestart_op: string | null;
67824
+ herkomst: string | null;
67825
+ id: string;
67826
+ idempotentie_sleutel: string | null;
67827
+ is_herprint: boolean;
67828
+ kopieen: number;
67829
+ layout_id: string | null;
67830
+ lokaal_opgeslagen_op: string | null;
67831
+ lokale_pdf_fout: string | null;
67832
+ lokale_pdf_status: string | null;
67833
+ opgepakt_op: string | null;
67834
+ paginas: number;
67835
+ payload: import("../integrations/supabase/types").Json;
67836
+ pdf_base64: string | null;
67837
+ pdf_url: string | null;
67838
+ pogingen: number;
67839
+ printer_id: string | null;
67840
+ render_html: string | null;
67841
+ resultaat_pdf_base64: string | null;
67842
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67843
+ updated_at: string;
67844
+ volgende_poging: string | null;
67845
+ voltooid_op: string | null;
67846
+ }[];
67847
+ SetofOptions: {
67848
+ from: "*";
67849
+ to: "print_jobs";
67850
+ isOneToOne: false;
67851
+ isSetofReturn: true;
67852
+ };
67853
+ };
66976
67854
  claim_print_jobs: {
66977
67855
  Args: {
66978
67856
  _agent_id: string;
@@ -66997,6 +67875,9 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
66997
67875
  is_herprint: boolean;
66998
67876
  kopieen: number;
66999
67877
  layout_id: string | null;
67878
+ lokaal_opgeslagen_op: string | null;
67879
+ lokale_pdf_fout: string | null;
67880
+ lokale_pdf_status: string | null;
67000
67881
  opgepakt_op: string | null;
67001
67882
  paginas: number;
67002
67883
  payload: import("../integrations/supabase/types").Json;
@@ -67005,6 +67886,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
67005
67886
  pogingen: number;
67006
67887
  printer_id: string | null;
67007
67888
  render_html: string | null;
67889
+ resultaat_pdf_base64: string | null;
67008
67890
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
67009
67891
  updated_at: string;
67010
67892
  volgende_poging: string | null;
@@ -67145,6 +68027,8 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
67145
68027
  order_id: string;
67146
68028
  order_source: string;
67147
68029
  pick_date: string;
68030
+ printed_at: string;
68031
+ printed_today: boolean;
67148
68032
  status: string;
67149
68033
  }[];
67150
68034
  };
@@ -67853,6 +68737,10 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
67853
68737
  };
67854
68738
  Returns: number;
67855
68739
  };
68740
+ logistics_cancel_orphan_tasks: {
68741
+ Args: never;
68742
+ Returns: number;
68743
+ };
67856
68744
  logistics_capacity_day_check: {
67857
68745
  Args: {
67858
68746
  p_from?: string;
@@ -67873,6 +68761,25 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
67873
68761
  };
67874
68762
  Returns: number;
67875
68763
  };
68764
+ logistics_cart_index: {
68765
+ Args: {
68766
+ p_from?: string;
68767
+ p_to?: string;
68768
+ };
68769
+ Returns: {
68770
+ cart_id: string;
68771
+ cart_index: number;
68772
+ cart_label: string;
68773
+ is_shared: boolean;
68774
+ order_number: string;
68775
+ order_source: string;
68776
+ order_uuid: string;
68777
+ pick_date: string;
68778
+ printed_at: string;
68779
+ shifted: boolean;
68780
+ task_status: string;
68781
+ }[];
68782
+ };
67876
68783
  logistics_check_order_allowed: {
67877
68784
  Args: {
67878
68785
  p_lines: import("../integrations/supabase/types").Json;
@@ -68021,6 +68928,17 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68021
68928
  isSetofReturn: false;
68022
68929
  };
68023
68930
  };
68931
+ logistics_consistency_check: {
68932
+ Args: never;
68933
+ Returns: {
68934
+ agenda_carts: number;
68935
+ control_carts: number;
68936
+ ok: boolean;
68937
+ orphan_tasks: number;
68938
+ pick_date: string;
68939
+ raw_carts: number;
68940
+ }[];
68941
+ };
68024
68942
  logistics_delay_customer_email: {
68025
68943
  Args: {
68026
68944
  p_customer: string;
@@ -68110,6 +69028,16 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68110
69028
  isSetofReturn: false;
68111
69029
  };
68112
69030
  };
69031
+ logistics_floriday_cart_plan: {
69032
+ Args: {
69033
+ p_order_id: string;
69034
+ };
69035
+ Returns: {
69036
+ carrier_type: string;
69037
+ idx: number;
69038
+ packages: number;
69039
+ }[];
69040
+ };
68113
69041
  logistics_floriday_claim_pushes: {
68114
69042
  Args: {
68115
69043
  _lease_seconds?: number;
@@ -68214,6 +69142,25 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68214
69142
  };
68215
69143
  Returns: number;
68216
69144
  };
69145
+ logistics_order_overview: {
69146
+ Args: {
69147
+ p_from?: string;
69148
+ p_to?: string;
69149
+ };
69150
+ Returns: {
69151
+ cart_count: number;
69152
+ customer_name: string;
69153
+ delivery_date: string;
69154
+ order_number: string;
69155
+ order_source: string;
69156
+ order_uuid: string;
69157
+ pick_date: string;
69158
+ plant_count: number;
69159
+ printed_at: string;
69160
+ shifted: boolean;
69161
+ status: string;
69162
+ }[];
69163
+ };
68217
69164
  logistics_order_pick_day: {
68218
69165
  Args: {
68219
69166
  p_order_ref: string;
@@ -68226,6 +69173,22 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68226
69173
  };
68227
69174
  Returns: string;
68228
69175
  };
69176
+ logistics_pick_agenda: {
69177
+ Args: {
69178
+ p_from?: string;
69179
+ p_to?: string;
69180
+ };
69181
+ Returns: {
69182
+ cart_count: number;
69183
+ in_preparation: number;
69184
+ order_count: number;
69185
+ orders: import("../integrations/supabase/types").Json;
69186
+ pick_date: string;
69187
+ plant_count: number;
69188
+ ready: number;
69189
+ shifted_count: number;
69190
+ }[];
69191
+ };
68229
69192
  logistics_pick_email_purpose: {
68230
69193
  Args: never;
68231
69194
  Returns: string;
@@ -68280,6 +69243,13 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68280
69243
  };
68281
69244
  Returns: undefined;
68282
69245
  };
69246
+ logistics_plan_floriday_order: {
69247
+ Args: {
69248
+ p_buffer_id?: string;
69249
+ p_order_id: string;
69250
+ };
69251
+ Returns: number;
69252
+ };
68283
69253
  logistics_plan_impact_orders: {
68284
69254
  Args: {
68285
69255
  p_order_id: string;
@@ -68385,6 +69355,15 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68385
69355
  };
68386
69356
  Returns: import("../integrations/supabase/types").Json;
68387
69357
  };
69358
+ logistics_resolve_pick_document: {
69359
+ Args: {
69360
+ _is_herprint: boolean;
69361
+ _queue_item_id: string;
69362
+ _session_id: string;
69363
+ _voorbeeld: boolean;
69364
+ };
69365
+ Returns: import("../integrations/supabase/types").Json;
69366
+ };
68388
69367
  logistics_resolve_settings: {
68389
69368
  Args: {
68390
69369
  p_config_id: string;
@@ -68515,14 +69494,6 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68515
69494
  };
68516
69495
  Returns: string;
68517
69496
  };
68518
- maps_cron_token: {
68519
- Args: never;
68520
- Returns: string;
68521
- };
68522
- maps_kick_queue: {
68523
- Args: never;
68524
- Returns: undefined;
68525
- };
68526
69497
  mark_offer_clicked: {
68527
69498
  Args: {
68528
69499
  p_code: string;
@@ -68833,6 +69804,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68833
69804
  };
68834
69805
  pick_enqueue_print_job: {
68835
69806
  Args: {
69807
+ _is_herprint?: boolean;
68836
69808
  _printer_id?: string;
68837
69809
  _queue_item_id: string;
68838
69810
  _session_id?: string;
@@ -68846,6 +69818,13 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
68846
69818
  };
68847
69819
  Returns: import("../integrations/supabase/types").Json;
68848
69820
  };
69821
+ pick_preview_job: {
69822
+ Args: {
69823
+ _queue_item_id: string;
69824
+ _station_slug: string;
69825
+ };
69826
+ Returns: import("../integrations/supabase/types").Json;
69827
+ };
68849
69828
  pick_print_job_status: {
68850
69829
  Args: {
68851
69830
  _job_id: string;
@@ -69023,6 +70002,24 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
69023
70002
  };
69024
70003
  Returns: undefined;
69025
70004
  };
70005
+ print_preview_toestaan: {
70006
+ Args: {
70007
+ _max?: number;
70008
+ _queue_item_id: string;
70009
+ _station_slug: string;
70010
+ _venster_sec?: number;
70011
+ };
70012
+ Returns: import("../integrations/supabase/types").Json;
70013
+ };
70014
+ print_preview_weiger: {
70015
+ Args: {
70016
+ _code: string;
70017
+ _queue_item_id: string;
70018
+ _reden: string;
70019
+ _station_slug: string;
70020
+ };
70021
+ Returns: undefined;
70022
+ };
69026
70023
  process_logistics_event: {
69027
70024
  Args: {
69028
70025
  p_event_id: string;
@@ -69140,6 +70137,14 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
69140
70137
  };
69141
70138
  Returns: undefined;
69142
70139
  };
70140
+ replace_order_carts: {
70141
+ Args: {
70142
+ p_buffer_id: string;
70143
+ p_carts: import("../integrations/supabase/types").Json;
70144
+ p_order_id: string;
70145
+ };
70146
+ Returns: import("../integrations/supabase/types").Json;
70147
+ };
69143
70148
  reset_floriday_sync_cursor: {
69144
70149
  Args: {
69145
70150
  p_connection_id: string;
@@ -69169,6 +70174,12 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
69169
70174
  };
69170
70175
  Returns: string;
69171
70176
  };
70177
+ resolve_print_job_printer_id: {
70178
+ Args: {
70179
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
70180
+ };
70181
+ Returns: string;
70182
+ };
69172
70183
  resolve_product_id_for_item: {
69173
70184
  Args: {
69174
70185
  p_product_name: string;
@@ -69760,7 +70771,7 @@ export declare const recomputeInvoiceDueForOrder: import("@tanstack/start-client
69760
70771
  };
69761
70772
  CompositeTypes: { [_ in never]: never; };
69762
70773
  }, {
69763
- PostgrestVersion: "14.17";
70774
+ PostgrestVersion: "14.5";
69764
70775
  }>;
69765
70776
  userId: string;
69766
70777
  claims: import("@supabase/auth-js").User;
@@ -72622,6 +73633,84 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
72622
73633
  };
72623
73634
  Relationships: [];
72624
73635
  };
73636
+ delivery_notes: {
73637
+ Row: {
73638
+ byte_size: number | null;
73639
+ connection_id: string | null;
73640
+ content_type: string;
73641
+ created_at: string;
73642
+ error_message: string | null;
73643
+ fetched_at: string | null;
73644
+ fulfillment_order_id: string | null;
73645
+ http_status: number | null;
73646
+ id: string;
73647
+ label_code: string | null;
73648
+ letter: string | null;
73649
+ load_carrier_index: number | null;
73650
+ load_carrier_type: string | null;
73651
+ order_id: string | null;
73652
+ order_number: string | null;
73653
+ packages: number | null;
73654
+ source: string;
73655
+ status: string;
73656
+ storage_bucket: string;
73657
+ storage_path: string | null;
73658
+ updated_at: string;
73659
+ };
73660
+ Insert: {
73661
+ byte_size?: number | null;
73662
+ connection_id?: string | null;
73663
+ content_type?: string;
73664
+ created_at?: string;
73665
+ error_message?: string | null;
73666
+ fetched_at?: string | null;
73667
+ fulfillment_order_id?: string | null;
73668
+ http_status?: number | null;
73669
+ id?: string;
73670
+ label_code?: string | null;
73671
+ letter?: string | null;
73672
+ load_carrier_index?: number | null;
73673
+ load_carrier_type?: string | null;
73674
+ order_id?: string | null;
73675
+ order_number?: string | null;
73676
+ packages?: number | null;
73677
+ source?: string;
73678
+ status?: string;
73679
+ storage_bucket?: string;
73680
+ storage_path?: string | null;
73681
+ updated_at?: string;
73682
+ };
73683
+ Update: {
73684
+ byte_size?: number | null;
73685
+ connection_id?: string | null;
73686
+ content_type?: string;
73687
+ created_at?: string;
73688
+ error_message?: string | null;
73689
+ fetched_at?: string | null;
73690
+ fulfillment_order_id?: string | null;
73691
+ http_status?: number | null;
73692
+ id?: string;
73693
+ label_code?: string | null;
73694
+ letter?: string | null;
73695
+ load_carrier_index?: number | null;
73696
+ load_carrier_type?: string | null;
73697
+ order_id?: string | null;
73698
+ order_number?: string | null;
73699
+ packages?: number | null;
73700
+ source?: string;
73701
+ status?: string;
73702
+ storage_bucket?: string;
73703
+ storage_path?: string | null;
73704
+ updated_at?: string;
73705
+ };
73706
+ Relationships: [{
73707
+ foreignKeyName: "delivery_notes_order_id_fkey";
73708
+ columns: ["order_id"];
73709
+ isOneToOne: false;
73710
+ referencedRelation: "orders";
73711
+ referencedColumns: ["id"];
73712
+ }];
73713
+ };
72625
73714
  document_bronregels: {
72626
73715
  Row: {
72627
73716
  bron: string;
@@ -75675,10 +76764,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
75675
76764
  };
75676
76765
  floriday_connections: {
75677
76766
  Row: {
75678
- access_token: string | null;
75679
76767
  api_key: string;
75680
- client_id: string;
75681
- client_secret: string;
75682
76768
  created_at: string;
75683
76769
  customers_endpoint: string | null;
75684
76770
  environment: string;
@@ -75693,10 +76779,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
75693
76779
  updated_at: string;
75694
76780
  };
75695
76781
  Insert: {
75696
- access_token?: string | null;
75697
76782
  api_key: string;
75698
- client_id: string;
75699
- client_secret: string;
75700
76783
  created_at?: string;
75701
76784
  customers_endpoint?: string | null;
75702
76785
  environment: string;
@@ -75711,10 +76794,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
75711
76794
  updated_at?: string;
75712
76795
  };
75713
76796
  Update: {
75714
- access_token?: string | null;
75715
76797
  api_key?: string;
75716
- client_id?: string;
75717
- client_secret?: string;
75718
76798
  created_at?: string;
75719
76799
  customers_endpoint?: string | null;
75720
76800
  environment?: string;
@@ -80585,6 +81665,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
80585
81665
  last_error: string | null;
80586
81666
  last_error_at: string | null;
80587
81667
  last_success_at: string | null;
81668
+ provider: string;
80588
81669
  updated_at: string;
80589
81670
  };
80590
81671
  Insert: {
@@ -80596,6 +81677,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
80596
81677
  last_error?: string | null;
80597
81678
  last_error_at?: string | null;
80598
81679
  last_success_at?: string | null;
81680
+ provider?: string;
80599
81681
  updated_at?: string;
80600
81682
  };
80601
81683
  Update: {
@@ -80607,6 +81689,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
80607
81689
  last_error?: string | null;
80608
81690
  last_error_at?: string | null;
80609
81691
  last_success_at?: string | null;
81692
+ provider?: string;
80610
81693
  updated_at?: string;
80611
81694
  };
80612
81695
  Relationships: [];
@@ -83344,6 +84427,39 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83344
84427
  };
83345
84428
  Relationships: [];
83346
84429
  };
84430
+ print_dedupe_events: {
84431
+ Row: {
84432
+ bestaande_job_id: string | null;
84433
+ created_at: string;
84434
+ detail: string | null;
84435
+ documentnaam: string | null;
84436
+ documenttype: string | null;
84437
+ id: string;
84438
+ idempotentie_sleutel: string;
84439
+ reden: string;
84440
+ };
84441
+ Insert: {
84442
+ bestaande_job_id?: string | null;
84443
+ created_at?: string;
84444
+ detail?: string | null;
84445
+ documentnaam?: string | null;
84446
+ documenttype?: string | null;
84447
+ id?: string;
84448
+ idempotentie_sleutel: string;
84449
+ reden: string;
84450
+ };
84451
+ Update: {
84452
+ bestaande_job_id?: string | null;
84453
+ created_at?: string;
84454
+ detail?: string | null;
84455
+ documentnaam?: string | null;
84456
+ documenttype?: string | null;
84457
+ id?: string;
84458
+ idempotentie_sleutel?: string;
84459
+ reden?: string;
84460
+ };
84461
+ Relationships: [];
84462
+ };
83347
84463
  print_job_logs: {
83348
84464
  Row: {
83349
84465
  created_at: string;
@@ -83394,6 +84510,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83394
84510
  is_herprint: boolean;
83395
84511
  kopieen: number;
83396
84512
  layout_id: string | null;
84513
+ lokaal_opgeslagen_op: string | null;
84514
+ lokale_pdf_fout: string | null;
84515
+ lokale_pdf_status: string | null;
83397
84516
  opgepakt_op: string | null;
83398
84517
  paginas: number;
83399
84518
  payload: import("../integrations/supabase/types").Json;
@@ -83402,6 +84521,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83402
84521
  pogingen: number;
83403
84522
  printer_id: string | null;
83404
84523
  render_html: string | null;
84524
+ resultaat_pdf_base64: string | null;
83405
84525
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83406
84526
  updated_at: string;
83407
84527
  volgende_poging: string | null;
@@ -83426,6 +84546,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83426
84546
  is_herprint?: boolean;
83427
84547
  kopieen?: number;
83428
84548
  layout_id?: string | null;
84549
+ lokaal_opgeslagen_op?: string | null;
84550
+ lokale_pdf_fout?: string | null;
84551
+ lokale_pdf_status?: string | null;
83429
84552
  opgepakt_op?: string | null;
83430
84553
  paginas?: number;
83431
84554
  payload?: import("../integrations/supabase/types").Json;
@@ -83434,6 +84557,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83434
84557
  pogingen?: number;
83435
84558
  printer_id?: string | null;
83436
84559
  render_html?: string | null;
84560
+ resultaat_pdf_base64?: string | null;
83437
84561
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83438
84562
  updated_at?: string;
83439
84563
  volgende_poging?: string | null;
@@ -83458,6 +84582,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83458
84582
  is_herprint?: boolean;
83459
84583
  kopieen?: number;
83460
84584
  layout_id?: string | null;
84585
+ lokaal_opgeslagen_op?: string | null;
84586
+ lokale_pdf_fout?: string | null;
84587
+ lokale_pdf_status?: string | null;
83461
84588
  opgepakt_op?: string | null;
83462
84589
  paginas?: number;
83463
84590
  payload?: import("../integrations/supabase/types").Json;
@@ -83466,6 +84593,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83466
84593
  pogingen?: number;
83467
84594
  printer_id?: string | null;
83468
84595
  render_html?: string | null;
84596
+ resultaat_pdf_base64?: string | null;
83469
84597
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
83470
84598
  updated_at?: string;
83471
84599
  volgende_poging?: string | null;
@@ -83584,6 +84712,39 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83584
84712
  };
83585
84713
  Relationships: [];
83586
84714
  };
84715
+ print_preview_events: {
84716
+ Row: {
84717
+ code: string | null;
84718
+ created_at: string;
84719
+ detail: import("../integrations/supabase/types").Json;
84720
+ id: string;
84721
+ queue_item_id: string | null;
84722
+ reden: string | null;
84723
+ station_slug: string | null;
84724
+ uitkomst: string;
84725
+ };
84726
+ Insert: {
84727
+ code?: string | null;
84728
+ created_at?: string;
84729
+ detail?: import("../integrations/supabase/types").Json;
84730
+ id?: string;
84731
+ queue_item_id?: string | null;
84732
+ reden?: string | null;
84733
+ station_slug?: string | null;
84734
+ uitkomst?: string;
84735
+ };
84736
+ Update: {
84737
+ code?: string | null;
84738
+ created_at?: string;
84739
+ detail?: import("../integrations/supabase/types").Json;
84740
+ id?: string;
84741
+ queue_item_id?: string | null;
84742
+ reden?: string | null;
84743
+ station_slug?: string | null;
84744
+ uitkomst?: string;
84745
+ };
84746
+ Relationships: [];
84747
+ };
83587
84748
  print_queue_runners: {
83588
84749
  Row: {
83589
84750
  actief: boolean;
@@ -83823,6 +84984,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83823
84984
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
83824
84985
  online: boolean;
83825
84986
  papierformaat: string;
84987
+ pdf_map: string | null;
83826
84988
  poort: number | null;
83827
84989
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83828
84990
  systeemnaam: string;
@@ -83848,6 +85010,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83848
85010
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83849
85011
  online?: boolean;
83850
85012
  papierformaat?: string;
85013
+ pdf_map?: string | null;
83851
85014
  poort?: number | null;
83852
85015
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83853
85016
  systeemnaam?: string;
@@ -83873,6 +85036,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
83873
85036
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
83874
85037
  online?: boolean;
83875
85038
  papierformaat?: string;
85039
+ pdf_map?: string | null;
83876
85040
  poort?: number | null;
83877
85041
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
83878
85042
  systeemnaam?: string;
@@ -90129,6 +91293,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90129
91293
  is_herprint: boolean;
90130
91294
  kopieen: number;
90131
91295
  layout_id: string | null;
91296
+ lokaal_opgeslagen_op: string | null;
91297
+ lokale_pdf_fout: string | null;
91298
+ lokale_pdf_status: string | null;
90132
91299
  opgepakt_op: string | null;
90133
91300
  paginas: number;
90134
91301
  payload: import("../integrations/supabase/types").Json;
@@ -90137,6 +91304,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90137
91304
  pogingen: number;
90138
91305
  printer_id: string | null;
90139
91306
  render_html: string | null;
91307
+ resultaat_pdf_base64: string | null;
90140
91308
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90141
91309
  updated_at: string;
90142
91310
  volgende_poging: string | null;
@@ -90228,6 +91396,53 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90228
91396
  isSetofReturn: true;
90229
91397
  };
90230
91398
  };
91399
+ claim_pdf_print_jobs: {
91400
+ Args: {
91401
+ _max?: number;
91402
+ };
91403
+ Returns: {
91404
+ agent_id: string | null;
91405
+ bron_job_id: string | null;
91406
+ created_at: string;
91407
+ documentnaam: string;
91408
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
91409
+ extern_job_id: string | null;
91410
+ foutmelding: string | null;
91411
+ gebruiker_id: string | null;
91412
+ gebruiker_naam: string;
91413
+ gebruikte_bron: string | null;
91414
+ gebruikte_layout_id: string | null;
91415
+ gestart_op: string | null;
91416
+ herkomst: string | null;
91417
+ id: string;
91418
+ idempotentie_sleutel: string | null;
91419
+ is_herprint: boolean;
91420
+ kopieen: number;
91421
+ layout_id: string | null;
91422
+ lokaal_opgeslagen_op: string | null;
91423
+ lokale_pdf_fout: string | null;
91424
+ lokale_pdf_status: string | null;
91425
+ opgepakt_op: string | null;
91426
+ paginas: number;
91427
+ payload: import("../integrations/supabase/types").Json;
91428
+ pdf_base64: string | null;
91429
+ pdf_url: string | null;
91430
+ pogingen: number;
91431
+ printer_id: string | null;
91432
+ render_html: string | null;
91433
+ resultaat_pdf_base64: string | null;
91434
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
91435
+ updated_at: string;
91436
+ volgende_poging: string | null;
91437
+ voltooid_op: string | null;
91438
+ }[];
91439
+ SetofOptions: {
91440
+ from: "*";
91441
+ to: "print_jobs";
91442
+ isOneToOne: false;
91443
+ isSetofReturn: true;
91444
+ };
91445
+ };
90231
91446
  claim_print_jobs: {
90232
91447
  Args: {
90233
91448
  _agent_id: string;
@@ -90252,6 +91467,9 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90252
91467
  is_herprint: boolean;
90253
91468
  kopieen: number;
90254
91469
  layout_id: string | null;
91470
+ lokaal_opgeslagen_op: string | null;
91471
+ lokale_pdf_fout: string | null;
91472
+ lokale_pdf_status: string | null;
90255
91473
  opgepakt_op: string | null;
90256
91474
  paginas: number;
90257
91475
  payload: import("../integrations/supabase/types").Json;
@@ -90260,6 +91478,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90260
91478
  pogingen: number;
90261
91479
  printer_id: string | null;
90262
91480
  render_html: string | null;
91481
+ resultaat_pdf_base64: string | null;
90263
91482
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
90264
91483
  updated_at: string;
90265
91484
  volgende_poging: string | null;
@@ -90400,6 +91619,8 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
90400
91619
  order_id: string;
90401
91620
  order_source: string;
90402
91621
  pick_date: string;
91622
+ printed_at: string;
91623
+ printed_today: boolean;
90403
91624
  status: string;
90404
91625
  }[];
90405
91626
  };
@@ -91108,6 +92329,10 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91108
92329
  };
91109
92330
  Returns: number;
91110
92331
  };
92332
+ logistics_cancel_orphan_tasks: {
92333
+ Args: never;
92334
+ Returns: number;
92335
+ };
91111
92336
  logistics_capacity_day_check: {
91112
92337
  Args: {
91113
92338
  p_from?: string;
@@ -91128,6 +92353,25 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91128
92353
  };
91129
92354
  Returns: number;
91130
92355
  };
92356
+ logistics_cart_index: {
92357
+ Args: {
92358
+ p_from?: string;
92359
+ p_to?: string;
92360
+ };
92361
+ Returns: {
92362
+ cart_id: string;
92363
+ cart_index: number;
92364
+ cart_label: string;
92365
+ is_shared: boolean;
92366
+ order_number: string;
92367
+ order_source: string;
92368
+ order_uuid: string;
92369
+ pick_date: string;
92370
+ printed_at: string;
92371
+ shifted: boolean;
92372
+ task_status: string;
92373
+ }[];
92374
+ };
91131
92375
  logistics_check_order_allowed: {
91132
92376
  Args: {
91133
92377
  p_lines: import("../integrations/supabase/types").Json;
@@ -91276,6 +92520,17 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91276
92520
  isSetofReturn: false;
91277
92521
  };
91278
92522
  };
92523
+ logistics_consistency_check: {
92524
+ Args: never;
92525
+ Returns: {
92526
+ agenda_carts: number;
92527
+ control_carts: number;
92528
+ ok: boolean;
92529
+ orphan_tasks: number;
92530
+ pick_date: string;
92531
+ raw_carts: number;
92532
+ }[];
92533
+ };
91279
92534
  logistics_delay_customer_email: {
91280
92535
  Args: {
91281
92536
  p_customer: string;
@@ -91365,6 +92620,16 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91365
92620
  isSetofReturn: false;
91366
92621
  };
91367
92622
  };
92623
+ logistics_floriday_cart_plan: {
92624
+ Args: {
92625
+ p_order_id: string;
92626
+ };
92627
+ Returns: {
92628
+ carrier_type: string;
92629
+ idx: number;
92630
+ packages: number;
92631
+ }[];
92632
+ };
91368
92633
  logistics_floriday_claim_pushes: {
91369
92634
  Args: {
91370
92635
  _lease_seconds?: number;
@@ -91469,6 +92734,25 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91469
92734
  };
91470
92735
  Returns: number;
91471
92736
  };
92737
+ logistics_order_overview: {
92738
+ Args: {
92739
+ p_from?: string;
92740
+ p_to?: string;
92741
+ };
92742
+ Returns: {
92743
+ cart_count: number;
92744
+ customer_name: string;
92745
+ delivery_date: string;
92746
+ order_number: string;
92747
+ order_source: string;
92748
+ order_uuid: string;
92749
+ pick_date: string;
92750
+ plant_count: number;
92751
+ printed_at: string;
92752
+ shifted: boolean;
92753
+ status: string;
92754
+ }[];
92755
+ };
91472
92756
  logistics_order_pick_day: {
91473
92757
  Args: {
91474
92758
  p_order_ref: string;
@@ -91481,6 +92765,22 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91481
92765
  };
91482
92766
  Returns: string;
91483
92767
  };
92768
+ logistics_pick_agenda: {
92769
+ Args: {
92770
+ p_from?: string;
92771
+ p_to?: string;
92772
+ };
92773
+ Returns: {
92774
+ cart_count: number;
92775
+ in_preparation: number;
92776
+ order_count: number;
92777
+ orders: import("../integrations/supabase/types").Json;
92778
+ pick_date: string;
92779
+ plant_count: number;
92780
+ ready: number;
92781
+ shifted_count: number;
92782
+ }[];
92783
+ };
91484
92784
  logistics_pick_email_purpose: {
91485
92785
  Args: never;
91486
92786
  Returns: string;
@@ -91535,6 +92835,13 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91535
92835
  };
91536
92836
  Returns: undefined;
91537
92837
  };
92838
+ logistics_plan_floriday_order: {
92839
+ Args: {
92840
+ p_buffer_id?: string;
92841
+ p_order_id: string;
92842
+ };
92843
+ Returns: number;
92844
+ };
91538
92845
  logistics_plan_impact_orders: {
91539
92846
  Args: {
91540
92847
  p_order_id: string;
@@ -91640,6 +92947,15 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91640
92947
  };
91641
92948
  Returns: import("../integrations/supabase/types").Json;
91642
92949
  };
92950
+ logistics_resolve_pick_document: {
92951
+ Args: {
92952
+ _is_herprint: boolean;
92953
+ _queue_item_id: string;
92954
+ _session_id: string;
92955
+ _voorbeeld: boolean;
92956
+ };
92957
+ Returns: import("../integrations/supabase/types").Json;
92958
+ };
91643
92959
  logistics_resolve_settings: {
91644
92960
  Args: {
91645
92961
  p_config_id: string;
@@ -91770,14 +93086,6 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
91770
93086
  };
91771
93087
  Returns: string;
91772
93088
  };
91773
- maps_cron_token: {
91774
- Args: never;
91775
- Returns: string;
91776
- };
91777
- maps_kick_queue: {
91778
- Args: never;
91779
- Returns: undefined;
91780
- };
91781
93089
  mark_offer_clicked: {
91782
93090
  Args: {
91783
93091
  p_code: string;
@@ -92088,6 +93396,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
92088
93396
  };
92089
93397
  pick_enqueue_print_job: {
92090
93398
  Args: {
93399
+ _is_herprint?: boolean;
92091
93400
  _printer_id?: string;
92092
93401
  _queue_item_id: string;
92093
93402
  _session_id?: string;
@@ -92101,6 +93410,13 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
92101
93410
  };
92102
93411
  Returns: import("../integrations/supabase/types").Json;
92103
93412
  };
93413
+ pick_preview_job: {
93414
+ Args: {
93415
+ _queue_item_id: string;
93416
+ _station_slug: string;
93417
+ };
93418
+ Returns: import("../integrations/supabase/types").Json;
93419
+ };
92104
93420
  pick_print_job_status: {
92105
93421
  Args: {
92106
93422
  _job_id: string;
@@ -92278,6 +93594,24 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
92278
93594
  };
92279
93595
  Returns: undefined;
92280
93596
  };
93597
+ print_preview_toestaan: {
93598
+ Args: {
93599
+ _max?: number;
93600
+ _queue_item_id: string;
93601
+ _station_slug: string;
93602
+ _venster_sec?: number;
93603
+ };
93604
+ Returns: import("../integrations/supabase/types").Json;
93605
+ };
93606
+ print_preview_weiger: {
93607
+ Args: {
93608
+ _code: string;
93609
+ _queue_item_id: string;
93610
+ _reden: string;
93611
+ _station_slug: string;
93612
+ };
93613
+ Returns: undefined;
93614
+ };
92281
93615
  process_logistics_event: {
92282
93616
  Args: {
92283
93617
  p_event_id: string;
@@ -92395,6 +93729,14 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
92395
93729
  };
92396
93730
  Returns: undefined;
92397
93731
  };
93732
+ replace_order_carts: {
93733
+ Args: {
93734
+ p_buffer_id: string;
93735
+ p_carts: import("../integrations/supabase/types").Json;
93736
+ p_order_id: string;
93737
+ };
93738
+ Returns: import("../integrations/supabase/types").Json;
93739
+ };
92398
93740
  reset_floriday_sync_cursor: {
92399
93741
  Args: {
92400
93742
  p_connection_id: string;
@@ -92424,6 +93766,12 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
92424
93766
  };
92425
93767
  Returns: string;
92426
93768
  };
93769
+ resolve_print_job_printer_id: {
93770
+ Args: {
93771
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
93772
+ };
93773
+ Returns: string;
93774
+ };
92427
93775
  resolve_product_id_for_item: {
92428
93776
  Args: {
92429
93777
  p_product_name: string;
@@ -93015,7 +94363,7 @@ export declare const getOrderInvoiceMoment: import("@tanstack/start-client-core"
93015
94363
  };
93016
94364
  CompositeTypes: { [_ in never]: never; };
93017
94365
  }, {
93018
- PostgrestVersion: "14.17";
94366
+ PostgrestVersion: "14.5";
93019
94367
  }>;
93020
94368
  userId: string;
93021
94369
  claims: import("@supabase/auth-js").User;