Avena Webapp API - v0.0.1
    Preparing search index...

    Function buildExportRequest

    • Validates the export form and builds the request.

      Checks that times and at least one channel are set and that start is not after end. The payload carries the asset, the sorted channels, RFC 3339 start and end, box_id, and a file name made from labjack_name (spaces become _). With filters, the ticked channels that have filters on are sent in filters, so the exporter adds a filtered_value column; without any, the field is left out.

      Parameters

      • config: ExportSource | null

        Loaded config, or null.

      • start: string

        Start datetime-local value.

      • end: string

        End datetime-local value.

      • channels: Iterable<number>

        Ticked channels.

      • Optionalfilters: ChannelFilterMap

        The config's sensor_settings.filters when filtered values are wanted, else undefined.

      Returns ExportRequestResult