@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
@@ -18625,6 +18625,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
18625
18625
  werkbon_package_items: {
18626
18626
  Row: {
18627
18627
  article_number: string | null;
18628
+ artikel_id: string | null;
18628
18629
  created_at: string;
18629
18630
  gtin: string | null;
18630
18631
  id: string;
@@ -18642,6 +18643,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
18642
18643
  };
18643
18644
  Insert: {
18644
18645
  article_number?: string | null;
18646
+ artikel_id?: string | null;
18645
18647
  created_at?: string;
18646
18648
  gtin?: string | null;
18647
18649
  id?: string;
@@ -18659,6 +18661,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
18659
18661
  };
18660
18662
  Update: {
18661
18663
  article_number?: string | null;
18664
+ artikel_id?: string | null;
18662
18665
  created_at?: string;
18663
18666
  gtin?: string | null;
18664
18667
  id?: string;
@@ -18675,6 +18678,12 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
18675
18678
  updated_at?: string;
18676
18679
  };
18677
18680
  Relationships: [{
18681
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
18682
+ columns: ["artikel_id"];
18683
+ isOneToOne: false;
18684
+ referencedRelation: "artikelen_cache";
18685
+ referencedColumns: ["id"];
18686
+ }, {
18678
18687
  foreignKeyName: "werkbon_package_items_package_id_fkey";
18679
18688
  columns: ["package_id"];
18680
18689
  isOneToOne: false;
@@ -19897,6 +19906,20 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
19897
19906
  referencedColumns: ["id"];
19898
19907
  }];
19899
19908
  };
19909
+ v_werkbon_totalen: {
19910
+ Row: {
19911
+ packages_cents: number | null;
19912
+ packages_minutes: number | null;
19913
+ werkbon_id: string | null;
19914
+ };
19915
+ Relationships: [{
19916
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
19917
+ columns: ["werkbon_id"];
19918
+ isOneToOne: false;
19919
+ referencedRelation: "werkbonnen";
19920
+ referencedColumns: ["id"];
19921
+ }];
19922
+ };
19900
19923
  };
19901
19924
  Functions: {
19902
19925
  _floriday_schedule_job: {
@@ -21444,6 +21467,14 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
21444
21467
  };
21445
21468
  Returns: import("../integrations/supabase/types").Json;
21446
21469
  };
21470
+ logistics_plan_block: {
21471
+ Args: {
21472
+ p_details?: import("../integrations/supabase/types").Json;
21473
+ p_order_ids: string[];
21474
+ p_reason: string;
21475
+ };
21476
+ Returns: number;
21477
+ };
21447
21478
  logistics_plan_buffer_sql: {
21448
21479
  Args: {
21449
21480
  p_buffer_id: string;
@@ -21825,6 +21856,25 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
21825
21856
  };
21826
21857
  Returns: string;
21827
21858
  };
