@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
@@ -15740,6 +15740,45 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
15740
15740
  };
15741
15741
  Relationships: [];
15742
15742
  };
15743
+ stock_consumption_alerts: {
15744
+ Row: {
15745
+ alert_type: string;
15746
+ created_at: string;
15747
+ id: string;
15748
+ mutation_log_id: string | null;
15749
+ order_id: string | null;
15750
+ order_item_id: string | null;
15751
+ qty: number;
15752
+ reason: string | null;
15753
+ resolved_at: string | null;
15754
+ updated_at: string;
15755
+ };
15756
+ Insert: {
15757
+ alert_type: string;
15758
+ created_at?: string;
15759
+ id?: string;
15760
+ mutation_log_id?: string | null;
15761
+ order_id?: string | null;
15762
+ order_item_id?: string | null;
15763
+ qty?: number;
15764
+ reason?: string | null;
15765
+ resolved_at?: string | null;
15766
+ updated_at?: string;
15767
+ };
15768
+ Update: {
15769
+ alert_type?: string;
15770
+ created_at?: string;
15771
+ id?: string;
15772
+ mutation_log_id?: string | null;
15773
+ order_id?: string | null;
15774
+ order_item_id?: string | null;
15775
+ qty?: number;
15776
+ reason?: string | null;
15777
+ resolved_at?: string | null;
15778
+ updated_at?: string;
15779
+ };
15780
+ Relationships: [];
15781
+ };
15743
15782
  stock_import_runs: {
15744
15783
  Row: {
15745
15784
  connection_id: string | null;
@@ -18593,6 +18632,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18593
18632
  werkbon_package_items: {
18594
18633
  Row: {
18595
18634
  article_number: string | null;
18635
+ artikel_id: string | null;
18596
18636
  created_at: string;
18597
18637
  gtin: string | null;
18598
18638
  id: string;
@@ -18610,6 +18650,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18610
18650
  };
18611
18651
  Insert: {
18612
18652
  article_number?: string | null;
18653
+ artikel_id?: string | null;
18613
18654
  created_at?: string;
18614
18655
  gtin?: string | null;
18615
18656
  id?: string;
@@ -18627,6 +18668,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18627
18668
  };
18628
18669
  Update: {
18629
18670
  article_number?: string | null;
18671
+ artikel_id?: string | null;
18630
18672
  created_at?: string;
18631
18673
  gtin?: string | null;
18632
18674
  id?: string;
@@ -18643,6 +18685,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
18643
18685
  updated_at?: string;
18644
18686
  };
18645
18687
  Relationships: [{
18688
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
18689
+ columns: ["artikel_id"];
18690
+ isOneToOne: false;
18691
+ referencedRelation: "artikelen_cache";
18692
+ referencedColumns: ["id"];
18693
+ }, {
18646
18694
  foreignKeyName: "werkbon_package_items_package_id_fkey";
18647
18695
  columns: ["package_id"];
18648
18696
  isOneToOne: false;
@@ -19865,6 +19913,20 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
19865
19913
  referencedColumns: ["id"];
19866
19914
  }];
19867
19915
  };
19916
+ v_werkbon_totalen: {
19917
+ Row: {
19918
+ packages_cents: number | null;
19919
+ packages_minutes: number | null;
19920
+ werkbon_id: string | null;
19921
+ };
19922
+ Relationships: [{
19923
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
19924
+ columns: ["werkbon_id"];
19925
+ isOneToOne: false;
19926
+ referencedRelation: "werkbonnen";
19927
+ referencedColumns: ["id"];
19928
+ }];
19929
+ };
19868
19930
  };
19869
19931
  Functions: {
19870
19932
  _floriday_schedule_job: {
@@ -21412,6 +21474,14 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21412
21474
  };
21413
21475
  Returns: import("../integrations/supabase/types").Json;
21414
21476
  };
21477
+ logistics_plan_block: {
21478
+ Args: {
21479
+ p_details?: import("../integrations/supabase/types").Json;
21480
+ p_order_ids: string[];
21481
+ p_reason: string;
21482
+ };
21483
+ Returns: number;
21484
+ };
21415
21485
  logistics_plan_buffer_sql: {
21416
21486
  Args: {
21417
21487
  p_buffer_id: string;
@@ -21780,6 +21850,12 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21780
21850
  verwijderd: number;
21781
21851
  }[];
21782
21852
  };
21853
+ order_departure_proof: {
21854
+ Args: {
21855
+ p_order_id: string;
21856
+ };
21857
+ Returns: import("../integrations/supabase/types").Json;
21858
+ };
21783
21859
  order_number_prefix: {
21784
21860
  Args: {
21785
21861
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -21787,6 +21863,25 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
21787
21863
  };
21788
21864
  Returns: string;
21789
21865
  };
21866
+ pakket_suggesties_voor_tekst: {
21867
+ Args: {
21868
+ _tekst: string;
21869
+ };
21870
+ Returns: {
21871
+ hit_type: string;
21872
+ package_id: string;
21873
+ priority: number;
21874
+ }[];
21875
+ };
21876
+ pakket_voor_reistijd: {
21877
+ Args: {
21878
+ _minuten: number;
21879
+ };
21880
+ Returns: {
21881
+ package_id: string;
21882
+ priority: number;
21883
+ }[];
21884
+ };
21790
21885
  pick_active_printers: {
21791
21886
  Args: never;
21792
21887
  Returns: {
@@ -22837,6 +22932,18 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22837
22932
  Args: never;
22838
22933
  Returns: string;
22839
22934
  };
22935
+ werkbon_totalen: {
22936
+ Args: {
22937
+ _werkbon_id: string;
22938
+ };
22939
+ Returns: {
22940
+ materials_cents: number;
22941
+ packages_cents: number;
22942
+ packages_minutes: number;
22943
+ total_cents: number;
22944
+ total_minutes: number;
22945
+ }[];
22946
+ };
22840
22947
  wo_create_from_source: {
22841
22948
  Args: {
22842
22949
  _payload?: import("../integrations/supabase/types").Json;
@@ -22875,7 +22982,7 @@ export declare const listCartOverrides: import("@tanstack/start-client-core").Op
22875
22982
  };
22876
22983
  CompositeTypes: { [_ in never]: never; };
22877
22984
  }, {
22878
- PostgrestVersion: "14.5";
22985
+ PostgrestVersion: "14.17";
22879
22986
  }>;
22880
22987
  userId: string;
22881
22988
  claims: import("@supabase/auth-js").JwtPayload;
@@ -38618,6 +38725,45 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
38618
38725
  };
38619
38726
  Relationships: [];
38620
38727
  };
