Ardoq SDK JS
This is an, as of yet, small SDK for developing against the Ardoq API. It currently constist of two parts:
- The API - A set of functions corresponding to the API endpoints of Ardoq, with correct typings
- A graph syncer - A function that allows you to define a simple graph object and update a set of workspaces in Ardoq to match this local graph
Please open an issue if there is any functionality you are missing, or if you find any bugs.
Usage
For complete usage examples, please see our repo with examples.
The API
The following example demonstrates how to create a component with the api.
; ; ; main;
The Graph Syncer
The following example demonstrates most of the functionality of the graph
syncer. Notice that the sync
function will take care of creating the used
types and fields. Fields can be changed locally, and will lead to the components
remotely being updated as long as the customId
s stay the same.
; ; ;;; syncapiProps, workspaces, graph, fields;
Contributing
There are a few things that could use some work:
- Verify the validity of the graph before attempting sync
- Add more of the api endpoints
- Write more tests for sync
Developing and testing
yarn start
will start continous building (very nice to combine withyarn link
for live testing in another repo)yarn test --watch
will start continous testing
Cutting a new release
- Make sure everything works:
yarn test
- Publish:
yarn publish
- NB: Make sure to follow schemantic versioning. As long as we are in
0.x.x
, make sure to bump the minor version on any change that could break existing code.
- NB: Make sure to follow schemantic versioning. As long as we are in