To use the TicketDefinitionsV2 API, install the @wix/events package using npm or Yarn:
@wix/events
or
Then import { ticketDefinitionsV2 } from @wix/events:
{ ticketDefinitionsV2 }