@flowselections/logistiek-engine 1.0.24 → 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 +226 -1
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/client.server.d.ts +226 -1
  8. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/moduleClient.d.ts +226 -1
  10. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/types.d.ts +228 -1
  12. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  13. package/dist-lib/lib/floridayDocuments.functions.d.ts +678 -3
  14. package/dist-lib/lib/floridayDocuments.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/floridayPush.functions.d.ts +226 -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 +1130 -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 +452 -2
  30. package/dist-lib/lib/logisticsRecalcJob.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/logisticsRecalculate.functions.d.ts +226 -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 +1 -1
@@ -2856,6 +2856,84 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
2856
2856
  };
2857
2857
  Relationships: [];
2858
2858
  };
2859
+ delivery_notes: {
2860
+ Row: {
2861
+ byte_size: number | null;
2862
+ connection_id: string | null;
2863
+ content_type: string;
2864
+ created_at: string;
2865
+ error_message: string | null;
2866
+ fetched_at: string | null;
2867
+ fulfillment_order_id: string | null;
2868
+ http_status: number | null;
2869
+ id: string;
2870
+ label_code: string | null;
2871
+ letter: string | null;
2872
+ load_carrier_index: number | null;
2873
+ load_carrier_type: string | null;
2874
+ order_id: string | null;
2875
+ order_number: string | null;
2876
+ packages: number | null;
2877
+ source: string;
2878
+ status: string;
2879
+ storage_bucket: string;
2880
+ storage_path: string | null;
2881
+ updated_at: string;
2882
+ };
2883
+ Insert: {
2884
+ byte_size?: number | null;
2885
+ connection_id?: string | null;
2886
+ content_type?: string;
2887
+ created_at?: string;
2888
+ error_message?: string | null;
2889
+ fetched_at?: string | null;
2890
+ fulfillment_order_id?: string | null;
2891
+ http_status?: number | null;
2892
+ id?: string;
2893
+ label_code?: string | null;
2894
+ letter?: string | null;
2895
+ load_carrier_index?: number | null;
2896
+ load_carrier_type?: string | null;
2897
+ order_id?: string | null;
2898
+ order_number?: string | null;
2899
+ packages?: number | null;
2900
+ source?: string;
2901
+ status?: string;
2902
+ storage_bucket?: string;
2903
+ storage_path?: string | null;
2904
+ updated_at?: string;
2905
+ };
2906
+ Update: {
2907
+ byte_size?: number | null;
2908
+ connection_id?: string | null;
2909
+ content_type?: string;
2910
+ created_at?: string;
2911
+ error_message?: string | null;
2912
+ fetched_at?: string | null;
2913
+ fulfillment_order_id?: string | null;
2914
+ http_status?: number | null;
2915
+ id?: string;
2916
+ label_code?: string | null;
2917
+ letter?: string | null;
2918
+ load_carrier_index?: number | null;
2919
+ load_carrier_type?: string | null;
2920
+ order_id?: string | null;
2921
+ order_number?: string | null;
2922
+ packages?: number | null;
2923
+ source?: string;
2924
+ status?: string;
2925
+ storage_bucket?: string;
2926
+ storage_path?: string | null;
2927
+ updated_at?: string;
2928
+ };
2929
+ Relationships: [{
2930
+ foreignKeyName: "delivery_notes_order_id_fkey";
2931
+ columns: ["order_id"];
2932
+ isOneToOne: false;
2933
+ referencedRelation: "orders";
2934
+ referencedColumns: ["id"];
2935
+ }];
2936
+ };
2859
2937
  document_bronregels: {
2860
2938
  Row: {
2861
2939
  bron: string;
@@ -13664,6 +13742,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13664
13742
  is_herprint: boolean;
13665
13743
  kopieen: number;
13666
13744
  layout_id: string | null;
13745
+ lokaal_opgeslagen_op: string | null;
13746
+ lokale_pdf_fout: string | null;
13747
+ lokale_pdf_status: string | null;
13667
13748
  opgepakt_op: string | null;
13668
13749
  paginas: number;
13669
13750
  payload: import("../integrations/supabase/types").Json;
@@ -13672,6 +13753,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13672
13753
  pogingen: number;
13673
13754
  printer_id: string | null;
13674
13755
  render_html: string | null;
13756
+ resultaat_pdf_base64: string | null;
13675
13757
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13676
13758
  updated_at: string;
13677
13759
  volgende_poging: string | null;
@@ -13696,6 +13778,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13696
13778
  is_herprint?: boolean;
13697
13779
  kopieen?: number;
13698
13780
  layout_id?: string | null;
13781
+ lokaal_opgeslagen_op?: string | null;
13782
+ lokale_pdf_fout?: string | null;
13783
+ lokale_pdf_status?: string | null;
13699
13784
  opgepakt_op?: string | null;
13700
13785
  paginas?: number;
13701
13786
  payload?: import("../integrations/supabase/types").Json;
@@ -13704,6 +13789,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13704
13789
  pogingen?: number;
13705
13790
  printer_id?: string | null;
13706
13791
  render_html?: string | null;
13792
+ resultaat_pdf_base64?: string | null;
13707
13793
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13708
13794
  updated_at?: string;
13709
13795
  volgende_poging?: string | null;
@@ -13728,6 +13814,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13728
13814
  is_herprint?: boolean;
13729
13815
  kopieen?: number;
13730
13816
  layout_id?: string | null;
13817
+ lokaal_opgeslagen_op?: string | null;
13818
+ lokale_pdf_fout?: string | null;
13819
+ lokale_pdf_status?: string | null;
13731
13820
  opgepakt_op?: string | null;
13732
13821
  paginas?: number;
13733
13822
  payload?: import("../integrations/supabase/types").Json;
@@ -13736,6 +13825,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
13736
13825
  pogingen?: number;
13737
13826
  printer_id?: string | null;
13738
13827
  render_html?: string | null;
13828
+ resultaat_pdf_base64?: string | null;
13739
13829
  status?: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
13740
13830
  updated_at?: string;
13741
13831
  volgende_poging?: string | null;
@@ -14126,6 +14216,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14126
14216
  ondersteunde_laden: import("../integrations/supabase/types").Json | null;
14127
14217
  online: boolean;
14128
14218
  papierformaat: string;
14219
+ pdf_map: string | null;
14129
14220
  poort: number | null;
14130
14221
  soort: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14131
14222
  systeemnaam: string;
@@ -14151,6 +14242,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14151
14242
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14152
14243
  online?: boolean;
14153
14244
  papierformaat?: string;
14245
+ pdf_map?: string | null;
14154
14246
  poort?: number | null;
14155
14247
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14156
14248
  systeemnaam?: string;
@@ -14176,6 +14268,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
14176
14268
  ondersteunde_laden?: import("../integrations/supabase/types").Json | null;
14177
14269
  online?: boolean;
14178
14270
  papierformaat?: string;
14271
+ pdf_map?: string | null;
14179
14272
  poort?: number | null;
14180
14273
  soort?: import("../integrations/supabase/types").Database["public"]["Enums"]["printer_kind"];
14181
14274
  systeemnaam?: string;
@@ -20432,6 +20525,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20432
20525
  is_herprint: boolean;
20433
20526
  kopieen: number;
20434
20527
  layout_id: string | null;
20528
+ lokaal_opgeslagen_op: string | null;
20529
+ lokale_pdf_fout: string | null;
20530
+ lokale_pdf_status: string | null;
20435
20531
  opgepakt_op: string | null;
20436
20532
  paginas: number;
20437
20533
  payload: import("../integrations/supabase/types").Json;
@@ -20440,6 +20536,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20440
20536
  pogingen: number;
20441
20537
  printer_id: string | null;
20442
20538
  render_html: string | null;
20539
+ resultaat_pdf_base64: string | null;
20443
20540
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20444
20541
  updated_at: string;
20445
20542
  volgende_poging: string | null;
@@ -20531,6 +20628,53 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20531
20628
  isSetofReturn: true;
20532
20629
  };
20533
20630
  };
