targetprocess
TypeScript API wrapper for Targetprocess
Installation
npm install targetprocess-rest-api
Usage
import { Targetprocess } from "targetprocess-rest-api";
const api = new Targetprocess("subdomain", "yourusername", "yourpassword");
const userStory = await getUserStory(123);
const task = await getTask(456);
const bug = await getBug(789);
const time = await addTime(456, 0.75, 4.25, new Date('2018-09-01'), "Integration testing");
const value = await getCustomValueForProject(123, "Some Custom Value");
Errors
getUserStory
, getTask
, getBug
and addTime
can all throw an error with the following format:
{
statusCode: number;
message: string;
}
License
Made with :sparkling_heart: by NewOrbit in Oxfordshire, and licensed under the MIT Licence