• Get organization subscribed topics handler

    Parameters

    • chatService: ChatDataService

      injected service use to handle the chat related operations

      • getPaginatedUserSubscribedTopics
    • paginationConfig: defaultChat.PaginationConfig

      injected pagination config

    • authSecrets: AuthSecrets

      injected auth secrets used to handle the authentication

    • authenticate: AuthenticationFunction
    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

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

      • params.userId is required

    Returns Promise<adapter.AdapterHandlerResponse>

    200 Status OK

    • data: topic list

    Description

    This handler will get list of topics user subscribed to by applying the following steps in sequence:

    1. Authenticate the request (authenticate)

    2. Get paginated user subscribed topics (chatService.getPaginatedOrganizationSubscribedTopics)

    3. Normalize topic list (chatService.normalizeTopicList)

    4. Return normalized topic list with pagination

    Throws

    500 NBError Internal Server Error

    • userId is not defined

Generated using TypeDoc