@react-native-firebase/firestore 23.8.6 → 24.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (359) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/RNFBFirestore.podspec +2 -1
  3. package/android/src/reactnative/java/io/invertase/firebase/firestore/ReactNativeFirebaseFirestoreCollectionModule.java +17 -4
  4. package/android/src/reactnative/java/io/invertase/firebase/firestore/ReactNativeFirebaseFirestoreDocumentModule.java +2 -2
  5. package/android/src/reactnative/java/io/invertase/firebase/firestore/ReactNativeFirebaseFirestorePipelineExecutor.java +1243 -0
  6. package/android/src/reactnative/java/io/invertase/firebase/firestore/ReactNativeFirebaseFirestorePipelineNodeBuilder.java +3919 -0
  7. package/android/src/reactnative/java/io/invertase/firebase/firestore/ReactNativeFirebaseFirestorePipelineParser.java +1735 -0
  8. package/android/src/reactnative/java/io/invertase/firebase/firestore/ReactNativeFirebaseFirestoreSerialize.java +1 -1
  9. package/dist/module/FieldPath.js +59 -0
  10. package/dist/module/FieldPath.js.map +1 -0
  11. package/dist/module/FieldValue.js +82 -0
  12. package/dist/module/FieldValue.js.map +1 -0
  13. package/{lib → dist/module}/FirestoreAggregate.js +31 -43
  14. package/dist/module/FirestoreAggregate.js.map +1 -0
  15. package/dist/module/FirestoreBlob.js +56 -0
  16. package/dist/module/FirestoreBlob.js.map +1 -0
  17. package/dist/module/FirestoreCollectionReference.js +70 -0
  18. package/dist/module/FirestoreCollectionReference.js.map +1 -0
  19. package/{lib → dist/module}/FirestoreDocumentChange.js +12 -15
  20. package/dist/module/FirestoreDocumentChange.js.map +1 -0
  21. package/dist/module/FirestoreDocumentReference.js +170 -0
  22. package/dist/module/FirestoreDocumentReference.js.map +1 -0
  23. package/dist/module/FirestoreDocumentSnapshot.js +88 -0
  24. package/dist/module/FirestoreDocumentSnapshot.js.map +1 -0
  25. package/dist/module/FirestoreFilter.js +146 -0
  26. package/dist/module/FirestoreFilter.js.map +1 -0
  27. package/dist/module/FirestoreGeoPoint.js +80 -0
  28. package/dist/module/FirestoreGeoPoint.js.map +1 -0
  29. package/{lib → dist/module}/FirestorePath.js +5 -12
  30. package/dist/module/FirestorePath.js.map +1 -0
  31. package/{lib → dist/module}/FirestorePersistentCacheIndexManager.js +11 -4
  32. package/dist/module/FirestorePersistentCacheIndexManager.js.map +1 -0
  33. package/dist/module/FirestoreQuery.js +298 -0
  34. package/dist/module/FirestoreQuery.js.map +1 -0
  35. package/{lib → dist/module}/FirestoreQueryModifiers.js +25 -136
  36. package/dist/module/FirestoreQueryModifiers.js.map +1 -0
  37. package/dist/module/FirestoreQuerySnapshot.js +98 -0
  38. package/dist/module/FirestoreQuerySnapshot.js.map +1 -0
  39. package/dist/module/FirestoreSnapshotMetadata.js +38 -0
  40. package/dist/module/FirestoreSnapshotMetadata.js.map +1 -0
  41. package/dist/module/FirestoreStatics.js +50 -0
  42. package/dist/module/FirestoreStatics.js.map +1 -0
  43. package/{lib → dist/module}/FirestoreTimestamp.js +39 -39
  44. package/dist/module/FirestoreTimestamp.js.map +1 -0
  45. package/dist/module/FirestoreTransaction.js +113 -0
  46. package/dist/module/FirestoreTransaction.js.map +1 -0
  47. package/dist/module/FirestoreTransactionHandler.js +137 -0
  48. package/dist/module/FirestoreTransactionHandler.js.map +1 -0
  49. package/dist/module/FirestoreVectorValue.js +75 -0
  50. package/dist/module/FirestoreVectorValue.js.map +1 -0
  51. package/dist/module/FirestoreWriteBatch.js +113 -0
  52. package/dist/module/FirestoreWriteBatch.js.map +1 -0
  53. package/dist/module/LoadBundleTask.js +70 -0
  54. package/dist/module/LoadBundleTask.js.map +1 -0
  55. package/dist/module/index.js +31 -0
  56. package/dist/module/index.js.map +1 -0
  57. package/dist/module/modular/Bytes.js +67 -0
  58. package/dist/module/modular/Bytes.js.map +1 -0
  59. package/dist/module/modular/FieldPath.js +25 -0
  60. package/dist/module/modular/FieldPath.js.map +1 -0
  61. package/dist/module/modular/FieldValue.js +37 -0
  62. package/dist/module/modular/FieldValue.js.map +1 -0
  63. package/dist/module/modular/GeoPoint.js +22 -0
  64. package/dist/module/modular/GeoPoint.js.map +1 -0
  65. package/dist/module/modular/Timestamp.js +22 -0
  66. package/dist/module/modular/Timestamp.js.map +1 -0
  67. package/dist/module/modular/VectorValue.js +25 -0
  68. package/dist/module/modular/VectorValue.js.map +1 -0
  69. package/dist/module/modular/query.js +222 -0
  70. package/dist/module/modular/query.js.map +1 -0
  71. package/dist/module/modular/snapshot.js +32 -0
  72. package/dist/module/modular/snapshot.js.map +1 -0
  73. package/dist/module/modular.js +229 -0
  74. package/dist/module/modular.js.map +1 -0
  75. package/dist/module/namespaced.js +298 -0
  76. package/dist/module/namespaced.js.map +1 -0
  77. package/dist/module/package.json +1 -0
  78. package/dist/module/pipelines/expressions.js +1273 -0
  79. package/dist/module/pipelines/expressions.js.map +1 -0
  80. package/dist/module/pipelines/index.js +32 -0
  81. package/dist/module/pipelines/index.js.map +1 -0
  82. package/dist/module/pipelines/pipeline-result.js +58 -0
  83. package/dist/module/pipelines/pipeline-result.js.map +1 -0
  84. package/dist/module/pipelines/pipeline-source.js +4 -0
  85. package/dist/module/pipelines/pipeline-source.js.map +1 -0
  86. package/dist/module/pipelines/pipeline.js +4 -0
  87. package/dist/module/pipelines/pipeline.js.map +1 -0
  88. package/dist/module/pipelines/pipeline_impl.js +42 -0
  89. package/dist/module/pipelines/pipeline_impl.js.map +1 -0
  90. package/dist/module/pipelines/pipeline_options.js +4 -0
  91. package/dist/module/pipelines/pipeline_options.js.map +1 -0
  92. package/dist/module/pipelines/pipeline_runtime.js +526 -0
  93. package/dist/module/pipelines/pipeline_runtime.js.map +1 -0
  94. package/dist/module/pipelines/pipeline_support.js +71 -0
  95. package/dist/module/pipelines/pipeline_support.js.map +1 -0
  96. package/dist/module/pipelines/pipeline_validate.js +183 -0
  97. package/dist/module/pipelines/pipeline_validate.js.map +1 -0
  98. package/dist/module/pipelines/stage_options.js +4 -0
  99. package/dist/module/pipelines/stage_options.js.map +1 -0
  100. package/dist/module/pipelines/types.js +2 -0
  101. package/dist/module/pipelines/types.js.map +1 -0
  102. package/dist/module/types/firestore.js +4 -0
  103. package/dist/module/types/firestore.js.map +1 -0
  104. package/dist/module/types/internal.js +4 -0
  105. package/dist/module/types/internal.js.map +1 -0
  106. package/dist/module/types/namespaced.js +338 -0
  107. package/dist/module/types/namespaced.js.map +1 -0
  108. package/{lib → dist/module}/utils/index.js +59 -114
  109. package/dist/module/utils/index.js.map +1 -0
  110. package/{lib → dist/module}/utils/serialize.js +58 -116
  111. package/dist/module/utils/serialize.js.map +1 -0
  112. package/{lib → dist/module}/utils/typemap.js +6 -20
  113. package/dist/module/utils/typemap.js.map +1 -0
  114. package/dist/module/version.js +5 -0
  115. package/dist/module/version.js.map +1 -0
  116. package/dist/module/web/RNFBFirestoreModule.android.js +5 -0
  117. package/dist/module/web/RNFBFirestoreModule.android.js.map +1 -0
  118. package/dist/module/web/RNFBFirestoreModule.ios.js +5 -0
  119. package/dist/module/web/RNFBFirestoreModule.ios.js.map +1 -0
  120. package/dist/module/web/RNFBFirestoreModule.js +387 -0
  121. package/dist/module/web/RNFBFirestoreModule.js.map +1 -0
  122. package/{lib → dist/module}/web/convert.js +60 -94
  123. package/dist/module/web/convert.js.map +1 -0
  124. package/dist/module/web/pipelines/pipeline.js +34 -0
  125. package/dist/module/web/pipelines/pipeline.js.map +1 -0
  126. package/dist/module/web/pipelines/pipeline_bridge_factory.js +217 -0
  127. package/dist/module/web/pipelines/pipeline_bridge_factory.js.map +1 -0
  128. package/dist/module/web/pipelines/pipeline_node_builder.js +294 -0
  129. package/dist/module/web/pipelines/pipeline_node_builder.js.map +1 -0
  130. package/dist/module/web/pipelines/pipeline_parser.js +21 -0
  131. package/dist/module/web/pipelines/pipeline_parser.js.map +1 -0
  132. package/dist/module/web/pipelines/pipeline_snapshot_serializer.js +89 -0
  133. package/dist/module/web/pipelines/pipeline_snapshot_serializer.js.map +1 -0
  134. package/dist/module/web/query.js +95 -0
  135. package/dist/module/web/query.js.map +1 -0
  136. package/dist/typescript/lib/FieldPath.d.ts +10 -0
  137. package/dist/typescript/lib/FieldPath.d.ts.map +1 -0
  138. package/dist/typescript/lib/FieldValue.d.ts +17 -0
  139. package/dist/typescript/lib/FieldValue.d.ts.map +1 -0
  140. package/dist/typescript/lib/FirestoreAggregate.d.ts +40 -0
  141. package/dist/typescript/lib/FirestoreAggregate.d.ts.map +1 -0
  142. package/dist/typescript/lib/FirestoreBlob.d.ts +11 -0
  143. package/dist/typescript/lib/FirestoreBlob.d.ts.map +1 -0
  144. package/dist/typescript/lib/FirestoreCollectionReference.d.ts +15 -0
  145. package/dist/typescript/lib/FirestoreCollectionReference.d.ts.map +1 -0
  146. package/dist/typescript/lib/FirestoreDocumentChange.d.ts +27 -0
  147. package/dist/typescript/lib/FirestoreDocumentChange.d.ts.map +1 -0
  148. package/dist/typescript/lib/FirestoreDocumentReference.d.ts +30 -0
  149. package/dist/typescript/lib/FirestoreDocumentReference.d.ts.map +1 -0
  150. package/dist/typescript/lib/FirestoreDocumentSnapshot.d.ts +30 -0
  151. package/dist/typescript/lib/FirestoreDocumentSnapshot.d.ts.map +1 -0
  152. package/dist/typescript/lib/FirestoreFilter.d.ts +52 -0
  153. package/dist/typescript/lib/FirestoreFilter.d.ts.map +1 -0
  154. package/dist/typescript/lib/FirestoreGeoPoint.d.ts +22 -0
  155. package/dist/typescript/lib/FirestoreGeoPoint.d.ts.map +1 -0
  156. package/dist/typescript/lib/FirestorePath.d.ts +12 -0
  157. package/dist/typescript/lib/FirestorePath.d.ts.map +1 -0
  158. package/dist/typescript/lib/FirestorePersistentCacheIndexManager.d.ts +16 -0
  159. package/dist/typescript/lib/FirestorePersistentCacheIndexManager.d.ts.map +1 -0
  160. package/dist/typescript/lib/FirestoreQuery.d.ts +39 -0
  161. package/dist/typescript/lib/FirestoreQuery.d.ts.map +1 -0
  162. package/dist/typescript/lib/FirestoreQueryModifiers.d.ts +59 -0
  163. package/dist/typescript/lib/FirestoreQueryModifiers.d.ts.map +1 -0
  164. package/dist/typescript/lib/FirestoreQuerySnapshot.d.ts +49 -0
  165. package/dist/typescript/lib/FirestoreQuerySnapshot.d.ts.map +1 -0
  166. package/dist/typescript/lib/FirestoreSnapshotMetadata.d.ts +8 -0
  167. package/dist/typescript/lib/FirestoreSnapshotMetadata.d.ts.map +1 -0
  168. package/dist/typescript/lib/FirestoreStatics.d.ts +23 -0
  169. package/dist/typescript/lib/FirestoreStatics.d.ts.map +1 -0
  170. package/dist/typescript/lib/FirestoreTimestamp.d.ts +33 -0
  171. package/dist/typescript/lib/FirestoreTimestamp.d.ts.map +1 -0
  172. package/dist/typescript/lib/FirestoreTransaction.d.ts +42 -0
  173. package/dist/typescript/lib/FirestoreTransaction.d.ts.map +1 -0
  174. package/dist/typescript/lib/FirestoreTransactionHandler.d.ts +26 -0
  175. package/dist/typescript/lib/FirestoreTransactionHandler.d.ts.map +1 -0
  176. package/dist/typescript/lib/FirestoreVectorValue.d.ts +17 -0
  177. package/dist/typescript/lib/FirestoreVectorValue.d.ts.map +1 -0
  178. package/dist/typescript/lib/FirestoreWriteBatch.d.ts +21 -0
  179. package/dist/typescript/lib/FirestoreWriteBatch.d.ts.map +1 -0
  180. package/dist/typescript/lib/LoadBundleTask.d.ts +16 -0
  181. package/dist/typescript/lib/LoadBundleTask.d.ts.map +1 -0
  182. package/dist/typescript/lib/index.d.ts +6 -0
  183. package/dist/typescript/lib/index.d.ts.map +1 -0
  184. package/dist/typescript/lib/modular/Bytes.d.ts +22 -0
  185. package/dist/typescript/lib/modular/Bytes.d.ts.map +1 -0
  186. package/dist/typescript/lib/modular/FieldPath.d.ts +4 -0
  187. package/dist/typescript/lib/modular/FieldPath.d.ts.map +1 -0
  188. package/dist/typescript/lib/modular/FieldValue.d.ts +8 -0
  189. package/dist/typescript/lib/modular/FieldValue.d.ts.map +1 -0
  190. package/dist/typescript/lib/modular/GeoPoint.d.ts +3 -0
  191. package/dist/typescript/lib/modular/GeoPoint.d.ts.map +1 -0
  192. package/dist/typescript/lib/modular/Timestamp.d.ts +3 -0
  193. package/dist/typescript/lib/modular/Timestamp.d.ts.map +1 -0
  194. package/dist/typescript/lib/modular/VectorValue.d.ts +4 -0
  195. package/dist/typescript/lib/modular/VectorValue.d.ts.map +1 -0
  196. package/dist/typescript/lib/modular/query.d.ts +93 -0
  197. package/dist/typescript/lib/modular/query.d.ts.map +1 -0
  198. package/dist/typescript/lib/modular/snapshot.d.ts +30 -0
  199. package/dist/typescript/lib/modular/snapshot.d.ts.map +1 -0
  200. package/dist/typescript/lib/modular.d.ts +69 -0
  201. package/dist/typescript/lib/modular.d.ts.map +1 -0
  202. package/dist/typescript/lib/namespaced.d.ts +13 -0
  203. package/dist/typescript/lib/namespaced.d.ts.map +1 -0
  204. package/dist/typescript/lib/pipelines/expressions.d.ts +723 -0
  205. package/dist/typescript/lib/pipelines/expressions.d.ts.map +1 -0
  206. package/dist/typescript/lib/pipelines/index.d.ts +31 -0
  207. package/dist/typescript/lib/pipelines/index.d.ts.map +1 -0
  208. package/dist/typescript/lib/pipelines/pipeline-result.d.ts +30 -0
  209. package/dist/typescript/lib/pipelines/pipeline-result.d.ts.map +1 -0
  210. package/dist/typescript/lib/pipelines/pipeline-source.d.ts +64 -0
  211. package/dist/typescript/lib/pipelines/pipeline-source.d.ts.map +1 -0
  212. package/dist/typescript/lib/pipelines/pipeline.d.ts +61 -0
  213. package/dist/typescript/lib/pipelines/pipeline.d.ts.map +1 -0
  214. package/dist/typescript/lib/pipelines/pipeline_impl.d.ts +21 -0
  215. package/dist/typescript/lib/pipelines/pipeline_impl.d.ts.map +1 -0
  216. package/dist/typescript/lib/pipelines/pipeline_options.d.ts +17 -0
  217. package/dist/typescript/lib/pipelines/pipeline_options.d.ts.map +1 -0
  218. package/dist/typescript/lib/pipelines/pipeline_runtime.d.ts +10 -0
  219. package/dist/typescript/lib/pipelines/pipeline_runtime.d.ts.map +1 -0
  220. package/dist/typescript/lib/pipelines/pipeline_support.d.ts +7 -0
  221. package/dist/typescript/lib/pipelines/pipeline_support.d.ts.map +1 -0
  222. package/dist/typescript/lib/pipelines/pipeline_validate.d.ts +9 -0
  223. package/dist/typescript/lib/pipelines/pipeline_validate.d.ts.map +1 -0
  224. package/dist/typescript/lib/pipelines/stage_options.d.ts +326 -0
  225. package/dist/typescript/lib/pipelines/stage_options.d.ts.map +1 -0
  226. package/dist/typescript/lib/pipelines/types.d.ts +10 -0
  227. package/dist/typescript/lib/pipelines/types.d.ts.map +1 -0
  228. package/dist/typescript/lib/types/firestore.d.ts +263 -0
  229. package/dist/typescript/lib/types/firestore.d.ts.map +1 -0
  230. package/dist/typescript/lib/types/internal.d.ts +483 -0
  231. package/dist/typescript/lib/types/internal.d.ts.map +1 -0
  232. package/dist/typescript/lib/types/namespaced.d.ts +2285 -0
  233. package/dist/typescript/lib/types/namespaced.d.ts.map +1 -0
  234. package/dist/typescript/lib/utils/index.d.ts +15 -0
  235. package/dist/typescript/lib/utils/index.d.ts.map +1 -0
  236. package/dist/typescript/lib/utils/serialize.d.ts +17 -0
  237. package/dist/typescript/lib/utils/serialize.d.ts.map +1 -0
  238. package/dist/typescript/lib/utils/typemap.d.ts +3 -0
  239. package/dist/typescript/lib/utils/typemap.d.ts.map +1 -0
  240. package/dist/typescript/lib/version.d.ts +2 -0
  241. package/dist/typescript/lib/version.d.ts.map +1 -0
  242. package/dist/typescript/lib/web/RNFBFirestoreModule.android.d.ts +3 -0
  243. package/dist/typescript/lib/web/RNFBFirestoreModule.android.d.ts.map +1 -0
  244. package/dist/typescript/lib/web/RNFBFirestoreModule.d.ts +75 -0
  245. package/dist/typescript/lib/web/RNFBFirestoreModule.d.ts.map +1 -0
  246. package/dist/typescript/lib/web/RNFBFirestoreModule.ios.d.ts +3 -0
  247. package/dist/typescript/lib/web/RNFBFirestoreModule.ios.d.ts.map +1 -0
  248. package/dist/typescript/lib/web/convert.d.ts +14 -0
  249. package/dist/typescript/lib/web/convert.d.ts.map +1 -0
  250. package/dist/typescript/lib/web/pipelines/pipeline.d.ts +4 -0
  251. package/dist/typescript/lib/web/pipelines/pipeline.d.ts.map +1 -0
  252. package/dist/typescript/lib/web/pipelines/pipeline_bridge_factory.d.ts +5 -0
  253. package/dist/typescript/lib/web/pipelines/pipeline_bridge_factory.d.ts.map +1 -0
  254. package/dist/typescript/lib/web/pipelines/pipeline_node_builder.d.ts +5 -0
  255. package/dist/typescript/lib/web/pipelines/pipeline_node_builder.d.ts.map +1 -0
  256. package/dist/typescript/lib/web/pipelines/pipeline_parser.d.ts +3 -0
  257. package/dist/typescript/lib/web/pipelines/pipeline_parser.d.ts.map +1 -0
  258. package/dist/typescript/lib/web/pipelines/pipeline_snapshot_serializer.d.ts +4 -0
  259. package/dist/typescript/lib/web/pipelines/pipeline_snapshot_serializer.d.ts.map +1 -0
  260. package/dist/typescript/lib/web/query.d.ts +23 -0
  261. package/dist/typescript/lib/web/query.d.ts.map +1 -0
  262. package/dist/typescript/package.json +1 -0
  263. package/ios/RNFBFirestore/RNFBFirestoreCollectionModule.m +52 -2
  264. package/ios/RNFBFirestore/RNFBFirestorePipelineBridgeFactory.swift +384 -0
  265. package/ios/RNFBFirestore/RNFBFirestorePipelineCallHandler.swift +86 -0
  266. package/ios/RNFBFirestore/RNFBFirestorePipelineNodeBuilder.swift +1500 -0
  267. package/ios/RNFBFirestore/RNFBFirestorePipelineParser.swift +1352 -0
  268. package/ios/RNFBFirestore/RNFBFirestorePipelineSnapshotSerializer.swift +98 -0
  269. package/lib/{FirestoreFieldPath.js → FieldPath.ts} +10 -12
  270. package/lib/{FirestoreFieldValue.js → FieldValue.ts} +22 -19
  271. package/lib/FirestoreAggregate.ts +124 -0
  272. package/lib/FirestoreBlob.ts +73 -0
  273. package/lib/FirestoreCollectionReference.ts +99 -0
  274. package/lib/FirestoreDocumentChange.ts +71 -0
  275. package/lib/FirestoreDocumentReference.ts +310 -0
  276. package/lib/FirestoreDocumentSnapshot.ts +149 -0
  277. package/lib/FirestoreFilter.ts +232 -0
  278. package/lib/{FirestoreGeoPoint.js → FirestoreGeoPoint.ts} +48 -8
  279. package/lib/FirestorePath.ts +54 -0
  280. package/lib/FirestorePersistentCacheIndexManager.ts +46 -0
  281. package/lib/{FirestoreQuery.js → FirestoreQuery.ts} +208 -100
  282. package/lib/FirestoreQueryModifiers.ts +411 -0
  283. package/lib/{FirestoreQuerySnapshot.js → FirestoreQuerySnapshot.ts} +61 -32
  284. package/lib/{FirestoreSnapshotMetadata.js → FirestoreSnapshotMetadata.ts} +8 -6
  285. package/lib/{FirestoreStatics.js → FirestoreStatics.ts} +18 -11
  286. package/lib/FirestoreTimestamp.ts +161 -0
  287. package/lib/{FirestoreTransaction.js → FirestoreTransaction.ts} +64 -27
  288. package/lib/{FirestoreTransactionHandler.js → FirestoreTransactionHandler.ts} +54 -75
  289. package/lib/{FirestoreVectorValue.js → FirestoreVectorValue.ts} +36 -15
  290. package/lib/{FirestoreWriteBatch.js → FirestoreWriteBatch.ts} +45 -21
  291. package/lib/LoadBundleTask.ts +85 -0
  292. package/lib/index.ts +71 -0
  293. package/lib/modular/Bytes.ts +81 -0
  294. package/lib/modular/FieldPath.ts +24 -0
  295. package/lib/modular/FieldValue.ts +40 -0
  296. package/lib/modular/GeoPoint.ts +20 -0
  297. package/lib/modular/Timestamp.ts +20 -0
  298. package/lib/modular/VectorValue.ts +24 -0
  299. package/lib/modular/query.ts +368 -0
  300. package/lib/modular/snapshot.ts +137 -0
  301. package/lib/modular.ts +552 -0
  302. package/lib/{index.js → namespaced.ts} +170 -80
  303. package/lib/pipelines/expressions.ts +2321 -0
  304. package/lib/pipelines/index.ts +203 -0
  305. package/lib/pipelines/pipeline-result.ts +78 -0
  306. package/lib/pipelines/pipeline-source.ts +83 -0
  307. package/lib/pipelines/pipeline.ts +99 -0
  308. package/lib/pipelines/pipeline_impl.ts +46 -0
  309. package/lib/pipelines/pipeline_options.ts +32 -0
  310. package/lib/pipelines/pipeline_runtime.ts +863 -0
  311. package/lib/pipelines/pipeline_support.ts +134 -0
  312. package/lib/pipelines/pipeline_validate.ts +242 -0
  313. package/lib/pipelines/stage_options.ts +376 -0
  314. package/lib/pipelines/types.ts +26 -0
  315. package/lib/types/firestore.ts +477 -0
  316. package/lib/types/internal.ts +747 -0
  317. package/lib/{index.d.ts → types/namespaced.ts} +280 -79
  318. package/lib/utils/index.ts +244 -0
  319. package/lib/utils/serialize.ts +314 -0
  320. package/lib/utils/typemap.ts +65 -0
  321. package/lib/version.ts +2 -0
  322. package/lib/web/{RNFBFirestoreModule.js → RNFBFirestoreModule.ts} +222 -234
  323. package/lib/web/convert.ts +287 -0
  324. package/lib/web/pipelines/pipeline.ts +47 -0
  325. package/lib/web/pipelines/pipeline_bridge_factory.ts +377 -0
  326. package/lib/web/pipelines/pipeline_node_builder.ts +413 -0
  327. package/lib/web/pipelines/pipeline_parser.ts +23 -0
  328. package/lib/web/pipelines/pipeline_snapshot_serializer.ts +133 -0
  329. package/lib/web/query.ts +150 -0
  330. package/package.json +46 -7
  331. package/tsconfig.json +35 -0
  332. package/lib/FirestoreBlob.js +0 -107
  333. package/lib/FirestoreCollectionReference.js +0 -70
  334. package/lib/FirestoreDocumentReference.js +0 -222
  335. package/lib/FirestoreDocumentSnapshot.js +0 -132
  336. package/lib/FirestoreFilter.js +0 -156
  337. package/lib/modular/Bytes.d.ts +0 -11
  338. package/lib/modular/Bytes.js +0 -62
  339. package/lib/modular/FieldPath.d.ts +0 -20
  340. package/lib/modular/FieldPath.js +0 -7
  341. package/lib/modular/FieldValue.d.ts +0 -67
  342. package/lib/modular/FieldValue.js +0 -41
  343. package/lib/modular/GeoPoint.d.ts +0 -17
  344. package/lib/modular/GeoPoint.js +0 -3
  345. package/lib/modular/Timestamp.d.ts +0 -85
  346. package/lib/modular/Timestamp.js +0 -3
  347. package/lib/modular/VectorValue.d.ts +0 -30
  348. package/lib/modular/VectorValue.js +0 -11
  349. package/lib/modular/index.d.ts +0 -788
  350. package/lib/modular/index.js +0 -410
  351. package/lib/modular/query.d.ts +0 -370
  352. package/lib/modular/query.js +0 -233
  353. package/lib/modular/snapshot.d.ts +0 -256
  354. package/lib/modular/snapshot.js +0 -33
  355. package/lib/modular/utils/observer.js +0 -16
  356. package/lib/version.js +0 -2
  357. package/lib/web/query.js +0 -112
  358. /package/lib/web/{RNFBFirestoreModule.android.js → RNFBFirestoreModule.android.ts} +0 -0
  359. /package/lib/web/{RNFBFirestoreModule.ios.js → RNFBFirestoreModule.ios.ts} +0 -0
