@snowplow/react-native-tracker 2.1.2 → 4.0.2-dev.1

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.
Files changed (273) hide show
  1. package/LICENSE +29 -203
  2. package/README.md +59 -143
  3. package/dist/commonjs/event_store.js +150 -0
  4. package/dist/commonjs/event_store.js.map +1 -0
  5. package/dist/commonjs/events.js +42 -0
  6. package/dist/commonjs/events.js.map +1 -0
  7. package/dist/commonjs/index.js +29 -0
  8. package/dist/commonjs/index.js.map +1 -0
  9. package/dist/commonjs/subject.js +82 -0
  10. package/dist/commonjs/subject.js.map +1 -0
  11. package/dist/commonjs/tracker.js +77 -0
  12. package/dist/commonjs/tracker.js.map +1 -0
  13. package/dist/commonjs/types.js +223 -0
  14. package/dist/commonjs/types.js.map +1 -0
  15. package/dist/module/event_store.js +145 -0
  16. package/dist/module/event_store.js.map +1 -0
  17. package/dist/module/events.js +38 -0
  18. package/dist/module/events.js.map +1 -0
  19. package/dist/module/index.js +7 -0
  20. package/dist/module/index.js.map +1 -0
  21. package/dist/module/subject.js +78 -0
  22. package/dist/module/subject.js.map +1 -0
  23. package/dist/module/tracker.js +74 -0
  24. package/dist/module/tracker.js.map +1 -0
  25. package/dist/module/types.js +73 -0
  26. package/dist/module/types.js.map +1 -0
  27. package/dist/typescript/commonjs/package.json +1 -0
  28. package/dist/typescript/commonjs/src/event_store.d.ts +4 -0
  29. package/dist/typescript/commonjs/src/event_store.d.ts.map +1 -0
  30. package/dist/typescript/commonjs/src/events.d.ts +10 -0
  31. package/dist/typescript/commonjs/src/events.d.ts.map +1 -0
  32. package/dist/typescript/commonjs/src/index.d.ts +4 -0
  33. package/dist/typescript/commonjs/src/index.d.ts.map +1 -0
  34. package/dist/typescript/commonjs/src/subject.d.ts +19 -0
  35. package/dist/typescript/commonjs/src/subject.d.ts.map +1 -0
  36. package/dist/typescript/commonjs/src/tracker.d.ts +9 -0
  37. package/dist/typescript/commonjs/src/tracker.d.ts.map +1 -0
  38. package/dist/typescript/commonjs/src/types.d.ts +452 -0
  39. package/dist/typescript/commonjs/src/types.d.ts.map +1 -0
  40. package/dist/typescript/module/package.json +1 -0
  41. package/dist/typescript/module/src/event_store.d.ts +4 -0
  42. package/dist/typescript/module/src/event_store.d.ts.map +1 -0
  43. package/dist/typescript/module/src/events.d.ts +10 -0
  44. package/dist/typescript/module/src/events.d.ts.map +1 -0
  45. package/dist/typescript/module/src/index.d.ts +4 -0
  46. package/dist/typescript/module/src/index.d.ts.map +1 -0
  47. package/dist/typescript/module/src/subject.d.ts +19 -0
  48. package/dist/typescript/module/src/subject.d.ts.map +1 -0
  49. package/dist/typescript/module/src/tracker.d.ts +9 -0
  50. package/dist/typescript/module/src/tracker.d.ts.map +1 -0
  51. package/dist/typescript/module/src/types.d.ts +452 -0
  52. package/dist/typescript/module/src/types.d.ts.map +1 -0
  53. package/package.json +75 -147
  54. package/.editorconfig +0 -15
  55. package/.eslintignore +0 -6
  56. package/.gitattributes +0 -3
  57. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -29
  58. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  59. package/.github/actions/setup/action.yml +0 -28
  60. package/.github/workflows/build.yml +0 -155
  61. package/.github/workflows/deploy.yml +0 -97
  62. package/.github/workflows/e2e-android.yml +0 -121
  63. package/.github/workflows/e2e-ios.yml +0 -95
  64. package/.github/workflows/snyk.yml +0 -21
  65. package/.gitignore +0 -70
  66. package/.npmignore +0 -60
  67. package/.nvmrc +0 -1
  68. package/.watchmanconfig +0 -1
  69. package/.yarnrc +0 -3
  70. package/CHANGELOG +0 -184
  71. package/CONTRIBUTING.md +0 -80
  72. package/android/build.gradle +0 -110
  73. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  74. package/android/gradle/wrapper/gradle-wrapper.properties +0 -5
  75. package/android/gradle.properties +0 -5
  76. package/android/gradlew +0 -234
  77. package/android/gradlew.bat +0 -89
  78. package/android/src/main/AndroidManifest.xml +0 -3
  79. package/android/src/main/AndroidManifestNew.xml +0 -2
  80. package/android/src/main/java/com/snowplow/reactnativetracker/ReactNativeTrackerModule.kt +0 -744
  81. package/android/src/main/java/com/snowplow/reactnativetracker/ReactNativeTrackerPackage.kt +0 -17
  82. package/android/src/main/java/com/snowplow/reactnativetracker/util/ConfigUtil.kt +0 -274
  83. package/android/src/main/java/com/snowplow/reactnativetracker/util/EventUtil.kt +0 -233
  84. package/android/src/main/java/com/snowplow/reactnativetracker/util/TrackerVersion.kt +0 -5
  85. package/babel.config.js +0 -3
  86. package/example/.watchmanconfig +0 -1
  87. package/example/Gemfile +0 -6
  88. package/example/android/app/build.gradle +0 -129
  89. package/example/android/app/debug.keystore +0 -0
  90. package/example/android/app/proguard-rules.pro +0 -10
  91. package/example/android/app/src/androidTest/java/com/reactnativetrackerexample/DetoxTest.java +0 -36
  92. package/example/android/app/src/androidTest/java/com/reactnativetrackerexample/DetoxTestAppJUnitRunner.java +0 -21
  93. package/example/android/app/src/debug/AndroidManifest.xml +0 -13
  94. package/example/android/app/src/debug/java/com/reactnativetrackerexample/ReactNativeFlipper.java +0 -75
  95. package/example/android/app/src/main/AndroidManifest.xml +0 -26
  96. package/example/android/app/src/main/java/com/reactnativetrackerexample/MainActivity.java +0 -32
  97. package/example/android/app/src/main/java/com/reactnativetrackerexample/MainApplication.java +0 -62
  98. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -36
  99. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  100. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  101. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  102. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  103. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  104. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  105. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  106. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  107. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  108. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  109. package/example/android/app/src/main/res/values/strings.xml +0 -3
  110. package/example/android/app/src/main/res/values/styles.xml +0 -9
  111. package/example/android/app/src/release/java/com/reactnativetrackerexample/ReactNativeFlipper.java +0 -20
  112. package/example/android/build.gradle +0 -31
  113. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  114. package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -6
  115. package/example/android/gradle.properties +0 -44
  116. package/example/android/gradlew +0 -244
  117. package/example/android/gradlew.bat +0 -92
  118. package/example/android/settings.gradle +0 -4
  119. package/example/app.json +0 -4
  120. package/example/babel.config.js +0 -17
  121. package/example/detox.config.js +0 -92
  122. package/example/e2e/config.json +0 -10
  123. package/example/e2e/emitEvents.e2e.detox.js +0 -95
  124. package/example/e2e/environment.js +0 -23
  125. package/example/e2e/helpers/microCommands.js +0 -140
  126. package/example/e2e/helpers/microHelpers.js +0 -333
  127. package/example/e2e/helpers/microHelpers.test.js +0 -295
  128. package/example/e2e/helpers/schemas.js +0 -49
  129. package/example/e2e/jest.config.js +0 -16
  130. package/example/e2e/setup.js +0 -4
  131. package/example/e2e/testEvents.micro.test.js +0 -287
  132. package/example/index.js +0 -5
  133. package/example/ios/.xcode.env +0 -11
  134. package/example/ios/Podfile +0 -62
  135. package/example/ios/Podfile.lock +0 -730
  136. package/example/ios/ReactNativeTrackerExample/AppDelegate.h +0 -6
  137. package/example/ios/ReactNativeTrackerExample/AppDelegate.mm +0 -26
  138. package/example/ios/ReactNativeTrackerExample/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  139. package/example/ios/ReactNativeTrackerExample/Images.xcassets/Contents.json +0 -6
  140. package/example/ios/ReactNativeTrackerExample/Info.plist +0 -55
  141. package/example/ios/ReactNativeTrackerExample/LaunchScreen.storyboard +0 -47
  142. package/example/ios/ReactNativeTrackerExample/PrivacyInfo.xcprivacy +0 -37
  143. package/example/ios/ReactNativeTrackerExample/main.m +0 -10
  144. package/example/ios/ReactNativeTrackerExample-Bridging-Header.h +0 -3
  145. package/example/ios/ReactNativeTrackerExample.xcodeproj/project.pbxproj +0 -739
  146. package/example/ios/ReactNativeTrackerExample.xcodeproj/xcshareddata/xcschemes/ReactNativeTrackerExample.xcscheme +0 -88
  147. package/example/ios/ReactNativeTrackerExample.xcworkspace/contents.xcworkspacedata +0 -10
  148. package/example/ios/ReactNativeTrackerExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  149. package/example/ios/ReactNativeTrackerExampleTests/Info.plist +0 -24
  150. package/example/ios/ReactNativeTrackerExampleTests/ReactNativeTrackerExampleTests.m +0 -66
  151. package/example/metro.config.js +0 -45
  152. package/example/package.json +0 -54
  153. package/example/react-native.config.js +0 -10
  154. package/example/src/App.js +0 -566
  155. package/example/tsconfig.json +0 -5
  156. package/example/yarn.lock +0 -7703
  157. package/ios/ReactNativeTracker-Bridging-Header.h +0 -2
  158. package/ios/ReactNativeTracker.mm +0 -171
  159. package/ios/ReactNativeTracker.swift +0 -822
  160. package/ios/ReactNativeTracker.xcodeproj/project.pbxproj +0 -301
  161. package/ios/Util/ConfigUtils.swift +0 -209
  162. package/ios/Util/TrackerVersion.swift +0 -3
  163. package/ios/Util/Utilities.swift +0 -37
  164. package/lefthook.yml +0 -11
  165. package/lib/commonjs/api.js +0 -490
  166. package/lib/commonjs/api.js.map +0 -1
  167. package/lib/commonjs/configurations.js +0 -196
  168. package/lib/commonjs/configurations.js.map +0 -1
  169. package/lib/commonjs/constants.js +0 -77
  170. package/lib/commonjs/constants.js.map +0 -1
  171. package/lib/commonjs/events.js +0 -277
  172. package/lib/commonjs/events.js.map +0 -1
  173. package/lib/commonjs/index.js +0 -132
  174. package/lib/commonjs/index.js.map +0 -1
  175. package/lib/commonjs/jsCore.js +0 -427
  176. package/lib/commonjs/jsCore.js.map +0 -1
  177. package/lib/commonjs/native.js +0 -16
  178. package/lib/commonjs/native.js.map +0 -1
  179. package/lib/commonjs/subject.js +0 -235
  180. package/lib/commonjs/subject.js.map +0 -1
  181. package/lib/commonjs/tracker.js +0 -248
  182. package/lib/commonjs/tracker.js.map +0 -1
  183. package/lib/commonjs/types.js +0 -2
  184. package/lib/commonjs/types.js.map +0 -1
  185. package/lib/commonjs/utils.js +0 -72
  186. package/lib/commonjs/utils.js.map +0 -1
  187. package/lib/commonjs/webViewInterface.js +0 -66
  188. package/lib/commonjs/webViewInterface.js.map +0 -1
  189. package/lib/module/api.js +0 -452
  190. package/lib/module/api.js.map +0 -1
  191. package/lib/module/configurations.js +0 -184
  192. package/lib/module/configurations.js.map +0 -1
  193. package/lib/module/constants.js +0 -72
  194. package/lib/module/constants.js.map +0 -1
  195. package/lib/module/events.js +0 -259
  196. package/lib/module/events.js.map +0 -1
  197. package/lib/module/index.js +0 -120
  198. package/lib/module/index.js.map +0 -1
  199. package/lib/module/jsCore.js +0 -424
  200. package/lib/module/jsCore.js.map +0 -1
  201. package/lib/module/native.js +0 -12
  202. package/lib/module/native.js.map +0 -1
  203. package/lib/module/subject.js +0 -222
  204. package/lib/module/subject.js.map +0 -1
  205. package/lib/module/tracker.js +0 -234
  206. package/lib/module/tracker.js.map +0 -1
  207. package/lib/module/types.js +0 -2
  208. package/lib/module/types.js.map +0 -1
  209. package/lib/module/utils.js +0 -66
  210. package/lib/module/utils.js.map +0 -1
  211. package/lib/module/webViewInterface.js +0 -62
  212. package/lib/module/webViewInterface.js.map +0 -1
  213. package/lib/typescript/__tests__/api.test.d.ts +0 -2
  214. package/lib/typescript/__tests__/api.test.d.ts.map +0 -1
  215. package/lib/typescript/__tests__/configurations.test.d.ts +0 -2
  216. package/lib/typescript/__tests__/configurations.test.d.ts.map +0 -1
  217. package/lib/typescript/__tests__/events.test.d.ts +0 -2
  218. package/lib/typescript/__tests__/events.test.d.ts.map +0 -1
  219. package/lib/typescript/__tests__/index.test.d.ts +0 -2
  220. package/lib/typescript/__tests__/index.test.d.ts.map +0 -1
  221. package/lib/typescript/__tests__/jsCore.test.d.ts +0 -2
  222. package/lib/typescript/__tests__/jsCore.test.d.ts.map +0 -1
  223. package/lib/typescript/__tests__/utils.test.d.ts +0 -2
  224. package/lib/typescript/__tests__/utils.test.d.ts.map +0 -1
  225. package/lib/typescript/api.d.ts +0 -240
  226. package/lib/typescript/api.d.ts.map +0 -1
  227. package/lib/typescript/configurations.d.ts +0 -73
  228. package/lib/typescript/configurations.d.ts.map +0 -1
  229. package/lib/typescript/constants.d.ts +0 -64
  230. package/lib/typescript/constants.d.ts.map +0 -1
  231. package/lib/typescript/events.d.ts +0 -115
  232. package/lib/typescript/events.d.ts.map +0 -1
  233. package/lib/typescript/index.d.ts +0 -27
  234. package/lib/typescript/index.d.ts.map +0 -1
  235. package/lib/typescript/jsCore.d.ts +0 -152
  236. package/lib/typescript/jsCore.d.ts.map +0 -1
  237. package/lib/typescript/native.d.ts +0 -4
  238. package/lib/typescript/native.d.ts.map +0 -1
  239. package/lib/typescript/subject.d.ts +0 -91
  240. package/lib/typescript/subject.d.ts.map +0 -1
  241. package/lib/typescript/tracker.d.ts +0 -111
  242. package/lib/typescript/tracker.d.ts.map +0 -1
  243. package/lib/typescript/types.d.ts +0 -981
  244. package/lib/typescript/types.d.ts.map +0 -1
  245. package/lib/typescript/utils.d.ts +0 -35
  246. package/lib/typescript/utils.d.ts.map +0 -1
  247. package/lib/typescript/webViewInterface.d.ts +0 -15
  248. package/lib/typescript/webViewInterface.d.ts.map +0 -1
  249. package/scripts/bootstrap.js +0 -29
  250. package/snowplow-react-native-tracker.podspec +0 -42
  251. package/src/__mocks__/react-native.js +0 -7
  252. package/src/__tests__/api.test.ts +0 -21
  253. package/src/__tests__/configurations.test.ts +0 -608
  254. package/src/__tests__/events.test.ts +0 -736
  255. package/src/__tests__/index.test.ts +0 -14
  256. package/src/__tests__/jsCore.test.ts +0 -199
  257. package/src/__tests__/utils.test.ts +0 -10
  258. package/src/api.ts +0 -556
  259. package/src/configurations.ts +0 -325
  260. package/src/constants.ts +0 -97
  261. package/src/events.ts +0 -355
  262. package/src/index.ts +0 -184
  263. package/src/jsCore.ts +0 -603
  264. package/src/native.ts +0 -21
  265. package/src/subject.ts +0 -302
  266. package/src/tracker.ts +0 -377
  267. package/src/types.ts +0 -1162
  268. package/src/utils.ts +0 -65
  269. package/src/webViewInterface.ts +0 -92
  270. package/tsconfig.build.json +0 -5
  271. package/tsconfig.json +0 -28
  272. package/turbo.json +0 -34
  273. package/yarn.lock +0 -9398
