Skip to content

Commit

Permalink
refactor(tasklist): remove graphQL client (#12)
Browse files Browse the repository at this point in the history
Implement Tasklist REST API only
  • Loading branch information
jwulf authored Dec 14, 2023
1 parent e516df2 commit a47cb71
Show file tree
Hide file tree
Showing 10 changed files with 204 additions and 717 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"conventionalCommits.scopes": [
"repo",
"oauth"
"oauth",
"tasklist"
]
}
23 changes: 1 addition & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/tasklist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ import { TasklistApiClient } from 'camunda-tasklist-client'
const tasklist = new TasklistApiClient()

async function main() {
const { tasks } = await tasklist.getTasks({ state: TaskState.CREATED })
const { tasks } = await tasklist.getTasks({ state: 'CREATED' })
const task = tasks[0]
console.log('Task', JSON.stringify(task, null, 0))
const taskid = task.id
const task = await tasklist.claimTask(taskid, 'jwulf')
const assignedTask = await tasklist.assignTask({ taskId: taskId, assignee: 'jwulf', allowOverrideAssignment: false })
}

main()
Expand Down
11 changes: 6 additions & 5 deletions packages/tasklist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "dist/index.js",
"scripts": {
"test": "jest --detectOpenHandles --runInBand",
"test:integration": "jest --detectOpenHandles --runInBand",
"build": "npm run clean && npm run compile",
"clean": "rm -rf ./dist && rm -f ./tsconfig.tsbuildinfo",
"compile": "tsc",
Expand All @@ -16,7 +17,7 @@
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/@jwulf"
},
},
"keywords": [
"Camunda",
"Tasklist"
Expand All @@ -28,14 +29,14 @@
},
"homepage": "https://github.com/camunda-community-hub/camunda-8-js-sdk#readme",
"devDependencies": {
"typedoc": "^0.23.25",
"@jwulf/zeebe": "^8.3.0"
"@jwulf/zeebe": "^8.3.0",
"typedoc": "^0.23.25"
},
"dependencies": {
"@types/debug": "^4.1.12",
"@jwulf/oauth": "^8.3.0",
"@types/debug": "^4.1.12",
"debug": "^4.3.4",
"dotenv": "^16.3.1",
"gotql": "^2.1.0-alpha1"
"got": "^11.8.6"
}
}
138 changes: 0 additions & 138 deletions packages/tasklist/src/__test__/restclient.spec.ts

This file was deleted.

Loading

0 comments on commit a47cb71

Please sign in to comment.