20631
+ claim_pdf_print_jobs: {
20632
+ Args: {
20633
+ _max?: number;
20634
+ };
20635
+ Returns: {
20636
+ agent_id: string | null;
20637
+ bron_job_id: string | null;
20638
+ created_at: string;
20639
+ documentnaam: string;
20640
+ documenttype: import("../integrations/supabase/types").Database["public"]["Enums"]["doc_layout_type"];
20641
+ extern_job_id: string | null;
20642
+ foutmelding: string | null;
20643
+ gebruiker_id: string | null;
20644
+ gebruiker_naam: string;
20645
+ gebruikte_bron: string | null;
20646
+ gebruikte_layout_id: string | null;
20647
+ gestart_op: string | null;
20648
+ herkomst: string | null;
20649
+ id: string;
20650
+ idempotentie_sleutel: string | null;
20651
+ is_herprint: boolean;
20652
+ kopieen: number;
20653
+ layout_id: string | null;
20654
+ lokaal_opgeslagen_op: string | null;
20655
+ lokale_pdf_fout: string | null;
20656
+ lokale_pdf_status: string | null;
20657
+ opgepakt_op: string | null;
20658
+ paginas: number;
20659
+ payload: import("../integrations/supabase/types").Json;
20660
+ pdf_base64: string | null;
20661
+ pdf_url: string | null;
20662
+ pogingen: number;
20663
+ printer_id: string | null;
20664
+ render_html: string | null;
20665
+ resultaat_pdf_base64: string | null;
20666
+ status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20667
+ updated_at: string;
20668
+ volgende_poging: string | null;
20669
+ voltooid_op: string | null;
20670
+ }[];
20671
+ SetofOptions: {
20672
+ from: "*";
20673
+ to: "print_jobs";
20674
+ isOneToOne: false;
20675
+ isSetofReturn: true;
20676
+ };
20677
+ };
20534
20678
  claim_print_jobs: {
20535
20679
  Args: {
20536
20680
  _agent_id: string;
@@ -20555,6 +20699,9 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20555
20699
  is_herprint: boolean;
20556
20700
  kopieen: number;
20557
20701
  layout_id: string | null;
20702
+ lokaal_opgeslagen_op: string | null;
20703
+ lokale_pdf_fout: string | null;
20704
+ lokale_pdf_status: string | null;
20558
20705
  opgepakt_op: string | null;
20559
20706
  paginas: number;
20560
20707
  payload: import("../integrations/supabase/types").Json;
@@ -20563,6 +20710,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20563
20710
  pogingen: number;
20564
20711
  printer_id: string | null;
20565
20712
  render_html: string | null;
20713
+ resultaat_pdf_base64: string | null;
20566
20714
  status: import("../integrations/supabase/types").Database["public"]["Enums"]["print_job_status"];
20567
20715
  updated_at: string;
20568
20716
  volgende_poging: string | null;
@@ -20703,6 +20851,8 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
20703
20851
  order_id: string;
20704
20852
  order_source: string;
20705
20853
  pick_date: string;
20854
+ printed_at: string;
20855
+ printed_today: boolean;
20706
20856
  status: string;
20707
20857
  }[];
20708
20858
  };
