1.0.28 • Published 4 months ago
@larva.io/report-definitions v1.0.28
Larva.io event reporting definitions
Standard Contact ID event codes are used. All codes above 999 are Larva.io custom events. TypeDefinitions included.
Example:
import { ReportEvent, ReportEventGroup, LogLevel, getEventGroup, getEventMessage, getLogLevel } from '@larva.io/report-definitions';
// let's say you have event with ID 1101 (ReportEvent.USER_ADDED);
const event = 1101; // ReportEvent.USER_ADDED
const message = getEventMessage(event); // 'User added'
const eventGroup = getEventGroup(event); // 'system_events' // ReportEventGroup.SYSTEM_EVENTS
const logLevel = getLogLevel(event); // 'warning' // LogLevel.WARNING
console.wan(`Event id ${event} message: "${message}", eventGroup ${eventGroup} logLevel ${logLevel}`);
1.0.28
4 months ago
1.0.26
5 months ago
1.0.27
5 months ago
1.0.25
8 months ago
1.0.24
11 months ago
1.0.23
12 months ago
1.0.22
3 years ago
1.0.21
3 years ago
1.0.19
3 years ago
1.0.20
3 years ago
1.0.18
3 years ago
1.0.17
3 years ago
1.0.16
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.11
4 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago