@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
@@ -15785,6 +15785,45 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
15785
15785
  };
15786
15786
  Relationships: [];
15787
15787
  };
15788
+ stock_consumption_alerts: {
15789
+ Row: {
15790
+ alert_type: string;
15791
+ created_at: string;
15792
+ id: string;
15793
+ mutation_log_id: string | null;
15794
+ order_id: string | null;
15795
+ order_item_id: string | null;
15796
+ qty: number;
15797
+ reason: string | null;
15798
+ resolved_at: string | null;
15799
+ updated_at: string;
15800
+ };
15801
+ Insert: {
15802
+ alert_type: string;
15803
+ created_at?: string;
15804
+ id?: string;
15805
+ mutation_log_id?: string | null;
15806
+ order_id?: string | null;
15807
+ order_item_id?: string | null;
15808
+ qty?: number;
15809
+ reason?: string | null;
15810
+ resolved_at?: string | null;
15811
+ updated_at?: string;
15812
+ };
15813
+ Update: {
15814
+ alert_type?: string;
15815
+ created_at?: string;
15816
+ id?: string;
15817
+ mutation_log_id?: string | null;
15818
+ order_id?: string | null;
15819
+ order_item_id?: string | null;
15820
+ qty?: number;
15821
+ reason?: string | null;
15822
+ resolved_at?: string | null;
15823
+ updated_at?: string;
15824
+ };
15825
+ Relationships: [];
15826
+ };
15788
15827
  stock_import_runs: {
15789
15828
  Row: {
15790
15829
  connection_id: string | null;
@@ -18638,6 +18677,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18638
18677
  werkbon_package_items: {
18639
18678
  Row: {
18640
18679
  article_number: string | null;
18680
+ artikel_id: string | null;
18641
18681
  created_at: string;
18642
18682
  gtin: string | null;
18643
18683
  id: string;
@@ -18655,6 +18695,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18655
18695
  };
18656
18696
  Insert: {
18657
18697
  article_number?: string | null;
18698
+ artikel_id?: string | null;
18658
18699
  created_at?: string;
18659
18700
  gtin?: string | null;
18660
18701
  id?: string;
@@ -18672,6 +18713,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18672
18713
  };
18673
18714
  Update: {
18674
18715
  article_number?: string | null;
18716
+ artikel_id?: string | null;
18675
18717
  created_at?: string;
18676
18718
  gtin?: string | null;
18677
18719
  id?: string;
@@ -18688,6 +18730,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
18688
18730
  updated_at?: string;
18689
18731
  };
18690
18732
  Relationships: [{
18733
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
18734
+ columns: ["artikel_id"];
18735
+ isOneToOne: false;
18736
+ referencedRelation: "artikelen_cache";
18737
+ referencedColumns: ["id"];
18738
+ }, {
18691
18739
  foreignKeyName: "werkbon_package_items_package_id_fkey";
18692
18740
  columns: ["package_id"];
18693
18741
  isOneToOne: false;
@@ -19910,6 +19958,20 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
19910
19958
  referencedColumns: ["id"];
19911
19959
  }];
19912
19960
  };
19961
+ v_werkbon_totalen: {
19962
+ Row: {
19963
+ packages_cents: number | null;
19964
+ packages_minutes: number | null;
19965
+ werkbon_id: string | null;
19966
+ };
19967
+ Relationships: [{
19968
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
19969
+ columns: ["werkbon_id"];
19970
+ isOneToOne: false;
19971
+ referencedRelation: "werkbonnen";
19972
+ referencedColumns: ["id"];
19973
+ }];
19974
+ };
19913
19975
  };
19914
19976
  Functions: {
19915
19977
  _floriday_schedule_job: {
@@ -21457,6 +21519,14 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21457
21519
  };
21458
21520
  Returns: import("../integrations/supabase/types").Json;
21459
21521
  };
21522
+ logistics_plan_block: {
21523
+ Args: {
21524
+ p_details?: import("../integrations/supabase/types").Json;
21525
+ p_order_ids: string[];
21526
+ p_reason: string;
21527
+ };
21528
+ Returns: number;
21529
+ };
21460
21530
  logistics_plan_buffer_sql: {
21461
21531
  Args: {
21462
21532
  p_buffer_id: string;
@@ -21825,6 +21895,12 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21825
21895
  verwijderd: number;
21826
21896
  }[];
21827
21897
  };
21898
+ order_departure_proof: {
21899
+ Args: {
21900
+ p_order_id: string;
21901
+ };
21902
+ Returns: import("../integrations/supabase/types").Json;
21903
+ };
21828
21904
  order_number_prefix: {
21829
21905
  Args: {
21830
21906
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -21832,6 +21908,25 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
21832
21908
  };
21833
21909
  Returns: string;
21834
21910
  };
21911
+ pakket_suggesties_voor_tekst: {
21912
+ Args: {
21913
+ _tekst: string;
21914
+ };
21915
+ Returns: {
21916
+ hit_type: string;
21917
+ package_id: string;
21918
+ priority: number;
21919
+ }[];
21920
+ };
21921
+ pakket_voor_reistijd: {
21922
+ Args: {
21923
+ _minuten: number;
21924
+ };
21925
+ Returns: {
21926
+ package_id: string;
21927
+ priority: number;
21928
+ }[];
21929
+ };
21835
21930
  pick_active_printers: {
21836
21931
  Args: never;
21837
21932
  Returns: {
@@ -22882,6 +22977,18 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22882
22977
  Args: never;
22883
22978
  Returns: string;
22884
22979
  };
22980
+ werkbon_totalen: {
22981
+ Args: {
22982
+ _werkbon_id: string;
22983
+ };
22984
+ Returns: {
22985
+ materials_cents: number;
22986
+ packages_cents: number;
22987
+ packages_minutes: number;
22988
+ total_cents: number;
22989
+ total_minutes: number;
22990
+ }[];
22991
+ };
22885
22992
  wo_create_from_source: {
22886
22993
  Args: {
22887
22994
  _payload?: import("../integrations/supabase/types").Json;
@@ -22920,7 +23027,7 @@ export declare const listCarriers: import("@tanstack/start-client-core").Optiona
22920
23027
  };
22921
23028
  CompositeTypes: { [_ in never]: never; };
22922
23029
  }, {
22923
- PostgrestVersion: "14.5";
23030
+ PostgrestVersion: "14.17";
22924
23031
  }>;
22925
23032
  userId: string;
22926
23033
  claims: import("@supabase/auth-js").JwtPayload;
@@ -38656,6 +38763,45 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
38656
38763
  };
38657
38764
  Relationships: [];
38658
38765
  };
