@flowselections/floriday-afhandeling-module 1.0.38 → 1.0.39

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 (38) hide show
  1. package/dist-lib/components/afhandeling/ControleLijstPrint.js +54 -54
  2. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -1
  3. package/dist-lib/components/afhandeling/ControlePage.js +1 -3
  4. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
  5. package/dist-lib/components/afhandeling/DagDetailDialog.js +5 -38
  6. package/dist-lib/components/afhandeling/LeveringenPage.d.ts.map +1 -1
  7. package/dist-lib/components/afhandeling/LeveringenPage.js +1 -1
  8. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts +1 -3
  9. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  10. package/dist-lib/components/afhandeling/WeekAgendaView.js +6 -57
  11. package/dist-lib/components/pickstation/PakbonTemplate.js +70 -70
  12. package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -1
  13. package/dist-lib/components/settings/AfhandelingSettingsCard.js +4 -55
  14. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  15. package/dist-lib/hooks/useOrderPlanning.js +6 -27
  16. package/dist-lib/integrations/supabase/auth-middleware.d.ts +108 -1
  17. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  18. package/dist-lib/integrations/supabase/client.server.d.ts +108 -1
  19. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  20. package/dist-lib/integrations/supabase/moduleClient.d.ts +108 -1
  21. package/dist-lib/integrations/supabase/moduleClient.d.ts.map +1 -1
  22. package/dist-lib/integrations/supabase/types.d.ts +111 -1
  23. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  24. package/dist-lib/lib/afhandelingSettings.functions.d.ts +226 -4
  25. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  26. package/dist-lib/lib/carrierSignupMail.server.js +26 -26
  27. package/dist-lib/lib/carriers.functions.d.ts +540 -5
  28. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/cartAssignments.functions.d.ts +540 -5
  30. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/cartControl.functions.d.ts +1110 -20
  32. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/floriday.functions.d.ts +109 -2
  34. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/printing.d.ts +2 -11
  36. package/dist-lib/lib/printing.d.ts.map +1 -1
  37. package/dist-lib/lib/printing.js +8 -64
  38. package/package.json +1 -1
@@ -1,4 +1,12 @@
1
1
  import type { SupabaseClient } from "@supabase/supabase-js";
2
+ /**
3
+ * Let op: de planning- en printvelden (pickDaysBeforeTransport,
4
+ * extraPickDaysWithStickers, pickWeekdays, pickDistributionEnabled,
5
+ * maxWorkdaysEarlierPick, autoProcessPaused, autoPrintDeliveryNote) zijn
6
+ * legacy. De Logistics Engine bepaalt de pickplanning en de Layout maker de
7
+ * printerkeuze. De kolommen blijven bestaan, maar de UI leest of schrijft ze
8
+ * niet meer. Alleen de aanmeldmail-instellingen zijn nog in gebruik.
9
+ */
2
10
  export interface AfhandelingSettings {
3
11
  pickDaysBeforeTransport: number;
4
12
  transportRegisterDaysBefore: number;
@@ -43,7 +51,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
43
51
  created_at?: string;
44
52
  extra_pick_days_with_stickers?: number;
45
53
  id?: string;
46
- max_workdays_earlier_pick?: number;
54
+ max_workdays_earlier_pick? /** Print de afleverbrief automatisch zodra hij beschikbaar is in de cache. */: number;
47
55
  pick_days_before_transport?: number;
48
56
  pick_distribution_enabled?: boolean;
49
57
  pick_weekdays?: number[];
@@ -15745,6 +15753,45 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
15745
15753
  };
15746
15754
  Relationships: [];
15747
15755
  };
