Class ListingStore

Constructors

Properties

main: MainStore

Methods

  • Parameters

    • type: null | string | string[]
    • criteria: QueryCriteria
    • projection: string[]
    • Optionalsort: Record<string, -1 | 1>
    • page: number = 1
    • limit: number = LISTING_PER_PAGE
    • OptionalelementContext: Element
    • OptionalatTime: string
    • skipParsing: boolean = false

    Returns Promise<ApiResponse<ElementDataWrapper[]>>

  • Type Parameters

    Parameters

    • ...args: [
          type: null
          | string
          | string[],
          criteria: QueryCriteria,
          projection: string[],
          sort?: Record<string, -1 | 1>,
          page: number,
          limit: number,
          elementContext?: Element,
          atTime?: string,
          skipParsing: boolean,
      ]

    Returns Promise<null | IListingElementsResponse<T>>

  • Type Parameters

    Parameters

    • ...args: [
          type: null
          | string
          | string[],
          criteria: QueryCriteria,
          projection: string[],
          sort?: Record<string, -1 | 1>,
          page: number,
          limit: number,
          elementContext?: Element,
          atTime?: string,
          skipParsing: boolean,
      ]

    Returns Promise<null | T>

  • Parameters

    • types: null | string | string[]

    Returns null | string[]