@flowselections/logistiek-engine 1.0.23 → 1.0.25

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 (35) hide show
  1. package/dist-lib/components/LogistiekEnginePage.d.ts.map +1 -1
  2. package/dist-lib/components/LogistiekEnginePage.js +8 -2
  3. package/dist-lib/components/RegiePage.d.ts.map +1 -1
  4. package/dist-lib/components/RegiePage.js +1 -1
  5. package/dist-lib/integrations/supabase/auth-middleware.d.ts +335 -1
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/client.server.d.ts +335 -1
  8. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/moduleClient.d.ts +335 -1
  10. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/types.d.ts +337 -1
  12. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  13. package/dist-lib/lib/floridayDocuments.functions.d.ts +1005 -3
  14. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/floridayPush.functions.d.ts +335 -1
  16. package/dist-lib/lib/floridayPush.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/handlers/logistics-tick.server.d.ts.map +1 -1
  18. package/dist-lib/lib/handlers/logistics-tick.server.js +11 -0
  19. package/dist-lib/lib/loadCarrierPlanner.d.ts +6 -0
  20. package/dist-lib/lib/loadCarrierPlanner.d.ts.map +1 -1
  21. package/dist-lib/lib/loadCarrierPlanner.js +3 -0
  22. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts +1675 -5
  23. package/dist-lib/lib/loadCarrierPlanning.functions.d.ts.map +1 -1
  24. package/dist-lib/lib/loadCarrierPlanning.server.d.ts.map +1 -1
  25. package/dist-lib/lib/loadCarrierPlanning.server.js +3 -0
  26. package/dist-lib/lib/logisticsPlanner.d.ts +2 -0
  27. package/dist-lib/lib/logisticsPlanner.d.ts.map +1 -1
  28. package/dist-lib/lib/logisticsPlanner.js +17 -0
  29. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts +670 -2
  30. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +335 -1
  32. package/dist-lib/lib/logisticsRecalculate.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/modulePrompts.d.ts.map +1 -1
  34. package/dist-lib/lib/modulePrompts.js +185 -0
  35. package/package.json +7 -4
@@ -2851,6 +2851,84 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
2851
2851
  };
2852
2852
  Relationships: [];
2853
2853
  };
2854
+ delivery_notes: {
2855
+ Row: {
2856
+ byte_size: number | null;
2857
+ connection_id: string | null;
2858
+ content_type: string;
2859
+ created_at: string;
2860
+ error_message: string | null;
2861
+ fetched_at: string | null;
2862
+ fulfillment_order_id: string | null;
2863
+ http_status: number | null;
2864
+ id: string;
2865
+ label_code: string | null;
2866
+ letter: string | null;
2867
+ load_carrier_index: number | null;
2868
+ load_carrier_type: string | null;
2869
+ order_id: string | null;
2870
+ order_number: string | null;
2871
+ packages: number | null;
2872
+ source: string;
2873
+ status: string;
2874
+ storage_bucket: string;
2875
+ storage_path: string | null;
2876
+ updated_at: string;
2877
+ };
2878
+ Insert: {
2879
+ byte_size?: number | null;
2880
+ connection_id?: string | null;
2881
+ content_type?: string;
2882
+ created_at?: string;
2883
+ error_message?: string | null;
2884
+ fetched_at?: string | null;
2885
+ fulfillment_order_id?: string | null;
2886
+ http_status?: number | null;
2887
+ id?: string;
2888
+ label_code?: string | null;
2889
+ letter?: string | null;
2890
+ load_carrier_index?: number | null;
2891
+ load_carrier_type?: string | null;
2892
+ order_id?: string | null;
2893
+ order_number?: string | null;
2894
+ packages?: number | null;
2895
+ source?: string;
2896
+ status?: string;
2897
+ storage_bucket?: string;
2898
+ storage_path?: string | null;
2899
+ updated_at?: string;
2900
+ };
2901
+ Update: {
2902
+ byte_size?: number | null;
2903
+ connection_id?: string | null;
2904
+ content_type?: string;
2905
+ created_at?: string;
2906
+ error_message?: string | null;
2907
+ fetched_at?: string | null;
2908
+ fulfillment_order_id?: string | null;
2909
+ http_status?: number | null;
2910
+ id?: string;
2911
+ label_code?: string | null;
2912
+ letter?: string | null;
2913
+ load_carrier_index?: number | null;
2914
+ load_carrier_type?: string | null;
2915
+ order_id?: string | null;
2916
+ order_number?: string | null;
2917
+ packages?: number | null;
2918
+ source?: string;
2919
+ status?: string;
2920
+ storage_bucket?: string;
2921
+ storage_path?: string | null;
2922
+ updated_at?: string;
2923
+ };
2924
+ Relationships: [{
2925
+ foreignKeyName: "delivery_notes_order_id_fkey";
2926
+ columns: ["order_id"];
2927
+ isOneToOne: false;
2928
+ referencedRelation: "orders";
2929
+ referencedColumns: ["id"];
2930
+ }];
2931
+ };
2854
2932
  document_bronregels: {
2855
2933
  Row: {
2856
2934
  bron: string;
@@ -13576,6 +13654,39 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
13576
13654
  };
13577
13655
  Relationships: [];
13578
13656
  };