21859
+ pakket_suggesties_voor_tekst: {
21860
+ Args: {
21861
+ _tekst: string;
21862
+ };
21863
+ Returns: {
21864
+ hit_type: string;
21865
+ package_id: string;
21866
+ priority: number;
21867
+ }[];
21868
+ };
21869
+ pakket_voor_reistijd: {
21870
+ Args: {
21871
+ _minuten: number;
21872
+ };
21873
+ Returns: {
21874
+ package_id: string;
21875
+ priority: number;
21876
+ }[];
21877
+ };
21828
21878
  pick_active_printers: {
21829
21879
  Args: never;
21830
21880
  Returns: {
@@ -22875,6 +22925,18 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
22875
22925
  Args: never;
22876
22926
  Returns: string;
22877
22927
  };
22928
+ werkbon_totalen: {
22929
+ Args: {
22930
+ _werkbon_id: string;
22931
+ };
22932
+ Returns: {
22933
+ materials_cents: number;
22934
+ packages_cents: number;
22935
+ packages_minutes: number;
22936
+ total_cents: number;
22937
+ total_minutes: number;
22938
+ }[];
22939
+ };
22878
22940
  wo_create_from_source: {
22879
22941
  Args: {
22880
22942
  _payload?: import("../integrations/supabase/types").Json;
@@ -22913,7 +22975,7 @@ export declare const runSalesOrdersSync: import("@tanstack/start-client-core").O
22913
22975
  };
22914
22976
  CompositeTypes: { [_ in never]: never; };
22915
22977
  }, {
22916
- PostgrestVersion: "14.5";
22978
+ PostgrestVersion: "14.17";
22917
22979
  }>;
22918
22980
  userId: string;
22919
22981
  claims: import("@supabase/auth-js").User;
@@ -41542,6 +41604,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
41542
41604
  werkbon_package_items: {
41543
41605
  Row: {
41544
41606
  article_number: string | null;
41607
+ artikel_id: string | null;
41545
41608
  created_at: string;
41546
41609
  gtin: string | null;
41547
41610
  id: string;
@@ -41559,6 +41622,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
41559
41622
  };
41560
41623
  Insert: {
41561
41624
  article_number?: string | null;
41625
+ artikel_id?: string | null;
41562
41626
  created_at?: string;
41563
41627
  gtin?: string | null;
41564
41628
  id?: string;
@@ -41576,6 +41640,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
41576
41640
  };
41577
41641
  Update: {
41578
41642
  article_number?: string | null;
41643
+ artikel_id?: string | null;
41579
41644
  created_at?: string;
41580
41645
  gtin?: string | null;
41581
41646
  id?: string;
@@ -41592,6 +41657,12 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
41592
41657
  updated_at?: string;
41593
41658
  };
41594
41659
  Relationships: [{
41660
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
41661
+ columns: ["artikel_id"];
41662
+ isOneToOne: false;
41663
+ referencedRelation: "artikelen_cache";
41664
+ referencedColumns: ["id"];
41665
+ }, {
41595
41666
  foreignKeyName: "werkbon_package_items_package_id_fkey";
41596
41667
  columns: ["package_id"];
41597
41668
  isOneToOne: false;
@@ -42814,6 +42885,20 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
42814
42885
  referencedColumns: ["id"];
42815
42886
  }];
42816
42887
  };
42888
+ v_werkbon_totalen: {
42889
+ Row: {
42890
+ packages_cents: number | null;
42891
+ packages_minutes: number | null;
42892
+ werkbon_id: string | null;
42893
+ };
42894
+ Relationships: [{
42895
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
42896
+ columns: ["werkbon_id"];
42897
+ isOneToOne: false;
42898
+ referencedRelation: "werkbonnen";
42899
+ referencedColumns: ["id"];
42900
+ }];
42901
+ };
42817
42902
  };
42818
42903
  Functions: {
42819
42904
  _floriday_schedule_job: {
@@ -44361,6 +44446,14 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
44361
44446
  };
44362
44447
  Returns: import("../integrations/supabase/types").Json;
44363
44448
  };
44449
+ logistics_plan_block: {
44450
+ Args: {
44451
+ p_details?: import("../integrations/supabase/types").Json;
44452
+ p_order_ids: string[];
44453
+ p_reason: string;
44454
+ };
44455
+ Returns: number;
44456
+ };
44364
44457
  logistics_plan_buffer_sql: {
44365
44458
  Args: {
44366
44459
  p_buffer_id: string;
@@ -44742,6 +44835,25 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
44742
44835
  };
44743
44836
  Returns: string;
44744
44837
  };
