@react-native-firebase/app 23.7.0 → 23.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (602) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/android/src/main/java/io/invertase/firebase/common/UniversalFirebaseModule.java +2 -2
  3. package/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseVersion.java +1 -1
  4. package/dist/commonjs/FirebaseApp.js +85 -0
  5. package/dist/commonjs/FirebaseApp.js.map +1 -0
  6. package/dist/commonjs/common/Base64.js +106 -0
  7. package/dist/commonjs/common/Base64.js.map +1 -0
  8. package/dist/commonjs/common/MutatableParams.js +50 -0
  9. package/dist/commonjs/common/MutatableParams.js.map +1 -0
  10. package/dist/commonjs/common/ReferenceBase.js +49 -0
  11. package/dist/commonjs/common/ReferenceBase.js.map +1 -0
  12. package/dist/commonjs/common/deeps.js +82 -0
  13. package/dist/commonjs/common/deeps.js.map +1 -0
  14. package/dist/commonjs/common/id.js +88 -0
  15. package/dist/commonjs/common/id.js.map +1 -0
  16. package/dist/commonjs/common/index.js +799 -0
  17. package/dist/commonjs/common/index.js.map +1 -0
  18. package/dist/commonjs/common/path.js +133 -0
  19. package/dist/commonjs/common/path.js.map +1 -0
  20. package/dist/commonjs/common/promise.js +65 -0
  21. package/dist/commonjs/common/promise.js.map +1 -0
  22. package/dist/commonjs/common/serialize.js +48 -0
  23. package/dist/commonjs/common/serialize.js.map +1 -0
  24. package/dist/commonjs/common/unitTestUtils.js +54 -0
  25. package/dist/commonjs/common/unitTestUtils.js.map +1 -0
  26. package/dist/commonjs/common/validate.js +236 -0
  27. package/dist/commonjs/common/validate.js.map +1 -0
  28. package/dist/commonjs/index.js +42 -0
  29. package/dist/commonjs/index.js.map +1 -0
  30. package/dist/commonjs/internal/FirebaseModule.js +63 -0
  31. package/dist/commonjs/internal/FirebaseModule.js.map +1 -0
  32. package/dist/commonjs/internal/NativeFirebaseError.js +92 -0
  33. package/dist/commonjs/internal/NativeFirebaseError.js.map +1 -0
  34. package/dist/commonjs/internal/NativeModules.js +6 -0
  35. package/dist/commonjs/internal/NativeModules.js.map +1 -0
  36. package/dist/commonjs/internal/RNFBNativeEventEmitter.js +118 -0
  37. package/dist/commonjs/internal/RNFBNativeEventEmitter.js.map +1 -0
  38. package/dist/commonjs/internal/SharedEventEmitter.js +26 -0
  39. package/dist/commonjs/internal/SharedEventEmitter.js.map +1 -0
  40. package/dist/commonjs/internal/asyncStorage.js +83 -0
  41. package/dist/commonjs/internal/asyncStorage.js.map +1 -0
  42. package/dist/commonjs/internal/constants.js +27 -0
  43. package/dist/commonjs/internal/constants.js.map +1 -0
  44. package/dist/commonjs/internal/index.js +109 -0
  45. package/dist/commonjs/internal/index.js.map +1 -0
  46. package/dist/commonjs/internal/logger.js +256 -0
  47. package/dist/commonjs/internal/logger.js.map +1 -0
  48. package/dist/commonjs/internal/nativeModule.android.js +19 -0
  49. package/dist/commonjs/internal/nativeModule.android.js.map +1 -0
  50. package/dist/commonjs/internal/nativeModule.ios.js +19 -0
  51. package/dist/commonjs/internal/nativeModule.ios.js.map +1 -0
  52. package/dist/commonjs/internal/nativeModule.js +19 -0
  53. package/dist/commonjs/internal/nativeModule.js.map +1 -0
  54. package/dist/commonjs/internal/nativeModuleAndroidIos.js +51 -0
  55. package/dist/commonjs/internal/nativeModuleAndroidIos.js.map +1 -0
  56. package/dist/commonjs/internal/nativeModuleWeb.js +52 -0
  57. package/dist/commonjs/internal/nativeModuleWeb.js.map +1 -0
  58. package/dist/commonjs/internal/nullSerialization.js +162 -0
  59. package/dist/commonjs/internal/nullSerialization.js.map +1 -0
  60. package/dist/commonjs/internal/registry/app.js +238 -0
  61. package/dist/commonjs/internal/registry/app.js.map +1 -0
  62. package/dist/commonjs/internal/registry/namespace.js +269 -0
  63. package/dist/commonjs/internal/registry/namespace.js.map +1 -0
  64. package/dist/commonjs/internal/registry/nativeModule.js +224 -0
  65. package/dist/commonjs/internal/registry/nativeModule.js.map +1 -0
  66. package/dist/commonjs/internal/web/RNFBAppModule.js +273 -0
  67. package/dist/commonjs/internal/web/RNFBAppModule.js.map +1 -0
  68. package/dist/commonjs/internal/web/firebaseApp.js +17 -0
  69. package/dist/commonjs/internal/web/firebaseApp.js.map +1 -0
  70. package/dist/commonjs/internal/web/firebaseAppCheck.js +36 -0
  71. package/dist/commonjs/internal/web/firebaseAppCheck.js.map +1 -0
  72. package/dist/commonjs/internal/web/firebaseAuth.js +28 -0
  73. package/dist/commonjs/internal/web/firebaseAuth.js.map +1 -0
  74. package/dist/commonjs/internal/web/firebaseDatabase.js +28 -0
  75. package/dist/commonjs/internal/web/firebaseDatabase.js.map +1 -0
  76. package/dist/commonjs/internal/web/firebaseFirestore.js +28 -0
  77. package/dist/commonjs/internal/web/firebaseFirestore.js.map +1 -0
  78. package/dist/commonjs/internal/web/firebaseFunctions.js +28 -0
  79. package/dist/commonjs/internal/web/firebaseFunctions.js.map +1 -0
  80. package/dist/commonjs/internal/web/firebaseInstallations.js +36 -0
  81. package/dist/commonjs/internal/web/firebaseInstallations.js.map +1 -0
  82. package/dist/commonjs/internal/web/firebaseRemoteConfig.js +36 -0
  83. package/dist/commonjs/internal/web/firebaseRemoteConfig.js.map +1 -0
  84. package/dist/commonjs/internal/web/firebaseStorage.js +28 -0
  85. package/dist/commonjs/internal/web/firebaseStorage.js.map +1 -0
  86. package/dist/commonjs/internal/web/memidb/FDBCursor.js +479 -0
  87. package/dist/commonjs/internal/web/memidb/FDBCursor.js.map +1 -0
  88. package/dist/commonjs/internal/web/memidb/FDBCursorWithValue.js +19 -0
  89. package/dist/commonjs/internal/web/memidb/FDBCursorWithValue.js.map +1 -0
  90. package/dist/commonjs/internal/web/memidb/FDBDatabase.js +163 -0
  91. package/dist/commonjs/internal/web/memidb/FDBDatabase.js.map +1 -0
  92. package/dist/commonjs/internal/web/memidb/FDBFactory.js +264 -0
  93. package/dist/commonjs/internal/web/memidb/FDBFactory.js.map +1 -0
  94. package/dist/commonjs/internal/web/memidb/FDBIndex.js +191 -0
  95. package/dist/commonjs/internal/web/memidb/FDBIndex.js.map +1 -0
  96. package/dist/commonjs/internal/web/memidb/FDBKeyRange.js +78 -0
  97. package/dist/commonjs/internal/web/memidb/FDBKeyRange.js.map +1 -0
  98. package/dist/commonjs/internal/web/memidb/FDBObjectStore.js +383 -0
  99. package/dist/commonjs/internal/web/memidb/FDBObjectStore.js.map +1 -0
  100. package/dist/commonjs/internal/web/memidb/FDBOpenDBRequest.js +17 -0
  101. package/dist/commonjs/internal/web/memidb/FDBOpenDBRequest.js.map +1 -0
  102. package/dist/commonjs/internal/web/memidb/FDBRequest.js +41 -0
  103. package/dist/commonjs/internal/web/memidb/FDBRequest.js.map +1 -0
  104. package/dist/commonjs/internal/web/memidb/FDBTransaction.js +221 -0
  105. package/dist/commonjs/internal/web/memidb/FDBTransaction.js.map +1 -0
  106. package/dist/commonjs/internal/web/memidb/FDBVersionChangeEvent.js +20 -0
  107. package/dist/commonjs/internal/web/memidb/FDBVersionChangeEvent.js.map +1 -0
  108. package/dist/commonjs/internal/web/memidb/LICENSE +208 -0
  109. package/dist/commonjs/internal/web/memidb/index.js +45 -0
  110. package/dist/commonjs/internal/web/memidb/index.js.map +1 -0
  111. package/dist/commonjs/internal/web/memidb/lib/Database.js +38 -0
  112. package/dist/commonjs/internal/web/memidb/lib/Database.js.map +1 -0
  113. package/dist/commonjs/internal/web/memidb/lib/FakeDOMStringList.js +78 -0
  114. package/dist/commonjs/internal/web/memidb/lib/FakeDOMStringList.js.map +1 -0
  115. package/dist/commonjs/internal/web/memidb/lib/FakeEvent.js +45 -0
  116. package/dist/commonjs/internal/web/memidb/lib/FakeEvent.js.map +1 -0
  117. package/dist/commonjs/internal/web/memidb/lib/FakeEventTarget.js +111 -0
  118. package/dist/commonjs/internal/web/memidb/lib/FakeEventTarget.js.map +1 -0
  119. package/dist/commonjs/internal/web/memidb/lib/Index.js +164 -0
  120. package/dist/commonjs/internal/web/memidb/lib/Index.js.map +1 -0
  121. package/dist/commonjs/internal/web/memidb/lib/KeyGenerator.js +29 -0
  122. package/dist/commonjs/internal/web/memidb/lib/KeyGenerator.js.map +1 -0
  123. package/dist/commonjs/internal/web/memidb/lib/ObjectStore.js +180 -0
  124. package/dist/commonjs/internal/web/memidb/lib/ObjectStore.js.map +1 -0
  125. package/dist/commonjs/internal/web/memidb/lib/RecordStore.js +141 -0
  126. package/dist/commonjs/internal/web/memidb/lib/RecordStore.js.map +1 -0
  127. package/dist/commonjs/internal/web/memidb/lib/binarySearch.js +86 -0
  128. package/dist/commonjs/internal/web/memidb/lib/binarySearch.js.map +1 -0
  129. package/dist/commonjs/internal/web/memidb/lib/canInjectKey.js +30 -0
  130. package/dist/commonjs/internal/web/memidb/lib/canInjectKey.js.map +1 -0
  131. package/dist/commonjs/internal/web/memidb/lib/cmp.js +85 -0
  132. package/dist/commonjs/internal/web/memidb/lib/cmp.js.map +1 -0
  133. package/dist/commonjs/internal/web/memidb/lib/enforceRange.js +20 -0
  134. package/dist/commonjs/internal/web/memidb/lib/enforceRange.js.map +1 -0
  135. package/dist/commonjs/internal/web/memidb/lib/errors.js +95 -0
  136. package/dist/commonjs/internal/web/memidb/lib/errors.js.map +1 -0
  137. package/dist/commonjs/internal/web/memidb/lib/extractKey.js +46 -0
  138. package/dist/commonjs/internal/web/memidb/lib/extractKey.js.map +1 -0
  139. package/dist/commonjs/internal/web/memidb/lib/scheduling.js +37 -0
  140. package/dist/commonjs/internal/web/memidb/lib/scheduling.js.map +1 -0
  141. package/dist/commonjs/internal/web/memidb/lib/types.js +6 -0
  142. package/dist/commonjs/internal/web/memidb/lib/types.js.map +1 -0
  143. package/dist/commonjs/internal/web/memidb/lib/validateKeyPath.js +51 -0
  144. package/dist/commonjs/internal/web/memidb/lib/validateKeyPath.js.map +1 -0
  145. package/dist/commonjs/internal/web/memidb/lib/valueToKey.js +62 -0
  146. package/dist/commonjs/internal/web/memidb/lib/valueToKey.js.map +1 -0
  147. package/dist/commonjs/internal/web/memidb/lib/valueToKeyRange.js +26 -0
  148. package/dist/commonjs/internal/web/memidb/lib/valueToKeyRange.js.map +1 -0
  149. package/dist/commonjs/internal/web/structuredClone/index.js +239 -0
  150. package/dist/commonjs/internal/web/structuredClone/index.js.map +1 -0
  151. package/dist/commonjs/internal/web/utils.js +59 -0
  152. package/dist/commonjs/internal/web/utils.js.map +1 -0
  153. package/dist/commonjs/modular.js +190 -0
  154. package/dist/commonjs/modular.js.map +1 -0
  155. package/dist/commonjs/namespaced.js +35 -0
  156. package/dist/commonjs/namespaced.js.map +1 -0
  157. package/dist/commonjs/package.json +1 -0
  158. package/dist/commonjs/types/app.js +139 -0
  159. package/dist/commonjs/types/app.js.map +1 -0
  160. package/dist/commonjs/types/internal.js +6 -0
  161. package/dist/commonjs/types/internal.js.map +1 -0
  162. package/dist/commonjs/utils/UtilsStatics.js +59 -0
  163. package/dist/commonjs/utils/UtilsStatics.js.map +1 -0
  164. package/dist/commonjs/utils/index.js +94 -0
  165. package/dist/commonjs/utils/index.js.map +1 -0
  166. package/dist/commonjs/version.js +9 -0
  167. package/dist/commonjs/version.js.map +1 -0
  168. package/{lib → dist/module}/FirebaseApp.js +14 -14
  169. package/dist/module/FirebaseApp.js.map +1 -0
  170. package/dist/module/common/Base64.js +100 -0
  171. package/dist/module/common/Base64.js.map +1 -0
  172. package/{lib → dist/module}/common/MutatableParams.js +4 -6
  173. package/dist/module/common/MutatableParams.js.map +1 -0
  174. package/{lib → dist/module}/common/ReferenceBase.js +3 -2
  175. package/dist/module/common/ReferenceBase.js.map +1 -0
  176. package/{lib → dist/module}/common/deeps.js +5 -9
  177. package/dist/module/common/deeps.js.map +1 -0
  178. package/{lib → dist/module}/common/id.js +20 -11
  179. package/dist/module/common/id.js.map +1 -0
  180. package/dist/module/common/index.js +701 -0
  181. package/dist/module/common/index.js.map +1 -0
  182. package/{lib → dist/module}/common/path.js +4 -8
  183. package/dist/module/common/path.js.map +1 -0
  184. package/{lib → dist/module}/common/promise.js +21 -23
  185. package/dist/module/common/promise.js.map +1 -0
  186. package/dist/module/common/serialize.js +43 -0
  187. package/dist/module/common/serialize.js.map +1 -0
  188. package/dist/module/common/unitTestUtils.js +48 -0
  189. package/dist/module/common/unitTestUtils.js.map +1 -0
  190. package/{lib → dist/module}/common/validate.js +20 -16
  191. package/dist/module/common/validate.js.map +1 -0
  192. package/dist/module/index.js +22 -0
  193. package/dist/module/index.js.map +1 -0
  194. package/{lib → dist/module}/internal/FirebaseModule.js +6 -11
  195. package/dist/module/internal/FirebaseModule.js.map +1 -0
  196. package/{lib → dist/module}/internal/NativeFirebaseError.js +19 -24
  197. package/dist/module/internal/NativeFirebaseError.js.map +1 -0
  198. package/dist/module/internal/NativeModules.js +4 -0
  199. package/dist/module/internal/NativeModules.js.map +1 -0
  200. package/{lib → dist/module}/internal/RNFBNativeEventEmitter.js +30 -21
  201. package/dist/module/internal/RNFBNativeEventEmitter.js.map +1 -0
  202. package/dist/module/internal/SharedEventEmitter.js +22 -0
  203. package/dist/module/internal/SharedEventEmitter.js.map +1 -0
  204. package/dist/module/internal/asyncStorage.js +73 -0
  205. package/dist/module/internal/asyncStorage.js.map +1 -0
  206. package/dist/module/internal/constants.js +23 -0
  207. package/dist/module/internal/constants.js.map +1 -0
  208. package/dist/module/internal/index.js +30 -0
  209. package/dist/module/internal/index.js.map +1 -0
  210. package/{lib → dist/module}/internal/logger.js +65 -55
  211. package/dist/module/internal/logger.js.map +1 -0
  212. package/dist/module/internal/nativeModule.android.js +5 -0
  213. package/dist/module/internal/nativeModule.android.js.map +1 -0
  214. package/dist/module/internal/nativeModule.ios.js +5 -0
  215. package/dist/module/internal/nativeModule.ios.js.map +1 -0
  216. package/dist/module/internal/nativeModule.js +7 -0
  217. package/dist/module/internal/nativeModule.js.map +1 -0
  218. package/dist/module/internal/nativeModuleAndroidIos.js +46 -0
  219. package/dist/module/internal/nativeModuleAndroidIos.js.map +1 -0
  220. package/dist/module/internal/nativeModuleWeb.js +45 -0
  221. package/dist/module/internal/nativeModuleWeb.js.map +1 -0
  222. package/dist/module/internal/nullSerialization.js +158 -0
  223. package/dist/module/internal/nullSerialization.js.map +1 -0
  224. package/{lib → dist/module}/internal/registry/app.js +41 -79
  225. package/dist/module/internal/registry/app.js.map +1 -0
  226. package/dist/module/internal/registry/namespace.js +262 -0
  227. package/dist/module/internal/registry/namespace.js.map +1 -0
  228. package/{lib → dist/module}/internal/registry/nativeModule.js +46 -62
  229. package/dist/module/internal/registry/nativeModule.js.map +1 -0
  230. package/{lib → dist/module}/internal/web/RNFBAppModule.js +76 -67
  231. package/dist/module/internal/web/RNFBAppModule.js.map +1 -0
  232. package/dist/module/internal/web/firebaseApp.js +23 -0
  233. package/dist/module/internal/web/firebaseApp.js.map +1 -0
  234. package/dist/module/internal/web/firebaseAppCheck.js +26 -0
  235. package/dist/module/internal/web/firebaseAppCheck.js.map +1 -0
  236. package/dist/module/internal/web/firebaseAuth.js +24 -0
  237. package/dist/module/internal/web/firebaseAuth.js.map +1 -0
  238. package/dist/module/internal/web/firebaseDatabase.js +24 -0
  239. package/dist/module/internal/web/firebaseDatabase.js.map +1 -0
  240. package/dist/module/internal/web/firebaseFirestore.js +24 -0
  241. package/dist/module/internal/web/firebaseFirestore.js.map +1 -0
  242. package/dist/module/internal/web/firebaseFunctions.js +24 -0
  243. package/dist/module/internal/web/firebaseFunctions.js.map +1 -0
  244. package/dist/module/internal/web/firebaseInstallations.js +26 -0
  245. package/dist/module/internal/web/firebaseInstallations.js.map +1 -0
  246. package/dist/module/internal/web/firebaseRemoteConfig.js +26 -0
  247. package/dist/module/internal/web/firebaseRemoteConfig.js.map +1 -0
  248. package/dist/module/internal/web/firebaseStorage.js +24 -0
  249. package/dist/module/internal/web/firebaseStorage.js.map +1 -0
  250. package/dist/module/internal/web/memidb/FDBCursor.js +474 -0
  251. package/dist/module/internal/web/memidb/FDBCursor.js.map +1 -0
  252. package/dist/module/internal/web/memidb/FDBCursorWithValue.js +14 -0
  253. package/dist/module/internal/web/memidb/FDBCursorWithValue.js.map +1 -0
  254. package/dist/module/internal/web/memidb/FDBDatabase.js +158 -0
  255. package/dist/module/internal/web/memidb/FDBDatabase.js.map +1 -0
  256. package/dist/module/internal/web/memidb/FDBFactory.js +259 -0
  257. package/dist/module/internal/web/memidb/FDBFactory.js.map +1 -0
  258. package/dist/module/internal/web/memidb/FDBIndex.js +186 -0
  259. package/dist/module/internal/web/memidb/FDBIndex.js.map +1 -0
  260. package/dist/module/internal/web/memidb/FDBKeyRange.js +74 -0
  261. package/dist/module/internal/web/memidb/FDBKeyRange.js.map +1 -0
  262. package/dist/module/internal/web/memidb/FDBObjectStore.js +378 -0
  263. package/dist/module/internal/web/memidb/FDBObjectStore.js.map +1 -0
  264. package/dist/module/internal/web/memidb/FDBOpenDBRequest.js +12 -0
  265. package/dist/module/internal/web/memidb/FDBOpenDBRequest.js.map +1 -0
  266. package/dist/module/internal/web/memidb/FDBRequest.js +36 -0
  267. package/dist/module/internal/web/memidb/FDBRequest.js.map +1 -0
  268. package/dist/module/internal/web/memidb/FDBTransaction.js +216 -0
  269. package/dist/module/internal/web/memidb/FDBTransaction.js.map +1 -0
  270. package/dist/module/internal/web/memidb/FDBVersionChangeEvent.js +15 -0
  271. package/dist/module/internal/web/memidb/FDBVersionChangeEvent.js.map +1 -0
  272. package/dist/module/internal/web/memidb/LICENSE +208 -0
  273. package/dist/module/internal/web/memidb/index.js +41 -0
  274. package/dist/module/internal/web/memidb/index.js.map +1 -0
  275. package/dist/module/internal/web/memidb/lib/Database.js +35 -0
  276. package/dist/module/internal/web/memidb/lib/Database.js.map +1 -0
  277. package/dist/module/internal/web/memidb/lib/FakeDOMStringList.js +75 -0
  278. package/dist/module/internal/web/memidb/lib/FakeDOMStringList.js.map +1 -0
  279. package/dist/module/internal/web/memidb/lib/FakeEvent.js +41 -0
  280. package/dist/module/internal/web/memidb/lib/FakeEvent.js.map +1 -0
  281. package/dist/module/internal/web/memidb/lib/FakeEventTarget.js +107 -0
  282. package/dist/module/internal/web/memidb/lib/FakeEventTarget.js.map +1 -0
  283. package/dist/module/internal/web/memidb/lib/Index.js +160 -0
  284. package/dist/module/internal/web/memidb/lib/Index.js.map +1 -0
  285. package/dist/module/internal/web/memidb/lib/KeyGenerator.js +25 -0
  286. package/dist/module/internal/web/memidb/lib/KeyGenerator.js.map +1 -0
  287. package/dist/module/internal/web/memidb/lib/ObjectStore.js +175 -0
  288. package/dist/module/internal/web/memidb/lib/ObjectStore.js.map +1 -0
  289. package/dist/module/internal/web/memidb/lib/RecordStore.js +136 -0
  290. package/dist/module/internal/web/memidb/lib/RecordStore.js.map +1 -0
  291. package/dist/module/internal/web/memidb/lib/binarySearch.js +77 -0
  292. package/dist/module/internal/web/memidb/lib/binarySearch.js.map +1 -0
  293. package/dist/module/internal/web/memidb/lib/canInjectKey.js +26 -0
  294. package/dist/module/internal/web/memidb/lib/canInjectKey.js.map +1 -0
  295. package/dist/module/internal/web/memidb/lib/cmp.js +80 -0
  296. package/dist/module/internal/web/memidb/lib/cmp.js.map +1 -0
  297. package/dist/module/internal/web/memidb/lib/enforceRange.js +16 -0
  298. package/dist/module/internal/web/memidb/lib/enforceRange.js.map +1 -0
  299. package/dist/module/internal/web/memidb/lib/errors.js +81 -0
  300. package/dist/module/internal/web/memidb/lib/errors.js.map +1 -0
  301. package/dist/module/internal/web/memidb/lib/extractKey.js +42 -0
  302. package/dist/module/internal/web/memidb/lib/extractKey.js.map +1 -0
  303. package/dist/module/internal/web/memidb/lib/scheduling.js +32 -0
  304. package/dist/module/internal/web/memidb/lib/scheduling.js.map +1 -0
  305. package/dist/module/internal/web/memidb/lib/types.js +4 -0
  306. package/dist/module/internal/web/memidb/lib/types.js.map +1 -0
  307. package/dist/module/internal/web/memidb/lib/validateKeyPath.js +47 -0
  308. package/dist/module/internal/web/memidb/lib/validateKeyPath.js.map +1 -0
  309. package/dist/module/internal/web/memidb/lib/valueToKey.js +58 -0
  310. package/dist/module/internal/web/memidb/lib/valueToKey.js.map +1 -0
  311. package/dist/module/internal/web/memidb/lib/valueToKeyRange.js +22 -0
  312. package/dist/module/internal/web/memidb/lib/valueToKeyRange.js.map +1 -0
  313. package/dist/module/internal/web/structuredClone/index.js +235 -0
  314. package/dist/module/internal/web/structuredClone/index.js.map +1 -0
  315. package/{lib → dist/module}/internal/web/utils.js +24 -5
  316. package/dist/module/internal/web/utils.js.map +1 -0
  317. package/dist/module/modular.js +172 -0
  318. package/dist/module/modular.js.map +1 -0
  319. package/dist/module/namespaced.js +25 -0
  320. package/dist/module/namespaced.js.map +1 -0
  321. package/dist/module/package.json +1 -0
  322. package/dist/module/types/app.js +135 -0
  323. package/dist/module/types/app.js.map +1 -0
  324. package/dist/module/types/internal.js +4 -0
  325. package/dist/module/types/internal.js.map +1 -0
  326. package/dist/module/utils/UtilsStatics.js +55 -0
  327. package/dist/module/utils/UtilsStatics.js.map +1 -0
  328. package/{lib → dist/module}/utils/index.js +13 -15
  329. package/dist/module/utils/index.js.map +1 -0
  330. package/dist/module/version.js +5 -0
  331. package/dist/module/version.js.map +1 -0
  332. package/dist/typescript/commonjs/lib/FirebaseApp.d.ts +21 -0
  333. package/dist/typescript/commonjs/lib/FirebaseApp.d.ts.map +1 -0
  334. package/dist/typescript/commonjs/lib/common/Base64.d.ts +23 -0
  335. package/dist/typescript/commonjs/lib/common/Base64.d.ts.map +1 -0
  336. package/dist/typescript/commonjs/lib/common/MutatableParams.d.ts +10 -0
  337. package/dist/typescript/commonjs/lib/common/MutatableParams.d.ts.map +1 -0
  338. package/dist/typescript/commonjs/lib/common/ReferenceBase.d.ts +12 -0
  339. package/dist/typescript/commonjs/lib/common/ReferenceBase.d.ts.map +1 -0
  340. package/dist/typescript/commonjs/lib/common/deeps.d.ts +19 -0
  341. package/dist/typescript/commonjs/lib/common/deeps.d.ts.map +1 -0
  342. package/dist/typescript/commonjs/lib/common/id.d.ts +12 -0
  343. package/dist/typescript/commonjs/lib/common/id.d.ts.map +1 -0
  344. package/dist/typescript/commonjs/lib/common/index.d.ts +33 -0
  345. package/dist/typescript/commonjs/lib/common/index.d.ts.map +1 -0
  346. package/dist/typescript/commonjs/lib/common/path.d.ts +51 -0
  347. package/dist/typescript/commonjs/lib/common/path.d.ts.map +1 -0
  348. package/dist/typescript/commonjs/lib/common/promise.d.ts +12 -0
  349. package/dist/typescript/commonjs/lib/common/promise.d.ts.map +1 -0
  350. package/dist/typescript/commonjs/lib/common/serialize.d.ts +4 -0
  351. package/dist/typescript/commonjs/lib/common/serialize.d.ts.map +1 -0
  352. package/dist/typescript/commonjs/lib/common/unitTestUtils.d.ts +4 -0
  353. package/dist/typescript/commonjs/lib/common/unitTestUtils.d.ts.map +1 -0
  354. package/dist/typescript/commonjs/lib/common/validate.d.ts +100 -0
  355. package/dist/typescript/commonjs/lib/common/validate.d.ts.map +1 -0
  356. package/dist/typescript/commonjs/lib/index.d.ts +4 -0
  357. package/dist/typescript/commonjs/lib/index.d.ts.map +1 -0
  358. package/dist/typescript/commonjs/lib/internal/FirebaseModule.d.ts +17 -0
  359. package/dist/typescript/commonjs/lib/internal/FirebaseModule.d.ts.map +1 -0
  360. package/dist/typescript/commonjs/lib/internal/NativeFirebaseError.d.ts +20 -0
  361. package/dist/typescript/commonjs/lib/internal/NativeFirebaseError.d.ts.map +1 -0
  362. package/dist/typescript/commonjs/lib/internal/NativeModules.d.ts +83 -0
  363. package/dist/typescript/commonjs/lib/internal/NativeModules.d.ts.map +1 -0
  364. package/dist/typescript/commonjs/lib/internal/RNFBNativeEventEmitter.d.ts +13 -0
  365. package/dist/typescript/commonjs/lib/internal/RNFBNativeEventEmitter.d.ts.map +1 -0
  366. package/dist/typescript/commonjs/lib/internal/SharedEventEmitter.d.ts +4 -0
  367. package/dist/typescript/commonjs/lib/internal/SharedEventEmitter.d.ts.map +1 -0
  368. package/dist/typescript/commonjs/lib/internal/asyncStorage.d.ts +10 -0
  369. package/dist/typescript/commonjs/lib/internal/asyncStorage.d.ts.map +1 -0
  370. package/dist/typescript/commonjs/lib/internal/constants.d.ts +5 -0
  371. package/dist/typescript/commonjs/lib/internal/constants.d.ts.map +1 -0
  372. package/dist/typescript/commonjs/lib/internal/index.d.ts +12 -0
  373. package/dist/typescript/commonjs/lib/internal/index.d.ts.map +1 -0
  374. package/dist/typescript/commonjs/lib/internal/logger.d.ts +83 -0
  375. package/dist/typescript/commonjs/lib/internal/logger.d.ts.map +1 -0
  376. package/dist/typescript/commonjs/lib/internal/nativeModule.android.d.ts +3 -0
  377. package/dist/typescript/commonjs/lib/internal/nativeModule.android.d.ts.map +1 -0
  378. package/dist/typescript/commonjs/lib/internal/nativeModule.d.ts +3 -0
  379. package/dist/typescript/commonjs/lib/internal/nativeModule.d.ts.map +1 -0
  380. package/dist/typescript/commonjs/lib/internal/nativeModule.ios.d.ts +3 -0
  381. package/dist/typescript/commonjs/lib/internal/nativeModule.ios.d.ts.map +1 -0
  382. package/dist/typescript/commonjs/lib/internal/nativeModuleAndroidIos.d.ts +10 -0
  383. package/dist/typescript/commonjs/lib/internal/nativeModuleAndroidIos.d.ts.map +1 -0
  384. package/dist/typescript/commonjs/lib/internal/nativeModuleWeb.d.ts +3 -0
  385. package/dist/typescript/commonjs/lib/internal/nativeModuleWeb.d.ts.map +1 -0
  386. package/dist/typescript/commonjs/lib/internal/nullSerialization.d.ts +16 -0
  387. package/dist/typescript/commonjs/lib/internal/nullSerialization.d.ts.map +1 -0
  388. package/dist/typescript/commonjs/lib/internal/registry/app.d.ts +47 -0
  389. package/dist/typescript/commonjs/lib/internal/registry/app.d.ts.map +1 -0
  390. package/dist/typescript/commonjs/lib/internal/registry/namespace.d.ts +26 -0
  391. package/dist/typescript/commonjs/lib/internal/registry/namespace.d.ts.map +1 -0
  392. package/dist/typescript/commonjs/lib/internal/registry/nativeModule.d.ts +17 -0
  393. package/dist/typescript/commonjs/lib/internal/registry/nativeModule.d.ts.map +1 -0
  394. package/dist/typescript/commonjs/lib/internal/web/RNFBAppModule.d.ts +139 -0
  395. package/dist/typescript/commonjs/lib/internal/web/RNFBAppModule.d.ts.map +1 -0
  396. package/dist/typescript/commonjs/lib/internal/web/firebaseApp.d.ts +2 -0
  397. package/dist/typescript/commonjs/lib/internal/web/firebaseApp.d.ts.map +1 -0
  398. package/{lib/internal/web/firebaseAppCheck.js → dist/typescript/commonjs/lib/internal/web/firebaseAppCheck.d.ts} +1 -2
  399. package/dist/typescript/commonjs/lib/internal/web/firebaseAppCheck.d.ts.map +1 -0
  400. package/dist/typescript/commonjs/lib/internal/web/firebaseAuth.d.ts +3 -0
  401. package/dist/typescript/commonjs/lib/internal/web/firebaseAuth.d.ts.map +1 -0
  402. package/dist/typescript/commonjs/lib/internal/web/firebaseDatabase.d.ts +3 -0
  403. package/dist/typescript/commonjs/lib/internal/web/firebaseDatabase.d.ts.map +1 -0
  404. package/dist/typescript/commonjs/lib/internal/web/firebaseFirestore.d.ts +3 -0
  405. package/dist/typescript/commonjs/lib/internal/web/firebaseFirestore.d.ts.map +1 -0
  406. package/dist/typescript/commonjs/lib/internal/web/firebaseFunctions.d.ts +3 -0
  407. package/dist/typescript/commonjs/lib/internal/web/firebaseFunctions.d.ts.map +1 -0
  408. package/{lib/internal/web/firebaseInstallations.js → dist/typescript/commonjs/lib/internal/web/firebaseInstallations.d.ts} +1 -2
  409. package/dist/typescript/commonjs/lib/internal/web/firebaseInstallations.d.ts.map +1 -0
  410. package/{lib/internal/web/firebaseRemoteConfig.js → dist/typescript/commonjs/lib/internal/web/firebaseRemoteConfig.d.ts} +1 -2
  411. package/dist/typescript/commonjs/lib/internal/web/firebaseRemoteConfig.d.ts.map +1 -0
  412. package/dist/typescript/commonjs/lib/internal/web/firebaseStorage.d.ts +3 -0
  413. package/dist/typescript/commonjs/lib/internal/web/firebaseStorage.d.ts.map +1 -0
  414. package/dist/typescript/commonjs/lib/internal/web/utils.d.ts +13 -0
  415. package/dist/typescript/commonjs/lib/internal/web/utils.d.ts.map +1 -0
  416. package/dist/typescript/commonjs/lib/modular.d.ts +95 -0
  417. package/dist/typescript/commonjs/lib/modular.d.ts.map +1 -0
  418. package/dist/typescript/commonjs/lib/namespaced.d.ts +5 -0
  419. package/dist/typescript/commonjs/lib/namespaced.d.ts.map +1 -0
  420. package/dist/typescript/commonjs/lib/types/app.d.ts +561 -0
  421. package/dist/typescript/commonjs/lib/types/app.d.ts.map +1 -0
  422. package/dist/typescript/commonjs/lib/types/internal.d.ts +101 -0
  423. package/dist/typescript/commonjs/lib/types/internal.d.ts.map +1 -0
  424. package/dist/typescript/commonjs/lib/utils/UtilsStatics.d.ts +4 -0
  425. package/dist/typescript/commonjs/lib/utils/UtilsStatics.d.ts.map +1 -0
  426. package/dist/typescript/commonjs/lib/utils/index.d.ts +4 -0
  427. package/dist/typescript/commonjs/lib/utils/index.d.ts.map +1 -0
  428. package/dist/typescript/commonjs/lib/version.d.ts +2 -0
  429. package/dist/typescript/commonjs/lib/version.d.ts.map +1 -0
  430. package/dist/typescript/commonjs/package.json +1 -0
  431. package/dist/typescript/module/lib/FirebaseApp.d.ts +21 -0
  432. package/dist/typescript/module/lib/FirebaseApp.d.ts.map +1 -0
  433. package/dist/typescript/module/lib/common/Base64.d.ts +23 -0
  434. package/dist/typescript/module/lib/common/Base64.d.ts.map +1 -0
  435. package/dist/typescript/module/lib/common/MutatableParams.d.ts +10 -0
  436. package/dist/typescript/module/lib/common/MutatableParams.d.ts.map +1 -0
  437. package/dist/typescript/module/lib/common/ReferenceBase.d.ts +12 -0
  438. package/dist/typescript/module/lib/common/ReferenceBase.d.ts.map +1 -0
  439. package/dist/typescript/module/lib/common/deeps.d.ts +19 -0
  440. package/dist/typescript/module/lib/common/deeps.d.ts.map +1 -0
  441. package/dist/typescript/module/lib/common/id.d.ts +12 -0
  442. package/dist/typescript/module/lib/common/id.d.ts.map +1 -0
  443. package/dist/typescript/module/lib/common/index.d.ts +33 -0
  444. package/dist/typescript/module/lib/common/index.d.ts.map +1 -0
  445. package/dist/typescript/module/lib/common/path.d.ts +51 -0
  446. package/dist/typescript/module/lib/common/path.d.ts.map +1 -0
  447. package/dist/typescript/module/lib/common/promise.d.ts +12 -0
  448. package/dist/typescript/module/lib/common/promise.d.ts.map +1 -0
  449. package/dist/typescript/module/lib/common/serialize.d.ts +4 -0
  450. package/dist/typescript/module/lib/common/serialize.d.ts.map +1 -0
  451. package/dist/typescript/module/lib/common/unitTestUtils.d.ts +4 -0
  452. package/dist/typescript/module/lib/common/unitTestUtils.d.ts.map +1 -0
  453. package/dist/typescript/module/lib/common/validate.d.ts +100 -0
  454. package/dist/typescript/module/lib/common/validate.d.ts.map +1 -0
  455. package/dist/typescript/module/lib/index.d.ts +4 -0
  456. package/dist/typescript/module/lib/index.d.ts.map +1 -0
  457. package/dist/typescript/module/lib/internal/FirebaseModule.d.ts +17 -0
  458. package/dist/typescript/module/lib/internal/FirebaseModule.d.ts.map +1 -0
  459. package/dist/typescript/module/lib/internal/NativeFirebaseError.d.ts +20 -0
  460. package/dist/typescript/module/lib/internal/NativeFirebaseError.d.ts.map +1 -0
  461. package/dist/typescript/module/lib/internal/NativeModules.d.ts +83 -0
  462. package/dist/typescript/module/lib/internal/NativeModules.d.ts.map +1 -0
  463. package/dist/typescript/module/lib/internal/RNFBNativeEventEmitter.d.ts +13 -0
  464. package/dist/typescript/module/lib/internal/RNFBNativeEventEmitter.d.ts.map +1 -0
  465. package/dist/typescript/module/lib/internal/SharedEventEmitter.d.ts +4 -0
  466. package/dist/typescript/module/lib/internal/SharedEventEmitter.d.ts.map +1 -0
  467. package/dist/typescript/module/lib/internal/asyncStorage.d.ts +10 -0
  468. package/dist/typescript/module/lib/internal/asyncStorage.d.ts.map +1 -0
  469. package/dist/typescript/module/lib/internal/constants.d.ts +5 -0
  470. package/dist/typescript/module/lib/internal/constants.d.ts.map +1 -0
  471. package/dist/typescript/module/lib/internal/index.d.ts +12 -0
  472. package/dist/typescript/module/lib/internal/index.d.ts.map +1 -0
  473. package/dist/typescript/module/lib/internal/logger.d.ts +83 -0
  474. package/dist/typescript/module/lib/internal/logger.d.ts.map +1 -0
  475. package/dist/typescript/module/lib/internal/nativeModule.android.d.ts +3 -0
  476. package/dist/typescript/module/lib/internal/nativeModule.android.d.ts.map +1 -0
  477. package/dist/typescript/module/lib/internal/nativeModule.d.ts +3 -0
  478. package/dist/typescript/module/lib/internal/nativeModule.d.ts.map +1 -0
  479. package/dist/typescript/module/lib/internal/nativeModule.ios.d.ts +3 -0
  480. package/dist/typescript/module/lib/internal/nativeModule.ios.d.ts.map +1 -0
  481. package/dist/typescript/module/lib/internal/nativeModuleAndroidIos.d.ts +10 -0
  482. package/dist/typescript/module/lib/internal/nativeModuleAndroidIos.d.ts.map +1 -0
  483. package/dist/typescript/module/lib/internal/nativeModuleWeb.d.ts +3 -0
  484. package/dist/typescript/module/lib/internal/nativeModuleWeb.d.ts.map +1 -0
  485. package/dist/typescript/module/lib/internal/nullSerialization.d.ts +16 -0
  486. package/dist/typescript/module/lib/internal/nullSerialization.d.ts.map +1 -0
  487. package/dist/typescript/module/lib/internal/registry/app.d.ts +47 -0
  488. package/dist/typescript/module/lib/internal/registry/app.d.ts.map +1 -0
  489. package/dist/typescript/module/lib/internal/registry/namespace.d.ts +26 -0
  490. package/dist/typescript/module/lib/internal/registry/namespace.d.ts.map +1 -0
  491. package/dist/typescript/module/lib/internal/registry/nativeModule.d.ts +17 -0
  492. package/dist/typescript/module/lib/internal/registry/nativeModule.d.ts.map +1 -0
  493. package/dist/typescript/module/lib/internal/web/RNFBAppModule.d.ts +139 -0
  494. package/dist/typescript/module/lib/internal/web/RNFBAppModule.d.ts.map +1 -0
  495. package/dist/typescript/module/lib/internal/web/firebaseApp.d.ts +2 -0
  496. package/dist/typescript/module/lib/internal/web/firebaseApp.d.ts.map +1 -0
  497. package/dist/typescript/module/lib/internal/web/firebaseAppCheck.d.ts +5 -0
  498. package/dist/typescript/module/lib/internal/web/firebaseAppCheck.d.ts.map +1 -0
  499. package/dist/typescript/module/lib/internal/web/firebaseAuth.d.ts +3 -0
  500. package/dist/typescript/module/lib/internal/web/firebaseAuth.d.ts.map +1 -0
  501. package/dist/typescript/module/lib/internal/web/firebaseDatabase.d.ts +3 -0
  502. package/dist/typescript/module/lib/internal/web/firebaseDatabase.d.ts.map +1 -0
  503. package/dist/typescript/module/lib/internal/web/firebaseFirestore.d.ts +3 -0
  504. package/dist/typescript/module/lib/internal/web/firebaseFirestore.d.ts.map +1 -0
  505. package/dist/typescript/module/lib/internal/web/firebaseFunctions.d.ts +3 -0
  506. package/dist/typescript/module/lib/internal/web/firebaseFunctions.d.ts.map +1 -0
  507. package/dist/typescript/module/lib/internal/web/firebaseInstallations.d.ts +5 -0
  508. package/dist/typescript/module/lib/internal/web/firebaseInstallations.d.ts.map +1 -0
  509. package/dist/typescript/module/lib/internal/web/firebaseRemoteConfig.d.ts +5 -0
  510. package/dist/typescript/module/lib/internal/web/firebaseRemoteConfig.d.ts.map +1 -0
  511. package/dist/typescript/module/lib/internal/web/firebaseStorage.d.ts +3 -0
  512. package/dist/typescript/module/lib/internal/web/firebaseStorage.d.ts.map +1 -0
  513. package/dist/typescript/module/lib/internal/web/utils.d.ts +13 -0
  514. package/dist/typescript/module/lib/internal/web/utils.d.ts.map +1 -0
  515. package/dist/typescript/module/lib/modular.d.ts +95 -0
  516. package/dist/typescript/module/lib/modular.d.ts.map +1 -0
  517. package/dist/typescript/module/lib/namespaced.d.ts +5 -0
  518. package/dist/typescript/module/lib/namespaced.d.ts.map +1 -0
  519. package/dist/typescript/module/lib/types/app.d.ts +561 -0
  520. package/dist/typescript/module/lib/types/app.d.ts.map +1 -0
  521. package/dist/typescript/module/lib/types/internal.d.ts +101 -0
  522. package/dist/typescript/module/lib/types/internal.d.ts.map +1 -0
  523. package/dist/typescript/module/lib/utils/UtilsStatics.d.ts +4 -0
  524. package/dist/typescript/module/lib/utils/UtilsStatics.d.ts.map +1 -0
  525. package/dist/typescript/module/lib/utils/index.d.ts +4 -0
  526. package/dist/typescript/module/lib/utils/index.d.ts.map +1 -0
  527. package/dist/typescript/module/lib/version.d.ts +2 -0
  528. package/dist/typescript/module/lib/version.d.ts.map +1 -0
  529. package/dist/typescript/module/package.json +1 -0
  530. package/ios/RNFBApp/RNFBNullSentinelInterceptor.h +47 -0
  531. package/ios/RNFBApp/RNFBNullSentinelInterceptor.m +74 -0
  532. package/ios/RNFBApp/RNFBSharedUtils.h +2 -0
  533. package/ios/RNFBApp/RNFBSharedUtils.m +118 -0
  534. package/ios/RNFBApp/RNFBVersion.m +1 -1
  535. package/ios/RNFBApp.xcodeproj/project.pbxproj +6 -0
  536. package/lib/FirebaseApp.ts +98 -0
  537. package/lib/common/{Base64.js → Base64.ts} +19 -11
  538. package/lib/common/MutatableParams.ts +50 -0
  539. package/lib/common/ReferenceBase.ts +45 -0
  540. package/lib/common/deeps.ts +92 -0
  541. package/lib/common/id.ts +91 -0
  542. package/lib/common/{index.js → index.ts} +60 -38
  543. package/lib/common/path.ts +124 -0
  544. package/lib/common/promise.ts +68 -0
  545. package/lib/common/{serialize.js → serialize.ts} +3 -2
  546. package/lib/common/unitTestUtils.ts +5 -4
  547. package/lib/common/validate.ts +232 -0
  548. package/lib/index.ts +27 -0
  549. package/lib/internal/FirebaseModule.ts +78 -0
  550. package/lib/internal/NativeFirebaseError.ts +111 -0
  551. package/lib/internal/NativeModules.ts +116 -0
  552. package/lib/internal/RNFBNativeEventEmitter.ts +139 -0
  553. package/lib/internal/asyncStorage.ts +76 -0
  554. package/lib/internal/{constants.js → constants.ts} +3 -1
  555. package/lib/internal/global.d.ts +33 -0
  556. package/lib/internal/{index.js → index.ts} +2 -0
  557. package/lib/internal/logger.ts +270 -0
  558. package/lib/internal/nativeModuleAndroidIos.ts +55 -0
  559. package/lib/internal/nativeModuleWeb.ts +60 -0
  560. package/lib/internal/nullSerialization.ts +186 -0
  561. package/lib/internal/registry/app.ts +278 -0
  562. package/lib/internal/registry/{namespace.js → namespace.ts} +93 -54
  563. package/lib/internal/registry/nativeModule.ts +282 -0
  564. package/lib/internal/web/RNFBAppModule.ts +318 -0
  565. package/lib/internal/web/firebaseApp.ts +20 -0
  566. package/lib/internal/web/firebaseAppCheck.ts +23 -0
  567. package/lib/internal/web/firebaseAuth.ts +21 -0
  568. package/lib/internal/web/firebaseDatabase.ts +21 -0
  569. package/lib/internal/web/firebaseFirestore.ts +21 -0
  570. package/lib/internal/web/firebaseFunctions.ts +21 -0
  571. package/lib/internal/web/firebaseInstallations.ts +23 -0
  572. package/lib/internal/web/firebaseRemoteConfig.ts +23 -0
  573. package/lib/internal/web/firebaseStorage.ts +21 -0
  574. package/lib/internal/web/memidb/index.d.ts +21 -0
  575. package/lib/internal/web/memidb/lib/errors.js +17 -0
  576. package/lib/internal/web/utils.ts +57 -0
  577. package/lib/modular.ts +219 -0
  578. package/lib/{index.js → namespaced.ts} +2 -2
  579. package/lib/{index.d.ts → types/app.ts} +81 -40
  580. package/lib/types/internal.ts +142 -0
  581. package/lib/utils/{UtilsStatics.js → UtilsStatics.ts} +20 -12
  582. package/lib/utils/index.ts +94 -0
  583. package/lib/version.ts +2 -0
  584. package/package.json +99 -9
  585. package/tsconfig.json +10 -0
  586. package/lib/internal/asyncStorage.js +0 -47
  587. package/lib/internal/logger.d.ts +0 -85
  588. package/lib/internal/nativeModuleAndroidIos.js +0 -45
  589. package/lib/internal/nativeModuleWeb.js +0 -49
  590. package/lib/internal/web/firebaseApp.js +0 -3
  591. package/lib/internal/web/firebaseAuth.js +0 -4
  592. package/lib/internal/web/firebaseDatabase.js +0 -4
  593. package/lib/internal/web/firebaseFirestore.js +0 -4
  594. package/lib/internal/web/firebaseFunctions.js +0 -4
  595. package/lib/internal/web/firebaseStorage.js +0 -4
  596. package/lib/modular/index.d.ts +0 -131
  597. package/lib/modular/index.js +0 -150
  598. package/lib/version.js +0 -2
  599. /package/lib/internal/{SharedEventEmitter.js → SharedEventEmitter.ts} +0 -0
  600. /package/lib/internal/{nativeModule.android.js → nativeModule.android.ts} +0 -0
  601. /package/lib/internal/{nativeModule.ios.js → nativeModule.ios.ts} +0 -0
  602. /package/lib/internal/{nativeModule.js → nativeModule.ts} +0 -0
