@segment/analytics-react-native
Version:
The hassle-free way to add Segment analytics to your React-Native app.
37 lines (35 loc) • 1.08 kB
JavaScript
/**
* Makes all the properties in an object optional
*/
export class ErrorClassification {
constructor(errorType, retryAfterSeconds) {
this.errorType = errorType;
this.retryAfterSeconds = retryAfterSeconds;
}
get isRetryable() {
return this.errorType !== 'permanent';
}
}
export let PluginType = /*#__PURE__*/function (PluginType) {
PluginType["before"] = "before";
PluginType["enrichment"] = "enrichment";
PluginType["destination"] = "destination";
PluginType["after"] = "after";
PluginType["utility"] = "utility";
return PluginType;
}({});
export let UpdateType = /*#__PURE__*/function (UpdateType) {
UpdateType["initial"] = "initial";
UpdateType["refresh"] = "refresh";
return UpdateType;
}({});
export let EventType = /*#__PURE__*/function (EventType) {
EventType["TrackEvent"] = "track";
EventType["IdentifyEvent"] = "identify";
EventType["ScreenEvent"] = "screen";
EventType["GroupEvent"] = "group";
EventType["AliasEvent"] = "alias";
return EventType;
}({});
// Native Module types
//# sourceMappingURL=types.js.map