@segment/analytics-react-native
Version:
The hassle-free way to add Segment analytics to your React-Native app.
42 lines (40 loc) • 1.34 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.UpdateType = exports.PluginType = exports.EventType = exports.ErrorClassification = void 0;
/**
* Makes all the properties in an object optional
*/
class ErrorClassification {
constructor(errorType, retryAfterSeconds) {
this.errorType = errorType;
this.retryAfterSeconds = retryAfterSeconds;
}
get isRetryable() {
return this.errorType !== 'permanent';
}
}
exports.ErrorClassification = ErrorClassification;
let PluginType = exports.PluginType = /*#__PURE__*/function (PluginType) {
PluginType["before"] = "before";
PluginType["enrichment"] = "enrichment";
PluginType["destination"] = "destination";
PluginType["after"] = "after";
PluginType["utility"] = "utility";
return PluginType;
}({});
let UpdateType = exports.UpdateType = /*#__PURE__*/function (UpdateType) {
UpdateType["initial"] = "initial";
UpdateType["refresh"] = "refresh";
return UpdateType;
}({});
let EventType = exports.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