13657
+ print_dedupe_events: {
13658
+ Row: {
13659
+ bestaande_job_id: string | null;
13660
+ created_at: string;
13661
+ detail: string | null;
13662
+ documentnaam: string | null;
13663
+ documenttype: string | null;
13664
+ id: string;
13665
+ idempotentie_sleutel: string;
13666
+ reden: string;
13667
+ };
13668
+ Insert: {
13669
+ bestaande_job_id?: string | null;
13670
+ created_at?: string;
13671
+ detail?: string | null;
13672
+ documentnaam?: string | null;
13673
+ documenttype?: string | null;
13674
+ id?: string;
13675
+ idempotentie_sleutel: string;
13676
+ reden: string;
13677
+ };
13678
+ Update: {
13679
+ bestaande_job_id?: string | null;
13680
+ created_at?: string;
13681
+ detail?: string | null;
13682
+ documentnaam?: string | null;
13683
+ documenttype?: string | null;
13684
+ id?: string;
13685
+ idempotentie_sleutel?: string;
13686
+ reden?: string;
13687
+ };
13688
+ Relationships: [];
13689
+ };
13579
13690
  print_job_logs: {
13580
13691
  Row: {
13581
13692
  created_at: string;
@@ -13626,6 +13737,9 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
13626
13737
  is_herprint: boolean;
13627
13738
  kopieen: number;
13628
13739
  layout_id: string | null;
13740
+ lokaal_opgeslagen_op: string | null;
13741
+ lokale_pdf_fout: string | null;
13742
+ lokale_pdf_status: string | null;
13629
13743
  opgepakt_op: string | null;
13630
13744
  paginas: number;
13631
13745
  payload: import("../integrations/supabase/types").Json;
@@ -13634,6 +13748,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
13634
13748
  pogingen: number;
13635
13749
  printer_id: string | null;
13636
13750
  render_html: string | null;
13751
+ resultaat_pdf_base64: string | null;
13637
13752
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13638
13753
  updated_at: string;
13639
13754
  volgende_poging: string | null;
@@ -13658,6 +13773,9 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
13658
13773
  is_herprint?: boolean;
13659
13774
  kopieen?: number;
13660
13775
  layout_id?: string | null;
13776
+ lokaal_opgeslagen_op?: string | null;
13777
+ lokale_pdf_fout?: string | null;
13778
+ lokale_pdf_status?: string | null;
13661
13779
  opgepakt_op?: string | null;
13662
13780
  paginas?: number;
13663
13781
  payload?: import("../integrations/supabase/types").Json;
@@ -13666,6 +13784,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
13666
13784
  pogingen?: number;
13667
13785
  printer_id?: string | null;
13668
13786
  render_html?: string | null;
13787
+ resultaat_pdf_base64?: string | null;
13669
13788
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13670
13789
  updated_at?: string;
13671
13790
  volgende_poging?: string | null;
@@ -13690,6 +13809,9 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
13690
13809
  is_herprint?: boolean;
13691
13810
  kopieen?: number;
13692
13811
  layout_id?: string | null;
13812
+ lokaal_opgeslagen_op?: string | null;
13813
+ lokale_pdf_fout?: string | null;
13814
+ lokale_pdf_status?: string | null;
13693
13815
  opgepakt_op?: string | null;
13694
13816
  paginas?: number;
13695
13817
  payload?: import("../integrations/supabase/types").Json;
@@ -13698,6 +13820,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
13698
13820
  pogingen?: number;
13699
13821
  printer_id?: string | null;
13700
13822
  render_html?: string | null;
13823
+ resultaat_pdf_base64?: string | null;
13701
13824
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13702
13825
  updated_at?: string;
13703
13826
  volgende_poging?: string | null;
@@ -13816,6 +13939,39 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
13816
13939
  };
13817
13940
  Relationships: [];
13818
13941
  };
