@snowplow/react-native-tracker 2.1.1 → 4.0.2-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.
Files changed (232) hide show
  1. package/LICENSE +29 -203
  2. package/README.md +59 -143
  3. package/dist/index.cjs.d.ts +499 -0
  4. package/dist/index.cjs.js +2656 -0
  5. package/dist/index.cjs.js.map +1 -0
  6. package/dist/index.cjs.min.d.ts +499 -0
  7. package/dist/index.cjs.min.js +63 -0
  8. package/dist/index.cjs.min.js.map +1 -0
  9. package/dist/index.module.d.ts +499 -0
  10. package/dist/index.module.js +250 -0
  11. package/dist/index.module.js.map +1 -0
  12. package/package.json +48 -158
  13. package/.editorconfig +0 -15
  14. package/.eslintignore +0 -6
  15. package/.gitattributes +0 -3
  16. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -29
  17. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  18. package/.github/actions/setup/action.yml +0 -28
  19. package/.github/workflows/build.yml +0 -155
  20. package/.github/workflows/deploy.yml +0 -97
  21. package/.github/workflows/e2e-android.yml +0 -121
  22. package/.github/workflows/e2e-ios.yml +0 -95
  23. package/.github/workflows/snyk.yml +0 -21
  24. package/.gitignore +0 -70
  25. package/.npmignore +0 -60
  26. package/.nvmrc +0 -1
  27. package/.watchmanconfig +0 -1
  28. package/.yarnrc +0 -3
  29. package/CHANGELOG +0 -180
  30. package/CONTRIBUTING.md +0 -80
  31. package/android/build.gradle +0 -110
  32. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  33. package/android/gradle/wrapper/gradle-wrapper.properties +0 -5
  34. package/android/gradle.properties +0 -5
  35. package/android/gradlew +0 -234
  36. package/android/gradlew.bat +0 -89
  37. package/android/src/main/AndroidManifest.xml +0 -3
  38. package/android/src/main/AndroidManifestNew.xml +0 -2
  39. package/android/src/main/java/com/snowplow/reactnativetracker/ReactNativeTrackerModule.kt +0 -744
  40. package/android/src/main/java/com/snowplow/reactnativetracker/ReactNativeTrackerPackage.kt +0 -17
  41. package/android/src/main/java/com/snowplow/reactnativetracker/util/ConfigUtil.kt +0 -274
  42. package/android/src/main/java/com/snowplow/reactnativetracker/util/EventUtil.kt +0 -233
  43. package/android/src/main/java/com/snowplow/reactnativetracker/util/TrackerVersion.kt +0 -5
  44. package/babel.config.js +0 -3
  45. package/example/.watchmanconfig +0 -1
  46. package/example/Gemfile +0 -6
  47. package/example/android/app/build.gradle +0 -129
  48. package/example/android/app/debug.keystore +0 -0
  49. package/example/android/app/proguard-rules.pro +0 -10
  50. package/example/android/app/src/androidTest/java/com/reactnativetrackerexample/DetoxTest.java +0 -36
  51. package/example/android/app/src/androidTest/java/com/reactnativetrackerexample/DetoxTestAppJUnitRunner.java +0 -21
  52. package/example/android/app/src/debug/AndroidManifest.xml +0 -13
  53. package/example/android/app/src/debug/java/com/reactnativetrackerexample/ReactNativeFlipper.java +0 -75
  54. package/example/android/app/src/main/AndroidManifest.xml +0 -26
  55. package/example/android/app/src/main/java/com/reactnativetrackerexample/MainActivity.java +0 -32
  56. package/example/android/app/src/main/java/com/reactnativetrackerexample/MainApplication.java +0 -62
  57. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -36
  58. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  59. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  60. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  61. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  62. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  63. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  64. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  65. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  66. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  67. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  68. package/example/android/app/src/main/res/values/strings.xml +0 -3
  69. package/example/android/app/src/main/res/values/styles.xml +0 -9
  70. package/example/android/app/src/release/java/com/reactnativetrackerexample/ReactNativeFlipper.java +0 -20
  71. package/example/android/build.gradle +0 -31
  72. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  73. package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -6
  74. package/example/android/gradle.properties +0 -44
  75. package/example/android/gradlew +0 -244
  76. package/example/android/gradlew.bat +0 -92
  77. package/example/android/settings.gradle +0 -4
  78. package/example/app.json +0 -4
  79. package/example/babel.config.js +0 -17
  80. package/example/detox.config.js +0 -92
  81. package/example/e2e/config.json +0 -10
  82. package/example/e2e/emitEvents.e2e.detox.js +0 -95
  83. package/example/e2e/environment.js +0 -23
  84. package/example/e2e/helpers/microCommands.js +0 -140
  85. package/example/e2e/helpers/microHelpers.js +0 -333
  86. package/example/e2e/helpers/microHelpers.test.js +0 -295
  87. package/example/e2e/helpers/schemas.js +0 -49
  88. package/example/e2e/jest.config.js +0 -16
  89. package/example/e2e/setup.js +0 -4
  90. package/example/e2e/testEvents.micro.test.js +0 -287
  91. package/example/index.js +0 -5
  92. package/example/ios/.xcode.env +0 -11
  93. package/example/ios/Podfile +0 -62
  94. package/example/ios/Podfile.lock +0 -730
  95. package/example/ios/ReactNativeTrackerExample/AppDelegate.h +0 -6
  96. package/example/ios/ReactNativeTrackerExample/AppDelegate.mm +0 -26
  97. package/example/ios/ReactNativeTrackerExample/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  98. package/example/ios/ReactNativeTrackerExample/Images.xcassets/Contents.json +0 -6
  99. package/example/ios/ReactNativeTrackerExample/Info.plist +0 -55
  100. package/example/ios/ReactNativeTrackerExample/LaunchScreen.storyboard +0 -47
  101. package/example/ios/ReactNativeTrackerExample/PrivacyInfo.xcprivacy +0 -37
  102. package/example/ios/ReactNativeTrackerExample/main.m +0 -10
  103. package/example/ios/ReactNativeTrackerExample-Bridging-Header.h +0 -3
  104. package/example/ios/ReactNativeTrackerExample.xcodeproj/project.pbxproj +0 -739
  105. package/example/ios/ReactNativeTrackerExample.xcodeproj/xcshareddata/xcschemes/ReactNativeTrackerExample.xcscheme +0 -88
  106. package/example/ios/ReactNativeTrackerExample.xcworkspace/contents.xcworkspacedata +0 -10
  107. package/example/ios/ReactNativeTrackerExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  108. package/example/ios/ReactNativeTrackerExampleTests/Info.plist +0 -24
  109. package/example/ios/ReactNativeTrackerExampleTests/ReactNativeTrackerExampleTests.m +0 -66
  110. package/example/metro.config.js +0 -45
  111. package/example/package.json +0 -54
  112. package/example/react-native.config.js +0 -10
  113. package/example/src/App.js +0 -566
  114. package/example/tsconfig.json +0 -5
  115. package/example/yarn.lock +0 -7703
  116. package/ios/ReactNativeTracker-Bridging-Header.h +0 -2
  117. package/ios/ReactNativeTracker.mm +0 -175
  118. package/ios/ReactNativeTracker.swift +0 -822
  119. package/ios/ReactNativeTracker.xcodeproj/project.pbxproj +0 -301
  120. package/ios/Util/ConfigUtils.swift +0 -209
  121. package/ios/Util/TrackerVersion.swift +0 -3
  122. package/ios/Util/Utilities.swift +0 -37
  123. package/lefthook.yml +0 -11
  124. package/lib/commonjs/api.js +0 -490
  125. package/lib/commonjs/api.js.map +0 -1
  126. package/lib/commonjs/configurations.js +0 -196
  127. package/lib/commonjs/configurations.js.map +0 -1
  128. package/lib/commonjs/constants.js +0 -77
  129. package/lib/commonjs/constants.js.map +0 -1
  130. package/lib/commonjs/events.js +0 -277
  131. package/lib/commonjs/events.js.map +0 -1
  132. package/lib/commonjs/index.js +0 -132
  133. package/lib/commonjs/index.js.map +0 -1
  134. package/lib/commonjs/jsCore.js +0 -427
  135. package/lib/commonjs/jsCore.js.map +0 -1
  136. package/lib/commonjs/native.js +0 -16
  137. package/lib/commonjs/native.js.map +0 -1
  138. package/lib/commonjs/subject.js +0 -235
  139. package/lib/commonjs/subject.js.map +0 -1
  140. package/lib/commonjs/tracker.js +0 -248
  141. package/lib/commonjs/tracker.js.map +0 -1
  142. package/lib/commonjs/types.js +0 -2
  143. package/lib/commonjs/types.js.map +0 -1
  144. package/lib/commonjs/utils.js +0 -72
  145. package/lib/commonjs/utils.js.map +0 -1
  146. package/lib/commonjs/webViewInterface.js +0 -66
  147. package/lib/commonjs/webViewInterface.js.map +0 -1
  148. package/lib/module/api.js +0 -452
  149. package/lib/module/api.js.map +0 -1
  150. package/lib/module/configurations.js +0 -184
  151. package/lib/module/configurations.js.map +0 -1
  152. package/lib/module/constants.js +0 -72
  153. package/lib/module/constants.js.map +0 -1
  154. package/lib/module/events.js +0 -259
  155. package/lib/module/events.js.map +0 -1
  156. package/lib/module/index.js +0 -120
  157. package/lib/module/index.js.map +0 -1
  158. package/lib/module/jsCore.js +0 -424
  159. package/lib/module/jsCore.js.map +0 -1
  160. package/lib/module/native.js +0 -12
  161. package/lib/module/native.js.map +0 -1
  162. package/lib/module/subject.js +0 -222
  163. package/lib/module/subject.js.map +0 -1
  164. package/lib/module/tracker.js +0 -234
  165. package/lib/module/tracker.js.map +0 -1
  166. package/lib/module/types.js +0 -2
  167. package/lib/module/types.js.map +0 -1
  168. package/lib/module/utils.js +0 -66
  169. package/lib/module/utils.js.map +0 -1
  170. package/lib/module/webViewInterface.js +0 -62
  171. package/lib/module/webViewInterface.js.map +0 -1
  172. package/lib/typescript/__tests__/api.test.d.ts +0 -2
  173. package/lib/typescript/__tests__/api.test.d.ts.map +0 -1
  174. package/lib/typescript/__tests__/configurations.test.d.ts +0 -2
  175. package/lib/typescript/__tests__/configurations.test.d.ts.map +0 -1
  176. package/lib/typescript/__tests__/events.test.d.ts +0 -2
  177. package/lib/typescript/__tests__/events.test.d.ts.map +0 -1
  178. package/lib/typescript/__tests__/index.test.d.ts +0 -2
  179. package/lib/typescript/__tests__/index.test.d.ts.map +0 -1
  180. package/lib/typescript/__tests__/jsCore.test.d.ts +0 -2
  181. package/lib/typescript/__tests__/jsCore.test.d.ts.map +0 -1
  182. package/lib/typescript/__tests__/utils.test.d.ts +0 -2
  183. package/lib/typescript/__tests__/utils.test.d.ts.map +0 -1
  184. package/lib/typescript/api.d.ts +0 -240
  185. package/lib/typescript/api.d.ts.map +0 -1
  186. package/lib/typescript/configurations.d.ts +0 -73
  187. package/lib/typescript/configurations.d.ts.map +0 -1
  188. package/lib/typescript/constants.d.ts +0 -64
  189. package/lib/typescript/constants.d.ts.map +0 -1
  190. package/lib/typescript/events.d.ts +0 -115
  191. package/lib/typescript/events.d.ts.map +0 -1
  192. package/lib/typescript/index.d.ts +0 -27
  193. package/lib/typescript/index.d.ts.map +0 -1
  194. package/lib/typescript/jsCore.d.ts +0 -152
  195. package/lib/typescript/jsCore.d.ts.map +0 -1
  196. package/lib/typescript/native.d.ts +0 -4
  197. package/lib/typescript/native.d.ts.map +0 -1
  198. package/lib/typescript/subject.d.ts +0 -91
  199. package/lib/typescript/subject.d.ts.map +0 -1
  200. package/lib/typescript/tracker.d.ts +0 -111
  201. package/lib/typescript/tracker.d.ts.map +0 -1
  202. package/lib/typescript/types.d.ts +0 -981
  203. package/lib/typescript/types.d.ts.map +0 -1
  204. package/lib/typescript/utils.d.ts +0 -35
  205. package/lib/typescript/utils.d.ts.map +0 -1
  206. package/lib/typescript/webViewInterface.d.ts +0 -15
  207. package/lib/typescript/webViewInterface.d.ts.map +0 -1
  208. package/scripts/bootstrap.js +0 -29
  209. package/snowplow-react-native-tracker.podspec +0 -42
  210. package/src/__mocks__/react-native.js +0 -7
  211. package/src/__tests__/api.test.ts +0 -21
  212. package/src/__tests__/configurations.test.ts +0 -608
  213. package/src/__tests__/events.test.ts +0 -736
  214. package/src/__tests__/index.test.ts +0 -14
  215. package/src/__tests__/jsCore.test.ts +0 -199
  216. package/src/__tests__/utils.test.ts +0 -10
  217. package/src/api.ts +0 -556
  218. package/src/configurations.ts +0 -325
  219. package/src/constants.ts +0 -97
  220. package/src/events.ts +0 -355
  221. package/src/index.ts +0 -184
  222. package/src/jsCore.ts +0 -603
  223. package/src/native.ts +0 -21
  224. package/src/subject.ts +0 -302
  225. package/src/tracker.ts +0 -377
  226. package/src/types.ts +0 -1162
  227. package/src/utils.ts +0 -65
  228. package/src/webViewInterface.ts +0 -92
  229. package/tsconfig.build.json +0 -5
  230. package/tsconfig.json +0 -28
  231. package/turbo.json +0 -34
  232. package/yarn.lock +0 -9398
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsCore.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/jsCore.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=utils.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/utils.test.ts"],"names":[],"mappings":""}
@@ -1,240 +0,0 @@
1
- import type { InitTrackerConfiguration, SubjectConfiguration, SelfDescribing, EventContext, ScreenViewProps, StructuredProps, PageViewProps, TimingProps, ConsentGrantedProps, ConsentWithdrawnProps, EcommerceTransactionProps, GlobalContext, ScreenSize, DeepLinkReceivedProps, MessageNotificationProps, ScrollChangedProps, ListItemViewProps } from './types';
2
- /**
3
- * Create a tracker from specified initial configuration.
4
- *
5
- * @param initConfig {Object} - The initial tracker configuration
6
- * @returns - A promise fullfilled if the tracker is initialized
7
- */
8
- declare function createTracker(initConfig: InitTrackerConfiguration): Promise<void>;
9
- /**
10
- * Removes the tracker with given namespace
11
- *
12
- * @param trackerNamespace {string} - The tracker namespace
13
- * @returns - A boolean promise
14
- */
15
- declare function removeTracker(trackerNamespace: string): Promise<boolean>;
16
- /**
17
- * Removes all existing trackers
18
- *
19
- * @returns - A void promise
20
- */
21
- declare function removeAllTrackers(): Promise<boolean>;
22
- /**
23
- * Returns a function to track a SelfDescribing event by a tracker
24
- *
25
- * @param namespace {string} - The tracker namespace
26
- * @returns - A function to track a SelfDescribing event
27
- */
28
- declare function trackSelfDescribingEvent(namespace: string): (argmap: SelfDescribing, contexts?: EventContext[]) => Promise<void>;
29
- /**
30
- * Returns a function to track a ScreenView event by a tracker
31
- *
32
- * @param namespace {string} - The tracker namespace
33
- * @returns - A function to track a ScreenView event
34
- */
35
- declare function trackScreenViewEvent(namespace: string): (argmap: ScreenViewProps, contexts?: EventContext[]) => Promise<void>;
36
- /**
37
- * Returns a function to track a ScrollChanged event by a tracker
38
- *
39
- * @param namespace {string} - The tracker namespace
40
- * @returns - A function to track a ScrollChanged event
41
- */
42
- declare function trackScrollChangedEvent(namespace: string): (argmap: ScrollChangedProps, contexts?: EventContext[]) => Promise<void>;
43
- /**
44
- * Returns a function to track a ListItemView event by a tracker
45
- *
46
- * @param namespace {string} - The tracker namespace
47
- * @returns - A function to track a ListItemView event
48
- */
49
- declare function trackListItemViewEvent(namespace: string): (argmap: ListItemViewProps, contexts?: EventContext[]) => Promise<void>;
50
- /**
51
- * Returns a function to track a Structured event by a tracker
52
- *
53
- * @param namespace {string} - The tracker namespace
54
- * @returns - A function to track a Structured event
55
- */
56
- declare function trackStructuredEvent(namespace: string): (argmap: StructuredProps, contexts?: EventContext[]) => Promise<void>;
57
- /**
58
- * Returns a function to track a PageView event by a tracker
59
- *
60
- * @param namespace {string} - The tracker namespace
61
- * @returns - A function to track a PageView event
62
- */
63
- declare function trackPageViewEvent(namespace: string): (argmap: PageViewProps, contexts?: EventContext[]) => Promise<void>;
64
- /**
65
- * Returns a function to track a Timing event by a tracker
66
- *
67
- * @param namespace {string} - The tracker namespace
68
- * @returns - A function to track a Timing event
69
- */
70
- declare function trackTimingEvent(namespace: string): (argmap: TimingProps, contexts?: EventContext[]) => Promise<void>;
71
- /**
72
- * Returns a function to track a ConsentGranted event by a tracker
73
- *
74
- * @param namespace {string} - The tracker namespace
75
- * @returns - A function to track a ConsentGranted event
76
- */
77
- declare function trackConsentGrantedEvent(namespace: string): (argmap: ConsentGrantedProps, contexts?: EventContext[]) => Promise<void>;
78
- /**
79
- * Returns a function to track a ConsentWithdrawn event by a tracker
80
- *
81
- * @param namespace {string} - The tracker namespace
82
- * @returns - A function to track a ConsentWithdrawn event
83
- */
84
- declare function trackConsentWithdrawnEvent(namespace: string): (argmap: ConsentWithdrawnProps, contexts?: EventContext[]) => Promise<void>;
85
- /**
86
- * Returns a function to track an EcommerceTransaction event by a tracker
87
- *
88
- * @param namespace {string} - The tracker namespace
89
- * @returns - A function to track an EcommerceTransaction event
90
- */
91
- declare function trackEcommerceTransactionEvent(namespace: string): (argmap: EcommerceTransactionProps, contexts?: EventContext[]) => Promise<void>;
92
- /**
93
- * Returns a function to track an DeepLinkReceived event by a tracker
94
- *
95
- * @param namespace {string} - The tracker namespace
96
- * @returns - A function to track an DeepLinkReceived event
97
- */
98
- declare function trackDeepLinkReceivedEvent(namespace: string): (argmap: DeepLinkReceivedProps, contexts?: EventContext[]) => Promise<void>;
99
- /**
100
- * Returns a function to track an MessageNotification event by a tracker
101
- *
102
- * @param namespace {string} - The tracker namespace
103
- * @returns - A function to track an MessageNotification event
104
- */
105
- declare function trackMessageNotificationEvent(namespace: string): (argmap: MessageNotificationProps, contexts?: EventContext[]) => Promise<void>;
106
- /**
107
- * Returns a function to remove global contexts by a tracker
108
- *
109
- * @param namespace {string} - The tracker namespace
110
- * @returns - A function to remove global contexts
111
- */
112
- declare function removeGlobalContexts(namespace: string): (tag: string) => Promise<void>;
113
- /**
114
- * Returns a function to add global contexts by a tracker
115
- *
116
- * @param namespace {string} - The tracker namespace
117
- * @returns - A function to add global contexts
118
- */
119
- declare function addGlobalContexts(namespace: string): (gc: GlobalContext) => Promise<void>;
120
- /**
121
- * Returns a function to set the subject userId
122
- *
123
- * @param namespace {string} - The tracker namespace
124
- * @returns - A function to set the userId
125
- */
126
- declare function setUserId(namespace: string): (newUid: string | null) => Promise<void>;
127
- /**
128
- * Returns a function to set the subject networkUserId
129
- *
130
- * @param namespace {string} - The tracker namespace
131
- * @returns - A function to set the networkUserId
132
- */
133
- declare function setNetworkUserId(namespace: string): (newNuid: string | null) => Promise<void>;
134
- /**
135
- * Returns a function to set the subject domainUserId
136
- *
137
- * @param namespace {string} - The tracker namespace
138
- * @returns - A function to set the domainUserId
139
- */
140
- declare function setDomainUserId(namespace: string): (newDuid: string | null) => Promise<void>;
141
- /**
142
- * Returns a function to set the subject ipAddress
143
- *
144
- * @param namespace {string} - The tracker namespace
145
- * @returns - A function to set the ipAddress
146
- */
147
- declare function setIpAddress(namespace: string): (newIp: string | null) => Promise<void>;
148
- /**
149
- * Returns a function to set the subject useragent
150
- *
151
- * @param namespace {string} - The tracker namespace
152
- * @returns - A function to set the useragent
153
- */
154
- declare function setUseragent(namespace: string): (newUagent: string | null) => Promise<void>;
155
- /**
156
- * Returns a function to set the subject timezone
157
- *
158
- * @param namespace {string} - The tracker namespace
159
- * @returns - A function to set the timezone
160
- */
161
- declare function setTimezone(namespace: string): (newTz: string | null) => Promise<void>;
162
- /**
163
- * Returns a function to set the subject language
164
- *
165
- * @param namespace {string} - The tracker namespace
166
- * @returns - A function to set the language
167
- */
168
- declare function setLanguage(namespace: string): (newLang: string | null) => Promise<void>;
169
- /**
170
- * Returns a function to set the subject screenResolution
171
- *
172
- * @param namespace {string} - The tracker namespace
173
- * @returns - A function to set the screenResolution
174
- */
175
- declare function setScreenResolution(namespace: string): (newRes: ScreenSize | null) => Promise<void>;
176
- /**
177
- * Returns a function to set the subject screenViewport
178
- *
179
- * @param namespace {string} - The tracker namespace
180
- * @returns - A function to set the screenViewport
181
- */
182
- declare function setScreenViewport(namespace: string): (newView: ScreenSize | null) => Promise<void>;
183
- /**
184
- * Returns a function to set the subject colorDepth
185
- *
186
- * @param namespace {string} - The tracker namespace
187
- * @returns - A function to set the colorDepth
188
- */
189
- declare function setColorDepth(namespace: string): (newColorD: number | null) => Promise<void>;
190
- /**
191
- * Returns a function to set subject data
192
- *
193
- * @param namespace {string} - The tracker namespace
194
- * @returns - A function to set subject data
195
- */
196
- declare function setSubjectData(namespace: string): (config: SubjectConfiguration) => Promise<void>;
197
- /**
198
- * Returns a function to get the current session userId
199
- *
200
- * @param namespace {string} - The tracker namespace
201
- * @returns - A function to get the session userId
202
- */
203
- declare function getSessionUserId(namespace: string): () => Promise<string>;
204
- /**
205
- * Returns a function to get the current sessionId
206
- *
207
- * @param namespace {string} - The tracker namespace
208
- * @returns - A function to get the sessionId
209
- */
210
- declare function getSessionId(namespace: string): () => Promise<string>;
211
- /**
212
- * Returns a function to get the current session index
213
- *
214
- * @param namespace {string} - The tracker namespace
215
- * @returns - A function to get the session index
216
- */
217
- declare function getSessionIndex(namespace: string): () => Promise<number>;
218
- /**
219
- * Returns a function to get whether the app is in background
220
- *
221
- * @param namespace {string} - The tracker namespace
222
- * @returns - A function to get whether the app isInBackground
223
- */
224
- declare function getIsInBackground(namespace: string): () => Promise<boolean>;
225
- /**
226
- * Returns a function to get the background index
227
- *
228
- * @param namespace {string} - The tracker namespace
229
- * @returns - A function to get the backgroundIndex
230
- */
231
- declare function getBackgroundIndex(namespace: string): () => Promise<number>;
232
- /**
233
- * Returns a function to get the foreground index
234
- *
235
- * @param namespace {string} - The tracker namespace
236
- * @returns - A function to get the foregroundIndex
237
- */
238
- declare function getForegroundIndex(namespace: string): () => Promise<number>;
239
- export { createTracker, removeTracker, removeAllTrackers, trackSelfDescribingEvent, trackScreenViewEvent, trackScrollChangedEvent, trackListItemViewEvent, trackStructuredEvent, trackPageViewEvent, trackTimingEvent, trackConsentGrantedEvent, trackConsentWithdrawnEvent, trackEcommerceTransactionEvent, trackDeepLinkReceivedEvent, trackMessageNotificationEvent, removeGlobalContexts, addGlobalContexts, setUserId, setNetworkUserId, setDomainUserId, setIpAddress, setUseragent, setTimezone, setLanguage, setScreenResolution, setScreenViewport, setColorDepth, setSubjectData, getSessionUserId, getSessionId, getSessionIndex, getIsInBackground, getBackgroundIndex, getForegroundIndex, };
240
- //# sourceMappingURL=api.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","s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;;GAKG;AACH,iBAAS,eAAe,CAAC,SAAS,EAAE,MAAM,SACpB,QAAQ,MAAM,CAAC,CAKpC;AAED;;;;;GAKG;AACH,iBAAS,iBAAiB,CAAC,SAAS,EAAE,MAAM,SACtB,QAAQ,OAAO,CAAC,CAOrC;AAED;;;;;GAKG;AACH,iBAAS,kBAAkB,CAAC,SAAS,EAAE,MAAM,SACvB,QAAQ,MAAM,CAAC,CAOpC;AAED;;;;;GAKG;AACH,iBAAS,kBAAkB,CAAC,SAAS,EAAE,MAAM,SACvB,QAAQ,MAAM,CAAC,CAOpC;AAED,OAAO,EACL,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,wBAAwB,EACxB,0BAA0B,EAC1B,8BAA8B,EAC9B,0BAA0B,EAC1B,6BAA6B,EAC7B,oBAAoB,EACpB,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,GACnB,CAAC"}
@@ -1,73 +0,0 @@
1
- import type { NetworkConfiguration, TrackerConfiguration, SessionConfiguration, EmitterConfiguration, SubjectConfiguration, GdprConfiguration, GCConfiguration, GlobalContext, InitTrackerConfiguration } from './types';
2
- /**
3
- * Validates the networkConfig
4
- *
5
- * @param config {Object} - the config to validate
6
- * @returns - boolean
7
- */
8
- declare function isValidNetworkConf(config: NetworkConfiguration): boolean;
9
- /**
10
- * Validates the trackerConfig
11
- *
12
- * @param config {Object} - the config to validate
13
- * @returns - boolean
14
- */
15
- declare function isValidTrackerConf(config: TrackerConfiguration): boolean;
16
- /**
17
- * Validates the sessionConfig
18
- *
19
- * @param config {Object} - the config to validate
20
- * @returns - boolean
21
- */
22
- declare function isValidSessionConf(config: SessionConfiguration): boolean;
23
- /**
24
- * Validates the emitterConfig
25
- *
26
- * @param config {Object} - the config to validate
27
- * @returns - boolean
28
- */
29
- declare function isValidEmitterConf(config: EmitterConfiguration): boolean;
30
- /**
31
- * Validates whether an object is of ScreenSize type
32
- *
33
- * @param arr {Object} - the object to validate
34
- * @returns - boolean
35
- */
36
- declare function isScreenSize<Type>(arr: Type): boolean;
37
- /**
38
- * Validates the subjectConfig
39
- *
40
- * @param config {Object} - the config to validate
41
- * @returns - boolean
42
- */
43
- declare function isValidSubjectConf(config: SubjectConfiguration): boolean;
44
- /**
45
- * Validates the gdprConfig
46
- *
47
- * @param config {Object} - the config to validate
48
- * @returns - boolean
49
- */
50
- declare function isValidGdprConf(config: GdprConfiguration): boolean;
51
- /**
52
- * Validates whether an object is of GlobalContext type
53
- *
54
- * @param gc {Object} - the object to validate
55
- * @returns - boolean
56
- */
57
- declare function isValidGC(gc: GlobalContext): boolean;
58
- /**
59
- * Validates the GCConfig (global contexts)
60
- *
61
- * @param config {Object} - the config to validate
62
- * @returns - boolean
63
- */
64
- declare function isValidGCConf(config: GCConfiguration): boolean;
65
- /**
66
- * Validates the initTrackerConfiguration
67
- *
68
- * @param init {Object} - the config to validate
69
- * @returns - boolean promise
70
- */
71
- declare function initValidate(init: InitTrackerConfiguration): Promise<boolean>;
72
- export { isValidNetworkConf, isValidTrackerConf, isValidSessionConf, isValidEmitterConf, isValidSubjectConf, isValidGdprConf, isValidGCConf, isValidGC, isScreenSize, initValidate, };
73
- //# sourceMappingURL=configurations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"configurations.d.ts","sourceRoot":"","sources":["../../src/configurations.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAoEjB;;;;;GAKG;AACH,iBAAS,kBAAkB,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAUjE;AAED;;;;;GAKG;AACH,iBAAS,kBAAkB,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAKjE;AAED;;;;;GAKG;AACH,iBAAS,kBAAkB,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAWjE;AAED;;;;;GAKG;AACH,iBAAS,kBAAkB,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAKjE;AAED;;;;;GAKG;AACH,iBAAS,YAAY,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,GAAG,OAAO,CAM9C;AAED;;;;;GAKG;AACH,iBAAS,kBAAkB,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAuBjE;AAED;;;;;GAKG;AACH,iBAAS,eAAe,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAmB3D;AAED;;;;;GAKG;AACH,iBAAS,SAAS,CAAC,EAAE,EAAE,aAAa,GAAG,OAAO,CAQ7C;AAED;;;;;GAKG;AACH,iBAAS,aAAa,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAQvD;AAED;;;;;GAKG;AACH,iBAAS,YAAY,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,OAAO,CAAC,CAuDtE;AAED,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,SAAS,EACT,YAAY,EACZ,YAAY,GACb,CAAC"}
@@ -1,64 +0,0 @@
1
- declare const logMessages: {
2
- namespace: string;
3
- endpoint: string;
4
- network: string;
5
- tracker: string;
6
- session: string;
7
- emitter: string;
8
- subject: string;
9
- gdpr: string;
10
- gc: string;
11
- context: string;
12
- selfDesc: string;
13
- evType: string;
14
- screenViewReq: string;
15
- listItemViewReq: string;
16
- structuredReq: string;
17
- pageviewReq: string;
18
- timingReq: string;
19
- consentGReq: string;
20
- consentWReq: string;
21
- ecomReq: string;
22
- deepLinkReq: string;
23
- messageNotificationReq: string;
24
- gcTagType: string;
25
- gcType: string;
26
- createTracker: string;
27
- removeTracker: string;
28
- trackSelfDesc: string;
29
- trackScreenView: string;
30
- trackScrollChanged: string;
31
- trackListItemView: string;
32
- trackStructured: string;
33
- trackPageView: string;
34
- trackTiming: string;
35
- trackConsentGranted: string;
36
- trackConsentWithdrawn: string;
37
- trackEcommerceTransaction: string;
38
- trackDeepLinkReceived: string;
39
- trackMessageNotification: string;
40
- removeGlobalContexts: string;
41
- addGlobalContexts: string;
42
- setUserId: string;
43
- setNetworkUserId: string;
44
- setDomainUserId: string;
45
- setIpAddress: string;
46
- setUseragent: string;
47
- setTimezone: string;
48
- setLanguage: string;
49
- setScreenResolution: string;
50
- setScreenViewport: string;
51
- setColorDepth: string;
52
- setSubjectData: string;
53
- };
54
- declare const schemas: {
55
- payloadData: string;
56
- timingSchema: string;
57
- deepLinkReceivedSchema: string;
58
- messageNotificationSchema: string;
59
- screenViewSchema: string;
60
- scrollChangedSchema: string;
61
- listItemViewSchema: string;
62
- };
63
- export { logMessages, schemas };
64
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4EhB,CAAC;AAEF,QAAA,MAAM,OAAO;;;;;;;;CAcZ,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC"}
@@ -1,115 +0,0 @@
1
- import type { SelfDescribing, EventContext, ScreenViewProps, StructuredProps, PageViewProps, TimingProps, ConsentGrantedProps, ConsentWithdrawnProps, EcommerceItem, EcommerceTransactionProps, DeepLinkReceivedProps, MessageNotificationProps, ScrollChangedProps, ListItemViewProps } from './types';
2
- /**
3
- * Validates whether an object is valid self-describing
4
- *
5
- * @param sd {Object} - the object to validate
6
- * @returns - boolean
7
- */
8
- declare function isValidSD(sd: SelfDescribing | EventContext): boolean;
9
- /**
10
- * Validates whether an object is a valid array of contexts
11
- *
12
- * @param contexts {Object} - the object to validate
13
- * @returns - boolean promise
14
- */
15
- declare function validateContexts(contexts: EventContext[]): Promise<boolean>;
16
- /**
17
- * Validates whether an object is valid self describing
18
- *
19
- * @param argmap {Object} - the object to validate
20
- * @returns - boolean promise
21
- */
22
- declare function validateSelfDesc(argmap: SelfDescribing): Promise<boolean>;
23
- /**
24
- * Validates a screen view event
25
- *
26
- * @param argmap {Object} - the object to validate
27
- * @returns - boolean promise
28
- */
29
- declare function validateScreenView(argmap: ScreenViewProps): Promise<boolean>;
30
- /**
31
- * Validates a scroll changed event
32
- *
33
- * @param argmap {Object} - the object to validate
34
- * @returns - boolean promise
35
- */
36
- declare function validateScrollChanged(argmap: ScrollChangedProps): Promise<boolean>;
37
- /**
38
- * Validates a list item view event
39
- *
40
- * @param argmap {Object} - the object to validate
41
- * @returns - boolean promise
42
- */
43
- declare function validateListItemView(argmap: ListItemViewProps): Promise<boolean>;
44
- /**
45
- * Validates a structured event
46
- *
47
- * @param argmap {Object} - the object to validate
48
- * @returns - boolean promise
49
- */
50
- declare function validateStructured(argmap: StructuredProps): Promise<boolean>;
51
- /**
52
- * Validates a page-view event
53
- *
54
- * @param argmap {Object} - the object to validate
55
- * @returns - boolean promise
56
- */
57
- declare function validatePageView(argmap: PageViewProps): Promise<boolean>;
58
- /**
59
- * Validates a timing event
60
- *
61
- * @param argmap {Object} - the object to validate
62
- * @returns - boolean promise
63
- */
64
- declare function validateTiming(argmap: TimingProps): Promise<boolean>;
65
- /**
66
- * Validates a consent-granted event
67
- *
68
- * @param argmap {Object} - the object to validate
69
- * @returns - boolean promise
70
- */
71
- declare function validateConsentGranted(argmap: ConsentGrantedProps): Promise<boolean>;
72
- /**
73
- * Validates a consent-withdrawn event
74
- *
75
- * @param argmap {Object} - the object to validate
76
- * @returns - boolean promise
77
- */
78
- declare function validateConsentWithdrawn(argmap: ConsentWithdrawnProps): Promise<boolean>;
79
- /**
80
- * Validates a deep link received event
81
- *
82
- * @param argmap {Object} - the object to validate
83
- * @returns - boolean promise
84
- */
85
- declare function validateDeepLinkReceived(argmap: DeepLinkReceivedProps): Promise<boolean>;
86
- /**
87
- * Validates a message notification event
88
- *
89
- * @param argmap {Object} - the object to validate
90
- * @returns - boolean promise
91
- */
92
- declare function validateMessageNotification(argmap: MessageNotificationProps): Promise<boolean>;
93
- /**
94
- * Validates whether an object is valid ecommerce-item
95
- *
96
- * @param item {Object} - the object to validate
97
- * @returns - boolean
98
- */
99
- declare function isValidEcomItem(item: EcommerceItem): boolean;
100
- /**
101
- * Validates an array of ecommerce-items
102
- *
103
- * @param items {Object} - the object to validate
104
- * @returns - boolean promise
105
- */
106
- declare function validItemsArg(items: EcommerceItem[]): boolean;
107
- /**
108
- * Validates an ecommerce-transaction event
109
- *
110
- * @param argmap {Object} - the object to validate
111
- * @returns - boolean promise
112
- */
113
- declare function validateEcommerceTransaction(argmap: EcommerceTransactionProps): Promise<boolean>;
114
- export { isValidSD, validateContexts, validateSelfDesc, validateScreenView, validateScrollChanged, validateListItemView, validateStructured, validatePageView, validateTiming, validateConsentGranted, validateConsentWithdrawn, isValidEcomItem, validItemsArg, validateEcommerceTransaction, validateDeepLinkReceived, validateMessageNotification, };
115
- //# sourceMappingURL=events.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/events.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,eAAe,EACf,eAAe,EACf,aAAa,EACb,WAAW,EACX,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,EACb,yBAAyB,EACzB,qBAAqB,EACrB,wBAAwB,EACxB,kBAAkB,EAClB,iBAAi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BAAS,2BAA2B,CAClC,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAAC,OAAO,CAAC,CAkBlB;AAED;;;;;GAKG;AACH,iBAAS,eAAe,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAUrD;AAED;;;;;GAKG;AACH,iBAAS,aAAa,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,OAAO,CAOtD;AAED;;;;;GAKG;AACH,iBAAS,4BAA4B,CACnC,MAAM,EAAE,yBAAyB,GAChC,OAAO,CAAC,OAAO,CAAC,CAelB;AAED,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,sBAAsB,EACtB,wBAAwB,EACxB,eAAe,EACf,aAAa,EACb,4BAA4B,EAC5B,wBAAwB,EACxB,2BAA2B,GAC5B,CAAC"}
@@ -1,27 +0,0 @@
1
- import type { NetworkConfiguration, TrackerControllerConfiguration, ReactNativeTracker } from './types';
2
- import { getWebViewCallback } from './webViewInterface';
3
- /**
4
- * Creates a React Native Tracker object
5
- *
6
- * @param namespace {string} - The tracker namespace
7
- * @param networkConfig {Object} - The network configuration
8
- * @param control {Array} - The tracker controller configuration
9
- * @returns The tracker object
10
- */
11
- declare function createTracker(namespace: string, networkConfig: NetworkConfiguration, controllerConfig?: TrackerControllerConfiguration): ReactNativeTracker;
12
- /**
13
- * Removes a tracker given its namespace
14
- *
15
- * @param trackerNamespace {string}
16
- * @returns - A boolean promise
17
- */
18
- declare function removeTracker(trackerNamespace: string): Promise<boolean>;
19
- /**
20
- * Removes all trackers
21
- *
22
- * @returns - A boolean promise
23
- */
24
- declare function removeAllTrackers(): Promise<boolean>;
25
- export { createTracker, removeTracker, removeAllTrackers, getWebViewCallback };
26
- export type { ReactNativeTracker, TrackerControllerConfiguration, NetworkConfiguration, TrackerConfiguration, SessionConfiguration, EmitterConfiguration, SubjectConfiguration, GdprConfiguration, GCConfiguration, SelfDescribing, EventContext, ScreenViewProps, StructuredProps, PageViewProps, TimingProps, ConsentGrantedProps, ConsentWithdrawnProps, EcommerceTransactionProps, DeepLinkReceivedProps, MessageNotificationProps, EcommerceItem, ConsentDocument, GlobalContext, HttpMethod, DevicePlatform, LogLevel, Basis, BufferOption, ScreenSize, Trigger, } from './types';
27
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,oBAAoB,EACpB,8BAA8B,EAC9B,kBAAkB,EACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD;;;;;;;GAOG;AACH,iBAAS,aAAa,CACpB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,oBAAoB,EACnC,gBAAgB,GAAE,8BAAmC,GACpD,kBAAkB,CAsGpB;AAED;;;;;GAKG;AACH,iBAAS,aAAa,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAIjE;AAED;;;;GAIG;AACH,iBAAS,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC,CAI7C;AAED,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,CAAC;AAE/E,YAAY,EACV,kBAAkB,EAClB,8BAA8B,EAC9B,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,YAAY,EACZ,eAAe,EACf,eAAe,EACf,aAAa,EACb,WAAW,EACX,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,wBAAwB,EACxB,aAAa,EACb,eAAe,EACf,aAAa,EACb,UAAU,EACV,cAAc,EACd,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,UAAU,EACV,OAAO,GACR,MAAM,SAAS,CAAC"}