15756
+ stock_consumption_alerts: {
15757
+ Row: {
15758
+ alert_type: string;
15759
+ created_at: string;
15760
+ id: string;
15761
+ mutation_log_id: string | null;
15762
+ order_id: string | null;
15763
+ order_item_id: string | null;
15764
+ qty: number;
15765
+ reason: string | null;
15766
+ resolved_at: string | null;
15767
+ updated_at: string;
15768
+ };
15769
+ Insert: {
15770
+ alert_type: string;
15771
+ created_at?: string;
15772
+ id?: string;
15773
+ mutation_log_id?: string | null;
15774
+ order_id?: string | null;
15775
+ order_item_id?: string | null;
15776
+ qty?: number;
15777
+ reason?: string | null;
15778
+ resolved_at?: string | null;
15779
+ updated_at?: string;
15780
+ };
15781
+ Update: {
15782
+ alert_type?: string;
15783
+ created_at?: string;
15784
+ id?: string;
15785
+ mutation_log_id?: string | null;
15786
+ order_id?: string | null;
15787
+ order_item_id?: string | null;
15788
+ qty?: number;
15789
+ reason?: string | null;
15790
+ resolved_at?: string | null;
15791
+ updated_at?: string;
15792
+ };
15793
+ Relationships: [];
15794
+ };
15748
15795
  stock_import_runs: {
15749
15796
  Row: {
15750
15797
  connection_id: string | null;
@@ -18598,6 +18645,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18598
18645
  werkbon_package_items: {
18599
18646
  Row: {
18600
18647
  article_number: string | null;
18648
+ artikel_id: string | null;
18601
18649
  created_at: string;
18602
18650
  gtin: string | null;
18603
18651
  id: string;
@@ -18615,6 +18663,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18615
18663
  };
18616
18664
  Insert: {
18617
18665
  article_number?: string | null;
18666
+ artikel_id?: string | null;
18618
18667
  created_at?: string;
18619
18668
  gtin?: string | null;
18620
18669
  id?: string;
@@ -18632,6 +18681,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18632
18681
  };
18633
18682
  Update: {
18634
18683
  article_number?: string | null;
18684
+ artikel_id?: string | null;
18635
18685
  created_at?: string;
18636
18686
  gtin?: string | null;
18637
18687
  id?: string;
@@ -18648,6 +18698,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
18648
18698
  updated_at?: string;
18649
18699
  };
18650
18700
  Relationships: [{
18701
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
18702
+ columns: ["artikel_id"];
18703
+ isOneToOne: false;
18704
+ referencedRelation: "artikelen_cache";
18705
+ referencedColumns: ["id"];
18706
+ }, {
18651
18707
  foreignKeyName: "werkbon_package_items_package_id_fkey";
18652
18708
  columns: ["package_id"];
18653
18709
  isOneToOne: false;
@@ -19870,6 +19926,20 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
19870
19926
  referencedColumns: ["id"];
19871
19927
  }];
19872
19928
  };
19929
+ v_werkbon_totalen: {
19930
+ Row: {
19931
+ packages_cents: number | null;
19932
+ packages_minutes: number | null;
19933
+ werkbon_id: string | null;
19934
+ };
19935
+ Relationships: [{
19936
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
19937
+ columns: ["werkbon_id"];
19938
+ isOneToOne: false;
19939
+ referencedRelation: "werkbonnen";
19940
+ referencedColumns: ["id"];
19941
+ }];
19942
+ };
19873
19943
  };
19874
19944
  Functions: {
19875
19945
  _floriday_schedule_job: {
@@ -21417,6 +21487,14 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21417
21487
  };
21418
21488
  Returns: import("../integrations/supabase/types").Json;
21419
21489
  };
21490
+ logistics_plan_block: {
21491
+ Args: {
21492
+ p_details?: import("../integrations/supabase/types").Json;
21493
+ p_order_ids: string[];
21494
+ p_reason: string;
21495
+ };
21496
+ Returns: number;
21497
+ };
21420
21498
  logistics_plan_buffer_sql: {
21421
21499
  Args: {
21422
21500
  p_buffer_id: string;
@@ -21785,6 +21863,12 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21785
21863
  verwijderd: number;
21786
21864
  }[];
21787
21865
  };
21866
+ order_departure_proof: {
21867
+ Args: {
21868
+ p_order_id: string;
21869
+ };
21870
+ Returns: import("../integrations/supabase/types").Json;
21871
+ };
21788
21872
  order_number_prefix: {
21789
21873
  Args: {
21790
21874
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -21792,6 +21876,25 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
21792
21876
  };
21793
21877
  Returns: string;
21794
21878
  };
21879
+ pakket_suggesties_voor_tekst: {
21880
+ Args: {
21881
+ _tekst: string;
21882
+ };
21883
+ Returns: {
21884
+ hit_type: string;
21885
+ package_id: string;
21886
+ priority: number;
21887
+ }[];
21888
+ };
21889
+ pakket_voor_reistijd: {
21890
+ Args: {
21891
+ _minuten: number;
21892
+ };
21893
+ Returns: {
21894
+ package_id: string;
21895
+ priority: number;
21896
+ }[];
21897
+ };
21795
21898
  pick_active_printers: {
21796
21899
  Args: never;
21797
21900
  Returns: {
@@ -22842,6 +22945,18 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22842
22945
  Args: never;
22843
22946
  Returns: string;
22844
22947
  };
22948
+ werkbon_totalen: {
22949
+ Args: {
22950
+ _werkbon_id: string;
22951
+ };
22952
+ Returns: {
22953
+ materials_cents: number;
22954
+ packages_cents: number;
22955
+ packages_minutes: number;
22956
+ total_cents: number;
22957
+ total_minutes: number;
22958
+ }[];
22959
+ };
22845
22960
  wo_create_from_source: {
22846
22961
  Args: {
22847
22962
  _payload?: import("../integrations/supabase/types").Json;
@@ -22880,7 +22995,7 @@ export declare const getAfhandelingSettings: import("@tanstack/start-client-core
22880
22995
  };
22881
22996
  CompositeTypes: { [_ in never]: never; };
22882
22997
  }, {
22883
- PostgrestVersion: "14.5";
22998
+ PostgrestVersion: "14.17";
22884
22999
  }>;
22885
23000
  userId: string;
22886
23001
  claims: import("@supabase/auth-js").JwtPayload;
@@ -22912,7 +23027,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
22912
23027
  created_at?: string;
22913
23028
  extra_pick_days_with_stickers?: number;
22914
23029
  id?: string;
22915
- max_workdays_earlier_pick?: number;
23030
+ max_workdays_earlier_pick? /** Print de afleverbrief automatisch zodra hij beschikbaar is in de cache. */: number;
22916
23031
  pick_days_before_transport?: number;
22917
23032
  pick_distribution_enabled?: boolean;
22918
23033
  pick_weekdays?: number[];
@@ -38614,6 +38729,45 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
38614
38729
  };
38615
38730
  Relationships: [];
38616
38731
  };
38732
+ stock_consumption_alerts: {
38733
+ Row: {
38734
+ alert_type: string;
38735
+ created_at: string;
38736
+ id: string;
38737
+ mutation_log_id: string | null;
38738
+ order_id: string | null;
38739
+ order_item_id: string | null;
38740
+ qty: number;
38741
+ reason: string | null;
38742
+ resolved_at: string | null;
38743
+ updated_at: string;
38744
+ };
38745
+ Insert: {
38746
+ alert_type: string;
38747
+ created_at?: string;
38748
+ id?: string;
38749
+ mutation_log_id?: string | null;
38750
+ order_id?: string | null;
38751
+ order_item_id?: string | null;
38752
+ qty?: number;
38753
+ reason?: string | null;
38754
+ resolved_at?: string | null;
38755
+ updated_at?: string;
38756
+ };
38757
+ Update: {
38758
+ alert_type?: string;
38759
+ created_at?: string;
38760
+ id?: string;
38761
+ mutation_log_id?: string | null;
38762
+ order_id?: string | null;
38763
+ order_item_id?: string | null;
38764
+ qty?: number;
38765
+ reason?: string | null;
38766
+ resolved_at?: string | null;
38767
+ updated_at?: string;
38768
+ };
38769
+ Relationships: [];
38770
+ };
38617
38771
  stock_import_runs: {
38618
38772
  Row: {
38619
38773
  connection_id: string | null;
@@ -41467,6 +41621,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
41467
41621
  werkbon_package_items: {
41468
41622
  Row: {
41469
41623
  article_number: string | null;
41624
+ artikel_id: string | null;
41470
41625
  created_at: string;
41471
41626
  gtin: string | null;
41472
41627
  id: string;
@@ -41484,6 +41639,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
41484
41639
  };
41485
41640
  Insert: {
41486
41641
  article_number?: string | null;
41642
+ artikel_id?: string | null;
41487
41643
  created_at?: string;
41488
41644
  gtin?: string | null;
41489
41645
  id?: string;
@@ -41501,6 +41657,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
41501
41657
  };
41502
41658
  Update: {
41503
41659
  article_number?: string | null;
41660
+ artikel_id?: string | null;
41504
41661
  created_at?: string;
41505
41662
  gtin?: string | null;
41506
41663
  id?: string;
@@ -41517,6 +41674,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
41517
41674
  updated_at?: string;
41518
41675
  };
41519
41676
  Relationships: [{
41677
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
41678
+ columns: ["artikel_id"];
41679
+ isOneToOne: false;
41680
+ referencedRelation: "artikelen_cache";
41681
+ referencedColumns: ["id"];
41682
+ }, {
41520
41683
  foreignKeyName: "werkbon_package_items_package_id_fkey";
41521
41684
  columns: ["package_id"];
41522
41685
  isOneToOne: false;
@@ -42739,6 +42902,20 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
42739
42902
  referencedColumns: ["id"];
42740
42903
  }];
42741
42904
  };
42905
+ v_werkbon_totalen: {
42906
+ Row: {
42907
+ packages_cents: number | null;
42908
+ packages_minutes: number | null;
42909
+ werkbon_id: string | null;
42910
+ };
42911
+ Relationships: [{
42912
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
42913
+ columns: ["werkbon_id"];
42914
+ isOneToOne: false;
42915
+ referencedRelation: "werkbonnen";
42916
+ referencedColumns: ["id"];
42917
+ }];
42918
+ };
42742
42919
  };
42743
42920
  Functions: {
42744
42921
  _floriday_schedule_job: {
@@ -44286,6 +44463,14 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44286
44463
  };
44287
44464
  Returns: import("../integrations/supabase/types").Json;
44288
44465
  };
44466
+ logistics_plan_block: {
44467
+ Args: {
44468
+ p_details?: import("../integrations/supabase/types").Json;
44469
+ p_order_ids: string[];
44470
+ p_reason: string;
44471
+ };
44472
+ Returns: number;
44473
+ };
44289
44474
  logistics_plan_buffer_sql: {
44290
44475
  Args: {
44291
44476
  p_buffer_id: string;
@@ -44654,6 +44839,12 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44654
44839
  verwijderd: number;
44655
44840
  }[];
44656
44841
  };
44842
+ order_departure_proof: {
44843
+ Args: {
44844
+ p_order_id: string;
44845
+ };
44846
+ Returns: import("../integrations/supabase/types").Json;
44847
+ };
44657
44848
  order_number_prefix: {
44658
44849
  Args: {
44659
44850
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -44661,6 +44852,25 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
44661
44852
  };
44662
44853
  Returns: string;
44663
44854
  };
44855
+ pakket_suggesties_voor_tekst: {
44856
+ Args: {
44857
+ _tekst: string;
44858
+ };
44859
+ Returns: {
44860
+ hit_type: string;
44861
+ package_id: string;
44862
+ priority: number;
44863
+ }[];
44864
+ };
44865
+ pakket_voor_reistijd: {
44866
+ Args: {
44867
+ _minuten: number;
44868
+ };
44869
+ Returns: {
44870
+ package_id: string;
44871
+ priority: number;
44872
+ }[];
44873
+ };
44664
44874
  pick_active_printers: {
44665
44875
  Args: never;
44666
44876
  Returns: {
@@ -45711,6 +45921,18 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45711
45921
  Args: never;
45712
45922
  Returns: string;
45713
45923
  };
45924
+ werkbon_totalen: {
45925
+ Args: {
45926
+ _werkbon_id: string;
45927
+ };
45928
+ Returns: {
45929
+ materials_cents: number;
45930
+ packages_cents: number;
45931
+ packages_minutes: number;
45932
+ total_cents: number;
45933
+ total_minutes: number;
45934
+ }[];
45935
+ };
45714
45936
  wo_create_from_source: {
45715
45937
  Args: {
45716
45938
  _payload?: import("../integrations/supabase/types").Json;
@@ -45749,7 +45971,7 @@ export declare const updateAfhandelingSettings: import("@tanstack/start-client-c
45749
45971
  };
45750
45972
  CompositeTypes: { [_ in never]: never; };
45751
45973
  }, {
45752
- PostgrestVersion: "14.5";
45974
+ PostgrestVersion: "14.17";
45753
45975
  }>;
45754
45976
  userId: string;
45755
45977
  claims: import("@supabase/auth-js").JwtPayload;