@snowplow/react-native-tracker 4.0.2-dev.1 → 4.1.1-dev.0
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/README.md +38 -30
- package/dist/commonjs/constants.js +20 -0
- package/dist/commonjs/constants.js.map +1 -0
- package/dist/commonjs/plugins/app_context/index.js +47 -0
- package/dist/commonjs/plugins/app_context/index.js.map +1 -0
- package/dist/commonjs/plugins/app_install/index.js +60 -0
- package/dist/commonjs/plugins/app_install/index.js.map +1 -0
- package/dist/commonjs/plugins/app_lifecycle/index.js +126 -0
- package/dist/commonjs/plugins/app_lifecycle/index.js.map +1 -0
- package/dist/commonjs/plugins/deep_links/index.js +64 -0
- package/dist/commonjs/plugins/deep_links/index.js.map +1 -0
- package/dist/commonjs/plugins/platform_context/index.js +749 -0
- package/dist/commonjs/plugins/platform_context/index.js.map +1 -0
- package/dist/commonjs/plugins/session/index.js +197 -0
- package/dist/commonjs/plugins/session/index.js.map +1 -0
- package/dist/commonjs/plugins.js +147 -0
- package/dist/commonjs/plugins.js.map +1 -0
- package/dist/commonjs/subject.js.map +1 -1
- package/dist/commonjs/tracker.js +118 -7
- package/dist/commonjs/tracker.js.map +1 -1
- package/dist/commonjs/types.js +90 -0
- package/dist/commonjs/types.js.map +1 -1
- package/dist/commonjs/utils.js +35 -0
- package/dist/commonjs/utils.js.map +1 -0
- package/dist/module/constants.js +16 -0
- package/dist/module/constants.js.map +1 -0
- package/dist/module/plugins/app_context/index.js +44 -0
- package/dist/module/plugins/app_context/index.js.map +1 -0
- package/dist/module/plugins/app_install/index.js +56 -0
- package/dist/module/plugins/app_install/index.js.map +1 -0
- package/dist/module/plugins/app_lifecycle/index.js +122 -0
- package/dist/module/plugins/app_lifecycle/index.js.map +1 -0
- package/dist/module/plugins/deep_links/index.js +60 -0
- package/dist/module/plugins/deep_links/index.js.map +1 -0
- package/dist/module/plugins/platform_context/index.js +745 -0
- package/dist/module/plugins/platform_context/index.js.map +1 -0
- package/dist/module/plugins/session/index.js +192 -0
- package/dist/module/plugins/session/index.js.map +1 -0
- package/dist/module/plugins.js +143 -0
- package/dist/module/plugins.js.map +1 -0
- package/dist/module/subject.js.map +1 -1
- package/dist/module/tracker.js +116 -7
- package/dist/module/tracker.js.map +1 -1
- package/dist/module/types.js +40 -0
- package/dist/module/types.js.map +1 -1
- package/dist/module/utils.js +31 -0
- package/dist/module/utils.js.map +1 -0
- package/dist/typescript/commonjs/src/constants.d.ts +14 -0
- package/dist/typescript/commonjs/src/constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/plugins/app_context/index.d.ts +11 -0
- package/dist/typescript/commonjs/src/plugins/app_context/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/plugins/app_install/index.d.ts +10 -0
- package/dist/typescript/commonjs/src/plugins/app_install/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/plugins/app_lifecycle/index.d.ts +13 -0
- package/dist/typescript/commonjs/src/plugins/app_lifecycle/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/plugins/deep_links/index.d.ts +8 -0
- package/dist/typescript/commonjs/src/plugins/deep_links/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/plugins/platform_context/index.d.ts +12 -0
- package/dist/typescript/commonjs/src/plugins/platform_context/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/plugins/session/index.d.ts +19 -0
- package/dist/typescript/commonjs/src/plugins/session/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/plugins.d.ts +6 -0
- package/dist/typescript/commonjs/src/plugins.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/subject.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/tracker.d.ts +21 -2
- package/dist/typescript/commonjs/src/tracker.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/types.d.ts +334 -2
- package/dist/typescript/commonjs/src/types.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/utils.d.ts +3 -0
- package/dist/typescript/commonjs/src/utils.d.ts.map +1 -0
- package/dist/typescript/module/src/constants.d.ts +14 -0
- package/dist/typescript/module/src/constants.d.ts.map +1 -0
- package/dist/typescript/module/src/plugins/app_context/index.d.ts +11 -0
- package/dist/typescript/module/src/plugins/app_context/index.d.ts.map +1 -0
- package/dist/typescript/module/src/plugins/app_install/index.d.ts +10 -0
- package/dist/typescript/module/src/plugins/app_install/index.d.ts.map +1 -0
- package/dist/typescript/module/src/plugins/app_lifecycle/index.d.ts +13 -0
- package/dist/typescript/module/src/plugins/app_lifecycle/index.d.ts.map +1 -0
- package/dist/typescript/module/src/plugins/deep_links/index.d.ts +8 -0
- package/dist/typescript/module/src/plugins/deep_links/index.d.ts.map +1 -0
- package/dist/typescript/module/src/plugins/platform_context/index.d.ts +12 -0
- package/dist/typescript/module/src/plugins/platform_context/index.d.ts.map +1 -0
- package/dist/typescript/module/src/plugins/session/index.d.ts +19 -0
- package/dist/typescript/module/src/plugins/session/index.d.ts.map +1 -0
- package/dist/typescript/module/src/plugins.d.ts +6 -0
- package/dist/typescript/module/src/plugins.d.ts.map +1 -0
- package/dist/typescript/module/src/subject.d.ts.map +1 -1
- package/dist/typescript/module/src/tracker.d.ts +21 -2
- package/dist/typescript/module/src/tracker.d.ts.map +1 -1
- package/dist/typescript/module/src/types.d.ts +334 -2
- package/dist/typescript/module/src/types.d.ts.map +1 -1
- package/dist/typescript/module/src/utils.d.ts +3 -0
- package/dist/typescript/module/src/utils.d.ts.map +1 -0
- package/package.json +8 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BrowserPlugin, BrowserPluginConfiguration } from '@snowplow/browser-tracker-core';
|
|
2
|
+
import { ConditionalContextProvider, ContextPrimitive, PageViewEvent, SelfDescribingJson, StructuredEvent } from '@snowplow/tracker-core';
|
|
2
3
|
/**
|
|
3
4
|
* Configuration for the event store
|
|
4
5
|
*/
|
|
@@ -31,6 +32,43 @@ export interface SessionConfiguration {
|
|
|
31
32
|
*/
|
|
32
33
|
backgroundSessionTimeout?: number;
|
|
33
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Configuration for app lifecycle tracking
|
|
37
|
+
*/
|
|
38
|
+
export interface AppLifecycleConfiguration {
|
|
39
|
+
/**
|
|
40
|
+
* Whether to automatically track app lifecycle events (app foreground and background events).
|
|
41
|
+
* Also adds a lifecycle context entity to all events.
|
|
42
|
+
*
|
|
43
|
+
* Foreground event schema: `iglu:com.snowplowanalytics.snowplow/application_foreground/jsonschema/1-0-0`
|
|
44
|
+
* Background event schema: `iglu:com.snowplowanalytics.snowplow/application_background/jsonschema/1-0-0`
|
|
45
|
+
* Context entity schema: `iglu:com.snowplowanalytics.mobile/application_lifecycle/jsonschema/1-0-0`
|
|
46
|
+
*
|
|
47
|
+
* @defaultValue true
|
|
48
|
+
*/
|
|
49
|
+
lifecycleAutotracking?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Whether to automatically track app install event on first run.
|
|
52
|
+
*
|
|
53
|
+
* Schema: `iglu:com.snowplowanalytics.mobile/application_install/jsonschema/1-0-0`
|
|
54
|
+
*
|
|
55
|
+
* @defaultValue false
|
|
56
|
+
*/
|
|
57
|
+
installAutotracking?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Version number of the application e.g 1.1.0 (semver or git commit hash).
|
|
60
|
+
*
|
|
61
|
+
* Entity schema if `appBuild` property is set: `iglu:com.snowplowanalytics.mobile/application/jsonschema/1-0-0`
|
|
62
|
+
* Entity schema if `appBuild` property is not set: `iglu:com.snowplowanalytics.snowplow/application/jsonschema/1-0-0`
|
|
63
|
+
*/
|
|
64
|
+
appVersion?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Build name of the application e.g s9f2k2d or 1.1.0 beta
|
|
67
|
+
*
|
|
68
|
+
* Entity schema: `iglu:com.snowplowanalytics.mobile/application/jsonschema/1-0-0`
|
|
69
|
+
*/
|
|
70
|
+
appBuild?: string;
|
|
71
|
+
}
|
|
34
72
|
/**
|
|
35
73
|
* The configuration object for initialising the tracker
|
|
36
74
|
*/
|
|
@@ -44,6 +82,190 @@ export interface TrackerConfiguration {
|
|
|
44
82
|
* @defaultValue false
|
|
45
83
|
**/
|
|
46
84
|
encodeBase64?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Inject plugins which will be evaluated for each event
|
|
87
|
+
* @defaultValue []
|
|
88
|
+
*/
|
|
89
|
+
plugins?: BrowserPlugin[];
|
|
90
|
+
}
|
|
91
|
+
export declare enum PlatformContextProperty {
|
|
92
|
+
/**
|
|
93
|
+
* The carrier of the SIM inserted in the device.
|
|
94
|
+
* Note: this property is not automatically assigned but can be assigned using the PlatformContextRetriever.
|
|
95
|
+
*/
|
|
96
|
+
Carrier = "carrier",
|
|
97
|
+
/**
|
|
98
|
+
* Type of network the device is connected to.
|
|
99
|
+
* Note: this property is not automatically assigned but can be assigned using the PlatformContextRetriever.
|
|
100
|
+
*/
|
|
101
|
+
NetworkType = "networkType",
|
|
102
|
+
/**
|
|
103
|
+
* Radio access technology that the device is using.
|
|
104
|
+
* Note: this property is not automatically assigned but can be assigned using the PlatformContextRetriever.
|
|
105
|
+
*/
|
|
106
|
+
NetworkTechnology = "networkTechnology",
|
|
107
|
+
/**
|
|
108
|
+
* Advertising identifier on iOS.
|
|
109
|
+
* Note: this property is not automatically assigned but can be assigned using the PlatformContextRetriever.
|
|
110
|
+
*/
|
|
111
|
+
AppleIdfa = "appleIdfa",
|
|
112
|
+
/**
|
|
113
|
+
* UUID identifier for vendors on iOS.
|
|
114
|
+
* Note: this property is not automatically assigned but can be assigned using the PlatformContextRetriever.
|
|
115
|
+
*/
|
|
116
|
+
AppleIdfv = "appleIdfv",
|
|
117
|
+
/**
|
|
118
|
+
* Total physical system memory in bytes.
|
|
119
|
+
* Note: this property is not automatically assigned but can be assigned using the PlatformContextRetriever.
|
|
120
|
+
*/
|
|
121
|
+
PhysicalMemory = "physicalMemory",
|
|
122
|
+
/**
|
|
123
|
+
* Amount of memory in bytes available to the current app.
|
|
124
|
+
* The property is not tracked in the current version of the tracker due to the tracker not being able to access the API, see the issue here: https://github.com/snowplow/snowplow-ios-tracker/issues/772
|
|
125
|
+
* Note: this property is not automatically assigned but can be assigned using the PlatformContextRetriever.
|
|
126
|
+
*/
|
|
127
|
+
AppAvailableMemory = "appAvailableMemory",
|
|
128
|
+
/**
|
|
129
|
+
* Remaining battery level as an integer percentage of total battery capacity.
|
|
130
|
+
* Note: this property is not automatically assigned but can be assigned using the PlatformContextRetriever.
|
|
131
|
+
*/
|
|
132
|
+
BatteryLevel = "batteryLevel",
|
|
133
|
+
/**
|
|
134
|
+
* Battery state for the device.
|
|
135
|
+
* Note: this property is not automatically assigned but can be assigned using the PlatformContextRetriever.
|
|
136
|
+
*/
|
|
137
|
+
BatteryState = "batteryState",
|
|
138
|
+
/** A Boolean indicating whether Low Power Mode is enabled. */
|
|
139
|
+
LowPowerMode = "lowPowerMode",
|
|
140
|
+
/**
|
|
141
|
+
* Bytes of storage remaining.
|
|
142
|
+
* Note: This is not automatically assigned by the tracker as it may be considered as fingerprinting. You can assign it using the PlatformContextRetriever.
|
|
143
|
+
*/
|
|
144
|
+
AvailableStorage = "availableStorage",
|
|
145
|
+
/**
|
|
146
|
+
* Total size of storage in bytes.
|
|
147
|
+
* Note: This is not automatically assigned by the tracker as it may be considered as fingerprinting. You can assign it using the PlatformContextRetriever.
|
|
148
|
+
*/
|
|
149
|
+
TotalStorage = "totalStorage",
|
|
150
|
+
/**
|
|
151
|
+
* A Boolean indicating whether the device orientation is portrait (either upright or upside down).
|
|
152
|
+
* Note: This is not automatically assigned by the tracker as it may be considered as fingerprinting. You can assign it using the PlatformContextRetriever.
|
|
153
|
+
*/
|
|
154
|
+
IsPortrait = "isPortrait",
|
|
155
|
+
/**
|
|
156
|
+
* Screen resolution in pixels. Arrives in the form of WIDTHxHEIGHT (e.g., 1200x900). Doesn't change when device orientation changes.
|
|
157
|
+
* Note: This is not automatically assigned by the tracker as it may be considered as fingerprinting. You can assign it using the PlatformContextRetriever.
|
|
158
|
+
*/
|
|
159
|
+
Resolution = "resolution",
|
|
160
|
+
/**
|
|
161
|
+
* Scale factor used to convert logical coordinates to device coordinates of the screen (uses UIScreen.scale on iOS).
|
|
162
|
+
*/
|
|
163
|
+
Scale = "scale",
|
|
164
|
+
/**
|
|
165
|
+
* System language currently used on the device (ISO 639).
|
|
166
|
+
*/
|
|
167
|
+
Language = "language",
|
|
168
|
+
/**
|
|
169
|
+
* Advertising identifier on Android.
|
|
170
|
+
* Note: This is not automatically assigned by the tracker as it may be considered as fingerprinting. You can assign it using the PlatformContextRetriever.
|
|
171
|
+
*/
|
|
172
|
+
AndroidIdfa = "androidIdfa",
|
|
173
|
+
/**
|
|
174
|
+
* Available memory on the system in bytes (Android only).
|
|
175
|
+
* Note: This is not automatically assigned by the tracker as it may be considered as fingerprinting. You can assign it using the PlatformContextRetriever.
|
|
176
|
+
*/
|
|
177
|
+
SystemAvailableMemory = "systemAvailableMemory",
|
|
178
|
+
/**
|
|
179
|
+
* Android vendor ID scoped to the set of apps published under the same Google Play developer account (see https://developer.android.com/training/articles/app-set-id).
|
|
180
|
+
* Note: This is not automatically assigned by the tracker as it may be considered as fingerprinting. You can assign it using the PlatformContextRetriever.
|
|
181
|
+
*/
|
|
182
|
+
AppSetId = "appSetId",
|
|
183
|
+
/**
|
|
184
|
+
* Scope of the `appSetId`. Can be scoped to the app or to a developer account on an app store (all apps from the same developer on the same device will have the same ID).
|
|
185
|
+
* Note: This is not automatically assigned by the tracker as it may be considered as fingerprinting. You can assign it using the PlatformContextRetriever.
|
|
186
|
+
*/
|
|
187
|
+
AppSetIdScope = "appSetIdScope"
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Overrides for the values for properties of the platform context.
|
|
191
|
+
*/
|
|
192
|
+
export interface PlatformContextRetriever {
|
|
193
|
+
/** Operating system type (e.g., ios, tvos, watchos, osx, android) */
|
|
194
|
+
getOsType?: () => Promise<string>;
|
|
195
|
+
/** The current version of the operating system */
|
|
196
|
+
getOsVersion?: () => Promise<string>;
|
|
197
|
+
/** The end-user-visible name for the end product */
|
|
198
|
+
getDeviceModel?: () => Promise<string>;
|
|
199
|
+
/** The manufacturer of the product/hardware */
|
|
200
|
+
getDeviceManufacturer?: () => Promise<string>;
|
|
201
|
+
/** The carrier of the SIM inserted in the device */
|
|
202
|
+
getCarrier?: () => Promise<string | undefined>;
|
|
203
|
+
/** Type of network the device is connected to */
|
|
204
|
+
getNetworkType?: () => Promise<'mobile' | 'wifi' | 'offline' | undefined>;
|
|
205
|
+
/** Radio access technology that the device is using */
|
|
206
|
+
getNetworkTechnology?: () => Promise<string | undefined>;
|
|
207
|
+
/** Advertising identifier on iOS (UUID formatted string) */
|
|
208
|
+
getAppleIdfa?: () => Promise<string | undefined>;
|
|
209
|
+
/** UUID identifier for vendors on iOS */
|
|
210
|
+
getAppleIdfv?: () => Promise<string | undefined>;
|
|
211
|
+
/** Bytes of storage remaining */
|
|
212
|
+
getAvailableStorage?: () => Promise<number | undefined>;
|
|
213
|
+
/** Total size of storage in bytes */
|
|
214
|
+
getTotalStorage?: () => Promise<number | undefined>;
|
|
215
|
+
/** Total physical system memory in bytes */
|
|
216
|
+
getPhysicalMemory?: () => Promise<number | undefined>;
|
|
217
|
+
/** Amount of memory in bytes available to the current app */
|
|
218
|
+
getAppAvailableMemory?: () => Promise<number | undefined>;
|
|
219
|
+
/** Remaining battery level as an integer percentage of total battery capacity */
|
|
220
|
+
getBatteryLevel?: () => Promise<number | undefined>;
|
|
221
|
+
/** Battery state for the device */
|
|
222
|
+
getBatteryState?: () => Promise<'unplugged' | 'charging' | 'full' | undefined>;
|
|
223
|
+
/** A Boolean indicating whether Low Power Mode is enabled */
|
|
224
|
+
getLowPowerMode?: () => Promise<boolean | undefined>;
|
|
225
|
+
/** A Boolean indicating whether the device orientation is portrait (either upright or upside down) */
|
|
226
|
+
isPortrait?: () => Promise<boolean | undefined>;
|
|
227
|
+
/** Screen resolution in pixels. Arrives in the form of WIDTHxHEIGHT (e.g., 1200x900). Doesn't change when device orientation changes */
|
|
228
|
+
getResolution?: () => Promise<string | undefined>;
|
|
229
|
+
/** Scale factor used to convert logical coordinates to device coordinates of the screen (uses UIScreen.scale on iOS) */
|
|
230
|
+
getScale?: () => Promise<number | undefined>;
|
|
231
|
+
/** System language currently used on the device (ISO 639) */
|
|
232
|
+
getLanguage?: () => Promise<string | undefined>;
|
|
233
|
+
/** Advertising identifier on Android. */
|
|
234
|
+
getAndroidIdfa?: () => Promise<string | undefined>;
|
|
235
|
+
/** Available memory on the system in bytes (Android only). */
|
|
236
|
+
getSystemAvailableMemory?: () => Promise<number | undefined>;
|
|
237
|
+
/** Android vendor ID scoped to the set of apps published under the same Google Play developer account (see https://developer.android.com/training/articles/app-set-id). */
|
|
238
|
+
getAppSetId?: () => Promise<string | undefined>;
|
|
239
|
+
/** Scope of the `appSetId`. Can be scoped to the app or to a developer account on an app store (all apps from the same developer on the same device will have the same ID). */
|
|
240
|
+
getAppSetIdScope?: () => Promise<string | undefined>;
|
|
241
|
+
}
|
|
242
|
+
export interface PlatformContextConfiguration {
|
|
243
|
+
/**
|
|
244
|
+
* Whether to track the mobile context with information about the device.
|
|
245
|
+
* Note: Only some properties (osType, osVersion, deviceManufacturer, deviceModel, resolution, language, scale) will be tracked by default. Other properties can be assigned using the PlatformContextRetriever.
|
|
246
|
+
* @defaultValue true
|
|
247
|
+
*/
|
|
248
|
+
platformContext?: boolean;
|
|
249
|
+
/**
|
|
250
|
+
* List of properties of the platform context to track. If not passed and `platformContext` is enabled, all available properties will be tracked.
|
|
251
|
+
* The required `osType`, `osVersion`, `deviceManufacturer`, and `deviceModel` properties will be tracked in the entity regardless of this setting.
|
|
252
|
+
*/
|
|
253
|
+
platformContextProperties?: PlatformContextProperty[];
|
|
254
|
+
/**
|
|
255
|
+
* Set of callbacks to be used to retrieve properties of the platform context.
|
|
256
|
+
* Overrides the tracker implementation for setting the properties.
|
|
257
|
+
*/
|
|
258
|
+
platformContextRetriever?: PlatformContextRetriever;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Configuration for deep link tracking
|
|
262
|
+
*/
|
|
263
|
+
export interface DeepLinkConfiguration {
|
|
264
|
+
/**
|
|
265
|
+
* Whether to track the deep link context entity with information from the deep link received event on the first screen view event.
|
|
266
|
+
* @defaultValue true
|
|
267
|
+
*/
|
|
268
|
+
deepLinkContext?: boolean;
|
|
47
269
|
}
|
|
48
270
|
/**
|
|
49
271
|
* Configuration of subject properties tracked with events
|
|
@@ -304,10 +526,51 @@ export declare type DeepLinkReceivedProps = {
|
|
|
304
526
|
*/
|
|
305
527
|
referrer?: string;
|
|
306
528
|
};
|
|
529
|
+
/**
|
|
530
|
+
* Current session state that is tracked in events.
|
|
531
|
+
*/
|
|
532
|
+
export interface SessionState {
|
|
533
|
+
/**
|
|
534
|
+
* An identifier for the user of the session
|
|
535
|
+
*/
|
|
536
|
+
userId: string;
|
|
537
|
+
/**
|
|
538
|
+
* An identifier for the session
|
|
539
|
+
*/
|
|
540
|
+
sessionId: string;
|
|
541
|
+
/**
|
|
542
|
+
* The index of the current session for this user
|
|
543
|
+
*/
|
|
544
|
+
sessionIndex: number;
|
|
545
|
+
/**
|
|
546
|
+
* Optional index of the current event in the session
|
|
547
|
+
*/
|
|
548
|
+
eventIndex?: number;
|
|
549
|
+
/**
|
|
550
|
+
* The previous session identifier for this user
|
|
551
|
+
*/
|
|
552
|
+
previousSessionId?: string;
|
|
553
|
+
/**
|
|
554
|
+
* The mechanism that the session information has been stored on the device
|
|
555
|
+
*/
|
|
556
|
+
storageMechanism: string;
|
|
557
|
+
/**
|
|
558
|
+
* The optional identifier of the first event for this session
|
|
559
|
+
*/
|
|
560
|
+
firstEventId?: string;
|
|
561
|
+
/**
|
|
562
|
+
* Optional date-time timestamp of when the first event in the session was tracked
|
|
563
|
+
*/
|
|
564
|
+
firstEventTimestamp?: string;
|
|
565
|
+
}
|
|
307
566
|
/**
|
|
308
567
|
* The ReactNativeTracker type
|
|
309
568
|
*/
|
|
310
569
|
export declare type ReactNativeTracker = {
|
|
570
|
+
/**
|
|
571
|
+
* The namespace of the tracker
|
|
572
|
+
*/
|
|
573
|
+
namespace: string;
|
|
311
574
|
/**
|
|
312
575
|
* Tracks a self-describing event
|
|
313
576
|
*
|
|
@@ -316,6 +579,27 @@ export declare type ReactNativeTracker = {
|
|
|
316
579
|
* @typeParam TData - The type of the data object within the SelfDescribing object
|
|
317
580
|
*/
|
|
318
581
|
readonly trackSelfDescribingEvent: <T extends Record<string, unknown> = Record<string, unknown>>(argmap: SelfDescribingJson<T>, contexts?: EventContext[]) => void;
|
|
582
|
+
/**
|
|
583
|
+
* Tracks a screen-view event
|
|
584
|
+
*
|
|
585
|
+
* @param argmap - The screen-view event's properties
|
|
586
|
+
* @param contexts - The array of event contexts
|
|
587
|
+
*/
|
|
588
|
+
readonly trackScreenViewEvent: (argmap: ScreenViewProps, contexts?: EventContext[]) => void;
|
|
589
|
+
/**
|
|
590
|
+
* Tracks a scroll changed event
|
|
591
|
+
*
|
|
592
|
+
* @param argmap - The scroll changed event's properties
|
|
593
|
+
* @param contexts - The array of event contexts
|
|
594
|
+
*/
|
|
595
|
+
readonly trackScrollChangedEvent: (argmap: ScrollChangedProps, contexts?: EventContext[]) => void;
|
|
596
|
+
/**
|
|
597
|
+
* Tracks a list item view event
|
|
598
|
+
*
|
|
599
|
+
* @param argmap - The list item view event's properties
|
|
600
|
+
* @param contexts - The array of event contexts
|
|
601
|
+
*/
|
|
602
|
+
readonly trackListItemViewEvent: (argmap: ListItemViewProps, contexts?: EventContext[]) => void;
|
|
319
603
|
/**
|
|
320
604
|
* Tracks a structured event
|
|
321
605
|
*
|
|
@@ -337,6 +621,13 @@ export declare type ReactNativeTracker = {
|
|
|
337
621
|
* @param contexts - The array of event contexts
|
|
338
622
|
*/
|
|
339
623
|
readonly trackTimingEvent: (argmap: TimingProps, contexts?: EventContext[]) => void;
|
|
624
|
+
/**
|
|
625
|
+
* Tracks a deep link received event
|
|
626
|
+
*
|
|
627
|
+
* @param argmap - The deep link received event properties
|
|
628
|
+
* @param contexts - The array of event contexts
|
|
629
|
+
*/
|
|
630
|
+
readonly trackDeepLinkReceivedEvent: (argmap: DeepLinkReceivedProps, contexts?: EventContext[]) => void;
|
|
340
631
|
/**
|
|
341
632
|
* Tracks a message notification event
|
|
342
633
|
*
|
|
@@ -362,7 +653,7 @@ export declare type ReactNativeTracker = {
|
|
|
362
653
|
* Add a plugin into the plugin collection after Core has already been initialised
|
|
363
654
|
* @param configuration - The plugin to add
|
|
364
655
|
*/
|
|
365
|
-
addPlugin(configuration:
|
|
656
|
+
addPlugin(configuration: BrowserPluginConfiguration): void;
|
|
366
657
|
/**
|
|
367
658
|
* Calls flush on all emitters in order to send all queued events to the collector
|
|
368
659
|
* @returns Promise<void> - Promise that resolves when all emitters have flushed
|
|
@@ -447,6 +738,47 @@ export declare type ReactNativeTracker = {
|
|
|
447
738
|
* @param config - The new subject data
|
|
448
739
|
*/
|
|
449
740
|
readonly setSubjectData: (config: SubjectConfiguration) => void;
|
|
741
|
+
/**
|
|
742
|
+
* Gets the identifier for the user of the session
|
|
743
|
+
*/
|
|
744
|
+
readonly getSessionUserId: () => Promise<string | undefined>;
|
|
745
|
+
/**
|
|
746
|
+
* Gets the identifier for the session
|
|
747
|
+
*/
|
|
748
|
+
readonly getSessionId: () => Promise<string | undefined>;
|
|
749
|
+
/**
|
|
750
|
+
* Gets the index of the current session for this user
|
|
751
|
+
*/
|
|
752
|
+
readonly getSessionIndex: () => Promise<number | undefined>;
|
|
753
|
+
/**
|
|
754
|
+
* Gets the current session state
|
|
755
|
+
*/
|
|
756
|
+
readonly getSessionState: () => Promise<SessionState | undefined>;
|
|
757
|
+
/**
|
|
758
|
+
* Gets whether the app is currently in background state
|
|
759
|
+
*/
|
|
760
|
+
readonly getIsInBackground: () => boolean | undefined;
|
|
761
|
+
/**
|
|
762
|
+
* Gets the number of background transitions in the current session
|
|
763
|
+
*/
|
|
764
|
+
readonly getBackgroundIndex: () => number | undefined;
|
|
765
|
+
/**
|
|
766
|
+
* Gets the number of foreground transitions in the current session.
|
|
767
|
+
*/
|
|
768
|
+
readonly getForegroundIndex: () => number | undefined;
|
|
769
|
+
/**
|
|
770
|
+
* Enables tracking the platform context with information about the device.
|
|
771
|
+
* Note: Only some properties (osType, osVersion, deviceManufacturer, deviceModel, resolution, language, scale) will be tracked by default. Other properties can be assigned using the PlatformContextRetriever.
|
|
772
|
+
*/
|
|
773
|
+
readonly enablePlatformContext: () => Promise<void>;
|
|
774
|
+
/**
|
|
775
|
+
* Disables tracking the platform context with information about the device.
|
|
776
|
+
*/
|
|
777
|
+
readonly disablePlatformContext: () => void;
|
|
778
|
+
/**
|
|
779
|
+
* Refreshes the platform context with the latest values.
|
|
780
|
+
*/
|
|
781
|
+
readonly refreshPlatformContext: () => Promise<void>;
|
|
450
782
|
};
|
|
451
783
|
export { version, PageViewEvent, StructuredEvent, FormFocusOrChangeEvent, SelfDescribingJson, Timestamp, PayloadBuilder, Payload, CorePlugin, CoreConfiguration, ContextGenerator, ContextFilter, EventPayloadAndContext, EventStore, EventStoreIterator, EventStorePayload, TrackerCore, Logger, EmitterConfiguration, EmitterConfigurationBase, EventJson, JsonProcessor, TrueTimestamp, DeviceTimestamp, EventMethod, RequestFailure, EventBatch, EventJsonWithKeys, LOG_LEVEL, ConditionalContextProvider, ContextPrimitive, CorePluginConfiguration, Emitter, FilterProvider, RuleSetProvider, RuleSet, } from '@snowplow/tracker-core';
|
|
452
784
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,gBAAgB,EAChB,uBAAuB,EACvB,aAAa,EACb,kBAAkB,EAClB,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;;;OAKG;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aAAa,EACb,sBAAsB,EACtB,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACX,MAAM,EACN,oBAAoB,EACpB,wBAAwB,EACxB,SAAS,EACT,aAAa,EACb,aAAa,EACb,eAAe,EACf,WAAW,EACX,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,SAAS,EACT,0BAA0B,EAC1B,gBAAgB,EAChB,uBAAuB,EACvB,OAAO,EACP,cAAc,EACd,eAAe,EACf,OAAO,GACR,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC3F,OAAO,EACL,0BAA0B,EAC1B,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;OAGG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;;;;;;;OASG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,yBAAyB;I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gBAAgB,EAChB,uBAAuB,EACvB,OAAO,EACP,cAAc,EACd,eAAe,EACf,OAAO,GACR,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAKxD,wBAAgB,eAAe,CAAC,EAAE,EAAE,cAAc,GAAG,MAAM,CAW1D"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const FOREGROUND_EVENT_SCHEMA = "iglu:com.snowplowanalytics.snowplow/application_foreground/jsonschema/1-0-0";
|
|
2
|
+
export declare const BACKGROUND_EVENT_SCHEMA = "iglu:com.snowplowanalytics.snowplow/application_background/jsonschema/1-0-0";
|
|
3
|
+
export declare const DEEP_LINK_RECEIVED_EVENT_SCHEMA = "iglu:com.snowplowanalytics.mobile/deep_link_received/jsonschema/1-0-0";
|
|
4
|
+
export declare const SCREEN_VIEW_EVENT_SCHEMA = "iglu:com.snowplowanalytics.mobile/screen_view/jsonschema/1-0-0";
|
|
5
|
+
export declare const APPLICATION_INSTALL_EVENT_SCHEMA = "iglu:com.snowplowanalytics.mobile/application_install/jsonschema/1-0-0";
|
|
6
|
+
export declare const CLIENT_SESSION_ENTITY_SCHEMA = "iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2";
|
|
7
|
+
export declare const MOBILE_CONTEXT_SCHEMA = "iglu:com.snowplowanalytics.snowplow/mobile_context/jsonschema/1-0-3";
|
|
8
|
+
export declare const DEEP_LINK_ENTITY_SCHEMA = "iglu:com.snowplowanalytics.mobile/deep_link/jsonschema/1-0-0";
|
|
9
|
+
export declare const LIFECYCLE_CONTEXT_SCHEMA = "iglu:com.snowplowanalytics.mobile/application_lifecycle/jsonschema/1-0-0";
|
|
10
|
+
export declare const MOBILE_APPLICATION_CONTEXT_SCHEMA = "iglu:com.snowplowanalytics.mobile/application/jsonschema/1-0-0";
|
|
11
|
+
export declare const APPLICATION_CONTEXT_SCHEMA = "iglu:com.snowplowanalytics.snowplow/application/jsonschema/1-0-0";
|
|
12
|
+
export declare const PAGE_URL_PROPERTY = "url";
|
|
13
|
+
export declare const PAGE_REFERRER_PROPERTY = "refr";
|
|
14
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,gFAAgF,CAAC;AACrH,eAAO,MAAM,uBAAuB,gFAAgF,CAAC;AACrH,eAAO,MAAM,+BAA+B,0EAA0E,CAAC;AACvH,eAAO,MAAM,wBAAwB,mEAAmE,CAAC;AACzG,eAAO,MAAM,gCAAgC,2EAA2E,CAAC;AAEzH,eAAO,MAAM,4BAA4B,wEAAuE,CAAA;AAChH,eAAO,MAAM,qBAAqB,wEAAwE,CAAC;AAC3G,eAAO,MAAM,uBAAuB,iEAAiE,CAAC;AACtG,eAAO,MAAM,wBAAwB,6EAA6E,CAAC;AACnH,eAAO,MAAM,iCAAiC,mEAAmE,CAAC;AAClH,eAAO,MAAM,0BAA0B,qEAAqE,CAAC;AAE7G,eAAO,MAAM,iBAAiB,QAAQ,CAAC;AACvC,eAAO,MAAM,sBAAsB,SAAS,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CorePluginConfiguration } from '@snowplow/tracker-core';
|
|
2
|
+
import { AppLifecycleConfiguration } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Tracks the application context entity with information about the app version.
|
|
5
|
+
* If appBuild is provided, a mobile application context is tracked, otherwise the Web equivalent is tracked.
|
|
6
|
+
*
|
|
7
|
+
* Entity schema if `appBuild` property is set: `iglu:com.snowplowanalytics.mobile/application/jsonschema/1-0-0`
|
|
8
|
+
* Entity schema if `appBuild` property is not set: `iglu:com.snowplowanalytics.snowplow/application/jsonschema/1-0-0`
|
|
9
|
+
*/
|
|
10
|
+
export declare function newAppContextPlugin({ appVersion, appBuild }: AppLifecycleConfiguration): CorePluginConfiguration;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/app_context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAsB,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAGxD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,yBAAyB,GAAG,uBAAuB,CAgChH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CorePluginConfiguration, TrackerCore } from '@snowplow/tracker-core';
|
|
2
|
+
import { AppLifecycleConfiguration, TrackerConfiguration } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Tracks an application install event on the first run of the app.
|
|
5
|
+
* Stores the install event in AsyncStorage to prevent tracking on subsequent runs.
|
|
6
|
+
*
|
|
7
|
+
* Event schema: `iglu:com.snowplowanalytics.mobile/application_install/jsonschema/1-0-0`
|
|
8
|
+
*/
|
|
9
|
+
export declare function newAppInstallPlugin({ namespace, installAutotracking }: TrackerConfiguration & AppLifecycleConfiguration, core: TrackerCore): CorePluginConfiguration;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/app_install/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,uBAAuB,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACxG,OAAO,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAI9E;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,EAAE,SAAS,EAAE,mBAA2B,EAAE,EAAE,oBAAoB,GAAG,yBAAyB,EAC5F,IAAI,EAAE,WAAW,GAChB,uBAAuB,CAsBzB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CorePluginConfiguration, TrackerCore } from '@snowplow/tracker-core';
|
|
2
|
+
import { AppLifecycleConfiguration } from '../../types';
|
|
3
|
+
export interface AppLifecyclePlugin extends CorePluginConfiguration {
|
|
4
|
+
getIsInBackground: () => boolean | undefined;
|
|
5
|
+
getBackgroundIndex: () => number | undefined;
|
|
6
|
+
getForegroundIndex: () => number | undefined;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Tracks foreground and background events automatically when the app state changes.
|
|
10
|
+
* Also adds a lifecycle context to all events with information about the app visibility.
|
|
11
|
+
*/
|
|
12
|
+
export declare function newAppLifecyclePlugin({ lifecycleAutotracking }: AppLifecycleConfiguration, core: TrackerCore): Promise<AppLifecyclePlugin>;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/app_lifecycle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,uBAAuB,EAEvB,WAAW,EACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,yBAAyB,EAAgB,MAAM,aAAa,CAAC;AAItE,MAAM,WAAW,kBAAmB,SAAQ,uBAAuB;IACjE,iBAAiB,EAAE,MAAM,OAAO,GAAG,SAAS,CAAC;IAC7C,kBAAkB,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IAC7C,kBAAkB,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;CAC9C;AAED;;;GAGG;AACH,wBAAsB,qBAAqB,CACzC,EAAE,qBAA4B,EAAE,EAAE,yBAAyB,EAC3D,IAAI,EAAE,WAAW,GAChB,OAAO,CAAC,kBAAkB,CAAC,CAyE7B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CorePluginConfiguration, TrackerCore } from '@snowplow/tracker-core';
|
|
2
|
+
import { DeepLinkConfiguration, DeepLinkReceivedProps, EventContext } from '../../types';
|
|
3
|
+
interface DeepLinksPlugin extends CorePluginConfiguration {
|
|
4
|
+
trackDeepLinkReceivedEvent: (argmap: DeepLinkReceivedProps, contexts?: EventContext[]) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function newDeepLinksPlugin({ deepLinkContext }: DeepLinkConfiguration, core: TrackerCore): DeepLinksPlugin;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/deep_links/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,uBAAuB,EAAkB,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACxH,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAIzF,UAAU,eAAgB,SAAQ,uBAAuB;IACvD,0BAA0B,EAAE,CAAC,MAAM,EAAE,qBAAqB,EAAE,QAAQ,CAAC,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;CAChG;AAED,wBAAgB,kBAAkB,CAChC,EAAE,eAAsB,EAAE,EAAE,qBAAqB,EACjD,IAAI,EAAE,WAAW,GAChB,eAAe,CAuDjB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CorePluginConfiguration } from '@snowplow/tracker-core';
|
|
2
|
+
import { PlatformContextConfiguration } from '../../types';
|
|
3
|
+
export interface PlatformContextPlugin extends CorePluginConfiguration {
|
|
4
|
+
enablePlatformContext: () => Promise<void>;
|
|
5
|
+
disablePlatformContext: () => void;
|
|
6
|
+
refreshPlatformContext: () => Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Tracks a mobile_context entity with all events if platformContext is enabled.
|
|
10
|
+
*/
|
|
11
|
+
export declare function newPlatformContextPlugin({ platformContext, platformContextProperties, platformContextRetriever, }?: PlatformContextConfiguration): Promise<PlatformContextPlugin>;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/platform_context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,4BAA4B,EAA2B,MAAM,aAAa,CAAC;AAKpF,MAAM,WAAW,qBAAsB,SAAQ,uBAAuB;IACpE,qBAAqB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,sBAAsB,EAAE,MAAM,IAAI,CAAC;IACnC,sBAAsB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7C;AAoFD;;GAEG;AACH,wBAAsB,wBAAwB,CAAC,EAC7C,eAAsB,EACtB,yBAAyB,EACzB,wBAAwB,GACzB,GAAE,4BAAiC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAiOpE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CorePluginConfiguration } from '@snowplow/tracker-core';
|
|
2
|
+
import { SessionConfiguration, SessionState, TrackerConfiguration } from '../../types';
|
|
3
|
+
interface SessionPlugin extends CorePluginConfiguration {
|
|
4
|
+
getSessionUserId: () => Promise<string | undefined>;
|
|
5
|
+
getSessionId: () => Promise<string | undefined>;
|
|
6
|
+
getSessionIndex: () => Promise<number | undefined>;
|
|
7
|
+
getSessionState: () => Promise<SessionState>;
|
|
8
|
+
startNewSession: () => Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new session plugin for tracking the session information.
|
|
12
|
+
* The plugin will add the session context to all events and start a new session if the current one has timed out.
|
|
13
|
+
*
|
|
14
|
+
* The session state is stored in AsyncStorage.
|
|
15
|
+
* Each restart of the app or creation of a new tracker instance will trigger a new session with reference to the previous session.
|
|
16
|
+
*/
|
|
17
|
+
export declare function newSessionPlugin({ namespace, foregroundSessionTimeout, backgroundSessionTimeout, }: TrackerConfiguration & SessionConfiguration): Promise<SessionPlugin>;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/session/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAkB,MAAM,wBAAwB,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAYvF,UAAU,aAAc,SAAQ,uBAAuB;IACrD,gBAAgB,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACpD,YAAY,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD,eAAe,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACnD,eAAe,EAAE,MAAM,OAAO,CAAC,YAAY,CAAC,CAAC;IAC7C,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC;AA4BD;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,EACrC,SAAS,EACT,wBAAwB,EACxB,wBAAwB,GACzB,EAAE,oBAAoB,GAAG,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC,CAiEtE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BrowserPluginConfiguration } from '@snowplow/browser-tracker-core';
|
|
2
|
+
import { TrackerCore } from '@snowplow/tracker-core';
|
|
3
|
+
export declare function newPlugins(namespace: string, core: TrackerCore): {
|
|
4
|
+
addPlugin: (plugin: BrowserPluginConfiguration) => void;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=plugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAkC,MAAM,gCAAgC,CAAC;AAC5G,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AA2DrD,wBAAgB,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW;wBAEvC,0BAA0B;EAQjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subject.d.ts","sourceRoot":"","sources":["../../../../src/subject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAkB,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC9F,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE3D,wBAAgB,UAAU,CAAC,IAAI,EAAE,WAAW,EAAE,aAAa,CAAC,EAAE,oBAAoB;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"subject.d.ts","sourceRoot":"","sources":["../../../../src/subject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAkB,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC9F,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE3D,wBAAgB,UAAU,CAAC,IAAI,EAAE,WAAW,EAAE,aAAa,CAAC,EAAE,oBAAoB;;;;;;;;;mCAY9C,MAAM,GAAG,SAAS;kCAInB,MAAM,GAAG,SAAS;+BAYrB,oBAAoB;oCARf,MAAM;;;EA+D1C"}
|
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import { EmitterConfiguration } from '@snowplow/tracker-core';
|
|
2
|
-
import {
|
|
2
|
+
import { ScreenTrackingConfiguration } from '@snowplow/browser-plugin-screen-tracking';
|
|
3
|
+
import { DeepLinkConfiguration, AppLifecycleConfiguration, EventStoreConfiguration, PlatformContextConfiguration, ReactNativeTracker, SessionConfiguration, SubjectConfiguration, TrackerConfiguration } from './types';
|
|
3
4
|
/**
|
|
4
5
|
* Creates a new tracker instance with the given configuration
|
|
5
6
|
* @param configuration - Configuration for the tracker
|
|
6
7
|
* @returns Tracker instance
|
|
7
8
|
*/
|
|
8
|
-
export declare function newTracker(configuration: TrackerConfiguration & EmitterConfiguration & SessionConfiguration & SubjectConfiguration & EventStoreConfiguration): Promise<ReactNativeTracker>;
|
|
9
|
+
export declare function newTracker(configuration: TrackerConfiguration & EmitterConfiguration & SessionConfiguration & SubjectConfiguration & EventStoreConfiguration & ScreenTrackingConfiguration & PlatformContextConfiguration & DeepLinkConfiguration & AppLifecycleConfiguration): Promise<ReactNativeTracker>;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves an initialized tracker given its namespace
|
|
12
|
+
* @param trackerNamespace - Tracker namespace
|
|
13
|
+
* @returns Tracker instance if exists
|
|
14
|
+
*/
|
|
15
|
+
export declare function getTracker(trackerNamespace: string): ReactNativeTracker | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Removes a tracker given its namespace
|
|
18
|
+
*
|
|
19
|
+
* @param trackerNamespace - Tracker namespace
|
|
20
|
+
*/
|
|
21
|
+
export declare function removeTracker(trackerNamespace: string): void;
|
|
22
|
+
/**
|
|
23
|
+
* Removes all initialized trackers
|
|
24
|
+
*
|
|
25
|
+
* @returns - A boolean promise
|
|
26
|
+
*/
|
|
27
|
+
export declare function removeAllTrackers(): void;
|
|
9
28
|
//# sourceMappingURL=tracker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracker.d.ts","sourceRoot":"","sources":["../../../../src/tracker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"tracker.d.ts","sourceRoot":"","sources":["../../../../src/tracker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,oBAAoB,EAAe,MAAM,wBAAwB,CAAC;AAMjH,OAAO,EACL,2BAA2B,EAK5B,MAAM,0CAA0C,CAAC;AAElD,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EAEzB,uBAAuB,EAEvB,4BAA4B,EAC5B,kBAAkB,EAGlB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAWjB;;;;GAIG;AACH,wBAAsB,UAAU,CAC9B,aAAa,EAAE,oBAAoB,GACjC,oBAAoB,GACpB,oBAAoB,GACpB,oBAAoB,GACpB,uBAAuB,GACvB,2BAA2B,GAC3B,4BAA4B,GAC5B,qBAAqB,GACrB,yBAAyB,GAC1B,OAAO,CAAC,kBAAkB,CAAC,CAkG7B;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,gBAAgB,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS,CAEnF;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAK5D;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAExC"}
|