@@ -21411,6 +21561,10 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21411
21561
  };
21412
21562
  Returns: number;
21413
21563
  };
21564
+ logistics_cancel_orphan_tasks: {
21565
+ Args: never;
21566
+ Returns: number;
21567
+ };
21414
21568
  logistics_capacity_day_check: {
21415
21569
  Args: {
21416
21570
  p_from?: string;
@@ -21431,6 +21585,25 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21431
21585
  };
21432
21586
  Returns: number;
21433
21587
  };
21588
+ logistics_cart_index: {
21589
+ Args: {
21590
+ p_from?: string;
21591
+ p_to?: string;
21592
+ };
21593
+ Returns: {
21594
+ cart_id: string;
21595
+ cart_index: number;
21596
+ cart_label: string;
21597
+ is_shared: boolean;
21598
+ order_number: string;
21599
+ order_source: string;
21600
+ order_uuid: string;
21601
+ pick_date: string;
21602
+ printed_at: string;
21603
+ shifted: boolean;
21604
+ task_status: string;
21605
+ }[];
21606
+ };
21434
21607
  logistics_check_order_allowed: {
21435
21608
  Args: {
21436
21609
  p_lines: import("../integrations/supabase/types").Json;
@@ -21579,6 +21752,17 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21579
21752
  isSetofReturn: false;
21580
21753
  };
21581
21754
  };
