@datadog/mobile-react-native-navigation 2.14.0 → 3.0.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 (181) hide show
  1. package/lib/commonjs/index.js.map +1 -1
  2. package/lib/commonjs/rum/instrumentation/DdRumReactNativeNavigationTracking.js +31 -7
  3. package/lib/commonjs/rum/instrumentation/DdRumReactNativeNavigationTracking.js.map +1 -1
  4. package/lib/module/index.js.map +1 -1
  5. package/lib/module/rum/instrumentation/DdRumReactNativeNavigationTracking.js +30 -7
  6. package/lib/module/rum/instrumentation/DdRumReactNativeNavigationTracking.js.map +1 -1
  7. package/lib/typescript/core/src/DdAttributes.d.ts.map +1 -0
  8. package/lib/typescript/core/src/DdSdkReactNative.d.ts +49 -12
  9. package/lib/typescript/core/src/DdSdkReactNative.d.ts.map +1 -1
  10. package/lib/typescript/core/src/InternalLog.d.ts +1 -1
  11. package/lib/typescript/core/src/InternalLog.d.ts.map +1 -1
  12. package/lib/typescript/core/src/config/DatadogProviderConfiguration.d.ts +12 -0
  13. package/lib/typescript/core/src/config/DatadogProviderConfiguration.d.ts.map +1 -0
  14. package/lib/typescript/core/src/config/FileBasedConfiguration.d.ts +17 -0
  15. package/lib/typescript/core/src/config/FileBasedConfiguration.d.ts.map +1 -0
  16. package/lib/typescript/core/src/config/FileBasedConfiguration.type.d.ts +52 -0
  17. package/lib/typescript/core/src/config/FileBasedConfiguration.type.d.ts.map +1 -0
  18. package/lib/typescript/core/src/config/async/AutoInstrumentationConfiguration.d.ts +60 -0
  19. package/lib/typescript/core/src/config/async/AutoInstrumentationConfiguration.d.ts.map +1 -0
  20. package/lib/typescript/core/src/config/async/PartialInitializationConfiguration.d.ts +47 -0
  21. package/lib/typescript/core/src/config/async/PartialInitializationConfiguration.d.ts.map +1 -0
  22. package/lib/typescript/core/src/config/async/asyncInitializationHelper.d.ts +5 -0
  23. package/lib/typescript/core/src/config/async/asyncInitializationHelper.d.ts.map +1 -0
  24. package/lib/typescript/core/src/config/features/CoreConfiguration.d.ts +52 -0
  25. package/lib/typescript/core/src/config/features/CoreConfiguration.d.ts.map +1 -0
  26. package/lib/typescript/core/src/config/features/CoreConfiguration.type.d.ts +90 -0
  27. package/lib/typescript/core/src/config/features/CoreConfiguration.type.d.ts.map +1 -0
  28. package/lib/typescript/core/src/config/features/CoreConfigurationNative.d.ts +54 -0
  29. package/lib/typescript/core/src/config/features/CoreConfigurationNative.d.ts.map +1 -0
  30. package/lib/typescript/core/src/config/features/LogsConfiguration.d.ts +17 -0
  31. package/lib/typescript/core/src/config/features/LogsConfiguration.d.ts.map +1 -0
  32. package/lib/typescript/core/src/config/features/LogsConfiguration.type.d.ts +24 -0
  33. package/lib/typescript/core/src/config/features/LogsConfiguration.type.d.ts.map +1 -0
  34. package/lib/typescript/core/src/config/features/LogsConfigurationNative.d.ts +6 -0
  35. package/lib/typescript/core/src/config/features/LogsConfigurationNative.d.ts.map +1 -0
  36. package/lib/typescript/core/src/config/features/RumConfiguration.d.ts +66 -0
  37. package/lib/typescript/core/src/config/features/RumConfiguration.d.ts.map +1 -0
  38. package/lib/typescript/core/src/config/features/RumConfiguration.type.d.ts +131 -0
  39. package/lib/typescript/core/src/config/features/RumConfiguration.type.d.ts.map +1 -0
  40. package/lib/typescript/core/src/config/features/RumConfigurationNative.d.ts +25 -0
  41. package/lib/typescript/core/src/config/features/RumConfigurationNative.d.ts.map +1 -0
  42. package/lib/typescript/core/src/config/features/TraceConfiguration.d.ts +10 -0
  43. package/lib/typescript/core/src/config/features/TraceConfiguration.d.ts.map +1 -0
  44. package/lib/typescript/core/src/config/features/TraceConfiguration.type.d.ts +11 -0
  45. package/lib/typescript/core/src/config/features/TraceConfiguration.type.d.ts.map +1 -0
  46. package/lib/typescript/core/src/config/features/TraceConfigurationNative.d.ts +4 -0
  47. package/lib/typescript/core/src/config/features/TraceConfigurationNative.d.ts.map +1 -0
  48. package/lib/typescript/core/src/config/types/BatchProcessingLevel.d.ts +18 -0
  49. package/lib/typescript/core/src/config/types/BatchProcessingLevel.d.ts.map +1 -0
  50. package/lib/typescript/core/src/config/types/BatchSize.d.ts +19 -0
  51. package/lib/typescript/core/src/config/types/BatchSize.d.ts.map +1 -0
  52. package/lib/typescript/core/src/config/types/InitializationMode.d.ts +5 -0
  53. package/lib/typescript/core/src/config/types/InitializationMode.d.ts.map +1 -0
  54. package/lib/typescript/core/src/config/types/InitializationModeForTelemetry.d.ts +2 -0
  55. package/lib/typescript/core/src/config/types/InitializationModeForTelemetry.d.ts.map +1 -0
  56. package/lib/typescript/core/src/config/types/ProxyConfiguration.d.ts.map +1 -0
  57. package/lib/typescript/core/src/config/types/SdkVerbosity.d.ts.map +1 -0
  58. package/lib/typescript/core/src/config/types/TrackingConsent.d.ts.map +1 -0
  59. package/lib/typescript/core/src/config/types/UploadFrequency.d.ts +18 -0
  60. package/lib/typescript/core/src/config/types/UploadFrequency.d.ts.map +1 -0
  61. package/lib/typescript/core/src/config/types/VitalsUpdateFrequency.d.ts +7 -0
  62. package/lib/typescript/core/src/config/types/VitalsUpdateFrequency.d.ts.map +1 -0
  63. package/lib/typescript/core/src/config/types/index.d.ts +10 -0
  64. package/lib/typescript/core/src/config/types/index.d.ts.map +1 -0
  65. package/lib/typescript/core/src/index.d.ts +20 -9
  66. package/lib/typescript/core/src/index.d.ts.map +1 -1
  67. package/lib/typescript/core/src/logs/DdLogs.d.ts +2 -1
  68. package/lib/typescript/core/src/logs/DdLogs.d.ts.map +1 -1
  69. package/lib/typescript/core/src/logs/eventMapper.d.ts +3 -2
  70. package/lib/typescript/core/src/logs/eventMapper.d.ts.map +1 -1
  71. package/lib/typescript/core/src/logs/types.d.ts +1 -16
  72. package/lib/typescript/core/src/logs/types.d.ts.map +1 -1
  73. package/lib/typescript/core/src/nativeModulesTypes.d.ts +2 -15
  74. package/lib/typescript/core/src/nativeModulesTypes.d.ts.map +1 -1
  75. package/lib/typescript/core/src/rum/DdRum.d.ts +10 -1
  76. package/lib/typescript/core/src/rum/DdRum.d.ts.map +1 -1
  77. package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts +1 -1
  78. package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts.map +1 -1
  79. package/lib/typescript/core/src/rum/helper.d.ts +10 -0
  80. package/lib/typescript/core/src/rum/helper.d.ts.map +1 -0
  81. package/lib/typescript/core/src/rum/instrumentation/DdRumErrorTracking.d.ts.map +1 -1
  82. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts +6 -6
  83. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts.map +1 -1
  84. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts +7 -0
  85. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts.map +1 -1
  86. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts +12 -6
  87. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts.map +1 -1
  88. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts +1 -0
  89. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts.map +1 -1
  90. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts +8 -0
  91. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts.map +1 -1
  92. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts +5 -17
  93. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts.map +1 -1
  94. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts +20 -0
  95. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts.map +1 -0
  96. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts +3 -24
  97. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts.map +1 -1
  98. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts +12 -0
  99. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts.map +1 -0
  100. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts +24 -0
  101. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts.map +1 -0
  102. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts +2 -1
  103. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts.map +1 -1
  104. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.d.ts.map +1 -1
  105. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts +1 -1
  106. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts.map +1 -1
  107. package/lib/typescript/core/src/rum/types.d.ts +47 -7
  108. package/lib/typescript/core/src/rum/types.d.ts.map +1 -1
  109. package/lib/typescript/core/src/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts +15 -0
  110. package/lib/typescript/core/src/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts.map +1 -0
  111. package/lib/typescript/core/src/sdk/AccountInfoSingleton/types.d.ts +6 -0
  112. package/lib/typescript/core/src/sdk/AccountInfoSingleton/types.d.ts.map +1 -0
  113. package/lib/typescript/core/src/sdk/AttributesEncoding/attributesEncoding.d.ts +13 -0
  114. package/lib/typescript/core/src/sdk/AttributesEncoding/attributesEncoding.d.ts.map +1 -0
  115. package/lib/typescript/core/src/sdk/AttributesEncoding/defaultEncoders.d.ts +33 -0
  116. package/lib/typescript/core/src/sdk/AttributesEncoding/defaultEncoders.d.ts.map +1 -0
  117. package/lib/typescript/core/src/{utils → sdk/AttributesEncoding}/errorUtils.d.ts +4 -4
  118. package/lib/typescript/core/src/sdk/AttributesEncoding/errorUtils.d.ts.map +1 -0
  119. package/lib/typescript/core/src/sdk/AttributesEncoding/helpers.d.ts +17 -0
  120. package/lib/typescript/core/src/sdk/AttributesEncoding/helpers.d.ts.map +1 -0
  121. package/lib/typescript/core/src/sdk/AttributesEncoding/types.d.ts +21 -0
  122. package/lib/typescript/core/src/sdk/AttributesEncoding/types.d.ts.map +1 -0
  123. package/lib/typescript/core/src/sdk/AttributesEncoding/utils.d.ts +7 -0
  124. package/lib/typescript/core/src/sdk/AttributesEncoding/utils.d.ts.map +1 -0
  125. package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts +5 -1
  126. package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts.map +1 -1
  127. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts +4 -3
  128. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts.map +1 -1
  129. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProviderState.d.ts +9 -0
  130. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProviderState.d.ts.map +1 -0
  131. package/lib/typescript/core/src/sdk/DdSdk.d.ts +2 -3
  132. package/lib/typescript/core/src/sdk/DdSdk.d.ts.map +1 -1
  133. package/lib/typescript/core/src/sdk/DdSdkInternal.d.ts +39 -0
  134. package/lib/typescript/core/src/sdk/DdSdkInternal.d.ts.map +1 -0
  135. package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts +3 -1
  136. package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts.map +1 -1
  137. package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts +3 -3
  138. package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts.map +1 -1
  139. package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts +2 -1
  140. package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts.map +1 -1
  141. package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts +1 -2
  142. package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts.map +1 -1
  143. package/lib/typescript/core/src/specs/NativeDdRum.d.ts +45 -0
  144. package/lib/typescript/core/src/specs/NativeDdRum.d.ts.map +1 -1
  145. package/lib/typescript/core/src/specs/NativeDdSdk.d.ts +34 -6
  146. package/lib/typescript/core/src/specs/NativeDdSdk.d.ts.map +1 -1
  147. package/lib/typescript/core/src/trace/DdTrace.d.ts +1 -2
  148. package/lib/typescript/core/src/trace/DdTrace.d.ts.map +1 -1
  149. package/lib/typescript/core/src/types.d.ts +74 -92
  150. package/lib/typescript/core/src/types.d.ts.map +1 -1
  151. package/lib/typescript/core/src/utils/longTasksUtils.d.ts +1 -1
  152. package/lib/typescript/core/src/utils/longTasksUtils.d.ts.map +1 -1
  153. package/lib/typescript/core/src/utils/singletonUtils.d.ts +2 -0
  154. package/lib/typescript/core/src/utils/singletonUtils.d.ts.map +1 -0
  155. package/lib/typescript/core/src/version.d.ts +1 -1
  156. package/lib/typescript/core/src/version.d.ts.map +1 -1
  157. package/lib/typescript/react-native-navigation/src/index.d.ts +2 -2
  158. package/lib/typescript/react-native-navigation/src/index.d.ts.map +1 -1
  159. package/lib/typescript/react-native-navigation/src/rum/instrumentation/DdRumReactNativeNavigationTracking.d.ts +10 -1
  160. package/lib/typescript/react-native-navigation/src/rum/instrumentation/DdRumReactNativeNavigationTracking.d.ts.map +1 -1
  161. package/package.json +3 -3
  162. package/src/__tests__/rum/instrumentation/DdRumReactNativeNavigationTracking.test.tsx +108 -5
  163. package/src/index.tsx +12 -2
  164. package/src/rum/instrumentation/DdRumReactNativeNavigationTracking.tsx +57 -11
  165. package/lib/typescript/core/src/DdSdkReactNativeConfiguration.d.ts +0 -376
  166. package/lib/typescript/core/src/DdSdkReactNativeConfiguration.d.ts.map +0 -1
  167. package/lib/typescript/core/src/ProxyConfiguration.d.ts.map +0 -1
  168. package/lib/typescript/core/src/SdkVerbosity.d.ts.map +0 -1
  169. package/lib/typescript/core/src/TrackingConsent.d.ts.map +0 -1
  170. package/lib/typescript/core/src/rum/DdAttributes.d.ts.map +0 -1
  171. package/lib/typescript/core/src/rum/sessionId/sessionIdHelper.d.ts +0 -4
  172. package/lib/typescript/core/src/rum/sessionId/sessionIdHelper.d.ts.map +0 -1
  173. package/lib/typescript/core/src/sdk/FileBasedConfiguration/FileBasedConfiguration.d.ts +0 -34
  174. package/lib/typescript/core/src/sdk/FileBasedConfiguration/FileBasedConfiguration.d.ts.map +0 -1
  175. package/lib/typescript/core/src/utils/argsUtils.d.ts +0 -8
  176. package/lib/typescript/core/src/utils/argsUtils.d.ts.map +0 -1
  177. package/lib/typescript/core/src/utils/errorUtils.d.ts.map +0 -1
  178. /package/lib/typescript/core/src/{rum/DdAttributes.d.ts → DdAttributes.d.ts} +0 -0
  179. /package/lib/typescript/core/src/{ProxyConfiguration.d.ts → config/types/ProxyConfiguration.d.ts} +0 -0
  180. /package/lib/typescript/core/src/{SdkVerbosity.d.ts → config/types/SdkVerbosity.d.ts} +0 -0
  181. /package/lib/typescript/core/src/{TrackingConsent.d.ts → config/types/TrackingConsent.d.ts} +0 -0