38766
+ stock_consumption_alerts: {
38767
+ Row: {
38768
+ alert_type: string;
38769
+ created_at: string;
38770
+ id: string;
38771
+ mutation_log_id: string | null;
38772
+ order_id: string | null;
38773
+ order_item_id: string | null;
38774
+ qty: number;
38775
+ reason: string | null;
38776
+ resolved_at: string | null;
38777
+ updated_at: string;
38778
+ };
38779
+ Insert: {
38780
+ alert_type: string;
38781
+ created_at?: string;
38782
+ id?: string;
38783
+ mutation_log_id?: string | null;
38784
+ order_id?: string | null;
38785
+ order_item_id?: string | null;
38786
+ qty?: number;
38787
+ reason?: string | null;
38788
+ resolved_at?: string | null;
38789
+ updated_at?: string;
38790
+ };
38791
+ Update: {
38792
+ alert_type?: string;
38793
+ created_at?: string;
38794
+ id?: string;
38795
+ mutation_log_id?: string | null;
38796
+ order_id?: string | null;
38797
+ order_item_id?: string | null;
38798
+ qty?: number;
38799
+ reason?: string | null;
38800
+ resolved_at?: string | null;
38801
+ updated_at?: string;
38802
+ };
38803
+ Relationships: [];
38804
+ };
38659
38805
  stock_import_runs: {
38660
38806
  Row: {
38661
38807
  connection_id: string | null;
@@ -41509,6 +41655,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
41509
41655
  werkbon_package_items: {
41510
41656
  Row: {
41511
41657
  article_number: string | null;
41658
+ artikel_id: string | null;
41512
41659
  created_at: string;
41513
41660
  gtin: string | null;
41514
41661
  id: string;
@@ -41526,6 +41673,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
41526
41673
  };
41527
41674
  Insert: {
41528
41675
  article_number?: string | null;
41676
+ artikel_id?: string | null;
41529
41677
  created_at?: string;
41530
41678
  gtin?: string | null;
41531
41679
  id?: string;
@@ -41543,6 +41691,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
41543
41691
  };
41544
41692
  Update: {
41545
41693
  article_number?: string | null;
41694
+ artikel_id?: string | null;
41546
41695
  created_at?: string;
41547
41696
  gtin?: string | null;
41548
41697
  id?: string;
@@ -41559,6 +41708,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
41559
41708
  updated_at?: string;
41560
41709
  };
41561
41710
  Relationships: [{
41711
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
41712
+ columns: ["artikel_id"];
41713
+ isOneToOne: false;
41714
+ referencedRelation: "artikelen_cache";
41715
+ referencedColumns: ["id"];
41716
+ }, {
41562
41717
  foreignKeyName: "werkbon_package_items_package_id_fkey";
41563
41718
  columns: ["package_id"];
41564
41719
  isOneToOne: false;
@@ -42781,6 +42936,20 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
42781
42936
  referencedColumns: ["id"];
42782
42937
  }];
42783
42938
  };
42939
+ v_werkbon_totalen: {
42940
+ Row: {
42941
+ packages_cents: number | null;
42942
+ packages_minutes: number | null;
42943
+ werkbon_id: string | null;
42944
+ };
42945
+ Relationships: [{
42946
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
42947
+ columns: ["werkbon_id"];
42948
+ isOneToOne: false;
42949
+ referencedRelation: "werkbonnen";
42950
+ referencedColumns: ["id"];
42951
+ }];
42952
+ };
42784
42953
  };
42785
42954
  Functions: {
42786
42955
  _floriday_schedule_job: {
@@ -44328,6 +44497,14 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44328
44497
  };
44329
44498
  Returns: import("../integrations/supabase/types").Json;
44330
44499
  };
44500
+ logistics_plan_block: {
44501
+ Args: {
44502
+ p_details?: import("../integrations/supabase/types").Json;
44503
+ p_order_ids: string[];
44504
+ p_reason: string;
44505
+ };
44506
+ Returns: number;
44507
+ };
44331
44508
  logistics_plan_buffer_sql: {
44332
44509
  Args: {
44333
44510
  p_buffer_id: string;
@@ -44696,6 +44873,12 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44696
44873
  verwijderd: number;
44697
44874
  }[];
44698
44875
  };
44876
+ order_departure_proof: {
44877
+ Args: {
44878
+ p_order_id: string;
44879
+ };
44880
+ Returns: import("../integrations/supabase/types").Json;
44881
+ };
44699
44882
  order_number_prefix: {
44700
44883
  Args: {
44701
44884
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -44703,6 +44886,25 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
44703
44886
  };
44704
44887
  Returns: string;
44705
44888
  };
44889
+ pakket_suggesties_voor_tekst: {
44890
+ Args: {
44891
+ _tekst: string;
44892
+ };
44893
+ Returns: {
44894
+ hit_type: string;
44895
+ package_id: string;
44896
+ priority: number;
44897
+ }[];
44898
+ };
44899
+ pakket_voor_reistijd: {
44900
+ Args: {
44901
+ _minuten: number;
44902
+ };
44903
+ Returns: {
44904
+ package_id: string;
44905
+ priority: number;
44906
+ }[];
44907
+ };
44706
44908
  pick_active_printers: {
44707
44909
  Args: never;
44708
44910
  Returns: {
@@ -45753,6 +45955,18 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
45753
45955
  Args: never;
45754
45956
  Returns: string;
45755
45957
  };
45958
+ werkbon_totalen: {
45959
+ Args: {
45960
+ _werkbon_id: string;
45961
+ };
45962
+ Returns: {
45963
+ materials_cents: number;
45964
+ packages_cents: number;
45965
+ packages_minutes: number;
45966
+ total_cents: number;
45967
+ total_minutes: number;
45968
+ }[];
45969
+ };
45756
45970
  wo_create_from_source: {
45757
45971
  Args: {
45758
45972
  _payload?: import("../integrations/supabase/types").Json;
@@ -45791,7 +46005,7 @@ export declare const getCarrier: import("@tanstack/start-client-core").RequiredF
45791
46005
  };
45792
46006
  CompositeTypes: { [_ in never]: never; };
45793
46007
  }, {
45794
- PostgrestVersion: "14.5";
46008
+ PostgrestVersion: "14.17";
45795
46009
  }>;
45796
46010
  userId: string;
45797
46011
  claims: import("@supabase/auth-js").JwtPayload;
@@ -61531,6 +61745,45 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
61531
61745
  };
61532
61746
  Relationships: [];
61533
61747
  };