38728
+ stock_consumption_alerts: {
38729
+ Row: {
38730
+ alert_type: string;
38731
+ created_at: string;
38732
+ id: string;
38733
+ mutation_log_id: string | null;
38734
+ order_id: string | null;
38735
+ order_item_id: string | null;
38736
+ qty: number;
38737
+ reason: string | null;
38738
+ resolved_at: string | null;
38739
+ updated_at: string;
38740
+ };
38741
+ Insert: {
38742
+ alert_type: string;
38743
+ created_at?: string;
38744
+ id?: string;
38745
+ mutation_log_id?: string | null;
38746
+ order_id?: string | null;
38747
+ order_item_id?: string | null;
38748
+ qty?: number;
38749
+ reason?: string | null;
38750
+ resolved_at?: string | null;
38751
+ updated_at?: string;
38752
+ };
38753
+ Update: {
38754
+ alert_type?: string;
38755
+ created_at?: string;
38756
+ id?: string;
38757
+ mutation_log_id?: string | null;
38758
+ order_id?: string | null;
38759
+ order_item_id?: string | null;
38760
+ qty?: number;
38761
+ reason?: string | null;
38762
+ resolved_at?: string | null;
38763
+ updated_at?: string;
38764
+ };
38765
+ Relationships: [];
38766
+ };
38621
38767
  stock_import_runs: {
38622
38768
  Row: {
38623
38769
  connection_id: string | null;
@@ -41471,6 +41617,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
41471
41617
  werkbon_package_items: {
41472
41618
  Row: {
41473
41619
  article_number: string | null;
41620
+ artikel_id: string | null;
41474
41621
  created_at: string;
41475
41622
  gtin: string | null;
41476
41623
  id: string;
@@ -41488,6 +41635,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
41488
41635
  };
41489
41636
  Insert: {
41490
41637
  article_number?: string | null;
41638
+ artikel_id?: string | null;
41491
41639
  created_at?: string;
41492
41640
  gtin?: string | null;
41493
41641
  id?: string;
@@ -41505,6 +41653,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
41505
41653
  };
41506
41654
  Update: {
41507
41655
  article_number?: string | null;
41656
+ artikel_id?: string | null;
41508
41657
  created_at?: string;
41509
41658
  gtin?: string | null;
41510
41659
  id?: string;
@@ -41521,6 +41670,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
41521
41670
  updated_at?: string;
41522
41671
  };
41523
41672
  Relationships: [{
41673
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
41674
+ columns: ["artikel_id"];
41675
+ isOneToOne: false;
41676
+ referencedRelation: "artikelen_cache";
41677
+ referencedColumns: ["id"];
41678
+ }, {
41524
41679
  foreignKeyName: "werkbon_package_items_package_id_fkey";
41525
41680
  columns: ["package_id"];
41526
41681
  isOneToOne: false;
@@ -42743,6 +42898,20 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
42743
42898
  referencedColumns: ["id"];
42744
42899
  }];
42745
42900
  };
42901
+ v_werkbon_totalen: {
42902
+ Row: {
42903
+ packages_cents: number | null;
42904
+ packages_minutes: number | null;
42905
+ werkbon_id: string | null;
42906
+ };
42907
+ Relationships: [{
42908
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
42909
+ columns: ["werkbon_id"];
42910
+ isOneToOne: false;
42911
+ referencedRelation: "werkbonnen";
42912
+ referencedColumns: ["id"];
42913
+ }];
42914
+ };
42746
42915
  };
42747
42916
  Functions: {
42748
42917
  _floriday_schedule_job: {
@@ -44290,6 +44459,14 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44290
44459
  };
44291
44460
  Returns: import("../integrations/supabase/types").Json;
44292
44461
  };
44462
+ logistics_plan_block: {
44463
+ Args: {
44464
+ p_details?: import("../integrations/supabase/types").Json;
44465
+ p_order_ids: string[];
44466
+ p_reason: string;
44467
+ };
44468
+ Returns: number;
44469
+ };
44293
44470
  logistics_plan_buffer_sql: {
44294
44471
  Args: {
44295
44472
  p_buffer_id: string;
@@ -44658,6 +44835,12 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44658
44835
  verwijderd: number;
44659
44836
  }[];
44660
44837
  };
44838
+ order_departure_proof: {
44839
+ Args: {
44840
+ p_order_id: string;
44841
+ };
44842
+ Returns: import("../integrations/supabase/types").Json;
44843
+ };
44661
44844
  order_number_prefix: {
44662
44845
  Args: {
44663
44846
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -44665,6 +44848,25 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
44665
44848
  };
44666
44849
  Returns: string;
44667
44850
  };
44851
+ pakket_suggesties_voor_tekst: {
44852
+ Args: {
44853
+ _tekst: string;
44854
+ };
44855
+ Returns: {
44856
+ hit_type: string;
44857
+ package_id: string;
44858
+ priority: number;
44859
+ }[];
44860
+ };
44861
+ pakket_voor_reistijd: {
44862
+ Args: {
44863
+ _minuten: number;
44864
+ };
44865
+ Returns: {
44866
+ package_id: string;
44867
+ priority: number;
44868
+ }[];
44869
+ };
44668
44870
  pick_active_printers: {
44669
44871
  Args: never;
44670
44872
  Returns: {
@@ -45715,6 +45917,18 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
45715
45917
  Args: never;
45716
45918
  Returns: string;
45717
45919
  };
45920
+ werkbon_totalen: {
45921
+ Args: {
45922
+ _werkbon_id: string;
45923
+ };
45924
+ Returns: {
45925
+ materials_cents: number;
45926
+ packages_cents: number;
45927
+ packages_minutes: number;
45928
+ total_cents: number;
45929
+ total_minutes: number;
45930
+ }[];
45931
+ };
45718
45932
  wo_create_from_source: {
45719
45933
  Args: {
45720
45934
  _payload?: import("../integrations/supabase/types").Json;
@@ -45753,7 +45967,7 @@ export declare const moveCart: import("@tanstack/start-client-core").RequiredFet
45753
45967
  };
45754
45968
  CompositeTypes: { [_ in never]: never; };
45755
45969
  }, {
45756
- PostgrestVersion: "14.5";
45970
+ PostgrestVersion: "14.17";
45757
45971
  }>;
45758
45972
  userId: string;
45759
45973
  claims: import("@supabase/auth-js").JwtPayload;
@@ -61490,6 +61704,45 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
61490
61704
  };
61491
61705
  Relationships: [];
61492
61706
  };
