@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
@@ -228,7 +228,9 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
228
228
  notes?: string | null;
229
229
  recurrence?: string | null;
230
230
  reminders?: import("../integrations/supabase/types").Json;
231
- source_id?: string | null;
231
+ source_id
232
+ /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
233
+ ?: string | null;
232
234
  source_module?: string;
233
235
  source_type?: string | null;
234
236
  start_at?: string;
@@ -15793,6 +15795,45 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
15793
15795
  };
15794
15796
  Relationships: [];
15795
15797
  };
15798
+ stock_consumption_alerts: {
15799
+ Row: {
15800
+ alert_type: string;
15801
+ created_at: string;
15802
+ id: string;
15803
+ mutation_log_id: string | null;
15804
+ order_id: string | null;
15805
+ order_item_id: string | null;
15806
+ qty: number;
15807
+ reason: string | null;
15808
+ resolved_at: string | null;
15809
+ updated_at: string;
15810
+ };
15811
+ Insert: {
15812
+ alert_type: string;
15813
+ created_at?: string;
15814
+ id?: string;
15815
+ mutation_log_id?: string | null;
15816
+ order_id?: string | null;
15817
+ order_item_id?: string | null;
15818
+ qty?: number;
15819
+ reason?: string | null;
15820
+ resolved_at?: string | null;
15821
+ updated_at?: string;
15822
+ };
15823
+ Update: {
15824
+ alert_type?: string;
15825
+ created_at?: string;
15826
+ id?: string;
15827
+ mutation_log_id?: string | null;
15828
+ order_id?: string | null;
15829
+ order_item_id?: string | null;
15830
+ qty?: number;
15831
+ reason?: string | null;
15832
+ resolved_at?: string | null;
15833
+ updated_at?: string;
15834
+ };
15835
+ Relationships: [];
15836
+ };
15796
15837
  stock_import_runs: {
15797
15838
  Row: {
15798
15839
  connection_id: string | null;
@@ -18646,6 +18687,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
18646
18687
  werkbon_package_items: {
18647
18688
  Row: {
18648
18689
  article_number: string | null;
18690
+ artikel_id: string | null;
18649
18691
  created_at: string;
18650
18692
  gtin: string | null;
18651
18693
  id: string;
@@ -18663,6 +18705,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
18663
18705
  };
18664
18706
  Insert: {
18665
18707
  article_number?: string | null;
18708
+ artikel_id?: string | null;
18666
18709
  created_at?: string;
18667
18710
  gtin?: string | null;
18668
18711
  id?: string;
@@ -18680,6 +18723,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
18680
18723
  };
18681
18724
  Update: {
18682
18725
  article_number?: string | null;
18726
+ artikel_id?: string | null;
18683
18727
  created_at?: string;
18684
18728
  gtin?: string | null;
18685
18729
  id?: string;
@@ -18696,6 +18740,12 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
18696
18740
  updated_at?: string;
18697
18741
  };
18698
18742
  Relationships: [{
18743
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
18744
+ columns: ["artikel_id"];
18745
+ isOneToOne: false;
18746
+ referencedRelation: "artikelen_cache";
18747
+ referencedColumns: ["id"];
18748
+ }, {
18699
18749
  foreignKeyName: "werkbon_package_items_package_id_fkey";
18700
18750
  columns: ["package_id"];
18701
18751
  isOneToOne: false;
@@ -19918,6 +19968,20 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
19918
19968
  referencedColumns: ["id"];
19919
19969
  }];
19920
19970
  };
19971
+ v_werkbon_totalen: {
19972
+ Row: {
19973
+ packages_cents: number | null;
19974
+ packages_minutes: number | null;
19975
+ werkbon_id: string | null;
19976
+ };
19977
+ Relationships: [{
19978
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
19979
+ columns: ["werkbon_id"];
19980
+ isOneToOne: false;
19981
+ referencedRelation: "werkbonnen";
19982
+ referencedColumns: ["id"];
19983
+ }];
19984
+ };
19921
19985
  };
19922
19986
  Functions: {
19923
19987
  _floriday_schedule_job: {
@@ -21465,6 +21529,14 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
21465
21529
  };
21466
21530
  Returns: import("../integrations/supabase/types").Json;
21467
21531
  };
21532
+ logistics_plan_block: {
21533
+ Args: {
21534
+ p_details?: import("../integrations/supabase/types").Json;
21535
+ p_order_ids: string[];
21536
+ p_reason: string;
21537
+ };
21538
+ Returns: number;
21539
+ };
21468
21540
  logistics_plan_buffer_sql: {
21469
21541
  Args: {
21470
21542
  p_buffer_id: string;
@@ -21833,6 +21905,12 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
21833
21905
  verwijderd: number;
21834
21906
  }[];
21835
21907
  };
21908
+ order_departure_proof: {
21909
+ Args: {
21910
+ p_order_id: string;
21911
+ };
21912
+ Returns: import("../integrations/supabase/types").Json;
21913
+ };
21836
21914
  order_number_prefix: {
21837
21915
  Args: {
21838
21916
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -21840,6 +21918,25 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
21840
21918
  };
21841
21919
  Returns: string;
21842
21920
  };
21921
+ pakket_suggesties_voor_tekst: {
21922
+ Args: {
21923
+ _tekst: string;
21924
+ };
21925
+ Returns: {
21926
+ hit_type: string;
21927
+ package_id: string;
21928
+ priority: number;
21929
+ }[];
21930
+ };
21931
+ pakket_voor_reistijd: {
21932
+ Args: {
21933
+ _minuten: number;
21934
+ };
21935
+ Returns: {
21936
+ package_id: string;
21937
+ priority: number;
21938
+ }[];
21939
+ };
21843
21940
  pick_active_printers: {
21844
21941
  Args: never;
21845
21942
  Returns: {
@@ -22890,6 +22987,18 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
22890
22987
  Args: never;
22891
22988
  Returns: string;
22892
22989
  };
22990
+ werkbon_totalen: {
22991
+ Args: {
22992
+ _werkbon_id: string;
22993
+ };
22994
+ Returns: {
22995
+ materials_cents: number;
22996
+ packages_cents: number;
22997
+ packages_minutes: number;
22998
+ total_cents: number;
22999
+ total_minutes: number;
23000
+ }[];
23001
+ };
22893
23002
  wo_create_from_source: {
22894
23003
  Args: {
22895
23004
  _payload?: import("../integrations/supabase/types").Json;
@@ -22928,7 +23037,7 @@ export declare const getTodaysControlCarts: import("@tanstack/start-client-core"
22928
23037
  };
22929
23038
  CompositeTypes: { [_ in never]: never; };
22930
23039
  }, {
22931
- PostgrestVersion: "14.5";
23040
+ PostgrestVersion: "14.17";
22932
23041
  }>;
22933
23042
  userId: string;
22934
23043
  claims: import("@supabase/auth-js").JwtPayload;
@@ -23107,7 +23216,9 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
23107
23216
  notes?: string | null;
23108
23217
  recurrence?: string | null;
23109
23218
  reminders?: import("../integrations/supabase/types").Json;
23110
- source_id?: string | null;
23219
+ source_id
23220
+ /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
23221
+ ?: string | null;
23111
23222
  source_module?: string;
23112
23223
  source_type?: string | null;
23113
23224
  start_at?: string;
@@ -38672,6 +38783,45 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
38672
38783
  };
38673
38784
  Relationships: [];
38674
38785
  };
38786
+ stock_consumption_alerts: {
38787
+ Row: {
38788
+ alert_type: string;
38789
+ created_at: string;
38790
+ id: string;
38791
+ mutation_log_id: string | null;
38792
+ order_id: string | null;
38793
+ order_item_id: string | null;
38794
+ qty: number;
38795
+ reason: string | null;
38796
+ resolved_at: string | null;
38797
+ updated_at: string;
38798
+ };
38799
+ Insert: {
38800
+ alert_type: string;
38801
+ created_at?: string;
38802
+ id?: string;
38803
+ mutation_log_id?: string | null;
38804
+ order_id?: string | null;
38805
+ order_item_id?: string | null;
38806
+ qty?: number;
38807
+ reason?: string | null;
38808
+ resolved_at?: string | null;
38809
+ updated_at?: string;
38810
+ };
38811
+ Update: {
38812
+ alert_type?: string;
38813
+ created_at?: string;
38814
+ id?: string;
38815
+ mutation_log_id?: string | null;
38816
+ order_id?: string | null;
38817
+ order_item_id?: string | null;
38818
+ qty?: number;
38819
+ reason?: string | null;
38820
+ resolved_at?: string | null;
38821
+ updated_at?: string;
38822
+ };
38823
+ Relationships: [];
38824
+ };
38675
38825
  stock_import_runs: {
38676
38826
  Row: {
38677
38827
  connection_id: string | null;
@@ -41525,6 +41675,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
41525
41675
  werkbon_package_items: {
41526
41676
  Row: {
41527
41677
  article_number: string | null;
41678
+ artikel_id: string | null;
41528
41679
  created_at: string;
41529
41680
  gtin: string | null;
41530
41681
  id: string;
@@ -41542,6 +41693,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
41542
41693
  };
41543
41694
  Insert: {
41544
41695
  article_number?: string | null;
41696
+ artikel_id?: string | null;
41545
41697
  created_at?: string;
41546
41698
  gtin?: string | null;
41547
41699
  id?: string;
@@ -41559,6 +41711,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
41559
41711
  };
41560
41712
  Update: {
41561
41713
  article_number?: string | null;
41714
+ artikel_id?: string | null;
41562
41715
  created_at?: string;
41563
41716
  gtin?: string | null;
41564
41717
  id?: string;
@@ -41575,6 +41728,12 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
41575
41728
  updated_at?: string;
41576
41729
  };
41577
41730
  Relationships: [{
41731
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
41732
+ columns: ["artikel_id"];
41733
+ isOneToOne: false;
41734
+ referencedRelation: "artikelen_cache";
41735
+ referencedColumns: ["id"];
41736
+ }, {
41578
41737
  foreignKeyName: "werkbon_package_items_package_id_fkey";
41579
41738
  columns: ["package_id"];
41580
41739
  isOneToOne: false;
@@ -42797,6 +42956,20 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
42797
42956
  referencedColumns: ["id"];
42798
42957
  }];
42799
42958
  };
42959
+ v_werkbon_totalen: {
42960
+ Row: {
42961
+ packages_cents: number | null;
42962
+ packages_minutes: number | null;
42963
+ werkbon_id: string | null;
42964
+ };
42965
+ Relationships: [{
42966
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
42967
+ columns: ["werkbon_id"];
42968
+ isOneToOne: false;
42969
+ referencedRelation: "werkbonnen";
42970
+ referencedColumns: ["id"];
42971
+ }];
42972
+ };
42800
42973
  };
42801
42974
  Functions: {
42802
42975
  _floriday_schedule_job: {
@@ -44344,6 +44517,14 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
44344
44517
  };
44345
44518
  Returns: import("../integrations/supabase/types").Json;
44346
44519
  };
44520
+ logistics_plan_block: {
44521
+ Args: {
44522
+ p_details?: import("../integrations/supabase/types").Json;
44523
+ p_order_ids: string[];
44524
+ p_reason: string;
44525
+ };
44526
+ Returns: number;
44527
+ };
44347
44528
  logistics_plan_buffer_sql: {
44348
44529
  Args: {
44349
44530
  p_buffer_id: string;
@@ -44712,6 +44893,12 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
44712
44893
  verwijderd: number;
44713
44894
  }[];
44714
44895
  };
44896
+ order_departure_proof: {
44897
+ Args: {
44898
+ p_order_id: string;
44899
+ };
44900
+ Returns: import("../integrations/supabase/types").Json;
44901
+ };
44715
44902
  order_number_prefix: {
44716
44903
  Args: {
44717
44904
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -44719,6 +44906,25 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
44719
44906
  };
44720
44907
  Returns: string;
44721
44908
  };
44909
+ pakket_suggesties_voor_tekst: {
44910
+ Args: {
44911
+ _tekst: string;
44912
+ };
44913
+ Returns: {
44914
+ hit_type: string;
44915
+ package_id: string;
44916
+ priority: number;
44917
+ }[];
44918
+ };
44919
+ pakket_voor_reistijd: {
44920
+ Args: {
44921
+ _minuten: number;
44922
+ };
44923
+ Returns: {
44924
+ package_id: string;
44925
+ priority: number;
44926
+ }[];
44927
+ };
44722
44928
  pick_active_printers: {
44723
44929
  Args: never;
44724
44930
  Returns: {
@@ -45769,6 +45975,18 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
45769
45975
  Args: never;
45770
45976
  Returns: string;
45771
45977
  };
45978
+ werkbon_totalen: {
45979
+ Args: {
45980
+ _werkbon_id: string;
45981
+ };
45982
+ Returns: {
45983
+ materials_cents: number;
45984
+ packages_cents: number;
45985
+ packages_minutes: number;
45986
+ total_cents: number;
45987
+ total_minutes: number;
45988
+ }[];
45989
+ };
45772
45990
  wo_create_from_source: {
45773
45991
  Args: {
45774
45992
  _payload?: import("../integrations/supabase/types").Json;
@@ -45807,7 +46025,7 @@ export declare const getControlRescheduleProposals: import("@tanstack/start-clie
45807
46025
  };
45808
46026
  CompositeTypes: { [_ in never]: never; };
45809
46027
  }, {
45810
- PostgrestVersion: "14.5";
46028
+ PostgrestVersion: "14.17";
45811
46029
  }>;
45812
46030
  userId: string;
45813
46031
  claims: import("@supabase/auth-js").JwtPayload;
@@ -45985,7 +46203,9 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
45985
46203
  notes?: string | null;
45986
46204
  recurrence?: string | null;
45987
46205
  reminders?: import("../integrations/supabase/types").Json;
45988
- source_id?: string | null;
46206
+ source_id
46207
+ /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
46208
+ ?: string | null;
45989
46209
  source_module?: string;
45990
46210
  source_type?: string | null;
45991
46211
  start_at?: string;
@@ -61550,6 +61770,45 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
61550
61770
  };
61551
61771
  Relationships: [];
61552
61772
  };
61773
+ stock_consumption_alerts: {
61774
+ Row: {
61775
+ alert_type: string;
61776
+ created_at: string;
61777
+ id: string;
61778
+ mutation_log_id: string | null;
61779
+ order_id: string | null;
61780
+ order_item_id: string | null;
61781
+ qty: number;
61782
+ reason: string | null;
61783
+ resolved_at: string | null;
61784
+ updated_at: string;
61785
+ };
61786
+ Insert: {
61787
+ alert_type: string;
61788
+ created_at?: string;
61789
+ id?: string;
61790
+ mutation_log_id?: string | null;
61791
+ order_id?: string | null;
61792
+ order_item_id?: string | null;
61793
+ qty?: number;
61794
+ reason?: string | null;
61795
+ resolved_at?: string | null;
61796
+ updated_at?: string;
61797
+ };
61798
+ Update: {
61799
+ alert_type?: string;
61800
+ created_at?: string;
61801
+ id?: string;
61802
+ mutation_log_id?: string | null;
61803
+ order_id?: string | null;
61804
+ order_item_id?: string | null;
61805
+ qty?: number;
61806
+ reason?: string | null;
61807
+ resolved_at?: string | null;
61808
+ updated_at?: string;
61809
+ };
61810
+ Relationships: [];
61811
+ };
61553
61812
  stock_import_runs: {
61554
61813
  Row: {
61555
61814
  connection_id: string | null;
@@ -64403,6 +64662,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
64403
64662
  werkbon_package_items: {
64404
64663
  Row: {
64405
64664
  article_number: string | null;
64665
+ artikel_id: string | null;
64406
64666
  created_at: string;
64407
64667
  gtin: string | null;
64408
64668
  id: string;
@@ -64420,6 +64680,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
64420
64680
  };
64421
64681
  Insert: {
64422
64682
  article_number?: string | null;
64683
+ artikel_id?: string | null;
64423
64684
  created_at?: string;
64424
64685
  gtin?: string | null;
64425
64686
  id?: string;
@@ -64437,6 +64698,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
64437
64698
  };
64438
64699
  Update: {
64439
64700
  article_number?: string | null;
64701
+ artikel_id?: string | null;
64440
64702
  created_at?: string;
64441
64703
  gtin?: string | null;
64442
64704
  id?: string;
@@ -64453,6 +64715,12 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
64453
64715
  updated_at?: string;
64454
64716
  };
64455
64717
  Relationships: [{
64718
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
64719
+ columns: ["artikel_id"];
64720
+ isOneToOne: false;
64721
+ referencedRelation: "artikelen_cache";
64722
+ referencedColumns: ["id"];
64723
+ }, {
64456
64724
  foreignKeyName: "werkbon_package_items_package_id_fkey";
64457
64725
  columns: ["package_id"];
64458
64726
  isOneToOne: false;
@@ -65675,6 +65943,20 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
65675
65943
  referencedColumns: ["id"];
65676
65944
  }];
65677
65945
  };
65946
+ v_werkbon_totalen: {
65947
+ Row: {
65948
+ packages_cents: number | null;
65949
+ packages_minutes: number | null;
65950
+ werkbon_id: string | null;
65951
+ };
65952
+ Relationships: [{
65953
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
65954
+ columns: ["werkbon_id"];
65955
+ isOneToOne: false;
65956
+ referencedRelation: "werkbonnen";
65957
+ referencedColumns: ["id"];
65958
+ }];
65959
+ };
65678
65960
  };
65679
65961
  Functions: {
65680
65962
  _floriday_schedule_job: {
@@ -67222,6 +67504,14 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
67222
67504
  };
67223
67505
  Returns: import("../integrations/supabase/types").Json;
67224
67506
  };
67507
+ logistics_plan_block: {
67508
+ Args: {
67509
+ p_details?: import("../integrations/supabase/types").Json;
67510
+ p_order_ids: string[];
67511
+ p_reason: string;
67512
+ };
67513
+ Returns: number;
67514
+ };
67225
67515
  logistics_plan_buffer_sql: {
67226
67516
  Args: {
67227
67517
  p_buffer_id: string;
@@ -67590,6 +67880,12 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
67590
67880
  verwijderd: number;
67591
67881
  }[];
67592
67882
  };
67883
+ order_departure_proof: {
67884
+ Args: {
67885
+ p_order_id: string;
67886
+ };
67887
+ Returns: import("../integrations/supabase/types").Json;
67888
+ };
67593
67889
  order_number_prefix: {
67594
67890
  Args: {
67595
67891
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -67597,6 +67893,25 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
67597
67893
  };
67598
67894
  Returns: string;
67599
67895
  };
67896
+ pakket_suggesties_voor_tekst: {
67897
+ Args: {
67898
+ _tekst: string;
67899
+ };
67900
+ Returns: {
67901
+ hit_type: string;
67902
+ package_id: string;
67903
+ priority: number;
67904
+ }[];
67905
+ };
67906
+ pakket_voor_reistijd: {
67907
+ Args: {
67908
+ _minuten: number;
67909
+ };
67910
+ Returns: {
67911
+ package_id: string;
67912
+ priority: number;
67913
+ }[];
67914
+ };
67600
67915
  pick_active_printers: {
67601
67916
  Args: never;
67602
67917
  Returns: {
@@ -68647,6 +68962,18 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
68647
68962
  Args: never;
68648
68963
  Returns: string;
68649
68964
  };
68965
+ werkbon_totalen: {
68966
+ Args: {
68967
+ _werkbon_id: string;
68968
+ };
68969
+ Returns: {
68970
+ materials_cents: number;
68971
+ packages_cents: number;
68972
+ packages_minutes: number;
68973
+ total_cents: number;
68974
+ total_minutes: number;
68975
+ }[];
68976
+ };
68650
68977
  wo_create_from_source: {
68651
68978
  Args: {
68652
68979
  _payload?: import("../integrations/supabase/types").Json;
@@ -68685,7 +69012,7 @@ export declare const submitControlSession: import("@tanstack/start-client-core")
68685
69012
  };
68686
69013
  CompositeTypes: { [_ in never]: never; };
68687
69014
  }, {
68688
- PostgrestVersion: "14.5";
69015
+ PostgrestVersion: "14.17";
68689
69016
  }>;
68690
69017
  userId: string;
68691
69018
  claims: import("@supabase/auth-js").JwtPayload;
@@ -68866,7 +69193,9 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
68866
69193
  notes?: string | null;
68867
69194
  recurrence?: string | null;
68868
69195
  reminders?: import("../integrations/supabase/types").Json;
68869
- source_id?: string | null;
69196
+ source_id
69197
+ /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
69198
+ ?: string | null;
68870
69199
  source_module?: string;
68871
69200
  source_type?: string | null;
68872
69201
  start_at?: string;
@@ -84431,6 +84760,45 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
84431
84760
  };
84432
84761
  Relationships: [];
84433
84762
  };
84763
+ stock_consumption_alerts: {
84764
+ Row: {
84765
+ alert_type: string;
84766
+ created_at: string;
84767
+ id: string;
84768
+ mutation_log_id: string | null;
84769
+ order_id: string | null;
84770
+ order_item_id: string | null;
84771
+ qty: number;
84772
+ reason: string | null;
84773
+ resolved_at: string | null;
84774
+ updated_at: string;
84775
+ };
84776
+ Insert: {
84777
+ alert_type: string;
84778
+ created_at?: string;
84779
+ id?: string;
84780
+ mutation_log_id?: string | null;
84781
+ order_id?: string | null;
84782
+ order_item_id?: string | null;
84783
+ qty?: number;
84784
+ reason?: string | null;
84785
+ resolved_at?: string | null;
84786
+ updated_at?: string;
84787
+ };
84788
+ Update: {
84789
+ alert_type?: string;
84790
+ created_at?: string;
84791
+ id?: string;
84792
+ mutation_log_id?: string | null;
84793
+ order_id?: string | null;
84794
+ order_item_id?: string | null;
84795
+ qty?: number;
84796
+ reason?: string | null;
84797
+ resolved_at?: string | null;
84798
+ updated_at?: string;
84799
+ };
84800
+ Relationships: [];
84801
+ };
84434
84802
  stock_import_runs: {
84435
84803
  Row: {
84436
84804
  connection_id: string | null;
@@ -87284,6 +87652,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
87284
87652
  werkbon_package_items: {
87285
87653
  Row: {
87286
87654
  article_number: string | null;
87655
+ artikel_id: string | null;
87287
87656
  created_at: string;
87288
87657
  gtin: string | null;
87289
87658
  id: string;
@@ -87301,6 +87670,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
87301
87670
  };
87302
87671
  Insert: {
87303
87672
  article_number?: string | null;
87673
+ artikel_id?: string | null;
87304
87674
  created_at?: string;
87305
87675
  gtin?: string | null;
87306
87676
  id?: string;
@@ -87318,6 +87688,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
87318
87688
  };
87319
87689
  Update: {
87320
87690
  article_number?: string | null;
87691
+ artikel_id?: string | null;
87321
87692
  created_at?: string;
87322
87693
  gtin?: string | null;
87323
87694
  id?: string;
@@ -87334,6 +87705,12 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
87334
87705
  updated_at?: string;
87335
87706
  };
87336
87707
  Relationships: [{
87708
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
87709
+ columns: ["artikel_id"];
87710
+ isOneToOne: false;
87711
+ referencedRelation: "artikelen_cache";
87712
+ referencedColumns: ["id"];
87713
+ }, {
87337
87714
  foreignKeyName: "werkbon_package_items_package_id_fkey";
87338
87715
  columns: ["package_id"];
87339
87716
  isOneToOne: false;
@@ -88556,6 +88933,20 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
88556
88933
  referencedColumns: ["id"];
88557
88934
  }];
88558
88935
  };
88936
+ v_werkbon_totalen: {
88937
+ Row: {
88938
+ packages_cents: number | null;
88939
+ packages_minutes: number | null;
88940
+ werkbon_id: string | null;
88941
+ };
88942
+ Relationships: [{
88943
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
88944
+ columns: ["werkbon_id"];
88945
+ isOneToOne: false;
88946
+ referencedRelation: "werkbonnen";
88947
+ referencedColumns: ["id"];
88948
+ }];
88949
+ };
88559
88950
  };
88560
88951
  Functions: {
88561
88952
  _floriday_schedule_job: {
@@ -90103,6 +90494,14 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
90103
90494
  };
90104
90495
  Returns: import("../integrations/supabase/types").Json;
90105
90496
  };
90497
+ logistics_plan_block: {
90498
+ Args: {
90499
+ p_details?: import("../integrations/supabase/types").Json;
90500
+ p_order_ids: string[];
90501
+ p_reason: string;
90502
+ };
90503
+ Returns: number;
90504
+ };
90106
90505
  logistics_plan_buffer_sql: {
90107
90506
  Args: {
90108
90507
  p_buffer_id: string;
@@ -90471,6 +90870,12 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
90471
90870
  verwijderd: number;
90472
90871
  }[];
90473
90872
  };
90873
+ order_departure_proof: {
90874
+ Args: {
90875
+ p_order_id: string;
90876
+ };
90877
+ Returns: import("../integrations/supabase/types").Json;
90878
+ };
90474
90879
  order_number_prefix: {
90475
90880
  Args: {
90476
90881
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -90478,6 +90883,25 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
90478
90883
  };
90479
90884
  Returns: string;
90480
90885
  };
90886
+ pakket_suggesties_voor_tekst: {
90887
+ Args: {
90888
+ _tekst: string;
90889
+ };
90890
+ Returns: {
90891
+ hit_type: string;
90892
+ package_id: string;
90893
+ priority: number;
90894
+ }[];
90895
+ };
90896
+ pakket_voor_reistijd: {
90897
+ Args: {
90898
+ _minuten: number;
90899
+ };
90900
+ Returns: {
90901
+ package_id: string;
90902
+ priority: number;
90903
+ }[];
90904
+ };
90481
90905
  pick_active_printers: {
90482
90906
  Args: never;
90483
90907
  Returns: {
@@ -91528,6 +91952,18 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
91528
91952
  Args: never;
91529
91953
  Returns: string;
91530
91954
  };
91955
+ werkbon_totalen: {
91956
+ Args: {
91957
+ _werkbon_id: string;
91958
+ };
91959
+ Returns: {
91960
+ materials_cents: number;
91961
+ packages_cents: number;
91962
+ packages_minutes: number;
91963
+ total_cents: number;
91964
+ total_minutes: number;
91965
+ }[];
91966
+ };
91531
91967
  wo_create_from_source: {
91532
91968
  Args: {
91533
91969
  _payload?: import("../integrations/supabase/types").Json;
@@ -91566,7 +92002,7 @@ export declare const listControlHistory: import("@tanstack/start-client-core").O
91566
92002
  };
91567
92003
  CompositeTypes: { [_ in never]: never; };
91568
92004
  }, {
91569
- PostgrestVersion: "14.5";
92005
+ PostgrestVersion: "14.17";
91570
92006
  }>;
91571
92007
  userId: string;
91572
92008
  claims: import("@supabase/auth-js").JwtPayload;
@@ -91750,7 +92186,9 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
91750
92186
  notes?: string | null;
91751
92187
  recurrence?: string | null;
91752
92188
  reminders?: import("../integrations/supabase/types").Json;
91753
- source_id?: string | null;
92189
+ source_id
92190
+ /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
92191
+ ?: string | null;
91754
92192
  source_module?: string;
91755
92193
  source_type?: string | null;
91756
92194
  start_at?: string;
@@ -107315,6 +107753,45 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
107315
107753
  };
107316
107754
  Relationships: [];
107317
107755
  };
107756
+ stock_consumption_alerts: {
107757
+ Row: {
107758
+ alert_type: string;
107759
+ created_at: string;
107760
+ id: string;
107761
+ mutation_log_id: string | null;
107762
+ order_id: string | null;
107763
+ order_item_id: string | null;
107764
+ qty: number;
107765
+ reason: string | null;
107766
+ resolved_at: string | null;
107767
+ updated_at: string;
107768
+ };
107769
+ Insert: {
107770
+ alert_type: string;
107771
+ created_at?: string;
107772
+ id?: string;
107773
+ mutation_log_id?: string | null;
107774
+ order_id?: string | null;
107775
+ order_item_id?: string | null;
107776
+ qty?: number;
107777
+ reason?: string | null;
107778
+ resolved_at?: string | null;
107779
+ updated_at?: string;
107780
+ };
107781
+ Update: {
107782
+ alert_type?: string;
107783
+ created_at?: string;
107784
+ id?: string;
107785
+ mutation_log_id?: string | null;
107786
+ order_id?: string | null;
107787
+ order_item_id?: string | null;
107788
+ qty?: number;
107789
+ reason?: string | null;
107790
+ resolved_at?: string | null;
107791
+ updated_at?: string;
107792
+ };
107793
+ Relationships: [];
107794
+ };
107318
107795
  stock_import_runs: {
107319
107796
  Row: {
107320
107797
  connection_id: string | null;
@@ -110168,6 +110645,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
110168
110645
  werkbon_package_items: {
110169
110646
  Row: {
110170
110647
  article_number: string | null;
110648
+ artikel_id: string | null;
110171
110649
  created_at: string;
110172
110650
  gtin: string | null;
110173
110651
  id: string;
@@ -110185,6 +110663,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
110185
110663
  };
110186
110664
  Insert: {
110187
110665
  article_number?: string | null;
110666
+ artikel_id?: string | null;
110188
110667
  created_at?: string;
110189
110668
  gtin?: string | null;
110190
110669
  id?: string;
@@ -110202,6 +110681,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
110202
110681
  };
110203
110682
  Update: {
110204
110683
  article_number?: string | null;
110684
+ artikel_id?: string | null;
110205
110685
  created_at?: string;
110206
110686
  gtin?: string | null;
110207
110687
  id?: string;
@@ -110218,6 +110698,12 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
110218
110698
  updated_at?: string;
110219
110699
  };
110220
110700
  Relationships: [{
110701
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
110702
+ columns: ["artikel_id"];
110703
+ isOneToOne: false;
110704
+ referencedRelation: "artikelen_cache";
110705
+ referencedColumns: ["id"];
110706
+ }, {
110221
110707
  foreignKeyName: "werkbon_package_items_package_id_fkey";
110222
110708
  columns: ["package_id"];
110223
110709
  isOneToOne: false;
@@ -111440,6 +111926,20 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
111440
111926
  referencedColumns: ["id"];
111441
111927
  }];
111442
111928
  };
111929
+ v_werkbon_totalen: {
111930
+ Row: {
111931
+ packages_cents: number | null;
111932
+ packages_minutes: number | null;
111933
+ werkbon_id: string | null;
111934
+ };
111935
+ Relationships: [{
111936
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
111937
+ columns: ["werkbon_id"];
111938
+ isOneToOne: false;
111939
+ referencedRelation: "werkbonnen";
111940
+ referencedColumns: ["id"];
111941
+ }];
111942
+ };
111443
111943
  };
111444
111944
  Functions: {
111445
111945
  _floriday_schedule_job: {
@@ -112987,6 +113487,14 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
112987
113487
  };
112988
113488
  Returns: import("../integrations/supabase/types").Json;
112989
113489
  };
113490
+ logistics_plan_block: {
113491
+ Args: {
113492
+ p_details?: import("../integrations/supabase/types").Json;
113493
+ p_order_ids: string[];
113494
+ p_reason: string;
113495
+ };
113496
+ Returns: number;
113497
+ };
112990
113498
  logistics_plan_buffer_sql: {
112991
113499
  Args: {
112992
113500
  p_buffer_id: string;
@@ -113355,6 +113863,12 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
113355
113863
  verwijderd: number;
113356
113864
  }[];
113357
113865
  };
113866
+ order_departure_proof: {
113867
+ Args: {
113868
+ p_order_id: string;
113869
+ };
113870
+ Returns: import("../integrations/supabase/types").Json;
113871
+ };
113358
113872
  order_number_prefix: {
113359
113873
  Args: {
113360
113874
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -113362,6 +113876,25 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
113362
113876
  };
113363
113877
  Returns: string;
113364
113878
  };
113879
+ pakket_suggesties_voor_tekst: {
113880
+ Args: {
113881
+ _tekst: string;
113882
+ };
113883
+ Returns: {
113884
+ hit_type: string;
113885
+ package_id: string;
113886
+ priority: number;
113887
+ }[];
113888
+ };
113889
+ pakket_voor_reistijd: {
113890
+ Args: {
113891
+ _minuten: number;
113892
+ };
113893
+ Returns: {
113894
+ package_id: string;
113895
+ priority: number;
113896
+ }[];
113897
+ };
113365
113898
  pick_active_printers: {
113366
113899
  Args: never;
113367
113900
  Returns: {
@@ -114412,6 +114945,18 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
114412
114945
  Args: never;
114413
114946
  Returns: string;
114414
114947
  };
114948
+ werkbon_totalen: {
114949
+ Args: {
114950
+ _werkbon_id: string;
114951
+ };
114952
+ Returns: {
114953
+ materials_cents: number;
114954
+ packages_cents: number;
114955
+ packages_minutes: number;
114956
+ total_cents: number;
114957
+ total_minutes: number;
114958
+ }[];
114959
+ };
114415
114960
  wo_create_from_source: {
114416
114961
  Args: {
114417
114962
  _payload?: import("../integrations/supabase/types").Json;
@@ -114450,7 +114995,7 @@ export declare const getControlSessionDetail: import("@tanstack/start-client-cor
114450
114995
  };
114451
114996
  CompositeTypes: { [_ in never]: never; };
114452
114997
  }, {
114453
- PostgrestVersion: "14.5";
114998
+ PostgrestVersion: "14.17";
114454
114999
  }>;
114455
115000
  userId: string;
114456
115001
  claims: import("@supabase/auth-js").JwtPayload;
@@ -114637,7 +115182,9 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
114637
115182
  notes?: string | null;
114638
115183
  recurrence?: string | null;
114639
115184
  reminders?: import("../integrations/supabase/types").Json;
114640
- source_id?: string | null;
115185
+ source_id
115186
+ /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
115187
+ ?: string | null;
114641
115188
  source_module?: string;
114642
115189
  source_type?: string | null;
114643
115190
  start_at?: string;
@@ -130202,6 +130749,45 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
130202
130749
  };
130203
130750
  Relationships: [];
130204
130751
  };
130752
+ stock_consumption_alerts: {
130753
+ Row: {
130754
+ alert_type: string;
130755
+ created_at: string;
130756
+ id: string;
130757
+ mutation_log_id: string | null;
130758
+ order_id: string | null;
130759
+ order_item_id: string | null;
130760
+ qty: number;
130761
+ reason: string | null;
130762
+ resolved_at: string | null;
130763
+ updated_at: string;
130764
+ };
130765
+ Insert: {
130766
+ alert_type: string;
130767
+ created_at?: string;
130768
+ id?: string;
130769
+ mutation_log_id?: string | null;
130770
+ order_id?: string | null;
130771
+ order_item_id?: string | null;
130772
+ qty?: number;
130773
+ reason?: string | null;
130774
+ resolved_at?: string | null;
130775
+ updated_at?: string;
130776
+ };
130777
+ Update: {
130778
+ alert_type?: string;
130779
+ created_at?: string;
130780
+ id?: string;
130781
+ mutation_log_id?: string | null;
130782
+ order_id?: string | null;
130783
+ order_item_id?: string | null;
130784
+ qty?: number;
130785
+ reason?: string | null;
130786
+ resolved_at?: string | null;
130787
+ updated_at?: string;
130788
+ };
130789
+ Relationships: [];
130790
+ };
130205
130791
  stock_import_runs: {
130206
130792
  Row: {
130207
130793
  connection_id: string | null;
@@ -133055,6 +133641,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
133055
133641
  werkbon_package_items: {
133056
133642
  Row: {
133057
133643
  article_number: string | null;
133644
+ artikel_id: string | null;
133058
133645
  created_at: string;
133059
133646
  gtin: string | null;
133060
133647
  id: string;
@@ -133072,6 +133659,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
133072
133659
  };
133073
133660
  Insert: {
133074
133661
  article_number?: string | null;
133662
+ artikel_id?: string | null;
133075
133663
  created_at?: string;
133076
133664
  gtin?: string | null;
133077
133665
  id?: string;
@@ -133089,6 +133677,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
133089
133677
  };
133090
133678
  Update: {
133091
133679
  article_number?: string | null;
133680
+ artikel_id?: string | null;
133092
133681
  created_at?: string;
133093
133682
  gtin?: string | null;
133094
133683
  id?: string;
@@ -133105,6 +133694,12 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
133105
133694
  updated_at?: string;
133106
133695
  };
133107
133696
  Relationships: [{
133697
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
133698
+ columns: ["artikel_id"];
133699
+ isOneToOne: false;
133700
+ referencedRelation: "artikelen_cache";
133701
+ referencedColumns: ["id"];
133702
+ }, {
133108
133703
  foreignKeyName: "werkbon_package_items_package_id_fkey";
133109
133704
  columns: ["package_id"];
133110
133705
  isOneToOne: false;
@@ -134327,6 +134922,20 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
134327
134922
  referencedColumns: ["id"];
134328
134923
  }];
134329
134924
  };
134925
+ v_werkbon_totalen: {
134926
+ Row: {
134927
+ packages_cents: number | null;
134928
+ packages_minutes: number | null;
134929
+ werkbon_id: string | null;
134930
+ };
134931
+ Relationships: [{
134932
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
134933
+ columns: ["werkbon_id"];
134934
+ isOneToOne: false;
134935
+ referencedRelation: "werkbonnen";
134936
+ referencedColumns: ["id"];
134937
+ }];
134938
+ };
134330
134939
  };
134331
134940
  Functions: {
134332
134941
  _floriday_schedule_job: {
@@ -135874,6 +136483,14 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
135874
136483
  };
135875
136484
  Returns: import("../integrations/supabase/types").Json;
135876
136485
  };
136486
+ logistics_plan_block: {
136487
+ Args: {
136488
+ p_details?: import("../integrations/supabase/types").Json;
136489
+ p_order_ids: string[];
136490
+ p_reason: string;
136491
+ };
136492
+ Returns: number;
136493
+ };
135877
136494
  logistics_plan_buffer_sql: {
135878
136495
  Args: {
135879
136496
  p_buffer_id: string;
@@ -136242,6 +136859,12 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
136242
136859
  verwijderd: number;
136243
136860
  }[];
136244
136861
  };
136862
+ order_departure_proof: {
136863
+ Args: {
136864
+ p_order_id: string;
136865
+ };
136866
+ Returns: import("../integrations/supabase/types").Json;
136867
+ };
136245
136868
  order_number_prefix: {
136246
136869
  Args: {
136247
136870
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -136249,6 +136872,25 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
136249
136872
  };
136250
136873
  Returns: string;
136251
136874
  };
136875
+ pakket_suggesties_voor_tekst: {
136876
+ Args: {
136877
+ _tekst: string;
136878
+ };
136879
+ Returns: {
136880
+ hit_type: string;
136881
+ package_id: string;
136882
+ priority: number;
136883
+ }[];
136884
+ };
136885
+ pakket_voor_reistijd: {
136886
+ Args: {
136887
+ _minuten: number;
136888
+ };
136889
+ Returns: {
136890
+ package_id: string;
136891
+ priority: number;
136892
+ }[];
136893
+ };
136252
136894
  pick_active_printers: {
136253
136895
  Args: never;
136254
136896
  Returns: {
@@ -137299,6 +137941,18 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
137299
137941
  Args: never;
137300
137942
  Returns: string;
137301
137943
  };
137944
+ werkbon_totalen: {
137945
+ Args: {
137946
+ _werkbon_id: string;
137947
+ };
137948
+ Returns: {
137949
+ materials_cents: number;
137950
+ packages_cents: number;
137951
+ packages_minutes: number;
137952
+ total_cents: number;
137953
+ total_minutes: number;
137954
+ }[];
137955
+ };
137302
137956
  wo_create_from_source: {
137303
137957
  Args: {
137304
137958
  _payload?: import("../integrations/supabase/types").Json;
@@ -137337,7 +137991,7 @@ export declare const listActiveCriticalAlerts: import("@tanstack/start-client-co
137337
137991
  };
137338
137992
  CompositeTypes: { [_ in never]: never; };
137339
137993
  }, {
137340
- PostgrestVersion: "14.5";
137994
+ PostgrestVersion: "14.17";
137341
137995
  }>;
137342
137996
  userId: string;
137343
137997
  claims: import("@supabase/auth-js").JwtPayload;
@@ -137510,7 +138164,9 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
137510
138164
  notes?: string | null;
137511
138165
  recurrence?: string | null;
137512
138166
  reminders?: import("../integrations/supabase/types").Json;
137513
- source_id?: string | null;
138167
+ source_id
138168
+ /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
138169
+ ?: string | null;
137514
138170
  source_module?: string;
137515
138171
  source_type?: string | null;
137516
138172
  start_at?: string;
@@ -153075,6 +153731,45 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
153075
153731
  };
153076
153732
  Relationships: [];
153077
153733
  };
153734
+ stock_consumption_alerts: {
153735
+ Row: {
153736
+ alert_type: string;
153737
+ created_at: string;
153738
+ id: string;
153739
+ mutation_log_id: string | null;
153740
+ order_id: string | null;
153741
+ order_item_id: string | null;
153742
+ qty: number;
153743
+ reason: string | null;
153744
+ resolved_at: string | null;
153745
+ updated_at: string;
153746
+ };
153747
+ Insert: {
153748
+ alert_type: string;
153749
+ created_at?: string;
153750
+ id?: string;
153751
+ mutation_log_id?: string | null;
153752
+ order_id?: string | null;
153753
+ order_item_id?: string | null;
153754
+ qty?: number;
153755
+ reason?: string | null;
153756
+ resolved_at?: string | null;
153757
+ updated_at?: string;
153758
+ };
153759
+ Update: {
153760
+ alert_type?: string;
153761
+ created_at?: string;
153762
+ id?: string;
153763
+ mutation_log_id?: string | null;
153764
+ order_id?: string | null;
153765
+ order_item_id?: string | null;
153766
+ qty?: number;
153767
+ reason?: string | null;
153768
+ resolved_at?: string | null;
153769
+ updated_at?: string;
153770
+ };
153771
+ Relationships: [];
153772
+ };
153078
153773
  stock_import_runs: {
153079
153774
  Row: {
153080
153775
  connection_id: string | null;
@@ -155928,6 +156623,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
155928
156623
  werkbon_package_items: {
155929
156624
  Row: {
155930
156625
  article_number: string | null;
156626
+ artikel_id: string | null;
155931
156627
  created_at: string;
155932
156628
  gtin: string | null;
155933
156629
  id: string;
@@ -155945,6 +156641,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
155945
156641
  };
155946
156642
  Insert: {
155947
156643
  article_number?: string | null;
156644
+ artikel_id?: string | null;
155948
156645
  created_at?: string;
155949
156646
  gtin?: string | null;
155950
156647
  id?: string;
@@ -155962,6 +156659,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
155962
156659
  };
155963
156660
  Update: {
155964
156661
  article_number?: string | null;
156662
+ artikel_id?: string | null;
155965
156663
  created_at?: string;
155966
156664
  gtin?: string | null;
155967
156665
  id?: string;
@@ -155978,6 +156676,12 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
155978
156676
  updated_at?: string;
155979
156677
  };
155980
156678
  Relationships: [{
156679
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
156680
+ columns: ["artikel_id"];
156681
+ isOneToOne: false;
156682
+ referencedRelation: "artikelen_cache";
156683
+ referencedColumns: ["id"];
156684
+ }, {
155981
156685
  foreignKeyName: "werkbon_package_items_package_id_fkey";
155982
156686
  columns: ["package_id"];
155983
156687
  isOneToOne: false;
@@ -157200,6 +157904,20 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
157200
157904
  referencedColumns: ["id"];
157201
157905
  }];
157202
157906
  };
157907
+ v_werkbon_totalen: {
157908
+ Row: {
157909
+ packages_cents: number | null;
157910
+ packages_minutes: number | null;
157911
+ werkbon_id: string | null;
157912
+ };
157913
+ Relationships: [{
157914
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
157915
+ columns: ["werkbon_id"];
157916
+ isOneToOne: false;
157917
+ referencedRelation: "werkbonnen";
157918
+ referencedColumns: ["id"];
157919
+ }];
157920
+ };
157203
157921
  };
157204
157922
  Functions: {
157205
157923
  _floriday_schedule_job: {
@@ -158747,6 +159465,14 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
158747
159465
  };
158748
159466
  Returns: import("../integrations/supabase/types").Json;
158749
159467
  };
159468
+ logistics_plan_block: {
159469
+ Args: {
159470
+ p_details?: import("../integrations/supabase/types").Json;
159471
+ p_order_ids: string[];
159472
+ p_reason: string;
159473
+ };
159474
+ Returns: number;
159475
+ };
158750
159476
  logistics_plan_buffer_sql: {
158751
159477
  Args: {
158752
159478
  p_buffer_id: string;
@@ -159115,6 +159841,12 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
159115
159841
  verwijderd: number;
159116
159842
  }[];
159117
159843
  };
159844
+ order_departure_proof: {
159845
+ Args: {
159846
+ p_order_id: string;
159847
+ };
159848
+ Returns: import("../integrations/supabase/types").Json;
159849
+ };
159118
159850
  order_number_prefix: {
159119
159851
  Args: {
159120
159852
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -159122,6 +159854,25 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
159122
159854
  };
159123
159855
  Returns: string;
159124
159856
  };
159857
+ pakket_suggesties_voor_tekst: {
159858
+ Args: {
159859
+ _tekst: string;
159860
+ };
159861
+ Returns: {
159862
+ hit_type: string;
159863
+ package_id: string;
159864
+ priority: number;
159865
+ }[];
159866
+ };
159867
+ pakket_voor_reistijd: {
159868
+ Args: {
159869
+ _minuten: number;
159870
+ };
159871
+ Returns: {
159872
+ package_id: string;
159873
+ priority: number;
159874
+ }[];
159875
+ };
159125
159876
  pick_active_printers: {
159126
159877
  Args: never;
159127
159878
  Returns: {
@@ -160172,6 +160923,18 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
160172
160923
  Args: never;
160173
160924
  Returns: string;
160174
160925
  };
160926
+ werkbon_totalen: {
160927
+ Args: {
160928
+ _werkbon_id: string;
160929
+ };
160930
+ Returns: {
160931
+ materials_cents: number;
160932
+ packages_cents: number;
160933
+ packages_minutes: number;
160934
+ total_cents: number;
160935
+ total_minutes: number;
160936
+ }[];
160937
+ };
160175
160938
  wo_create_from_source: {
160176
160939
  Args: {
160177
160940
  _payload?: import("../integrations/supabase/types").Json;
@@ -160210,7 +160973,7 @@ export declare const resolveCriticalAlert: import("@tanstack/start-client-core")
160210
160973
  };
160211
160974
  CompositeTypes: { [_ in never]: never; };
160212
160975
  }, {
160213
- PostgrestVersion: "14.5";
160976
+ PostgrestVersion: "14.17";
160214
160977
  }>;
160215
160978
  userId: string;
160216
160979
  claims: import("@supabase/auth-js").JwtPayload;
@@ -160408,7 +161171,9 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
160408
161171
  notes?: string | null;
160409
161172
  recurrence?: string | null;
160410
161173
  reminders?: import("../integrations/supabase/types").Json;
160411
- source_id?: string | null;
161174
+ source_id
161175
+ /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
161176
+ ?: string | null;
160412
161177
  source_module?: string;
160413
161178
  source_type?: string | null;
160414
161179
  start_at?: string;
@@ -175973,6 +176738,45 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
175973
176738
  };
175974
176739
  Relationships: [];
175975
176740
  };
176741
+ stock_consumption_alerts: {
176742
+ Row: {
176743
+ alert_type: string;
176744
+ created_at: string;
176745
+ id: string;
176746
+ mutation_log_id: string | null;
176747
+ order_id: string | null;
176748
+ order_item_id: string | null;
176749
+ qty: number;
176750
+ reason: string | null;
176751
+ resolved_at: string | null;
176752
+ updated_at: string;
176753
+ };
176754
+ Insert: {
176755
+ alert_type: string;
176756
+ created_at?: string;
176757
+ id?: string;
176758
+ mutation_log_id?: string | null;
176759
+ order_id?: string | null;
176760
+ order_item_id?: string | null;
176761
+ qty?: number;
176762
+ reason?: string | null;
176763
+ resolved_at?: string | null;
176764
+ updated_at?: string;
176765
+ };
176766
+ Update: {
176767
+ alert_type?: string;
176768
+ created_at?: string;
176769
+ id?: string;
176770
+ mutation_log_id?: string | null;
176771
+ order_id?: string | null;
176772
+ order_item_id?: string | null;
176773
+ qty?: number;
176774
+ reason?: string | null;
176775
+ resolved_at?: string | null;
176776
+ updated_at?: string;
176777
+ };
176778
+ Relationships: [];
176779
+ };
175976
176780
  stock_import_runs: {
175977
176781
  Row: {
175978
176782
  connection_id: string | null;
@@ -178826,6 +179630,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
178826
179630
  werkbon_package_items: {
178827
179631
  Row: {
178828
179632
  article_number: string | null;
179633
+ artikel_id: string | null;
178829
179634
  created_at: string;
178830
179635
  gtin: string | null;
178831
179636
  id: string;
@@ -178843,6 +179648,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
178843
179648
  };
178844
179649
  Insert: {
178845
179650
  article_number?: string | null;
179651
+ artikel_id?: string | null;
178846
179652
  created_at?: string;
178847
179653
  gtin?: string | null;
178848
179654
  id?: string;
@@ -178860,6 +179666,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
178860
179666
  };
178861
179667
  Update: {
178862
179668
  article_number?: string | null;
179669
+ artikel_id?: string | null;
178863
179670
  created_at?: string;
178864
179671
  gtin?: string | null;
178865
179672
  id?: string;
@@ -178876,6 +179683,12 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
178876
179683
  updated_at?: string;
178877
179684
  };
178878
179685
  Relationships: [{
179686
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
179687
+ columns: ["artikel_id"];
179688
+ isOneToOne: false;
179689
+ referencedRelation: "artikelen_cache";
179690
+ referencedColumns: ["id"];
179691
+ }, {
178879
179692
  foreignKeyName: "werkbon_package_items_package_id_fkey";
178880
179693
  columns: ["package_id"];
178881
179694
  isOneToOne: false;
@@ -180098,6 +180911,20 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
180098
180911
  referencedColumns: ["id"];
180099
180912
  }];
180100
180913
  };
180914
+ v_werkbon_totalen: {
180915
+ Row: {
180916
+ packages_cents: number | null;
180917
+ packages_minutes: number | null;
180918
+ werkbon_id: string | null;
180919
+ };
180920
+ Relationships: [{
180921
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
180922
+ columns: ["werkbon_id"];
180923
+ isOneToOne: false;
180924
+ referencedRelation: "werkbonnen";
180925
+ referencedColumns: ["id"];
180926
+ }];
180927
+ };
180101
180928
  };
180102
180929
  Functions: {
180103
180930
  _floriday_schedule_job: {
@@ -181645,6 +182472,14 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
181645
182472
  };
181646
182473
  Returns: import("../integrations/supabase/types").Json;
181647
182474
  };
182475
+ logistics_plan_block: {
182476
+ Args: {
182477
+ p_details?: import("../integrations/supabase/types").Json;
182478
+ p_order_ids: string[];
182479
+ p_reason: string;
182480
+ };
182481
+ Returns: number;
182482
+ };
181648
182483
  logistics_plan_buffer_sql: {
181649
182484
  Args: {
181650
182485
  p_buffer_id: string;
@@ -182013,6 +182848,12 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
182013
182848
  verwijderd: number;
182014
182849
  }[];
182015
182850
  };
182851
+ order_departure_proof: {
182852
+ Args: {
182853
+ p_order_id: string;
182854
+ };
182855
+ Returns: import("../integrations/supabase/types").Json;
182856
+ };
182016
182857
  order_number_prefix: {
182017
182858
  Args: {
182018
182859
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -182020,6 +182861,25 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
182020
182861
  };
182021
182862
  Returns: string;
182022
182863
  };
182864
+ pakket_suggesties_voor_tekst: {
182865
+ Args: {
182866
+ _tekst: string;
182867
+ };
182868
+ Returns: {
182869
+ hit_type: string;
182870
+ package_id: string;
182871
+ priority: number;
182872
+ }[];
182873
+ };
182874
+ pakket_voor_reistijd: {
182875
+ Args: {
182876
+ _minuten: number;
182877
+ };
182878
+ Returns: {
182879
+ package_id: string;
182880
+ priority: number;
182881
+ }[];
182882
+ };
182023
182883
  pick_active_printers: {
182024
182884
  Args: never;
182025
182885
  Returns: {
@@ -183070,6 +183930,18 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
183070
183930
  Args: never;
183071
183931
  Returns: string;
183072
183932
  };
183933
+ werkbon_totalen: {
183934
+ Args: {
183935
+ _werkbon_id: string;
183936
+ };
183937
+ Returns: {
183938
+ materials_cents: number;
183939
+ packages_cents: number;
183940
+ packages_minutes: number;
183941
+ total_cents: number;
183942
+ total_minutes: number;
183943
+ }[];
183944
+ };
183073
183945
  wo_create_from_source: {
183074
183946
  Args: {
183075
183947
  _payload?: import("../integrations/supabase/types").Json;
@@ -183108,7 +183980,7 @@ export declare const getControlDraft: import("@tanstack/start-client-core").Opti
183108
183980
  };
183109
183981
  CompositeTypes: { [_ in never]: never; };
183110
183982
  }, {
183111
- PostgrestVersion: "14.5";
183983
+ PostgrestVersion: "14.17";
183112
183984
  }>;
183113
183985
  userId: string;
183114
183986
  claims: import("@supabase/auth-js").JwtPayload;
@@ -183279,7 +184151,9 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
183279
184151
  notes?: string | null;
183280
184152
  recurrence?: string | null;
183281
184153
  reminders?: import("../integrations/supabase/types").Json;
183282
- source_id?: string | null;
184154
+ source_id
184155
+ /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
184156
+ ?: string | null;
183283
184157
  source_module?: string;
183284
184158
  source_type?: string | null;
183285
184159
  start_at?: string;
@@ -198844,6 +199718,45 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
198844
199718
  };
198845
199719
  Relationships: [];
198846
199720
  };
199721
+ stock_consumption_alerts: {
199722
+ Row: {
199723
+ alert_type: string;
199724
+ created_at: string;
199725
+ id: string;
199726
+ mutation_log_id: string | null;
199727
+ order_id: string | null;
199728
+ order_item_id: string | null;
199729
+ qty: number;
199730
+ reason: string | null;
199731
+ resolved_at: string | null;
199732
+ updated_at: string;
199733
+ };
199734
+ Insert: {
199735
+ alert_type: string;
199736
+ created_at?: string;
199737
+ id?: string;
199738
+ mutation_log_id?: string | null;
199739
+ order_id?: string | null;
199740
+ order_item_id?: string | null;
199741
+ qty?: number;
199742
+ reason?: string | null;
199743
+ resolved_at?: string | null;
199744
+ updated_at?: string;
199745
+ };
199746
+ Update: {
199747
+ alert_type?: string;
199748
+ created_at?: string;
199749
+ id?: string;
199750
+ mutation_log_id?: string | null;
199751
+ order_id?: string | null;
199752
+ order_item_id?: string | null;
199753
+ qty?: number;
199754
+ reason?: string | null;
199755
+ resolved_at?: string | null;
199756
+ updated_at?: string;
199757
+ };
199758
+ Relationships: [];
199759
+ };
198847
199760
  stock_import_runs: {
198848
199761
  Row: {
198849
199762
  connection_id: string | null;
@@ -201697,6 +202610,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
201697
202610
  werkbon_package_items: {
201698
202611
  Row: {
201699
202612
  article_number: string | null;
202613
+ artikel_id: string | null;
201700
202614
  created_at: string;
201701
202615
  gtin: string | null;
201702
202616
  id: string;
@@ -201714,6 +202628,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
201714
202628
  };
201715
202629
  Insert: {
201716
202630
  article_number?: string | null;
202631
+ artikel_id?: string | null;
201717
202632
  created_at?: string;
201718
202633
  gtin?: string | null;
201719
202634
  id?: string;
@@ -201731,6 +202646,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
201731
202646
  };
201732
202647
  Update: {
201733
202648
  article_number?: string | null;
202649
+ artikel_id?: string | null;
201734
202650
  created_at?: string;
201735
202651
  gtin?: string | null;
201736
202652
  id?: string;
@@ -201747,6 +202663,12 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
201747
202663
  updated_at?: string;
201748
202664
  };
201749
202665
  Relationships: [{
202666
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
202667
+ columns: ["artikel_id"];
202668
+ isOneToOne: false;
202669
+ referencedRelation: "artikelen_cache";
202670
+ referencedColumns: ["id"];
202671
+ }, {
201750
202672
  foreignKeyName: "werkbon_package_items_package_id_fkey";
201751
202673
  columns: ["package_id"];
201752
202674
  isOneToOne: false;
@@ -202969,6 +203891,20 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
202969
203891
  referencedColumns: ["id"];
202970
203892
  }];
202971
203893
  };
203894
+ v_werkbon_totalen: {
203895
+ Row: {
203896
+ packages_cents: number | null;
203897
+ packages_minutes: number | null;
203898
+ werkbon_id: string | null;
203899
+ };
203900
+ Relationships: [{
203901
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
203902
+ columns: ["werkbon_id"];
203903
+ isOneToOne: false;
203904
+ referencedRelation: "werkbonnen";
203905
+ referencedColumns: ["id"];
203906
+ }];
203907
+ };
202972
203908
  };
202973
203909
  Functions: {
202974
203910
  _floriday_schedule_job: {
@@ -204516,6 +205452,14 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
204516
205452
  };
204517
205453
  Returns: import("../integrations/supabase/types").Json;
204518
205454
  };
205455
+ logistics_plan_block: {
205456
+ Args: {
205457
+ p_details?: import("../integrations/supabase/types").Json;
205458
+ p_order_ids: string[];
205459
+ p_reason: string;
205460
+ };
205461
+ Returns: number;
205462
+ };
204519
205463
  logistics_plan_buffer_sql: {
204520
205464
  Args: {
204521
205465
  p_buffer_id: string;
@@ -204884,6 +205828,12 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
204884
205828
  verwijderd: number;
204885
205829
  }[];
204886
205830
  };
205831
+ order_departure_proof: {
205832
+ Args: {
205833
+ p_order_id: string;
205834
+ };
205835
+ Returns: import("../integrations/supabase/types").Json;
205836
+ };
204887
205837
  order_number_prefix: {
204888
205838
  Args: {
204889
205839
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -204891,6 +205841,25 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
204891
205841
  };
204892
205842
  Returns: string;
204893
205843
  };
205844
+ pakket_suggesties_voor_tekst: {
205845
+ Args: {
205846
+ _tekst: string;
205847
+ };
205848
+ Returns: {
205849
+ hit_type: string;
205850
+ package_id: string;
205851
+ priority: number;
205852
+ }[];
205853
+ };
205854
+ pakket_voor_reistijd: {
205855
+ Args: {
205856
+ _minuten: number;
205857
+ };
205858
+ Returns: {
205859
+ package_id: string;
205860
+ priority: number;
205861
+ }[];
205862
+ };
204894
205863
  pick_active_printers: {
204895
205864
  Args: never;
204896
205865
  Returns: {
@@ -205941,6 +206910,18 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
205941
206910
  Args: never;
205942
206911
  Returns: string;
205943
206912
  };
206913
+ werkbon_totalen: {
206914
+ Args: {
206915
+ _werkbon_id: string;
206916
+ };
206917
+ Returns: {
206918
+ materials_cents: number;
206919
+ packages_cents: number;
206920
+ packages_minutes: number;
206921
+ total_cents: number;
206922
+ total_minutes: number;
206923
+ }[];
206924
+ };
205944
206925
  wo_create_from_source: {
205945
206926
  Args: {
205946
206927
  _payload?: import("../integrations/supabase/types").Json;
@@ -205979,7 +206960,7 @@ export declare const saveControlDraft: import("@tanstack/start-client-core").Req
205979
206960
  };
205980
206961
  CompositeTypes: { [_ in never]: never; };
205981
206962
  }, {
205982
- PostgrestVersion: "14.5";
206963
+ PostgrestVersion: "14.17";
205983
206964
  }>;
205984
206965
  userId: string;
205985
206966
  claims: import("@supabase/auth-js").JwtPayload;
@@ -206153,7 +207134,9 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
206153
207134
  notes?: string | null;
206154
207135
  recurrence?: string | null;
206155
207136
  reminders?: import("../integrations/supabase/types").Json;
206156
- source_id?: string | null;
207137
+ source_id
207138
+ /** Alle nog niet goedgekeurde karren van vandaag, gefilterd op de Engine. */
207139
+ ?: string | null;
206157
207140
  source_module?: string;
206158
207141
  source_type?: string | null;
206159
207142
  start_at?: string;
@@ -221718,6 +222701,45 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
221718
222701
  };
221719
222702
  Relationships: [];
221720
222703
  };
222704
+ stock_consumption_alerts: {
222705
+ Row: {
222706
+ alert_type: string;
222707
+ created_at: string;
222708
+ id: string;
222709
+ mutation_log_id: string | null;
222710
+ order_id: string | null;
222711
+ order_item_id: string | null;
222712
+ qty: number;
222713
+ reason: string | null;
222714
+ resolved_at: string | null;
222715
+ updated_at: string;
222716
+ };
222717
+ Insert: {
222718
+ alert_type: string;
222719
+ created_at?: string;
222720
+ id?: string;
222721
+ mutation_log_id?: string | null;
222722
+ order_id?: string | null;
222723
+ order_item_id?: string | null;
222724
+ qty?: number;
222725
+ reason?: string | null;
222726
+ resolved_at?: string | null;
222727
+ updated_at?: string;
222728
+ };
222729
+ Update: {
222730
+ alert_type?: string;
222731
+ created_at?: string;
222732
+ id?: string;
222733
+ mutation_log_id?: string | null;
222734
+ order_id?: string | null;
222735
+ order_item_id?: string | null;
222736
+ qty?: number;
222737
+ reason?: string | null;
222738
+ resolved_at?: string | null;
222739
+ updated_at?: string;
222740
+ };
222741
+ Relationships: [];
222742
+ };
221721
222743
  stock_import_runs: {
221722
222744
  Row: {
221723
222745
  connection_id: string | null;
@@ -224571,6 +225593,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
224571
225593
  werkbon_package_items: {
224572
225594
  Row: {
224573
225595
  article_number: string | null;
225596
+ artikel_id: string | null;
224574
225597
  created_at: string;
224575
225598
  gtin: string | null;
224576
225599
  id: string;
@@ -224588,6 +225611,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
224588
225611
  };
224589
225612
  Insert: {
224590
225613
  article_number?: string | null;
225614
+ artikel_id?: string | null;
224591
225615
  created_at?: string;
224592
225616
  gtin?: string | null;
224593
225617
  id?: string;
@@ -224605,6 +225629,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
224605
225629
  };
224606
225630
  Update: {
224607
225631
  article_number?: string | null;
225632
+ artikel_id?: string | null;
224608
225633
  created_at?: string;
224609
225634
  gtin?: string | null;
224610
225635
  id?: string;
@@ -224621,6 +225646,12 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
224621
225646
  updated_at?: string;
224622
225647
  };
224623
225648
  Relationships: [{
225649
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
225650
+ columns: ["artikel_id"];
225651
+ isOneToOne: false;
225652
+ referencedRelation: "artikelen_cache";
225653
+ referencedColumns: ["id"];
225654
+ }, {
224624
225655
  foreignKeyName: "werkbon_package_items_package_id_fkey";
224625
225656
  columns: ["package_id"];
224626
225657
  isOneToOne: false;
@@ -225843,6 +226874,20 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
225843
226874
  referencedColumns: ["id"];
225844
226875
  }];
225845
226876
  };
226877
+ v_werkbon_totalen: {
226878
+ Row: {
226879
+ packages_cents: number | null;
226880
+ packages_minutes: number | null;
226881
+ werkbon_id: string | null;
226882
+ };
226883
+ Relationships: [{
226884
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
226885
+ columns: ["werkbon_id"];
226886
+ isOneToOne: false;
226887
+ referencedRelation: "werkbonnen";
226888
+ referencedColumns: ["id"];
226889
+ }];
226890
+ };
225846
226891
  };
225847
226892
  Functions: {
225848
226893
  _floriday_schedule_job: {
@@ -227390,6 +228435,14 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
227390
228435
  };
227391
228436
  Returns: import("../integrations/supabase/types").Json;
227392
228437
  };
228438
+ logistics_plan_block: {
228439
+ Args: {
228440
+ p_details?: import("../integrations/supabase/types").Json;
228441
+ p_order_ids: string[];
228442
+ p_reason: string;
228443
+ };
228444
+ Returns: number;
228445
+ };
227393
228446
  logistics_plan_buffer_sql: {
227394
228447
  Args: {
227395
228448
  p_buffer_id: string;
@@ -227758,6 +228811,12 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
227758
228811
  verwijderd: number;
227759
228812
  }[];
227760
228813
  };
228814
+ order_departure_proof: {
228815
+ Args: {
228816
+ p_order_id: string;
228817
+ };
228818
+ Returns: import("../integrations/supabase/types").Json;
228819
+ };
227761
228820
  order_number_prefix: {
227762
228821
  Args: {
227763
228822
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -227765,6 +228824,25 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
227765
228824
  };
227766
228825
  Returns: string;
227767
228826
  };
228827
+ pakket_suggesties_voor_tekst: {
228828
+ Args: {
228829
+ _tekst: string;
228830
+ };
228831
+ Returns: {
228832
+ hit_type: string;
228833
+ package_id: string;
228834
+ priority: number;
228835
+ }[];
228836
+ };
228837
+ pakket_voor_reistijd: {
228838
+ Args: {
228839
+ _minuten: number;
228840
+ };
228841
+ Returns: {
228842
+ package_id: string;
228843
+ priority: number;
228844
+ }[];
228845
+ };
227768
228846
  pick_active_printers: {
227769
228847
  Args: never;
227770
228848
  Returns: {
@@ -228815,6 +229893,18 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
228815
229893
  Args: never;
228816
229894
  Returns: string;
228817
229895
  };
229896
+ werkbon_totalen: {
229897
+ Args: {
229898
+ _werkbon_id: string;
229899
+ };
229900
+ Returns: {
229901
+ materials_cents: number;
229902
+ packages_cents: number;
229903
+ packages_minutes: number;
229904
+ total_cents: number;
229905
+ total_minutes: number;
229906
+ }[];
229907
+ };
228818
229908
  wo_create_from_source: {
228819
229909
  Args: {
228820
229910
  _payload?: import("../integrations/supabase/types").Json;
@@ -228853,7 +229943,7 @@ export declare const clearControlDraft: import("@tanstack/start-client-core").Op
228853
229943
  };
228854
229944
  CompositeTypes: { [_ in never]: never; };
228855
229945
  }, {
228856
- PostgrestVersion: "14.5";
229946
+ PostgrestVersion: "14.17";
228857
229947
  }>;
228858
229948
  userId: string;
228859
229949
  claims: import("@supabase/auth-js").JwtPayload;