A Seneca.js plugin
![]() |
This open source module is sponsored and supported by Voxgig. |
|---|
$ npm install seneca@^4 @seneca/entity @seneca/referRequires Node.js >=24, Seneca ^4.0.0 and @seneca/entity ^29.0.0:
referral entries are saved as refer/entry and refer/occur entities.
const seneca = Seneca().use('@seneca/entity').use('@seneca/refer', {})
const created = await seneca.post('biz:refer,create:entry', {
user_id: 'u01',
email: 'alice@example.com',
})
await seneca.post('biz:refer,accept:entry', { token: created.entry.token })See test/ for more usage examples.
A Seneca.js plugin.
If you're using this module and need help, you can:
- Post a github issue
- Tweet to @senecajs
- Ask on the Gitter
None.
- accept:entry,biz:refer
- biz:refer,create:entry
- biz:refer,ensure:entry
- biz:refer,give:award
- biz:refer,load:entry
- biz:refer,load:rules
- biz:refer,lost:entry
- biz:refer,update:occur
- biz:refer,update:entry
No description provided.
Create referral entry.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
The Senecajs org encourages open participation. If you feel you can help in any way, be it with documentation, examples, extra testing, or new features please get in touch.
npm run testPart of the Senecajs org.

