Complete a task.
import { completeTask } from "@dvelop-sdk/task";
await completeTask({
systemBaseUri: "https://umbrella-corp.d-velop.cloud",
authSessionId: "dQw4w9WgXcQ"
}, {
location: "some/task/location"
});
Create a task.
Location of the created task
import { createTask } from "@dvelop-sdk/task";
const taskLocation = await createTask({
systemBaseUri: "https://umbrella-corp.d-velop.cloud",
authSessionId: "dQw4w9WgXcQ"
}, {
subject: "Cover up lab accident",
assignees: ["XiFkyR35v2Y"]
});
console.log(taskLocation); // some/task/location
Mark task as completed.
import { deleteTask } from "@dvelop-sdk/task";
await deleteTask({
systemBaseUri: "https://umbrella-corp.d-velop.cloud",
authSessionId: "dQw4w9WgXcQ"
}, {
location: "some/task/location"
});
Get a task.
A task object
import { getTask } from "@dvelop-sdk/task";
const task = await getTask({
systemBaseUri: "https://umbrella-corp.d-velop.cloud",
authSessionId: "dQw4w9WgXcQ"
}, {
id: "SomeTaskId"
});
Create a task.
import { getTaskCount } from "@dvelop-sdk/task";
await getTaskCount({
systemBaseUri: "https://umbrella-corp.d-velop.cloud",
authSessionId: "dQw4w9WgXcQ"
});
Search for tasks.
A page of matching tasks.
import { searchTasks } from "@dvelop-sdk/task";
const task = await searchTasks({
systemBaseUri: "https://umbrella-corp.d-velop.cloud",
authSessionId: "dQw4w9WgXcQ"
}, {
pageSize: 10,
filter: {
subject: ["My subject"]
}
});
Update a task.
import { updateTask } from "@dvelop-sdk/task";
await updateTask({
systemBaseUri: "https://umbrella-corp.d-velop.cloud",
authSessionId: "dQw4w9WgXcQ"
}, {
location: "some/task/location",
description: "Try harder! Bribe some people if you must.",
dueDate: new Date(new Date().getTime() + (1000 * 60 * 60 * 24 * 5)) // due in 5 days
});
Helper function to build search ranges for priority or date values.
Description of the range.
import { buildRangeParameter } from "@dvelop-sdk/task";
const range = buildRangeParameter({
from: new Date(),
to: new Date("2025-01-01T00:00:00.000Z"),
beginInclusive: true,
endInclusive: true
});
Generated using TypeDoc
@dvelop-sdk/task
This package contains functionality for the Task-App in the d.velop cloud.
Explore the docs » Install via npm » Check us out on GitHub »