Is it possible to adjust product inventory numbers from wix code?

Hello everyone,

Quick question. I was looking thought the documentation and found te ability to adjust things such as price and weight of a product variant, as well as get many other data types of a specific product, however, I don’t seem to see a method of manually changing product inventory levels via wix code.
Is it not possible to adjust inventory levels?

The point I am getting at is that registrants who buy a registration get a T shirt as well. Currently I am managing shirt inventory via a database and just changing the numbers by using a function in the event.js backed file after a customer checkouts to adjust the shirt inventory properly.

Thank you for your time.

https://support.wix.com/en/wix-stores/managing-your-orders-and-inventory

https://support.wix.com/en/article/managing-your-inventory-in-wix-stores
https://support.wix.com/en/article/managing-inventory-for-product-options-and-variants-in-wix-stores
https://support.wix.com/en/article/updating-inventory-for-wix-stores-orders-paid-with-a-paypal-echeck
https://support.wix.com/en/article/wix-stores-inventory-not-updating

https://www.wix.com/corvid/reference/wix-stores-backend.Events.html

https://www.wix.com/corvid/reference/wix-stores-backend.Events.html#onInventoryItemUpdated
https://www.wix.com/corvid/reference/wix-stores-backend.Events.html#onInventoryVariantUpdated
https://www.wix.com/corvid/reference/wix-stores-backend.Events.html#InventoryItemUpdatedEvent
https://www.wix.com/corvid/reference/wix-stores-backend.Events.html#InventoryVariantUpdatedEvent
https://www.wix.com/corvid/reference/wix-stores-backend.Events.html#UpdatedVariantInventory
https://www.wix.com/corvid/reference/wix-stores-backend.Events.html#VariantInventoryValue