Class AlgoliaForSeatersService
Constructors
constructor
-
Parameters
Properties
Private _apiP
Private appService
Private requestDriver
Private searchIndex
searchIndex: string
Methods
Private api
-
Private buildExactQuery
- buildExactQuery(query: string, field: string, type: string): SearchQuery
-
Parameters
-
query: string
-
field: string
-
type: string
Private findExactlyN
- findExactlyN<T>(searchQuery: SearchQuery, identifiers: string[]): Promise<T[]>
-
Type parameters
Parameters
Returns Promise<T[]>
Private findExactlyOne
- findExactlyOne<T>(searchQuery: SearchQuery, entityType: string, identifier: string): Promise<T>
-
Type parameters
Parameters
-
-
entityType: string
-
identifier: string
Returns Promise<T>
getFanGroupById
- getFanGroupById(fanGroupId: string): Promise<FanGroup>
-
Parameters
Returns Promise<FanGroup>
getFanGroupsById
- getFanGroupsById(fanGroupIds: string[]): Promise<FanGroup[]>
-
Parameters
Returns Promise<FanGroup[]>
Private getSearchableAttributes
- getSearchableAttributes(locale: string): Promise<string[]>
-
Parameters
Returns Promise<string[]>
getWaitingListById
- getWaitingListById(waitingListId: string): Promise<WaitingList>
-
Parameters
Returns Promise<WaitingList>
getWaitingListsByFanGroupId
- getWaitingListsByFanGroupId(fanGroupId: string, hitsPerPage: number, page: number): Promise<TypedSearchResult<WaitingList>>
-
Parameters
-
fanGroupId: string
-
hitsPerPage: number
-
page: number
getWaitingListsByFanGroupIds
- getWaitingListsByFanGroupIds(fanGroupIds: string[], hitsPerPage: number, page: number): Promise<TypedSearchResult<WaitingList>>
-
Parameters
-
fanGroupIds: string[]
-
hitsPerPage: number
-
page: number
getWaitingListsByKeywords
- getWaitingListsByKeywords(keywords: string[], hitsPerPage: number, page: number): Promise<SearchResult>
-
Parameters
-
keywords: string[]
-
hitsPerPage: number
-
page: number
Private patchWaitingList
- patchWaitingList(wl: any): WaitingList
-
Parameters
Returns WaitingList
search
-
Parameters
searchSeatersContent
-
Parameters
-
query: string
-
locale: string
-
hitsPerPage: number
-
page: number
-
searchWaitingListsInFanGroup
- searchWaitingListsInFanGroup(fanGroupId: string, query: string, locale: string, hitsPerPage: number, page: number): Promise<TypedSearchResult<WaitingList>>
-
Parameters
-
fanGroupId: string
-
query: string
-
locale: string
-
hitsPerPage: number
-
page: number
Private stripAlgoliaFieldsFromObject
- stripAlgoliaFieldsFromObject<T>(result: any): T
-
Type parameters
Parameters
Returns T
Private stripAlgoliaFieldsFromSearchResultHits
-
Type parameters
Parameters