0.5.1 • Published 9 months ago
@camunda/bpmn-copilot-client v0.5.1
BPMN Copilot
Home of the BPMN Copilot.
Use BPMN Copilot
import Copilot from '@camunda/bpmn-copilot-client';
const copilot = new Copilot({
bpmnjs,
invoke: async (invokeCommandInput, signal) => {
return fetch('aws', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(invokeCommandInput),
signal
});
},
executionPlatform: 'Camunda Cloud', // defaults to "Camunda Cloud"
executionPlatformVersion: '8.6', // defaults to "8.6"
exporter: 'Camunda BPMN Copilot', // defaults to "Camunda BPMN Copilot"
exporterVersion: '0.1.0' // defaults to version found in package.json
});
const {
response,
cancel
} = copilot.invoke('Create a hiring process');
response.then(message => {
// show message
});
// cancel invokation
cancel();Run tests
- run
npm installto install dependencies - run
npm testto run tests
Run demo
See README
Release client
- Prepare:
- Ask IT to grant you the Member role of the @camunda npm organization
- Run
npm install
- Choose a new version number following SemVer conventions
- Update the CHANGELOG. Commit to
main(but don't push yet). - Run
npand follow the instructions. - Verify: