When your plugin has a record for a record, send it to this method. We will use the provided mapping against your raw data row to store the original data and mapped data to the record.
mapping: an object whose keys are remote columns and whose values are the property keys, ie: {remoteColumnId: 'userId'}
row: {email: 'abc@company.com', vip: true}
Like plugin.createImport, but for many imports at once!
mapping: an object whose keys are remote columns and whose values are the property keys, ie: {remoteColumnId: 'userId'}
rows: {email: 'abc@company.com', vip: true}[]
Returns the access token for an OAuth-based plugin app that uses refresh tokens.
Manages cache and expiration of the token.
In order to use this, app OAuth access must first be setup by the Grouparoo team.
This is needed when running in dev mode (TS) but you are using a compiled plugin (JS).
The plugin will actually load the JS model while core will be loading the TS model.
Both need to be "added" to sequelize to know which connection to use.
Takes a string with mustache variable (ids) and replaces them with the record property keys
ie: select * where id = {{{ ppr_abc123 }}} => select * where id = {{{ userId }}}
Takes a string with mustache variable (keys) and replaces them with the record property ids
ie: select * where id = {{{ userId }}} => select * where id = {{{ ppr_abc123 }}}
When your plugin has a record for a record, send it to this method. We will use the provided mapping against your raw data row to store the original data and mapped data to the record. mapping: an object whose keys are remote columns and whose values are the property keys, ie: {remoteColumnId: 'userId'} row: {email: 'abc@company.com', vip: true}