Options
All
  • Public
  • Public/Protected
  • All
Menu

Module data

Index

Interfaces

Functions

Object literals

Functions

Const dataClear

  • dataClear(): void

Object literals

Const data

data: object

data

autoCompleteTags

autoCompleteTags: Record<LangCodeKey, { id: number; name: string }[]> = {} as Record<Model.LangCodeKey, { id: number; name: string }[]>

autoCompleteTagsAll

autoCompleteTagsAll: Record<LangCodeKey, { cityId: number; poiCategories: number[]; tags: { id: number; name: string }[] }[]> = {} as Record<Model.LangCodeKey, { cityId: number; poiCategories: number[]; tags: { id: number; name: string }[] }[]>

cities

cities: Record<LangCodeKey, City[]> = {} as Record<Model.LangCodeKey, Model.City[]>

All cities list (limit=300).

companions

companions: Record<LangCodeKey, Companion[]> = {} as Record<Model.LangCodeKey, Model.Companion[]>

Companions

configList

configList: undefined = undefined

errors

errors: never[] = []

If last operation of core has any error it is true else it is false. You have to set back to false manually after you handle your error case.

favorites

favorites: Record<LangCodeKey, { cityId: number; favoritePois: Model.Favorite[] }[]> = {} as Record<Model.LangCodeKey, { cityId: number; favoritePois: Model.Favorite[] }[]>

Favorites

feedbacks

feedbacks: Record<LangCodeKey, Feedbacks> = {} as Record<Model.LangCodeKey, Model.Feedbacks>

City info that last found by coordinate (Web pages don't use this function+data yet).

hasError

hasError: false = false

If last operation of core has any error it is true else it is false. You have to set back to false manually after you handle your error case.

initialised

initialised: false = false

initialised is default false. When core.init function called it will be true.

logs

logs: never[] = []

poiCategories

poiCategories: Record<LangCodeKey, PoiCategory[]> = {} as Record<Model.LangCodeKey, Model.PoiCategory[]>

All POI categories of POI datas (limit=100).

pois

pois: Record<LangCodeKey, { pois: Model.Poi[]; showOffersOnly: number }[]> = {} as Record<Model.LangCodeKey, { showOffersOnly: number; pois: Model.Poi[] }[]>

All interested pois' info since core initialised. We cache all poi infos we get from API (may come from search, dailyPlanPoi, alternatives ..).

poisAll

poisAll: Record<LangCodeKey, { cityId: number; poiCategories: number[]; pois: Model.DataPayload<Model.Poi[]>; showOffersOnly: number }[]> = {} as Record<Model.LangCodeKey,{ cityId: number; poiCategories: number[]; showOffersOnly: number; pois: Model.DataPayload<Model.Poi[]> }[]>

This data has used for explorer places first page for each cityId.

questions

questions: Record<LangCodeKey, Question[]> = {} as Record<Model.LangCodeKey, Model.Question[]>

It joins questionsTrip, questionsProfile and questionsCompanion.

questionsCompanion

questionsCompanion: Record<LangCodeKey, Question[]> = {} as Record<Model.LangCodeKey, Model.Question[]>

Questions for companion when we create or edit companion profile (We cache this data).

questionsProfile

questionsProfile: Record<LangCodeKey, Question[]> = {} as Record<Model.LangCodeKey, Model.Question[]>

Questions for person when we create or edit user profile (We cache this data).

questionsTrip

questionsTrip: Record<LangCodeKey, Question[]> = {} as Record<Model.LangCodeKey, Model.Question[]>

Questions for trip when we create trip or edit trip (We cache this data).

reservations

reservations: Record<LangCodeKey, { cityId: number; userReservations: Model.UserReservation[] }[]> = {} as Record<Model.LangCodeKey, { cityId: number; userReservations: Model.UserReservation[] }[]>

Reservations

topTens

topTens: Record<LangCodeKey, { cityId: number; topTen: Model.TopTen[] }[]> = {} as Record<Model.LangCodeKey, { cityId: number; topTen: Model.TopTen[] }[]>

trip

trip: Record<LangCodeKey, Trip> = {} as Record<Model.LangCodeKey, Model.Trip>

tripRefs

tripRefs: undefined = undefined

Trips

tripSavedRefs

tripSavedRefs: undefined = undefined

trips

trips: Record<LangCodeKey, Trip[]> = {} as Record<Model.LangCodeKey, Model.Trip[]>

user

user: undefined = undefined

User

userFeedbacks

userFeedbacks: Record<LangCodeKey, UserFeedback[]> = {} as Record<Model.LangCodeKey, Model.UserFeedback[]>

userReactions

userReactions: Record<LangCodeKey, { tripHash: string; userReactions: Model.UserReaction[] }[]> = {} as Record<Model.LangCodeKey, { tripHash: string; userReactions: Model.UserReaction[] }[]>

User Reactions