@modelhealth/modelhealth
    Preparing search index...

    Interface ExternalResultFile

    An external file to attach to an activity via addMotionDataToActivity.

    The tag must not conflict with reserved tags used by Model Health internally.

    const file: ExternalResultFile = {
    tag: "force_plate",
    extension: "csv",
    data: new TextEncoder().encode("time,fx,fy,fz\n0.0,0,0,650\n"),
    };
    const updated = await client.addMotionDataToActivity(activity, [file]);
    interface ExternalResultFile {
        data: Uint8Array;
        extension: string;
        tag: string;
    }
    Index

    Properties

    Properties

    data: Uint8Array

    The raw file bytes to upload.

    extension: string

    Bare file extension without a leading dot (e.g. "csv", "bin", "json").

    tag: string

    Identifies the data source on the server.