21755
+ logistics_consistency_check: {
21756
+ Args: never;
21757
+ Returns: {
21758
+ agenda_carts: number;
21759
+ control_carts: number;
21760
+ ok: boolean;
21761
+ orphan_tasks: number;
21762
+ pick_date: string;
21763
+ raw_carts: number;
21764
+ }[];
21765
+ };
21582
21766
  logistics_delay_customer_email: {
21583
21767
  Args: {
21584
21768
  p_customer: string;
@@ -21772,6 +21956,25 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21772
21956
  };
21773
21957
  Returns: number;
21774
21958
  };
21959
+ logistics_order_overview: {
21960
+ Args: {
21961
+ p_from?: string;
21962
+ p_to?: string;
21963
+ };
21964
+ Returns: {
21965
+ cart_count: number;
21966
+ customer_name: string;
21967
+ delivery_date: string;
21968
+ order_number: string;
21969
+ order_source: string;
21970
+ order_uuid: string;
21971
+ pick_date: string;
21972
+ plant_count: number;
21973
+ printed_at: string;
21974
+ shifted: boolean;
21975
+ status: string;
21976
+ }[];
21977
+ };
21775
21978
  logistics_order_pick_day: {
21776
21979
  Args: {
21777
21980
  p_order_ref: string;
@@ -21784,6 +21987,22 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
21784
21987
  };
21785
21988
  Returns: string;
21786
21989
  };
21990
+ logistics_pick_agenda: {
21991
+ Args: {
21992
+ p_from?: string;
21993
+ p_to?: string;
21994
+ };
21995
+ Returns: {
21996
+ cart_count: number;
21997
+ in_preparation: number;
21998
+ order_count: number;
21999
+ orders: import("../integrations/supabase/types").Json;
22000
+ pick_date: string;
22001
+ plant_count: number;
22002
+ ready: number;
22003
+ shifted_count: number;
22004
+ }[];
22005
+ };
21787
22006
  logistics_pick_email_purpose: {
21788
22007
  Args: never;
21789
22008
  Returns: string;
@@ -22762,6 +22981,12 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
22762
22981
  };
22763
22982
  Returns: string;
22764
22983
  };
22984
+ resolve_print_job_printer_id: {
22985
+ Args: {
22986
+ _job: import("../integrations/supabase/types").Database["public"]["Tables"]["print_jobs"]["Row"];
22987
+ };
22988
+ Returns: string;
22989
+ };
22765
22990
  resolve_product_id_for_item: {
22766
22991
  Args: {
22767
22992
  p_product_name: string;
@@ -23353,7 +23578,7 @@ export declare const recalculateLogistics: import("@tanstack/start-client-core")
23353
23578
  };
23354
23579
  CompositeTypes: { [_ in never]: never; };
23355
23580
  }, {
23356
- PostgrestVersion: "14.17";
23581
+ PostgrestVersion: "14.5";
23357
23582
  }>;
23358
23583
  userId: string;
23359
23584
  claims: import("@supabase/auth-js").User;