nativescript-segment
Advanced tools
Comparing version 1.0.2 to 1.0.3
import { Common, SegmentConfig, SegmentTraits, SegmentOptions } from './segment.common'; | ||
import { SegmentAddress, SegmentConfig, SegmentTraits, SegmentOptions } from './segment.common'; | ||
export { SegmentAddress, SegmentConfig, SegmentTraits, SegmentOptions } from './segment.common'; | ||
export declare class Segment implements Common { | ||
export declare class Segment { | ||
/** | ||
* Sets logging within this plugin, and sets 'INFO' logging on the Segment SDK for Android only | ||
*/ | ||
logging: boolean; | ||
static logging: boolean; | ||
@@ -15,3 +15,3 @@ /** | ||
*/ | ||
debug: boolean; | ||
static debug: boolean; | ||
@@ -23,3 +23,3 @@ /** | ||
*/ | ||
ios: SEGAnalytics; | ||
static ios: SEGAnalytics; | ||
@@ -31,3 +31,3 @@ /** | ||
*/ | ||
android: com.segment.analytics.Analytics; | ||
static android: com.segment.analytics.Analytics; | ||
@@ -44,3 +44,3 @@ /** | ||
*/ | ||
configure(key: string, configOptions?: SegmentConfig): void; | ||
static configure(key: string, configOptions?: SegmentConfig): void; | ||
@@ -59,3 +59,3 @@ /** | ||
*/ | ||
identify(id: string, traits?: SegmentTraits, customTraits?: any, options?: SegmentOptions): void; | ||
static identify(id: string, traits?: SegmentTraits, customTraits?: any, options?: SegmentOptions): void; | ||
@@ -73,3 +73,3 @@ /** | ||
*/ | ||
track(event: string, properties?: any, options?: SegmentOptions): void; | ||
static track(event: string, properties?: any, options?: SegmentOptions): void; | ||
@@ -88,3 +88,3 @@ /** | ||
*/ | ||
screen(name: string, category?: string, properties?: any, options?: SegmentOptions): void; | ||
static screen(name: string, category?: string, properties?: any, options?: SegmentOptions): void; | ||
@@ -104,3 +104,3 @@ /** | ||
*/ | ||
group(groupId: string, traits?: SegmentTraits, customTraits?: any, options?: SegmentOptions): void; | ||
static group(groupId: string, traits?: SegmentTraits, customTraits?: any, options?: SegmentOptions): void; | ||
@@ -118,3 +118,3 @@ /** | ||
*/ | ||
alias(newId: string, options?: SegmentOptions): void; | ||
static alias(newId: string, options?: SegmentOptions): void; | ||
@@ -125,3 +125,3 @@ /** | ||
*/ | ||
optOut(optOut: boolean): void; | ||
static optOut(optOut: boolean): void; | ||
} |
{ | ||
"name": "nativescript-segment", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Your awesome NativeScript plugin.", | ||
@@ -5,0 +5,0 @@ "main": "segment", |
@@ -1,3 +0,3 @@ | ||
import { Common, SegmentConfig, SegmentTraits, SegmentOptions } from './segment.common'; | ||
export declare class Segment extends Common { | ||
import { SegmentConfig, SegmentTraits, SegmentOptions } from './segment.common'; | ||
export declare class Segment { | ||
static init: boolean; | ||
@@ -4,0 +4,0 @@ static logging: boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var segment_common_1 = require("./segment.common"); | ||
var app = require("tns-core-modules/application"); | ||
@@ -9,6 +8,4 @@ var Analytics = com.segment.analytics.Analytics; | ||
var Options = com.segment.analytics.Options; | ||
var Segment = (function (_super) { | ||
__extends(Segment, _super); | ||
var Segment = (function () { | ||
function Segment() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
@@ -82,3 +79,3 @@ Object.defineProperty(Segment, "android", { | ||
return Segment; | ||
}(segment_common_1.Common)); | ||
}()); | ||
exports.Segment = Segment; | ||
@@ -85,0 +82,0 @@ function _convertOptions(options) { |
@@ -1,10 +0,1 @@ | ||
export declare abstract class Common { | ||
static configure(key: string, configOptions?: SegmentConfig): void; | ||
static identify(id: string, traits?: SegmentTraits, customTraits?: any, options?: SegmentOptions): void; | ||
static track(event: string, properties?: any, options?: SegmentOptions): void; | ||
static screen(name: string, category?: string, properties?: any, options?: SegmentOptions): void; | ||
static group(groupId: string, traits?: SegmentTraits, customTraits?: any, options?: SegmentOptions): void; | ||
static alias(newId: string, options?: SegmentOptions): void; | ||
static optOut(optOut: boolean): void; | ||
} | ||
export interface SegmentConfig { | ||
@@ -11,0 +2,0 @@ trackLifeCycleEvents?: boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var Common = (function () { | ||
function Common() { | ||
} | ||
Common.configure = function (key, configOptions) { }; | ||
; | ||
Common.identify = function (id, traits, customTraits, options) { }; | ||
; | ||
Common.track = function (event, properties, options) { }; | ||
; | ||
Common.screen = function (name, category, properties, options) { }; | ||
; | ||
Common.group = function (groupId, traits, customTraits, options) { }; | ||
; | ||
Common.alias = function (newId, options) { }; | ||
; | ||
Common.optOut = function (optOut) { }; | ||
; | ||
return Common; | ||
}()); | ||
exports.Common = Common; | ||
//# sourceMappingURL=segment.common.js.map |
@@ -1,3 +0,3 @@ | ||
import { Common, SegmentConfig, SegmentTraits, SegmentOptions } from './segment.common'; | ||
export declare class Segment extends Common { | ||
import { SegmentConfig, SegmentTraits, SegmentOptions } from './segment.common'; | ||
export declare class Segment { | ||
static logging: boolean; | ||
@@ -4,0 +4,0 @@ static debug: boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var segment_common_1 = require("./segment.common"); | ||
var Segment = (function (_super) { | ||
__extends(Segment, _super); | ||
var Segment = (function () { | ||
function Segment() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
@@ -83,3 +80,3 @@ Object.defineProperty(Segment, "ios", { | ||
return Segment; | ||
}(segment_common_1.Common)); | ||
}()); | ||
exports.Segment = Segment; | ||
@@ -86,0 +83,0 @@ function _convertOptions(options) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67901
994