There seems to be no way to get the shipping package ID from the measurement object on a variant’sinventoryItem.
Yet, now it’s possible to edit the shipping profile ID:
It would be great to have the query as well.
Similar to this post, but with different fields