61748
+ stock_consumption_alerts: {
61749
+ Row: {
61750
+ alert_type: string;
61751
+ created_at: string;
61752
+ id: string;
61753
+ mutation_log_id: string | null;
61754
+ order_id: string | null;
61755
+ order_item_id: string | null;
61756
+ qty: number;
61757
+ reason: string | null;
61758
+ resolved_at: string | null;
61759
+ updated_at: string;
61760
+ };
61761
+ Insert: {
61762
+ alert_type: string;
61763
+ created_at?: string;
61764
+ id?: string;
61765
+ mutation_log_id?: string | null;
61766
+ order_id?: string | null;
61767
+ order_item_id?: string | null;
61768
+ qty?: number;
61769
+ reason?: string | null;
61770
+ resolved_at?: string | null;
61771
+ updated_at?: string;
61772
+ };
61773
+ Update: {
61774
+ alert_type?: string;
61775
+ created_at?: string;
61776
+ id?: string;
61777
+ mutation_log_id?: string | null;
61778
+ order_id?: string | null;
61779
+ order_item_id?: string | null;
61780
+ qty?: number;
61781
+ reason?: string | null;
61782
+ resolved_at?: string | null;
61783
+ updated_at?: string;
61784
+ };
61785
+ Relationships: [];
61786
+ };
61534
61787
  stock_import_runs: {
61535
61788
  Row: {
61536
61789
  connection_id: string | null;
@@ -64384,6 +64637,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
64384
64637
  werkbon_package_items: {
64385
64638
  Row: {
64386
64639
  article_number: string | null;
64640
+ artikel_id: string | null;
64387
64641
  created_at: string;
64388
64642
  gtin: string | null;
64389
64643
  id: string;
@@ -64401,6 +64655,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
64401
64655
  };
64402
64656
  Insert: {
64403
64657
  article_number?: string | null;
64658
+ artikel_id?: string | null;
64404
64659
  created_at?: string;
64405
64660
  gtin?: string | null;
64406
64661
  id?: string;
@@ -64418,6 +64673,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
64418
64673
  };
64419
64674
  Update: {
64420
64675
  article_number?: string | null;
64676
+ artikel_id?: string | null;
64421
64677
  created_at?: string;
64422
64678
  gtin?: string | null;
64423
64679
  id?: string;
@@ -64434,6 +64690,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
64434
64690
  updated_at?: string;
64435
64691
  };
64436
64692
  Relationships: [{
64693
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
64694
+ columns: ["artikel_id"];
64695
+ isOneToOne: false;
64696
+ referencedRelation: "artikelen_cache";
64697
+ referencedColumns: ["id"];
64698
+ }, {
64437
64699
  foreignKeyName: "werkbon_package_items_package_id_fkey";
64438
64700
  columns: ["package_id"];
64439
64701
  isOneToOne: false;
@@ -65656,6 +65918,20 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
65656
65918
  referencedColumns: ["id"];
65657
65919
  }];
65658
65920
  };
65921
+ v_werkbon_totalen: {
65922
+ Row: {
65923
+ packages_cents: number | null;
65924
+ packages_minutes: number | null;
65925
+ werkbon_id: string | null;
65926
+ };
65927
+ Relationships: [{
65928
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
65929
+ columns: ["werkbon_id"];
65930
+ isOneToOne: false;
65931
+ referencedRelation: "werkbonnen";
65932
+ referencedColumns: ["id"];
65933
+ }];
65934
+ };
65659
65935
  };
65660
65936
  Functions: {
65661
65937
  _floriday_schedule_job: {
@@ -67203,6 +67479,14 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
67203
67479
  };
67204
67480
  Returns: import("../integrations/supabase/types").Json;
67205
67481
  };
67482
+ logistics_plan_block: {
67483
+ Args: {
67484
+ p_details?: import("../integrations/supabase/types").Json;
67485
+ p_order_ids: string[];
67486
+ p_reason: string;
67487
+ };
67488
+ Returns: number;
67489
+ };
67206
67490
  logistics_plan_buffer_sql: {
67207
67491
  Args: {
67208
67492
  p_buffer_id: string;
@@ -67571,6 +67855,12 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
67571
67855
  verwijderd: number;
67572
67856
  }[];
67573
67857
  };
67858
+ order_departure_proof: {
67859
+ Args: {
67860
+ p_order_id: string;
67861
+ };
67862
+ Returns: import("../integrations/supabase/types").Json;
67863
+ };
67574
67864
  order_number_prefix: {
67575
67865
  Args: {
67576
67866
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -67578,6 +67868,25 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
67578
67868
  };
67579
67869
  Returns: string;
67580
67870
  };
67871
+ pakket_suggesties_voor_tekst: {
67872
+ Args: {
67873
+ _tekst: string;
67874
+ };
67875
+ Returns: {
67876
+ hit_type: string;
67877
+ package_id: string;
67878
+ priority: number;
67879
+ }[];
67880
+ };
67881
+ pakket_voor_reistijd: {
67882
+ Args: {
67883
+ _minuten: number;
67884
+ };
67885
+ Returns: {
67886
+ package_id: string;
67887
+ priority: number;
67888
+ }[];
67889
+ };
67581
67890
  pick_active_printers: {
67582
67891
  Args: never;
67583
67892
  Returns: {
@@ -68628,6 +68937,18 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
68628
68937
  Args: never;
68629
68938
  Returns: string;
68630
68939
  };
68940
+ werkbon_totalen: {
68941
+ Args: {
68942
+ _werkbon_id: string;
68943
+ };
68944
+ Returns: {
68945
+ materials_cents: number;
68946
+ packages_cents: number;
68947
+ packages_minutes: number;
68948
+ total_cents: number;
68949
+ total_minutes: number;
68950
+ }[];
68951
+ };
68631
68952
  wo_create_from_source: {
68632
68953
  Args: {
68633
68954
  _payload?: import("../integrations/supabase/types").Json;
@@ -68666,7 +68987,7 @@ export declare const upsertCarrier: import("@tanstack/start-client-core").Requir
68666
68987
  };
68667
68988
  CompositeTypes: { [_ in never]: never; };
68668
68989
  }, {
68669
- PostgrestVersion: "14.5";
68990
+ PostgrestVersion: "14.17";
68670
68991
  }>;
68671
68992
  userId: string;
68672
68993
  claims: import("@supabase/auth-js").JwtPayload;
@@ -84408,6 +84729,45 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
84408
84729
  };
84409
84730
  Relationships: [];
84410
84731
  };
