@amplitude/analytics-types 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/config/react-native.d.ts +1 -0
- package/lib/cjs/config/react-native.d.ts.map +1 -1
- package/lib/cjs/config/react-native.js.map +1 -1
- package/lib/cjs/plugin.d.ts +6 -3
- package/lib/cjs/plugin.d.ts.map +1 -1
- package/lib/cjs/plugin.js.map +1 -1
- package/lib/esm/config/react-native.d.ts +1 -0
- package/lib/esm/config/react-native.d.ts.map +1 -1
- package/lib/esm/config/react-native.js.map +1 -1
- package/lib/esm/plugin.d.ts +6 -3
- package/lib/esm/plugin.d.ts.map +1 -1
- package/lib/esm/plugin.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,6 +3,7 @@ import { BrowserConfig, TrackingOptions } from './browser';
|
|
|
3
3
|
export interface ReactNativeConfig extends BrowserConfig {
|
|
4
4
|
trackingOptions: ReactNativeTrackingOptions;
|
|
5
5
|
trackingSessionEvents?: boolean;
|
|
6
|
+
migrateLegacyData?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export interface ReactNativeTrackingOptions extends TrackingOptions {
|
|
8
9
|
adid?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-native.d.ts","sourceRoot":"","sources":["../../../src/config/react-native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE3D,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,eAAe,EAAE,0BAA0B,CAAC;IAC5C,qBAAqB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"react-native.d.ts","sourceRoot":"","sources":["../../../src/config/react-native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE3D,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,eAAe,EAAE,0BAA0B,CAAC;IAC5C,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,0BAA2B,SAAQ,eAAe;IACjE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,KAAK,aAAa,GAAG,QAAQ,GAAG,aAAa,CAAC;AAE9C,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,aAAa,CAAC;IACzF,SAAS,CAAC,EAAE,aAAa,GAAG,MAAM,OAAO,aAAa,CAAC;CACxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-native.js","sourceRoot":"","sources":["../../../src/config/react-native.ts"],"names":[],"mappings":"","sourcesContent":["import { TransportType } from '../transport';\nimport { BrowserConfig, TrackingOptions } from './browser';\n\nexport interface ReactNativeConfig extends BrowserConfig {\n trackingOptions: ReactNativeTrackingOptions;\n trackingSessionEvents?: boolean;\n}\n\nexport interface ReactNativeTrackingOptions extends TrackingOptions {\n adid?: boolean;\n carrier?: boolean;\n appSetId?: boolean;\n idfv?: boolean;\n}\n\ntype HiddenOptions = 'apiKey' | 'lastEventId';\n\nexport interface ReactNativeOptions extends Omit<Partial<ReactNativeConfig>, HiddenOptions> {\n transport?: TransportType | keyof typeof TransportType;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"react-native.js","sourceRoot":"","sources":["../../../src/config/react-native.ts"],"names":[],"mappings":"","sourcesContent":["import { TransportType } from '../transport';\nimport { BrowserConfig, TrackingOptions } from './browser';\n\nexport interface ReactNativeConfig extends BrowserConfig {\n trackingOptions: ReactNativeTrackingOptions;\n trackingSessionEvents?: boolean;\n migrateLegacyData?: boolean;\n}\n\nexport interface ReactNativeTrackingOptions extends TrackingOptions {\n adid?: boolean;\n carrier?: boolean;\n appSetId?: boolean;\n idfv?: boolean;\n}\n\ntype HiddenOptions = 'apiKey' | 'lastEventId';\n\nexport interface ReactNativeOptions extends Omit<Partial<ReactNativeConfig>, HiddenOptions> {\n transport?: TransportType | keyof typeof TransportType;\n}\n"]}
|
package/lib/cjs/plugin.d.ts
CHANGED
|
@@ -9,22 +9,25 @@ export declare enum PluginType {
|
|
|
9
9
|
}
|
|
10
10
|
export interface BeforePlugin<T = CoreClient, U = Config> {
|
|
11
11
|
name: string;
|
|
12
|
-
type: PluginType.BEFORE;
|
|
12
|
+
type: PluginType.BEFORE | 'before';
|
|
13
13
|
setup(config: U, client?: T): Promise<void>;
|
|
14
14
|
execute(context: Event): Promise<Event | null>;
|
|
15
|
+
teardown?(): Promise<void>;
|
|
15
16
|
}
|
|
16
17
|
export interface EnrichmentPlugin<T = CoreClient, U = Config> {
|
|
17
18
|
name: string;
|
|
18
|
-
type: PluginType.ENRICHMENT;
|
|
19
|
+
type: PluginType.ENRICHMENT | 'enrichment';
|
|
19
20
|
setup(config: U, client?: T): Promise<void>;
|
|
20
21
|
execute(context: Event): Promise<Event | null>;
|
|
22
|
+
teardown?(): Promise<void>;
|
|
21
23
|
}
|
|
22
24
|
export interface DestinationPlugin<T = CoreClient, U = Config> {
|
|
23
25
|
name: string;
|
|
24
|
-
type: PluginType.DESTINATION;
|
|
26
|
+
type: PluginType.DESTINATION | 'destination';
|
|
25
27
|
setup(config: U, client?: T): Promise<void>;
|
|
26
28
|
execute(context: Event): Promise<Result>;
|
|
27
29
|
flush?(): Promise<void>;
|
|
30
|
+
teardown?(): Promise<void>;
|
|
28
31
|
}
|
|
29
32
|
export type Plugin<T = CoreClient, U = Config> = BeforePlugin<T, U> | EnrichmentPlugin<T, U> | DestinationPlugin<T, U>;
|
|
30
33
|
//# sourceMappingURL=plugin.d.ts.map
|
package/lib/cjs/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,WAAW,gBAAgB;CAC5B;AAED,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,UAAU,EAAE,CAAC,GAAG,MAAM;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,WAAW,gBAAgB;CAC5B;AAED,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,UAAU,EAAE,CAAC,GAAG,MAAM;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,UAAU,CAAC,MAAM,GAAG,QAAQ,CAAC;IACnC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,OAAO,CAAC,OAAO,E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1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":";;AAKA,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,uCAAyB,CAAA;IACzB,yCAA2B,CAAA;AAC7B,CAAC,EAJW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAIrB","sourcesContent":["import { Event } from './event';\nimport { Config } from './config';\nimport { Result } from './result';\nimport { CoreClient } from './client/core-client';\n\nexport enum PluginType {\n BEFORE = 'before',\n ENRICHMENT = 'enrichment',\n DESTINATION = 'destination',\n}\n\nexport interface BeforePlugin<T = CoreClient, U = Config> {\n name: string;\n type: PluginType.BEFORE;\n setup(config: U, client?: T): Promise<void>;\n execute(context: Event): Promise<Event | null>;\n}\n\nexport interface EnrichmentPlugin<T = CoreClient, U = Config> {\n name: string;\n type: PluginType.ENRICHMENT;\n setup(config: U, client?: T): Promise<void>;\n execute(context: Event): Promise<Event | null>;\n}\n\nexport interface DestinationPlugin<T = CoreClient, U = Config> {\n name: string;\n type: PluginType.DESTINATION;\n setup(config: U, client?: T): Promise<void>;\n execute(context: Event): Promise<Result>;\n flush?(): Promise<void>;\n}\n\nexport type Plugin<T = CoreClient, U = Config> = BeforePlugin<T, U> | EnrichmentPlugin<T, U> | DestinationPlugin<T, U>;\n"]}
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":";;AAKA,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,uCAAyB,CAAA;IACzB,yCAA2B,CAAA;AAC7B,CAAC,EAJW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAIrB","sourcesContent":["import { Event } from './event';\nimport { Config } from './config';\nimport { Result } from './result';\nimport { CoreClient } from './client/core-client';\n\nexport enum PluginType {\n BEFORE = 'before',\n ENRICHMENT = 'enrichment',\n DESTINATION = 'destination',\n}\n\nexport interface BeforePlugin<T = CoreClient, U = Config> {\n name: string;\n type: PluginType.BEFORE | 'before';\n setup(config: U, client?: T): Promise<void>;\n execute(context: Event): Promise<Event | null>;\n teardown?(): Promise<void>;\n}\n\nexport interface EnrichmentPlugin<T = CoreClient, U = Config> {\n name: string;\n type: PluginType.ENRICHMENT | 'enrichment';\n setup(config: U, client?: T): Promise<void>;\n execute(context: Event): Promise<Event | null>;\n teardown?(): Promise<void>;\n}\n\nexport interface DestinationPlugin<T = CoreClient, U = Config> {\n name: string;\n type: PluginType.DESTINATION | 'destination';\n setup(config: U, client?: T): Promise<void>;\n execute(context: Event): Promise<Result>;\n flush?(): Promise<void>;\n teardown?(): Promise<void>;\n}\n\nexport type Plugin<T = CoreClient, U = Config> = BeforePlugin<T, U> | EnrichmentPlugin<T, U> | DestinationPlugin<T, U>;\n"]}
|
|
@@ -3,6 +3,7 @@ import { BrowserConfig, TrackingOptions } from './browser';
|
|
|
3
3
|
export interface ReactNativeConfig extends BrowserConfig {
|
|
4
4
|
trackingOptions: ReactNativeTrackingOptions;
|
|
5
5
|
trackingSessionEvents?: boolean;
|
|
6
|
+
migrateLegacyData?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export interface ReactNativeTrackingOptions extends TrackingOptions {
|
|
8
9
|
adid?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-native.d.ts","sourceRoot":"","sources":["../../../src/config/react-native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE3D,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,eAAe,EAAE,0BAA0B,CAAC;IAC5C,qBAAqB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"react-native.d.ts","sourceRoot":"","sources":["../../../src/config/react-native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE3D,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,eAAe,EAAE,0BAA0B,CAAC;IAC5C,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,0BAA2B,SAAQ,eAAe;IACjE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,KAAK,aAAa,GAAG,QAAQ,GAAG,aAAa,CAAC;AAE9C,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,aAAa,CAAC;IACzF,SAAS,CAAC,EAAE,aAAa,GAAG,MAAM,OAAO,aAAa,CAAC;CACxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-native.js","sourceRoot":"","sources":["../../../src/config/react-native.ts"],"names":[],"mappings":"","sourcesContent":["import { TransportType } from '../transport';\nimport { BrowserConfig, TrackingOptions } from './browser';\n\nexport interface ReactNativeConfig extends BrowserConfig {\n trackingOptions: ReactNativeTrackingOptions;\n trackingSessionEvents?: boolean;\n}\n\nexport interface ReactNativeTrackingOptions extends TrackingOptions {\n adid?: boolean;\n carrier?: boolean;\n appSetId?: boolean;\n idfv?: boolean;\n}\n\ntype HiddenOptions = 'apiKey' | 'lastEventId';\n\nexport interface ReactNativeOptions extends Omit<Partial<ReactNativeConfig>, HiddenOptions> {\n transport?: TransportType | keyof typeof TransportType;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"react-native.js","sourceRoot":"","sources":["../../../src/config/react-native.ts"],"names":[],"mappings":"","sourcesContent":["import { TransportType } from '../transport';\nimport { BrowserConfig, TrackingOptions } from './browser';\n\nexport interface ReactNativeConfig extends BrowserConfig {\n trackingOptions: ReactNativeTrackingOptions;\n trackingSessionEvents?: boolean;\n migrateLegacyData?: boolean;\n}\n\nexport interface ReactNativeTrackingOptions extends TrackingOptions {\n adid?: boolean;\n carrier?: boolean;\n appSetId?: boolean;\n idfv?: boolean;\n}\n\ntype HiddenOptions = 'apiKey' | 'lastEventId';\n\nexport interface ReactNativeOptions extends Omit<Partial<ReactNativeConfig>, HiddenOptions> {\n transport?: TransportType | keyof typeof TransportType;\n}\n"]}
|
package/lib/esm/plugin.d.ts
CHANGED
|
@@ -9,22 +9,25 @@ export declare enum PluginType {
|
|
|
9
9
|
}
|
|
10
10
|
export interface BeforePlugin<T = CoreClient, U = Config> {
|
|
11
11
|
name: string;
|
|
12
|
-
type: PluginType.BEFORE;
|
|
12
|
+
type: PluginType.BEFORE | 'before';
|
|
13
13
|
setup(config: U, client?: T): Promise<void>;
|
|
14
14
|
execute(context: Event): Promise<Event | null>;
|
|
15
|
+
teardown?(): Promise<void>;
|
|
15
16
|
}
|
|
16
17
|
export interface EnrichmentPlugin<T = CoreClient, U = Config> {
|
|
17
18
|
name: string;
|
|
18
|
-
type: PluginType.ENRICHMENT;
|
|
19
|
+
type: PluginType.ENRICHMENT | 'enrichment';
|
|
19
20
|
setup(config: U, client?: T): Promise<void>;
|
|
20
21
|
execute(context: Event): Promise<Event | null>;
|
|
22
|
+
teardown?(): Promise<void>;
|
|
21
23
|
}
|
|
22
24
|
export interface DestinationPlugin<T = CoreClient, U = Config> {
|
|
23
25
|
name: string;
|
|
24
|
-
type: PluginType.DESTINATION;
|
|
26
|
+
type: PluginType.DESTINATION | 'destination';
|
|
25
27
|
setup(config: U, client?: T): Promise<void>;
|
|
26
28
|
execute(context: Event): Promise<Result>;
|
|
27
29
|
flush?(): Promise<void>;
|
|
30
|
+
teardown?(): Promise<void>;
|
|
28
31
|
}
|
|
29
32
|
export type Plugin<T = CoreClient, U = Config> = BeforePlugin<T, U> | EnrichmentPlugin<T, U> | DestinationPlugin<T, U>;
|
|
30
33
|
//# sourceMappingURL=plugin.d.ts.map
|
package/lib/esm/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,WAAW,gBAAgB;CAC5B;AAED,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,UAAU,EAAE,CAAC,GAAG,MAAM;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,WAAW,gBAAgB;CAC5B;AAED,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,UAAU,EAAE,CAAC,GAAG,MAAM;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,UAAU,CAAC,MAAM,GAAG,QAAQ,CAAC;IACnC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC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/lib/esm/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":"AAKA,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,uCAAyB,CAAA;IACzB,yCAA2B,CAAA;AAC7B,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB","sourcesContent":["import { Event } from './event';\nimport { Config } from './config';\nimport { Result } from './result';\nimport { CoreClient } from './client/core-client';\n\nexport enum PluginType {\n BEFORE = 'before',\n ENRICHMENT = 'enrichment',\n DESTINATION = 'destination',\n}\n\nexport interface BeforePlugin<T = CoreClient, U = Config> {\n name: string;\n type: PluginType.BEFORE;\n setup(config: U, client?: T): Promise<void>;\n execute(context: Event): Promise<Event | null>;\n}\n\nexport interface EnrichmentPlugin<T = CoreClient, U = Config> {\n name: string;\n type: PluginType.ENRICHMENT;\n setup(config: U, client?: T): Promise<void>;\n execute(context: Event): Promise<Event | null>;\n}\n\nexport interface DestinationPlugin<T = CoreClient, U = Config> {\n name: string;\n type: PluginType.DESTINATION;\n setup(config: U, client?: T): Promise<void>;\n execute(context: Event): Promise<Result>;\n flush?(): Promise<void>;\n}\n\nexport type Plugin<T = CoreClient, U = Config> = BeforePlugin<T, U> | EnrichmentPlugin<T, U> | DestinationPlugin<T, U>;\n"]}
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":"AAKA,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,uCAAyB,CAAA;IACzB,yCAA2B,CAAA;AAC7B,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB","sourcesContent":["import { Event } from './event';\nimport { Config } from './config';\nimport { Result } from './result';\nimport { CoreClient } from './client/core-client';\n\nexport enum PluginType {\n BEFORE = 'before',\n ENRICHMENT = 'enrichment',\n DESTINATION = 'destination',\n}\n\nexport interface BeforePlugin<T = CoreClient, U = Config> {\n name: string;\n type: PluginType.BEFORE | 'before';\n setup(config: U, client?: T): Promise<void>;\n execute(context: Event): Promise<Event | null>;\n teardown?(): Promise<void>;\n}\n\nexport interface EnrichmentPlugin<T = CoreClient, U = Config> {\n name: string;\n type: PluginType.ENRICHMENT | 'enrichment';\n setup(config: U, client?: T): Promise<void>;\n execute(context: Event): Promise<Event | null>;\n teardown?(): Promise<void>;\n}\n\nexport interface DestinationPlugin<T = CoreClient, U = Config> {\n name: string;\n type: PluginType.DESTINATION | 'destination';\n setup(config: U, client?: T): Promise<void>;\n execute(context: Event): Promise<Result>;\n flush?(): Promise<void>;\n teardown?(): Promise<void>;\n}\n\nexport type Plugin<T = CoreClient, U = Config> = BeforePlugin<T, U> | EnrichmentPlugin<T, U> | DestinationPlugin<T, U>;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amplitude/analytics-types",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Amplitude Inc",
|
|
6
6
|
"homepage": "https://github.com/amplitude/Amplitude-TypeScript",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"files": [
|
|
36
36
|
"lib"
|
|
37
37
|
],
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "2957c0bbbce4dffc2e3f0f4767cf9d443bafd62c"
|
|
39
39
|
}
|