44838
+ pakket_suggesties_voor_tekst: {
44839
+ Args: {
44840
+ _tekst: string;
44841
+ };
44842
+ Returns: {
44843
+ hit_type: string;
44844
+ package_id: string;
44845
+ priority: number;
44846
+ }[];
44847
+ };
44848
+ pakket_voor_reistijd: {
44849
+ Args: {
44850
+ _minuten: number;
44851
+ };
44852
+ Returns: {
44853
+ package_id: string;
44854
+ priority: number;
44855
+ }[];
44856
+ };
44745
44857
  pick_active_printers: {
44746
44858
  Args: never;
44747
44859
  Returns: {
@@ -45792,6 +45904,18 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
45792
45904
  Args: never;
45793
45905
  Returns: string;
45794
45906
  };
45907
+ werkbon_totalen: {
45908
+ Args: {
45909
+ _werkbon_id: string;
45910
+ };
45911
+ Returns: {
45912
+ materials_cents: number;
45913
+ packages_cents: number;
45914
+ packages_minutes: number;
45915
+ total_cents: number;
45916
+ total_minutes: number;
45917
+ }[];
45918
+ };
45795
45919
  wo_create_from_source: {
45796
45920
  Args: {
45797
45921
  _payload?: import("../integrations/supabase/types").Json;
@@ -45830,7 +45954,7 @@ export declare const createSalesOrder: import("@tanstack/start-client-core").Opt
45830
45954
  };
45831
45955
  CompositeTypes: { [_ in never]: never; };
45832
45956
  }, {
45833
- PostgrestVersion: "14.5";
45957
+ PostgrestVersion: "14.17";
45834
45958
  }>;
45835
45959
  userId: string;
45836
45960
  claims: import("@supabase/auth-js").User;
@@ -64469,6 +64593,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
64469
64593
  werkbon_package_items: {
64470
64594
  Row: {
64471
64595
  article_number: string | null;
64596
+ artikel_id: string | null;
64472
64597
  created_at: string;
64473
64598
  gtin: string | null;
64474
64599
  id: string;
@@ -64486,6 +64611,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
64486
64611
  };
64487
64612
  Insert: {
64488
64613
  article_number?: string | null;
64614
+ artikel_id?: string | null;
64489
64615
  created_at?: string;
64490
64616
  gtin?: string | null;
64491
64617
  id?: string;
@@ -64503,6 +64629,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
64503
64629
  };
64504
64630
  Update: {
64505
64631
  article_number?: string | null;
64632
+ artikel_id?: string | null;
64506
64633
  created_at?: string;
64507
64634
  gtin?: string | null;
64508
64635
  id?: string;
@@ -64519,6 +64646,12 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
64519
64646
  updated_at?: string;
64520
64647
  };
64521
64648
  Relationships: [{
64649
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
64650
+ columns: ["artikel_id"];
64651
+ isOneToOne: false;
64652
+ referencedRelation: "artikelen_cache";
64653
+ referencedColumns: ["id"];
64654
+ }, {
64522
64655
  foreignKeyName: "werkbon_package_items_package_id_fkey";
64523
64656
  columns: ["package_id"];
64524
64657
  isOneToOne: false;
@@ -65741,6 +65874,20 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
65741
65874
  referencedColumns: ["id"];
65742
65875
  }];
65743
65876
  };
65877
+ v_werkbon_totalen: {
65878
+ Row: {
65879
+ packages_cents: number | null;
65880
+ packages_minutes: number | null;
65881
+ werkbon_id: string | null;
65882
+ };
65883
+ Relationships: [{
65884
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
65885
+ columns: ["werkbon_id"];
65886
+ isOneToOne: false;
65887
+ referencedRelation: "werkbonnen";
65888
+ referencedColumns: ["id"];
65889
+ }];
65890
+ };
65744
65891
  };
65745
65892
  Functions: {
65746
65893
  _floriday_schedule_job: {
@@ -67288,6 +67435,14 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
67288
67435
  };
67289
67436
  Returns: import("../integrations/supabase/types").Json;
67290
67437
  };
67438
+ logistics_plan_block: {
67439
+ Args: {
67440
+ p_details?: import("../integrations/supabase/types").Json;
67441
+ p_order_ids: string[];
67442
+ p_reason: string;
67443
+ };
67444
+ Returns: number;
67445
+ };
67291
67446
  logistics_plan_buffer_sql: {
67292
67447
  Args: {
67293
67448
  p_buffer_id: string;
@@ -67669,6 +67824,25 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
67669
67824
  };
67670
67825
  Returns: string;
67671
67826
  };