13942
+ print_preview_events: {
13943
+ Row: {
13944
+ code: string | null;
13945
+ created_at: string;
13946
+ detail: import("../integrations/supabase/types").Json;
13947
+ id: string;
13948
+ queue_item_id: string | null;
13949
+ reden: string | null;
13950
+ station_slug: string | null;
13951
+ uitkomst: string;
13952
+ };
13953
+ Insert: {
13954
+ code?: string | null;
13955
+ created_at?: string;
13956
+ detail?: import("../integrations/supabase/types").Json;
13957
+ id?: string;
13958
+ queue_item_id?: string | null;
13959
+ reden?: string | null;
13960
+ station_slug?: string | null;
13961
+ uitkomst?: string;
13962
+ };
13963
+ Update: {
13964
+ code?: string | null;
13965
+ created_at?: string;
13966
+ detail?: import("../integrations/supabase/types").Json;
13967
+ id?: string;
13968
+ queue_item_id?: string | null;
13969
+ reden?: string | null;
13970
+ station_slug?: string | null;
13971
+ uitkomst?: string;
13972
+ };
13973
+ Relationships: [];
13974
+ };
13819
13975
  print_queue_runners: {
13820
13976
  Row: {
13821
13977
  actief: boolean;
@@ -14055,6 +14211,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
14055
14211
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14056
14212
  online: boolean;
14057
14213
  papierformaat: string;
14214
+ pdf_map: string | null;
14058
14215
  poort: number | null;
14059
14216
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14060
14217
  systeemnaam: string;
@@ -14080,6 +14237,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
14080
14237
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14081
14238
  online?: boolean;
14082
14239
  papierformaat?: string;
14240
+ pdf_map?: string | null;
14083
14241
  poort?: number | null;
14084
14242
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14085
14243
  systeemnaam?: string;
@@ -14105,6 +14263,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
14105
14263
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14106
14264
  online?: boolean;
14107
14265
  papierformaat?: string;
14266
+ pdf_map?: string | null;
14108
14267
  poort?: number | null;
14109
14268
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14110
14269
  systeemnaam?: string;
@@ -20361,6 +20520,9 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20361
20520
  is_herprint: boolean;
20362
20521
  kopieen: number;
20363
20522
  layout_id: string | null;
20523
+ lokaal_opgeslagen_op: string | null;
20524
+ lokale_pdf_fout: string | null;
20525
+ lokale_pdf_status: string | null;
20364
20526
  opgepakt_op: string | null;
20365
20527
  paginas: number;
20366
20528
  payload: import("../integrations/supabase/types").Json;
@@ -20369,6 +20531,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20369
20531
  pogingen: number;
20370
20532
  printer_id: string | null;
20371
20533
  render_html: string | null;
20534
+ resultaat_pdf_base64: string | null;
20372
20535
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20373
20536
  updated_at: string;
20374
20537
  volgende_poging: string | null;
@@ -20460,6 +20623,53 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20460
20623
  isSetofReturn: true;
20461
20624
  };
20462
20625
  };
20626
+ claim_pdf_print_jobs: {
20627
+ Args: {
20628
+ _max?: number;
20629
+ };
20630
+ Returns: {
20631
+ agent_id: string | null;
20632
+ bron_job_id: string | null;
20633
+ created_at: string;
20634
+ documentnaam: string;
20635
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20636
+ extern_job_id: string | null;
20637
+ foutmelding: string | null;
20638
+ gebruiker_id: string | null;
20639
+ gebruiker_naam: string;
20640
+ gebruikte_bron: string | null;
20641
+ gebruikte_layout_id: string | null;
20642
+ gestart_op: string | null;
20643
+ herkomst: string | null;
20644
+ id: string;
20645
+ idempotentie_sleutel: string | null;
20646
+ is_herprint: boolean;
20647
+ kopieen: number;
20648
+ layout_id: string | null;
20649
+ lokaal_opgeslagen_op: string | null;
20650
+ lokale_pdf_fout: string | null;
20651
+ lokale_pdf_status: string | null;
20652
+ opgepakt_op: string | null;
20653
+ paginas: number;
20654
+ payload: import("../integrations/supabase/types").Json;
20655
+ pdf_base64: string | null;
20656
+ pdf_url: string | null;
20657
+ pogingen: number;
20658
+ printer_id: string | null;
20659
+ render_html: string | null;
20660
+ resultaat_pdf_base64: string | null;
20661
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20662
+ updated_at: string;
20663
+ volgende_poging: string | null;
20664
+ voltooid_op: string | null;
20665
+ }[];
20666
+ SetofOptions: {
20667
+ from: "*";
20668
+ to: "print_jobs";
20669
+ isOneToOne: false;
20670
+ isSetofReturn: true;
20671
+ };
20672
+ };
20463
20673
  claim_print_jobs: {
20464
20674
  Args: {
20465
20675
  _agent_id: string;
@@ -20484,6 +20694,9 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20484
20694
  is_herprint: boolean;
20485
20695
  kopieen: number;
20486
20696
  layout_id: string | null;
20697
+ lokaal_opgeslagen_op: string | null;
20698
+ lokale_pdf_fout: string | null;
20699
+ lokale_pdf_status: string | null;
20487
20700
  opgepakt_op: string | null;
20488
20701
  paginas: number;
20489
20702
  payload: import("../integrations/supabase/types").Json;
@@ -20492,6 +20705,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20492
20705
  pogingen: number;
20493
20706
  printer_id: string | null;
20494
20707
  render_html: string | null;
20708
+ resultaat_pdf_base64: string | null;
20495
20709
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20496
20710
  updated_at: string;
20497
20711
  volgende_poging: string | null;
@@ -20632,6 +20846,8 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
20632
20846
  order_id: string;
20633
20847
  order_source: string;
20634
20848
  pick_date: string;
20849
+ printed_at: string;
20850
+ printed_today: boolean;
20635
20851
  status: string;
20636
20852
  }[];
20637
20853
  };
@@ -21340,6 +21556,10 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21340
21556
  };
21341
21557
  Returns: number;
21342
21558
  };
21559
+ logistics_cancel_orphan_tasks: {
21560
+ Args: never;
21561
+ Returns: number;
21562
+ };
21343
21563
  logistics_capacity_day_check: {
21344
21564
  Args: {
21345
21565
  p_from?: string;
@@ -21360,6 +21580,25 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21360
21580
  };
21361
21581
  Returns: number;
21362
21582
  };
