1.1.24 • Published 24 days ago
@devrev/typescript-sdk v1.1.24
Authorization
Setup an env variable DEVREV_TOKEN
It will be used as an auth token by default, You can also pass in the url and token in client.setup()
as a param (see below). It is also required to run tests.
Installation
npm install @devrev/typescript-sdk
The version can be found in package.json. The SDK is currently beta.
Make sure that your project's package.json contains "type":"module"
setting.
Example Usage of the Beta SDK
import {client, betaSDK} from "@devrev/typescript-sdk";
const devrevBetaSDK = client.setupBeta({ endpoint: "https://api.devrev.ai",
token: process.env.DEVREV_TOKEN });
async function test(){
const response = await devrevBetaSDK.worksCreate({title:"New work item!",
applies_to_part: "PROD-1",
owned_by:["DEVU-1"],
type: betaSDK.WorkType.Issue})
console.log(response)
}
test()
Example Usage of the Public SDK
import {client, publicSDK} from "@devrev/typescript-sdk";
const devrevSDK = client.setup({ endpoint: "https://api.devrev.ai", token: process.env.DEVREV_TOKEN });
async function test(){
const response = await devrevSDK.worksCreate({title:"New work item!", applies_to_part: "PROD-1", owned_by:["DEVU-16"], type: publicSDK.WorkType.Issue})
console.log(response.status)
}
test()
Execute tests in the repo
npm test
1.1.24
24 days ago
1.1.23
2 months ago
1.1.22
3 months ago
1.1.21
4 months ago
1.1.20
6 months ago
1.1.19
6 months ago
1.1.18
6 months ago
1.1.17
7 months ago
1.1.16
7 months ago
1.1.15
7 months ago
1.1.14
8 months ago
1.1.13
8 months ago
1.1.12
8 months ago
1.1.11
8 months ago
1.1.10
8 months ago
1.1.9
9 months ago
1.1.8
9 months ago
1.1.7
9 months ago
1.1.6
10 months ago
1.1.5
10 months ago
1.1.4
10 months ago
1.1.3
10 months ago
1.1.1
10 months ago
1.2.0
10 months ago
1.1.0
10 months ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago