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§
Source§readonly additional Fields?:
| {
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;
};
};
}
readonly additional Fields?:
| {
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: {}
Source§readonly limit?: number
readonly limit?: number
Max number of results to return Default: 100 Type options: {"minValue":1,"maxValue":500}
Source§readonly operation?:
| "create"
| "get"
| "update"
| "delete"
| "search"
| "upload"
| "copy"
| "download"
| "share"
readonly operation?:
| "create"
| "get"
| "update"
| "delete"
| "search"
| "upload"
| "copy"
| "download"
| "share"
Default: "upload"
Source§readonly options?:
| {
can_view_path?: boolean;
expires_at?: string;
fields?: string;
notify?: boolean;
}
| {
access?: "collaborators"
| "open";
fields?: string;
}
readonly options?:
| {
can_view_path?: boolean;
expires_at?: string;
fields?: string;
notify?: boolean;
}
| {
access?: "collaborators"
| "open";
fields?: string;
}
Default: {}
Source§readonly parent Id?: string
readonly parent Id?: string
The ID of folder to copy the file to. If not defined will be copied to the root folder.
Source§readonly query?: string
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.
Source§readonly recursive?: boolean
readonly recursive?: boolean
Whether to delete a folder that is not empty by recursively deleting the folder and all of its content
Source§readonly role?:
| "coOwner"
| "editor"
| "previewer"
| "previewerUploader"
| "uploader"
| "viewer"
| "viewerUploader"
readonly role?:
| "coOwner"
| "editor"
| "previewer"
| "previewerUploader"
| "uploader"
| "viewer"
| "viewerUploader"
The level of access granted Default: "editor"
Source§readonly update Fields?: {
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;
};
}
readonly update Fields?: {
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;
};
}
Default: {}
The type of object the file will be shared with