• Get organization owned topics handler

    Parameters

    • chatService: ChatDataService

      injected service use to handle the chat related operations

      • getPaginatedOrganizationOwnedTopics
    • paginationConfig: defaultChat.PaginationConfig

      injected pagination config

    • authSecrets: AuthSecrets

      injected auth secrets used to handle the authentication

    • authenticate: AuthenticationFunction

      injected function used to handle the authentication

    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

      request context [headers, body, params, query].

      • params.orgId is required

    Returns Promise<adapter.AdapterHandlerResponse>

    200 Status OK

    • data: topic list

    Description

    This handler will get list of topics the organization is an owner id on by applying the following steps in sequence:

    1. Authenticate the request (authenticate)

    2. Get paginated org owned topics (chatService.getPaginatedOrganizationOwnedTopics)

    3. Normalize topic list (chatService.normalizeTopicList)

    4. Return normalized topic list with pagination

    Throws

    500 NBError Internal Server Error

    • orgId is not defined

Generated using TypeDoc