@@ -0,0 +1,483 @@
1
+ import type { CollectionReference, DocumentData, DocumentReference, DocumentSnapshot, Firestore, FirestoreSettings, LoadBundleTask, LoadBundleTaskProgress, LogLevel, Primitive, Query, QuerySnapshot, SetOptions, SnapshotOptions, Transaction, Unsubscribe, WriteBatch, WithFieldValue, AggregateType, PartialWithFieldValue } from './firestore';
2
+ import type { PersistentCacheIndexManager } from '../FirestorePersistentCacheIndexManager';
3
+ import type { QueryConstraint } from '../modular/query';
4
+ import type { _Filter } from '../FirestoreFilter';
5
+ import type FirestoreTimestamp from '../FirestoreTimestamp';
6
+ import Blob from 'lib/FirestoreBlob';
7
+ /** Optional final argument passed by modular API wrappers (MODULAR_DEPRECATION_ARG). */
8
+ export type FirestoreModularDeprecationArg = string;
9
+ /** Query type passed to native ('collection' or 'collectionGroup'). */
10
+ export type FirestoreQueryTypeInternal = 'collection' | 'collectionGroup';
11
+ /** App instance with firestore() method (e.g. from getApp() when used for getFirestore()). */
12
+ export interface AppWithFirestoreInternal {
13
+ firestore(databaseId?: string): Firestore;
14
+ }
15
+ /** Single filter spec passed to native (fieldPath serialized as string[] from QueryModifiers). */
16
+ export interface FirestoreFilterSpecInternal {
17
+ fieldPath?: string[] | unknown;
18
+ operator: string;
19
+ value?: unknown;
20
+ /** Nested queries for composite filters (AND/OR). */
21
+ queries?: FirestoreFilterSpecInternal[];
22
+ }
23
+ /** Order spec passed to native (fieldPath serialized as string[] from QueryModifiers). */
24
+ export interface FirestoreOrderSpecInternal {
25
+ fieldPath: string[] | unknown;
26
+ direction: string;
27
+ }
28
+ /** Query options passed to native (limit, limitToLast, startAt, etc.). */
29
+ export interface FirestoreQueryOptionsInternal {
30
+ limit?: number;
31
+ limitToLast?: number;
32
+ startAt?: unknown[];
33
+ startAfter?: unknown[];
34
+ endAt?: unknown[];
35
+ endBefore?: unknown[];
36
+ }
37
+ /** Cursor field values (startAt, startAfter, endAt, endBefore) – serialized array passed to native. */
38
+ export type FirestoreCursorFieldsInternal = unknown[];
39
+ /** Single aggregate query spec passed to native (aggregateQuery). */
40
+ export interface FirestoreAggregateQuerySpecInternal {
41
+ aggregateType: AggregateType;
42
+ field: string | null;
43
+ key: string;
44
+ }
45
+ /** Aggregate query result from native (passed to AggregateQuerySnapshot constructor). */
46
+ export interface FirestoreAggregateQueryResultInternal {
47
+ count?: number;
48
+ [key: string]: unknown;
49
+ }
50
+ /** Serialized expression node passed to native pipeline execute bridge. */
51
+ export interface FirestorePipelineFieldExpressionInternal {
52
+ __kind?: 'expression';
53
+ exprType: 'Field';
54
+ path: string;
55
+ }
56
+ /** Serialized constant expression node passed to native pipeline execute bridge. */
57
+ export interface FirestorePipelineConstantExpressionInternal {
58
+ __kind?: 'expression';
59
+ exprType: 'Constant';
60
+ value: FirestorePipelineSerializedValueInternal;
61
+ }
62
+ /** Serialized function expression node passed to native pipeline execute bridge. */
63
+ export interface FirestorePipelineFunctionExpressionInternal {
64
+ __kind?: 'expression';
65
+ exprType?: 'Function';
66
+ name: string;
67
+ args?: FirestorePipelineSerializedValueInternal[];
68
+ }
69
+ /** Serialized aggregate function node passed to native pipeline execute bridge. */
70
+ export interface FirestorePipelineAggregateFunctionInternal {
71
+ __kind?: 'aggregate';
72
+ exprType?: 'AggregateFunction';
73
+ kind: string;
74
+ args?: FirestorePipelineSerializedValueInternal[];
75
+ }
76
+ /** Serialized ordering node passed to native pipeline execute bridge. */
77
+ export interface FirestorePipelineOrderingInternal {
78
+ __kind?: 'ordering';
79
+ expr: FirestorePipelineExpressionInternal;
80
+ direction: 'ascending' | 'descending';
81
+ }
82
+ /** Flat aliased field shape used to avoid nested field parsing on native platforms. */
83
+ export interface FirestorePipelineFlatAliasedFieldInternal {
84
+ path: string;
85
+ alias: string;
86
+ as: string;
87
+ }
88
+ /** Serialized aliased expression node passed to native pipeline execute bridge. */
89
+ export interface FirestorePipelineAliasedExpressionInternal {
90
+ __kind?: 'aliasedExpression';
91
+ exprType?: 'AliasedExpression';
92
+ selectable?: true;
93
+ expr: FirestorePipelineExpressionInternal;
94
+ alias: string;
95
+ as: string;
96
+ }
97
+ /** Serialized aliased aggregate node passed to native pipeline execute bridge. */
98
+ export interface FirestorePipelineAliasedAggregateInternal {
99
+ __kind?: 'aliasedAggregate';
100
+ aggregate: FirestorePipelineAggregateFunctionInternal;
101
+ alias: string;
102
+ }
103
+ export type FirestorePipelineExpressionInternal = FirestorePipelineFieldExpressionInternal | FirestorePipelineConstantExpressionInternal | FirestorePipelineFunctionExpressionInternal;
104
+ export type FirestorePipelineSelectableInternal = FirestorePipelineExpressionInternal | FirestorePipelineFlatAliasedFieldInternal | FirestorePipelineAliasedExpressionInternal;
105
+ export type FirestorePipelineSerializedRecordInternal = {
106
+ [key: string]: FirestorePipelineSerializedValueInternal;
107
+ };
108
+ export type FirestorePipelineSerializedValueInternal = null | boolean | number | string | FirestorePipelineExpressionInternal | FirestorePipelineAggregateFunctionInternal | FirestorePipelineOrderingInternal | FirestorePipelineFlatAliasedFieldInternal | FirestorePipelineAliasedExpressionInternal | FirestorePipelineAliasedAggregateInternal | FirestorePipelineSerializedInternal | FirestorePipelineSerializedValueInternal[] | FirestorePipelineSerializedRecordInternal;
109
+ /** Serialized pipeline source passed to native execute bridge. */
110
+ export type FirestorePipelineSourceInternal = {
111
+ source: 'collection';
112
+ path: string;
113
+ rawOptions?: Record<string, unknown>;
114
+ } | {
115
+ source: 'collectionGroup';
116
+ collectionId: string;
117
+ rawOptions?: Record<string, unknown>;
118
+ } | {
119
+ source: 'database';
120
+ rawOptions?: Record<string, unknown>;
121
+ } | {
122
+ source: 'documents';
123
+ documents: string[];
124
+ rawOptions?: Record<string, unknown>;
125
+ } | {
126
+ source: 'query';
127
+ path: string;
128
+ queryType: FirestoreQueryTypeInternal;
129
+ filters: FirestoreFilterSpecInternal[];
130
+ orders: FirestoreOrderSpecInternal[];
131
+ options: FirestoreQueryOptionsInternal;
132
+ };
133
+ export type FirestorePipelineStageInternal = {
134
+ stage: 'where';
135
+ options: {
136
+ condition: FirestorePipelineExpressionInternal;
137
+ };
138
+ } | {
139
+ stage: 'select';
140
+ options: {
141
+ selections: Array<string | FirestorePipelineSelectableInternal>;
142
+ };
143
+ } | {
144
+ stage: 'addFields';
145
+ options: {
146
+ fields: FirestorePipelineSelectableInternal[];
147
+ };
148
+ } | {
149
+ stage: 'removeFields';
150
+ options: {
151
+ fields: Array<string | FirestorePipelineFieldExpressionInternal>;
152
+ };
153
+ } | {
154
+ stage: 'sort';
155
+ options: {
156
+ orderings: FirestorePipelineOrderingInternal[];
157
+ };
158
+ } | {
159
+ stage: 'limit';
160
+ options: {
161
+ limit: number;
162
+ };
163
+ } | {
164
+ stage: 'offset';
165
+ options: {
166
+ offset: number;
167
+ };
168
+ } | {
169
+ stage: 'aggregate';
170
+ options: {
171
+ accumulators: FirestorePipelineAliasedAggregateInternal[];
172
+ groups?: Array<string | FirestorePipelineSelectableInternal>;
173
+ };
174
+ } | {
175
+ stage: 'distinct';
176
+ options: {
177
+ groups: Array<string | FirestorePipelineSelectableInternal>;
178
+ };
179
+ } | {
180
+ stage: 'findNearest';
181
+ options: {
182
+ field: string | FirestorePipelineFieldExpressionInternal;
183
+ vectorValue: number[] | {
184
+ values: number[];
185
+ };
186
+ distanceMeasure: 'euclidean' | 'cosine' | 'dot_product';
187
+ limit?: number;
188
+ distanceField?: string;
189
+ };
190
+ } | {
191
+ stage: 'replaceWith';
192
+ options: {
193
+ map: string | FirestorePipelineExpressionInternal | FirestorePipelineFlatAliasedFieldInternal | FirestorePipelineAliasedExpressionInternal;
194
+ };
195
+ } | {
196
+ stage: 'sample';
197
+ options: {
198
+ documents: number;
199
+ } | {
200
+ percentage: number;
201
+ };
202
+ } | {
203
+ stage: 'union';
204
+ options: {
205
+ other: FirestorePipelineSerializedInternal;
206
+ };
207
+ } | {
208
+ stage: 'unnest';
209
+ options: {
210
+ selectable: FirestorePipelineSelectableInternal;
211
+ indexField?: string;
212
+ };
213
+ } | {
214
+ stage: 'rawStage';
215
+ options: {
216
+ name: string;
217
+ params?: FirestorePipelineSerializedValueInternal;
218
+ options: Record<string, unknown>;
219
+ };
220
+ };
221
+ export type FirestorePipelineStageNameInternal = FirestorePipelineStageInternal['stage'];
222
+ export type FirestorePipelineStageOptionsInternal<TStage extends FirestorePipelineStageNameInternal> = Extract<FirestorePipelineStageInternal, {
223
+ stage: TStage;
224
+ }>['options'];
225
+ /** Serialized pipeline payload passed to native execute bridge. */
226
+ export interface FirestorePipelineSerializedInternal {
227
+ source: FirestorePipelineSourceInternal;
228
+ stages: FirestorePipelineStageInternal[];
229
+ }
230
+ /** Options passed to native pipeline execute bridge. */
231
+ export interface FirestorePipelineExecuteOptionsInternal {
232
+ indexMode?: 'recommended';
233
+ rawOptions?: Record<string, unknown>;
234
+ }
235
+ /** Timestamp shape received from native pipeline execution. */
236
+ export type FirestorePipelineTimestampInternal = FirestoreTimestamp | {
237
+ seconds?: number;
238
+ nanoseconds?: number;
239
+ } | [number, number] | number;
240
+ /** Single serialized pipeline result received from native execution. */
241
+ export interface FirestorePipelineResultInternal {
242
+ data?: Record<string, unknown>;
243
+ path?: string;
244
+ id?: string;
245
+ createTime?: FirestorePipelineTimestampInternal;
246
+ updateTime?: FirestorePipelineTimestampInternal;
247
+ }
248
+ /** Pipeline execution response received from native execution. */
249
+ export interface FirestorePipelineSnapshotInternal {
250
+ results?: FirestorePipelineResultInternal[];
251
+ executionTime: FirestorePipelineTimestampInternal;
252
+ }
253
+ /** Options for snapshot listeners (includeMetadataChanges). */
254
+ export interface FirestoreSnapshotListenOptionsInternal {
255
+ includeMetadataChanges?: boolean;
256
+ }
257
+ /** Settings state on the Firestore module instance (ignoreUndefinedProperties, persistence). */
258
+ export interface FirestoreSettingsStateInternal {
259
+ ignoreUndefinedProperties: boolean;
260
+ persistence: boolean;
261
+ }
262
+ /** Subscription returned by emitter.addListener. */
263
+ export interface FirestoreEmitterSubscriptionInternal {
264
+ remove(): void;
265
+ }
266
+ /** Native error shape in sync event body. */
267
+ export interface FirestoreSyncEventErrorInternal {
268
+ code?: string;
269
+ message?: string;
270
+ }
271
+ /** Serialized document snapshot from native (event.body.snapshot). */
272
+ export interface FirestoreDocumentSnapshotDataInternal {
273
+ path: string;
274
+ exists: boolean;
275
+ data?: Record<string, unknown>;
276
+ metadata: [boolean, boolean];
277
+ }
278
+ /** Sync event body (document or collection) from native. */
279
+ export interface FirestoreSyncEventBodyInternal {
280
+ error?: FirestoreSyncEventErrorInternal;
281
+ snapshot?: FirestoreDocumentSnapshotDataInternal;
282
+ documents?: FirestoreDocumentSnapshotDataInternal[];
283
+ }
284
+ /** Emitter interface used by FirestoreInternal (matches FirebaseModule.emitter usage). */
285
+ export interface FirestoreEmitterInternal {
286
+ addListener(eventName: string, callback: (event: {
287
+ body: FirestoreSyncEventBodyInternal;
288
+ }) => void): FirestoreEmitterSubscriptionInternal;
289
+ }
290
+ /**
291
+ * Wrapped native module interface for Firestore.
292
+ *
293
+ * Note: React Native Firebase internally wraps native methods and auto-prepends app name and
294
+ * database ID when `hasMultiAppSupport` and `hasCustomUrlOrRegionSupport` are enabled.
295
+ * Firestore uses multiple native modules (RNFBFirestoreModule, RNFBFirestoreCollectionModule,
296
+ * RNFBFirestoreDocumentModule, RNFBFirestoreTransactionModule) which are merged into a single
297
+ * wrapped object. This interface represents that merged *wrapped* module shape exposed as
298
+ * `this.native` within FirebaseFirestoreModule.
299
+ */
300
+ export interface RNFBFirestoreModule {
301
+ setLogLevel(level: LogLevel): Promise<void>;
302
+ loadBundle(bundle: string): Promise<LoadBundleTaskProgress>;
303
+ clearPersistence(): Promise<void>;
304
+ waitForPendingWrites(): Promise<void>;
305
+ terminate(): Promise<void>;
306
+ useEmulator(host: string, port: number): void;
307
+ disableNetwork(): Promise<void>;
308
+ enableNetwork(): Promise<void>;
309
+ settings(settings: object): Promise<void>;
310
+ addSnapshotsInSync(listenerId: number): void;
311
+ removeSnapshotsInSync(listenerId: number): void;
312
+ /**
313
+ * Persistent cache index manager.
314
+ * - 0: enableIndexAutoCreation
315
+ * - 1: disableIndexAutoCreation
316
+ * - 2: deleteAllIndexes
317
+ */
318
+ persistenceCacheIndexManager(mode: number): Promise<void>;
319
+ collectionOffSnapshot(listenerId: number): void;
320
+ namedQueryOnSnapshot(queryName: string, type: FirestoreQueryTypeInternal | string, filters: FirestoreFilterSpecInternal[], orders: FirestoreOrderSpecInternal[], options: FirestoreQueryOptionsInternal, listenerId: number, snapshotListenOptions: FirestoreSnapshotListenOptionsInternal): void;
321
+ collectionOnSnapshot(path: string, type: FirestoreQueryTypeInternal | string, filters: FirestoreFilterSpecInternal[], orders: FirestoreOrderSpecInternal[], options: FirestoreQueryOptionsInternal, listenerId: number, snapshotListenOptions: FirestoreSnapshotListenOptionsInternal): void;
322
+ namedQueryGet(queryName: string, type: FirestoreQueryTypeInternal | string, filters: FirestoreFilterSpecInternal[], orders: FirestoreOrderSpecInternal[], options: FirestoreQueryOptionsInternal, getOptions?: {
323
+ source?: string;
324
+ }): Promise<unknown>;
325
+ collectionGet(path: string, type: FirestoreQueryTypeInternal | string, filters: FirestoreFilterSpecInternal[], orders: FirestoreOrderSpecInternal[], options: FirestoreQueryOptionsInternal, getOptions?: {
326
+ source?: string;
327
+ }): Promise<unknown>;
328
+ collectionCount(path: string, type: FirestoreQueryTypeInternal | string, filters: FirestoreFilterSpecInternal[], orders: FirestoreOrderSpecInternal[], options: FirestoreQueryOptionsInternal): Promise<{
329
+ count?: number;
330
+ }>;
331
+ aggregateQuery(path: string, type: FirestoreQueryTypeInternal | string, filters: FirestoreFilterSpecInternal[], orders: FirestoreOrderSpecInternal[], options: FirestoreQueryOptionsInternal, aggregateQueries: FirestoreAggregateQuerySpecInternal[]): Promise<Record<string, unknown>>;
332
+ pipelineExecute(pipeline: FirestorePipelineSerializedInternal, options?: FirestorePipelineExecuteOptionsInternal): Promise<FirestorePipelineSnapshotInternal>;
333
+ documentDelete(path: string): Promise<void>;
334
+ documentOffSnapshot(listenerId: number): void;
335
+ documentOnSnapshot(path: string, listenerId: number, snapshotListenOptions: FirestoreSnapshotListenOptionsInternal): void;
336
+ documentGet(path: string, getOptions?: {
337
+ source?: string;
338
+ }): Promise<unknown>;
339
+ documentSet(path: string, data: Record<string, unknown>, options: Record<string, unknown>): Promise<void>;
340
+ documentUpdate(path: string, data: Record<string, unknown>): Promise<void>;
341
+ documentBatch(writes: Array<Record<string, unknown>>): Promise<void>;
342
+ transactionBegin(transactionId: number): Promise<void>;
343
+ transactionDispose(transactionId: number): void;
344
+ transactionGetDocument(transactionId: number, path: string): Promise<unknown>;
345
+ transactionApplyBuffer(transactionId: number, commandBuffer: unknown[]): void;
346
+ }
347
+ declare module '@react-native-firebase/app/dist/module/internal/NativeModules' {
348
+ interface ReactNativeFirebaseNativeModules {
349
+ RNFBFirestoreModule: RNFBFirestoreModule;
350
+ }
351
+ }
352
+ export type WithModularDeprecationArg<F> = F extends (...args: infer P) => infer R ? (...args: [...P, FirestoreModularDeprecationArg?]) => R : never;
353
+ export interface ParentReferenceInternal<AppModelType = DocumentData, DbModelType extends DocumentData = DocumentData> {
354
+ doc(path?: string, deprecationArg?: FirestoreModularDeprecationArg): DocumentReference<AppModelType, DbModelType>;
355
+ collection(path: string, deprecationArg?: FirestoreModularDeprecationArg): CollectionReference<AppModelType, DbModelType>;
356
+ }
357
+ export interface ReferenceInternal<AppModelType = DocumentData, DbModelType extends DocumentData = DocumentData> {
358
+ isEqual(other: DocumentReference<AppModelType, DbModelType> | CollectionReference<AppModelType, DbModelType>, deprecationArg?: FirestoreModularDeprecationArg): boolean;
359
+ }
360
+ /** Used when calling query instance methods by name (e.g. in QueryConstraint._apply). */
361
+ export type QueryWithMethodInternal<AppModelType = DocumentData, DbModelType extends DocumentData = DocumentData> = Record<string, (...args: unknown[]) => Query<AppModelType, DbModelType>>;
362
+ /** Used when calling .where() on a query with a composite filter. */
363
+ export interface QueryWithWhereInternal<AppModelType = DocumentData, DbModelType extends DocumentData = DocumentData> {
364
+ where(...args: unknown[]): Query<AppModelType, DbModelType>;
365
+ }
366
+ /** Constraint instance that may have _apply(query) to apply itself to a query. */
367
+ export interface QueryConstraintWithApplyInternal<AppModelType = DocumentData, DbModelType extends DocumentData = DocumentData> {
368
+ _apply?(query: Query<AppModelType, DbModelType>): Query<AppModelType, DbModelType>;
369
+ }
370
+ /** Filter constraint (field or composite) that exposes _filter. */
371
+ export interface QueryFilterConstraintWithFilterInternal {
372
+ _filter: _Filter;
373
+ }
374
+ /** DocumentReference viewed as having get() returning DocumentSnapshot. */
375
+ export interface DocumentReferenceGetInternal<AppModelType = DocumentData, DbModelType extends DocumentData = DocumentData> {
376
+ get(...args: unknown[]): Promise<DocumentSnapshot<AppModelType, DbModelType>>;
377
+ }
378
+ /** DocumentReference viewed as having delete(). */
379
+ export interface DocumentReferenceDeleteInternal {
380
+ delete(...args: unknown[]): Promise<void>;
381
+ }
382
+ /** Reference or query viewed as having isEqual(). */
383
+ export interface ReferenceIsEqualInternal {
384
+ isEqual(other: unknown, deprecationArg?: FirestoreModularDeprecationArg): boolean;
385
+ }
386
+ /** DocumentReference or Query viewed as having onSnapshot(). */
387
+ export interface ReferenceWithOnSnapshotInternal {
388
+ onSnapshot(...listenerArgs: unknown[]): Unsubscribe;
389
+ }
390
+ /** Converter object with optional toFirestore (for guards before calling). */
391
+ export interface ConverterWithOptionalToFirestoreInternal {
392
+ toFirestore?(data: unknown, options?: unknown): unknown;
393
+ }
394
+ /** Converter object with required toFirestore (after guard). */
395
+ export interface ConverterWithToFirestoreInternal {
396
+ toFirestore: (data: unknown, options?: unknown) => unknown;
397
+ }
398
+ /** Partial snapshot listener observer (next / error only). */
399
+ export interface PartialSnapshotObserverInternal {
400
+ next?: (snapshot: unknown) => void;
401
+ error?: (e: Error) => void;
402
+ }
403
+ /** Converter object with optional toFirestore/fromFirestore (for validation). */
404
+ export interface ConverterWithOptionalMethodsInternal {
405
+ toFirestore?: unknown;
406
+ fromFirestore?: unknown;
407
+ }
408
+ /** Converter with required fromFirestore (for DocumentSnapshot.data() when converter is present). */
409
+ export interface ConverterWithFromFirestoreInternal {
410
+ fromFirestore(snapshot: DocumentSnapshot, options?: SnapshotOptions): unknown;
411
+ }
412
+ /** Value at a field path in a document (primitive, nested object, or array). */
413
+ export type DocumentFieldValueInternal = Primitive | Record<string, unknown> | unknown[];
414
+ export interface DocumentReferenceInternal<AppModelType = DocumentData, DbModelType extends DocumentData = DocumentData> extends ReferenceInternal<AppModelType, DbModelType>, ParentReferenceInternal {
415
+ set(data: WithFieldValue<AppModelType> | PartialWithFieldValue<AppModelType>, options?: SetOptions, deprecationArg?: FirestoreModularDeprecationArg): Promise<void>;
416
+ update(fieldOrUpdateData?: unknown, value?: unknown, ...moreFieldsAndValuesAndDeprecationArg: (unknown | FirestoreModularDeprecationArg)[]): Promise<void>;
417
+ delete(deprecationArg?: FirestoreModularDeprecationArg): Promise<void>;
418
+ get(getOptions?: {
419
+ source?: string;
420
+ }, deprecationArg?: FirestoreModularDeprecationArg): Promise<unknown>;
421
+ }
422
+ export interface CollectionReferenceInternal<AppModelType = DocumentData, DbModelType extends DocumentData = DocumentData> extends ReferenceInternal<AppModelType, DbModelType>, ParentReferenceInternal {
423
+ add(data: WithFieldValue<AppModelType>, deprecationArg?: FirestoreModularDeprecationArg): Promise<DocumentReference<AppModelType, DbModelType>>;
424
+ }
425
+ export interface QueryInternal<AppModelType = DocumentData, DbModelType extends DocumentData = DocumentData> extends ReferenceInternal<AppModelType, DbModelType> {
426
+ get(getOptions?: {
427
+ source?: string;
428
+ }, deprecationArg?: FirestoreModularDeprecationArg): Promise<QuerySnapshot<AppModelType, DbModelType>>;
429
+ count(deprecationArg?: FirestoreModularDeprecationArg): {
430
+ get(): Promise<unknown>;
431
+ };
432
+ where(queryConstraintOrFilter: unknown, deprecationArg?: FirestoreModularDeprecationArg): Query<AppModelType, DbModelType>;
433
+ withConstraints(...queryConstraints: QueryConstraint[]): Query<AppModelType, DbModelType>;
434
+ }
435
+ export interface FirestoreInternal extends ParentReferenceInternal, Firestore {
436
+ /** Wrapped native module (merged Firestore native modules). */
437
+ readonly native: RNFBFirestoreModule;
438
+ /** Shared event emitter for sync events (document, collection, snapshots-in-sync). */
439
+ readonly emitter: FirestoreEmitterInternal;
440
+ /** Builds app- and database-scoped event name. */
441
+ eventNameForApp(...args: Array<string | number>): string;
442
+ /** Module settings (e.g. ignoreUndefinedProperties for serialization). */
443
+ readonly _settings: FirestoreSettingsStateInternal;
444
+ collectionGroup(collectionId: string, deprecationArg?: FirestoreModularDeprecationArg): Query;
445
+ enableNetwork(deprecationArg?: FirestoreModularDeprecationArg): Promise<void>;
446
+ disableNetwork(deprecationArg?: FirestoreModularDeprecationArg): Promise<void>;
447
+ clearPersistence(deprecationArg?: FirestoreModularDeprecationArg): Promise<void>;
448
+ waitForPendingWrites(deprecationArg?: FirestoreModularDeprecationArg): Promise<void>;
449
+ terminate(deprecationArg?: FirestoreModularDeprecationArg): Promise<void>;
450
+ settings(settings: FirestoreSettings, deprecationArg?: FirestoreModularDeprecationArg): Promise<void>;
451
+ useEmulator(host: string, port: number, options?: unknown, deprecationArg?: FirestoreModularDeprecationArg): void;
452
+ runTransaction(updateFunction: (transaction: Transaction) => Promise<unknown>, deprecationArg?: FirestoreModularDeprecationArg): Promise<unknown>;
453
+ loadBundle(bundleData: ReadableStream<Uint8Array> | ArrayBuffer | string, deprecationArg?: FirestoreModularDeprecationArg): LoadBundleTask;
454
+ namedQuery(name: string, deprecationArg?: FirestoreModularDeprecationArg): Query | null;
455
+ batch(deprecationArg?: FirestoreModularDeprecationArg): WriteBatch;
456
+ persistentCacheIndexManager(deprecationArg?: FirestoreModularDeprecationArg): PersistentCacheIndexManager | null;
457
+ }
458
+ /** Firestore instance prototype shape used when installing pipeline() at runtime. */
459
+ export interface FirestorePipelinePrototypeInternal {
460
+ pipeline?: (this: FirestoreInternal) => unknown;
461
+ __rnfbFirestorePipelineInstalled__?: boolean;
462
+ }
463
+ export interface PersistentCacheIndexManagerInternal extends PersistentCacheIndexManager {
464
+ enableIndexAutoCreation(deprecationArg?: FirestoreModularDeprecationArg): Promise<void>;
465
+ disableIndexAutoCreation(deprecationArg?: FirestoreModularDeprecationArg): Promise<void>;
466
+ deleteAllIndexes(deprecationArg?: FirestoreModularDeprecationArg): Promise<void>;
467
+ }
468
+ export type FirestoreBlobInternal = Blob & {
469
+ _binaryString: string;
470
+ };
471
+ export type QueryWithAggregateInternals = Query & {
472
+ _firestore: FirestoreInternal;
473
+ _collectionPath: {
474
+ relativeName: string;
475
+ };
476
+ _modifiers: {
477
+ type: FirestoreQueryTypeInternal;
478
+ filters: FirestoreFilterSpecInternal[];
479
+ orders: FirestoreOrderSpecInternal[];
480
+ options: FirestoreQueryOptionsInternal;
481
+ };
482
+ };
483
+ //# 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,EACV,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,SAAS,EACT,iBAAiB,EACjB,cAAc,EACd,sBAAsB,EACtB,QAAQ,EACR,SAAS,EACT,KAAK,EACL,aAAa,EACb,UAAU,EACV,eAAe,EACf,WAAW,EACX,WAAW,EACX,UAAU,EACV,cAAc,EACd,aAAa,EACb,qBAAqB,EACtB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AAC3F,OAAO,KAAK,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