61707
+ stock_consumption_alerts: {
61708
+ Row: {
61709
+ alert_type: string;
61710
+ created_at: string;
61711
+ id: string;
61712
+ mutation_log_id: string | null;
61713
+ order_id: string | null;
61714
+ order_item_id: string | null;
61715
+ qty: number;
61716
+ reason: string | null;
61717
+ resolved_at: string | null;
61718
+ updated_at: string;
61719
+ };
61720
+ Insert: {
61721
+ alert_type: string;
61722
+ created_at?: string;
61723
+ id?: string;
61724
+ mutation_log_id?: string | null;
61725
+ order_id?: string | null;
61726
+ order_item_id?: string | null;
61727
+ qty?: number;
61728
+ reason?: string | null;
61729
+ resolved_at?: string | null;
61730
+ updated_at?: string;
61731
+ };
61732
+ Update: {
61733
+ alert_type?: string;
61734
+ created_at?: string;
61735
+ id?: string;
61736
+ mutation_log_id?: string | null;
61737
+ order_id?: string | null;
61738
+ order_item_id?: string | null;
61739
+ qty?: number;
61740
+ reason?: string | null;
61741
+ resolved_at?: string | null;
61742
+ updated_at?: string;
61743
+ };
61744
+ Relationships: [];
61745
+ };
61493
61746
  stock_import_runs: {
61494
61747
  Row: {
61495
61748
  connection_id: string | null;
@@ -64343,6 +64596,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
64343
64596
  werkbon_package_items: {
64344
64597
  Row: {
64345
64598
  article_number: string | null;
64599
+ artikel_id: string | null;
64346
64600
  created_at: string;
64347
64601
  gtin: string | null;
64348
64602
  id: string;
@@ -64360,6 +64614,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
64360
64614
  };
64361
64615
  Insert: {
64362
64616
  article_number?: string | null;
64617
+ artikel_id?: string | null;
64363
64618
  created_at?: string;
64364
64619
  gtin?: string | null;
64365
64620
  id?: string;
@@ -64377,6 +64632,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
64377
64632
  };
64378
64633
  Update: {
64379
64634
  article_number?: string | null;
64635
+ artikel_id?: string | null;
64380
64636
  created_at?: string;
64381
64637
  gtin?: string | null;
64382
64638
  id?: string;
@@ -64393,6 +64649,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
64393
64649
  updated_at?: string;
64394
64650
  };
64395
64651
  Relationships: [{
64652
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
64653
+ columns: ["artikel_id"];
64654
+ isOneToOne: false;
64655
+ referencedRelation: "artikelen_cache";
64656
+ referencedColumns: ["id"];
64657
+ }, {
64396
64658
  foreignKeyName: "werkbon_package_items_package_id_fkey";
64397
64659
  columns: ["package_id"];
64398
64660
  isOneToOne: false;
@@ -65615,6 +65877,20 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
65615
65877
  referencedColumns: ["id"];
65616
65878
  }];
65617
65879
  };
65880
+ v_werkbon_totalen: {
65881
+ Row: {
65882
+ packages_cents: number | null;
65883
+ packages_minutes: number | null;
65884
+ werkbon_id: string | null;
65885
+ };
65886
+ Relationships: [{
65887
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
65888
+ columns: ["werkbon_id"];
65889
+ isOneToOne: false;
65890
+ referencedRelation: "werkbonnen";
65891
+ referencedColumns: ["id"];
65892
+ }];
65893
+ };
65618
65894
  };
65619
65895
  Functions: {
65620
65896
  _floriday_schedule_job: {
@@ -67162,6 +67438,14 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
67162
67438
  };
67163
67439
  Returns: import("../integrations/supabase/types").Json;
67164
67440
  };
67441
+ logistics_plan_block: {
67442
+ Args: {
67443
+ p_details?: import("../integrations/supabase/types").Json;
67444
+ p_order_ids: string[];
67445
+ p_reason: string;
67446
+ };
67447
+ Returns: number;
67448
+ };
67165
67449
  logistics_plan_buffer_sql: {
67166
67450
  Args: {
67167
67451
  p_buffer_id: string;
@@ -67530,6 +67814,12 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
67530
67814
  verwijderd: number;
67531
67815
  }[];
67532
67816
  };
67817
+ order_departure_proof: {
67818
+ Args: {
67819
+ p_order_id: string;
67820
+ };
67821
+ Returns: import("../integrations/supabase/types").Json;
67822
+ };
67533
67823
  order_number_prefix: {
67534
67824
  Args: {
67535
67825
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -67537,6 +67827,25 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
67537
67827
  };
67538
67828
  Returns: string;
67539
67829
  };
67830
+ pakket_suggesties_voor_tekst: {
67831
+ Args: {
67832
+ _tekst: string;
67833
+ };
67834
+ Returns: {
67835
+ hit_type: string;
67836
+ package_id: string;
67837
+ priority: number;
67838
+ }[];
67839
+ };
67840
+ pakket_voor_reistijd: {
67841
+ Args: {
67842
+ _minuten: number;
67843
+ };
67844
+ Returns: {
67845
+ package_id: string;
67846
+ priority: number;
67847
+ }[];
67848
+ };
67540
67849
  pick_active_printers: {
67541
67850
  Args: never;
67542
67851
  Returns: {
@@ -68587,6 +68896,18 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
68587
68896
  Args: never;
68588
68897
  Returns: string;
68589
68898
  };
68899
+ werkbon_totalen: {
68900
+ Args: {
68901
+ _werkbon_id: string;
68902
+ };
68903
+ Returns: {
68904
+ materials_cents: number;
68905
+ packages_cents: number;
68906
+ packages_minutes: number;
68907
+ total_cents: number;
68908
+ total_minutes: number;
68909
+ }[];
68910
+ };
68590
68911
  wo_create_from_source: {
68591
68912
  Args: {
68592
68913
  _payload?: import("../integrations/supabase/types").Json;
@@ -68625,7 +68946,7 @@ export declare const resetCartOverride: import("@tanstack/start-client-core").Re
68625
68946
  };
68626
68947
  CompositeTypes: { [_ in never]: never; };
68627
68948
  }, {
68628
- PostgrestVersion: "14.5";
68949
+ PostgrestVersion: "14.17";
68629
68950
  }>;
68630
68951
  userId: string;
68631
68952
  claims: import("@supabase/auth-js").JwtPayload;
@@ -84369,6 +84690,45 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
84369
84690
  };
84370
84691
  Relationships: [];
84371
84692
  };