@@ -14,11 +14,38 @@ import type {
14
14
  } from 'react-native';
15
15
  import { AppState } from 'react-native';
16
16
 
17
+ export type NavigationTrackingOptions = {
18
+ viewNamePredicate?: ViewNamePredicate;
19
+ viewTrackingPredicate?: ViewTrackingPredicate;
20
+ paramsTrackingPredicate?: ParamsTrackingPredicate;
21
+ };
22
+
17
23
  export type ViewNamePredicate = (
18
24
  event: ComponentDidAppearEvent,
19
25
  trackedName: string
20
26
  ) => string | null;
21
27
 
28
+ export type ViewTrackingPredicate = (event: ComponentDidAppearEvent) => boolean;
29
+
30
+ export type ParamsTrackingPredicate = (
31
+ event: ComponentDidAppearEvent
32
+ ) => object | undefined;
33
+
34
+ function defaultViewNamePredicate(
35
+ _event: ComponentDidAppearEvent,
36
+ trackedName: string
37
+ ) {
38
+ return trackedName;
39
+ }
40
+
41
+ function defaultParamsPredicate(_event: ComponentDidAppearEvent) {
42
+ return undefined;
43
+ }
44
+
45
+ function defaultViewTrackingPredicate(_event: ComponentDidAppearEvent) {
46
+ return true;
47
+ }
48
+
22
49
  // AppStateStatus can have values:
