@amplitude/analytics-types
Advanced tools
Comparing version 0.15.0 to 0.16.0
@@ -5,3 +5,3 @@ export { AmplitudeReturn } from './amplitude-promise'; | ||
export { BrowserClient, ReactNativeClient, NodeClient } from './client'; | ||
export { AttributionOptions, BrowserConfig, BrowserOptions, Config, InitOptions, NodeConfig, NodeOptions, ReactNativeConfig, ReactNativeOptions, ReactNativeTrackingOptions, TrackingOptions, ServerZone, } from './config'; | ||
export { AttributionOptions, BrowserConfig, BrowserOptions, Config, Options, NodeConfig, NodeOptions, ReactNativeConfig, ReactNativeOptions, ReactNativeTrackingOptions, TrackingOptions, } from './config'; | ||
export { CoreClient } from './core-client'; | ||
@@ -20,7 +20,8 @@ export { DestinationContext } from './destination-context'; | ||
export { QueueProxy, InstanceProxy } from './proxy'; | ||
export { SessionManager, SessionManagerOptions, UserSession } from './session-manager'; | ||
export { ServerZone } from './server-zone'; | ||
export { Status } from './status'; | ||
export { CookieStorageOptions, Storage } from './storage'; | ||
export { Transport, TransportType } from './transport'; | ||
export { UserSession } from './user-session'; | ||
export { UTMData } from './utm'; | ||
//# sourceMappingURL=index.d.ts.map |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TransportType = exports.Status = exports.PluginType = exports.LogLevel = exports.RevenueProperty = exports.IdentifyOperation = exports.SpecialEventType = exports.ServerZone = void 0; | ||
var config_1 = require("./config"); | ||
Object.defineProperty(exports, "ServerZone", { enumerable: true, get: function () { return config_1.ServerZone; } }); | ||
exports.TransportType = exports.Status = exports.ServerZone = exports.PluginType = exports.LogLevel = exports.RevenueProperty = exports.IdentifyOperation = exports.SpecialEventType = void 0; | ||
var event_1 = require("./event"); | ||
@@ -13,2 +11,4 @@ Object.defineProperty(exports, "SpecialEventType", { enumerable: true, get: function () { return event_1.SpecialEventType; } }); | ||
Object.defineProperty(exports, "PluginType", { enumerable: true, get: function () { return plugin_1.PluginType; } }); | ||
var server_zone_1 = require("./server-zone"); | ||
Object.defineProperty(exports, "ServerZone", { enumerable: true, get: function () { return server_zone_1.ServerZone; } }); | ||
var status_1 = require("./status"); | ||
@@ -15,0 +15,0 @@ Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return status_1.Status; } }); |
import { Event } from './event'; | ||
import { Config } from './config'; | ||
import { Result } from './result'; | ||
import { BaseClient } from './client/base-client'; | ||
export declare enum PluginType { | ||
@@ -9,18 +10,18 @@ BEFORE = "before", | ||
} | ||
export interface BeforePlugin { | ||
export interface BeforePlugin<T = BaseClient> { | ||
name: string; | ||
type: PluginType.BEFORE; | ||
setup(config: Config): Promise<void>; | ||
setup(config: Config, client?: T): Promise<void>; | ||
execute(context: Event): Promise<Event>; | ||
} | ||
export interface EnrichmentPlugin { | ||
export interface EnrichmentPlugin<T = BaseClient> { | ||
name: string; | ||
type: PluginType.ENRICHMENT; | ||
setup(config: Config): Promise<void>; | ||
setup(config: Config, client?: T): Promise<void>; | ||
execute(context: Event): Promise<Event>; | ||
} | ||
export interface DestinationPlugin { | ||
export interface DestinationPlugin<T = BaseClient> { | ||
name: string; | ||
type: PluginType.DESTINATION; | ||
setup(config: Config): Promise<void>; | ||
setup(config: Config, client?: T): Promise<void>; | ||
execute(context: Event): Promise<Result>; | ||
@@ -27,0 +28,0 @@ flush?(): Promise<void>; |
@@ -10,5 +10,5 @@ import { Result } from './result'; | ||
_q: QueueProxy; | ||
_iq: InstanceProxy[]; | ||
_iq: Record<string, InstanceProxy>; | ||
} | ||
export {}; | ||
//# sourceMappingURL=proxy.d.ts.map |
@@ -5,3 +5,3 @@ export { AmplitudeReturn } from './amplitude-promise'; | ||
export { BrowserClient, ReactNativeClient, NodeClient } from './client'; | ||
export { AttributionOptions, BrowserConfig, BrowserOptions, Config, InitOptions, NodeConfig, NodeOptions, ReactNativeConfig, ReactNativeOptions, ReactNativeTrackingOptions, TrackingOptions, ServerZone, } from './config'; | ||
export { AttributionOptions, BrowserConfig, BrowserOptions, Config, Options, NodeConfig, NodeOptions, ReactNativeConfig, ReactNativeOptions, ReactNativeTrackingOptions, TrackingOptions, } from './config'; | ||
export { CoreClient } from './core-client'; | ||
@@ -20,7 +20,8 @@ export { DestinationContext } from './destination-context'; | ||
export { QueueProxy, InstanceProxy } from './proxy'; | ||
export { SessionManager, SessionManagerOptions, UserSession } from './session-manager'; | ||
export { ServerZone } from './server-zone'; | ||
export { Status } from './status'; | ||
export { CookieStorageOptions, Storage } from './storage'; | ||
export { Transport, TransportType } from './transport'; | ||
export { UserSession } from './user-session'; | ||
export { UTMData } from './utm'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,7 +0,7 @@ | ||
export { ServerZone, } from './config'; | ||
export { SpecialEventType, IdentifyOperation, RevenueProperty, } from './event'; | ||
export { LogLevel } from './logger'; | ||
export { PluginType } from './plugin'; | ||
export { ServerZone } from './server-zone'; | ||
export { Status } from './status'; | ||
export { TransportType } from './transport'; | ||
//# sourceMappingURL=index.js.map |
import { Event } from './event'; | ||
import { Config } from './config'; | ||
import { Result } from './result'; | ||
import { BaseClient } from './client/base-client'; | ||
export declare enum PluginType { | ||
@@ -9,18 +10,18 @@ BEFORE = "before", | ||
} | ||
export interface BeforePlugin { | ||
export interface BeforePlugin<T = BaseClient> { | ||
name: string; | ||
type: PluginType.BEFORE; | ||
setup(config: Config): Promise<void>; | ||
setup(config: Config, client?: T): Promise<void>; | ||
execute(context: Event): Promise<Event>; | ||
} | ||
export interface EnrichmentPlugin { | ||
export interface EnrichmentPlugin<T = BaseClient> { | ||
name: string; | ||
type: PluginType.ENRICHMENT; | ||
setup(config: Config): Promise<void>; | ||
setup(config: Config, client?: T): Promise<void>; | ||
execute(context: Event): Promise<Event>; | ||
} | ||
export interface DestinationPlugin { | ||
export interface DestinationPlugin<T = BaseClient> { | ||
name: string; | ||
type: PluginType.DESTINATION; | ||
setup(config: Config): Promise<void>; | ||
setup(config: Config, client?: T): Promise<void>; | ||
execute(context: Event): Promise<Result>; | ||
@@ -27,0 +28,0 @@ flush?(): Promise<void>; |
@@ -10,5 +10,5 @@ import { Result } from './result'; | ||
_q: QueueProxy; | ||
_iq: InstanceProxy[]; | ||
_iq: Record<string, InstanceProxy>; | ||
} | ||
export {}; | ||
//# sourceMappingURL=proxy.d.ts.map |
{ | ||
"name": "@amplitude/analytics-types", | ||
"version": "0.15.0", | ||
"version": "0.16.0", | ||
"description": "", | ||
@@ -37,3 +37,3 @@ "author": "Amplitude Inc", | ||
], | ||
"gitHead": "bb953b5d8b24bb3bfc095186fdeafdccc08c6c2c" | ||
"gitHead": "e9b73ad53882d499ca14e3d53e8885825554d0d9" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
195337
259
2012