interface KoBoToolboxNodeParameters {
binaryPropertyName?: string;
download?: boolean;
endDate?: string;
fileId?: string;
fileMode?: "url" | "binary";
fileUrl?: string;
filterJson?: string;
filters?: { filter?: string };
filterType?: "none" | "json";
formId?: string;
hookId?: string;
limit?: number;
logId?: string;
operation?:
| "create"
| "get"
| "getAll"
| "delete"
| "redeploy"
| "getLogs"
| "retryAll"
| "retryOne"
| "getValidation"
| "setValidation";
options?: | {
sort?: {
value: {
descending?: boolean;
ordering?: | "name"
| "asset_type"
| "date_modified"
| "owner__username"
| "subscribers_count";
};
};
}
| {
binaryNamingScheme?: "sequence"
| "question";
dataPropertyAttachmentsPrefixName?: string;
download?: boolean;
fields?: string;
numberMask?: string;
reformat?: boolean;
selectMask?: string;
sort?: string;
version?:
| "download_url"
| "download_small_url"
| "download_medium_url"
| "download_large_url";
};
resource?: "file"
| "form"
| "hook"
| "submission";
returnAll?: boolean;
startDate?: string;
status?: "" | "1" | "2" | "0";
submissionId?: string;
validationStatus?:
| "validation_status_approved"
| "validation_status_not_approved"
| "validation_status_on_hold";
}Properties§
readonly binary Property Name?: stringreadonly download?: booleanWhether to download the file content into a binary property
readonly end Date?: stringMaximum date for the hook log to retrieve
readonly file Id?: stringUid of the file (should start with "af" e.g. "afQoJxA4kmKEXVpkH6SYbhb"
readonly file Mode?: "url" | "binary"Default: "binary"
readonly file Url?: stringHTTP(s) link to the file to upload
readonly filter Json?: string§readonly filters?: { ... }Default: {}
readonly filter Type?: "none" | "json"Default: "none"
readonly form Id?: stringForm ID (e.g. aSAvYreNzVEkrWg5Gdcvg). Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"loadForms"}
readonly hook Id?: stringHook ID (starts with h, e.g. hVehywQ2oXPYGHJHKtqth4)
readonly limit?: numberMax number of results to return Default: 1000 Type options: {"maxValue":3000}
readonly log Id?: stringHook log ID (starts with hl, e.g. hlSbGKaUKzTVNoWEVMYbLHe)
readonly operation?:
| "create"
| "get"
| "getAll"
| "delete"
| "redeploy"
| "getLogs"
| "retryAll"
| "retryOne"
| "getValidation"
| "setValidation"Default: "get"
readonly options?:
| {
sort?: {
value: {
descending?: boolean;
ordering?: | "name"
| "asset_type"
| "date_modified"
| "owner__username"
| "subscribers_count";
};
};
}
| {
binaryNamingScheme?: "sequence"
| "question";
dataPropertyAttachmentsPrefixName?: string;
download?: boolean;
fields?: string;
numberMask?: string;
reformat?: boolean;
selectMask?: string;
sort?: string;
version?:
| "download_url"
| "download_small_url"
| "download_medium_url"
| "download_large_url";
}Default: {}
readonly resource?: "file" | "form" | "hook" | "submission"Default: "submission"
readonly return All?: booleanWhether to return all results or only up to a given limit
readonly start Date?: stringMinimum date for the hook log to retrieve
readonly status?: "" | "1" | "2" | "0"Only retrieve logs with a specific status
readonly submission Id?: stringSubmission ID (number, e.g. 245128)
readonly validation Status?:
| "validation_status_approved"
| "validation_status_not_approved"
| "validation_status_on_hold"Desired Validation Status
Name of the binary property to write the file into Default: "data"