@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
@@ -2851,6 +2851,84 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
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;
@@ -13659,6 +13737,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13659
13737
  is_herprint: boolean;
13660
13738
  kopieen: number;
13661
13739
  layout_id: string | null;
13740
+ lokaal_opgeslagen_op: string | null;
13741
+ lokale_pdf_fout: string | null;
13742
+ lokale_pdf_status: string | null;
13662
13743
  opgepakt_op: string | null;
13663
13744
  paginas: number;
13664
13745
  payload: import("./types").Json;
@@ -13667,6 +13748,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13667
13748
  pogingen: number;
13668
13749
  printer_id: string | null;
13669
13750
  render_html: string | null;
13751
+ resultaat_pdf_base64: string | null;
13670
13752
  status: Database["public"]["Enums"]["print_job_status"];
13671
13753
  updated_at: string;
13672
13754
  volgende_poging: string | null;
@@ -13691,6 +13773,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13691
13773
  is_herprint?: boolean;
13692
13774
  kopieen?: number;
13693
13775
  layout_id?: string | null;
13776
+ lokaal_opgeslagen_op?: string | null;
13777
+ lokale_pdf_fout?: string | null;
13778
+ lokale_pdf_status?: string | null;
13694
13779
  opgepakt_op?: string | null;
13695
13780
  paginas?: number;
13696
13781
  payload?: import("./types").Json;
@@ -13699,6 +13784,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13699
13784
  pogingen?: number;
13700
13785
  printer_id?: string | null;
13701
13786
  render_html?: string | null;
13787
+ resultaat_pdf_base64?: string | null;
13702
13788
  status?: Database["public"]["Enums"]["print_job_status"];
13703
13789
  updated_at?: string;
13704
13790
  volgende_poging?: string | null;
@@ -13723,6 +13809,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13723
13809
  is_herprint?: boolean;
13724
13810
  kopieen?: number;
13725
13811
  layout_id?: string | null;
13812
+ lokaal_opgeslagen_op?: string | null;
13813
+ lokale_pdf_fout?: string | null;
13814
+ lokale_pdf_status?: string | null;
13726
13815
  opgepakt_op?: string | null;
13727
13816
  paginas?: number;
13728
13817
  payload?: import("./types").Json;
@@ -13731,6 +13820,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
13731
13820
  pogingen?: number;
13732
13821
  printer_id?: string | null;
13733
13822
  render_html?: string | null;
13823
+ resultaat_pdf_base64?: string | null;
13734
13824
  status?: Database["public"]["Enums"]["print_job_status"];
13735
13825
  updated_at?: string;
13736
13826
  volgende_poging?: string | null;
@@ -14121,6 +14211,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14121
14211
  ondersteunde_laden: import("./types").Json | null;
14122
14212
  online: boolean;
14123
14213
  papierformaat: string;
14214
+ pdf_map: string | null;
14124
14215
  poort: number | null;
14125
14216
  soort: Database["public"]["Enums"]["printer_kind"];
14126
14217
  systeemnaam: string;
@@ -14146,6 +14237,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14146
14237
  ondersteunde_laden?: import("./types").Json | null;
14147
14238
  online?: boolean;
14148
14239
  papierformaat?: string;
14240
+ pdf_map?: string | null;
14149
14241
  poort?: number | null;
14150
14242
  soort?: Database["public"]["Enums"]["printer_kind"];
14151
14243
  systeemnaam?: string;
@@ -14171,6 +14263,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
14171
14263
  ondersteunde_laden?: import("./types").Json | null;
14172
14264
  online?: boolean;
14173
14265
  papierformaat?: string;
14266
+ pdf_map?: string | null;
14174
14267
  poort?: number | null;
14175
14268
  soort?: Database["public"]["Enums"]["printer_kind"];
14176
14269
  systeemnaam?: string;
@@ -20427,6 +20520,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20427
20520
  is_herprint: boolean;
20428
20521
  kopieen: number;
20429
20522
  layout_id: string | null;
20523
+ lokaal_opgeslagen_op: string | null;
20524
+ lokale_pdf_fout: string | null;
20525
+ lokale_pdf_status: string | null;
20430
20526
  opgepakt_op: string | null;
20431
20527
  paginas: number;
