To use the BackInStockSettings API, install the @wix/ecom package using npm or Yarn:
@wix/ecom
or
Then import { backInStockSettings } from @wix/ecom:
{ backInStockSettings }