21583
+ logistics_cart_index: {
21584
+ Args: {
21585
+ p_from?: string;
21586
+ p_to?: string;
21587
+ };
21588
+ Returns: {
21589
+ cart_id: string;
21590
+ cart_index: number;
21591
+ cart_label: string;
21592
+ is_shared: boolean;
21593
+ order_number: string;
21594
+ order_source: string;
21595
+ order_uuid: string;
21596
+ pick_date: string;
21597
+ printed_at: string;
21598
+ shifted: boolean;
21599
+ task_status: string;
21600
+ }[];
21601
+ };
21363
21602
  logistics_check_order_allowed: {
21364
21603
  Args: {
21365
21604
  p_lines: import("../integrations/supabase/types").Json;
@@ -21508,6 +21747,17 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21508
21747
  isSetofReturn: false;
21509
21748
  };
21510
21749
  };
21750
+ logistics_consistency_check: {
21751
+ Args: never;
21752
+ Returns: {
21753
+ agenda_carts: number;
21754
+ control_carts: number;
21755
+ ok: boolean;
21756
+ orphan_tasks: number;
21757
+ pick_date: string;
21758
+ raw_carts: number;
21759
+ }[];
21760
+ };
21511
21761
  logistics_delay_customer_email: {
21512
21762
  Args: {
21513
21763
  p_customer: string;
@@ -21701,6 +21951,25 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21701
21951
  };
21702
21952
  Returns: number;
21703
21953
  };
21954
+ logistics_order_overview: {
21955
+ Args: {
21956
+ p_from?: string;
21957
+ p_to?: string;
21958
+ };
21959
+ Returns: {
21960
+ cart_count: number;
21961
+ customer_name: string;
21962
+ delivery_date: string;
21963
+ order_number: string;
21964
+ order_source: string;
21965
+ order_uuid: string;
21966
+ pick_date: string;
21967
+ plant_count: number;
21968
+ printed_at: string;
21969
+ shifted: boolean;
21970
+ status: string;
21971
+ }[];
21972
+ };
21704
21973
  logistics_order_pick_day: {
21705
21974
  Args: {
21706
21975
  p_order_ref: string;
@@ -21713,6 +21982,22 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21713
21982
  };
21714
21983
  Returns: string;
21715
21984
  };
21985
+ logistics_pick_agenda: {
21986
+ Args: {
21987
+ p_from?: string;
21988
+ p_to?: string;
21989
+ };
21990
+ Returns: {
21991
+ cart_count: number;
21992
+ in_preparation: number;
21993
+ order_count: number;
21994
+ orders: import("../integrations/supabase/types").Json;
21995
+ pick_date: string;
21996
+ plant_count: number;
21997
+ ready: number;
21998
+ shifted_count: number;
21999
+ }[];
22000
+ };
21716
22001
  logistics_pick_email_purpose: {
21717
22002
  Args: never;
21718
22003
  Returns: string;
@@ -21872,6 +22157,15 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
21872
22157
  };
21873
22158
  Returns: import("../integrations/supabase/types").Json;
21874
22159
  };
22160
+ logistics_resolve_pick_document: {
22161
+ Args: {
22162
+ _is_herprint: boolean;
22163
+ _queue_item_id: string;
22164
+ _session_id: string;
22165
+ _voorbeeld: boolean;
22166
+ };
22167
+ Returns: import("../integrations/supabase/types").Json;
22168
+ };
21875
22169
  logistics_resolve_settings: {
21876
22170
  Args: {
21877
22171
  p_config_id: string;
@@ -22312,6 +22606,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
22312
22606
  };
22313
22607
  pick_enqueue_print_job: {
22314
22608
  Args: {
22609
+ _is_herprint?: boolean;
22315
22610
  _printer_id?: string;
22316
22611
  _queue_item_id: string;
22317
22612
  _session_id?: string;
@@ -22325,6 +22620,13 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
22325
22620
  };
22326
22621
  Returns: import("../integrations/supabase/types").Json;
22327
22622
  };
22623
+ pick_preview_job: {
22624
+ Args: {
22625
+ _queue_item_id: string;
22626
+ _station_slug: string;
22627
+ };
22628
+ Returns: import("../integrations/supabase/types").Json;
22629
+ };
22328
22630
  pick_print_job_status: {
22329
22631
  Args: {
22330
22632
  _job_id: string;
@@ -22502,6 +22804,24 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
22502
22804
  };
22503
22805
  Returns: undefined;
22504
22806
  };
22807
+ print_preview_toestaan: {
22808
+ Args: {
22809
+ _max?: number;
22810
+ _queue_item_id: string;
22811
+ _station_slug: string;
22812
+ _venster_sec?: number;
22813
+ };
22814
+ Returns: import("../integrations/supabase/types").Json;
22815
+ };
22816
+ print_preview_weiger: {
22817
+ Args: {
22818
+ _code: string;
22819
+ _queue_item_id: string;
22820
+ _reden: string;
22821
+ _station_slug: string;
22822
+ };
22823
+ Returns: undefined;
22824
+ };
22505
22825
  process_logistics_event: {
22506
22826
  Args: {
22507
22827
  p_event_id: string;
@@ -22619,6 +22939,14 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
22619
22939
  };
22620
22940
  Returns: undefined;
22621
22941
  };
22942
+ replace_order_carts: {
22943
+ Args: {
22944
+ p_buffer_id: string;
22945
+ p_carts: import("../integrations/supabase/types").Json;
22946
+ p_order_id: string;
22947
+ };
22948
+ Returns: import("../integrations/supabase/types").Json;
22949
+ };
22622
22950
  reset_floriday_sync_cursor: {
22623
22951
  Args: {
22624
22952
  p_connection_id: string;
@@ -22648,6 +22976,12 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
22648
22976
  };
22649
22977
  Returns: string;
22650
22978
  };
22979
+ resolve_print_job_printer_id: {
22980
+ Args: {
22981
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
22982
+ };
22983
+ Returns: string;
22984
+ };
22651
22985
  resolve_product_id_for_item: {
22652
22986
  Args: {
22653
22987
  p_product_name: string;
@@ -23239,7 +23573,7 @@ export declare const startRecalcJob: import("@tanstack/start-client-core").Optio
23239
23573
  };
23240
23574
  CompositeTypes: { [_ in never]: never; };
23241
23575
  }, {
23242
- PostgrestVersion: "14.17";
23576
+ PostgrestVersion: "14.5";
23243
23577
  }>;
23244
23578
  userId: string;
23245
23579
  claims: import("@supabase/auth-js").User;
@@ -26105,6 +26439,84 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
26105
26439
  };
