Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AlgoliaForSeatersService

Hierarchy

  • AlgoliaForSeatersService

Index

Constructors

constructor

Properties

Private _apiP

_apiP: Promise<AlgoliaApi>

Private appService

appService: AppService

Private requestDriver

requestDriver: RequestDriver

Private searchIndex

searchIndex: string

Methods

Private api

  • Returns Promise<AlgoliaApi>

Private buildExactQuery

  • buildExactQuery(query: string, field: string, type: string): SearchQuery
  • Parameters

    • query: string
    • field: string
    • type: string

    Returns SearchQuery

Private findExactlyN

  • findExactlyN<T>(searchQuery: SearchQuery, identifiers: string[]): Promise<T[]>
  • Type parameters

    • T

    Parameters

    Returns Promise<T[]>

Private findExactlyOne

  • findExactlyOne<T>(searchQuery: SearchQuery, entityType: string, identifier: string): Promise<T>
  • Type parameters

    • T

    Parameters

    • searchQuery: SearchQuery
    • entityType: string
    • identifier: string

    Returns Promise<T>

getFanGroupById

  • getFanGroupById(fanGroupId: string): Promise<FanGroup>
  • Parameters

    • fanGroupId: string

    Returns Promise<FanGroup>

getFanGroupsById

  • getFanGroupsById(fanGroupIds: string[]): Promise<FanGroup[]>
  • Parameters

    • fanGroupIds: string[]

    Returns Promise<FanGroup[]>

Private getSearchableAttributes

  • getSearchableAttributes(locale: string): Promise<string[]>
  • Parameters

    • locale: string

    Returns Promise<string[]>

getWaitingListById

  • getWaitingListById(waitingListId: string): Promise<WaitingList>
  • Parameters

    • waitingListId: string

    Returns Promise<WaitingList>

getWaitingListsByFanGroupId

  • getWaitingListsByFanGroupId(fanGroupId: string, hitsPerPage: number, page: number): Promise<TypedSearchResult<WaitingList>>
  • Parameters

    • fanGroupId: string
    • hitsPerPage: number
    • page: number

    Returns Promise<TypedSearchResult<WaitingList>>

getWaitingListsByFanGroupIds

  • getWaitingListsByFanGroupIds(fanGroupIds: string[], hitsPerPage: number, page: number): Promise<TypedSearchResult<WaitingList>>
  • Parameters

    • fanGroupIds: string[]
    • hitsPerPage: number
    • page: number

    Returns Promise<TypedSearchResult<WaitingList>>

getWaitingListsByKeywords

  • getWaitingListsByKeywords(keywords: string[], hitsPerPage: number, page: number): Promise<SearchResult>
  • Parameters

    • keywords: string[]
    • hitsPerPage: number
    • page: number

    Returns Promise<SearchResult>

Private patchWaitingList

  • patchWaitingList(wl: any): WaitingList
  • Parameters

    • wl: any

    Returns WaitingList

search

  • Parameters

    Returns Promise<SearchResult>

searchSeatersContent

  • Parameters

    Returns Promise<SearchResult>

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

    Returns Promise<TypedSearchResult<WaitingList>>

Private stripAlgoliaFieldsFromObject

  • stripAlgoliaFieldsFromObject<T>(result: any): T
  • Type parameters

    • T

    Parameters

    • result: any

    Returns T

Private stripAlgoliaFieldsFromSearchResultHits

  • Type parameters

    • T

    Parameters

    Returns SearchResult

Generated using TypeDoc