@flowselections/floriday-verkoop-module 1.0.48 → 1.0.50

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 (72) hide show
  1. package/dist-lib/components/verkoop/OrderKarindelingCard.d.ts.map +1 -1
  2. package/dist-lib/components/verkoop/OrderKarindelingCard.js +5 -1
  3. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  4. package/dist-lib/components/verkoop/SalesOrderDetailView.js +6 -4
  5. package/dist-lib/integrations/supabase/auth-middleware.d.ts +63 -1
  6. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/client.d.ts +63 -1
  8. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  9. package/dist-lib/integrations/supabase/client.server.d.ts +63 -1
  10. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  11. package/dist-lib/integrations/supabase/types.d.ts +66 -1
  12. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  13. package/dist-lib/lib/cart-lock.functions.d.ts +63 -1
  14. package/dist-lib/lib/cart-lock.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/cart-planner.d.ts +15 -4
  16. package/dist-lib/lib/cart-planner.d.ts.map +1 -1
  17. package/dist-lib/lib/cart-planner.js +44 -12
  18. package/dist-lib/lib/cart-planning-settings.functions.d.ts +693 -11
  19. package/dist-lib/lib/cart-planning-settings.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/cart-replan.functions.d.ts +201 -3
  21. package/dist-lib/lib/cart-replan.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/cart-replan.functions.js +49 -3
  23. package/dist-lib/lib/create-order.functions.d.ts +1076 -17
  24. package/dist-lib/lib/create-order.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/create-order.functions.js +48 -4
  26. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts +189 -3
  27. package/dist-lib/lib/floriday-auto-fulfillment.functions.d.ts.map +1 -1
  28. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts +63 -1
  29. package/dist-lib/lib/floriday-logistic-labels.functions.d.ts.map +1 -1
  30. package/dist-lib/lib/floriday-mirror.functions.d.ts +63 -1
  31. package/dist-lib/lib/floriday-mirror.functions.d.ts.map +1 -1
  32. package/dist-lib/lib/floriday-mirror.functions.js +11 -0
  33. package/dist-lib/lib/floriday-public.functions.d.ts +441 -7
  34. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/floriday-writes.functions.d.ts +315 -5
  36. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/invoice-timing.functions.d.ts +252 -4
  38. package/dist-lib/lib/invoice-timing.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/load-carrier-labels.d.ts +13 -0
  40. package/dist-lib/lib/load-carrier-labels.d.ts.map +1 -1
  41. package/dist-lib/lib/load-carrier-labels.js +20 -0
  42. package/dist-lib/lib/load-carriers.functions.d.ts +63 -1
  43. package/dist-lib/lib/load-carriers.functions.d.ts.map +1 -1
  44. package/dist-lib/lib/logistics-engine.functions.d.ts +315 -5
  45. package/dist-lib/lib/logistics-engine.functions.d.ts.map +1 -1
  46. package/dist-lib/lib/logistics-stock.functions.d.ts +126 -2
  47. package/dist-lib/lib/logistics-stock.functions.d.ts.map +1 -1
  48. package/dist-lib/lib/order-addresses.functions.d.ts +63 -1
  49. package/dist-lib/lib/order-addresses.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/order-buffers.functions.d.ts +189 -3
  51. package/dist-lib/lib/order-buffers.functions.d.ts.map +1 -1
  52. package/dist-lib/lib/order-carrier.functions.d.ts +126 -2
  53. package/dist-lib/lib/order-carrier.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/order-pickup.functions.d.ts +126 -2
  55. package/dist-lib/lib/order-pickup.functions.d.ts.map +1 -1
  56. package/dist-lib/lib/order-shipments.functions.d.ts +252 -4
  57. package/dist-lib/lib/order-shipments.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/salesorders-list.functions.d.ts +63 -1
  59. package/dist-lib/lib/salesorders-list.functions.d.ts.map +1 -1
  60. package/dist-lib/lib/salesorders-list.server.d.ts.map +1 -1
  61. package/dist-lib/lib/salesorders-list.server.js +70 -4
  62. package/dist-lib/lib/salesorders-mapping.d.ts +17 -0
  63. package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
  64. package/dist-lib/lib/salesorders-mapping.js +64 -13
  65. package/dist-lib/lib/salesorders.functions.d.ts +315 -5
  66. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  67. package/dist-lib/lib/salesorders.functions.js +19 -3
  68. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts +126 -2
  69. package/dist-lib/lib/stock-consumption-alerts.functions.d.ts.map +1 -1
  70. package/dist-lib/lib/tradeitems.functions.d.ts +63 -1
  71. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  72. package/package.json +1 -1
@@ -18619,6 +18619,7 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
18619
18619
  werkbon_package_items: {
18620
18620
  Row: {
18621
18621
  article_number: string | null;
18622
+ artikel_id: string | null;
18622
18623
  created_at: string;
18623
18624
  gtin: string | null;
18624
18625
  id: string;
@@ -18636,6 +18637,7 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
18636
18637
  };
18637
18638
  Insert: {
18638
18639
  article_number?: string | null;
18640
+ artikel_id?: string | null;
18639
18641
  created_at?: string;
18640
18642
  gtin?: string | null;
18641
18643
  id?: string;
@@ -18653,6 +18655,7 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
18653
18655
  };
18654
18656
  Update: {
18655
18657
  article_number?: string | null;
18658
+ artikel_id?: string | null;
18656
18659
  created_at?: string;
18657
18660
  gtin?: string | null;
18658
18661
  id?: string;
@@ -18669,6 +18672,12 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
18669
18672
  updated_at?: string;
18670
18673
  };
18671
18674
  Relationships: [{
18675
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
18676
+ columns: ["artikel_id"];
18677
+ isOneToOne: false;
18678
+ referencedRelation: "artikelen_cache";
18679
+ referencedColumns: ["id"];
18680
+ }, {
18672
18681
  foreignKeyName: "werkbon_package_items_package_id_fkey";
18673
18682
  columns: ["package_id"];
18674
18683
  isOneToOne: false;
@@ -19891,6 +19900,20 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
19891
19900
  referencedColumns: ["id"];
19892
19901
  }];
19893
19902
  };
19903
+ v_werkbon_totalen: {
19904
+ Row: {
19905
+ packages_cents: number | null;
19906
+ packages_minutes: number | null;
19907
+ werkbon_id: string | null;
19908
+ };
19909
+ Relationships: [{
19910
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
19911
+ columns: ["werkbon_id"];
19912
+ isOneToOne: false;
19913
+ referencedRelation: "werkbonnen";
19914
+ referencedColumns: ["id"];
19915
+ }];
19916
+ };
19894
19917
  };
19895
19918
  Functions: {
19896
19919
  _floriday_schedule_job: {
@@ -21438,6 +21461,14 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
21438
21461
  };
21439
21462
  Returns: import("../integrations/supabase/types").Json;
21440
21463
  };
21464
+ logistics_plan_block: {
21465
+ Args: {
21466
+ p_details?: import("../integrations/supabase/types").Json;
21467
+ p_order_ids: string[];
21468
+ p_reason: string;
21469
+ };
21470
+ Returns: number;
21471
+ };
21441
21472
  logistics_plan_buffer_sql: {
21442
21473
  Args: {
21443
21474
  p_buffer_id: string;
@@ -21819,6 +21850,25 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
21819
21850
  };
21820
21851
  Returns: string;
21821
21852
  };
