Interface BoxNodeParameters

Source
interface BoxNodeParameters {
    accessibleBy?: "user" | "group";
    additionalFields?:
        | {
            fields?: string;
            name?: string;
            version?: string;
        }
        | { fields?: string }
        | {
            ancestor_folder_ids?: string;
            contet_types?: string;
            createdRangeUi?: {
                createdRangeValuesUi: {
                    from?: string;
                    to?: string;
                };
            };
            direction?: "ASC"
            | "DESC";
            fields?: string;
            file_extensions?: string;
            owner_user_ids?: string;
            scope?: "user_content" | "enterprise_content";
            size_range?: string;
            sort?: "relevance" | "modified_at";
            trash_content?: "non_trashed_only" | "trashed_only";
            updatedRangeUi?: {
                updatedRangeValuesUi: {
                    from?: string;
                    to?: string;
                };
            };
        };
    binaryData?: boolean;
    binaryPropertyName?: string;
    email?: string;
    fileContent?: string;
    fileId?: string;
    fileName?: string;
    folderId?: string;
    groupId?: string;
    limit?: number;
    name?: string;
    operation?: | "create"
    | "get"
    | "update"
    | "delete"
    | "search"
    | "upload"
    | "copy"
    | "download"
    | "share";
    options?: | {
        can_view_path?: boolean;
        expires_at?: string;
        fields?: string;
        notify?: boolean;
    }
    | {
        access?: "collaborators"
        | "open";
        fields?: string;
    };
    parentId?: string;
    query?: string;
    recursive?: boolean;
    resource?: "file"
    | "folder";
    returnAll?: boolean;
    role?:
        | "coOwner"
        | "editor"
        | "previewer"
        | "previewerUploader"
        | "uploader"
        | "viewer"
        | "viewerUploader";
    updateFields?: {
        can_non_owners_invite?: boolean;
        can_non_owners_view_collaborators?: boolean;
        description?: string;
        fields?: string;
        is_collaboration_restricted_to_enterprise?: boolean;
        name?: string;
        parentId?: string;
        shared_link?: {
            access?: "company"
            | "collaborators"
            | "open";
            password?: string;
            permissions?: {
                can_download?: boolean;
                unshared_at?: string;
                vanity_name?: string;
            };
            tags?: string;
        };
    };
    useEmail?: boolean;
    userId?: string;
}

Properties§

§readonly accessibleBy?: "user" | "group"

The type of object the file will be shared with

§readonly additionalFields?:
    | {
        fields?: string;
        name?: string;
        version?: string;
    }
    | { fields?: string }
    | {
        ancestor_folder_ids?: string;
        contet_types?: string;
        createdRangeUi?: {
            createdRangeValuesUi: {
                from?: string;
                to?: string;
            };
        };
        direction?: "ASC"
        | "DESC";
        fields?: string;
        file_extensions?: string;
        owner_user_ids?: string;
        scope?: "user_content" | "enterprise_content";
        size_range?: string;
        sort?: "relevance" | "modified_at";
        trash_content?: "non_trashed_only" | "trashed_only";
        updatedRangeUi?: {
            updatedRangeValuesUi: {
                from?: string;
                to?: string;
            };
        };
    }

Default: {}

§readonly binaryData?: boolean

Whether the data to upload should be taken from binary field

§readonly binaryPropertyName?: string

Default: "data"

§readonly email?: string

The user's email address to share the file with

§readonly fileContent?: string

The text content of the file

§readonly fileId?: string
§readonly fileName?: string

The name the file should be saved as

§readonly folderId?: string
§readonly groupId?: string

The group's ID to share the file with

§readonly limit?: number

Max number of results to return Default: 100 Type options: {"minValue":1,"maxValue":500}

§readonly name?: string

Folder's name

§readonly operation?:
    | "create"
    | "get"
    | "update"
    | "delete"
    | "search"
    | "upload"
    | "copy"
    | "download"
    | "share"

Default: "upload"

§readonly options?:
    | {
        can_view_path?: boolean;
        expires_at?: string;
        fields?: string;
        notify?: boolean;
    }
    | {
        access?: "collaborators"
        | "open";
        fields?: string;
    }

Default: {}

§readonly parentId?: string

The ID of folder to copy the file to. If not defined will be copied to the root folder.

§readonly query?: string

The string to search for. This query is matched against item names, descriptions, text content of files, and various other fields of the different item types.

§readonly recursive?: boolean

Whether to delete a folder that is not empty by recursively deleting the folder and all of its content

§readonly resource?: "file" | "folder"

Default: "file"

§readonly returnAll?: boolean

Whether to return all results or only up to a given limit

§readonly role?:
    | "coOwner"
    | "editor"
    | "previewer"
    | "previewerUploader"
    | "uploader"
    | "viewer"
    | "viewerUploader"

The level of access granted Default: "editor"

§readonly updateFields?: { ... }

Default: {}

§readonly useEmail?: boolean

Whether identify the user by email or ID Default: true

§readonly userId?: string

The user's ID to share the file with