67827
+ pakket_suggesties_voor_tekst: {
67828
+ Args: {
67829
+ _tekst: string;
67830
+ };
67831
+ Returns: {
67832
+ hit_type: string;
67833
+ package_id: string;
67834
+ priority: number;
67835
+ }[];
67836
+ };
67837
+ pakket_voor_reistijd: {
67838
+ Args: {
67839
+ _minuten: number;
67840
+ };
67841
+ Returns: {
67842
+ package_id: string;
67843
+ priority: number;
67844
+ }[];
67845
+ };
67672
67846
  pick_active_printers: {
67673
67847
  Args: never;
67674
67848
  Returns: {
@@ -68719,6 +68893,18 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68719
68893
  Args: never;
68720
68894
  Returns: string;
68721
68895
  };
68896
+ werkbon_totalen: {
68897
+ Args: {
68898
+ _werkbon_id: string;
68899
+ };
68900
+ Returns: {
68901
+ materials_cents: number;
68902
+ packages_cents: number;
68903
+ packages_minutes: number;
68904
+ total_cents: number;
68905
+ total_minutes: number;
68906
+ }[];
68907
+ };
68722
68908
  wo_create_from_source: {
68723
68909
  Args: {
68724
68910
  _payload?: import("../integrations/supabase/types").Json;
@@ -68757,7 +68943,7 @@ export declare const diagnoseFloridayConnection: import("@tanstack/start-client-
68757
68943
  };
68758
68944
  CompositeTypes: { [_ in never]: never; };
68759
68945
  }, {
68760
- PostgrestVersion: "14.5";
68946
+ PostgrestVersion: "14.17";
68761
68947
  }>;
68762
68948
  userId: string;
68763
68949
  claims: import("@supabase/auth-js").User;
@@ -87414,6 +87600,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
87414
87600
  werkbon_package_items: {
87415
87601
  Row: {
87416
87602
  article_number: string | null;
87603
+ artikel_id: string | null;
87417
87604
  created_at: string;
87418
87605
  gtin: string | null;
87419
87606
  id: string;
@@ -87431,6 +87618,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
87431
87618
  };
87432
87619
  Insert: {
87433
87620
  article_number?: string | null;
87621
+ artikel_id?: string | null;
87434
87622
  created_at?: string;
87435
87623
  gtin?: string | null;
87436
87624
  id?: string;
@@ -87448,6 +87636,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
87448
87636
  };
87449
87637
  Update: {
87450
87638
  article_number?: string | null;
87639
+ artikel_id?: string | null;
87451
87640
  created_at?: string;
87452
87641
  gtin?: string | null;
87453
87642
  id?: string;
@@ -87464,6 +87653,12 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
87464
87653
  updated_at?: string;
87465
87654
  };
87466
87655
  Relationships: [{
87656
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
87657
+ columns: ["artikel_id"];
87658
+ isOneToOne: false;
87659
+ referencedRelation: "artikelen_cache";
87660
+ referencedColumns: ["id"];
87661
+ }, {
87467
87662
  foreignKeyName: "werkbon_package_items_package_id_fkey";
87468
87663
  columns: ["package_id"];
87469
87664
  isOneToOne: false;
@@ -88686,6 +88881,20 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
88686
88881
  referencedColumns: ["id"];
88687
88882
  }];
88688
88883
  };
88884
+ v_werkbon_totalen: {
88885
+ Row: {
88886
+ packages_cents: number | null;
88887
+ packages_minutes: number | null;
88888
+ werkbon_id: string | null;
88889
+ };
88890
+ Relationships: [{
88891
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
88892
+ columns: ["werkbon_id"];
88893
+ isOneToOne: false;
88894
+ referencedRelation: "werkbonnen";
88895
+ referencedColumns: ["id"];
88896
+ }];
88897
+ };
88689
88898
  };
88690
88899
  Functions: {
88691
88900
  _floriday_schedule_job: {
@@ -90233,6 +90442,14 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
90233
90442
  };
90234
90443
  Returns: import("../integrations/supabase/types").Json;
90235
90444
  };
90445
+ logistics_plan_block: {
90446
+ Args: {
90447
+ p_details?: import("../integrations/supabase/types").Json;
90448
+ p_order_ids: string[];
90449
+ p_reason: string;
90450
+ };
90451
+ Returns: number;
90452
+ };
90236
90453
  logistics_plan_buffer_sql: {
90237
90454
  Args: {
90238
90455
  p_buffer_id: string;
@@ -90614,6 +90831,25 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
90614
90831
  };
90615
90832
  Returns: string;
90616
90833
  };
90834
+ pakket_suggesties_voor_tekst: {
90835
+ Args: {
90836
+ _tekst: string;
90837
+ };
90838
+ Returns: {
90839
+ hit_type: string;
90840
+ package_id: string;
90841
+ priority: number;
90842
+ }[];
90843
+ };
90844
+ pakket_voor_reistijd: {
90845
+ Args: {
90846
+ _minuten: number;
90847
+ };
90848
+ Returns: {
90849
+ package_id: string;
90850
+ priority: number;
90851
+ }[];
90852
+ };
90617
90853
  pick_active_printers: {
90618
90854
  Args: never;
90619
90855
  Returns: {
@@ -91664,6 +91900,18 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
91664
91900
  Args: never;
91665
91901
  Returns: string;
91666
91902
  };
91903
+ werkbon_totalen: {
91904
+ Args: {
91905
+ _werkbon_id: string;
91906
+ };
91907
+ Returns: {
91908
+ materials_cents: number;
91909
+ packages_cents: number;
91910
+ packages_minutes: number;
91911
+ total_cents: number;
91912
+ total_minutes: number;
91913
+ }[];
91914
+ };
91667
91915
  wo_create_from_source: {
91668
91916
  Args: {
91669
91917
  _payload?: import("../integrations/supabase/types").Json;
@@ -91702,7 +91950,7 @@ export declare const getSalesOrderDetail: import("@tanstack/start-client-core").
91702
91950
  };
91703
91951
  CompositeTypes: { [_ in never]: never; };
91704
91952
  }, {
91705
- PostgrestVersion: "14.5";
91953
+ PostgrestVersion: "14.17";
91706
91954
  }>;
91707
91955
  userId: string;
91708
91956
  claims: import("@supabase/auth-js").User;
@@ -110330,6 +110578,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
110330
110578
  werkbon_package_items: {
110331
110579
  Row: {
110332
110580
  article_number: string | null;
110581
+ artikel_id: string | null;
110333
110582
  created_at: string;
110334
110583
  gtin: string | null;
110335
110584
  id: string;
@@ -110347,6 +110596,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
110347
110596
  };
110348
110597
  Insert: {
110349
110598
  article_number?: string | null;
110599
+ artikel_id?: string | null;
110350
110600
  created_at?: string;
110351
110601
  gtin?: string | null;
110352
110602
  id?: string;
@@ -110364,6 +110614,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
110364
110614
  };
110365
110615
  Update: {
110366
110616
  article_number?: string | null;
110617
+ artikel_id?: string | null;
110367
110618
  created_at?: string;
110368
110619
  gtin?: string | null;
110369
110620
  id?: string;
@@ -110380,6 +110631,12 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
110380
110631
  updated_at?: string;
110381
110632
  };
110382
110633
  Relationships: [{
110634
+ foreignKeyName: "werkbon_package_items_artikel_id_fkey";
110635
+ columns: ["artikel_id"];
110636
+ isOneToOne: false;
110637
+ referencedRelation: "artikelen_cache";
110638
+ referencedColumns: ["id"];
110639
+ }, {
110383
110640
  foreignKeyName: "werkbon_package_items_package_id_fkey";
110384
110641
  columns: ["package_id"];
110385
110642
  isOneToOne: false;
@@ -111602,6 +111859,20 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
111602
111859
  referencedColumns: ["id"];
111603
111860
  }];
111604
111861
  };
111862
+ v_werkbon_totalen: {
111863
+ Row: {
111864
+ packages_cents: number | null;
111865
+ packages_minutes: number | null;
111866
+ werkbon_id: string | null;
111867
+ };
111868
+ Relationships: [{
111869
+ foreignKeyName: "werkbon_package_lines_werkbon_id_fkey";
111870
+ columns: ["werkbon_id"];
111871
+ isOneToOne: false;
111872
+ referencedRelation: "werkbonnen";
111873
+ referencedColumns: ["id"];
111874
+ }];
111875
+ };
111605
111876
  };
111606
111877
  Functions: {
111607
111878
  _floriday_schedule_job: {
@@ -113149,6 +113420,14 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
113149
113420
  };
113150
113421
  Returns: import("../integrations/supabase/types").Json;
113151
113422
  };
113423
+ logistics_plan_block: {
113424
+ Args: {
113425
+ p_details?: import("../integrations/supabase/types").Json;
113426
+ p_order_ids: string[];
113427
+ p_reason: string;
113428
+ };
113429
+ Returns: number;
113430
+ };
113152
113431
  logistics_plan_buffer_sql: {
113153
113432
  Args: {
113154
113433
  p_buffer_id: string;
@@ -113530,6 +113809,25 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
113530
113809
  };
113531
113810
  Returns: string;
113532
113811
  };
113812
+ pakket_suggesties_voor_tekst: {
113813
+ Args: {
113814
+ _tekst: string;
113815
+ };
113816
+ Returns: {
113817
+ hit_type: string;
113818
+ package_id: string;
113819
+ priority: number;
113820
+ }[];
113821
+ };
113822
+ pakket_voor_reistijd: {
113823
+ Args: {
113824
+ _minuten: number;
113825
+ };
113826
+ Returns: {
113827
+ package_id: string;
113828
+ priority: number;
113829
+ }[];
113830
+ };
113533
113831
  pick_active_printers: {
113534
113832
  Args: never;
113535
113833
  Returns: {
@@ -114580,6 +114878,18 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114580
114878
  Args: never;
114581
114879
  Returns: string;
114582
114880
  };
114881
+ werkbon_totalen: {
114882
+ Args: {
114883
+ _werkbon_id: string;
114884
+ };
114885
+ Returns: {
114886
+ materials_cents: number;
114887
+ packages_cents: number;
114888
+ packages_minutes: number;
114889
+ total_cents: number;
114890
+ total_minutes: number;
114891
+ }[];
114892
+ };
114583
114893
  wo_create_from_source: {
114584
114894
  Args: {
114585
114895
  _payload?: import("../integrations/supabase/types").Json;
@@ -114618,7 +114928,7 @@ export declare const setSalesOrderControlled: import("@tanstack/start-client-cor
114618
114928
  };
114619
114929
  CompositeTypes: { [_ in never]: never; };
114620
114930
  }, {
114621
- PostgrestVersion: "14.5";
114931
+ PostgrestVersion: "14.17";
114622
114932
  }>;
114623
114933
  userId: string;
114624
114934
  claims: import("@supabase/auth-js").User;