20432
20528
  payload: import("./types").Json;
@@ -20435,6 +20531,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20435
20531
  pogingen: number;
20436
20532
  printer_id: string | null;
20437
20533
  render_html: string | null;
20534
+ resultaat_pdf_base64: string | null;
20438
20535
  status: Database["public"]["Enums"]["print_job_status"];
20439
20536
  updated_at: string;
20440
20537
  volgende_poging: string | null;
@@ -20526,6 +20623,53 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20526
20623
  isSetofReturn: true;
20527
20624
  };
20528
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: 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("./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: 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
+ };
20529
20673
  claim_print_jobs: {
20530
20674
  Args: {
20531
20675
  _agent_id: string;
@@ -20550,6 +20694,9 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20550
20694
  is_herprint: boolean;
20551
20695
  kopieen: number;
20552
20696
  layout_id: string | null;
20697
+ lokaal_opgeslagen_op: string | null;
20698
+ lokale_pdf_fout: string | null;
20699
+ lokale_pdf_status: string | null;
20553
20700
  opgepakt_op: string | null;
20554
20701
  paginas: number;
20555
20702
  payload: import("./types").Json;
@@ -20558,6 +20705,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20558
20705
  pogingen: number;
20559
20706
  printer_id: string | null;
20560
20707
  render_html: string | null;
20708
+ resultaat_pdf_base64: string | null;
20561
20709
  status: Database["public"]["Enums"]["print_job_status"];
20562
20710
  updated_at: string;
20563
20711
  volgende_poging: string | null;
@@ -20698,6 +20846,8 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
20698
20846
  order_id: string;
20699
20847
  order_source: string;
20700
20848
  pick_date: string;
20849
+ printed_at: string;
20850
+ printed_today: boolean;
20701
20851
  status: string;
20702
20852
  }[];
20703
20853
  };
@@ -21406,6 +21556,10 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21406
21556
  };
21407
21557
  Returns: number;
21408
21558
  };
21559
+ logistics_cancel_orphan_tasks: {
21560
+ Args: never;
21561
+ Returns: number;
21562
+ };
21409
21563
  logistics_capacity_day_check: {
21410
21564
  Args: {
21411
21565
  p_from?: string;
@@ -21426,6 +21580,25 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21426
21580
  };
21427
21581
  Returns: number;
21428
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
+ };
21429
21602
  logistics_check_order_allowed: {
21430
21603
  Args: {
21431
21604
  p_lines: import("./types").Json;
@@ -21574,6 +21747,17 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21574
21747
  isSetofReturn: false;
21575
21748
  };
21576
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
+ };
21577
21761
  logistics_delay_customer_email: {
21578
21762
  Args: {
21579
21763
  p_customer: string;
@@ -21767,6 +21951,25 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21767
21951
  };
21768
21952
  Returns: number;
21769
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
+ };
21770
21973
  logistics_order_pick_day: {
21771
21974
  Args: {
21772
21975
  p_order_ref: string;
@@ -21779,6 +21982,22 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21779
21982
  };
21780
21983
  Returns: string;
21781
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("./types").Json;
21995
+ pick_date: string;
21996
+ plant_count: number;
21997
+ ready: number;
21998
+ shifted_count: number;
21999
+ }[];
22000
+ };
21782
22001
  logistics_pick_email_purpose: {
21783
22002
  Args: never;
21784
22003
  Returns: string;
@@ -22757,6 +22976,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
22757
22976
  };
22758
22977
  Returns: string;
22759
22978
  };
22979
+ resolve_print_job_printer_id: {
22980
+ Args: {
22981
+ _job: Database["public"]["Tables"]["print_jobs"]["Row"];
22982
+ };
22983
+ Returns: string;
22984
+ };
22760
22985
  resolve_product_id_for_item: {
22761
22986
  Args: {
22762
22987
  p_product_name: string;
@@ -23348,6 +23573,6 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
23348
23573
  };
23349
23574
  CompositeTypes: { [_ in never]: never; };
23350
23575
  }, {
23351
- PostgrestVersion: "14.17";
23576
+ PostgrestVersion: "14.5";
23352
23577
  }>;
23353
23578
  //# sourceMappingURL=client.server.d.ts.map