21853
+ pakket_suggesties_voor_tekst: {
21854
+ Args: {
21855
+ _tekst: string;
21856
+ };
21857
+ Returns: {
21858
+ hit_type: string;
21859
+ package_id: string;
21860
+ priority: number;
21861
+ }[];
21862
+ };
21863
+ pakket_voor_reistijd: {
21864
+ Args: {
21865
+ _minuten: number;
21866
+ };
21867
+ Returns: {
21868
+ package_id: string;
21869
+ priority: number;
21870
+ }[];
21871
+ };
21822
21872
  pick_active_printers: {
21823
21873
  Args: never;
21824
21874
  Returns: {
@@ -22869,6 +22919,18 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
22869
22919
  Args: never;
22870
22920
  Returns: string;
22871
22921
  };
22922
+ werkbon_totalen: {
22923
+ Args: {
22924
+ _werkbon_id: string;
22925
+ };
22926
+ Returns: {
22927
+ materials_cents: number;
22928
+ packages_cents: number;
22929
+ packages_minutes: number;
22930
+ total_cents: number;
22931
+ total_minutes: number;
22932
+ }[];
22933
+ };
22872
22934
  wo_create_from_source: {
22873
22935
  Args: {
22874
22936
  _payload?: import("../integrations/supabase/types").Json;
@@ -22907,7 +22969,7 @@ export declare const listCustomersForCreateOrder: import("@tanstack/start-client
22907
22969
  };
22908
22970
  CompositeTypes: { [_ in never]: never; };
22909
22971
  }, {
22910
- PostgrestVersion: "14.5";
22972
+ PostgrestVersion: "14.17";
22911
22973
  }>;
22912
22974
  userId: string;
22913
22975
  claims: import("@supabase/auth-js").User;
@@ -41535,6 +41597,7 @@ export declare const ensureCustomerFromTwinfield: import("@tanstack/start-client
41535
41597
  werkbon_package_items: {
41536
41598
  Row: {
41537
41599
  article_number: string | null;
41600
+ artikel_id: string | null;
41538
41601
  created_at: string;
41539
41602
  gtin: string | null;
41540
41603
  id: string;
@@ -41552,6 +41615,7 @@ export declare const ensureCustomerFromTwinfield: import("@tanstack/start-client
41552
41615
  };
41553
41616
  Insert: {
41554
41617
  article_number?: string | null;
41618
+ artikel_id?: string | null;
41555
41619
  created_at?: string;
41556
41620
  gtin?: string | null;
41557
41621
  id?: string;
@@ -41569,6 +41633,7 @@ export declare const ensureCustomerFromTwinfield: import("@tanstack/start-client
41569
41633
  };
41570
41634
  Update: {
41571
41635
  article_number?: string | null;
41636
+ artikel_id?: string | null;
41572
41637
  created_at?: string;
41573
41638
  gtin?: string | null;
41574
41639
  id?: string;
@@ -41585,6 +41650,12 @@ export declare const ensureCustomerFromTwinfield: import("@tanstack/start-client
41585
41650
  updated_at?: string;
41586
41651
  };
41587
41652
  Relationships: [{
41653
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
41654
+ columns: ["artikel_id"];
41655
+ isOneToOne: false;
41656
+ referencedRelation: "artikelen_cache";
41657
+ referencedColumns: ["id"];
41658
+ }, {
41588
41659
  foreignKeyName: "werkbon_package_items_package_id_fkey";
41589
41660
  columns: ["package_id"];
41590
41661
  isOneToOne: false;
@@ -42807,6 +42878,20 @@ export declare const ensureCustomerFromTwinfield: import("@tanstack/start-client
42807
42878
  referencedColumns: ["id"];
42808
42879
  }];
42809
42880
  };
42881
+ v_werkbon_totalen: {
42882
+ Row: {
42883
+ packages_cents: number | null;
42884
+ packages_minutes: number | null;
42885
+ werkbon_id: string | null;
42886
+ };
42887
+ Relationships: [{
42888
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
42889
+ columns: ["werkbon_id"];
42890
+ isOneToOne: false;
42891
+ referencedRelation: "werkbonnen";
42892
+ referencedColumns: ["id"];
42893
+ }];
42894
+ };
42810
42895
  };
42811
42896
  Functions: {
42812
42897
  _floriday_schedule_job: {
@@ -44354,6 +44439,14 @@ export declare const ensureCustomerFromTwinfield: import("@tanstack/start-client
44354
44439
  };
44355
44440
  Returns: import("../integrations/supabase/types").Json;
44356
44441
  };
44442
+ logistics_plan_block: {
44443
+ Args: {
44444
+ p_details?: import("../integrations/supabase/types").Json;
44445
+ p_order_ids: string[];
44446
+ p_reason: string;
44447
+ };
44448
+ Returns: number;
44449
+ };
44357
44450
  logistics_plan_buffer_sql: {
44358
44451
  Args: {
44359
44452
  p_buffer_id: string;
@@ -44735,6 +44828,25 @@ export declare const ensureCustomerFromTwinfield: import("@tanstack/start-client
44735
44828
  };
44736
44829
  Returns: string;
44737
44830
  };
44831
+ pakket_suggesties_voor_tekst: {
44832
+ Args: {
44833
+ _tekst: string;
44834
+ };
44835
+ Returns: {
44836
+ hit_type: string;
44837
+ package_id: string;
44838
+ priority: number;
44839
+ }[];
44840
+ };
44841
+ pakket_voor_reistijd: {
44842
+ Args: {
44843
+ _minuten: number;
44844
+ };
44845
+ Returns: {
44846
+ package_id: string;
44847
+ priority: number;
44848
+ }[];
44849
+ };
44738
44850
  pick_active_printers: {
44739
44851
  Args: never;
44740
44852
  Returns: {
@@ -45785,6 +45897,18 @@ export declare const ensureCustomerFromTwinfield: import("@tanstack/start-client
45785
45897
  Args: never;
45786
45898
  Returns: string;
45787
45899
  };
45900
+ werkbon_totalen: {
45901
+ Args: {
45902
+ _werkbon_id: string;
45903
+ };
45904
+ Returns: {
45905
+ materials_cents: number;
45906
+ packages_cents: number;
45907
+ packages_minutes: number;
45908
+ total_cents: number;
45909
+ total_minutes: number;
45910
+ }[];
45911
+ };
45788
45912
  wo_create_from_source: {
45789
45913
  Args: {
45790
45914
  _payload?: import("../integrations/supabase/types").Json;
@@ -45823,7 +45947,7 @@ export declare const ensureCustomerFromTwinfield: import("@tanstack/start-client
45823
45947
  };
45824
45948
  CompositeTypes: { [_ in never]: never; };
45825
45949
  }, {
45826
- PostgrestVersion: "14.5";
45950
+ PostgrestVersion: "14.17";
45827
45951
  }>;
45828
45952
  userId: string;
45829
45953
  claims: import("@supabase/auth-js").User;
@@ -64453,6 +64577,7 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
64453
64577
  werkbon_package_items: {
64454
64578
  Row: {
64455
64579
  article_number: string | null;
64580
+ artikel_id: string | null;
64456
64581
  created_at: string;
64457
64582
  gtin: string | null;
64458
64583
  id: string;
@@ -64470,6 +64595,7 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
64470
64595
  };
64471
64596
  Insert: {
64472
64597
  article_number?: string | null;
64598
+ artikel_id?: string | null;
64473
64599
  created_at?: string;
64474
64600
  gtin?: string | null;
64475
64601
  id?: string;
@@ -64487,6 +64613,7 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
64487
64613
  };
64488
64614
  Update: {
64489
64615
  article_number?: string | null;
64616
+ artikel_id?: string | null;
64490
64617
  created_at?: string;
64491
64618
  gtin?: string | null;
64492
64619
  id?: string;
@@ -64503,6 +64630,12 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
64503
64630
  updated_at?: string;
64504
64631
  };
64505
64632
  Relationships: [{
64633
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
64634
+ columns: ["artikel_id"];
64635
+ isOneToOne: false;
64636
+ referencedRelation: "artikelen_cache";
64637
+ referencedColumns: ["id"];
64638
+ }, {
64506
64639
  foreignKeyName: "werkbon_package_items_package_id_fkey";
64507
64640
  columns: ["package_id"];
64508
64641
  isOneToOne: false;
@@ -65725,6 +65858,20 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
65725
65858
  referencedColumns: ["id"];
65726
65859
  }];
65727
65860
  };
65861
+ v_werkbon_totalen: {
65862
+ Row: {
65863
+ packages_cents: number | null;
65864
+ packages_minutes: number | null;
65865
+ werkbon_id: string | null;
65866
+ };
65867
+ Relationships: [{
65868
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
65869
+ columns: ["werkbon_id"];
65870
+ isOneToOne: false;
65871
+ referencedRelation: "werkbonnen";
65872
+ referencedColumns: ["id"];
65873
+ }];
65874
+ };
65728
65875
  };
65729
65876
  Functions: {
65730
65877
  _floriday_schedule_job: {
@@ -67272,6 +67419,14 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
67272
67419
  };
67273
67420
  Returns: import("../integrations/supabase/types").Json;
67274
67421
  };
67422
+ logistics_plan_block: {
67423
+ Args: {
67424
+ p_details?: import("../integrations/supabase/types").Json;
67425
+ p_order_ids: string[];
67426
+ p_reason: string;
67427
+ };
67428
+ Returns: number;
67429
+ };
67275
67430
  logistics_plan_buffer_sql: {
67276
67431
  Args: {
67277
67432
  p_buffer_id: string;
@@ -67653,6 +67808,25 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
67653
67808
  };
67654
67809
  Returns: string;
67655
67810
  };
67811
+ pakket_suggesties_voor_tekst: {
67812
+ Args: {
67813
+ _tekst: string;
67814
+ };
67815
+ Returns: {
67816
+ hit_type: string;
67817
+ package_id: string;
67818
+ priority: number;
67819
+ }[];
67820
+ };
67821
+ pakket_voor_reistijd: {
67822
+ Args: {
67823
+ _minuten: number;
67824
+ };
67825
+ Returns: {
67826
+ package_id: string;
67827
+ priority: number;
67828
+ }[];
67829
+ };
67656
67830
  pick_active_printers: {
67657
67831
  Args: never;
67658
67832
  Returns: {
@@ -68703,6 +68877,18 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
68703
68877
  Args: never;
68704
68878
  Returns: string;
68705
68879
  };
68880
+ werkbon_totalen: {
68881
+ Args: {
68882
+ _werkbon_id: string;
68883
+ };
68884
+ Returns: {
68885
+ materials_cents: number;
68886
+ packages_cents: number;
68887
+ packages_minutes: number;
68888
+ total_cents: number;
68889
+ total_minutes: number;
68890
+ }[];
68891
+ };
68706
68892
  wo_create_from_source: {
68707
68893
  Args: {
68708
68894
  _payload?: import("../integrations/supabase/types").Json;
@@ -68741,7 +68927,7 @@ export declare const listProductsForCreateOrder: import("@tanstack/start-client-
68741
68927
  };
68742
68928
  CompositeTypes: { [_ in never]: never; };
68743
68929
  }, {
68744
- PostgrestVersion: "14.5";
68930
+ PostgrestVersion: "14.17";
68745
68931
  }>;
68746
68932
  userId: string;
68747
68933
  claims: import("@supabase/auth-js").User;
@@ -87383,6 +87569,7 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
87383
87569
  werkbon_package_items: {
87384
87570
  Row: {
87385
87571
  article_number: string | null;
87572
+ artikel_id: string | null;
87386
87573
  created_at: string;
87387
87574
  gtin: string | null;
87388
87575
  id: string;
@@ -87400,6 +87587,7 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
87400
87587
  };
87401
87588
  Insert: {
87402
87589
  article_number?: string | null;
87590
+ artikel_id?: string | null;
87403
87591
  created_at?: string;
87404
87592
  gtin?: string | null;
87405
87593
  id?: string;
@@ -87417,6 +87605,7 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
87417
87605
  };
87418
87606
  Update: {
87419
87607
  article_number?: string | null;
87608
+ artikel_id?: string | null;
87420
87609
  created_at?: string;
87421
87610
  gtin?: string | null;
87422
87611
  id?: string;
@@ -87433,6 +87622,12 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
87433
87622
  updated_at?: string;
87434
87623
  };
87435
87624
  Relationships: [{
87625
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
87626
+ columns: ["artikel_id"];
87627
+ isOneToOne: false;
87628
+ referencedRelation: "artikelen_cache";
87629
+ referencedColumns: ["id"];
87630
+ }, {
87436
87631
  foreignKeyName: "werkbon_package_items_package_id_fkey";
87437
87632
  columns: ["package_id"];
87438
87633
  isOneToOne: false;
@@ -88655,6 +88850,20 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
88655
88850
  referencedColumns: ["id"];
88656
88851
  }];
88657
88852
  };
88853
+ v_werkbon_totalen: {
88854
+ Row: {
88855
+ packages_cents: number | null;
88856
+ packages_minutes: number | null;
88857
+ werkbon_id: string | null;
88858
+ };
88859
+ Relationships: [{
88860
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
88861
+ columns: ["werkbon_id"];
88862
+ isOneToOne: false;
88863
+ referencedRelation: "werkbonnen";
88864
+ referencedColumns: ["id"];
88865
+ }];
88866
+ };
88658
88867
  };
88659
88868
  Functions: {
88660
88869
  _floriday_schedule_job: {
@@ -90202,6 +90411,14 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
90202
90411
  };
90203
90412
  Returns: import("../integrations/supabase/types").Json;
90204
90413
  };
90414
+ logistics_plan_block: {
90415
+ Args: {
90416
+ p_details?: import("../integrations/supabase/types").Json;
90417
+ p_order_ids: string[];
90418
+ p_reason: string;
90419
+ };
90420
+ Returns: number;
90421
+ };
90205
90422
  logistics_plan_buffer_sql: {
90206
90423
  Args: {
90207
90424
  p_buffer_id: string;
@@ -90583,6 +90800,25 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
90583
90800
  };
90584
90801
  Returns: string;
90585
90802
  };
90803
+ pakket_suggesties_voor_tekst: {
90804
+ Args: {
90805
+ _tekst: string;
90806
+ };
90807
+ Returns: {
90808
+ hit_type: string;
90809
+ package_id: string;
90810
+ priority: number;
90811
+ }[];
90812
+ };
90813
+ pakket_voor_reistijd: {
90814
+ Args: {
90815
+ _minuten: number;
90816
+ };
90817
+ Returns: {
90818
+ package_id: string;
90819
+ priority: number;
90820
+ }[];
90821
+ };
90586
90822
  pick_active_printers: {
90587
90823
  Args: never;
90588
90824
  Returns: {
@@ -91633,6 +91869,18 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
91633
91869
  Args: never;
91634
91870
  Returns: string;
91635
91871
  };
91872
+ werkbon_totalen: {
91873
+ Args: {
91874
+ _werkbon_id: string;
91875
+ };
91876
+ Returns: {
91877
+ materials_cents: number;
91878
+ packages_cents: number;
91879
+ packages_minutes: number;
91880
+ total_cents: number;
91881
+ total_minutes: number;
91882
+ }[];
91883
+ };
91636
91884
  wo_create_from_source: {
91637
91885
  Args: {
91638
91886
  _payload?: import("../integrations/supabase/types").Json;
@@ -91671,7 +91919,7 @@ export declare const listDeliveryLocationsForCustomerCO: import("@tanstack/start
91671
91919
  };
91672
91920
  CompositeTypes: { [_ in never]: never; };
91673
91921
  }, {
91674
- PostgrestVersion: "14.5";
91922
+ PostgrestVersion: "14.17";
91675
91923
  }>;
91676
91924
  userId: string;
91677
91925
  claims: import("@supabase/auth-js").User;
@@ -110319,6 +110567,7 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
110319
110567
  werkbon_package_items: {
110320
110568
  Row: {
110321
110569
  article_number: string | null;
110570
+ artikel_id: string | null;
110322
110571
  created_at: string;
110323
110572
  gtin: string | null;
110324
110573
  id: string;
@@ -110336,6 +110585,7 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
110336
110585
  };
110337
110586
  Insert: {
110338
110587
  article_number?: string | null;
110588
+ artikel_id?: string | null;
110339
110589
  created_at?: string;
110340
110590
  gtin?: string | null;
110341
110591
  id?: string;
@@ -110353,6 +110603,7 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
110353
110603
  };
110354
110604
  Update: {
110355
110605
  article_number?: string | null;
110606
+ artikel_id?: string | null;
110356
110607
  created_at?: string;
110357
110608
  gtin?: string | null;
110358
110609
  id?: string;
@@ -110369,6 +110620,12 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
110369
110620
  updated_at?: string;
110370
110621
  };
110371
110622
  Relationships: [{
110623
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
110624
+ columns: ["artikel_id"];
110625
+ isOneToOne: false;
110626
+ referencedRelation: "artikelen_cache";
110627
+ referencedColumns: ["id"];
110628
+ }, {
110372
110629
  foreignKeyName: "werkbon_package_items_package_id_fkey";
110373
110630
  columns: ["package_id"];
110374
110631
  isOneToOne: false;
@@ -111591,6 +111848,20 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
111591
111848
  referencedColumns: ["id"];
111592
111849
  }];
111593
111850
  };
111851
+ v_werkbon_totalen: {
111852
+ Row: {
111853
+ packages_cents: number | null;
111854
+ packages_minutes: number | null;
111855
+ werkbon_id: string | null;
111856
+ };
111857
+ Relationships: [{
111858
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
111859
+ columns: ["werkbon_id"];
111860
+ isOneToOne: false;
111861
+ referencedRelation: "werkbonnen";
111862
+ referencedColumns: ["id"];
111863
+ }];
111864
+ };
111594
111865
  };
111595
111866
  Functions: {
111596
111867
  _floriday_schedule_job: {
@@ -113138,6 +113409,14 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
113138
113409
  };
113139
113410
  Returns: import("../integrations/supabase/types").Json;
113140
113411
  };
113412
+ logistics_plan_block: {
113413
+ Args: {
113414
+ p_details?: import("../integrations/supabase/types").Json;
113415
+ p_order_ids: string[];
113416
+ p_reason: string;
113417
+ };
113418
+ Returns: number;
113419
+ };
113141
113420
  logistics_plan_buffer_sql: {
113142
113421
  Args: {
113143
113422
  p_buffer_id: string;
@@ -113519,6 +113798,25 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
113519
113798
  };
113520
113799
  Returns: string;
113521
113800
  };
113801
+ pakket_suggesties_voor_tekst: {
113802
+ Args: {
113803
+ _tekst: string;
113804
+ };
113805
+ Returns: {
113806
+ hit_type: string;
113807
+ package_id: string;
113808
+ priority: number;
113809
+ }[];
113810
+ };
113811
+ pakket_voor_reistijd: {
113812
+ Args: {
113813
+ _minuten: number;
113814
+ };
113815
+ Returns: {
113816
+ package_id: string;
113817
+ priority: number;
113818
+ }[];
113819
+ };
113522
113820
  pick_active_printers: {
113523
113821
  Args: never;
113524
113822
  Returns: {
@@ -114569,6 +114867,18 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
114569
114867
  Args: never;
114570
114868
  Returns: string;
114571
114869
  };
114870
+ werkbon_totalen: {
114871
+ Args: {
114872
+ _werkbon_id: string;
114873
+ };
114874
+ Returns: {
114875
+ materials_cents: number;
114876
+ packages_cents: number;
114877
+ packages_minutes: number;
114878
+ total_cents: number;
114879
+ total_minutes: number;
114880
+ }[];
114881
+ };
114572
114882
  wo_create_from_source: {
114573
114883
  Args: {
114574
114884
  _payload?: import("../integrations/supabase/types").Json;
@@ -114607,7 +114917,7 @@ export declare const listPickupLocationsCO: import("@tanstack/start-client-core"
114607
114917
  };
114608
114918
  CompositeTypes: { [_ in never]: never; };
114609
114919
  }, {
114610
- PostgrestVersion: "14.5";
114920
+ PostgrestVersion: "14.17";
114611
114921
  }>;
114612
114922
  userId: string;
114613
114923
  claims: import("@supabase/auth-js").User;
@@ -133238,6 +133548,7 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
133238
133548
  werkbon_package_items: {
133239
133549
  Row: {
133240
133550
  article_number: string | null;
133551
+ artikel_id: string | null;
133241
133552
  created_at: string;
133242
133553
  gtin: string | null;
133243
133554
  id: string;
@@ -133255,6 +133566,7 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
133255
133566
  };
133256
133567
  Insert: {
133257
133568
  article_number?: string | null;
133569
+ artikel_id?: string | null;
133258
133570
  created_at?: string;
133259
133571
  gtin?: string | null;
133260
133572
  id?: string;
@@ -133272,6 +133584,7 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
133272
133584
  };
133273
133585
  Update: {
133274
133586
  article_number?: string | null;
133587
+ artikel_id?: string | null;
133275
133588
  created_at?: string;
133276
133589
  gtin?: string | null;
133277
133590
  id?: string;
@@ -133288,6 +133601,12 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
133288
133601
  updated_at?: string;
133289
133602
  };
133290
133603
  Relationships: [{
133604
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
133605
+ columns: ["artikel_id"];
133606
+ isOneToOne: false;
133607
+ referencedRelation: "artikelen_cache";
133608
+ referencedColumns: ["id"];
133609
+ }, {
133291
133610
  foreignKeyName: "werkbon_package_items_package_id_fkey";
133292
133611
  columns: ["package_id"];
133293
133612
  isOneToOne: false;
@@ -134510,6 +134829,20 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
134510
134829
  referencedColumns: ["id"];
134511
134830
  }];
134512
134831
  };
134832
+ v_werkbon_totalen: {
134833
+ Row: {
134834
+ packages_cents: number | null;
134835
+ packages_minutes: number | null;
134836
+ werkbon_id: string | null;
134837
+ };
134838
+ Relationships: [{
134839
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
134840
+ columns: ["werkbon_id"];
134841
+ isOneToOne: false;
134842
+ referencedRelation: "werkbonnen";
134843
+ referencedColumns: ["id"];
134844
+ }];
134845
+ };
134513
134846
  };
134514
134847
  Functions: {
134515
134848
  _floriday_schedule_job: {
@@ -136057,6 +136390,14 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
136057
136390
  };
136058
136391
  Returns: import("../integrations/supabase/types").Json;
136059
136392
  };
136393
+ logistics_plan_block: {
136394
+ Args: {
136395
+ p_details?: import("../integrations/supabase/types").Json;
136396
+ p_order_ids: string[];
136397
+ p_reason: string;
136398
+ };
136399
+ Returns: number;
136400
+ };
136060
136401
  logistics_plan_buffer_sql: {
136061
136402
  Args: {
136062
136403
  p_buffer_id: string;
@@ -136438,6 +136779,25 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
136438
136779
  };
136439
136780
  Returns: string;
136440
136781
  };
136782
+ pakket_suggesties_voor_tekst: {
136783
+ Args: {
136784
+ _tekst: string;
136785
+ };
136786
+ Returns: {
136787
+ hit_type: string;
136788
+ package_id: string;
136789
+ priority: number;
136790
+ }[];
136791
+ };
136792
+ pakket_voor_reistijd: {
136793
+ Args: {
136794
+ _minuten: number;
136795
+ };
136796
+ Returns: {
136797
+ package_id: string;
136798
+ priority: number;
136799
+ }[];
136800
+ };
136441
136801
  pick_active_printers: {
136442
136802
  Args: never;
136443
136803
  Returns: {
@@ -137488,6 +137848,18 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
137488
137848
  Args: never;
137489
137849
  Returns: string;
137490
137850
  };
137851
+ werkbon_totalen: {
137852
+ Args: {
137853
+ _werkbon_id: string;
137854
+ };
137855
+ Returns: {
137856
+ materials_cents: number;
137857
+ packages_cents: number;
137858
+ packages_minutes: number;
137859
+ total_cents: number;
137860
+ total_minutes: number;
137861
+ }[];
137862
+ };
137491
137863
  wo_create_from_source: {
137492
137864
  Args: {
137493
137865
  _payload?: import("../integrations/supabase/types").Json;
@@ -137526,7 +137898,7 @@ export declare const listCarriersForCreateOrder: import("@tanstack/start-client-
137526
137898
  };
137527
137899
  CompositeTypes: { [_ in never]: never; };
137528
137900
  }, {
137529
- PostgrestVersion: "14.5";
137901
+ PostgrestVersion: "14.17";
137530
137902
  }>;
137531
137903
  userId: string;
137532
137904
  claims: import("@supabase/auth-js").User;
@@ -156166,6 +156538,7 @@ export declare const listBeladingOptionsForProducts: import("@tanstack/start-cli
156166
156538
  werkbon_package_items: {
156167
156539
  Row: {
156168
156540
  article_number: string | null;
156541
+ artikel_id: string | null;
156169
156542
  created_at: string;
156170
156543
  gtin: string | null;
156171
156544
  id: string;
@@ -156183,6 +156556,7 @@ export declare const listBeladingOptionsForProducts: import("@tanstack/start-cli
156183
156556
  };
156184
156557
  Insert: {
156185
156558
  article_number?: string | null;
156559
+ artikel_id?: string | null;
156186
156560
  created_at?: string;
156187
156561
  gtin?: string | null;
156188
156562
  id?: string;
@@ -156200,6 +156574,7 @@ export declare const listBeladingOptionsForProducts: import("@tanstack/start-cli
156200
156574
  };
156201
156575
  Update: {
156202
156576
  article_number?: string | null;
156577
+ artikel_id?: string | null;
156203
156578
  created_at?: string;
156204
156579
  gtin?: string | null;
156205
156580
  id?: string;
@@ -156216,6 +156591,12 @@ export declare const listBeladingOptionsForProducts: import("@tanstack/start-cli
156216
156591
  updated_at?: string;
156217
156592
  };
156218
156593
  Relationships: [{
156594
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
156595
+ columns: ["artikel_id"];
156596
+ isOneToOne: false;
156597
+ referencedRelation: "artikelen_cache";
156598
+ referencedColumns: ["id"];
156599
+ }, {
156219
156600
  foreignKeyName: "werkbon_package_items_package_id_fkey";
156220
156601
  columns: ["package_id"];
156221
156602
  isOneToOne: false;
@@ -157438,6 +157819,20 @@ export declare const listBeladingOptionsForProducts: import("@tanstack/start-cli
157438
157819
  referencedColumns: ["id"];
157439
157820
  }];
157440
157821
  };
157822
+ v_werkbon_totalen: {
157823
+ Row: {
157824
+ packages_cents: number | null;
157825
+ packages_minutes: number | null;
157826
+ werkbon_id: string | null;
157827
+ };
157828
+ Relationships: [{
157829
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
157830
+ columns: ["werkbon_id"];
157831
+ isOneToOne: false;
157832
+ referencedRelation: "werkbonnen";
157833
+ referencedColumns: ["id"];
157834
+ }];
157835
+ };
157441
157836
  };
157442
157837
  Functions: {
157443
157838
  _floriday_schedule_job: {
@@ -158985,6 +159380,14 @@ export declare const listBeladingOptionsForProducts: import("@tanstack/start-cli
158985
159380
  };
158986
159381
  Returns: import("../integrations/supabase/types").Json;
158987
159382
  };
159383
+ logistics_plan_block: {
159384
+ Args: {
159385
+ p_details?: import("../integrations/supabase/types").Json;
159386
+ p_order_ids: string[];
159387
+ p_reason: string;
159388
+ };
159389
+ Returns: number;
159390
+ };
158988
159391
  logistics_plan_buffer_sql: {
158989
159392
  Args: {
158990
159393
  p_buffer_id: string;
@@ -159366,6 +159769,25 @@ export declare const listBeladingOptionsForProducts: import("@tanstack/start-cli
159366
159769
  };
159367
159770
  Returns: string;
159368
159771
  };
159772
+ pakket_suggesties_voor_tekst: {
159773
+ Args: {
159774
+ _tekst: string;
159775
+ };
159776
+ Returns: {
159777
+ hit_type: string;
159778
+ package_id: string;
159779
+ priority: number;
159780
+ }[];
159781
+ };
159782
+ pakket_voor_reistijd: {
159783
+ Args: {
159784
+ _minuten: number;
159785
+ };
159786
+ Returns: {
159787
+ package_id: string;
159788
+ priority: number;
159789
+ }[];
159790
+ };
159369
159791
  pick_active_printers: {
159370
159792
  Args: never;
159371
159793
  Returns: {
@@ -160416,6 +160838,18 @@ export declare const listBeladingOptionsForProducts: import("@tanstack/start-cli
160416
160838
  Args: never;
160417
160839
  Returns: string;
160418
160840
  };
160841
+ werkbon_totalen: {
160842
+ Args: {
160843
+ _werkbon_id: string;
160844
+ };
160845
+ Returns: {
160846
+ materials_cents: number;
160847
+ packages_cents: number;
160848
+ packages_minutes: number;
160849
+ total_cents: number;
160850
+ total_minutes: number;
160851
+ }[];
160852
+ };
160419
160853
  wo_create_from_source: {
160420
160854
  Args: {
160421
160855
  _payload?: import("../integrations/supabase/types").Json;
@@ -160454,7 +160888,7 @@ export declare const listBeladingOptionsForProducts: import("@tanstack/start-cli
160454
160888
  };
160455
160889
  CompositeTypes: { [_ in never]: never; };
160456
160890
  }, {
160457
- PostgrestVersion: "14.5";
160891
+ PostgrestVersion: "14.17";
160458
160892
  }>;
160459
160893
  userId: string;
160460
160894
  claims: import("@supabase/auth-js").User;
@@ -179084,6 +179518,7 @@ export declare const listBeladingOptions: import("@tanstack/start-client-core").
179084
179518
  werkbon_package_items: {
179085
179519
  Row: {
179086
179520
  article_number: string | null;
179521
+ artikel_id: string | null;
179087
179522
  created_at: string;
179088
179523
  gtin: string | null;
179089
179524
  id: string;
@@ -179101,6 +179536,7 @@ export declare const listBeladingOptions: import("@tanstack/start-client-core").
179101
179536
  };
179102
179537
  Insert: {
179103
179538
  article_number?: string | null;
179539
+ artikel_id?: string | null;
179104
179540
  created_at?: string;
179105
179541
  gtin?: string | null;
179106
179542
  id?: string;
@@ -179118,6 +179554,7 @@ export declare const listBeladingOptions: import("@tanstack/start-client-core").
179118
179554
  };
179119
179555
  Update: {
179120
179556
  article_number?: string | null;
179557
+ artikel_id?: string | null;
179121
179558
  created_at?: string;
179122
179559
  gtin?: string | null;
179123
179560
  id?: string;
@@ -179134,6 +179571,12 @@ export declare const listBeladingOptions: import("@tanstack/start-client-core").
179134
179571
  updated_at?: string;
179135
179572
  };
179136
179573
  Relationships: [{
179574
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
179575
+ columns: ["artikel_id"];
179576
+ isOneToOne: false;
179577
+ referencedRelation: "artikelen_cache";
179578
+ referencedColumns: ["id"];
179579
+ }, {
179137
179580
  foreignKeyName: "werkbon_package_items_package_id_fkey";
179138
179581
  columns: ["package_id"];
179139
179582
  isOneToOne: false;
@@ -180356,6 +180799,20 @@ export declare const listBeladingOptions: import("@tanstack/start-client-core").
180356
180799
  referencedColumns: ["id"];
180357
180800
  }];
180358
180801
  };
180802
+ v_werkbon_totalen: {
180803
+ Row: {
180804
+ packages_cents: number | null;
180805
+ packages_minutes: number | null;
180806
+ werkbon_id: string | null;
180807
+ };
180808
+ Relationships: [{
180809
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
180810
+ columns: ["werkbon_id"];
180811
+ isOneToOne: false;
180812
+ referencedRelation: "werkbonnen";
180813
+ referencedColumns: ["id"];
180814
+ }];
180815
+ };
180359
180816
  };
180360
180817
  Functions: {
180361
180818
  _floriday_schedule_job: {
@@ -181903,6 +182360,14 @@ export declare const listBeladingOptions: import("@tanstack/start-client-core").
181903
182360
  };
181904
182361
  Returns: import("../integrations/supabase/types").Json;
181905
182362
  };
182363
+ logistics_plan_block: {
182364
+ Args: {
182365
+ p_details?: import("../integrations/supabase/types").Json;
182366
+ p_order_ids: string[];
182367
+ p_reason: string;
182368
+ };
182369
+ Returns: number;
182370
+ };
181906
182371
  logistics_plan_buffer_sql: {
181907
182372
  Args: {
181908
182373
  p_buffer_id: string;
@@ -182284,6 +182749,25 @@ export declare const listBeladingOptions: import("@tanstack/start-client-core").
182284
182749
  };
182285
182750
  Returns: string;
182286
182751
  };
182752
+ pakket_suggesties_voor_tekst: {
182753
+ Args: {
182754
+ _tekst: string;
182755
+ };
182756
+ Returns: {
182757
+ hit_type: string;
182758
+ package_id: string;
182759
+ priority: number;
182760
+ }[];
182761
+ };
182762
+ pakket_voor_reistijd: {
182763
+ Args: {
182764
+ _minuten: number;
182765
+ };
182766
+ Returns: {
182767
+ package_id: string;
182768
+ priority: number;
182769
+ }[];
182770
+ };
182287
182771
  pick_active_printers: {
182288
182772
  Args: never;
182289
182773
  Returns: {
@@ -183334,6 +183818,18 @@ export declare const listBeladingOptions: import("@tanstack/start-client-core").
183334
183818
  Args: never;
183335
183819
  Returns: string;
183336
183820
  };
183821
+ werkbon_totalen: {
183822
+ Args: {
183823
+ _werkbon_id: string;
183824
+ };
183825
+ Returns: {
183826
+ materials_cents: number;
183827
+ packages_cents: number;
183828
+ packages_minutes: number;
183829
+ total_cents: number;
183830
+ total_minutes: number;
183831
+ }[];
183832
+ };
183337
183833
  wo_create_from_source: {
183338
183834
  Args: {
183339
183835
  _payload?: import("../integrations/supabase/types").Json;
@@ -183372,7 +183868,7 @@ export declare const listBeladingOptions: import("@tanstack/start-client-core").
183372
183868
  };
183373
183869
  CompositeTypes: { [_ in never]: never; };
183374
183870
  }, {
183375
- PostgrestVersion: "14.5";
183871
+ PostgrestVersion: "14.17";
183376
183872
  }>;
183377
183873
  userId: string;
183378
183874
  claims: import("@supabase/auth-js").User;
@@ -202007,6 +202503,7 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
202007
202503
  werkbon_package_items: {
202008
202504
  Row: {
202009
202505
  article_number: string | null;
202506
+ artikel_id: string | null;
202010
202507
  created_at: string;
202011
202508
  gtin: string | null;
202012
202509
  id: string;
@@ -202024,6 +202521,7 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
202024
202521
  };
202025
202522
  Insert: {
202026
202523
  article_number?: string | null;
202524
+ artikel_id?: string | null;
202027
202525
  created_at?: string;
202028
202526
  gtin?: string | null;
202029
202527
  id?: string;
@@ -202041,6 +202539,7 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
202041
202539
  };
202042
202540
  Update: {
202043
202541
  article_number?: string | null;
202542
+ artikel_id?: string | null;
202044
202543
  created_at?: string;
202045
202544
  gtin?: string | null;
202046
202545
  id?: string;
@@ -202057,6 +202556,12 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
202057
202556
  updated_at?: string;
202058
202557
  };
202059
202558
  Relationships: [{
202559
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
202560
+ columns: ["artikel_id"];
202561
+ isOneToOne: false;
202562
+ referencedRelation: "artikelen_cache";
202563
+ referencedColumns: ["id"];
202564
+ }, {
202060
202565
  foreignKeyName: "werkbon_package_items_package_id_fkey";
202061
202566
  columns: ["package_id"];
202062
202567
  isOneToOne: false;
@@ -203279,6 +203784,20 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
203279
203784
  referencedColumns: ["id"];
203280
203785
  }];
203281
203786
  };
203787
+ v_werkbon_totalen: {
203788
+ Row: {
203789
+ packages_cents: number | null;
203790
+ packages_minutes: number | null;
203791
+ werkbon_id: string | null;
203792
+ };
203793
+ Relationships: [{
203794
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
203795
+ columns: ["werkbon_id"];
203796
+ isOneToOne: false;
203797
+ referencedRelation: "werkbonnen";
203798
+ referencedColumns: ["id"];
203799
+ }];
203800
+ };
203282
203801
  };
203283
203802
  Functions: {
203284
203803
  _floriday_schedule_job: {
@@ -204826,6 +205345,14 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
204826
205345
  };
204827
205346
  Returns: import("../integrations/supabase/types").Json;
204828
205347
  };
205348
+ logistics_plan_block: {
205349
+ Args: {
205350
+ p_details?: import("../integrations/supabase/types").Json;
205351
+ p_order_ids: string[];
205352
+ p_reason: string;
205353
+ };
205354
+ Returns: number;
205355
+ };
204829
205356
  logistics_plan_buffer_sql: {
204830
205357
  Args: {
204831
205358
  p_buffer_id: string;
@@ -205207,6 +205734,25 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
205207
205734
  };
205208
205735
  Returns: string;
205209
205736
  };
205737
+ pakket_suggesties_voor_tekst: {
205738
+ Args: {
205739
+ _tekst: string;
205740
+ };
205741
+ Returns: {
205742
+ hit_type: string;
205743
+ package_id: string;
205744
+ priority: number;
205745
+ }[];
205746
+ };
205747
+ pakket_voor_reistijd: {
205748
+ Args: {
205749
+ _minuten: number;
205750
+ };
205751
+ Returns: {
205752
+ package_id: string;
205753
+ priority: number;
205754
+ }[];
205755
+ };
205210
205756
  pick_active_printers: {
205211
205757
  Args: never;
205212
205758
  Returns: {
@@ -206257,6 +206803,18 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
206257
206803
  Args: never;
206258
206804
  Returns: string;
206259
206805
  };
206806
+ werkbon_totalen: {
206807
+ Args: {
206808
+ _werkbon_id: string;
206809
+ };
206810
+ Returns: {
206811
+ materials_cents: number;
206812
+ packages_cents: number;
206813
+ packages_minutes: number;
206814
+ total_cents: number;
206815
+ total_minutes: number;
206816
+ }[];
206817
+ };
206260
206818
  wo_create_from_source: {
206261
206819
  Args: {
206262
206820
  _payload?: import("../integrations/supabase/types").Json;
@@ -206295,7 +206853,7 @@ export declare const getOrderPickDaysCO: import("@tanstack/start-client-core").O
206295
206853
  };
206296
206854
  CompositeTypes: { [_ in never]: never; };
206297
206855
  }, {
206298
- PostgrestVersion: "14.5";
206856
+ PostgrestVersion: "14.17";
206299
206857
  }>;
206300
206858
  userId: string;
206301
206859
  claims: import("@supabase/auth-js").User;
@@ -224923,6 +225481,7 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
224923
225481
  werkbon_package_items: {
224924
225482
  Row: {
224925
225483
  article_number: string | null;
225484
+ artikel_id: string | null;
224926
225485
  created_at: string;
224927
225486
  gtin: string | null;
224928
225487
  id: string;
@@ -224940,6 +225499,7 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
224940
225499
  };
224941
225500
  Insert: {
224942
225501
  article_number?: string | null;
225502
+ artikel_id?: string | null;
224943
225503
  created_at?: string;
224944
225504
  gtin?: string | null;
224945
225505
  id?: string;
@@ -224957,6 +225517,7 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
224957
225517
  };
224958
225518
  Update: {
224959
225519
  article_number?: string | null;
225520
+ artikel_id?: string | null;
224960
225521
  created_at?: string;
224961
225522
  gtin?: string | null;
224962
225523
  id?: string;
@@ -224973,6 +225534,12 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
224973
225534
  updated_at?: string;
224974
225535
  };
224975
225536
  Relationships: [{
225537
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
225538
+ columns: ["artikel_id"];
225539
+ isOneToOne: false;
225540
+ referencedRelation: "artikelen_cache";
225541
+ referencedColumns: ["id"];
225542
+ }, {
224976
225543
  foreignKeyName: "werkbon_package_items_package_id_fkey";
224977
225544
  columns: ["package_id"];
224978
225545
  isOneToOne: false;
@@ -226195,6 +226762,20 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
226195
226762
  referencedColumns: ["id"];
226196
226763
  }];
226197
226764
  };
226765
+ v_werkbon_totalen: {
226766
+ Row: {
226767
+ packages_cents: number | null;
226768
+ packages_minutes: number | null;
226769
+ werkbon_id: string | null;
226770
+ };
226771
+ Relationships: [{
226772
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
226773
+ columns: ["werkbon_id"];
226774
+ isOneToOne: false;
226775
+ referencedRelation: "werkbonnen";
226776
+ referencedColumns: ["id"];
226777
+ }];
226778
+ };
226198
226779
  };
226199
226780
  Functions: {
226200
226781
  _floriday_schedule_job: {
@@ -227742,6 +228323,14 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
227742
228323
  };
227743
228324
  Returns: import("../integrations/supabase/types").Json;
227744
228325
  };
228326
+ logistics_plan_block: {
228327
+ Args: {
228328
+ p_details?: import("../integrations/supabase/types").Json;
228329
+ p_order_ids: string[];
228330
+ p_reason: string;
228331
+ };
228332
+ Returns: number;
228333
+ };
227745
228334
  logistics_plan_buffer_sql: {
227746
228335
  Args: {
227747
228336
  p_buffer_id: string;
@@ -228123,6 +228712,25 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
228123
228712
  };
228124
228713
  Returns: string;
228125
228714
  };
228715
+ pakket_suggesties_voor_tekst: {
228716
+ Args: {
228717
+ _tekst: string;
228718
+ };
228719
+ Returns: {
228720
+ hit_type: string;
228721
+ package_id: string;
228722
+ priority: number;
228723
+ }[];
228724
+ };
228725
+ pakket_voor_reistijd: {
228726
+ Args: {
228727
+ _minuten: number;
228728
+ };
228729
+ Returns: {
228730
+ package_id: string;
228731
+ priority: number;
228732
+ }[];
228733
+ };
228126
228734
  pick_active_printers: {
228127
228735
  Args: never;
228128
228736
  Returns: {
@@ -229173,6 +229781,18 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
229173
229781
  Args: never;
229174
229782
  Returns: string;
229175
229783
  };
229784
+ werkbon_totalen: {
229785
+ Args: {
229786
+ _werkbon_id: string;
229787
+ };
229788
+ Returns: {
229789
+ materials_cents: number;
229790
+ packages_cents: number;
229791
+ packages_minutes: number;
229792
+ total_cents: number;
229793
+ total_minutes: number;
229794
+ }[];
229795
+ };
229176
229796
  wo_create_from_source: {
229177
229797
  Args: {
229178
229798
  _payload?: import("../integrations/supabase/types").Json;
@@ -229211,7 +229831,7 @@ export declare const createManualOrder: import("@tanstack/start-client-core").Op
229211
229831
  };
229212
229832
  CompositeTypes: { [_ in never]: never; };
229213
229833
  }, {
229214
- PostgrestVersion: "14.5";
229834
+ PostgrestVersion: "14.17";
229215
229835
  }>;
229216
229836
  userId: string;
229217
229837
  claims: import("@supabase/auth-js").User;
@@ -247861,6 +248481,7 @@ export declare const cancelLocalOrder: import("@tanstack/start-client-core").Opt
247861
248481
  werkbon_package_items: {
247862
248482
  Row: {
247863
248483
  article_number: string | null;
248484
+ artikel_id: string | null;
247864
248485
  created_at: string;
247865
248486
  gtin: string | null;
247866
248487
  id: string;
@@ -247878,6 +248499,7 @@ export declare const cancelLocalOrder: import("@tanstack/start-client-core").Opt
247878
248499
  };
247879
248500
  Insert: {
247880
248501
  article_number?: string | null;
248502
+ artikel_id?: string | null;
247881
248503
  created_at?: string;
247882
248504
  gtin?: string | null;
247883
248505
  id?: string;
@@ -247895,6 +248517,7 @@ export declare const cancelLocalOrder: import("@tanstack/start-client-core").Opt
247895
248517
  };
247896
248518
  Update: {
247897
248519
  article_number?: string | null;
248520
+ artikel_id?: string | null;
247898
248521
  created_at?: string;
247899
248522
  gtin?: string | null;
247900
248523
  id?: string;
@@ -247911,6 +248534,12 @@ export declare const cancelLocalOrder: import("@tanstack/start-client-core").Opt
247911
248534
  updated_at?: string;
247912
248535
  };
247913
248536
  Relationships: [{
248537
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
248538
+ columns: ["artikel_id"];
248539
+ isOneToOne: false;
248540
+ referencedRelation: "artikelen_cache";
248541
+ referencedColumns: ["id"];
248542
+ }, {
247914
248543
  foreignKeyName: "werkbon_package_items_package_id_fkey";
247915
248544
  columns: ["package_id"];
247916
248545
  isOneToOne: false;
@@ -249133,6 +249762,20 @@ export declare const cancelLocalOrder: import("@tanstack/start-client-core").Opt
249133
249762
  referencedColumns: ["id"];
249134
249763
  }];
249135
249764
  };
249765
+ v_werkbon_totalen: {
249766
+ Row: {
249767
+ packages_cents: number | null;
249768
+ packages_minutes: number | null;
249769
+ werkbon_id: string | null;
249770
+ };
249771
+ Relationships: [{
249772
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
249773
+ columns: ["werkbon_id"];
249774
+ isOneToOne: false;
249775
+ referencedRelation: "werkbonnen";
249776
+ referencedColumns: ["id"];
249777
+ }];
249778
+ };
249136
249779
  };
249137
249780
  Functions: {
249138
249781
  _floriday_schedule_job: {
@@ -250680,6 +251323,14 @@ export declare const cancelLocalOrder: import("@tanstack/start-client-core").Opt
250680
251323
  };
250681
251324
  Returns: import("../integrations/supabase/types").Json;
250682
251325
  };
251326
+ logistics_plan_block: {
251327
+ Args: {
251328
+ p_details?: import("../integrations/supabase/types").Json;
251329
+ p_order_ids: string[];
251330
+ p_reason: string;
251331
+ };
251332
+ Returns: number;
251333
+ };
250683
251334
  logistics_plan_buffer_sql: {
250684
251335
  Args: {
250685
251336
  p_buffer_id: string;
@@ -251061,6 +251712,25 @@ export declare const cancelLocalOrder: import("@tanstack/start-client-core").Opt
251061
251712
  };
251062
251713
  Returns: string;
251063
251714
  };
251715
+ pakket_suggesties_voor_tekst: {
251716
+ Args: {
251717
+ _tekst: string;
251718
+ };
251719
+ Returns: {
251720
+ hit_type: string;
251721
+ package_id: string;
251722
+ priority: number;
251723
+ }[];
251724
+ };
251725
+ pakket_voor_reistijd: {
251726
+ Args: {
251727
+ _minuten: number;
251728
+ };
251729
+ Returns: {
251730
+ package_id: string;
251731
+ priority: number;
251732
+ }[];
251733
+ };
251064
251734
  pick_active_printers: {
251065
251735
  Args: never;
251066
251736
  Returns: {
@@ -252111,6 +252781,18 @@ export declare const cancelLocalOrder: import("@tanstack/start-client-core").Opt
252111
252781
  Args: never;
252112
252782
  Returns: string;
252113
252783
  };
252784
+ werkbon_totalen: {
252785
+ Args: {
252786
+ _werkbon_id: string;
252787
+ };
252788
+ Returns: {
252789
+ materials_cents: number;
252790
+ packages_cents: number;
252791
+ packages_minutes: number;
252792
+ total_cents: number;
252793
+ total_minutes: number;
252794
+ }[];
252795
+ };
252114
252796
  wo_create_from_source: {
252115
252797
  Args: {
252116
252798
  _payload?: import("../integrations/supabase/types").Json;
@@ -252149,7 +252831,7 @@ export declare const cancelLocalOrder: import("@tanstack/start-client-core").Opt
252149
252831
  };
252150
252832
  CompositeTypes: { [_ in never]: never; };
252151
252833
  }, {
252152
- PostgrestVersion: "14.5";
252834
+ PostgrestVersion: "14.17";
252153
252835
  }>;
252154
252836
  userId: string;
252155
252837
  claims: import("@supabase/auth-js").User;
@@ -270782,6 +271464,7 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
270782
271464
  werkbon_package_items: {
270783
271465
  Row: {
270784
271466
  article_number: string | null;
271467
+ artikel_id: string | null;
270785
271468
  created_at: string;
270786
271469
  gtin: string | null;
270787
271470
  id: string;
@@ -270799,6 +271482,7 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
270799
271482
  };
270800
271483
  Insert: {
270801
271484
  article_number?: string | null;
271485
+ artikel_id?: string | null;
270802
271486
  created_at?: string;
270803
271487
  gtin?: string | null;
270804
271488
  id?: string;
@@ -270816,6 +271500,7 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
270816
271500
  };
270817
271501
  Update: {
270818
271502
  article_number?: string | null;
271503
+ artikel_id?: string | null;
270819
271504
  created_at?: string;
270820
271505
  gtin?: string | null;
270821
271506
  id?: string;
@@ -270832,6 +271517,12 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
270832
271517
  updated_at?: string;
270833
271518
  };
270834
271519
  Relationships: [{
271520
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
271521
+ columns: ["artikel_id"];
271522
+ isOneToOne: false;
271523
+ referencedRelation: "artikelen_cache";
271524
+ referencedColumns: ["id"];
271525
+ }, {
270835
271526
  foreignKeyName: "werkbon_package_items_package_id_fkey";
270836
271527
  columns: ["package_id"];
270837
271528
  isOneToOne: false;
@@ -272054,6 +272745,20 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
272054
272745
  referencedColumns: ["id"];
272055
272746
  }];
272056
272747
  };
272748
+ v_werkbon_totalen: {
272749
+ Row: {
272750
+ packages_cents: number | null;
272751
+ packages_minutes: number | null;
272752
+ werkbon_id: string | null;
272753
+ };
272754
+ Relationships: [{
272755
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
272756
+ columns: ["werkbon_id"];
272757
+ isOneToOne: false;
272758
+ referencedRelation: "werkbonnen";
272759
+ referencedColumns: ["id"];
272760
+ }];
272761
+ };
272057
272762
  };
272058
272763
  Functions: {
272059
272764
  _floriday_schedule_job: {
@@ -273601,6 +274306,14 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
273601
274306
  };
273602
274307
  Returns: import("../integrations/supabase/types").Json;
273603
274308
  };
274309
+ logistics_plan_block: {
274310
+ Args: {
274311
+ p_details?: import("../integrations/supabase/types").Json;
274312
+ p_order_ids: string[];
274313
+ p_reason: string;
274314
+ };
274315
+ Returns: number;
274316
+ };
273604
274317
  logistics_plan_buffer_sql: {
273605
274318
  Args: {
273606
274319
  p_buffer_id: string;
@@ -273982,6 +274695,25 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
273982
274695
  };
273983
274696
  Returns: string;
273984
274697
  };
274698
+ pakket_suggesties_voor_tekst: {
274699
+ Args: {
274700
+ _tekst: string;
274701
+ };
274702
+ Returns: {
274703
+ hit_type: string;
274704
+ package_id: string;
274705
+ priority: number;
274706
+ }[];
274707
+ };
274708
+ pakket_voor_reistijd: {
274709
+ Args: {
274710
+ _minuten: number;
274711
+ };
274712
+ Returns: {
274713
+ package_id: string;
274714
+ priority: number;
274715
+ }[];
274716
+ };
273985
274717
  pick_active_printers: {
273986
274718
  Args: never;
273987
274719
  Returns: {
@@ -275032,6 +275764,18 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
275032
275764
  Args: never;
275033
275765
  Returns: string;
275034
275766
  };
275767
+ werkbon_totalen: {
275768
+ Args: {
275769
+ _werkbon_id: string;
275770
+ };
275771
+ Returns: {
275772
+ materials_cents: number;
275773
+ packages_cents: number;
275774
+ packages_minutes: number;
275775
+ total_cents: number;
275776
+ total_minutes: number;
275777
+ }[];
275778
+ };
275035
275779
  wo_create_from_source: {
275036
275780
  Args: {
275037
275781
  _payload?: import("../integrations/supabase/types").Json;
@@ -275070,7 +275814,7 @@ export declare const deleteLocalOrder: import("@tanstack/start-client-core").Opt
275070
275814
  };
275071
275815
  CompositeTypes: { [_ in never]: never; };
275072
275816
  }, {
275073
- PostgrestVersion: "14.5";
275817
+ PostgrestVersion: "14.17";
275074
275818
  }>;
275075
275819
  userId: string;
275076
275820
  claims: import("@supabase/auth-js").User;
@@ -293706,6 +294450,7 @@ export declare const deleteMailboxProposal: import("@tanstack/start-client-core"
293706
294450
  werkbon_package_items: {
293707
294451
  Row: {
293708
294452
  article_number: string | null;
294453
+ artikel_id: string | null;
293709
294454
  created_at: string;
293710
294455
  gtin: string | null;
293711
294456
  id: string;
@@ -293723,6 +294468,7 @@ export declare const deleteMailboxProposal: import("@tanstack/start-client-core"
293723
294468
  };
293724
294469
  Insert: {
293725
294470
  article_number?: string | null;
294471
+ artikel_id?: string | null;
293726
294472
  created_at?: string;
293727
294473
  gtin?: string | null;
293728
294474
  id?: string;
@@ -293740,6 +294486,7 @@ export declare const deleteMailboxProposal: import("@tanstack/start-client-core"
293740
294486
  };
293741
294487
  Update: {
293742
294488
  article_number?: string | null;
294489
+ artikel_id?: string | null;
293743
294490
  created_at?: string;
293744
294491
  gtin?: string | null;
293745
294492
  id?: string;
@@ -293756,6 +294503,12 @@ export declare const deleteMailboxProposal: import("@tanstack/start-client-core"
293756
294503
  updated_at?: string;
293757
294504
  };
293758
294505
  Relationships: [{
294506
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
294507
+ columns: ["artikel_id"];
294508
+ isOneToOne: false;
294509
+ referencedRelation: "artikelen_cache";
294510
+ referencedColumns: ["id"];
294511
+ }, {
293759
294512
  foreignKeyName: "werkbon_package_items_package_id_fkey";
293760
294513
  columns: ["package_id"];
293761
294514
  isOneToOne: false;
@@ -294978,6 +295731,20 @@ export declare const deleteMailboxProposal: import("@tanstack/start-client-core"
294978
295731
  referencedColumns: ["id"];
294979
295732
  }];
294980
295733
  };
295734
+ v_werkbon_totalen: {
295735
+ Row: {
295736
+ packages_cents: number | null;
295737
+ packages_minutes: number | null;
295738
+ werkbon_id: string | null;
295739
+ };
295740
+ Relationships: [{
295741
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
295742
+ columns: ["werkbon_id"];
295743
+ isOneToOne: false;
295744
+ referencedRelation: "werkbonnen";
295745
+ referencedColumns: ["id"];
295746
+ }];
295747
+ };
294981
295748
  };
294982
295749
  Functions: {
294983
295750
  _floriday_schedule_job: {
@@ -296525,6 +297292,14 @@ export declare const deleteMailboxProposal: import("@tanstack/start-client-core"
296525
297292
  };
296526
297293
  Returns: import("../integrations/supabase/types").Json;
296527
297294
  };
297295
+ logistics_plan_block: {
297296
+ Args: {
297297
+ p_details?: import("../integrations/supabase/types").Json;
297298
+ p_order_ids: string[];
297299
+ p_reason: string;
297300
+ };
297301
+ Returns: number;
297302
+ };
296528
297303
  logistics_plan_buffer_sql: {
296529
297304
  Args: {
296530
297305
  p_buffer_id: string;
@@ -296906,6 +297681,25 @@ export declare const deleteMailboxProposal: import("@tanstack/start-client-core"
296906
297681
  };
296907
297682
  Returns: string;
296908
297683
  };
297684
+ pakket_suggesties_voor_tekst: {
297685
+ Args: {
297686
+ _tekst: string;
297687
+ };
297688
+ Returns: {
297689
+ hit_type: string;
297690
+ package_id: string;
297691
+ priority: number;
297692
+ }[];
297693
+ };
297694
+ pakket_voor_reistijd: {
297695
+ Args: {
297696
+ _minuten: number;
297697
+ };
297698
+ Returns: {
297699
+ package_id: string;
297700
+ priority: number;
297701
+ }[];
297702
+ };
296909
297703
  pick_active_printers: {
296910
297704
  Args: never;
296911
297705
  Returns: {
@@ -297956,6 +298750,18 @@ export declare const deleteMailboxProposal: import("@tanstack/start-client-core"
297956
298750
  Args: never;
297957
298751
  Returns: string;
297958
298752
  };
298753
+ werkbon_totalen: {
298754
+ Args: {
298755
+ _werkbon_id: string;
298756
+ };
298757
+ Returns: {
298758
+ materials_cents: number;
298759
+ packages_cents: number;
298760
+ packages_minutes: number;
298761
+ total_cents: number;
298762
+ total_minutes: number;
298763
+ }[];
298764
+ };
297959
298765
  wo_create_from_source: {
297960
298766
  Args: {
297961
298767
  _payload?: import("../integrations/supabase/types").Json;
@@ -297994,7 +298800,7 @@ export declare const deleteMailboxProposal: import("@tanstack/start-client-core"
297994
298800
  };
297995
298801
  CompositeTypes: { [_ in never]: never; };
297996
298802
  }, {
297997
- PostgrestVersion: "14.5";
298803
+ PostgrestVersion: "14.17";
297998
298804
  }>;
297999
298805
  userId: string;
298000
298806
  claims: import("@supabase/auth-js").User;
@@ -316624,6 +317430,7 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
316624
317430
  werkbon_package_items: {
316625
317431
  Row: {
316626
317432
  article_number: string | null;
317433
+ artikel_id: string | null;
316627
317434
  created_at: string;
316628
317435
  gtin: string | null;
316629
317436
  id: string;
@@ -316641,6 +317448,7 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
316641
317448
  };
316642
317449
  Insert: {
316643
317450
  article_number?: string | null;
317451
+ artikel_id?: string | null;
316644
317452
  created_at?: string;
316645
317453
  gtin?: string | null;
316646
317454
  id?: string;
@@ -316658,6 +317466,7 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
316658
317466
  };
316659
317467
  Update: {
316660
317468
  article_number?: string | null;
317469
+ artikel_id?: string | null;
316661
317470
  created_at?: string;
316662
317471
  gtin?: string | null;
316663
317472
  id?: string;
@@ -316674,6 +317483,12 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
316674
317483
  updated_at?: string;
316675
317484
  };
316676
317485
  Relationships: [{
317486
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
317487
+ columns: ["artikel_id"];
317488
+ isOneToOne: false;
317489
+ referencedRelation: "artikelen_cache";
317490
+ referencedColumns: ["id"];
317491
+ }, {
316677
317492
  foreignKeyName: "werkbon_package_items_package_id_fkey";
316678
317493
  columns: ["package_id"];
316679
317494
  isOneToOne: false;
@@ -317896,6 +318711,20 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
317896
318711
  referencedColumns: ["id"];
317897
318712
  }];
317898
318713
  };
318714
+ v_werkbon_totalen: {
318715
+ Row: {
318716
+ packages_cents: number | null;
318717
+ packages_minutes: number | null;
318718
+ werkbon_id: string | null;
318719
+ };
318720
+ Relationships: [{
318721
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
318722
+ columns: ["werkbon_id"];
318723
+ isOneToOne: false;
318724
+ referencedRelation: "werkbonnen";
318725
+ referencedColumns: ["id"];
318726
+ }];
318727
+ };
317899
318728
  };
317900
318729
  Functions: {
317901
318730
  _floriday_schedule_job: {
@@ -319443,6 +320272,14 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
319443
320272
  };
319444
320273
  Returns: import("../integrations/supabase/types").Json;
319445
320274
  };
320275
+ logistics_plan_block: {
320276
+ Args: {
320277
+ p_details?: import("../integrations/supabase/types").Json;
320278
+ p_order_ids: string[];
320279
+ p_reason: string;
320280
+ };
320281
+ Returns: number;
320282
+ };
319446
320283
  logistics_plan_buffer_sql: {
319447
320284
  Args: {
319448
320285
  p_buffer_id: string;
@@ -319824,6 +320661,25 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
319824
320661
  };
319825
320662
  Returns: string;
319826
320663
  };
320664
+ pakket_suggesties_voor_tekst: {
320665
+ Args: {
320666
+ _tekst: string;
320667
+ };
320668
+ Returns: {
320669
+ hit_type: string;
320670
+ package_id: string;
320671
+ priority: number;
320672
+ }[];
320673
+ };
320674
+ pakket_voor_reistijd: {
320675
+ Args: {
320676
+ _minuten: number;
320677
+ };
320678
+ Returns: {
320679
+ package_id: string;
320680
+ priority: number;
320681
+ }[];
320682
+ };
319827
320683
  pick_active_printers: {
319828
320684
  Args: never;
319829
320685
  Returns: {
@@ -320874,6 +321730,18 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
320874
321730
  Args: never;
320875
321731
  Returns: string;
320876
321732
  };
321733
+ werkbon_totalen: {
321734
+ Args: {
321735
+ _werkbon_id: string;
321736
+ };
321737
+ Returns: {
321738
+ materials_cents: number;
321739
+ packages_cents: number;
321740
+ packages_minutes: number;
321741
+ total_cents: number;
321742
+ total_minutes: number;
321743
+ }[];
321744
+ };
320877
321745
  wo_create_from_source: {
320878
321746
  Args: {
320879
321747
  _payload?: import("../integrations/supabase/types").Json;
@@ -320912,7 +321780,7 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
320912
321780
  };
320913
321781
  CompositeTypes: { [_ in never]: never; };
320914
321782
  }, {
320915
- PostgrestVersion: "14.5";
321783
+ PostgrestVersion: "14.17";
320916
321784
  }>;
320917
321785
  userId: string;
320918
321786
  claims: import("@supabase/auth-js").User;
@@ -320942,6 +321810,11 @@ export declare const planAndSaveAutoCarts: import("@tanstack/start-client-core")
320942
321810
  items: any;
320943
321811
  }[];
320944
321812
  nextCartNumber: number;
321813
+ blockedLines: {
321814
+ order_item_id: string;
321815
+ product_name: string;
321816
+ missing: string[];
321817
+ }[];
320945
321818
  }>>;
320946
321819
  export declare const saveManualCarts: import("@tanstack/start-client-core").OptionalFetcher<readonly [import("@tanstack/start-client-core").FunctionMiddlewareAfterServer<{}, unknown, undefined, {
320947
321820
  supabase: import("@supabase/supabase-js").SupabaseClient<import("../integrations/supabase/types").Database, "public", "public", {
@@ -339564,6 +340437,7 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
339564
340437
  werkbon_package_items: {
339565
340438
  Row: {
339566
340439
  article_number: string | null;
340440
+ artikel_id: string | null;
339567
340441
  created_at: string;
339568
340442
  gtin: string | null;
339569
340443
  id: string;
@@ -339581,6 +340455,7 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
339581
340455
  };
339582
340456
  Insert: {
339583
340457
  article_number?: string | null;
340458
+ artikel_id?: string | null;
339584
340459
  created_at?: string;
339585
340460
  gtin?: string | null;
339586
340461
  id?: string;
@@ -339598,6 +340473,7 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
339598
340473
  };
339599
340474
  Update: {
339600
340475
  article_number?: string | null;
340476
+ artikel_id?: string | null;
339601
340477
  created_at?: string;
339602
340478
  gtin?: string | null;
339603
340479
  id?: string;
@@ -339614,6 +340490,12 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
339614
340490
  updated_at?: string;
339615
340491
  };
339616
340492
  Relationships: [{
340493
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
340494
+ columns: ["artikel_id"];
340495
+ isOneToOne: false;
340496
+ referencedRelation: "artikelen_cache";
340497
+ referencedColumns: ["id"];
340498
+ }, {
339617
340499
  foreignKeyName: "werkbon_package_items_package_id_fkey";
339618
340500
  columns: ["package_id"];
339619
340501
  isOneToOne: false;
@@ -340836,6 +341718,20 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
340836
341718
  referencedColumns: ["id"];
340837
341719
  }];
340838
341720
  };
341721
+ v_werkbon_totalen: {
341722
+ Row: {
341723
+ packages_cents: number | null;
341724
+ packages_minutes: number | null;
341725
+ werkbon_id: string | null;
341726
+ };
341727
+ Relationships: [{
341728
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
341729
+ columns: ["werkbon_id"];
341730
+ isOneToOne: false;
341731
+ referencedRelation: "werkbonnen";
341732
+ referencedColumns: ["id"];
341733
+ }];
341734
+ };
340839
341735
  };
340840
341736
  Functions: {
340841
341737
  _floriday_schedule_job: {
@@ -342383,6 +343279,14 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
342383
343279
  };
342384
343280
  Returns: import("../integrations/supabase/types").Json;
342385
343281
  };
343282
+ logistics_plan_block: {
343283
+ Args: {
343284
+ p_details?: import("../integrations/supabase/types").Json;
343285
+ p_order_ids: string[];
343286
+ p_reason: string;
343287
+ };
343288
+ Returns: number;
343289
+ };
342386
343290
  logistics_plan_buffer_sql: {
342387
343291
  Args: {
342388
343292
  p_buffer_id: string;
@@ -342764,6 +343668,25 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
342764
343668
  };
342765
343669
  Returns: string;
342766
343670
  };
343671
+ pakket_suggesties_voor_tekst: {
343672
+ Args: {
343673
+ _tekst: string;
343674
+ };
343675
+ Returns: {
343676
+ hit_type: string;
343677
+ package_id: string;
343678
+ priority: number;
343679
+ }[];
343680
+ };
343681
+ pakket_voor_reistijd: {
343682
+ Args: {
343683
+ _minuten: number;
343684
+ };
343685
+ Returns: {
343686
+ package_id: string;
343687
+ priority: number;
343688
+ }[];
343689
+ };
342767
343690
  pick_active_printers: {
342768
343691
  Args: never;
342769
343692
  Returns: {
@@ -343814,6 +344737,18 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
343814
344737
  Args: never;
343815
344738
  Returns: string;
343816
344739
  };
344740
+ werkbon_totalen: {
344741
+ Args: {
344742
+ _werkbon_id: string;
344743
+ };
344744
+ Returns: {
344745
+ materials_cents: number;
344746
+ packages_cents: number;
344747
+ packages_minutes: number;
344748
+ total_cents: number;
344749
+ total_minutes: number;
344750
+ }[];
344751
+ };
343817
344752
  wo_create_from_source: {
343818
344753
  Args: {
343819
344754
  _payload?: import("../integrations/supabase/types").Json;
@@ -343852,7 +344787,7 @@ export declare const saveManualCarts: import("@tanstack/start-client-core").Opti
343852
344787
  };
343853
344788
  CompositeTypes: { [_ in never]: never; };
343854
344789
  }, {
343855
- PostgrestVersion: "14.5";
344790
+ PostgrestVersion: "14.17";
343856
344791
  }>;
343857
344792
  userId: string;
343858
344793
  claims: import("@supabase/auth-js").User;
@@ -362494,6 +363429,7 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
362494
363429
  werkbon_package_items: {
362495
363430
  Row: {
362496
363431
  article_number: string | null;
363432
+ artikel_id: string | null;
362497
363433
  created_at: string;
362498
363434
  gtin: string | null;
362499
363435
  id: string;
@@ -362511,6 +363447,7 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
362511
363447
  };
362512
363448
  Insert: {
362513
363449
  article_number?: string | null;
363450
+ artikel_id?: string | null;
362514
363451
  created_at?: string;
362515
363452
  gtin?: string | null;
362516
363453
  id?: string;
@@ -362528,6 +363465,7 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
362528
363465
  };
362529
363466
  Update: {
362530
363467
  article_number?: string | null;
363468
+ artikel_id?: string | null;
362531
363469
  created_at?: string;
362532
363470
  gtin?: string | null;
362533
363471
  id?: string;
@@ -362544,6 +363482,12 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
362544
363482
  updated_at?: string;
362545
363483
  };
362546
363484
  Relationships: [{
363485
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
363486
+ columns: ["artikel_id"];
363487
+ isOneToOne: false;
363488
+ referencedRelation: "artikelen_cache";
363489
+ referencedColumns: ["id"];
363490
+ }, {
362547
363491
  foreignKeyName: "werkbon_package_items_package_id_fkey";
362548
363492
  columns: ["package_id"];
362549
363493
  isOneToOne: false;
@@ -363766,6 +364710,20 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
363766
364710
  referencedColumns: ["id"];
363767
364711
  }];
363768
364712
  };
364713
+ v_werkbon_totalen: {
364714
+ Row: {
364715
+ packages_cents: number | null;
364716
+ packages_minutes: number | null;
364717
+ werkbon_id: string | null;
364718
+ };
364719
+ Relationships: [{
364720
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
364721
+ columns: ["werkbon_id"];
364722
+ isOneToOne: false;
364723
+ referencedRelation: "werkbonnen";
364724
+ referencedColumns: ["id"];
364725
+ }];
364726
+ };
363769
364727
  };
363770
364728
  Functions: {
363771
364729
  _floriday_schedule_job: {
@@ -365313,6 +366271,14 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
365313
366271
  };
365314
366272
  Returns: import("../integrations/supabase/types").Json;
365315
366273
  };
366274
+ logistics_plan_block: {
366275
+ Args: {
366276
+ p_details?: import("../integrations/supabase/types").Json;
366277
+ p_order_ids: string[];
366278
+ p_reason: string;
366279
+ };
366280
+ Returns: number;
366281
+ };
365316
366282
  logistics_plan_buffer_sql: {
365317
366283
  Args: {
365318
366284
  p_buffer_id: string;
@@ -365694,6 +366660,25 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
365694
366660
  };
365695
366661
  Returns: string;
365696
366662
  };
366663
+ pakket_suggesties_voor_tekst: {
366664
+ Args: {
366665
+ _tekst: string;
366666
+ };
366667
+ Returns: {
366668
+ hit_type: string;
366669
+ package_id: string;
366670
+ priority: number;
366671
+ }[];
366672
+ };
366673
+ pakket_voor_reistijd: {
366674
+ Args: {
366675
+ _minuten: number;
366676
+ };
366677
+ Returns: {
366678
+ package_id: string;
366679
+ priority: number;
366680
+ }[];
366681
+ };
365697
366682
  pick_active_printers: {
365698
366683
  Args: never;
365699
366684
  Returns: {
@@ -366744,6 +367729,18 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
366744
367729
  Args: never;
366745
367730
  Returns: string;
366746
367731
  };
367732
+ werkbon_totalen: {
367733
+ Args: {
367734
+ _werkbon_id: string;
367735
+ };
367736
+ Returns: {
367737
+ materials_cents: number;
367738
+ packages_cents: number;
367739
+ packages_minutes: number;
367740
+ total_cents: number;
367741
+ total_minutes: number;
367742
+ }[];
367743
+ };
366747
367744
  wo_create_from_source: {
366748
367745
  Args: {
366749
367746
  _payload?: import("../integrations/supabase/types").Json;
@@ -366782,7 +367779,7 @@ export declare const getLocalOrderForEdit: import("@tanstack/start-client-core")
366782
367779
  };
366783
367780
  CompositeTypes: { [_ in never]: never; };
366784
367781
  }, {
366785
- PostgrestVersion: "14.5";
367782
+ PostgrestVersion: "14.17";
366786
367783
  }>;
366787
367784
  userId: string;
366788
367785
  claims: import("@supabase/auth-js").User;
@@ -385429,6 +386426,7 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
385429
386426
  werkbon_package_items: {
385430
386427
  Row: {
385431
386428
  article_number: string | null;
386429
+ artikel_id: string | null;
385432
386430
  created_at: string;
385433
386431
  gtin: string | null;
385434
386432
  id: string;
@@ -385446,6 +386444,7 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
385446
386444
  };
385447
386445
  Insert: {
385448
386446
  article_number?: string | null;
386447
+ artikel_id?: string | null;
385449
386448
  created_at?: string;
385450
386449
  gtin?: string | null;
385451
386450
  id?: string;
@@ -385463,6 +386462,7 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
385463
386462
  };
385464
386463
  Update: {
385465
386464
  article_number?: string | null;
386465
+ artikel_id?: string | null;
385466
386466
  created_at?: string;
385467
386467
  gtin?: string | null;
385468
386468
  id?: string;
@@ -385479,6 +386479,12 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
385479
386479
  updated_at?: string;
385480
386480
  };
385481
386481
  Relationships: [{
386482
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
386483
+ columns: ["artikel_id"];
386484
+ isOneToOne: false;
386485
+ referencedRelation: "artikelen_cache";
386486
+ referencedColumns: ["id"];
386487
+ }, {
385482
386488
  foreignKeyName: "werkbon_package_items_package_id_fkey";
385483
386489
  columns: ["package_id"];
385484
386490
  isOneToOne: false;
@@ -386701,6 +387707,20 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
386701
387707
  referencedColumns: ["id"];
386702
387708
  }];
386703
387709
  };
387710
+ v_werkbon_totalen: {
387711
+ Row: {
387712
+ packages_cents: number | null;
387713
+ packages_minutes: number | null;
387714
+ werkbon_id: string | null;
387715
+ };
387716
+ Relationships: [{
387717
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
387718
+ columns: ["werkbon_id"];
387719
+ isOneToOne: false;
387720
+ referencedRelation: "werkbonnen";
387721
+ referencedColumns: ["id"];
387722
+ }];
387723
+ };
386704
387724
  };
386705
387725
  Functions: {
386706
387726
  _floriday_schedule_job: {
@@ -388248,6 +389268,14 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
388248
389268
  };
388249
389269
  Returns: import("../integrations/supabase/types").Json;
388250
389270
  };
389271
+ logistics_plan_block: {
389272
+ Args: {
389273
+ p_details?: import("../integrations/supabase/types").Json;
389274
+ p_order_ids: string[];
389275
+ p_reason: string;
389276
+ };
389277
+ Returns: number;
389278
+ };
388251
389279
  logistics_plan_buffer_sql: {
388252
389280
  Args: {
388253
389281
  p_buffer_id: string;
@@ -388629,6 +389657,25 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
388629
389657
  };
388630
389658
  Returns: string;
388631
389659
  };
389660
+ pakket_suggesties_voor_tekst: {
389661
+ Args: {
389662
+ _tekst: string;
389663
+ };
389664
+ Returns: {
389665
+ hit_type: string;
389666
+ package_id: string;
389667
+ priority: number;
389668
+ }[];
389669
+ };
389670
+ pakket_voor_reistijd: {
389671
+ Args: {
389672
+ _minuten: number;
389673
+ };
389674
+ Returns: {
389675
+ package_id: string;
389676
+ priority: number;
389677
+ }[];
389678
+ };
388632
389679
  pick_active_printers: {
388633
389680
  Args: never;
388634
389681
  Returns: {
@@ -389679,6 +390726,18 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
389679
390726
  Args: never;
389680
390727
  Returns: string;
389681
390728
  };
390729
+ werkbon_totalen: {
390730
+ Args: {
390731
+ _werkbon_id: string;
390732
+ };
390733
+ Returns: {
390734
+ materials_cents: number;
390735
+ packages_cents: number;
390736
+ packages_minutes: number;
390737
+ total_cents: number;
390738
+ total_minutes: number;
390739
+ }[];
390740
+ };
389682
390741
  wo_create_from_source: {
389683
390742
  Args: {
389684
390743
  _payload?: import("../integrations/supabase/types").Json;
@@ -389717,7 +390776,7 @@ export declare const updateLocalOrder: import("@tanstack/start-client-core").Opt
389717
390776
  };
389718
390777
  CompositeTypes: { [_ in never]: never; };
389719
390778
  }, {
389720
- PostgrestVersion: "14.5";
390779
+ PostgrestVersion: "14.17";
389721
390780
  }>;
389722
390781
  userId: string;
389723
390782
  claims: import("@supabase/auth-js").User;