84732
+ stock_consumption_alerts: {
84733
+ Row: {
84734
+ alert_type: string;
84735
+ created_at: string;
84736
+ id: string;
84737
+ mutation_log_id: string | null;
84738
+ order_id: string | null;
84739
+ order_item_id: string | null;
84740
+ qty: number;
84741
+ reason: string | null;
84742
+ resolved_at: string | null;
84743
+ updated_at: string;
84744
+ };
84745
+ Insert: {
84746
+ alert_type: string;
84747
+ created_at?: string;
84748
+ id?: string;
84749
+ mutation_log_id?: string | null;
84750
+ order_id?: string | null;
84751
+ order_item_id?: string | null;
84752
+ qty?: number;
84753
+ reason?: string | null;
84754
+ resolved_at?: string | null;
84755
+ updated_at?: string;
84756
+ };
84757
+ Update: {
84758
+ alert_type?: string;
84759
+ created_at?: string;
84760
+ id?: string;
84761
+ mutation_log_id?: string | null;
84762
+ order_id?: string | null;
84763
+ order_item_id?: string | null;
84764
+ qty?: number;
84765
+ reason?: string | null;
84766
+ resolved_at?: string | null;
84767
+ updated_at?: string;
84768
+ };
84769
+ Relationships: [];
84770
+ };
84411
84771
  stock_import_runs: {
84412
84772
  Row: {
84413
84773
  connection_id: string | null;
@@ -87261,6 +87621,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
87261
87621
  werkbon_package_items: {
87262
87622
  Row: {
87263
87623
  article_number: string | null;
87624
+ artikel_id: string | null;
87264
87625
  created_at: string;
87265
87626
  gtin: string | null;
87266
87627
  id: string;
@@ -87278,6 +87639,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
87278
87639
  };
87279
87640
  Insert: {
87280
87641
  article_number?: string | null;
87642
+ artikel_id?: string | null;
87281
87643
  created_at?: string;
87282
87644
  gtin?: string | null;
87283
87645
  id?: string;
@@ -87295,6 +87657,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
87295
87657
  };
87296
87658
  Update: {
87297
87659
  article_number?: string | null;
87660
+ artikel_id?: string | null;
87298
87661
  created_at?: string;
87299
87662
  gtin?: string | null;
87300
87663
  id?: string;
@@ -87311,6 +87674,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
87311
87674
  updated_at?: string;
87312
87675
  };
87313
87676
  Relationships: [{
87677
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
87678
+ columns: ["artikel_id"];
87679
+ isOneToOne: false;
87680
+ referencedRelation: "artikelen_cache";
87681
+ referencedColumns: ["id"];
87682
+ }, {
87314
87683
  foreignKeyName: "werkbon_package_items_package_id_fkey";
87315
87684
  columns: ["package_id"];
87316
87685
  isOneToOne: false;
@@ -88533,6 +88902,20 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
88533
88902
  referencedColumns: ["id"];
88534
88903
  }];
88535
88904
  };
88905
+ v_werkbon_totalen: {
88906
+ Row: {
88907
+ packages_cents: number | null;
88908
+ packages_minutes: number | null;
88909
+ werkbon_id: string | null;
88910
+ };
88911
+ Relationships: [{
88912
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
88913
+ columns: ["werkbon_id"];
88914
+ isOneToOne: false;
88915
+ referencedRelation: "werkbonnen";
88916
+ referencedColumns: ["id"];
88917
+ }];
88918
+ };
88536
88919
  };
88537
88920
  Functions: {
88538
88921
  _floriday_schedule_job: {
@@ -90080,6 +90463,14 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
90080
90463
  };
90081
90464
  Returns: import("../integrations/supabase/types").Json;
90082
90465
  };
90466
+ logistics_plan_block: {
90467
+ Args: {
90468
+ p_details?: import("../integrations/supabase/types").Json;
90469
+ p_order_ids: string[];
90470
+ p_reason: string;
90471
+ };
90472
+ Returns: number;
90473
+ };
90083
90474
  logistics_plan_buffer_sql: {
90084
90475
  Args: {
90085
90476
  p_buffer_id: string;
@@ -90448,6 +90839,12 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
90448
90839
  verwijderd: number;
90449
90840
  }[];
90450
90841
  };
90842
+ order_departure_proof: {
90843
+ Args: {
90844
+ p_order_id: string;
90845
+ };
90846
+ Returns: import("../integrations/supabase/types").Json;
90847
+ };
90451
90848
  order_number_prefix: {
90452
90849
  Args: {
90453
90850
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -90455,6 +90852,25 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
90455
90852
  };
90456
90853
  Returns: string;
90457
90854
  };
90855
+ pakket_suggesties_voor_tekst: {
90856
+ Args: {
90857
+ _tekst: string;
90858
+ };
90859
+ Returns: {
90860
+ hit_type: string;
90861
+ package_id: string;
90862
+ priority: number;
90863
+ }[];
90864
+ };
90865
+ pakket_voor_reistijd: {
90866
+ Args: {
90867
+ _minuten: number;
90868
+ };
90869
+ Returns: {
90870
+ package_id: string;
90871
+ priority: number;
90872
+ }[];
90873
+ };
90458
90874
  pick_active_printers: {
90459
90875
  Args: never;
90460
90876
  Returns: {
@@ -91505,6 +91921,18 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
91505
91921
  Args: never;
91506
91922
  Returns: string;
91507
91923
  };
91924
+ werkbon_totalen: {
91925
+ Args: {
91926
+ _werkbon_id: string;
91927
+ };
91928
+ Returns: {
91929
+ materials_cents: number;
91930
+ packages_cents: number;
91931
+ packages_minutes: number;
91932
+ total_cents: number;
91933
+ total_minutes: number;
91934
+ }[];
91935
+ };
91508
91936
  wo_create_from_source: {
91509
91937
  Args: {
91510
91938
  _payload?: import("../integrations/supabase/types").Json;
@@ -91543,7 +91971,7 @@ export declare const deleteCarrier: import("@tanstack/start-client-core").Requir
91543
91971
  };
91544
91972
  CompositeTypes: { [_ in never]: never; };
91545
91973
  }, {
91546
- PostgrestVersion: "14.5";
91974
+ PostgrestVersion: "14.17";
91547
91975
  }>;
91548
91976
  userId: string;
91549
91977
  claims: import("@supabase/auth-js").JwtPayload;
@@ -107283,6 +107711,45 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
107283
107711
  };
107284
107712
  Relationships: [];
107285
107713
  };