26106
26440
  Relationships: [];
26107
26441
  };
26442
+ delivery_notes: {
26443
+ Row: {
26444
+ byte_size: number | null;
26445
+ connection_id: string | null;
26446
+ content_type: string;
26447
+ created_at: string;
26448
+ error_message: string | null;
26449
+ fetched_at: string | null;
26450
+ fulfillment_order_id: string | null;
26451
+ http_status: number | null;
26452
+ id: string;
26453
+ label_code: string | null;
26454
+ letter: string | null;
26455
+ load_carrier_index: number | null;
26456
+ load_carrier_type: string | null;
26457
+ order_id: string | null;
26458
+ order_number: string | null;
26459
+ packages: number | null;
26460
+ source: string;
26461
+ status: string;
26462
+ storage_bucket: string;
26463
+ storage_path: string | null;
26464
+ updated_at: string;
26465
+ };
26466
+ Insert: {
26467
+ byte_size?: number | null;
26468
+ connection_id?: string | null;
26469
+ content_type?: string;
26470
+ created_at?: string;
26471
+ error_message?: string | null;
26472
+ fetched_at?: string | null;
26473
+ fulfillment_order_id?: string | null;
26474
+ http_status?: number | null;
26475
+ id?: string;
26476
+ label_code?: string | null;
26477
+ letter?: string | null;
26478
+ load_carrier_index?: number | null;
26479
+ load_carrier_type?: string | null;
26480
+ order_id?: string | null;
26481
+ order_number?: string | null;
26482
+ packages?: number | null;
26483
+ source?: string;
26484
+ status?: string;
26485
+ storage_bucket?: string;
26486
+ storage_path?: string | null;
26487
+ updated_at?: string;
26488
+ };
26489
+ Update: {
26490
+ byte_size?: number | null;
26491
+ connection_id?: string | null;
26492
+ content_type?: string;
26493
+ created_at?: string;
26494
+ error_message?: string | null;
26495
+ fetched_at?: string | null;
26496
+ fulfillment_order_id?: string | null;
26497
+ http_status?: number | null;
26498
+ id?: string;
26499
+ label_code?: string | null;
26500
+ letter?: string | null;
26501
+ load_carrier_index?: number | null;
26502
+ load_carrier_type?: string | null;
26503
+ order_id?: string | null;
26504
+ order_number?: string | null;
26505
+ packages?: number | null;
26506
+ source?: string;
26507
+ status?: string;
26508
+ storage_bucket?: string;
26509
+ storage_path?: string | null;
26510
+ updated_at?: string;
26511
+ };
26512
+ Relationships: [{
26513
+ foreignKeyName: "delivery_notes_order_id_fkey";
26514
+ columns: ["order_id"];
26515
+ isOneToOne: false;
26516
+ referencedRelation: "orders";
26517
+ referencedColumns: ["id"];
26518
+ }];
26519
+ };
26108
26520
  document_bronregels: {
26109
26521
  Row: {
26110
26522
  bron: string;
@@ -36830,6 +37242,39 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36830
37242
  };
36831
37243
  Relationships: [];
36832
37244
  };
