@amplitude/analytics-types
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -22,3 +22,3 @@ import { BaseEvent } from './base-event'; | ||
export interface CampaignParser { | ||
parse(): Campaign; | ||
parse(): Promise<Campaign>; | ||
} | ||
@@ -25,0 +25,0 @@ export interface CampaignTrackerOptions extends AttributionBrowserOptions { |
@@ -6,4 +6,3 @@ import { LogLevel, Logger } from './logger'; | ||
import { Plan } from './plan'; | ||
import { Plugin } from './plugin'; | ||
import { UserSession } from './session-manager'; | ||
import { SessionManager, UserSession } from './session-manager'; | ||
export declare enum ServerZone { | ||
@@ -23,3 +22,2 @@ US = "US", | ||
plan?: Plan; | ||
plugins: Plugin[]; | ||
saveEvents: boolean; | ||
@@ -44,2 +42,3 @@ serverUrl: string | undefined; | ||
sessionId?: number; | ||
sessionManager: SessionManager; | ||
sessionTimeout: number; | ||
@@ -82,4 +81,4 @@ trackingOptions: TrackingOptions; | ||
transport: TransportType; | ||
}>, 'apiKey' | 'plugins'>; | ||
export declare type NodeOptions = Omit<Partial<NodeConfig>, 'apiKey' | 'userId' | 'plugins' | 'lastEventTime'>; | ||
}>, 'apiKey'>; | ||
export declare type NodeOptions = Omit<Partial<NodeConfig>, 'apiKey'>; | ||
//# sourceMappingURL=config.d.ts.map |
@@ -7,4 +7,4 @@ import { Event } from './event'; | ||
callback: EventCallback; | ||
delay: number; | ||
timeout: number; | ||
} | ||
//# sourceMappingURL=destination-context.d.ts.map |
@@ -13,3 +13,3 @@ export { AmplitudeReturn } from './amplitude-promise'; | ||
export { Plan } from './plan'; | ||
export { Plugin, BeforePlugin, EnrichmentPlugin, DestinationPlugin, AmplitudeDestinationPlugin, PluginType, } from './plugin'; | ||
export { Plugin, BeforePlugin, EnrichmentPlugin, DestinationPlugin, PluginType } from './plugin'; | ||
export { Result } from './result'; | ||
@@ -16,0 +16,0 @@ export { Response, SuccessResponse, InvalidResponse, PayloadTooLargeResponse, RateLimitResponse } from './response'; |
@@ -26,7 +26,5 @@ import { Event } from './event'; | ||
execute(context: Event): Promise<Result>; | ||
flush?(): Promise<void>; | ||
} | ||
export interface AmplitudeDestinationPlugin extends DestinationPlugin { | ||
flush(includeQueueBuffer?: boolean): Promise<void>; | ||
} | ||
export declare type Plugin = BeforePlugin | EnrichmentPlugin | DestinationPlugin; | ||
//# sourceMappingURL=plugin.d.ts.map |
export interface Storage<T> { | ||
isEnabled(): boolean; | ||
get(key: string): T | undefined; | ||
getRaw(key: string): string | undefined; | ||
set(key: string, value: T): void; | ||
remove(key: string): void; | ||
reset(): void; | ||
isEnabled(): Promise<boolean>; | ||
get(key: string): Promise<T | undefined>; | ||
getRaw(key: string): Promise<string | undefined>; | ||
set(key: string, value: T): Promise<void>; | ||
remove(key: string): Promise<void>; | ||
reset(): Promise<void>; | ||
} | ||
@@ -9,0 +9,0 @@ export interface CookieStorageOptions { |
{ | ||
"name": "@amplitude/analytics-types", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "", | ||
@@ -33,3 +33,3 @@ "author": "Amplitude Inc", | ||
], | ||
"gitHead": "139379f59cb6ba6031a01355d1125d6b78c12b9c" | ||
"gitHead": "84a7c2295d7a3720fe3b77c57e8f779c4879e57f" | ||
} |
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
71876
691