23
50
  // 'active' - The app is running in the foreground
24
51
  // 'background' - The app is running in the background. The user is either in another app or on the home screen
@@ -38,6 +65,8 @@ export class DdRumReactNativeNavigationTracking {
38
65
  private static appStateSubscription?: NativeEventSubscription;
39
66
 
40
67
  private static viewNamePredicate: ViewNamePredicate;
68
+ private static viewTrackingPredicate: ViewTrackingPredicate;
69
+ private static paramsTrackingPredicate: ParamsTrackingPredicate;
41
70
  private static lastView?:
42
71
  | {
43
72
  key: string;
@@ -48,27 +77,39 @@ export class DdRumReactNativeNavigationTracking {
48
77
  /**
49
78
  * Starts tracking the Navigation and sends a RUM View event every time a root View component appear/disappear.
50
79
  */
51
- static startTracking(
52
- // eslint-disable-next-line func-names
53
- viewNamePredicate: ViewNamePredicate = function (
54
- _event: ComponentDidAppearEvent,
55
- trackedName: string
56
- ) {
57
- return trackedName;
58
- }
59
- ): void {
80
+ static startTracking(trackingOptions?: NavigationTrackingOptions): void {
60
81
  // extra safety to avoid wrapping more than 1 time this function
61
82
  if (DdRumReactNativeNavigationTracking.isTracking) {
62
83
  return;
63
84
  }
64
85
 
86
+ const {
87
+ viewNamePredicate = defaultViewNamePredicate,
88
+ viewTrackingPredicate = defaultViewTrackingPredicate,
89
+ paramsTrackingPredicate = defaultParamsPredicate
90
+ } = trackingOptions ?? {};
91
+
65
92
  DdRumReactNativeNavigationTracking.eventSubscription = Navigation.events().registerComponentDidAppearListener(
66
93
  (event: ComponentDidAppearEvent) => {
67
94
  const predicate =
68
95
  DdRumReactNativeNavigationTracking.viewNamePredicate;
69
96
  const screenName = predicate(event, event.componentName);
70
- if (screenName !== null) {
71
- DdRum.startView(event.componentId, screenName);
97
+ const shouldTrack = DdRumReactNativeNavigationTracking.viewTrackingPredicate(
98
+ event
99
+ );
100
+ if (screenName !== null && shouldTrack) {
101
+ const passProps = DdRumReactNativeNavigationTracking.paramsTrackingPredicate(
102
+ event
103
+ );
104
+
105
+ if (passProps) {
106
+ DdRum.startView(event.componentId, screenName, {
107
+ passProps
108
+ });
109
+ } else {
110
+ DdRum.startView(event.componentId, screenName);
111
+ }
112
+
72
113
  DdRumReactNativeNavigationTracking.lastView = {
73
114
  key: event.componentId,
74
115
  name: screenName
@@ -79,6 +120,8 @@ export class DdRumReactNativeNavigationTracking {
79
120
 
80
121
  DdRumReactNativeNavigationTracking.isTracking = true;
81
122
  DdRumReactNativeNavigationTracking.viewNamePredicate = viewNamePredicate;
123
+ DdRumReactNativeNavigationTracking.viewTrackingPredicate = viewTrackingPredicate;
124
+ DdRumReactNativeNavigationTracking.paramsTrackingPredicate = paramsTrackingPredicate;
82
125
  this.appStateSubscription = AppState.addEventListener(
83
126
  'change',
84
127
  DdRumReactNativeNavigationTracking.appStateListener
@@ -110,6 +153,9 @@ export class DdRumReactNativeNavigationTracking {
110
153
 
111
154
  DdRumReactNativeNavigationTracking.lastView = undefined;
112
155
  DdRumReactNativeNavigationTracking.isTracking = false;
156
+ DdRumReactNativeNavigationTracking.viewNamePredicate = defaultViewNamePredicate;
157
+ DdRumReactNativeNavigationTracking.viewTrackingPredicate = defaultViewTrackingPredicate;
158
+ DdRumReactNativeNavigationTracking.paramsTrackingPredicate = defaultParamsPredicate;
113
159
 
114
160
  // eslint-disable-next-line func-names
115
161
  DdRumReactNativeNavigationTracking.viewNamePredicate = function (
@@ -1,376 +0,0 @@
1
- import type { ProxyConfiguration } from './ProxyConfiguration';
2
- import type { SdkVerbosity } from './SdkVerbosity';
3
- import { TrackingConsent } from './TrackingConsent';
4
- import type { LogEventMapper } from './logs/types';
5
- import type { ActionEventMapper } from './rum/eventMappers/actionEventMapper';
6
- import type { ErrorEventMapper } from './rum/eventMappers/errorEventMapper';
7
- import type { ResourceEventMapper } from './rum/eventMappers/resourceEventMapper';
8
- import type { FirstPartyHost } from './rum/types';
9
- export declare enum VitalsUpdateFrequency {
10
- FREQUENT = "FREQUENT",
11
- AVERAGE = "AVERAGE",
12
- RARE = "RARE",
13
- NEVER = "NEVER"
14
- }
15
- export declare enum UploadFrequency {
16
- /**
17
- * Upload data every 1000ms.
18
- */
19
- FREQUENT = "FREQUENT",
20
- /**
21
- * Upload data every 5000ms.
22
- */
23
- AVERAGE = "AVERAGE",
24
- /**
25
- * Upload data every 10000ms.
26
- */
27
- RARE = "RARE"
28
- }
29
- export declare enum BatchSize {
30
- /**
31
- * Upload less frequent, larger batches of data
32
- */
33
- LARGE = "LARGE",
34
- /**
35
- * Use default size for batches of data
36
- */
37
- MEDIUM = "MEDIUM",
38
- /**
39
- * Upload more frequent, smaller batches of data
40
- */
41
- SMALL = "SMALL"
42
- }
43
- export declare enum BatchProcessingLevel {
44
- /**
45
- * Only 1 batch will be sent in a single upload cycle.
46
- */
47
- LOW = "LOW",
48
- /**
49
- * 10 batches will be sent in a single upload cycle
50
- */
51
- MEDIUM = "MEDIUM",
52
- /**
53
- * 100 batches will be sent in a single upload cycle.
54
- */
55
- HIGH = "HIGH"
56
- }
57
- export type FirstPartyHostsConfiguration = (FirstPartyHost | LegacyFirstPartyHost)[];
58
- export type LegacyFirstPartyHost = string;
59
- export type CustomEndpoints = {
60
- rum?: string;
61
- logs?: string;
62
- trace?: string;
63
- };
64
- /**
65
- * Defaults legacy first party hosts format to Datadog first party hosts to keep
66
- * retro-compatibility before OTel support was introduced.
67
- */
68
- export declare const formatFirstPartyHosts: (firstPartyHosts: FirstPartyHostsConfiguration) => FirstPartyHost[];
69
- export declare const DEFAULTS: {
70
- nativeCrashReportEnabled: boolean;
71
- sessionSamplingRate: number;
72
- resourceTracingSamplingRate: number;
73
- site: string;
74
- longTaskThresholdMs: number;
75
- nativeLongTaskThresholdMs: number;
76
- nativeViewTracking: boolean;
77
- nativeInteractionTracking: boolean;
78
- getFirstPartyHosts: () => never[];
79
- getAdditionalConfiguration: () => {};
80
- trackingConsent: TrackingConsent;
81
- telemetrySampleRate: number;
82
- vitalsUpdateFrequency: VitalsUpdateFrequency;
83
- logEventMapper: null;
84
- errorEventMapper: null;
85
- resourceEventMapper: null;
86
- actionEventMapper: null;
87
- trackFrustrations: boolean;
88
- uploadFrequency: UploadFrequency;
89
- batchSize: BatchSize;
90
- trackBackgroundEvents: boolean;
91
- getCustomEndpoints: () => {};
92
- bundleLogsWithRum: boolean;
93
- bundleLogsWithTraces: boolean;
94
- useAccessibilityLabel: boolean;
95
- trackWatchdogTerminations: boolean;
96
- batchProcessingLevel: BatchProcessingLevel;
97
- };
98
- /**
99
- * The SDK configuration class.
100
- * It will be used to configure the SDK functionality at initialization.
101
- */
102
- export declare class DdSdkReactNativeConfiguration {
103
- readonly clientToken: string;
104
- readonly env: string;
105
- readonly applicationId: string;
106
- readonly trackInteractions: boolean;
107
- readonly trackResources: boolean;
108
- readonly trackErrors: boolean;
109
- readonly trackingConsent: TrackingConsent;
110
- readonly useAccessibilityLabel: boolean;
111
- /**
112
- * Enables crash reporting for native platforms (iOS, Android). Default `false`.
113
- */
114
- nativeCrashReportEnabled: boolean;
115
- /**
116
- * @deprecated `sampleRate` has been replaced by `sessionSamplingRate` to avoid confusion with `resourceTracingSamplingRate` and will be removed in a future release.
117
- */
118
- sampleRate?: number;
119
- /**
120
- * Percentage of sampled RUM sessions. Range `0`-`100`.
121
- */
122
- sessionSamplingRate: number;
123
- /**
124
- * Percentage of tracing integrations for network calls between your app and your backend. Range `0`-`100`.
125
- */
126
- resourceTracingSamplingRate: number;
127
- site: string;
128
- /**
129
- * Verbosity for internal SDK logging.
130
- * Set to `SdkVerbosity.DEBUG` to debug your SDK implementation.
131
- */
132
- verbosity: SdkVerbosity | undefined;
133
- /**
134
- * Enables native views tracking.
135
- * Set to `true` if you use a custom navigation system relying on native views.
136
- */
137
- nativeViewTracking: boolean;
138
- /**
139
- * Enables native interaction tracking.
140
- * Set to `true` if you want to track interactions on native screens.
141
- */
142
- nativeInteractionTracking: boolean;
143
- proxyConfig?: ProxyConfiguration;
144
- serviceName?: string;
145
- /**
146
- * List of your backends hosts to enable tracing with.
147
- * Regular expressions are NOT supported.
148
- *
149
- * Matches domains and subdomains, e.g. `['example.com']` matches `example.com` and `api.example.com`.
150
- */
151
- firstPartyHosts: FirstPartyHostsConfiguration;
152
- /**
153
- * Overrides the reported version of the app.
154
- * Accepted characters are alphanumerics and `_`, `-`, `:`, `.`, `/`.
155
- * Other special characters are converted to underscores.
156
- *
157
- * See https://docs.datadoghq.com/getting_started/tagging/#define-tags for more information on the format.
158
- *
159
- * Make sure you set it correctly, as it will have to match the one specified during the upload of your source maps and other mapping files.
160
- */
161
- version?: string;
162
- /**
163
- * Add a suffix to the reported version of the app.
164
- * Accepted characters are alphanumerics and `_`, `-`, `:`, `.`, `/`.
165
- * Other special characters are converted to underscores.
166
- *
167
- * See https://docs.datadoghq.com/getting_started/tagging/#define-tags for more information on the format.
168
- *
169
- * A dash (`-`) will be automatically added between the version and the suffix
170
- */
171
- versionSuffix?: string;
172
- /**
173
- * The sampling rate for Internal Telemetry (info related to the work of the
174
- * SDK internals).
175
- *
176
- * The sampling rate must be a value between 0 and 100. A value of 0 means no
177
- * telemetry will be sent, 100 means all telemetry will be sent. When
178
- * `telemetrySampleRate` is not set, the default value from the iOS and
179
- * Android SDK is used, which is 20.
180
- */
181
- telemetrySampleRate: number;
182
- /**
183
- * The threshold for native long tasks reporting in milliseconds.
184
- *
185
- * - Setting it to `0` or `false` disables native long task reporting.
186
- * - Values below `100` will be raised to `100`.
187
- * - Values above `5000` will be lowered to `5000`.
188
- *
189
- * Default value is `200`.
190
- */
191
- nativeLongTaskThresholdMs: number | false;
192
- /**
193
- * The threshold for javascript long tasks reporting in milliseconds.
194
- *
195
- * - Setting it to `0` or `false` disables javascript long task reporting.
196
- * - Values below `100` will be raised to `100`.
197
- * - Values above `5000` will be lowered to `5000`.
198
- *
199
- * Default value is `0`
200
- */
201
- longTaskThresholdMs: number | false;
202
- /**
203
- * Sets the preferred frequency for collecting mobile vitals.
204
- */
205
- vitalsUpdateFrequency: VitalsUpdateFrequency;
206
- /**
207
- * Enables tracking of frustration signals (error taps). Defaults to `true`.
208
- */
209
- trackFrustrations: boolean;
210
- /**
211
- * Sets the preferred frequency for uploading batches of data.
212
- */
213
- uploadFrequency: UploadFrequency;
214
- /**
215
- * Defines the Datadog SDK policy when batching data together before uploading it to Datadog servers.
216
- * Smaller batches mean smaller but more network requests, whereas larger batches mean fewer but larger network requests.
217
- */
218
- batchSize: BatchSize;
219
- /**
220
- * Enables tracking of RUM event when no RUM View is active.
221
- *
222
- * By default, background events are not tracked. Enabling this feature might increase the
223
- * number of sessions tracked and impact your billing.
224
- */
225
- trackBackgroundEvents: boolean;
226
- /**
227
- * Enables RUM correlation with logs.
228
- *
229
- * By default, RUM is enabled for logs.
230
- */
231
- bundleLogsWithRum: boolean;
232
- /**
233
- * Enables Traces correlation with logs.
234
- *
235
- * By default, Traces is enabled for logs.
236
- */
237
- bundleLogsWithTraces: boolean;
238
- /**
239
- * Sets the preferred level for processing batches of data.
240
- */
241
- batchProcessingLevel: BatchProcessingLevel;
242
- /**
243
- * Enables tracking of non-fatal ANRs on Android.
244
- * By default, the reporting of non-fatal ANRs on Android 30+ is disabled because it would
245
- * create too much noise over fatal ANRs. On Android 29 and below, however,
246
- * the reporting of non-fatal ANRs is enabled by default,
247
- * as fatal ANRs cannot be reported on those versions.
248
- */
249
- trackNonFatalAnrs?: boolean;
250
- /**
251
- * The app hang threshold in seconds for non-fatal app hangs on iOS.
252
- *
253
- * App hangs are an iOS-specific type of error that happens when the application is unresponsive for too long.
254
- * By default, app hangs reporting is disabled, but you can enable it and set your
255
- * own threshold to monitor app hangs that last more than a specified
256
- * duration by using the this parameter.
257
- *
258
- * Set the `appHangThreshold` parameter to the minimal duration you want
259
- * app hangs to be reported. For example, enter 0.25 to report hangs lasting at least 250 ms.
260
- * See [Configure the app hang threshold](https://docs.datadoghq.com/real_user_monitoring/error_tracking/mobile/ios/?tab=cocoapods#configure-the-app-hang-threshold)
261
- * for more guidance on what to set this value to.
262
- */
263
- appHangThreshold?: number;
264
- /**
265
- * The amount of time after a view starts where a Resource should be
266
- * considered when calculating Time to Network-Settled (TNS). TNS will be
267
- * calculated using all resources that start withing the specified threshold, in seconds.
268
- * Defaults to 0.1 seconds.
269
- */
270
- initialResourceThreshold?: number;
271
- /**
272
- * Determines whether the SDK should track application termination by the watchdog on iOS. Default: `false`.
273
- */
274
- trackWatchdogTerminations: boolean;
275
- /**
276
- * Specifies a custom prop to name RUM actions on elements having an `onPress` prop.
277
- *
278
- * For example if you set it to `testID`, the value of the `testID` prop is used as a custom action name:
279
- *
280
- * ```js
281
- * <TouchableOpacity testID="Dismiss notification" onPress={() => dismiss()}>
282
- * ```
283
- *
284
- * `dd-action-name` is favored when both attributes are present on an element.
285
- */
286
- actionNameAttribute?: string;
287
- logEventMapper: LogEventMapper | null;
288
- errorEventMapper: ErrorEventMapper | null;
289
- resourceEventMapper: ResourceEventMapper | null;
290
- actionEventMapper: ActionEventMapper | null;
291
- additionalConfiguration: {
292
- [k: string]: any;
293
- };
294
- customEndpoints: CustomEndpoints;
295
- constructor(clientToken: string, env: string, applicationId: string, trackInteractions?: boolean, trackResources?: boolean, trackErrors?: boolean, trackingConsent?: TrackingConsent, useAccessibilityLabel?: boolean);
296
- }
297
- /**
298
- * Auto Instrumentation configuration passed to DatadogProvider.
299
- * Does not include default values.
300
- */
301
- export type AutoInstrumentationConfiguration = {
302
- readonly trackInteractions: boolean;
303
- readonly trackResources: boolean;
304
- readonly firstPartyHosts?: FirstPartyHostsConfiguration;
305
- readonly resourceTracingSamplingRate?: number;
306
- readonly trackErrors: boolean;
307
- readonly logEventMapper?: LogEventMapper | null;
308
- readonly errorEventMapper?: ErrorEventMapper | null;
309
- readonly resourceEventMapper?: ResourceEventMapper | null;
310
- readonly actionEventMapper?: ActionEventMapper | null;
311
- readonly useAccessibilityLabel?: boolean;
312
- readonly actionNameAttribute?: string;
313
- };
314
- /**
315
- * Parameters needed to start auto instrumentation. Includes default values.
316
- */
317
- export type AutoInstrumentationParameters = {
318
- readonly trackInteractions: boolean;
319
- readonly trackResources: boolean;
320
- readonly firstPartyHosts: FirstPartyHostsConfiguration;
321
- readonly resourceTracingSamplingRate: number;
322
- readonly trackErrors: boolean;
323
- readonly logEventMapper: LogEventMapper | null;
324
- readonly errorEventMapper: ErrorEventMapper | null;
325
- readonly resourceEventMapper: ResourceEventMapper | null;
326
- readonly actionEventMapper: ActionEventMapper | null;
327
- readonly useAccessibilityLabel: boolean;
328
- readonly actionNameAttribute?: string;
329
- };
330
- /**
331
- * We could use `Proxy` instead of this function, but `Proxy` is not available on
332
- * the older android jsc that can still be used.
333
- */
334
- export declare const addDefaultValuesToAutoInstrumentationConfiguration: (features: AutoInstrumentationConfiguration) => AutoInstrumentationParameters;
335
- export type PartialInitializationConfiguration = {
336
- readonly clientToken: string;
337
- readonly env: string;
338
- readonly applicationId: string;
339
- readonly sessionSamplingRate?: number;
340
- readonly site?: string;
341
- readonly verbosity?: SdkVerbosity | undefined;
342
- readonly nativeViewTracking?: boolean;
343
- readonly nativeInteractionTracking?: boolean;
344
- readonly proxyConfig?: ProxyConfiguration;
345
- readonly serviceName?: string;
346
- readonly version?: string;
347
- versionSuffix?: string;
348
- readonly additionalConfiguration?: {
349
- [k: string]: any;
350
- };
351
- readonly trackingConsent?: TrackingConsent;
352
- readonly longTaskThresholdMs?: number | false;
353
- readonly nativeLongTaskThresholdMs?: number | false;
354
- readonly nativeCrashReportEnabled?: boolean;
355
- readonly telemetrySampleRate?: number;
356
- readonly vitalsUpdateFrequency?: VitalsUpdateFrequency;
357
- readonly trackFrustrations?: boolean;
358
- readonly uploadFrequency?: UploadFrequency;
359
- readonly batchSize?: BatchSize;
360
- readonly trackBackgroundEvents?: boolean;
361
- readonly customEndpoints?: CustomEndpoints;
362
- readonly bundleLogsWithRum?: boolean;
363
- readonly bundleLogsWithTraces?: boolean;
364
- readonly batchProcessingLevel?: BatchProcessingLevel;
365
- readonly initialResourceThreshold?: number;
366
- };
367
- export declare const buildConfigurationFromPartialConfiguration: (features: AutoInstrumentationConfiguration, configuration: PartialInitializationConfiguration) => DdSdkReactNativeConfiguration;
368
- export declare class DatadogProviderConfiguration extends DdSdkReactNativeConfiguration {
369
- initializationMode: InitializationMode;
370
- }
371
- export declare enum InitializationMode {
372
- SYNC = "SYNC",
373
- ASYNC = "ASYNC"
374
- }
375
- export type InitializationModeForTelemetry = 'LEGACY' | 'SYNC' | 'ASYNC' | 'PARTIAL' | 'FILE';
376
- //# sourceMappingURL=DdSdkReactNativeConfiguration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DdSdkReactNativeConfiguration.d.ts","sourceRoot":"","sources":["../../../../../core/src/DdSdkReactNativeConfiguration.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,oBAAY,qBAAqB;IAC7B,QAAQ,aAAa;I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B;CAC3E;AAED,oBAAY,kBAAkB;IAC1B,IAAI,SAAS;IACb,KAAK,UAAU;CAClB;AAED,MAAM,MAAM,8BAA8B,GACpC,QAAQ,GACR,MAAM,GACN,OAAO,GACP,SAAS,GACT,MAAM,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProxyConfiguration.d.ts","sourceRoot":"","sources":["../../../../../core/src/ProxyConfiguration.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAM,kBAAkB;IAKhB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,SAAS;IACxB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM;IACxB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM;IAfzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;;IAGd;;OAEG;IACM,IAAI,EAAE,SAAS;IACxB;;OAEG;IACM,OAAO,EAAE,MAAM;IACxB;;OAEG;IACM,IAAI,EAAE,MAAM;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM;CAaxB;AAED,aAAK,SAAS;IACV,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;CAClB;AAED,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SdkVerbosity.d.ts","sourceRoot":"","sources":["../../../../../core/src/SdkVerbosity.tsx"],"names":[],"mappings":"AAMA;;GAEG;AACH,oBAAY,YAAY;IACpB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;CAClB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TrackingConsent.d.ts","sourceRoot":"","sources":["../../../../../core/src/TrackingConsent.tsx"],"names":[],"mappings":"AAMA;;GAEG;AACH,oBAAY,eAAe;IACvB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,WAAW,gBAAgB;CAC9B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DdAttributes.d.ts","sourceRoot":"","sources":["../../../../../../core/src/rum/DdAttributes.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;IACrB;;;;OAIG;;IAGH;;;OAGG;;IAGH;;;;OAIG;;CAEN,CAAC"}
@@ -1,4 +0,0 @@
1
- export declare const getCachedSessionId: () => string | undefined;
2
- export declare const setCachedSessionId: (sessionId: string) => void;
3
- export declare const clearCachedSessionId: () => void;
4
- //# sourceMappingURL=sessionIdHelper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sessionIdHelper.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/rum/sessionId/sessionIdHelper.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB,0BAE9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAAe,MAAM,SAEnD,CAAC;AAEF,eAAO,MAAM,oBAAoB,YAEhC,CAAC"}
@@ -1,34 +0,0 @@
1
- import type { FirstPartyHostsConfiguration } from '../../DdSdkReactNativeConfiguration';
2
- import { DatadogProviderConfiguration } from '../../DdSdkReactNativeConfiguration';
3
- import { SdkVerbosity } from '../../SdkVerbosity';
4
- import { TrackingConsent } from '../../TrackingConsent';
5
- import type { ActionEventMapper } from '../../rum/eventMappers/actionEventMapper';
6
- import type { ErrorEventMapper } from '../../rum/eventMappers/errorEventMapper';
7
- import type { ResourceEventMapper } from '../../rum/eventMappers/resourceEventMapper';
8
- import { PropagatorType } from '../../rum/types';
9
- export declare class FileBasedConfiguration extends DatadogProviderConfiguration {
10
- constructor(params?: {
11
- configuration?: unknown;
12
- errorEventMapper?: ErrorEventMapper;
13
- resourceEventMapper?: ResourceEventMapper;
14
- actionEventMapper?: ActionEventMapper;
15
- });
16
- }
17
- export declare const getJSONConfiguration: (userSpecifiedConfiguration: unknown) => {
18
- clientToken: string;
19
- env: string;
20
- applicationId: string;
21
- trackInteractions: boolean | undefined;
22
- trackResources: boolean | undefined;
23
- trackErrors: boolean | undefined;
24
- trackingConsent: TrackingConsent | undefined;
25
- longTaskThresholdMs: number | undefined;
26
- verbosity: SdkVerbosity | undefined;
27
- actionNameAttribute: string | undefined;
28
- resourceTracingSamplingRate: number | undefined;
29
- firstPartyHosts: FirstPartyHostsConfiguration | undefined;
30
- site: string | undefined;
31
- useAccessibilityLabel: boolean | undefined;
32
- };
33
- export declare const formatPropagatorType: (propagatorType: string) => PropagatorType;
34
- //# sourceMappingURL=FileBasedConfiguration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FileBasedConfiguration.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/FileBasedConfiguration/FileBasedConfiguration.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EACH,4BAA4B,EAE/B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,qBAAa,sBAAuB,SAAQ,4BAA4B;gBACxD,MAAM,CAAC,EAAE;QACjB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;QACpC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;QAC1C,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;KACzC;CA6BJ;AA2DD,eAAO,MAAM,oBAAoB,+BACD,OAAO,KACpC;IACC,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,cAAc,EAAE,OAAO,GAAG,SAAS,CAAC;IACpC,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,eAAe,EAAE,eAAe,GAAG,SAAS,CAAC;IAC7C,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,SAAS,EAAE,YAAY,GAAG,SAAS,CAAC;IACpC,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,2BAA2B,EAAE,MAAM,GAAG,SAAS,CAAC;IAChD,eAAe,EAAE,4BAA4B,GAAG,SAAS,CAAC;IAC1D,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAC;CAoB9C,CAAC;AAuBF,eAAO,MAAM,oBAAoB,mBACb,MAAM,KACvB,cAoBF,CAAC"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Validates the given context before passing it to the native SDKs.
3
- * @param context the original context
4
- * @returns the original context if it's a plain object, an object wrapping the context if it's an array,
5
- * or an empty object if the context is of any other type.
6
- */
7
- export declare const validateContext: (context: any) => any;
8
- //# sourceMappingURL=argsUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"argsUtils.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/argsUtils.ts"],"names":[],"mappings":"AAUA;;;;;GAKG;AACH,eAAO,MAAM,eAAe,YAAa,GAAG,QAwB3C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"errorUtils.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/errorUtils.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAE1C,eAAO,MAAM,eAAe,UAAW,GAAG,GAAG,SAAS,KAAG,MAWxD,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,UAAW,GAAG,GAAG,SAAS,KAAG,MA2B3D,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,OAAO,KAAG,MAY7C,CAAC"}