@@ -0,0 +1,19 @@
1
+ import { CorePluginConfiguration, TrackerCore } from '@snowplow/tracker-core';
2
+ import { ScreenSize, SubjectConfiguration } from './types';
3
+ export declare function newSubject(core: TrackerCore, configuration?: SubjectConfiguration): {
4
+ subjectPlugin: CorePluginConfiguration;
5
+ properties: {
6
+ setUserId: (userId: string) => void;
7
+ setIpAddress: (ip: string) => void;
8
+ setUseragent: (useragent: string) => void;
9
+ setTimezone: (timezone: string) => void;
10
+ setLanguage: (lang: string) => void;
11
+ setScreenResolution: (screenSize: ScreenSize) => void;
12
+ setNetworkUserId: (userId: string | undefined) => void;
13
+ setDomainUserId: (userId: string | undefined) => void;
14
+ setSubjectData: (data: SubjectConfiguration) => void;
15
+ setColorDepth: (colorDepth: number) => void;
16
+ setScreenViewport: (screenSize: ScreenSize) => void;
17
+ };
18
+ };
19
+ //# sourceMappingURL=subject.d.ts.map
@@ -0,0 +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;;;;;;;;;mCAYrC,MAAM,GAAG,SAAS;kCAInB,MAAM,GAAG,SAAS;+BAYrB,oBAAoB;oCARf,MAAM;;;EA+DnD"}
@@ -0,0 +1,9 @@
1
+ import { EmitterConfiguration } from '@snowplow/tracker-core';
2
+ import { EventStoreConfiguration, ReactNativeTracker, SessionConfiguration, SubjectConfiguration, TrackerConfiguration } from './types';
3
+ /**
4
+ * Creates a new tracker instance with the given configuration
5
+ * @param configuration - Configuration for the tracker
6
+ * @returns Tracker instance
7
+ */
8
+ export declare function newTracker(configuration: TrackerConfiguration & EmitterConfiguration & SessionConfiguration & SubjectConfiguration & EventStoreConfiguration): Promise<ReactNativeTracker>;
9
+ //# sourceMappingURL=tracker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tracker.d.ts","sourceRoot":"","sources":["../../../../src/tracker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAOpG,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAEjB;;;;GAIG;AACH,wBAAsB,UAAU,CAC9B,aAAa,EAAE,oBAAoB,GACjC,oBAAoB,GACpB,oBAAoB,GACpB,oBAAoB,GACpB,uBAAuB,GACxB,OAAO,CAAC,kBAAkB,CAAC,CAgC7B"}
@@ -0,0 +1,452 @@
1
+ import { ConditionalContextProvider, ContextPrimitive, CorePluginConfiguration, PageViewEvent, SelfDescribingJson, StructuredEvent } from '@snowplow/tracker-core';
2
+ /**
3
+ * Configuration for the event store
4
+ */
5
+ export interface EventStoreConfiguration {
6
+ /**
7
+ * The maximum amount of events that will be buffered in the event store
8
+ *
9
+ * Will drop events once the limit is hit
10
+ * @defaultValue 1000
11
+ */
12
+ maxEventStoreSize?: number;
13
+ /**
14
+ * Whether to use the AsyncStorage library as the persistent event store for the event store
15
+ * @defaultValue true
16
+ */
17
+ useAsyncStorageForEventStore?: boolean;
18
+ }
19
+ /**
20
+ * Configuration for session tracking
21
+ */
22
+ export interface SessionConfiguration {
23
+ /**
24
+ * The amount of time in seconds before the session id is updated while the app is in the foreground
25
+ * @defaultValue 1800
26
+ */
27
+ foregroundSessionTimeout?: number;
28
+ /**
29
+ * The amount of time in seconds before the session id is updated while the app is in the background
30
+ * @defaultValue 1800
31
+ */
32
+ backgroundSessionTimeout?: number;
33
+ }
34
+ /**
35
+ * The configuration object for initialising the tracker
36
+ */
37
+ export interface TrackerConfiguration {
38
+ /** The namespace of the tracker */
39
+ namespace: string;
40
+ /** The application ID */
41
+ appId?: string;
42
+ /**
43
+ * Whether unstructured events and custom contexts should be base64 encoded.
44
+ * @defaultValue false
45
+ **/
46
+ encodeBase64?: boolean;
47
+ }
48
+ /**
49
+ * Configuration of subject properties tracked with events
50
+ */
51
+ export interface SubjectConfiguration {
52
+ /**
53
+ * Business-defined user ID for this user
54
+ */
55
+ userId?: string;
56
+ /**
57
+ * Override the network user id (UUIDv4) that is assigned by the collector and stored in cookies
58
+ */
59
+ networkUserId?: string;
60
+ /**
61
+ * The domain user id (DUID) is a generated identifier that is stored in a first party cookie on Web.
62
+ * The React Native tracker does not assign it automatically.
63
+ */
64
+ domainUserId?: string;
65
+ /**
66
+ * The custom user-agent. It overrides the user-agent used by default.
67
+ */
68
+ useragent?: string;
69
+ /**
70
+ * Override the IP address of the device
71
+ */
72
+ ipAddress?: string;
73
+ /**
74
+ * The timezone label
75
+ */
76
+ timezone?: string;
77
+ /**
78
+ * The language set in the device
79
+ */
80
+ language?: string;
81
+ /**
82
+ * The screen resolution
83
+ */
84
+ screenResolution?: ScreenSize;
85
+ /**
86
+ * The screen viewport size
87
+ */
88
+ screenViewport?: ScreenSize;
89
+ /**
90
+ * Color depth (integer)
91
+ */
92
+ colorDepth?: number;
93
+ }
94
+ /**
95
+ * Screen size in pixels
96
+ */
97
+ export declare type ScreenSize = [number, number];
98
+ /**
99
+ * Trigger for MessageNotification event
100
+ */
101
+ export declare type Trigger = 'push' | 'location' | 'calendar' | 'timeInterval' | 'other';
102
+ /**
103
+ * Attachment object that identify an attachment in the MessageNotification.
104
+ */
105
+ export declare type MessageNotificationAttachmentProps = {
106
+ identifier: string;
107
+ type: string;
108
+ url: string;
109
+ };
110
+ /**
111
+ * MessageNotification event properties
112
+ * schema: iglu:com.snowplowanalytics.mobile/message_notification/jsonschema/1-0-0
113
+ */
114
+ export declare type MessageNotificationProps = {
115
+ /**
116
+ * The action associated with the notification.
117
+ */
118
+ action?: string;
119
+ attachments?: MessageNotificationAttachmentProps[];
120
+ /**
121
+ * The notification's body.
122
+ */
123
+ body: string;
124
+ bodyLocArgs?: string[];
125
+ /**
126
+ * The key to the body string in the app's string resources to use to localize the body text to the user's current localization.
127
+ */
128
+ bodyLocKey?: string;
129
+ /**
130
+ * The category associated to the notification.
131
+ */
132
+ category?: string;
133
+ /**
134
+ * The application is notified of the delivery of the notification if it's in the foreground or background, the app will be woken up (iOS only).
135
+ */
136
+ contentAvailable?: boolean;
137
+ /**
138
+ * The group which this notification is part of.
139
+ */
140
+ group?: string;
141
+ /**
142
+ * The icon associated to the notification (Android only).
143
+ */
144
+ icon?: string;
145
+ /**
146
+ * The number of items this notification represent.
147
+ */
148
+ notificationCount?: number;
149
+ /**
150
+ * The time when the event of the notification occurred.
151
+ */
152
+ notificationTimestamp?: string;
153
+ /**
154
+ * The sound played when the device receives the notification.
155
+ */
156
+ sound?: string;
157
+ /**
158
+ * The notification's subtitle. (iOS only)
159
+ */
160
+ subtitle?: string;
161
+ /**
162
+ * An identifier similar to 'group' but usable for different purposes (Android only).
163
+ */
164
+ tag?: string;
165
+ /**
166
+ * An identifier similar to 'group' but usable for different purposes (iOS only).
167
+ */
168
+ threadIdentifier?: string;
169
+ /**
170
+ * The notification's title.
171
+ */
172
+ title: string;
173
+ /**
174
+ * Variable string values to be used in place of the format specifiers in titleLocArgs to use to localize the title text to the user's current localization.
175
+ */
176
+ titleLocArgs?: string[];
177
+ /**
178
+ * The key to the title string in the app's string resources to use to localize the title text to the user's current localization.
179
+ */
180
+ titleLocKey?: string;
181
+ /**
182
+ * The trigger that raised the notification message. Must be one of: push, location, calendar, timeInterval, other
183
+ */
184
+ trigger: Trigger;
185
+ };
186
+ /**
187
+ * EventContext type
188
+ */
189
+ export declare type EventContext = SelfDescribingJson;
190
+ /**
191
+ * ScreenView event properties
192
+ * schema: iglu:com.snowplowanalytics.mobile/screen_view/jsonschema/1-0-0
193
+ */
194
+ export declare type ScreenViewProps = {
195
+ /**
196
+ * The name of the screen viewed
197
+ */
198
+ name: string;
199
+ /**
200
+ * The id(UUID) of screen that was viewed
201
+ */
202
+ id?: string;
203
+ /**
204
+ * The type of screen that was viewed
205
+ */
206
+ type?: string;
207
+ /**
208
+ * The name of the previous screen that was viewed
209
+ */
210
+ previousName?: string;
211
+ /**
212
+ * The id(UUID) of the previous screen that was viewed
213
+ */
214
+ previousId?: string;
215
+ /**
216
+ * The type of the previous screen that was viewed
217
+ */
218
+ previousType?: string;
219
+ /**
220
+ * The type of transition that led to the screen being viewed
221
+ */
222
+ transitionType?: string;
223
+ };
224
+ /**
225
+ * Event tracked when a scroll view's scroll position changes.
226
+ * If screen engagement tracking is enabled, the scroll changed events will be aggregated into a `screen_summary` entity.
227
+ *
228
+ * Schema: `iglu:com.snowplowanalytics.mobile/scroll_changed/jsonschema/1-0-0`
229
+ */
230
+ export declare type ScrollChangedProps = {
231
+ /**
232
+ * Vertical scroll offset in pixels
233
+ */
234
+ yOffset?: number;
235
+ /**
236
+ * Horizontal scroll offset in pixels.
237
+ */
238
+ xOffset?: number;
239
+ /**
240
+ * The height of the scroll view in pixels
241
+ */
242
+ viewHeight?: number;
243
+ /**
244
+ * The width of the scroll view in pixels
245
+ */
246
+ viewWidth?: number;
247
+ /**
248
+ * The height of the content in the scroll view in pixels
249
+ */
250
+ contentHeight?: number;
251
+ /**
252
+ * The width of the content in the scroll view in pixels
253
+ */
254
+ contentWidth?: number;
255
+ };
256
+ /**
257
+ * Event tracking the view of an item in a list.
258
+ * If screen engagement tracking is enabled, the list item view events will be aggregated into a `screen_summary` entity.
259
+ *
260
+ * Schema: `iglu:com.snowplowanalytics.mobile/list_item_view/jsonschema/1-0-0`
261
+ */
262
+ export declare type ListItemViewProps = {
263
+ /**
264
+ * Index of the item in the list
265
+ */
266
+ index: number;
267
+ /**
268
+ * Total number of items in the list
269
+ */
270
+ itemsCount?: number;
271
+ };
272
+ /**
273
+ * Timing event properties
274
+ */
275
+ export declare type TimingProps = {
276
+ /**
277
+ * The timing category
278
+ */
279
+ category: string;
280
+ /**
281
+ * The timing variable
282
+ */
283
+ variable: string;
284
+ /**
285
+ * The time
286
+ */
287
+ timing: number;
288
+ /**
289
+ * The timing label
290
+ */
291
+ label?: string;
292
+ };
293
+ /**
294
+ * DeepLinkReceived event properties
295
+ * schema: iglu:com.snowplowanalytics.mobile/deep_link_received/jsonschema/1-0-0
296
+ */
297
+ export declare type DeepLinkReceivedProps = {
298
+ /**
299
+ * URL in the received deep-link.
300
+ */
301
+ url: string;
302
+ /**
303
+ * Referrer URL, source of this deep-link.
304
+ */
305
+ referrer?: string;
306
+ };
307
+ /**
308
+ * The ReactNativeTracker type
309
+ */
310
+ export declare type ReactNativeTracker = {
311
+ /**
312
+ * Tracks a self-describing event
313
+ *
314
+ * @param argmap - The self-describing event properties
315
+ * @param contexts - The array of event contexts
316
+ * @typeParam TData - The type of the data object within the SelfDescribing object
317
+ */
318
+ readonly trackSelfDescribingEvent: <T extends Record<string, unknown> = Record<string, unknown>>(argmap: SelfDescribingJson<T>, contexts?: EventContext[]) => void;
319
+ /**
320
+ * Tracks a structured event
321
+ *
322
+ * @param argmap - The structured event properties
323
+ * @param contexts - The array of event contexts
324
+ */
325
+ readonly trackStructuredEvent: (argmap: StructuredEvent, contexts?: EventContext[]) => void;
326
+ /**
327
+ * Tracks a page-view event
328
+ *
329
+ * @param argmap - The page-view event properties
330
+ * @param contexts - The array of event contexts
331
+ */
332
+ readonly trackPageViewEvent: (argmap: PageViewEvent, contexts?: EventContext[]) => void;
333
+ /**
334
+ * Tracks a timing event
335
+ *
336
+ * @param argmap - The timing event properties
337
+ * @param contexts - The array of event contexts
338
+ */
339
+ readonly trackTimingEvent: (argmap: TimingProps, contexts?: EventContext[]) => void;
340
+ /**
341
+ * Tracks a message notification event
342
+ *
343
+ * @param argmap - The message notification event properties
344
+ * @param contexts - The array of event contexts
345
+ */
346
+ readonly trackMessageNotificationEvent: (argmap: MessageNotificationProps, contexts?: EventContext[]) => void;
347
+ /**
348
+ * Adds contexts globally, contexts added here will be attached to all applicable events
349
+ * @param contexts - An array containing either contexts or a conditional contexts
350
+ */
351
+ addGlobalContexts(contexts: Array<ConditionalContextProvider | ContextPrimitive> | Record<string, ConditionalContextProvider | ContextPrimitive>): void;
352
+ /**
353
+ * Removes all global contexts
354
+ */
355
+ clearGlobalContexts(): void;
356
+ /**
357
+ * Removes previously added global context, performs a deep comparison of the contexts or conditional contexts
358
+ * @param contexts - An array containing either contexts or a conditional contexts
359
+ */
360
+ removeGlobalContexts(contexts: Array<ConditionalContextProvider | ContextPrimitive | string>): void;
361
+ /**
362
+ * Add a plugin into the plugin collection after Core has already been initialised
363
+ * @param configuration - The plugin to add
364
+ */
365
+ addPlugin(configuration: CorePluginConfiguration): void;
366
+ /**
367
+ * Calls flush on all emitters in order to send all queued events to the collector
368
+ * @returns Promise<void> - Promise that resolves when all emitters have flushed
369
+ */
370
+ flush: () => Promise<void>;
371
+ /**
372
+ * Set the application ID
373
+ *
374
+ * @param appId - An application ID which identifies the current application
375
+ */
376
+ readonly setAppId: (appId: string) => void;
377
+ /**
378
+ * Set the platform
379
+ *
380
+ * @param value - A valid Snowplow platform value
381
+ */
382
+ readonly setPlatform: (value: string) => void;
383
+ /**
384
+ * Sets the business-defined user ID for this user
385
+ *
386
+ * @param newUid - The new userId
387
+ */
388
+ readonly setUserId: (newUid: string) => void;
389
+ /**
390
+ * Override the network user id (UUIDv4) that is assigned by the collector and stored in cookies
391
+ *
392
+ * @param newNuid - The new networkUserId
393
+ */
394
+ readonly setNetworkUserId: (newNuid: string | undefined) => void;
395
+ /**
396
+ * The domain user id (DUID) is a generated identifier that is stored in a first party cookie on Web.
397
+ * The React Native tracker does not assign it automatically.
398
+ *
399
+ * @param newDuid - The new domainUserId
400
+ */
401
+ readonly setDomainUserId: (newDuid: string | undefined) => void;
402
+ /**
403
+ * Override the IP address of the device
404
+ *
405
+ * @param newIp - The new ipAddress
406
+ */
407
+ readonly setIpAddress: (newIp: string) => void;
408
+ /**
409
+ * The custom user-agent. It overrides the user-agent used by default.
410
+ *
411
+ * @param newUagent - The new useragent
412
+ */
413
+ readonly setUseragent: (newUagent: string) => void;
414
+ /**
415
+ * Sets the timezone of the tracker subject
416
+ *
417
+ * @param newTz - The new timezone
418
+ */
419
+ readonly setTimezone: (newTz: string) => void;
420
+ /**
421
+ * Sets the language of the tracker subject
422
+ *
423
+ * @param newLang - The new language
424
+ */
425
+ readonly setLanguage: (newLang: string) => void;
426
+ /**
427
+ * Sets the screenResolution of the tracker subject
428
+ *
429
+ * @param newRes - The new screenResolution
430
+ */
431
+ readonly setScreenResolution: (newRes: ScreenSize) => void;
432
+ /**
433
+ * Sets the screenViewport of the tracker subject
434
+ *
435
+ * @param newView - The new screenViewport
436
+ */
437
+ readonly setScreenViewport: (newView: ScreenSize) => void;
438
+ /**
439
+ * Sets the colorDepth of the tracker subject
440
+ *
441
+ * @param newColorD - The new colorDepth
442
+ */
443
+ readonly setColorDepth: (newLang: number) => void;
444
+ /**
445
+ * Sets subject data
446
+ *
447
+ * @param config - The new subject data
448
+ */
449
+ readonly setSubjectData: (config: SubjectConfiguration) => void;
450
+ };
451
+ 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
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +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;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,oBAAoB;IACnC,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;QAGI;IACJ,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IAC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,QAAQ,CAAC,mBAAmB,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAE3D;;;;OAIG;IACH,QAAQ,CAAC,iBAAiB,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,IAAI,CAAC;IAE1D;;;;OAIG;IACH,QAAQ,CAAC,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAElD;;;;OAIG;IACH,QAAQ,CAAC,cAAc,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAiDjE,CAAC;AAEF,OAAO,EACL,OAAO,EACP,aAAa,EACb,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,SAAS,EACT,cAAc,EACd,OAAO,EACP,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,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"}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,4 @@
1
+ import { EventStore } from '@snowplow/tracker-core';
2
+ import { EventStoreConfiguration, TrackerConfiguration } from './types';
3
+ export declare function newReactNativeEventStore({ namespace, maxEventStoreSize, useAsyncStorageForEventStore: useAsyncStorage, }: EventStoreConfiguration & TrackerConfiguration): Promise<EventStore>;
4
+ //# sourceMappingURL=event_store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event_store.d.ts","sourceRoot":"","sources":["../../../../src/event_store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4C,MAAM,wBAAwB,CAAC;AAC9F,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAGxE,wBAAsB,wBAAwB,CAAC,EAC7C,SAAS,EACT,iBAAwB,EACxB,4BAA4B,EAAE,eAAsB,GACrD,EAAE,uBAAuB,GAAG,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,CAuCtE"}
@@ -0,0 +1,10 @@
1
+ import { PageViewEvent, SelfDescribingJson, StructuredEvent, TrackerCore } from '@snowplow/tracker-core';
2
+ import { EventContext, MessageNotificationProps, TimingProps } from './types';
3
+ export declare function newTrackEventFunctions(core: TrackerCore): {
4
+ trackSelfDescribingEvent: <T extends Record<string, unknown> = Record<string, unknown>>(argmap: SelfDescribingJson<T>, contexts?: EventContext[] | undefined) => void;
5
+ trackStructuredEvent: (argmap: StructuredEvent, contexts?: EventContext[] | undefined) => unknown;
6
+ trackPageViewEvent: (argmap: PageViewEvent, contexts?: EventContext[] | undefined) => unknown;
7
+ trackTimingEvent: (argmap: TimingProps, contexts?: EventContext[] | undefined) => void;
8
+ trackMessageNotificationEvent: (argmap: MessageNotificationProps, contexts?: EventContext[] | undefined) => void;
9
+ };
10
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,WAAW,EACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE9E,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,WAAW;;mCAQhB,eAAe;iCAIjB,aAAa;+BAIf,WAAW;4CAUE,wBAAwB;EAiBxE"}
@@ -0,0 +1,4 @@
1
+ import 'react-native-get-random-values';
2
+ export * from './types';
3
+ export * from './tracker';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,gCAAgC,CAAC;AAExC,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { CorePluginConfiguration, TrackerCore } from '@snowplow/tracker-core';
2
+ import { ScreenSize, SubjectConfiguration } from './types';
3
+ export declare function newSubject(core: TrackerCore, configuration?: SubjectConfiguration): {
4
+ subjectPlugin: CorePluginConfiguration;
5
+ properties: {
6
+ setUserId: (userId: string) => void;
7
+ setIpAddress: (ip: string) => void;
8
+ setUseragent: (useragent: string) => void;
9
+ setTimezone: (timezone: string) => void;
10
+ setLanguage: (lang: string) => void;
11
+ setScreenResolution: (screenSize: ScreenSize) => void;
12
+ setNetworkUserId: (userId: string | undefined) => void;
13
+ setDomainUserId: (userId: string | undefined) => void;
14
+ setSubjectData: (data: SubjectConfiguration) => void;
15
+ setColorDepth: (colorDepth: number) => void;
16
+ setScreenViewport: (screenSize: ScreenSize) => void;
17
+ };
18
+ };
19
+ //# sourceMappingURL=subject.d.ts.map
@@ -0,0 +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;;;;;;;;;mCAYrC,MAAM,GAAG,SAAS;kCAInB,MAAM,GAAG,SAAS;+BAYrB,oBAAoB;oCARf,MAAM;;;EA+DnD"}
@@ -0,0 +1,9 @@
1
+ import { EmitterConfiguration } from '@snowplow/tracker-core';
2
+ import { EventStoreConfiguration, ReactNativeTracker, SessionConfiguration, SubjectConfiguration, TrackerConfiguration } from './types';
3
+ /**
4
+ * Creates a new tracker instance with the given configuration
5
+ * @param configuration - Configuration for the tracker
6
+ * @returns Tracker instance
7
+ */
8
+ export declare function newTracker(configuration: TrackerConfiguration & EmitterConfiguration & SessionConfiguration & SubjectConfiguration & EventStoreConfiguration): Promise<ReactNativeTracker>;
9
+ //# sourceMappingURL=tracker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tracker.d.ts","sourceRoot":"","sources":["../../../../src/tracker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAOpG,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AAEjB;;;;GAIG;AACH,wBAAsB,UAAU,CAC9B,aAAa,EAAE,oBAAoB,GACjC,oBAAoB,GACpB,oBAAoB,GACpB,oBAAoB,GACpB,uBAAuB,GACxB,OAAO,CAAC,kBAAkB,CAAC,CAgC7B"}