• Preparing search index...
  • The search index is not available
@espressif/rainmaker-base-sdk
  • @espressif/rainmaker-base-sdk
  • services/ESPRMHelpers/ESPCmdRespHelpers
  • createCmdRespRequestPaginatedResult

Function createCmdRespRequestPaginatedResult

  • createCmdRespRequestPaginatedResult(
        requests: ESPCmdRespRequest[],
        nextId?: null | string,
        fetchNextPage?: (startId: string) => Promise<ESPCmdRespPaginatedResult>,
    ): ESPCmdRespPaginatedResult

    Builds a paginated command-response result from a page of requests.

    When nextId is present and fetchNextPage is provided, the response includes a fetchNext callback that continues from that cursor.

    Parameters

    • requests: ESPCmdRespRequest[]

      Transformed request records for the current page.

    • OptionalnextId: null | string

      Optional pagination cursor from the API (next_id).

    • OptionalfetchNextPage: (startId: string) => Promise<ESPCmdRespPaginatedResult>

      Fetches the next page using the cursor.

    Returns ESPCmdRespPaginatedResult

    Paginated command-response request records.

    • Defined in src/services/ESPRMHelpers/ESPCmdRespHelpers.ts:327

Settings

Member Visibility
@espressif/rainmaker-base-sdk
  • Loading...

Generated using TypeDoc