0.2.0 • Published 3 years ago
@openfn/language-divoc v0.2.0
language-divoc
An OpenFn adaptor for building integration jobs for use with the DIVOC API.
Documentation
- View the documentation at https://openfn.github.io/adaptor/
- To update the documentation site, run:
./node_modules/.bin/jsdoc --readme ./README.md ./lib -d docs
sample configuration
{
"baseUrl": "https://divoc.sub.io",
"token": "some-super-long-token-shhhhhhhhhhh"
}
generate a DIVOC vaccine certificate
N.B., the body should contain all data required for the certificate, including preEnrollmentCode with a unique identifier.
certify({
...stuff,
preEnrollmentCode: 'some-uuid',
});
Fetch the PDF for a generated DIVOC Certificate
N.B. the identifier should be the preEnrollmentCode sent when generating the certificate.
getCertificate({
id: dataValue('preEnrollmentCode'),
});
Development
Clone the repo, run npm install
.
Run tests using npm run test
or npm run test:watch
Build the project using make
.
0.2.0
3 years ago