@datadog/mobile-react-native-openfeature 3.1.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 (261) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +117 -0
  3. package/lib/commonjs/index.js +13 -0
  4. package/lib/commonjs/index.js.map +1 -0
  5. package/lib/commonjs/provider.js +106 -0
  6. package/lib/commonjs/provider.js.map +1 -0
  7. package/lib/module/index.js +9 -0
  8. package/lib/module/index.js.map +1 -0
  9. package/lib/module/provider.js +99 -0
  10. package/lib/module/provider.js.map +1 -0
  11. package/lib/typescript/core/src/DdAttributes.d.ts +20 -0
  12. package/lib/typescript/core/src/DdAttributes.d.ts.map +1 -0
  13. package/lib/typescript/core/src/DdSdkReactNative.d.ts +122 -0
  14. package/lib/typescript/core/src/DdSdkReactNative.d.ts.map +1 -0
  15. package/lib/typescript/core/src/InternalLog.d.ts +13 -0
  16. package/lib/typescript/core/src/InternalLog.d.ts.map +1 -0
  17. package/lib/typescript/core/src/config/DatadogProviderConfiguration.d.ts +12 -0
  18. package/lib/typescript/core/src/config/DatadogProviderConfiguration.d.ts.map +1 -0
  19. package/lib/typescript/core/src/config/FileBasedConfiguration.d.ts +17 -0
  20. package/lib/typescript/core/src/config/FileBasedConfiguration.d.ts.map +1 -0
  21. package/lib/typescript/core/src/config/FileBasedConfiguration.type.d.ts +52 -0
  22. package/lib/typescript/core/src/config/FileBasedConfiguration.type.d.ts.map +1 -0
  23. package/lib/typescript/core/src/config/async/AutoInstrumentationConfiguration.d.ts +60 -0
  24. package/lib/typescript/core/src/config/async/AutoInstrumentationConfiguration.d.ts.map +1 -0
  25. package/lib/typescript/core/src/config/async/PartialInitializationConfiguration.d.ts +47 -0
  26. package/lib/typescript/core/src/config/async/PartialInitializationConfiguration.d.ts.map +1 -0
  27. package/lib/typescript/core/src/config/async/asyncInitializationHelper.d.ts +5 -0
  28. package/lib/typescript/core/src/config/async/asyncInitializationHelper.d.ts.map +1 -0
  29. package/lib/typescript/core/src/config/features/CoreConfiguration.d.ts +52 -0
  30. package/lib/typescript/core/src/config/features/CoreConfiguration.d.ts.map +1 -0
  31. package/lib/typescript/core/src/config/features/CoreConfiguration.type.d.ts +90 -0
  32. package/lib/typescript/core/src/config/features/CoreConfiguration.type.d.ts.map +1 -0
  33. package/lib/typescript/core/src/config/features/CoreConfigurationNative.d.ts +54 -0
  34. package/lib/typescript/core/src/config/features/CoreConfigurationNative.d.ts.map +1 -0
  35. package/lib/typescript/core/src/config/features/LogsConfiguration.d.ts +17 -0
  36. package/lib/typescript/core/src/config/features/LogsConfiguration.d.ts.map +1 -0
  37. package/lib/typescript/core/src/config/features/LogsConfiguration.type.d.ts +24 -0
  38. package/lib/typescript/core/src/config/features/LogsConfiguration.type.d.ts.map +1 -0
  39. package/lib/typescript/core/src/config/features/LogsConfigurationNative.d.ts +6 -0
  40. package/lib/typescript/core/src/config/features/LogsConfigurationNative.d.ts.map +1 -0
  41. package/lib/typescript/core/src/config/features/RumConfiguration.d.ts +66 -0
  42. package/lib/typescript/core/src/config/features/RumConfiguration.d.ts.map +1 -0
  43. package/lib/typescript/core/src/config/features/RumConfiguration.type.d.ts +131 -0
  44. package/lib/typescript/core/src/config/features/RumConfiguration.type.d.ts.map +1 -0
  45. package/lib/typescript/core/src/config/features/RumConfigurationNative.d.ts +25 -0
  46. package/lib/typescript/core/src/config/features/RumConfigurationNative.d.ts.map +1 -0
  47. package/lib/typescript/core/src/config/features/TraceConfiguration.d.ts +10 -0
  48. package/lib/typescript/core/src/config/features/TraceConfiguration.d.ts.map +1 -0
  49. package/lib/typescript/core/src/config/features/TraceConfiguration.type.d.ts +11 -0
  50. package/lib/typescript/core/src/config/features/TraceConfiguration.type.d.ts.map +1 -0
  51. package/lib/typescript/core/src/config/features/TraceConfigurationNative.d.ts +4 -0
  52. package/lib/typescript/core/src/config/features/TraceConfigurationNative.d.ts.map +1 -0
  53. package/lib/typescript/core/src/config/types/BatchProcessingLevel.d.ts +18 -0
  54. package/lib/typescript/core/src/config/types/BatchProcessingLevel.d.ts.map +1 -0
  55. package/lib/typescript/core/src/config/types/BatchSize.d.ts +19 -0
  56. package/lib/typescript/core/src/config/types/BatchSize.d.ts.map +1 -0
  57. package/lib/typescript/core/src/config/types/InitializationMode.d.ts +5 -0
  58. package/lib/typescript/core/src/config/types/InitializationMode.d.ts.map +1 -0
  59. package/lib/typescript/core/src/config/types/InitializationModeForTelemetry.d.ts +2 -0
  60. package/lib/typescript/core/src/config/types/InitializationModeForTelemetry.d.ts.map +1 -0
  61. package/lib/typescript/core/src/config/types/ProxyConfiguration.d.ts +49 -0
  62. package/lib/typescript/core/src/config/types/ProxyConfiguration.d.ts.map +1 -0
  63. package/lib/typescript/core/src/config/types/SdkVerbosity.d.ts +10 -0
  64. package/lib/typescript/core/src/config/types/SdkVerbosity.d.ts.map +1 -0
  65. package/lib/typescript/core/src/config/types/TrackingConsent.d.ts +9 -0
  66. package/lib/typescript/core/src/config/types/TrackingConsent.d.ts.map +1 -0
  67. package/lib/typescript/core/src/config/types/UploadFrequency.d.ts +18 -0
  68. package/lib/typescript/core/src/config/types/UploadFrequency.d.ts.map +1 -0
  69. package/lib/typescript/core/src/config/types/VitalsUpdateFrequency.d.ts +7 -0
  70. package/lib/typescript/core/src/config/types/VitalsUpdateFrequency.d.ts.map +1 -0
  71. package/lib/typescript/core/src/config/types/index.d.ts +10 -0
  72. package/lib/typescript/core/src/config/types/index.d.ts.map +1 -0
  73. package/lib/typescript/core/src/flags/DdFlags.d.ts +3 -0
  74. package/lib/typescript/core/src/flags/DdFlags.d.ts.map +1 -0
  75. package/lib/typescript/core/src/flags/FlagsClient.d.ts +114 -0
  76. package/lib/typescript/core/src/flags/FlagsClient.d.ts.map +1 -0
  77. package/lib/typescript/core/src/flags/internal.d.ts +14 -0
  78. package/lib/typescript/core/src/flags/internal.d.ts.map +1 -0
  79. package/lib/typescript/core/src/flags/types.d.ts +202 -0
  80. package/lib/typescript/core/src/flags/types.d.ts.map +1 -0
  81. package/lib/typescript/core/src/index.d.ts +41 -0
  82. package/lib/typescript/core/src/index.d.ts.map +1 -0
  83. package/lib/typescript/core/src/logs/DdLogs.d.ts +24 -0
  84. package/lib/typescript/core/src/logs/DdLogs.d.ts.map +1 -0
  85. package/lib/typescript/core/src/logs/eventMapper.d.ts +13 -0
  86. package/lib/typescript/core/src/logs/eventMapper.d.ts.map +1 -0
  87. package/lib/typescript/core/src/logs/types.d.ts +74 -0
  88. package/lib/typescript/core/src/logs/types.d.ts.map +1 -0
  89. package/lib/typescript/core/src/metro/debugIdResolver.d.ts +3 -0
  90. package/lib/typescript/core/src/metro/debugIdResolver.d.ts.map +1 -0
  91. package/lib/typescript/core/src/nativeModulesTypes.d.ts +86 -0
  92. package/lib/typescript/core/src/nativeModulesTypes.d.ts.map +1 -0
  93. package/lib/typescript/core/src/rum/DdRum.d.ts +59 -0
  94. package/lib/typescript/core/src/rum/DdRum.d.ts.map +1 -0
  95. package/lib/typescript/core/src/rum/constants.d.ts +2 -0
  96. package/lib/typescript/core/src/rum/constants.d.ts.map +1 -0
  97. package/lib/typescript/core/src/rum/eventMappers/actionEventMapper.d.ts +22 -0
  98. package/lib/typescript/core/src/rum/eventMappers/actionEventMapper.d.ts.map +1 -0
  99. package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts +24 -0
  100. package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts.map +1 -0
  101. package/lib/typescript/core/src/rum/eventMappers/resourceEventMapper.d.ts +25 -0
  102. package/lib/typescript/core/src/rum/eventMappers/resourceEventMapper.d.ts.map +1 -0
  103. package/lib/typescript/core/src/rum/helper.d.ts +10 -0
  104. package/lib/typescript/core/src/rum/helper.d.ts.map +1 -0
  105. package/lib/typescript/core/src/rum/instrumentation/DdRumErrorTracking.d.ts +17 -0
  106. package/lib/typescript/core/src/rum/instrumentation/DdRumErrorTracking.d.ts.map +1 -0
  107. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts +38 -0
  108. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts.map +1 -0
  109. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdEventsInterceptor.d.ts +25 -0
  110. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdEventsInterceptor.d.ts.map +1 -0
  111. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts +29 -0
  112. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts.map +1 -0
  113. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/EventsInterceptor.d.ts +4 -0
  114. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/EventsInterceptor.d.ts.map +1 -0
  115. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/NoOpEventsInterceptor.d.ts +5 -0
  116. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/NoOpEventsInterceptor.d.ts.map +1 -0
  117. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.d.ts +8 -0
  118. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/ShallowObjectEqualityChecker.d.ts.map +1 -0
  119. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/ddBabelUtils.d.ts +9 -0
  120. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/ddBabelUtils.d.ts.map +1 -0
  121. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/getJsxRuntime.d.ts +2 -0
  122. package/lib/typescript/core/src/rum/instrumentation/interactionTracking/getJsxRuntime.d.ts.map +1 -0
  123. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts +23 -0
  124. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts.map +1 -0
  125. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts +46 -0
  126. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts.map +1 -0
  127. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingIdentifier.d.ts +24 -0
  128. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingIdentifier.d.ts.map +1 -0
  129. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts +121 -0
  130. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts.map +1 -0
  131. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts +14 -0
  132. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts.map +1 -0
  133. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts +20 -0
  134. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts.map +1 -0
  135. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts +11 -0
  136. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts.map +1 -0
  137. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts +12 -0
  138. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts.map +1 -0
  139. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.d.ts +9 -0
  140. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/firstPartyHosts.d.ts.map +1 -0
  141. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts +24 -0
  142. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts.map +1 -0
  143. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.d.ts +4 -0
  144. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/graphql/graphqlHeaders.d.ts.map +1 -0
  145. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/headers.d.ts +4 -0
  146. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/headers.d.ts.map +1 -0
  147. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/ResourceReporter.d.ts +9 -0
  148. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/ResourceReporter.d.ts.map +1 -0
  149. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist.d.ts +7 -0
  150. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/internalDevResourceBlocklist.d.ts.map +1 -0
  151. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/resourceTiming.d.ts +18 -0
  152. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/DatadogRumResource/resourceTiming.d.ts.map +1 -0
  153. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.d.ts +7 -0
  154. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/URLHostParser.d.ts.map +1 -0
  155. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts +22 -0
  156. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts.map +1 -0
  157. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.d.ts +6 -0
  158. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.d.ts.map +1 -0
  159. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.d.ts +3 -0
  160. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.d.ts.map +1 -0
  161. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RequestProxy.d.ts +14 -0
  162. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RequestProxy.d.ts.map +1 -0
  163. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts +28 -0
  164. package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts.map +1 -0
  165. package/lib/typescript/core/src/rum/types.d.ts +218 -0
  166. package/lib/typescript/core/src/rum/types.d.ts.map +1 -0
  167. package/lib/typescript/core/src/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts +15 -0
  168. package/lib/typescript/core/src/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts.map +1 -0
  169. package/lib/typescript/core/src/sdk/AccountInfoSingleton/types.d.ts +6 -0
  170. package/lib/typescript/core/src/sdk/AccountInfoSingleton/types.d.ts.map +1 -0
  171. package/lib/typescript/core/src/sdk/AttributesEncoding/attributesEncoding.d.ts +13 -0
  172. package/lib/typescript/core/src/sdk/AttributesEncoding/attributesEncoding.d.ts.map +1 -0
  173. package/lib/typescript/core/src/sdk/AttributesEncoding/defaultEncoders.d.ts +33 -0
  174. package/lib/typescript/core/src/sdk/AttributesEncoding/defaultEncoders.d.ts.map +1 -0
  175. package/lib/typescript/core/src/sdk/AttributesEncoding/errorUtils.d.ts +15 -0
  176. package/lib/typescript/core/src/sdk/AttributesEncoding/errorUtils.d.ts.map +1 -0
  177. package/lib/typescript/core/src/sdk/AttributesEncoding/helpers.d.ts +17 -0
  178. package/lib/typescript/core/src/sdk/AttributesEncoding/helpers.d.ts.map +1 -0
  179. package/lib/typescript/core/src/sdk/AttributesEncoding/types.d.ts +21 -0
  180. package/lib/typescript/core/src/sdk/AttributesEncoding/types.d.ts.map +1 -0
  181. package/lib/typescript/core/src/sdk/AttributesEncoding/utils.d.ts +7 -0
  182. package/lib/typescript/core/src/sdk/AttributesEncoding/utils.d.ts.map +1 -0
  183. package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts +17 -0
  184. package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts.map +1 -0
  185. package/lib/typescript/core/src/sdk/AttributesSingleton/types.d.ts +4 -0
  186. package/lib/typescript/core/src/sdk/AttributesSingleton/types.d.ts.map +1 -0
  187. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogBatchedBridgeEventEmitter.d.ts +11 -0
  188. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogBatchedBridgeEventEmitter.d.ts.map +1 -0
  189. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogDefaultEventEmitter.d.ts +10 -0
  190. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogDefaultEventEmitter.d.ts.map +1 -0
  191. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogEventEmitter.d.ts +7 -0
  192. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogEventEmitter.d.ts.map +1 -0
  193. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogNativeEventEmitter.d.ts +12 -0
  194. package/lib/typescript/core/src/sdk/DatadogEventEmitter/DatadogNativeEventEmitter.d.ts.map +1 -0
  195. package/lib/typescript/core/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridge.d.ts +14 -0
  196. package/lib/typescript/core/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridge.d.ts.map +1 -0
  197. package/lib/typescript/core/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridgeEvent.d.ts +6 -0
  198. package/lib/typescript/core/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridgeEvent.d.ts.map +1 -0
  199. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BoundedBuffer.d.ts +18 -0
  200. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BoundedBuffer.d.ts.map +1 -0
  201. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BufferSingleton.d.ts +8 -0
  202. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/BufferSingleton.d.ts.map +1 -0
  203. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/DatadogBuffer.d.ts +21 -0
  204. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/DatadogBuffer.d.ts.map +1 -0
  205. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/PassThroughBuffer.d.ts +8 -0
  206. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/PassThroughBuffer.d.ts.map +1 -0
  207. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/bufferNativeCall.d.ts +4 -0
  208. package/lib/typescript/core/src/sdk/DatadogProvider/Buffer/bufferNativeCall.d.ts.map +1 -0
  209. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts +29 -0
  210. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts.map +1 -0
  211. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProviderState.d.ts +9 -0
  212. package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProviderState.d.ts.map +1 -0
  213. package/lib/typescript/core/src/sdk/DdSdk.d.ts +3 -0
  214. package/lib/typescript/core/src/sdk/DdSdk.d.ts.map +1 -0
  215. package/lib/typescript/core/src/sdk/DdSdkInternal.d.ts +39 -0
  216. package/lib/typescript/core/src/sdk/DdSdkInternal.d.ts.map +1 -0
  217. package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts +27 -0
  218. package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts.map +1 -0
  219. package/lib/typescript/core/src/sdk/EventMappers/utils/deepClone.d.ts +11 -0
  220. package/lib/typescript/core/src/sdk/EventMappers/utils/deepClone.d.ts.map +1 -0
  221. package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts +13 -0
  222. package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts.map +1 -0
  223. package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts +14 -0
  224. package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts.map +1 -0
  225. package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts +7 -0
  226. package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts.map +1 -0
  227. package/lib/typescript/core/src/specs/NativeDdFlags.d.ts +15 -0
  228. package/lib/typescript/core/src/specs/NativeDdFlags.d.ts.map +1 -0
  229. package/lib/typescript/core/src/specs/NativeDdLogs.d.ts +70 -0
  230. package/lib/typescript/core/src/specs/NativeDdLogs.d.ts.map +1 -0
  231. package/lib/typescript/core/src/specs/NativeDdRum.d.ts +149 -0
  232. package/lib/typescript/core/src/specs/NativeDdRum.d.ts.map +1 -0
  233. package/lib/typescript/core/src/specs/NativeDdSdk.d.ts +105 -0
  234. package/lib/typescript/core/src/specs/NativeDdSdk.d.ts.map +1 -0
  235. package/lib/typescript/core/src/specs/NativeDdTrace.d.ts +24 -0
  236. package/lib/typescript/core/src/specs/NativeDdTrace.d.ts.map +1 -0
  237. package/lib/typescript/core/src/trace/DdTrace.d.ts +3 -0
  238. package/lib/typescript/core/src/trace/DdTrace.d.ts.map +1 -0
  239. package/lib/typescript/core/src/types.d.ts +130 -0
  240. package/lib/typescript/core/src/types.d.ts.map +1 -0
  241. package/lib/typescript/core/src/utils/Timer.d.ts +22 -0
  242. package/lib/typescript/core/src/utils/Timer.d.ts.map +1 -0
  243. package/lib/typescript/core/src/utils/jsUtils.d.ts +2 -0
  244. package/lib/typescript/core/src/utils/jsUtils.d.ts.map +1 -0
  245. package/lib/typescript/core/src/utils/longTasksUtils.d.ts +7 -0
  246. package/lib/typescript/core/src/utils/longTasksUtils.d.ts.map +1 -0
  247. package/lib/typescript/core/src/utils/singletonUtils.d.ts +2 -0
  248. package/lib/typescript/core/src/utils/singletonUtils.d.ts.map +1 -0
  249. package/lib/typescript/core/src/utils/time-provider/DefaultTimeProvider.d.ts +8 -0
  250. package/lib/typescript/core/src/utils/time-provider/DefaultTimeProvider.d.ts.map +1 -0
  251. package/lib/typescript/core/src/utils/time-provider/TimeProvider.d.ts +19 -0
  252. package/lib/typescript/core/src/utils/time-provider/TimeProvider.d.ts.map +1 -0
  253. package/lib/typescript/core/src/version.d.ts +2 -0
  254. package/lib/typescript/core/src/version.d.ts.map +1 -0
  255. package/lib/typescript/react-native-openfeature/src/index.d.ts +5 -0
  256. package/lib/typescript/react-native-openfeature/src/index.d.ts.map +1 -0
  257. package/lib/typescript/react-native-openfeature/src/provider.d.ts +27 -0
  258. package/lib/typescript/react-native-openfeature/src/provider.d.ts.map +1 -0
  259. package/package.json +87 -0
  260. package/src/index.ts +11 -0
  261. package/src/provider.ts +180 -0