107714
+ stock_consumption_alerts: {
107715
+ Row: {
107716
+ alert_type: string;
107717
+ created_at: string;
107718
+ id: string;
107719
+ mutation_log_id: string | null;
107720
+ order_id: string | null;
107721
+ order_item_id: string | null;
107722
+ qty: number;
107723
+ reason: string | null;
107724
+ resolved_at: string | null;
107725
+ updated_at: string;
107726
+ };
107727
+ Insert: {
107728
+ alert_type: string;
107729
+ created_at?: string;
107730
+ id?: string;
107731
+ mutation_log_id?: string | null;
107732
+ order_id?: string | null;
107733
+ order_item_id?: string | null;
107734
+ qty?: number;
107735
+ reason?: string | null;
107736
+ resolved_at?: string | null;
107737
+ updated_at?: string;
107738
+ };
107739
+ Update: {
107740
+ alert_type?: string;
107741
+ created_at?: string;
107742
+ id?: string;
107743
+ mutation_log_id?: string | null;
107744
+ order_id?: string | null;
107745
+ order_item_id?: string | null;
107746
+ qty?: number;
107747
+ reason?: string | null;
107748
+ resolved_at?: string | null;
107749
+ updated_at?: string;
107750
+ };
107751
+ Relationships: [];
107752
+ };
107286
107753
  stock_import_runs: {
107287
107754
  Row: {
107288
107755
  connection_id: string | null;
@@ -110136,6 +110603,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
110136
110603
  werkbon_package_items: {
110137
110604
  Row: {
110138
110605
  article_number: string | null;
110606
+ artikel_id: string | null;
110139
110607
  created_at: string;
110140
110608
  gtin: string | null;
110141
110609
  id: string;
@@ -110153,6 +110621,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
110153
110621
  };
110154
110622
  Insert: {
110155
110623
  article_number?: string | null;
110624
+ artikel_id?: string | null;
110156
110625
  created_at?: string;
110157
110626
  gtin?: string | null;
110158
110627
  id?: string;
@@ -110170,6 +110639,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
110170
110639
  };
110171
110640
  Update: {
110172
110641
  article_number?: string | null;
110642
+ artikel_id?: string | null;
110173
110643
  created_at?: string;
110174
110644
  gtin?: string | null;
110175
110645
  id?: string;
@@ -110186,6 +110656,12 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
110186
110656
  updated_at?: string;
110187
110657
  };
110188
110658
  Relationships: [{
110659
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
110660
+ columns: ["artikel_id"];
110661
+ isOneToOne: false;
110662
+ referencedRelation: "artikelen_cache";
110663
+ referencedColumns: ["id"];
110664
+ }, {
110189
110665
  foreignKeyName: "werkbon_package_items_package_id_fkey";
110190
110666
  columns: ["package_id"];
110191
110667
  isOneToOne: false;
@@ -111408,6 +111884,20 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
111408
111884
  referencedColumns: ["id"];
111409
111885
  }];
111410
111886
  };
111887
+ v_werkbon_totalen: {
111888
+ Row: {
111889
+ packages_cents: number | null;
111890
+ packages_minutes: number | null;
111891
+ werkbon_id: string | null;
111892
+ };
111893
+ Relationships: [{
111894
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
111895
+ columns: ["werkbon_id"];
111896
+ isOneToOne: false;
111897
+ referencedRelation: "werkbonnen";
111898
+ referencedColumns: ["id"];
111899
+ }];
111900
+ };
111411
111901
  };
111412
111902
  Functions: {
111413
111903
  _floriday_schedule_job: {
@@ -112955,6 +113445,14 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
112955
113445
  };
112956
113446
  Returns: import("../integrations/supabase/types").Json;
112957
113447
  };
113448
+ logistics_plan_block: {
113449
+ Args: {
113450
+ p_details?: import("../integrations/supabase/types").Json;
113451
+ p_order_ids: string[];
113452
+ p_reason: string;
113453
+ };
113454
+ Returns: number;
113455
+ };
112958
113456
  logistics_plan_buffer_sql: {
112959
113457
  Args: {
112960
113458
  p_buffer_id: string;
@@ -113323,6 +113821,12 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
113323
113821
  verwijderd: number;
113324
113822
  }[];
113325
113823
  };
113824
+ order_departure_proof: {
113825
+ Args: {
113826
+ p_order_id: string;
113827
+ };
113828
+ Returns: import("../integrations/supabase/types").Json;
113829
+ };
113326
113830
  order_number_prefix: {
113327
113831
  Args: {
113328
113832
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -113330,6 +113834,25 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
113330
113834
  };
113331
113835
  Returns: string;
113332
113836
  };
113837
+ pakket_suggesties_voor_tekst: {
113838
+ Args: {
113839
+ _tekst: string;
113840
+ };
113841
+ Returns: {
113842
+ hit_type: string;
113843
+ package_id: string;
113844
+ priority: number;
113845
+ }[];
113846
+ };
113847
+ pakket_voor_reistijd: {
113848
+ Args: {
113849
+ _minuten: number;
113850
+ };
113851
+ Returns: {
113852
+ package_id: string;
113853
+ priority: number;
113854
+ }[];
113855
+ };
113333
113856
  pick_active_printers: {
113334
113857
  Args: never;
113335
113858
  Returns: {
@@ -114380,6 +114903,18 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
114380
114903
  Args: never;
114381
114904
  Returns: string;
114382
114905
  };
114906
+ werkbon_totalen: {
114907
+ Args: {
114908
+ _werkbon_id: string;
114909
+ };
114910
+ Returns: {
114911
+ materials_cents: number;
114912
+ packages_cents: number;
114913
+ packages_minutes: number;
114914
+ total_cents: number;
114915
+ total_minutes: number;
114916
+ }[];
114917
+ };
114383
114918
  wo_create_from_source: {
114384
114919
  Args: {
114385
114920
  _payload?: import("../integrations/supabase/types").Json;
@@ -114418,7 +114953,7 @@ export declare const reorderCarriers: import("@tanstack/start-client-core").Requ
114418
114953
  };
114419
114954
  CompositeTypes: { [_ in never]: never; };
114420
114955
  }, {
114421
- PostgrestVersion: "14.5";
114956
+ PostgrestVersion: "14.17";
114422
114957
  }>;
114423
114958
  userId: string;
114424
114959
  claims: import("@supabase/auth-js").JwtPayload;