37245
+ print_dedupe_events: {
37246
+ Row: {
37247
+ bestaande_job_id: string | null;
37248
+ created_at: string;
37249
+ detail: string | null;
37250
+ documentnaam: string | null;
37251
+ documenttype: string | null;
37252
+ id: string;
37253
+ idempotentie_sleutel: string;
37254
+ reden: string;
37255
+ };
37256
+ Insert: {
37257
+ bestaande_job_id?: string | null;
37258
+ created_at?: string;
37259
+ detail?: string | null;
37260
+ documentnaam?: string | null;
37261
+ documenttype?: string | null;
37262
+ id?: string;
37263
+ idempotentie_sleutel: string;
37264
+ reden: string;
37265
+ };
37266
+ Update: {
37267
+ bestaande_job_id?: string | null;
37268
+ created_at?: string;
37269
+ detail?: string | null;
37270
+ documentnaam?: string | null;
37271
+ documenttype?: string | null;
37272
+ id?: string;
37273
+ idempotentie_sleutel?: string;
37274
+ reden?: string;
37275
+ };
37276
+ Relationships: [];
37277
+ };
36833
37278
  print_job_logs: {
36834
37279
  Row: {
36835
37280
  created_at: string;
@@ -36880,6 +37325,9 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36880
37325
  is_herprint: boolean;
36881
37326
  kopieen: number;
36882
37327
  layout_id: string | null;
37328
+ lokaal_opgeslagen_op: string | null;
37329
+ lokale_pdf_fout: string | null;
37330
+ lokale_pdf_status: string | null;
36883
37331
  opgepakt_op: string | null;
36884
37332
  paginas: number;
36885
37333
  payload: import("../integrations/supabase/types").Json;
@@ -36888,6 +37336,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36888
37336
  pogingen: number;
36889
37337
  printer_id: string | null;
36890
37338
  render_html: string | null;
37339
+ resultaat_pdf_base64: string | null;
36891
37340
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36892
37341
  updated_at: string;
36893
37342
  volgende_poging: string | null;
@@ -36912,6 +37361,9 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36912
37361
  is_herprint?: boolean;
36913
37362
  kopieen?: number;
36914
37363
  layout_id?: string | null;
37364
+ lokaal_opgeslagen_op?: string | null;
37365
+ lokale_pdf_fout?: string | null;
37366
+ lokale_pdf_status?: string | null;
36915
37367
  opgepakt_op?: string | null;
36916
37368
  paginas?: number;
36917
37369
  payload?: import("../integrations/supabase/types").Json;
@@ -36920,6 +37372,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36920
37372
  pogingen?: number;
36921
37373
  printer_id?: string | null;
36922
37374
  render_html?: string | null;
37375
+ resultaat_pdf_base64?: string | null;
36923
37376
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36924
37377
  updated_at?: string;
36925
37378
  volgende_poging?: string | null;
@@ -36944,6 +37397,9 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36944
37397
  is_herprint?: boolean;
36945
37398
  kopieen?: number;
36946
37399
  layout_id?: string | null;
37400
+ lokaal_opgeslagen_op?: string | null;
37401
+ lokale_pdf_fout?: string | null;
37402
+ lokale_pdf_status?: string | null;
36947
37403
  opgepakt_op?: string | null;
36948
37404
  paginas?: number;
36949
37405
  payload?: import("../integrations/supabase/types").Json;
@@ -36952,6 +37408,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
36952
37408
  pogingen?: number;
36953
37409
  printer_id?: string | null;
36954
37410
  render_html?: string | null;
37411
+ resultaat_pdf_base64?: string | null;
36955
37412
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
36956
37413
  updated_at?: string;
36957
37414
  volgende_poging?: string | null;
@@ -37070,6 +37527,39 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37070
37527
  };
37071
37528
  Relationships: [];
37072
37529
  };
37530
+ print_preview_events: {
37531
+ Row: {
37532
+ code: string | null;
37533
+ created_at: string;
37534
+ detail: import("../integrations/supabase/types").Json;
37535
+ id: string;
37536
+ queue_item_id: string | null;
37537
+ reden: string | null;
37538
+ station_slug: string | null;
37539
+ uitkomst: string;
37540
+ };
37541
+ Insert: {
37542
+ code?: string | null;
37543
+ created_at?: string;
37544
+ detail?: import("../integrations/supabase/types").Json;
37545
+ id?: string;
37546
+ queue_item_id?: string | null;
37547
+ reden?: string | null;
37548
+ station_slug?: string | null;
37549
+ uitkomst?: string;
37550
+ };
37551
+ Update: {
37552
+ code?: string | null;
37553
+ created_at?: string;
37554
+ detail?: import("../integrations/supabase/types").Json;
37555
+ id?: string;
37556
+ queue_item_id?: string | null;
37557
+ reden?: string | null;
37558
+ station_slug?: string | null;
37559
+ uitkomst?: string;
37560
+ };
37561
+ Relationships: [];
37562
+ };
37073
37563
  print_queue_runners: {
37074
37564
  Row: {
37075
37565
  actief: boolean;
@@ -37309,6 +37799,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37309
37799
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
37310
37800
  online: boolean;
37311
37801
  papierformaat: string;
37802
+ pdf_map: string | null;
37312
37803
  poort: number | null;
37313
37804
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37314
37805
  systeemnaam: string;
@@ -37334,6 +37825,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37334
37825
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37335
37826
  online?: boolean;
37336
37827
  papierformaat?: string;
37828
+ pdf_map?: string | null;
37337
37829
  poort?: number | null;
37338
37830
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37339
37831
  systeemnaam?: string;
@@ -37359,6 +37851,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
37359
37851
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
37360
37852
  online?: boolean;
37361
37853
  papierformaat?: string;
37854
+ pdf_map?: string | null;
37362
37855
  poort?: number | null;
37363
37856
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
37364
37857
  systeemnaam?: string;
@@ -43615,6 +44108,9 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43615
44108
  is_herprint: boolean;
43616
44109
  kopieen: number;
43617
44110
  layout_id: string | null;
44111
+ lokaal_opgeslagen_op: string | null;
44112
+ lokale_pdf_fout: string | null;
44113
+ lokale_pdf_status: string | null;
43618
44114
  opgepakt_op: string | null;
43619
44115
  paginas: number;
43620
44116
  payload: import("../integrations/supabase/types").Json;
@@ -43623,6 +44119,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43623
44119
  pogingen: number;
43624
44120
  printer_id: string | null;
43625
44121
  render_html: string | null;
44122
+ resultaat_pdf_base64: string | null;
43626
44123
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43627
44124
  updated_at: string;
43628
44125
  volgende_poging: string | null;
@@ -43714,6 +44211,53 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43714
44211
  isSetofReturn: true;
43715
44212
  };
43716
44213
  };