@@ -0,0 +1,10 @@
1
+ import type { DatadogEventEmitter } from './DatadogEventEmitter';
2
+ export declare class DatadogDefaultEventEmitter implements DatadogEventEmitter {
3
+ private eventEmitter?;
4
+ private get isNewArchitecture();
5
+ constructor(errorHandler: (err: any) => void);
6
+ initialize(): boolean;
7
+ addListener(eventName: string, callback: (data: any) => void): void;
8
+ removeAllListeners(eventName: string): void;
9
+ }
10
+ //# sourceMappingURL=DatadogDefaultEventEmitter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatadogDefaultEventEmitter.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/DatadogEventEmitter/DatadogDefaultEventEmitter.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAGjE,qBAAa,0BAA2B,YAAW,mBAAmB;IAClE,OAAO,CAAC,YAAY,CAAC,CAAsB;IAE3C,OAAO,KAAK,iBAAiB,GAE5B;gBAEW,YAAY,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI;IAgB5C,UAAU,IAAI,OAAO;IAId,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI;IAI5D,kBAAkB,CAAC,SAAS,EAAE,MAAM;CAG9C"}
@@ -0,0 +1,7 @@
1
+ export type DatadogEventEmitterCallback = (data: any) => void;
2
+ export interface DatadogEventEmitter {
3
+ initialize(): boolean;
4
+ addListener(eventName: string, callback: DatadogEventEmitterCallback): void;
5
+ removeAllListeners(eventName: string): void;
6
+ }
7
+ //# sourceMappingURL=DatadogEventEmitter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatadogEventEmitter.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/DatadogEventEmitter/DatadogEventEmitter.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,2BAA2B,GAAG,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;AAE9D,MAAM,WAAW,mBAAmB;IAChC,UAAU,IAAI,OAAO,CAAC;IACtB,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,2BAA2B,GAAG,IAAI,CAAC;IAC5E,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/C"}
@@ -0,0 +1,12 @@
1
+ import type { NativeModule } from 'react-native';
2
+ import type { DatadogEventEmitterCallback, DatadogEventEmitter } from './DatadogEventEmitter';
3
+ export declare class DatadogNativeEventEmitter implements DatadogEventEmitter {
4
+ private nativeEventEmitter?;
5
+ private nativeModule?;
6
+ private errorHandler;
7
+ constructor(nativeModule: NativeModule | undefined, errorHandler: (err: any) => void);
8
+ initialize(): boolean;
9
+ addListener(eventName: string, callback: DatadogEventEmitterCallback): void;
10
+ removeAllListeners(eventName: string): void;
11
+ }
12
+ //# sourceMappingURL=DatadogNativeEventEmitter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatadogNativeEventEmitter.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/DatadogEventEmitter/DatadogNativeEventEmitter.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,OAAO,KAAK,EACR,2BAA2B,EAC3B,mBAAmB,EACtB,MAAM,uBAAuB,CAAC;AAE/B,qBAAa,yBAA0B,YAAW,mBAAmB;IACjE,OAAO,CAAC,kBAAkB,CAAC,CAAqB;IAChD,OAAO,CAAC,YAAY,CAAC,CAAe;IACpC,OAAO,CAAC,YAAY,CAAqB;gBAGrC,YAAY,EAAE,YAAY,GAAG,SAAS,EACtC,YAAY,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI;IAMpC,UAAU,IAAI,OAAO;IAuBrB,WAAW,CACP,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,2BAA2B,GACtC,IAAI;IAIP,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;CAG9C"}
@@ -0,0 +1,14 @@
1
+ import type { DatadogEventEmitter } from '../DatadogEventEmitter/DatadogEventEmitter';
2
+ export declare class DdSdkInternalNativeBridge {
3
+ private eventEmitter;
4
+ private errorHandler;
5
+ private _isInitialized;
6
+ private static _instance?;
7
+ static get isInitialized(): boolean;
8
+ static initialize(eventEmitter: DatadogEventEmitter, errorHandler?: (err: any) => void): DdSdkInternalNativeBridge;
9
+ private constructor();
10
+ private registerDefaultListeners;
11
+ }
12
+ export declare const registerNativeBridge: (eventEmitter?: DatadogEventEmitter, errorHandler?: (err: any) => void) => void;
13
+ export declare const hasNativeBridge: () => boolean;
14
+ //# sourceMappingURL=DdSdkInternalNativeBridge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DdSdkInternalNativeBridge.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridge.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AActF,qBAAa,yBAAyB;IAClC,OAAO,CAAC,YAAY,CAAsB;IAC1C,OAAO,CAAC,YAAY,CAAqB;IACzC,OAAO,CAAC,cAAc,CAAkB;IAExC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAA4B;IACrD,WAAkB,aAAa,IAAI,OAAO,CAEzC;IAED,MAAM,CAAC,UAAU,CACb,YAAY,EAAE,mBAAmB,EACjC,YAAY,GAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAA0B,GACvD,yBAAyB;IAW5B,OAAO;IAQP,OAAO,CAAC,wBAAwB;CAanC;AAED,eAAO,MAAM,oBAAoB,kBACd,mBAAmB,uBACd,GAAG,KAAK,IAAI,SAQnC,CAAC;AAEF,eAAO,MAAM,eAAe,eAAgD,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare class DdSdkInternalNativeBridgeEvent<DataType> {
2
+ readonly eventName: string;
3
+ readonly callback: (data: DataType) => void;
4
+ constructor(eventName: string, callback: (data: DataType) => void);
5
+ }
6
+ //# sourceMappingURL=DdSdkInternalNativeBridgeEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DdSdkInternalNativeBridgeEvent.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/DatadogInternalBridge/DdSdkInternalNativeBridgeEvent.tsx"],"names":[],"mappings":"AAQA,qBAAa,8BAA8B,CAAC,QAAQ;IAChD,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC,SAAgB,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;gBAEvC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI;CAuBpE"}
@@ -0,0 +1,18 @@
1
+ import { DatadogBuffer } from './DatadogBuffer';
2
+ export declare class BoundedBuffer extends DatadogBuffer {
3
+ private bufferSize;
4
+ private buffer;
5
+ private idTable;
6
+ private telemetryBuffer;
7
+ constructor(bufferSize?: number);
8
+ addCallback: (callback: () => Promise<void>) => Promise<void>;
9
+ addCallbackReturningId: (callback: () => Promise<string>) => Promise<string>;
10
+ addCallbackWithId: (callback: (id: string) => Promise<void>, bufferId: string) => Promise<void>;
11
+ drain: () => Promise<void>;
12
+ private logBufferOverflow;
13
+ private logRandomIdGenerationError;
14
+ private generateRandomBufferId;
15
+ private addTelemetryEvent;
16
+ private drainTelemetry;
17
+ }
18
+ //# sourceMappingURL=BoundedBuffer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoundedBuffer.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/sdk/DatadogProvider/Buffer/BoundedBuffer.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAuBhD,qBAAa,aAAc,SAAQ,aAAa;IAC5C,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,MAAM,CAAoB;IAClC,OAAO,CAAC,OAAO,CAA6C;IAC5D,OAAO,CAAC,eAAe,CAOhB;gBAEK,UAAU,GAAE,MAA4B;IAKpD,WAAW,aAAc,MAAM,QAAQ,IAAI,CAAC,mBAQ1C;IAEF,sBAAsB,aAAc,MAAM,QAAQ,MAAM,CAAC,qBAmBvD;IAEF,iBAAiB,kBACE,MAAM,KAAK,QAAQ,IAAI,CAAC,YAC7B,MAAM,mBAalB;IAEF,KAAK,sBAuDH;IAEF,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,0BAA0B,CAWhC;IAEF,OAAO,CAAC,sBAAsB,CAY5B;IAEF,OAAO,CAAC,iBAAiB,CAevB;IAEF,OAAO,CAAC,cAAc,CAUpB;CACL"}
@@ -0,0 +1,8 @@
1
+ import type { DatadogBuffer } from './DatadogBuffer';
2
+ export declare class BufferSingleton {
3
+ private static bufferInstance;
4
+ static getInstance: () => DatadogBuffer;
5
+ static onInitialization: () => void;
6
+ static reset: () => void;
7
+ }
8
+ //# sourceMappingURL=BufferSingleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BufferSingleton.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/sdk/DatadogProvider/Buffer/BufferSingleton.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,qBAAa,eAAe;IACxB,OAAO,CAAC,MAAM,CAAC,cAAc,CAAsC;IAEnE,MAAM,CAAC,WAAW,QAAO,aAAa,CAEpC;IAEF,MAAM,CAAC,gBAAgB,aAGrB;IAEF,MAAM,CAAC,KAAK,aAEV;CACL"}
@@ -0,0 +1,21 @@
1
+ export declare abstract class DatadogBuffer {
2
+ /**
3
+ * Add a callback that takes no input and yields no output to the buffer.
4
+ */
5
+ abstract addCallback: (callback: () => Promise<void>) => Promise<void>;
6
+ /**
7
+ * Add a callback that returns an id to the buffer.
8
+ * This method also returns an id (possibly different), to be passed to addCallbackWithId.
9
+ */
10
+ abstract addCallbackReturningId: (callback: () => Promise<string>) => Promise<string>;
11
+ /**
12
+ * Add a callback that takes an id as input to the buffer.
13
+ * This id must be obtained by calling addCallbackReturningId.
14
+ */
15
+ abstract addCallbackWithId: (callback: (id: string) => Promise<void>, id: string) => Promise<void>;
16
+ /**
17
+ * Execute all callbacks in the buffer.
18
+ */
19
+ abstract drain: () => void;
20
+ }
21
+ //# sourceMappingURL=DatadogBuffer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatadogBuffer.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/sdk/DatadogProvider/Buffer/DatadogBuffer.ts"],"names":[],"mappings":"AAMA,8BAAsB,aAAa;IAC/B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvE;;;OAGG;IACH,QAAQ,CAAC,sBAAsB,EAAE,CAC7B,QAAQ,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,KAC9B,OAAO,CAAC,MAAM,CAAC,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,iBAAiB,EAAE,CACxB,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,EACvC,EAAE,EAAE,MAAM,KACT,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,IAAI,CAAC;CAC9B"}
@@ -0,0 +1,8 @@
1
+ import { DatadogBuffer } from './DatadogBuffer';
2
+ export declare class PassThroughBuffer extends DatadogBuffer {
3
+ addCallback: (callback: () => any) => any;
4
+ addCallbackReturningId: (callback: () => any) => any;
5
+ addCallbackWithId: (callback: (id: string) => any, id: string) => any;
6
+ drain: () => undefined;
7
+ }
8
+ //# sourceMappingURL=PassThroughBuffer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PassThroughBuffer.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/sdk/DatadogProvider/Buffer/PassThroughBuffer.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,qBAAa,iBAAkB,SAAQ,aAAa;IAChD,WAAW,aAAc,MAAM,GAAG,SAAgB;IAClD,sBAAsB,aAAc,MAAM,GAAG,SAAgB;IAC7D,iBAAiB,kBAAmB,MAAM,KAAK,GAAG,MAAM,MAAM,SAC7C;IAEjB,KAAK,kBAAmB;CAC3B"}
@@ -0,0 +1,4 @@
1
+ export declare const bufferVoidNativeCall: (callback: () => Promise<void>) => Promise<void>;
2
+ export declare const bufferNativeCallReturningId: (callback: () => Promise<string>) => Promise<string>;
3
+ export declare const bufferNativeCallWithId: (callback: (id: string) => Promise<void>, id: string) => Promise<void>;
4
+ //# sourceMappingURL=bufferNativeCall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bufferNativeCall.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/sdk/DatadogProvider/Buffer/bufferNativeCall.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,oBAAoB,aAAc,MAAM,QAAQ,IAAI,CAAC,kBAEjE,CAAC;AAEF,eAAO,MAAM,2BAA2B,aAC1B,MAAM,QAAQ,MAAM,CAAC,oBAGlC,CAAC;AAEF,eAAO,MAAM,sBAAsB,kBAChB,MAAM,KAAK,QAAQ,IAAI,CAAC,MACnC,MAAM,kBAGb,CAAC"}
@@ -0,0 +1,29 @@
1
+ import React from 'react';
2
+ import type { PropsWithChildren } from 'react';
3
+ import { DatadogProviderConfiguration } from '../../config/DatadogProviderConfiguration';
4
+ import type { FileBasedConfiguration } from '../../config/FileBasedConfiguration';
5
+ import type { AutoInstrumentationConfiguration } from '../../config/async/AutoInstrumentationConfiguration';
6
+ import type { PartialInitializationConfiguration } from '../../config/async/PartialInitializationConfiguration';
7
+ type Props = PropsWithChildren<{
8
+ /**
9
+ * If a `DatadogProviderConfiguration` instance is passed, the SDK will start tracking errors, resources and actions and sending events.
10
+ *
11
+ * If a `AutoInstrumentationConfiguration` object is passed, the SDK will start tracking errors, resources and actions. To start sending events, call `DatadogProvider.initialize`.
12
+ */
13
+ configuration: DatadogProviderConfiguration | AutoInstrumentationConfiguration | FileBasedConfiguration;
14
+ /**
15
+ * Callback to be run once the SDK starts sending events.
16
+ */
17
+ onInitialization?: () => void;
18
+ }>;
19
+ type StaticProperties = {
20
+ initialize: (configuration: PartialInitializationConfiguration) => Promise<void>;
21
+ onInitialization?: () => void;
22
+ };
23
+ /**
24
+ * Set up the Datadog React Native SDK.
25
+ */
26
+ export declare const DatadogProvider: React.FC<Props> & StaticProperties;
27
+ export declare const __internalResetIsInitializedForTesting: () => void;
28
+ export {};
29
+ //# sourceMappingURL=DatadogProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatadogProvider.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/DatadogProvider/DatadogProvider.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI/C,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAC5G,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,uDAAuD,CAAC;AAMhH,KAAK,KAAK,GAAG,iBAAiB,CAAC;IAC3B;;;;OAIG;IACH,aAAa,EACP,4BAA4B,GAC5B,gCAAgC,GAChC,sBAAsB,CAAC;IAC7B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CACjC,CAAC,CAAC;AAEH,KAAK,gBAAgB,GAAG;IACpB,UAAU,EAAE,CACR,aAAa,EAAE,kCAAkC,KAChD,OAAO,CAAC,IAAI,CAAC,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CACjC,CAAC;AAqCF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,gBAoB/C,CAAC;AAiBF,eAAO,MAAM,sCAAsC,YAElD,CAAC"}
@@ -0,0 +1,9 @@
1
+ declare class _DatadogProviderState {
2
+ private _isInitialized;
3
+ get isInitialized(): boolean;
4
+ setInitialized(): void;
5
+ _reset(): void;
6
+ }
7
+ export declare const DatadogProviderState: _DatadogProviderState;
8
+ export {};
9
+ //# sourceMappingURL=DatadogProviderState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatadogProviderState.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/DatadogProvider/DatadogProviderState.ts"],"names":[],"mappings":"AAUA,cAAM,qBAAqB;IACvB,OAAO,CAAC,cAAc,CAAkB;IAExC,IAAI,aAAa,IAAI,OAAO,CAE3B;IAED,cAAc;IAId,MAAM;CAGT;AAED,eAAO,MAAM,oBAAoB,uBAGhC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { DdSdkType } from './DdSdkInternal';
2
+ export declare const DdSdk: DdSdkType;
3
+ //# sourceMappingURL=DdSdk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DdSdk.d.ts","sourceRoot":"","sources":["../../../../../../core/src/sdk/DdSdk.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAGjD,eAAO,MAAM,KAAK,WAGJ,CAAC"}
@@ -0,0 +1,39 @@
1
+ import type { DdSdkNativeConfiguration } from '../config/features/CoreConfigurationNative';
2
+ import type { DdNativeSdkType } from '../nativeModulesTypes';
3
+ import type { AttributeEncoder } from './AttributesEncoding/types';
4
+ declare const NativeDdSdk: DdNativeSdkType;
5
+ export type DdSdkType = {
6
+ readonly attributeEncoders: AttributeEncoder<any>[];
7
+ /**
8
+ * Initializes Datadog's features.
9
+ * @param configuration: The configuration to use.
10
+ */
11
+ initialize(configuration: DdSdkNativeConfiguration): Promise<void>;
12
+ };
13
+ export declare class DdSdkWrapper implements DdNativeSdkType {
14
+ get attributeEncoders(): AttributeEncoder<any>[];
15
+ private _attributeEncoders;
16
+ initialize(configuration: DdSdkNativeConfiguration): Promise<void>;
17
+ getConstants(): {};
18
+ setUserInfo(user: object): Promise<object>;
19
+ clearUserInfo(): Promise<void>;
20
+ addUserExtraInfo(extraInfo: object): Promise<object>;
21
+ addAttribute(key: string, value: object): Promise<void>;
22
+ removeAttribute(key: string): Promise<void>;
23
+ addAttributes(attributes: object): Promise<void>;
24
+ removeAttributes(keys: string[]): Promise<void>;
25
+ setAccountInfo(account: object): Promise<object>;
26
+ clearAccountInfo(): Promise<void>;
27
+ addAccountExtraInfo(extraInfo: object): Promise<object>;
28
+ setTrackingConsent(trackingConsent: string): Promise<void>;
29
+ sendTelemetryLog(message: string, attributes: object, config: object): Promise<void>;
30
+ telemetryDebug(message: string): Promise<void>;
31
+ telemetryError(message: string, stack: string, kind: string): Promise<void>;
32
+ consumeWebviewEvent(message: string): Promise<void>;
33
+ clearAllData(): Promise<void>;
34
+ addListener(eventType: string): void;
35
+ removeListeners(count: number): void;
36
+ _setAttributeEncodersForTesting(attributeEncoders: AttributeEncoder<any>[]): void;
37
+ }
38
+ export { NativeDdSdk };
39
+ //# sourceMappingURL=DdSdkInternal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DdSdkInternal.d.ts","sourceRoot":"","sources":["../../../../../../core/src/sdk/DdSdkInternal.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,QAAA,MAAM,WAAW,EAAE,eAAyD,CAAC;AAE7E,MAAM,MAAM,SAAS,GAAG;IACpB,QAAQ,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC;IAEpD;;;OAGG;IACH,UAAU,CAAC,aAAa,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtE,CAAC;AAEF,qBAAa,YAAa,YAAW,eAAe;IAChD,IAAI,iBAAiB,IAAI,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAE/C;IACD,OAAO,CAAC,kBAAkB,CAA+B;IAEzD,UAAU,CAAC,aAAa,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;IAKlE,YAAY;IAIZ,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAI1C,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAI9B,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIpD,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAGvD,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAG3C,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAGhD,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAG/C,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAGhD,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAGjC,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIvD,kBAAkB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI1D,gBAAgB,CACZ,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC;IAIhB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9C,cAAc,CACV,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC;IAIhB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAInD,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAI7B,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAIpC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIpC,+BAA+B,CAC3B,iBAAiB,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE;CAIjD;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,27 @@
1
+ import type { AccountInfo } from '../AccountInfoSingleton/types';
2
+ import type { Attributes } from '../AttributesSingleton/types';
3
+ import type { UserInfo } from '../UserInfoSingleton/types';
4
+ export type AdditionalEventDataForMapper = {
5
+ userInfo?: UserInfo;
6
+ accountInfo?: AccountInfo;
7
+ attributes: Attributes;
8
+ };
9
+ /**
10
+ * Generic class for applying event mappers.
11
+ *
12
+ * Calls params in this order: formatRawEventForMapper, eventMapper, formatMapperEventForNative.
13
+ *
14
+ * @param eventMapper the user-registered event mapper
15
+ * @param formatRawEventForMapper formatter that gets the raw event (from javascript call) and returns the input given to the mapper
16
+ * @param formatMapperEventForNative formatter that gets the output of the mapper, and returns the input given to the native SDKs
17
+ * @param formatRawEventForNative called when no event mapper is registered
18
+ */
19
+ export declare class EventMapper<RawEvent, MapperEvent, NativeEvent> {
20
+ private eventMapper?;
21
+ private formatRawEventForMapper;
22
+ private formatMapperEventForNative;
23
+ private formatRawEventForNative;
24
+ constructor(eventMapper: ((event: MapperEvent) => MapperEvent | null) | undefined, formatRawEventForMapper: (event: RawEvent, additionalData: AdditionalEventDataForMapper) => MapperEvent, formatMapperEventForNative: (event: MapperEvent, originalEvent: MapperEvent) => NativeEvent, formatRawEventForNative: (event: RawEvent) => NativeEvent);
25
+ applyEventMapper: (rawEvent: RawEvent) => NativeEvent | null;
26
+ }
27
+ //# sourceMappingURL=EventMapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventMapper.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/EventMappers/EventMapper.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAG/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAI3D,MAAM,MAAM,4BAA4B,GAAG;IACvC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,EAAE,UAAU,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;GASG;AACH,qBAAa,WAAW,CAAC,QAAQ,EAAE,WAAW,EAAE,WAAW;IACvD,OAAO,CAAC,WAAW,CAAC,CAA6C;IACjE,OAAO,CAAC,uBAAuB,CAGd;IACjB,OAAO,CAAC,0BAA0B,CAGjB;IACjB,OAAO,CAAC,uBAAuB,CAAmC;gBAG9D,WAAW,EAAE,CAAC,CAAC,KAAK,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAC,GAAG,SAAS,EACrE,uBAAuB,EAAE,CACrB,KAAK,EAAE,QAAQ,EACf,cAAc,EAAE,4BAA4B,KAC3C,WAAW,EAChB,0BAA0B,EAAE,CACxB,KAAK,EAAE,WAAW,EAClB,aAAa,EAAE,WAAW,KACzB,WAAW,EAChB,uBAAuB,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,WAAW;IAQtD,gBAAgB,aAAc,QAAQ,KAAG,WAAW,GAAG,IAAI,CAiChE;CACL"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Simple deep clone inspired from https://github.com/angus-c/just/blob/master/packages/collection-clone/index.cjs
3
+ * Functions and RegExp will be returned as they are.
4
+ * Maps and Sets are cloned even though they won't be accepted by React Native, just in case they are mutated by the user to avoid side effects.
5
+ *
6
+ * We added support for circular references by limiting the number of depth levels to 8.
7
+ * @param originalObject
8
+ * @returns
9
+ */
10
+ export declare const deepClone: <T>(originalObject: T, depth?: number) => T;
11
+ //# sourceMappingURL=deepClone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deepClone.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/sdk/EventMappers/utils/deepClone.ts"],"names":[],"mappings":"AAoCA;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,iCAAiC,MAAM,MA8C5D,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * A singleton container for attributes that are shared internally across all
3
+ * the SDK classes.
4
+ */
5
+ declare class _GlobalState {
6
+ /**
7
+ * `true` if the SDK is initialized, `false` otherwise.
8
+ */
9
+ isInitialized: boolean;
10
+ }
11
+ export declare const GlobalState: _GlobalState;
12
+ export {};
13
+ //# sourceMappingURL=GlobalState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GlobalState.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/GlobalState/GlobalState.tsx"],"names":[],"mappings":"AAUA;;;GAGG;AACH,cAAM,YAAY;IACd;;OAEG;IACI,aAAa,UAAS;CAChC;AAED,eAAO,MAAM,WAAW,cAGvB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { UserInfo } from './types';
2
+ declare class UserInfoProvider {
3
+ private userInfo;
4
+ setUserInfo: (userInfo: UserInfo) => void;
5
+ getUserInfo: () => UserInfo | undefined;
6
+ clearUserInfo: () => void;
7
+ }
8
+ export declare class UserInfoSingleton {
9
+ private static userInfoProvider;
10
+ static getInstance: () => UserInfoProvider;
11
+ static reset: () => void;
12
+ }
13
+ export {};
14
+ //# sourceMappingURL=UserInfoSingleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserInfoSingleton.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/UserInfoSingleton/UserInfoSingleton.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,cAAM,gBAAgB;IAClB,OAAO,CAAC,QAAQ,CAAmC;IAEnD,WAAW,aAAc,QAAQ,UAG/B;IAEF,WAAW,QAAO,QAAQ,GAAG,SAAS,CAEpC;IAEF,aAAa,aAEX;CACL;AAED,qBAAa,iBAAiB;IAC1B,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAA0B;IAEzD,MAAM,CAAC,WAAW,QAAO,gBAAgB,CAEvC;IAEF,MAAM,CAAC,KAAK,aAEV;CACL"}
@@ -0,0 +1,7 @@
1
+ export type UserInfo = {
2
+ readonly id: string;
3
+ readonly name?: string;
4
+ readonly email?: string;
5
+ readonly extraInfo?: Record<string, unknown>;
6
+ };
7
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/UserInfoSingleton/types.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,QAAQ,GAAG;IACnB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChD,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { TurboModule } from 'react-native';
2
+ import type { FlagCacheEntry } from '../flags/internal';
3
+ /**
4
+ * Do not import this Spec directly, use DdNativeFlagsType instead.
5
+ */
6
+ export interface Spec extends TurboModule {
7
+ readonly enable: (configuration: Object) => Promise<void>;
8
+ readonly setEvaluationContext: (clientName: string, targetingKey: string, attributes: Object) => Promise<{
9
+ [key: string]: FlagCacheEntry;
10
+ }>;
11
+ readonly trackEvaluation: (clientName: string, key: string, rawFlag: Object, targetingKey: string, attributes: Object) => Promise<void>;
12
+ }
13
+ declare const _default: Spec | null;
14
+ export default _default;
15
+ //# sourceMappingURL=NativeDdFlags.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeDdFlags.d.ts","sourceRoot":"","sources":["../../../../../../core/src/specs/NativeDdFlags.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,IAAK,SAAQ,WAAW;IACrC,QAAQ,CAAC,MAAM,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1D,QAAQ,CAAC,oBAAoB,EAAE,CAC3B,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,KACjB,OAAO,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAA;KAAE,CAAC,CAAC;IAEhD,QAAQ,CAAC,eAAe,EAAE,CACtB,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,KACjB,OAAO,CAAC,IAAI,CAAC,CAAC;CACtB;;AAGD,wBAAwD"}
@@ -0,0 +1,70 @@
1
+ import type { TurboModule } from 'react-native';
2
+ /**
3
+ * Do not import this Spec directly, use DdNativeLogsType instead.
4
+ */
5
+ export interface Spec extends TurboModule {
6
+ readonly getConstants: () => {};
7
+ /**
8
+ * Send a log with DEBUG level.
9
+ * @param message: The message to send.
10
+ * @param context: The additional context to send.
11
+ */
12
+ readonly debug: (message: string, context: Object) => Promise<void>;
13
+ /**
14
+ * Send a log with INFO level.
15
+ * @param message: The message to send.
16
+ * @param context: The additional context to send.
17
+ */
18
+ readonly info: (message: string, context: Object) => Promise<void>;
19
+ /**
20
+ * Send a log with WARN level.
21
+ * @param message: The message to send.
22
+ * @param context: The additional context to send.
23
+ */
24
+ readonly warn: (message: string, context: Object) => Promise<void>;
25
+ /**
26
+ * Send a log with ERROR level.
27
+ * @param message: The message to send.
28
+ * @param context: The additional context to send.
29
+ */
30
+ readonly error: (message: string, context: Object) => Promise<void>;
31
+ /**
32
+ * Send a log containing an error with DEBUG level.
33
+ * @param message: The message to send.
34
+ * @param errorKind: The error kind to send.
35
+ * @param errorMessage: The error message to send.
36
+ * @param stacktrace: The stack trace to send.
37
+ * @param context: The additional context to send.
38
+ */
39
+ readonly debugWithError: (message: string, errorKind: string, errorMessage: string, stacktrace: string, context: Object) => Promise<void>;
40
+ /**
41
+ * Send a log containing an error with INFO level.
42
+ * @param message: The message to send.
43
+ * @param errorKind: The error kind to send.
44
+ * @param errorMessage: The error message to send.
45
+ * @param stacktrace: The stack trace to send.
46
+ * @param context: The additional context to send.
47
+ */
48
+ readonly infoWithError: (message: string, errorKind: string, errorMessage: string, stacktrace: string, context: Object) => Promise<void>;
49
+ /**
50
+ * Send a log containing an error with WARN level.
51
+ * @param message: The message to send.
52
+ * @param errorKind: The error kind to send.
53
+ * @param errorMessage: The error message to send.
54
+ * @param stacktrace: The stack trace to send.
55
+ * @param context: The additional context to send.
56
+ */
57
+ readonly warnWithError: (message: string, errorKind: string, errorMessage: string, stacktrace: string, context: Object) => Promise<void>;
58
+ /**
59
+ * Send a log containing an error with ERROR level.
60
+ * @param message: The message to send.
61
+ * @param errorKind: The error kind to send.
62
+ * @param errorMessage: The error message to send.
63
+ * @param stacktrace: The stack trace to send.
64
+ * @param context: The additional context to send.
65
+ */
66
+ readonly errorWithError: (message: string, errorKind: string, errorMessage: string, stacktrace: string, context: Object) => Promise<void>;
67
+ }
68
+ declare const _default: Spec | null;
69
+ export default _default;
70
+ //# sourceMappingURL=NativeDdLogs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeDdLogs.d.ts","sourceRoot":"","sources":["../../../../../../core/src/specs/NativeDdLogs.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD;;GAEG;AACH,MAAM,WAAW,IAAK,SAAQ,WAAW;IACrC,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAEhC;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpE;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnE;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnE;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpE;;;;;;;OAOG;IACH,QAAQ,CAAC,cAAc,EAAE,CACrB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,KACd,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnB;;;;;;;OAOG;IACH,QAAQ,CAAC,aAAa,EAAE,CACpB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,KACd,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnB;;;;;;;OAOG;IACH,QAAQ,CAAC,aAAa,EAAE,CACpB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,KACd,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnB;;;;;;;OAOG;IACH,QAAQ,CAAC,cAAc,EAAE,CACrB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,KACd,OAAO,CAAC,IAAI,CAAC,CAAC;CACtB;;AAGD,wBAAuD"}
@@ -0,0 +1,149 @@
1
+ import type { TurboModule } from 'react-native';
2
+ /**
3
+ * Do not import this Spec directly, use DdNativeRumType instead.
4
+ */
5
+ export interface Spec extends TurboModule {
6
+ readonly getConstants: () => {};
7
+ /**
8
+ * Start tracking a RUM View.
9
+ * @param key: The view unique key identifier.
10
+ * @param name: The view name.
11
+ * @param context: The additional context to send.
12
+ * @param timestampMs: The timestamp when the view started (in milliseconds). If not provided, current timestamp will be used.
13
+ */
14
+ startView(key: string, name: string, context: Object, timestampMs: number): Promise<void>;
15
+ /**
16
+ * Stop tracking a RUM View.
17
+ * @param key: The view unique key identifier.
18
+ * @param context: The additional context to send.
19
+ * @param timestampMs: The timestamp when the view stopped (in milliseconds). If not provided, current timestamp will be used.
20
+ */
21
+ stopView(key: string, context: Object, timestampMs: number): Promise<void>;
22
+ /**
23
+ * Start tracking a RUM Action.
24
+ * @param type: The action type (tap, scroll, swipe, back, custom).
25
+ * @param name: The action name.
26
+ * @param context: The additional context to send.
27
+ * @param timestampMs: The timestamp when the action started (in milliseconds). If not provided, current timestamp will be used.
28
+ */
29
+ startAction(type: string, name: string, context: Object, timestampMs: number): Promise<void>;
30
+ /**
31
+ * Stop tracking the ongoing RUM Action.
32
+ * @param type: The action type (tap, scroll, swipe, back, custom).
33
+ * @param name: The action name.
34
+ * @param context: The additional context to send.
35
+ * @param timestampMs: The timestamp when the action stopped (in milliseconds). If not provided, current timestamp will be used.
36
+ */
37
+ stopAction(type: string, name: string, context: Object, timestampMs: number): Promise<void>;
38
+ /**
39
+ * Add a RUM Action.
40
+ * @param type: The action type (tap, scroll, swipe, back, custom).
41
+ * @param name: The action name.
42
+ * @param context: The additional context to send.
43
+ * @param timestampMs: The timestamp when the action occurred (in milliseconds). If not provided, current timestamp will be used.
44
+ */
45
+ addAction(type: string, name: string, context: Object, timestampMs: number): Promise<void>;
46
+ /**
47
+ * Start tracking a RUM Resource.
48
+ * @param key: The resource unique key identifier.
49
+ * @param method: The resource method (GET, POST, …).
50
+ * @param url: The resource url.
51
+ * @param context: The additional context to send.
52
+ * @param timestampMs: The timestamp when the resource started (in milliseconds). If not provided, current timestamp will be used.
53
+ */
54
+ startResource(key: string, method: string, url: string, context: Object, timestampMs: number): Promise<void>;
55
+ /**
56
+ * Stop tracking a RUM Resource.
57
+ * @param key: The resource unique key identifier.
58
+ * @param statusCode: The resource status code.
59
+ * @param kind: The resource's kind (xhr, document, image, css, font, …).
60
+ * @param size: The resource size in bytes. If size is unknown, use -1.
61
+ * @param context: The additional context to send.
62
+ * @param timestampMs: The timestamp when the resource stopped (in milliseconds). If not provided, current timestamp will be used.
63
+ */
64
+ stopResource(key: string, statusCode: number, kind: string, size: number, context: Object, timestampMs: number): Promise<void>;
65
+ /**
66
+ * Add a RUM Error.
67
+ * @param message: The error message.
68
+ * @param source: The error source (network, source, console, webview, custom).
69
+ * @param stacktrace: The error stacktrace.
70
+ * @param context: The additional context to send.
71
+ * @param timestampMs: The timestamp when the error occurred (in milliseconds). If not provided, current timestamp will be used.
72
+ * @param fingerprint: Optional custom error fingerprint.
73
+ */
74
+ addError(message: string, source: string, stacktrace: string, context: Object, timestampMs: number, fingerprint: string): Promise<void>;
75
+ /**
76
+ * Adds a specific timing in the active View. The timing duration will be computed as the difference between the time the View was started and the time this function was called.
77
+ * @param name: The name of the new custom timing attribute. Timings can be nested up to 8 levels deep. Names using more than 8 levels will be sanitized by SDK.
78
+ */
79
+ addTiming(name: string): Promise<void>;
80
+ /**
81
+ * Adds a custom attribute to the active RUM View. It will be propagated to all future RUM events associated with the active View.
82
+ * @param key: key for this view attribute.
83
+ * @param value: value for this attribute.
84
+ */
85
+ addViewAttribute(key: string, value: Object): Promise<void>;
86
+ /**
87
+ * Removes an attribute from the active RUM View.
88
+ * @param key: key for the attribute to be removed from the view.
89
+ */
90
+ removeViewAttribute(key: string): Promise<void>;
91
+ /**
92
+ * Adds multiple attributes to the active RUM View. They will be propagated to all future RUM events associated with the active View.
93
+ * @param attributes: key/value object containing all attributes to be added to the view.
94
+ */
95
+ addViewAttributes(attributes: Object): Promise<void>;
96
+ /**
97
+ * Removes multiple attributes from the active RUM View.
98
+ * @param keys: keys for the attributes to be removed from the view.
99
+ */
100
+ removeViewAttributes(keys: string[]): Promise<void>;
101
+ /**
102
+ * Adds the loading time of the view to the active view.
103
+ * It is calculated as the difference between the current time and the start time of the view.
104
+ * @param overwrite: If true, overwrites the previously calculated view loading time.
105
+ */
106
+ addViewLoadingTime(overwrite: boolean): Promise<void>;
107
+ /**
108
+ * Stops the current RUM Session.
109
+ */
110
+ stopSession(): Promise<void>;
111
+ /**
112
+ * Adds the result of evaluating a feature flag with a given name and value to the view.
113
+ * Feature flag evaluations are local to the active view and are cleared when the view is stopped.
114
+ * @param name: The name of the feature flag
115
+ * @param value: The value of the feature flag, encapsulated in an Object to accept all types
116
+ */
117
+ addFeatureFlagEvaluation(name: string, value: Object): Promise<void>;
118
+ /**
119
+ * Get current Session ID, or `undefined` if not available.
120
+ */
121
+ getCurrentSessionId(): Promise<string | undefined>;
122
+ /**
123
+ * Starts a Feature Operation, representing a high-level logical flow within your application (e.g., `login_flow`).
124
+ * @param name - The name of the feature operation (for example, `"login_flow"`).
125
+ * @param operationKey - An optional key to uniquely identify a specific instance of this operation when multiple are running concurrently.
126
+ * @param attributes - Custom attributes to attach to this operation.
127
+ */
128
+ startFeatureOperation(name: string, operationKey: string | null, attributes: Object): Promise<void>;
129
+ /**
130
+ * Marks a Feature Operation as successfully completed.
131
+ * Should be called when a previously started operation (via `startFeatureOperation`) finishes without error.
132
+ * @param name - The name of the feature operation (for example, `"login_flow"`).
133
+ * @param operationKey - The key for the operation instance to complete, if it was specified when starting it.
134
+ * @param attributes - Custom attributes to attach to this operation’s completion event.
135
+ */
136
+ succeedFeatureOperation(name: string, operationKey: string | null, attributes: Object): Promise<void>;
137
+ /**
138
+ * Marks a Feature Operation as failed.
139
+ * Should be called when a previously started operation (via `startFeatureOperation`) ends with an error.
140
+ * @param name - The name of the feature operation (for example, `"login_flow"`).
141
+ * @param operationKey - The key for the operation instance to fail, if it was specified when starting it.
142
+ * @param reason - The reason for the failure.
143
+ * @param attributes - Custom attributes to attach to this operation’s failure event.
144
+ */
145
+ failFeatureOperation(name: string, operationKey: string | null, reason: string, attributes: Object): Promise<void>;
146
+ }
147
+ declare const _default: Spec | null;
148
+ export default _default;
149
+ //# sourceMappingURL=NativeDdRum.d.ts.map