Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "Trip/index"

Index

Variables

getTripIdsWaitingToSync

getTripIdsWaitingToSync: getTripIdsWaitingToSync = Dao.getTripIdsWaitingToSync

setTripUpdatedNotificationHandler

setTripUpdatedNotificationHandler: setTripUpdatedNotificationHandler = Dao.setTripUpdatedNotificationHandler

Functions

addPlaceToDay

  • addPlaceToDay(trip: Trip, placeId: string, dayIndex: number, positionInDay?: undefined | number): Promise<Trip>

addSequenceToDay

applyTripTemplate

  • applyTripTemplate(tripId: string, templateId: number, dayIndex: number): Promise<Trip>
  • Parameters

    • tripId: string
    • templateId: number
    • dayIndex: number

    Returns Promise<Trip>

cloneTrip

  • cloneTrip(id: string): Promise<string>

createTrip

  • createTrip(startDate: string, name: string, daysCount: number, placeId?: undefined | string): Promise<Trip>
  • Parameters

    • startDate: string
    • name: string
    • daysCount: number
    • Optional placeId: undefined | string

    Returns Promise<Trip>

emptyTripsTrash

  • emptyTripsTrash(): Promise<string[]>

ensureTripSyncedToServer

  • ensureTripSyncedToServer(tripId: string): Promise<void>

getNearestPossiblePlace

  • getNearestPossiblePlace(location: Location, tripId: string, dayIndex: number): Promise<Place | null>

getPlacesIdsFromTrip

  • getPlacesIdsFromTrip(trip: Trip): string[]

getTripDetailed

  • getTripDetailed(id: string): Promise<Trip>

getTripEditor

getTripTemplates

  • getTripTemplates(placeId: string): Promise<TripTemplate[]>

getTrips

  • getTrips(dateFrom?: string | null, dateTo?: string | null): Promise<TripInfo[]>
  • Parameters

    • Optional dateFrom: string | null
    • Optional dateTo: string | null

    Returns Promise<TripInfo[]>

getTripsInTrash

  • getTripsInTrash(): Promise<TripInfo[]>

handleTripChanges

populateTripTemplateWithPlaces

populateTripWithPlaces

  • populateTripWithPlaces(trip: Trip): Promise<Trip>

saveTrip

Generated using TypeDoc