Typescript wrapper for ChurnZero JScript API - based off @revenuegrid/churnzerojs but slight mod to be ES5 compatible
npm install churnzerojs-es5typescript
import { Client } from '@revenuegrid/churnzerojs';
const client = await Client.connect({
url: 'analytics.churnzero.net/churnzero.js', // or eu1analytics.churnzero.net/churnzero.js
apiKey: '{your key}',
accountId: '{account id}',
contactId: '{contact id}'
});
client.trackEvent('some custom event');
``