@@ -0,0 +1,561 @@
1
+ /**
2
+ * Core React Native Firebase package types.
3
+ *
4
+ * @firebase app
5
+ */
6
+ export declare namespace ReactNativeFirebase {
7
+ interface NativeFirebaseError extends Error {
8
+ /**
9
+ * Firebase error code, e.g. `auth/invalid-email`
10
+ */
11
+ readonly code: string;
12
+ /**
13
+ * Firebase error message
14
+ */
15
+ readonly message: string;
16
+ /**
17
+ * The firebase module namespace that this error originated from, e.g. 'analytics'
18
+ */
19
+ readonly namespace: string;
20
+ /**
21
+ * The native sdks returned error code, different per platform
22
+ */
23
+ readonly nativeErrorCode: string | number;
24
+ /**
25
+ * The native sdks returned error message, different per platform
26
+ */
27
+ readonly nativeErrorMessage: string;
28
+ }
29
+ type LogLevelString = 'debug' | 'verbose' | 'info' | 'warn' | 'error' | 'silent';
30
+ interface FirebaseAppOptions {
31
+ /**
32
+ * The Google App ID that is used to uniquely identify an instance of an app.
33
+ */
34
+ appId: string;
35
+ /**
36
+ * An API key used for authenticating requests from your app, e.g.
37
+ * "AIzaSyDdVgKwhZl0sTTTLZ7iTmt1r3N2cJLnaDk", used to identify your app to Google servers.
38
+ */
39
+ apiKey?: string;
40
+ /**
41
+ * The database root URL, e.g. "http://abc-xyz-123.firebaseio.com".
42
+ */
43
+ databaseURL?: string;
44
+ /**
45
+ * The Project ID from the Firebase console, for example "abc-xyz-123".
46
+ */
47
+ projectId: string;
48
+ /**
49
+ * The tracking ID for Google Analytics, e.g. "UA-12345678-1", used to configure Google Analytics.
50
+ */
51
+ measurementId?: string;
52
+ /**
53
+ * The Google Cloud Storage bucket name, e.g. "abc-xyz-123.storage.firebase.com".
54
+ */
55
+ storageBucket?: string;
56
+ /**
57
+ * The Project Number from the Google Developer's console, for example "012345678901", used to
58
+ * configure Google Cloud Messaging.
59
+ */
60
+ messagingSenderId?: string;
61
+ /**
62
+ * iOS only - The OAuth2 client ID for iOS application used to authenticate Google users, for example
63
+ * "12345.apps.googleusercontent.com", used for signing in with Google.
64
+ */
65
+ clientId?: string;
66
+ /**
67
+ * iOS only - The Android client ID used in Google AppInvite when an iOS app has its Android version, for
68
+ * example "12345.apps.googleusercontent.com".
69
+ */
70
+ androidClientId?: string;
71
+ /**
72
+ * iOS only - The URL scheme used to set up Durable Deep Link service.
73
+ */
74
+ deepLinkURLScheme?: string;
75
+ [name: string]: any;
76
+ }
77
+ interface FirebaseAppConfig {
78
+ /**
79
+ * The Firebase App name, defaults to [DEFAULT] if none provided.
80
+ */
81
+ name?: string;
82
+ /**
83
+ * Default setting for data collection on startup that affects all Firebase module startup data collection settings,
84
+ * in the absence of module-specific overrides. This will start as false if you set "app_data_collection_default_enabled"
85
+ * to false in firebase.json and may be used in opt-in flows, for example a GDPR-compliant app.
86
+ * If configured false initially, set to true after obtaining consent, then enable module-specific settings as needed afterwards.
87
+ */
88
+ automaticDataCollectionEnabled?: boolean;
89
+ /**
90
+ * If set to true it indicates that Firebase should close database connections
91
+ * automatically when the app is in the background. Disabled by default.
92
+ */
93
+ automaticResourceManagement?: boolean;
94
+ }
95
+ /**
96
+ * Base interface for FirebaseApp containing core properties and methods.
97
+ * The concrete FirebaseApp class implements this interface.
98
+ * Module-specific methods (auth(), analytics(), etc.) are added to FirebaseApp via declaration merging.
99
+ */
100
+ interface FirebaseAppBase {
101
+ /**
102
+ * The name (identifier) for this App. '[DEFAULT]' is the default App.
103
+ */
104
+ readonly name: string;
105
+ /**
106
+ * The (read-only) configuration options from the app initialization.
107
+ */
108
+ readonly options: FirebaseAppOptions;
109
+ /**
110
+ * The settable config flag for GDPR opt-in/opt-out
111
+ */
112
+ automaticDataCollectionEnabled: boolean;
113
+ /**
114
+ * Make this app unusable and free up resources.
115
+ */
116
+ delete(): Promise<void>;
117
+ utils(): Utils.Module;
118
+ }
119
+ /**
120
+ * Full FirebaseApp interface that extends the base interface.
121
+ * Module-specific methods (auth(), analytics(), etc.) are added here via declaration merging
122
+ * from individual package .d.ts files.
123
+ */
124
+ interface FirebaseApp extends FirebaseAppBase {
125
+ }
126
+ /**
127
+ * Interface for a supplied `AsyncStorage`.
128
+ */
129
+ interface ReactNativeAsyncStorage {
130
+ /**
131
+ * Persist an item in storage.
132
+ *
133
+ * @param key - storage key.
134
+ * @param value - storage value.
135
+ */
136
+ setItem: Function;
137
+ /**
138
+ * Retrieve an item from storage.
139
+ *
140
+ * @param key - storage key.
141
+ */
142
+ getItem: Function;
143
+ /**
144
+ * Remove an item from storage.
145
+ *
146
+ * @param key - storage key.
147
+ */
148
+ removeItem: Function;
149
+ [key: string]: any;
150
+ }
151
+ interface Module {
152
+ /**
153
+ * Create (and initialize) a FirebaseApp.
154
+ *
155
+ * @param options Options to configure the services used in the App.
156
+ * @param config The optional config for your firebase app
157
+ */
158
+ initializeApp(options: FirebaseAppOptions, config?: FirebaseAppConfig): Promise<FirebaseApp>;
159
+ /**
160
+ * Create (and initialize) a FirebaseApp.
161
+ *
162
+ * @param options Options to configure the services used in the App.
163
+ * @param name The optional name of the app to initialize ('[DEFAULT]' if
164
+ * omitted)
165
+ */
166
+ initializeApp(options: FirebaseAppOptions, name?: string): Promise<FirebaseApp>;
167
+ /**
168
+ * Retrieve an instance of a FirebaseApp.
169
+ *
170
+ * @example
171
+ * ```js
172
+ * const app = firebase.app('foo');
173
+ * ```
174
+ *
175
+ * @param name The optional name of the app to return ('[DEFAULT]' if omitted)
176
+ */
177
+ app(name?: string): FirebaseApp;
178
+ /**
179
+ * Set the log level across all modules. Only applies to iOS currently, has no effect on Android.
180
+ * Should be one of 'error', 'warn', 'info', or 'debug'.
181
+ * Logs messages at the configured level or lower (less verbose / more important).
182
+ * Note that if an app is running from AppStore, it will never log above info even if
183
+ * level is set to a higher (more verbose) setting.
184
+ * Note that iOS is missing firebase-js-sdk log levels 'verbose' and 'silent'.
185
+ * 'verbose' if used will map to 'debug', 'silent' has no valid mapping and will return an error if used.
186
+ *
187
+ * @ios
188
+ */
189
+ setLogLevel(logLevel: LogLevelString): void;
190
+ /**
191
+ * The `AsyncStorage` implementation to use for persisting data on 'Other' platforms.
192
+ * If not specified, in memory persistence is used.
193
+ *
194
+ * This is required if you want to persist things like Auth sessions, Analytics device IDs, etc.
195
+ */
196
+ setReactNativeAsyncStorage(asyncStorage: ReactNativeAsyncStorage): void;
197
+ /**
198
+ * A (read-only) array of all the initialized Apps.
199
+ */
200
+ apps: FirebaseApp[];
201
+ /**
202
+ * The current React Native Firebase version.
203
+ */
204
+ readonly SDK_VERSION: string;
205
+ /**
206
+ * Utils provides a collection of utilities to aid in using Firebase
207
+ * and related services inside React Native, e.g. Test Lab helpers
208
+ * and Google Play Services version helpers.
209
+ */
210
+ utils: Utils.Module;
211
+ }
212
+ /**
213
+ * A class that all React Native Firebase modules extend from to provide default behaviour.
214
+ */
215
+ abstract class FirebaseModule {
216
+ /**
217
+ * The current `FirebaseApp` instance for this Firebase service.
218
+ */
219
+ abstract app: FirebaseApp;
220
+ }
221
+ type FirebaseModuleWithStatics<M, S = {}> = {
222
+ (): M;
223
+ /**
224
+ * This React Native Firebase module version.
225
+ */
226
+ readonly SDK_VERSION: string;
227
+ } & S;
228
+ type FirebaseModuleWithStaticsAndApp<M, S = {}> = {
229
+ (app?: FirebaseApp): M;
230
+ /**
231
+ * This React Native Firebase module version.
232
+ */
233
+ readonly SDK_VERSION: string;
234
+ } & S;
235
+ /**
236
+ * Type for the `firebase` named export from module packages.
237
+ * Provides complete typing for:
238
+ * - Root level access: `firebase.functions(app?)`
239
+ * - App level access: `firebase.app().functions(region?)`
240
+ * - Statics: `firebase.functions.HttpsErrorCode`
241
+ * - Root properties: `firebase.SDK_VERSION`, `firebase.app()`, etc.
242
+ *
243
+ * @typeParam Namespace - The module namespace (e.g., 'functions', 'auth', 'firestore')
244
+ * @typeParam M - The module instance type (must extend FirebaseModule with `app` property)
245
+ * @typeParam S - The module statics type
246
+ * @typeParam HasCustomArg - true if app-level accessor takes optional string (region/url/databaseId)
247
+ *
248
+ * @example
249
+ * // In functions package:
250
+ * export const firebase = getFirebaseRoot() as ReactNativeFirebase.FirebaseNamespacedExport<
251
+ * 'functions',
252
+ * FunctionsModule,
253
+ * FunctionsStatics,
254
+ * true // functions() takes regionOrCustomDomain
255
+ * >;
256
+ */
257
+ type FirebaseNamespacedExport<Namespace extends string, M extends FirebaseModule, S extends object = object, HasCustomArg extends boolean = false> = Module & Record<Namespace, FirebaseModuleWithStaticsAndApp<M, S>> & {
258
+ app(name?: string): FirebaseApp & Record<Namespace, HasCustomArg extends true ? (arg?: string) => M : () => M>;
259
+ };
260
+ }
261
+ /**
262
+ * @firebase utils
263
+ */
264
+ export declare namespace Utils {
265
+ import FirebaseModule = ReactNativeFirebase.FirebaseModule;
266
+ /**
267
+ * A collection of native device file paths to aid in the usage of file path based methods.
268
+ *
269
+ * Concatenate a file path with your target file name when using with Storage `putFile` or `writeToFile`.
270
+ *
271
+ * ```js
272
+ * firebase.utils.FilePath;
273
+ * ```
274
+ */
275
+ interface FilePath {
276
+ /**
277
+ * Returns an absolute path to the applications main bundle.
278
+ *
279
+ * ```js
280
+ * firebase.utils.FilePath.MAIN_BUNDLE;
281
+ * ```
282
+ *
283
+ * @ios iOS only
284
+ */
285
+ MAIN_BUNDLE: string;
286
+ /**
287
+ * Returns an absolute path to the application specific cache directory on the filesystem.
288
+ *
289
+ * The system will automatically delete files in this directory when disk space is needed elsewhere on the device, starting with the oldest files first.
290
+ *
291
+ * ```js
292
+ * firebase.utils.FilePath.CACHES_DIRECTORY;
293
+ * ```
294
+ */
295
+ CACHES_DIRECTORY: string;
296
+ /**
297
+ * Returns an absolute path to the users Documents directory.
298
+ *
299
+ * Use this directory to place documents that have been created by the user.
300
+ *
301
+ * Normally this is the external files directory on Android but if no external storage directory found,
302
+ * e.g. removable media has been ejected by the user, it will fall back to internal storage. This may
303
+ * under rare circumstances where device storage environment changes cause the directory to be different
304
+ * between runs of the application
305
+ *
306
+ * ```js
307
+ * firebase.utils.FilePath.DOCUMENT_DIRECTORY;
308
+ * ```
309
+ */
310
+ DOCUMENT_DIRECTORY: string;
311
+ /**
312
+ * Returns an absolute path to a temporary directory.
313
+ *
314
+ * Use this directory to create temporary files. The system will automatically delete files in this directory when disk space is needed elsewhere on the device, starting with the oldest files first.
315
+ *
316
+ * ```js
317
+ * firebase.utils.FilePath.TEMP_DIRECTORY;
318
+ * ```
319
+ */
320
+ TEMP_DIRECTORY: string;
321
+ /**
322
+ * Returns an absolute path to the apps library/resources directory.
323
+ *
324
+ * E.g. this can be used for things like documentation, support files, and configuration files and generic resources.
325
+ *
326
+ * ```js
327
+ * firebase.utils.FilePath.LIBRARY_DIRECTORY;
328
+ * ```
329
+ */
330
+ LIBRARY_DIRECTORY: string;
331
+ /**
332
+ * Returns an absolute path to the directory on the primary shared/external storage device.
333
+ *
334
+ * Here your application can place persistent files it owns. These files are internal to the application, and not typically visible to the user as media.
335
+ *
336
+ * Returns null if no external storage directory found, e.g. removable media has been ejected by the user.
337
+ *
338
+ * ```js
339
+ * firebase.utils.FilePath.EXTERNAL_DIRECTORY;
340
+ * ```
341
+ *
342
+ * @android Android only - iOS returns null
343
+ */
344
+ EXTERNAL_DIRECTORY: string | null;
345
+ /**
346
+ * Returns an absolute path to the primary shared/external storage directory.
347
+ *
348
+ * Traditionally this is an SD card, but it may also be implemented as built-in storage on a device.
349
+ *
350
+ * Returns null if no external storage directory found, e.g. removable media has been ejected by the user.
351
+ * Requires special permission granted by Play Store review team on Android, is unlikely to be a valid path.
352
+ *
353
+ * ```js
354
+ * firebase.utils.FilePath.EXTERNAL_STORAGE_DIRECTORY;
355
+ * ```
356
+ *
357
+ * @android Android only - iOS returns null
358
+ */
359
+ EXTERNAL_STORAGE_DIRECTORY: string | null;
360
+ /**
361
+ * Returns an absolute path to a directory in which to place pictures that are available to the user.
362
+ * Requires special permission granted by Play Store review team on Android, is unlikely to be a valid path.
363
+ *
364
+ * ```js
365
+ * firebase.utils.FilePath.PICTURES_DIRECTORY;
366
+ * ```
367
+ */
368
+ PICTURES_DIRECTORY: string;
369
+ /**
370
+ * Returns an absolute path to a directory in which to place movies that are available to the user.
371
+ * Requires special permission granted by Play Store review team on Android, is unlikely to be a valid path.
372
+ *
373
+ * ```js
374
+ * firebase.utils.FilePath.MOVIES_DIRECTORY;
375
+ * ```
376
+ */
377
+ MOVIES_DIRECTORY: string;
378
+ }
379
+ interface Statics {
380
+ SDK_VERSION: string;
381
+ FilePath: FilePath;
382
+ }
383
+ /**
384
+ * For further information on the status codes available & what they represent, please head over
385
+ * to ConnectionResult documentation:
386
+ * https://developers.google.com/android/reference/com/google/android/gms/common/ConnectionResult
387
+ */
388
+ enum PlayServicesAvailabilityStatusCodes {
389
+ API_UNAVAILABLE = 16,
390
+ CANCELED = 13,
391
+ DEVELOPER_ERROR = 10,
392
+ DRIVE_EXTERNAL_STORAGE_REQUIRED = 1500,
393
+ INTERNAL_ERROR = 8,
394
+ INTERRUPTED = 15,
395
+ INVALID_ACCOUNT = 5,
396
+ LICENSE_CHECK_FAILED = 11,
397
+ NETWORK_ERROR = 7,
398
+ RESOLUTION_REQUIRED = 6,
399
+ RESTRICTED_PROFILE = 20,
400
+ SERVICE_DISABLED = 3,
401
+ SERVICE_INVALID = 9,
402
+ SERVICE_MISSING = 1,
403
+ SERVICE_MISSING_PERMISSION = 19,
404
+ SERVICE_UPDATING = 18,
405
+ SERVICE_VERSION_UPDATE_REQUIRED = 2,
406
+ SIGN_IN_FAILED = 17,
407
+ SIGN_IN_REQUIRED = 4,
408
+ SUCCESS = 0,
409
+ TIMEOUT = 14
410
+ }
411
+ interface PlayServicesAvailability {
412
+ /**
413
+ * Returns a numeric status code. Please refer to Android documentation
414
+ * for further information:
415
+ * https://developers.google.com/android/reference/com/google/android/gms/common/ConnectionResult
416
+ *
417
+ * ```js
418
+ * firebase.utils().playServicesAvailability.status;
419
+ * ```
420
+ *
421
+ * @android Android only - iOS returns 0
422
+ */
423
+ status: PlayServicesAvailabilityStatusCodes;
424
+ /**
425
+ * Returns a boolean indicating whether Play Store is available on the device
426
+ *
427
+ * ```js
428
+ * firebase.utils().playServicesAvailability.isAvailable;
429
+ * ```
430
+ *
431
+ * @android Android only - iOS returns true
432
+ */
433
+ isAvailable: boolean;
434
+ /**
435
+ * If Play Services is not available on the device, hasResolution indicates
436
+ * whether it is possible to do something about it (e.g. install Play Services).
437
+ *
438
+ * ```js
439
+ * firebase.utils().playServicesAvailability.hasResolution;
440
+ * ```
441
+ * @android Android only - iOS returns undefined
442
+ */
443
+ hasResolution: boolean | undefined;
444
+ /**
445
+ * If an error was received, this indicates whether the error is resolvable
446
+ *
447
+ * ```js
448
+ * firebase.utils().playServicesAvailability.isUserResolvableError;
449
+ * ```
450
+ * @android Android only - iOS returns undefined
451
+ */
452
+ isUserResolvableError: boolean | undefined;
453
+ /**
454
+ * A human readable error string
455
+ *
456
+ * ```js
457
+ * firebase.utils().playServicesAvailability.error;
458
+ * ```
459
+ * @android Android only - iOS returns undefined
460
+ */
461
+ error: string | undefined;
462
+ }
463
+ /**
464
+ * The React Native Firebase Utils service interface.
465
+ *
466
+ * > This module is available for the default app only.
467
+ *
468
+ * #### Example
469
+ *
470
+ * Get the Utils service for the default app:
471
+ *
472
+ * ```js
473
+ * const defaultAppUtils = firebase.utils();
474
+ * ```
475
+ */
476
+ abstract class Module extends FirebaseModule {
477
+ /**
478
+ * Returns true if this app is running inside a Firebase Test Lab environment.
479
+ *
480
+ * #### Example
481
+ *
482
+ * ```js
483
+ * const isRunningInTestLab = await firebase.utils().isRunningInTestLab;
484
+ * ```
485
+ * @android Android only - iOS returns false
486
+ */
487
+ abstract isRunningInTestLab: boolean;
488
+ /**
489
+ * Returns PlayServicesAvailability properties
490
+ *
491
+ * #### Example
492
+ *
493
+ * ```js
494
+ * const PlayServicesAvailability = await firebase.utils().playServicesAvailability;
495
+ * ```
496
+ *
497
+ * @android Android only - iOS always returns { isAvailable: true, status: 0 }
498
+ */
499
+ abstract playServicesAvailability: PlayServicesAvailability;
500
+ /**
501
+ * Returns PlayServicesAvailability properties
502
+ *
503
+ * #### Example
504
+ *
505
+ * ```js
506
+ * const PlayServicesAvailability = await firebase.utils().getPlayServicesStatus();
507
+ * ```
508
+ *
509
+ * @android Android only - iOS always returns { isAvailable: true, status: 0 }
510
+ */
511
+ abstract getPlayServicesStatus(): Promise<PlayServicesAvailability>;
512
+ /**
513
+ * A prompt appears on the device to ask the user to update play services
514
+ *
515
+ * #### Example
516
+ *
517
+ * ```js
518
+ * await firebase.utils().promptForPlayServices();
519
+ * ```
520
+ *
521
+ * @android Android only - iOS returns undefined
522
+ */
523
+ abstract promptForPlayServices(): Promise<void>;
524
+ /**
525
+ * Attempts to make Google Play services available on this device
526
+ *
527
+ * #### Example
528
+ *
529
+ * ```js
530
+ * await firebase.utils().makePlayServicesAvailable();
531
+ * ```
532
+ *
533
+ * @android Android only - iOS returns undefined
534
+ */
535
+ abstract makePlayServicesAvailable(): Promise<void>;
536
+ /**
537
+ * Resolves an error by starting any intents requiring user interaction.
538
+ *
539
+ * #### Example
540
+ *
541
+ * ```js
542
+ * await firebase.utils().resolutionForPlayServices();
543
+ * ```
544
+ *
545
+ * @android Android only - iOS returns undefined
546
+ */
547
+ abstract resolutionForPlayServices(): Promise<void>;
548
+ }
549
+ }
550
+ export interface LogCallbackParams {
551
+ level: ReactNativeFirebase.LogLevelString;
552
+ message: string;
553
+ args: unknown[];
554
+ type: string;
555
+ }
556
+ export type LogCallback = (callbackParams: LogCallbackParams) => void;
557
+ export interface LogOptions {
558
+ level?: ReactNativeFirebase.LogLevelString;
559
+ }
560
+ export type FirebaseApp = ReactNativeFirebase.FirebaseApp;
561
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../../../lib/types/app.ts"],"names":[],"mappings":"AAiBA;;;;GAIG;AAEH,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,mBAAoB,SAAQ,KAAK;QAChD;;WAEG;QACH,QAAQ,CAAC,IAAI,EAAE,MAA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B,EAAE,wBAAwB,CAAC;QAE5D;;;;;;;;;;WAUG;QACH,QAAQ,CAAC,qBAAqB,IAAI,OAAO,CAAC,wBAAwB,CAAC;QAEnE;;;;;;;;;;WAUG;QACH,QAAQ,CAAC,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC;QAC/C;;;;;;;;;;WAUG;QACH,QAAQ,CAAC,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC;QACnD;;;;;;;;;;WAUG;QACH,QAAQ,CAAC,yBAAyB,IAAI,OAAO,CAAC,IAAI,CAAC;KACpD;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,mBAAmB,CAAC,cAAc,CAAC;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,WAAW,GAAG,CAAC,cAAc,EAAE,iBAAiB,KAAK,IAAI,CAAC;AAEtE,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,mBAAmB,CAAC,cAAc,CAAC;CAC5C;AAGD,MAAM,MAAM,WAAW,GAAG,mBAAmB,CAAC,WAAW,CAAC"}
@@ -0,0 +1,101 @@
1
+ import type { ReactNativeFirebase, Utils } from './app';
2
+ /**
3
+ * Internal types for React Native Firebase
4
+ * These types are used internally across multiple files and should not be exported to consumers
5
+ */
6
+ /**
7
+ * Firebase JSON configuration from firebase.json file
8
+ * Structure: { "react-native": { [key: string]: boolean | string }, ... }
9
+ */
10
+ export type FirebaseJsonConfig = Record<string, unknown>;
11
+ /**
12
+ * Configuration for module namespace registration
13
+ */
14
+ export interface ModuleConfig {
15
+ namespace: string;
16
+ nativeModuleName?: string | string[];
17
+ hasMultiAppSupport?: boolean;
18
+ hasCustomUrlOrRegionSupport?: boolean;
19
+ nativeEvents?: boolean | string[];
20
+ disablePrependCustomUrlOrRegion?: boolean;
21
+ turboModule?: boolean;
22
+ }
23
+ /**
24
+ * Extended configuration for namespace registration including native module details
25
+ */
26
+ export interface NamespaceConfig extends ModuleConfig {
27
+ nativeModuleName: string | string[];
28
+ nativeEvents: boolean | string[];
29
+ ModuleClass: new (app: ReactNativeFirebase.FirebaseAppBase, config: ModuleConfig, customUrlOrRegion?: string | null) => ReactNativeFirebase.FirebaseModule;
30
+ statics?: object;
31
+ version?: string;
32
+ }
33
+ /**
34
+ * Type for a Firebase module getter function that can optionally accept
35
+ * a custom URL/region/databaseId parameter
36
+ */
37
+ export type ModuleGetter = {
38
+ (customUrlOrRegionOrDatabaseId?: string): ReactNativeFirebase.FirebaseModule;
39
+ [key: string]: unknown;
40
+ };
41
+ /**
42
+ * Type for Firebase root object with module getters
43
+ */
44
+ export interface FirebaseRoot {
45
+ initializeApp: (options: ReactNativeFirebase.FirebaseAppOptions, configOrName?: string | ReactNativeFirebase.FirebaseAppConfig) => Promise<ReactNativeFirebase.FirebaseApp>;
46
+ setReactNativeAsyncStorage: (asyncStorage: ReactNativeFirebase.ReactNativeAsyncStorage) => void;
47
+ app: (name?: string) => ReactNativeFirebase.FirebaseApp;
48
+ apps: ReactNativeFirebase.FirebaseApp[];
49
+ SDK_VERSION: string;
50
+ setLogLevel: (logLevel: ReactNativeFirebase.LogLevelString) => void;
51
+ utils: Utils.Statics & (() => Utils.Module);
52
+ [key: string]: unknown;
53
+ }
54
+ /**
55
+ * Native error types
56
+ */
57
+ export interface NativeErrorUserInfo {
58
+ code?: string;
59
+ message?: string;
60
+ nativeErrorCode?: string | number;
61
+ nativeErrorMessage?: string;
62
+ [key: string]: any;
63
+ }
64
+ export interface NativeError {
65
+ userInfo: NativeErrorUserInfo;
66
+ message?: string;
67
+ customData?: any;
68
+ operationType?: string;
69
+ }
70
+ /**
71
+ * AsyncStorage interface compatible with React Native AsyncStorage
72
+ * Internal version used by the library
73
+ */
74
+ export interface AsyncStorageStatic {
75
+ setItem: (key: string, value: string) => Promise<void>;
76
+ getItem: (key: string) => Promise<string | null>;
77
+ removeItem: (key: string) => Promise<void>;
78
+ }
79
+ /**
80
+ * Common utility types
81
+ */
82
+ export interface DataUrlParts {
83
+ base64String: string | undefined;
84
+ mediaType: string | undefined;
85
+ }
86
+ export interface Observer<T> {
87
+ next: (value: T) => void;
88
+ error?: (error: Error) => void;
89
+ complete?: () => void;
90
+ }
91
+ export interface SerializedValue {
92
+ type: string;
93
+ value: any;
94
+ }
95
+ export interface Deferred<T> {
96
+ promise: Promise<T>;
97
+ resolve: ((value: T) => void) | null;
98
+ reject: ((reason?: any) => void) | null;
99
+ }
100
+ export type Callback<T> = ((error: Error | null, result?: T) => void) | ((error: Error | null) => void);
101
+ //# sourceMappingURL=internal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../../../lib/types/internal.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAExD;;;GAGG;AAEH;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACrC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,YAAY,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAAC;IAClC,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAC1C,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,gBAAgB,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACpC,YAAY,EAAE,OAAO,GAAG,MAAM,EAAE,CAAC;IAGjC,WAAW,EAAE,KACX,GAAG,EAAE,mBAAmB,CAAC,eAAe,EACxC,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QAAQ,CAAC,CAAC,IAClB,CAAC,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,EAAE,MAAM,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC,GAC3C,CAAC,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Utils } from '../types/app';
2
+ declare const statics: Utils.Statics;
3
+ export default statics;
4
+ //# sourceMappingURL=UtilsStatics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UtilsStatics.d.ts","sourceRoot":"","sources":["../../../../../lib/utils/UtilsStatics.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AA6CrC,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,OAMpB,CAAC;AAEF,eAAe,OAAO,CAAC"}