44214
+ claim_pdf_print_jobs: {
44215
+ Args: {
44216
+ _max?: number;
44217
+ };
44218
+ Returns: {
44219
+ agent_id: string | null;
44220
+ bron_job_id: string | null;
44221
+ created_at: string;
44222
+ documentnaam: string;
44223
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
44224
+ extern_job_id: string | null;
44225
+ foutmelding: string | null;
44226
+ gebruiker_id: string | null;
44227
+ gebruiker_naam: string;
44228
+ gebruikte_bron: string | null;
44229
+ gebruikte_layout_id: string | null;
44230
+ gestart_op: string | null;
44231
+ herkomst: string | null;
44232
+ id: string;
44233
+ idempotentie_sleutel: string | null;
44234
+ is_herprint: boolean;
44235
+ kopieen: number;
44236
+ layout_id: string | null;
44237
+ lokaal_opgeslagen_op: string | null;
44238
+ lokale_pdf_fout: string | null;
44239
+ lokale_pdf_status: string | null;
44240
+ opgepakt_op: string | null;
44241
+ paginas: number;
44242
+ payload: import("../integrations/supabase/types").Json;
44243
+ pdf_base64: string | null;
44244
+ pdf_url: string | null;
44245
+ pogingen: number;
44246
+ printer_id: string | null;
44247
+ render_html: string | null;
44248
+ resultaat_pdf_base64: string | null;
44249
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
44250
+ updated_at: string;
44251
+ volgende_poging: string | null;
44252
+ voltooid_op: string | null;
44253
+ }[];
44254
+ SetofOptions: {
44255
+ from: "*";
44256
+ to: "print_jobs";
44257
+ isOneToOne: false;
44258
+ isSetofReturn: true;
44259
+ };
44260
+ };
43717
44261
  claim_print_jobs: {
43718
44262
  Args: {
43719
44263
  _agent_id: string;
@@ -43738,6 +44282,9 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43738
44282
  is_herprint: boolean;
43739
44283
  kopieen: number;
43740
44284
  layout_id: string | null;
44285
+ lokaal_opgeslagen_op: string | null;
44286
+ lokale_pdf_fout: string | null;
44287
+ lokale_pdf_status: string | null;
43741
44288
  opgepakt_op: string | null;
43742
44289
  paginas: number;
43743
44290
  payload: import("../integrations/supabase/types").Json;
@@ -43746,6 +44293,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43746
44293
  pogingen: number;
43747
44294
  printer_id: string | null;
43748
44295
  render_html: string | null;
44296
+ resultaat_pdf_base64: string | null;
43749
44297
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
43750
44298
  updated_at: string;
43751
44299
  volgende_poging: string | null;
@@ -43886,6 +44434,8 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
43886
44434
  order_id: string;
43887
44435
  order_source: string;
43888
44436
  pick_date: string;
44437
+ printed_at: string;
44438
+ printed_today: boolean;
43889
44439
  status: string;
43890
44440
  }[];
43891
44441
  };
@@ -44594,6 +45144,10 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
44594
45144
  };
44595
45145
  Returns: number;
44596
45146
  };
45147
+ logistics_cancel_orphan_tasks: {
45148
+ Args: never;
45149
+ Returns: number;
45150
+ };
44597
45151
  logistics_capacity_day_check: {
44598
45152
  Args: {
44599
45153
  p_from?: string;
@@ -44614,6 +45168,25 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
44614
45168
  };
44615
45169
  Returns: number;
44616
45170
  };
45171
+ logistics_cart_index: {
45172
+ Args: {
45173
+ p_from?: string;
45174
+ p_to?: string;
45175
+ };
45176
+ Returns: {
45177
+ cart_id: string;
45178
+ cart_index: number;
45179
+ cart_label: string;
45180
+ is_shared: boolean;
45181
+ order_number: string;
45182
+ order_source: string;
45183
+ order_uuid: string;
45184
+ pick_date: string;
45185
+ printed_at: string;
45186
+ shifted: boolean;
45187
+ task_status: string;
45188
+ }[];
45189
+ };
44617
45190
  logistics_check_order_allowed: {
44618
45191
  Args: {
44619
45192
  p_lines: import("../integrations/supabase/types").Json;
@@ -44762,6 +45335,17 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
44762
45335
  isSetofReturn: false;
44763
45336
  };
44764
45337
  };
45338
+ logistics_consistency_check: {
45339
+ Args: never;
45340
+ Returns: {
45341
+ agenda_carts: number;
45342
+ control_carts: number;
45343
+ ok: boolean;
45344
+ orphan_tasks: number;
45345
+ pick_date: string;
45346
+ raw_carts: number;
45347
+ }[];
45348
+ };
44765
45349
  logistics_delay_customer_email: {
44766
45350
  Args: {
44767
45351
  p_customer: string;
@@ -44955,6 +45539,25 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
44955
45539
  };
44956
45540
  Returns: number;
44957
45541
  };
