@amplitude/analytics-types
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -12,20 +12,23 @@ import { Event } from './event'; | ||
name: string; | ||
type: PluginType.BEFORE; | ||
type: PluginType.BEFORE | 'before'; | ||
setup(config: U, client?: T): Promise<void>; | ||
execute(context: Event): Promise<Event | null>; | ||
teardown?(): Promise<void>; | ||
} | ||
export interface EnrichmentPlugin<T = CoreClient, U = Config> { | ||
name: string; | ||
type: PluginType.ENRICHMENT; | ||
type: PluginType.ENRICHMENT | 'enrichment'; | ||
setup(config: U, client?: T): Promise<void>; | ||
execute(context: Event): Promise<Event | null>; | ||
teardown?(): Promise<void>; | ||
} | ||
export interface DestinationPlugin<T = CoreClient, U = Config> { | ||
name: string; | ||
type: PluginType.DESTINATION; | ||
type: PluginType.DESTINATION | 'destination'; | ||
setup(config: U, client?: T): Promise<void>; | ||
execute(context: Event): Promise<Result>; | ||
flush?(): Promise<void>; | ||
teardown?(): Promise<void>; | ||
} | ||
export type Plugin<T = CoreClient, U = Config> = BeforePlugin<T, U> | EnrichmentPlugin<T, U> | DestinationPlugin<T, U>; | ||
//# sourceMappingURL=plugin.d.ts.map |
@@ -12,20 +12,23 @@ import { Event } from './event'; | ||
name: string; | ||
type: PluginType.BEFORE; | ||
type: PluginType.BEFORE | 'before'; | ||
setup(config: U, client?: T): Promise<void>; | ||
execute(context: Event): Promise<Event | null>; | ||
teardown?(): Promise<void>; | ||
} | ||
export interface EnrichmentPlugin<T = CoreClient, U = Config> { | ||
name: string; | ||
type: PluginType.ENRICHMENT; | ||
type: PluginType.ENRICHMENT | 'enrichment'; | ||
setup(config: U, client?: T): Promise<void>; | ||
execute(context: Event): Promise<Event | null>; | ||
teardown?(): Promise<void>; | ||
} | ||
export interface DestinationPlugin<T = CoreClient, U = Config> { | ||
name: string; | ||
type: PluginType.DESTINATION; | ||
type: PluginType.DESTINATION | 'destination'; | ||
setup(config: U, client?: T): Promise<void>; | ||
execute(context: Event): Promise<Result>; | ||
flush?(): Promise<void>; | ||
teardown?(): Promise<void>; | ||
} | ||
export type Plugin<T = CoreClient, U = Config> = BeforePlugin<T, U> | EnrichmentPlugin<T, U> | DestinationPlugin<T, U>; | ||
//# sourceMappingURL=plugin.d.ts.map |
{ | ||
"name": "@amplitude/analytics-types", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "", | ||
@@ -38,3 +38,3 @@ "author": "Amplitude Inc", | ||
], | ||
"gitHead": "01c20d61e8c51b59dc7fdf83d4abd57391aecf71" | ||
"gitHead": "bc426d86b020aa96c9dc3a824aaaecf22213b32f" | ||
} |
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
209565
2188
3
0