Chisquare
JSX Polylog
Introduction
This is the javascript SDK for chisquare platform. It covers APIs for the following services:
- Events
- Files
- Forms
- Jobs
- Logs
- Messages
- Motion
- Webhooks
Supported Platforms
- Browser
- Node.js (Javascript/Typescript)
Installation
$ npm i @chisquare-tech/jsx-polylog
Usage & API
import { init } from '@chisquare-tech/jsx-polylog';
init({
});
import { events } from '@chisquare-tech/jsx-polylog';
events.identify(id, payload, options);
import { events } from '@chisquare-tech/jsx-polylog';
events.track(id, payload, options);
import { jobs } from '@chisquare-tech/jsx-polylog'
jobs.schedule(id, payload, options)
import { files } from '@chisquare-tech/jsx-polylog'
files.upload(name, files, options)
import { forms } from '@chisquare-tech/jsx-polylog'
forms.submit(name, payload, options)
import { webhooks } from '@chisquare-tech/jsx-polylog'
webhooks.register(name, payload, options)
import { events } from '@chisquare-tech/jsx-polylog';
events.identify(id, payload, options);
import { events } from '@chisquare-tech/jsx-polylog';
events.track(id, payload, options);
Commands
DTS scaffolds your new library inside /src
.
To run DTS, use:
npm start
This builds to /dist
and runs the project in watch mode so any edits you save inside src
causes a rebuild to /dist
.
To do a one-off build, use npm run build
or yarn build
.
To run tests, use npm test
or yarn test
.
Custom Commands
# build and sync locally
$ node ./build --env=dev --sync=true
# build and publish
$ node ./build --env=prod --sync=true --version=x.x.x
Publish
$ git tag <version e.g v0.0.0>
$ git push origin <version>
License