Skip to content

Repository files navigation

targetprocess

TypeScript API wrapper for Targetprocess

Installation

npm install targetprocess-rest-api

Usage

import{Targetprocess}from"targetprocess-rest-api";// initialise the APIconstapi=newTargetprocess("subdomain","yourusername","yourpassword");// get a user storyconstuserStory=awaitgetUserStory(123);// get a taskconsttask=awaitgetTask(456);// get a bugconstbug=awaitgetBug(789);// add a time entry to an entityconsttime=awaitaddTime(456,0.75,4.25,newDate('2018-09-01'),"Integration testing");// get a custom value for a projectconstvalue=awaitgetCustomValueForProject(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 💖 by NewOrbit in Oxfordshire, and licensed under the MIT Licence

About

TypeScript API wrapper for Targetprocess

Topics

Resources

Stars

1 star

Watchers

25 watching

Forks

Releases

Packages

Used by

Contributors

Languages