84693
+ stock_consumption_alerts: {
84694
+ Row: {
84695
+ alert_type: string;
84696
+ created_at: string;
84697
+ id: string;
84698
+ mutation_log_id: string | null;
84699
+ order_id: string | null;
84700
+ order_item_id: string | null;
84701
+ qty: number;
84702
+ reason: string | null;
84703
+ resolved_at: string | null;
84704
+ updated_at: string;
84705
+ };
84706
+ Insert: {
84707
+ alert_type: string;
84708
+ created_at?: string;
84709
+ id?: string;
84710
+ mutation_log_id?: string | null;
84711
+ order_id?: string | null;
84712
+ order_item_id?: string | null;
84713
+ qty?: number;
84714
+ reason?: string | null;
84715
+ resolved_at?: string | null;
84716
+ updated_at?: string;
84717
+ };
84718
+ Update: {
84719
+ alert_type?: string;
84720
+ created_at?: string;
84721
+ id?: string;
84722
+ mutation_log_id?: string | null;
84723
+ order_id?: string | null;
84724
+ order_item_id?: string | null;
84725
+ qty?: number;
84726
+ reason?: string | null;
84727
+ resolved_at?: string | null;
84728
+ updated_at?: string;
84729
+ };
84730
+ Relationships: [];
84731
+ };
84372
84732
  stock_import_runs: {
84373
84733
  Row: {
84374
84734
  connection_id: string | null;
@@ -87222,6 +87582,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
87222
87582
  werkbon_package_items: {
87223
87583
  Row: {
87224
87584
  article_number: string | null;
87585
+ artikel_id: string | null;
87225
87586
  created_at: string;
87226
87587
  gtin: string | null;
87227
87588
  id: string;
@@ -87239,6 +87600,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
87239
87600
  };
87240
87601
  Insert: {
87241
87602
  article_number?: string | null;
87603
+ artikel_id?: string | null;
87242
87604
  created_at?: string;
87243
87605
  gtin?: string | null;
87244
87606
  id?: string;
@@ -87256,6 +87618,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
87256
87618
  };
87257
87619
  Update: {
87258
87620
  article_number?: string | null;
87621
+ artikel_id?: string | null;
87259
87622
  created_at?: string;
87260
87623
  gtin?: string | null;
87261
87624
  id?: string;
@@ -87272,6 +87635,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
87272
87635
  updated_at?: string;
87273
87636
  };
87274
87637
  Relationships: [{
87638
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
87639
+ columns: ["artikel_id"];
87640
+ isOneToOne: false;
87641
+ referencedRelation: "artikelen_cache";
87642
+ referencedColumns: ["id"];
87643
+ }, {
87275
87644
  foreignKeyName: "werkbon_package_items_package_id_fkey";
87276
87645
  columns: ["package_id"];
87277
87646
  isOneToOne: false;
@@ -88494,6 +88863,20 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
88494
88863
  referencedColumns: ["id"];
88495
88864
  }];
88496
88865
  };
88866
+ v_werkbon_totalen: {
88867
+ Row: {
88868
+ packages_cents: number | null;
88869
+ packages_minutes: number | null;
88870
+ werkbon_id: string | null;
88871
+ };
88872
+ Relationships: [{
88873
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
88874
+ columns: ["werkbon_id"];
88875
+ isOneToOne: false;
88876
+ referencedRelation: "werkbonnen";
88877
+ referencedColumns: ["id"];
88878
+ }];
88879
+ };
88497
88880
  };
88498
88881
  Functions: {
88499
88882
  _floriday_schedule_job: {
@@ -90041,6 +90424,14 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90041
90424
  };
90042
90425
  Returns: import("../integrations/supabase/types").Json;
90043
90426
  };
90427
+ logistics_plan_block: {
90428
+ Args: {
90429
+ p_details?: import("../integrations/supabase/types").Json;
90430
+ p_order_ids: string[];
90431
+ p_reason: string;
90432
+ };
90433
+ Returns: number;
90434
+ };
90044
90435
  logistics_plan_buffer_sql: {
90045
90436
  Args: {
90046
90437
  p_buffer_id: string;
@@ -90409,6 +90800,12 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90409
90800
  verwijderd: number;
90410
90801
  }[];
90411
90802
  };
90803
+ order_departure_proof: {
90804
+ Args: {
90805
+ p_order_id: string;
90806
+ };
90807
+ Returns: import("../integrations/supabase/types").Json;
90808
+ };
90412
90809
  order_number_prefix: {
90413
90810
  Args: {
90414
90811
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -90416,6 +90813,25 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
90416
90813
  };
90417
90814
  Returns: string;
90418
90815
  };
90816
+ pakket_suggesties_voor_tekst: {
90817
+ Args: {
90818
+ _tekst: string;
90819
+ };
90820
+ Returns: {
90821
+ hit_type: string;
90822
+ package_id: string;
90823
+ priority: number;
90824
+ }[];
90825
+ };
90826
+ pakket_voor_reistijd: {
90827
+ Args: {
90828
+ _minuten: number;
90829
+ };
90830
+ Returns: {
90831
+ package_id: string;
90832
+ priority: number;
90833
+ }[];
90834
+ };
90419
90835
  pick_active_printers: {
90420
90836
  Args: never;
90421
90837
  Returns: {
@@ -91466,6 +91882,18 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
91466
91882
  Args: never;
91467
91883
  Returns: string;
91468
91884
  };
91885
+ werkbon_totalen: {
91886
+ Args: {
91887
+ _werkbon_id: string;
91888
+ };
91889
+ Returns: {
91890
+ materials_cents: number;
91891
+ packages_cents: number;
91892
+ packages_minutes: number;
91893
+ total_cents: number;
91894
+ total_minutes: number;
91895
+ }[];
91896
+ };
91469
91897
  wo_create_from_source: {
91470
91898
  Args: {
91471
91899
  _payload?: import("../integrations/supabase/types").Json;
@@ -91504,7 +91932,7 @@ export declare const resetAllCartOverrides: import("@tanstack/start-client-core"
91504
91932
  };
91505
91933
  CompositeTypes: { [_ in never]: never; };
91506
91934
  }, {
91507
- PostgrestVersion: "14.5";
91935
+ PostgrestVersion: "14.17";
91508
91936
  }>;
91509
91937
  userId: string;
91510
91938
  claims: import("@supabase/auth-js").JwtPayload;
@@ -107248,6 +107676,45 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
107248
107676
  };
107249
107677
  Relationships: [];
107250
107678
  };
107679
+ stock_consumption_alerts: {
107680
+ Row: {
107681
+ alert_type: string;
107682
+ created_at: string;
107683
+ id: string;
107684
+ mutation_log_id: string | null;
107685
+ order_id: string | null;
107686
+ order_item_id: string | null;
107687
+ qty: number;
107688
+ reason: string | null;
107689
+ resolved_at: string | null;
107690
+ updated_at: string;
107691
+ };
107692
+ Insert: {
107693
+ alert_type: string;
107694
+ created_at?: string;
107695
+ id?: string;
107696
+ mutation_log_id?: string | null;
107697
+ order_id?: string | null;
107698
+ order_item_id?: string | null;
107699
+ qty?: number;
107700
+ reason?: string | null;
107701
+ resolved_at?: string | null;
107702
+ updated_at?: string;
107703
+ };
107704
+ Update: {
107705
+ alert_type?: string;
107706
+ created_at?: string;
107707
+ id?: string;
107708
+ mutation_log_id?: string | null;
107709
+ order_id?: string | null;
107710
+ order_item_id?: string | null;
107711
+ qty?: number;
107712
+ reason?: string | null;
107713
+ resolved_at?: string | null;
107714
+ updated_at?: string;
107715
+ };
107716
+ Relationships: [];
107717
+ };
107251
107718
  stock_import_runs: {
107252
107719
  Row: {
107253
107720
  connection_id: string | null;
@@ -110101,6 +110568,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
110101
110568
  werkbon_package_items: {
110102
110569
  Row: {
110103
110570
  article_number: string | null;
110571
+ artikel_id: string | null;
110104
110572
  created_at: string;
110105
110573
  gtin: string | null;
110106
110574
  id: string;
@@ -110118,6 +110586,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
110118
110586
  };
110119
110587
  Insert: {
110120
110588
  article_number?: string | null;
110589
+ artikel_id?: string | null;
110121
110590
  created_at?: string;
110122
110591
  gtin?: string | null;
110123
110592
  id?: string;
@@ -110135,6 +110604,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
110135
110604
  };
110136
110605
  Update: {
110137
110606
  article_number?: string | null;
110607
+ artikel_id?: string | null;
110138
110608
  created_at?: string;
110139
110609
  gtin?: string | null;
110140
110610
  id?: string;
@@ -110151,6 +110621,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
110151
110621
  updated_at?: string;
110152
110622
  };
110153
110623
  Relationships: [{
110624
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
110625
+ columns: ["artikel_id"];
110626
+ isOneToOne: false;
110627
+ referencedRelation: "artikelen_cache";
110628
+ referencedColumns: ["id"];
110629
+ }, {
110154
110630
  foreignKeyName: "werkbon_package_items_package_id_fkey";
110155
110631
  columns: ["package_id"];
110156
110632
  isOneToOne: false;
@@ -111373,6 +111849,20 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
111373
111849
  referencedColumns: ["id"];
111374
111850
  }];
111375
111851
  };
111852
+ v_werkbon_totalen: {
111853
+ Row: {
111854
+ packages_cents: number | null;
111855
+ packages_minutes: number | null;
111856
+ werkbon_id: string | null;
111857
+ };
111858
+ Relationships: [{
111859
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
111860
+ columns: ["werkbon_id"];
111861
+ isOneToOne: false;
111862
+ referencedRelation: "werkbonnen";
111863
+ referencedColumns: ["id"];
111864
+ }];
111865
+ };
111376
111866
  };
111377
111867
  Functions: {
111378
111868
  _floriday_schedule_job: {
@@ -112920,6 +113410,14 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
112920
113410
  };
112921
113411
  Returns: import("../integrations/supabase/types").Json;
112922
113412
  };
113413
+ logistics_plan_block: {
113414
+ Args: {
113415
+ p_details?: import("../integrations/supabase/types").Json;
113416
+ p_order_ids: string[];
113417
+ p_reason: string;
113418
+ };
113419
+ Returns: number;
113420
+ };
112923
113421
  logistics_plan_buffer_sql: {
112924
113422
  Args: {
112925
113423
  p_buffer_id: string;
@@ -113288,6 +113786,12 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113288
113786
  verwijderd: number;
113289
113787
  }[];
113290
113788
  };
113789
+ order_departure_proof: {
113790
+ Args: {
113791
+ p_order_id: string;
113792
+ };
113793
+ Returns: import("../integrations/supabase/types").Json;
113794
+ };
113291
113795
  order_number_prefix: {
113292
113796
  Args: {
113293
113797
  p_custom_fields?: import("../integrations/supabase/types").Json;
@@ -113295,6 +113799,25 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
113295
113799
  };
113296
113800
  Returns: string;
113297
113801
  };
113802
+ pakket_suggesties_voor_tekst: {
113803
+ Args: {
113804
+ _tekst: string;
113805
+ };
113806
+ Returns: {
113807
+ hit_type: string;
113808
+ package_id: string;
113809
+ priority: number;
113810
+ }[];
113811
+ };
113812
+ pakket_voor_reistijd: {
113813
+ Args: {
113814
+ _minuten: number;
113815
+ };
113816
+ Returns: {
113817
+ package_id: string;
113818
+ priority: number;
113819
+ }[];
113820
+ };
113298
113821
  pick_active_printers: {
113299
113822
  Args: never;
113300
113823
  Returns: {
@@ -114345,6 +114868,18 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
114345
114868
  Args: never;
114346
114869
  Returns: string;
114347
114870
  };
114871
+ werkbon_totalen: {
114872
+ Args: {
114873
+ _werkbon_id: string;
114874
+ };
114875
+ Returns: {
114876
+ materials_cents: number;
114877
+ packages_cents: number;
114878
+ packages_minutes: number;
114879
+ total_cents: number;
114880
+ total_minutes: number;
114881
+ }[];
114882
+ };
114348
114883
  wo_create_from_source: {
114349
114884
  Args: {
114350
114885
  _payload?: import("../integrations/supabase/types").Json;
@@ -114383,7 +114918,7 @@ export declare const getOrderLines: import("@tanstack/start-client-core").Requir
114383
114918
  };
114384
114919
  CompositeTypes: { [_ in never]: never; };
114385
114920
  }, {
114386
- PostgrestVersion: "14.5";
114921
+ PostgrestVersion: "14.17";
114387
114922
  }>;
114388
114923
  userId: string;
114389
114924
  claims: import("@supabase/auth-js").JwtPayload;