Returns details of all the workshops from the given servicesByDay. The start date is required to calculate the workshop date also.

Optionally it could be provided the workshops that were selected by the host to add more information to each workshop detail about how many hours of those workshops they requested.

  • Parameters

    • servicesByDay: undefined | ServicesByDay

      All the services separated by day of a Trip or Itinerary

    • startDate: undefined | Date

      The date that the trip or trip request of those services by day starts

    • OptionalselectedWorkshops: SelectedWorkshops

      Optional parameter to calculate the requested hours of each workshop by the host

    Returns WorkshopDetail[]

    • an array of workshop details where the information could vary depending on the selectedWorkshops parameter