45542
+ logistics_order_overview: {
45543
+ Args: {
45544
+ p_from?: string;
45545
+ p_to?: string;
45546
+ };
45547
+ Returns: {
45548
+ cart_count: number;
45549
+ customer_name: string;
45550
+ delivery_date: string;
45551
+ order_number: string;
45552
+ order_source: string;
45553
+ order_uuid: string;
45554
+ pick_date: string;
45555
+ plant_count: number;
45556
+ printed_at: string;
45557
+ shifted: boolean;
45558
+ status: string;
45559
+ }[];
45560
+ };
44958
45561
  logistics_order_pick_day: {
44959
45562
  Args: {
44960
45563
  p_order_ref: string;
@@ -44967,6 +45570,22 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
44967
45570
  };
44968
45571
  Returns: string;
44969
45572
  };
45573
+ logistics_pick_agenda: {
45574
+ Args: {
45575
+ p_from?: string;
45576
+ p_to?: string;
45577
+ };
45578
+ Returns: {
45579
+ cart_count: number;
45580
+ in_preparation: number;
45581
+ order_count: number;
45582
+ orders: import("../integrations/supabase/types").Json;
45583
+ pick_date: string;
45584
+ plant_count: number;
45585
+ ready: number;
45586
+ shifted_count: number;
45587
+ }[];
45588
+ };
44970
45589
  logistics_pick_email_purpose: {
44971
45590
  Args: never;
44972
45591
  Returns: string;
@@ -45126,6 +45745,15 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
45126
45745
  };
45127
45746
  Returns: import("../integrations/supabase/types").Json;
45128
45747
  };
45748
+ logistics_resolve_pick_document: {
45749
+ Args: {
45750
+ _is_herprint: boolean;
45751
+ _queue_item_id: string;
45752
+ _session_id: string;
45753
+ _voorbeeld: boolean;
45754
+ };
45755
+ Returns: import("../integrations/supabase/types").Json;
45756
+ };
45129
45757
  logistics_resolve_settings: {
45130
45758
  Args: {
45131
45759
  p_config_id: string;
@@ -45566,6 +46194,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
45566
46194
  };
45567
46195
  pick_enqueue_print_job: {
45568
46196
  Args: {
46197
+ _is_herprint?: boolean;
45569
46198
  _printer_id?: string;
45570
46199
  _queue_item_id: string;
45571
46200
  _session_id?: string;
@@ -45579,6 +46208,13 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
45579
46208
  };
45580
46209
  Returns: import("../integrations/supabase/types").Json;
45581
46210
  };
46211
+ pick_preview_job: {
46212
+ Args: {
46213
+ _queue_item_id: string;
46214
+ _station_slug: string;
46215
+ };
46216
+ Returns: import("../integrations/supabase/types").Json;
46217
+ };
45582
46218
  pick_print_job_status: {
45583
46219
  Args: {
45584
46220
  _job_id: string;
@@ -45756,6 +46392,24 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
45756
46392
  };
45757
46393
  Returns: undefined;
45758
46394
  };
46395
+ print_preview_toestaan: {
46396
+ Args: {
46397
+ _max?: number;
46398
+ _queue_item_id: string;
46399
+ _station_slug: string;
46400
+ _venster_sec?: number;
46401
+ };
46402
+ Returns: import("../integrations/supabase/types").Json;
46403
+ };
46404
+ print_preview_weiger: {
46405
+ Args: {
46406
+ _code: string;
46407
+ _queue_item_id: string;
46408
+ _reden: string;
46409
+ _station_slug: string;
46410
+ };
46411
+ Returns: undefined;
46412
+ };
45759
46413
  process_logistics_event: {
45760
46414
  Args: {
45761
46415
  p_event_id: string;
@@ -45873,6 +46527,14 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
45873
46527
  };
45874
46528
  Returns: undefined;
45875
46529
  };
46530
+ replace_order_carts: {
46531
+ Args: {
46532
+ p_buffer_id: string;
46533
+ p_carts: import("../integrations/supabase/types").Json;
46534
+ p_order_id: string;
46535
+ };
46536
+ Returns: import("../integrations/supabase/types").Json;
46537
+ };
45876
46538
  reset_floriday_sync_cursor: {
45877
46539
  Args: {
45878
46540
  p_connection_id: string;
@@ -45902,6 +46564,12 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
45902
46564
  };
45903
46565
  Returns: string;
45904
46566
  };
46567
+ resolve_print_job_printer_id: {
46568
+ Args: {
46569
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
46570
+ };
46571
+ Returns: string;
46572
+ };
45905
46573
  resolve_product_id_for_item: {
45906
46574
  Args: {
45907
46575
  p_product_name: string;
@@ -46493,7 +47161,7 @@ export declare const tickRecalcJob: import("@tanstack/start-client-core").Option
46493
47161
  };
46494
47162
  CompositeTypes: { [_ in never]: never; };
46495
47163
  }, {
46496
- PostgrestVersion: "14.17";
47164
+ PostgrestVersion: "14.5";
46497
47165
  }>;
46498
47166
  userId: string;
46499
47167
  claims: import("@supabase/auth-js").User;