@react-native-firebase/firestore 23.8.8 → 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 +27 -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,15 @@
1
+ import DocumentReference from './FirestoreDocumentReference';
2
+ import Query from './FirestoreQuery';
3
+ import type FirestorePath from './FirestorePath';
4
+ import type { DocumentData, FirestoreDataConverter } from './types/firestore';
5
+ import type { FirestoreInternal } from './types/internal';
6
+ export default class CollectionReference extends Query {
7
+ constructor(firestore: FirestoreInternal, collectionPath: FirestorePath, converter?: FirestoreDataConverter<DocumentData, DocumentData> | null);
8
+ get id(): string;
9
+ get parent(): DocumentReference | null;
10
+ get path(): string;
11
+ add(data: Record<string, unknown>): Promise<DocumentReference>;
12
+ doc(documentPath?: string): DocumentReference;
13
+ withConverter(converter: unknown): CollectionReference;
14
+ }
15
+ //# sourceMappingURL=FirestoreCollectionReference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirestoreCollectionReference.d.ts","sourceRoot":"","sources":["../../../lib/FirestoreCollectionReference.ts"],"names":[],"mappings":"AAuBA,OAAO,iBAAsD,MAAM,8BAA8B,CAAC;AAClG,OAAO,KAAK,MAAM,kBAAkB,CAAC;AAIrC,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,KAAK;gBAElD,SAAS,EAAE,iBAAiB,EAC5B,cAAc,EAAE,aAAa,EAC7B,SAAS,CAAC,EAAE,sBAAsB,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG,IAAI;IAKvE,IAAI,EAAE,IAAI,MAAM,CAEf;IAED,IAAI,MAAM,IAAI,iBAAiB,GAAG,IAAI,CAMrC;IAED,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAS9D,GAAG,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,iBAAiB;IAa7C,aAAa,CAAC,SAAS,EAAE,OAAO,GAAG,mBAAmB;CAiBvD"}
@@ -0,0 +1,27 @@
1
+ import DocumentSnapshot from './FirestoreDocumentSnapshot';
2
+ import type { FirestoreInternal } from './types/internal';
3
+ import type { DocumentData, FirestoreDataConverter } from './types/firestore';
4
+ export interface DocumentChangeNativeData {
5
+ type: string;
6
+ doc: {
7
+ path: string;
8
+ data?: unknown;
9
+ metadata?: [boolean, boolean];
10
+ exists?: boolean;
11
+ };
12
+ ni: number;
13
+ oi: number;
14
+ isMetadataChange?: boolean;
15
+ }
16
+ export default class DocumentChange {
17
+ _firestore: FirestoreInternal;
18
+ _nativeData: DocumentChangeNativeData;
19
+ _isMetadataChange: boolean;
20
+ _converter: FirestoreDataConverter<DocumentData, DocumentData> | null;
21
+ constructor(firestore: FirestoreInternal, nativeData: DocumentChangeNativeData, converter: FirestoreDataConverter<DocumentData, DocumentData> | null);
22
+ get doc(): DocumentSnapshot;
23
+ get newIndex(): number;
24
+ get oldIndex(): number;
25
+ get type(): 'added' | 'modified' | 'removed';
26
+ }
27
+ //# sourceMappingURL=FirestoreDocumentChange.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirestoreDocumentChange.d.ts","sourceRoot":"","sources":["../../../lib/FirestoreDocumentChange.ts"],"names":[],"mappings":"AAkBA,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAQ9E,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IACvF,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,UAAU,EAAE,iBAAiB,CAAC;IAC9B,WAAW,EAAE,wBAAwB,CAAC;IACtC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,UAAU,EAAE,sBAAsB,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG,IAAI,CAAC;gBAGpE,SAAS,EAAE,iBAAiB,EAC5B,UAAU,EAAE,wBAAwB,EACpC,SAAS,EAAE,sBAAsB,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG,IAAI;IAQtE,IAAI,GAAG,IAAI,gBAAgB,CAI1B;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,IAAI,IAAI,OAAO,GAAG,UAAU,GAAG,SAAS,CAE3C;CACF"}
@@ -0,0 +1,30 @@
1
+ import type FirestoreCollectionReferenceClass from './FirestoreCollectionReference';
2
+ import type DocumentSnapshot from './FirestoreDocumentSnapshot';
3
+ import type { FirestoreInternal } from './types/internal';
4
+ import type { DocumentSnapshotNativeData } from './FirestoreDocumentSnapshot';
5
+ import type FirestorePath from './FirestorePath';
6
+ import type { DocumentData, FirestoreDataConverter } from './types/firestore';
7
+ export declare function provideCollectionReferenceClass(collectionReference: new (firestore: FirestoreInternal, path: FirestorePath, converter?: FirestoreDataConverter<DocumentData, DocumentData> | null) => FirestoreCollectionReferenceClass): void;
8
+ export declare function provideDocumentSnapshotClass(documentSnapshot: new (firestore: FirestoreInternal, data: DocumentSnapshotNativeData, converter: FirestoreDataConverter<DocumentData, DocumentData> | null) => DocumentSnapshot): void;
9
+ export default class DocumentReference {
10
+ _firestore: FirestoreInternal;
11
+ _documentPath: FirestorePath;
12
+ _converter: FirestoreDataConverter<DocumentData, DocumentData> | null;
13
+ constructor(firestore: FirestoreInternal, documentPath: FirestorePath, converter?: unknown);
14
+ get firestore(): FirestoreInternal;
15
+ get converter(): unknown;
16
+ get id(): string;
17
+ get parent(): FirestoreCollectionReferenceClass;
18
+ get path(): string;
19
+ collection(collectionPath: string): FirestoreCollectionReferenceClass;
20
+ delete(): Promise<void>;
21
+ get(options?: {
22
+ source?: 'default' | 'server' | 'cache';
23
+ }): Promise<DocumentSnapshot>;
24
+ isEqual(other: DocumentReference): boolean;
25
+ onSnapshot(...args: unknown[]): () => void;
26
+ set(data: unknown, options?: unknown): Promise<void>;
27
+ update(...args: unknown[]): Promise<void>;
28
+ withConverter(converter: FirestoreDataConverter<DocumentData, DocumentData> | null): DocumentReference;
29
+ }
30
+ //# sourceMappingURL=FirestoreDocumentReference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirestoreDocumentReference.d.ts","sourceRoot":"","sources":["../../../lib/FirestoreDocumentReference.ts"],"names":[],"mappings":"AAmCA,OAAO,KAAK,iCAAiC,MAAM,gCAAgC,CAAC;AACpF,OAAO,KAAK,gBAAgB,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAkC,MAAM,kBAAkB,CAAC;AAC1F,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,KAAK,aAAa,MAAM,iBAAiB,CA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G,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,IAAI;IAsD1C,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IA4BpD,MAAM,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAqBzC,aAAa,CACX,SAAS,EAAE,sBAAsB,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG,IAAI,GACnE,iBAAiB;CAarB"}
@@ -0,0 +1,30 @@
1
+ import DocumentReference from './FirestoreDocumentReference';
2
+ import FieldPath from './FieldPath';
3
+ import SnapshotMetadata from './FirestoreSnapshotMetadata';
4
+ import type { SnapshotOptions } from './types/firestore';
5
+ import type { FirestoreInternal, DocumentFieldValueInternal } from './types/internal';
6
+ import type { DocumentData, FirestoreDataConverter } from './types/firestore';
7
+ export interface DocumentSnapshotNativeData {
8
+ path: string;
9
+ data?: unknown;
10
+ metadata?: [boolean, boolean];
11
+ exists?: boolean;
12
+ }
13
+ export default class DocumentSnapshot {
14
+ _firestore: FirestoreInternal;
15
+ _nativeData: DocumentSnapshotNativeData;
16
+ _data: Record<string, unknown> | undefined;
17
+ _metadata: SnapshotMetadata;
18
+ _ref: DocumentReference;
19
+ _exists: boolean;
20
+ _converter: FirestoreDataConverter<DocumentData, DocumentData> | null;
21
+ constructor(firestore: FirestoreInternal, nativeData: DocumentSnapshotNativeData, converter: FirestoreDataConverter<DocumentData, DocumentData> | null);
22
+ get id(): string;
23
+ get metadata(): SnapshotMetadata;
24
+ get ref(): DocumentReference;
25
+ exists(): boolean;
26
+ data(options?: SnapshotOptions): DocumentData | undefined;
27
+ get(fieldPath: string | FieldPath, _options?: SnapshotOptions): DocumentFieldValueInternal;
28
+ isEqual(other: DocumentSnapshot): boolean;
29
+ }
30
+ //# sourceMappingURL=FirestoreDocumentSnapshot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirestoreDocument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,CAAC,EAAE,eAAe,GAAG,YAAY,GAAG,SAAS;IAoBzD,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,CAAC,EAAE,eAAe,GAAG,0BAA0B;IAwB1F,OAAO,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO;CAoB1C"}
@@ -0,0 +1,52 @@
1
+ import { OPERATORS } from './FirestoreQueryModifiers';
2
+ import type FieldPath from './FieldPath';
3
+ import type { Primitive } from './types/firestore';
4
+ declare const AND_QUERY = "AND";
5
+ declare const OR_QUERY = "OR";
6
+ type FilterOperator = typeof AND_QUERY | typeof OR_QUERY;
7
+ type FieldFilterOperator = keyof typeof OPERATORS;
8
+ /** Value allowed in a filter (primitive, object, or array for in/array-contains-any). */
9
+ type FilterValue = Primitive | Record<string, unknown> | unknown[];
10
+ export declare function Filter(fieldPath: string | FieldPath, operator: FieldFilterOperator, value: FilterValue | unknown): _Filter;
11
+ export declare namespace Filter {
12
+ var and: (...queries: _Filter[]) => _Filter;
13
+ var or: (...queries: _Filter[]) => _Filter;
14
+ }
15
+ export declare class _Filter {
16
+ fieldPath?: string | FieldPath;
17
+ operator: FieldFilterOperator | FilterOperator;
18
+ value?: FilterValue;
19
+ queries?: _Filter[];
20
+ constructor(fieldPath: string | FieldPath | null, operator: FieldFilterOperator | FilterOperator | null, value: FilterValue | null, filterOperator?: FilterOperator, queries?: _Filter[]);
21
+ _toMap(): FilterMap;
22
+ }
23
+ /** Serialized field filter or composite (AND/OR) for generateFilters output. */
24
+ interface SerializedFieldFilter {
25
+ fieldPath: FieldPath | string[];
26
+ operator: string;
27
+ value: [number, unknown?] | null;
28
+ }
29
+ interface SerializedCompositeFilter {
30
+ operator: FilterOperator;
31
+ queries: SerializedFilterSpec[];
32
+ }
33
+ type SerializedFilterSpec = SerializedFieldFilter | SerializedCompositeFilter;
34
+ interface FilterMap {
35
+ fieldPath?: string | FieldPath;
36
+ operator: FieldFilterOperator | FilterOperator;
37
+ value?: FilterValue;
38
+ queries?: FilterMap[];
39
+ }
40
+ /** Modifiers object passed to generateFilters (e.g. QueryModifiers). */
41
+ export interface FilterModifiersInternal {
42
+ isValidOperator(operator: string): boolean;
43
+ isEqualOperator(operator: string): boolean;
44
+ isNotEqualOperator(operator: string): boolean;
45
+ isInOperator(operator: string): boolean;
46
+ }
47
+ export declare function generateFilters(filter: _Filter, modifiers: FilterModifiersInternal): {
48
+ operator: string;
49
+ queries: SerializedFilterSpec[];
50
+ };
51
+ export {};
52
+ //# sourceMappingURL=FirestoreFilter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirestoreFilter.d.ts","sourceRoot":"","sources":["../../../lib/FirestoreFilter.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,QAAA,MAAM,SAAS,QAAQ,CAAC;AACxB,QAAA,MAAM,QAAQ,OAAO,CAAC;AAEtB,KAAK,cAAc,GAAG,OAAO,SAAS,GAAG,OAAO,QAAQ,CAAC;AACzD,KAAK,mBAAmB,GAAG,MAAM,OAAO,SAAS,CAAC;AAElD,yFAAyF;AACzF,KAAK,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,EAAE,CAAC;AAEnE,wBAAgB,MAAM,CACpB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,QAAQ,EAAE,mBAAmB,EAC7B,KAAK,EAAE,WAAW,GAAG,OAAO,GAC3B,OAAO,CAET;yBANe,MAAM;0BAiDgB,OAAO,EAAE,KAAG,OAAO;yBAgCrB,OAAO,EAAE,KAAG,OAAO;;AAzEvD,qBAAa,OAAO;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,EAAE,mBAAmB,GAAG,cAAc,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AAE,MAAM,CAAC;IAAC,OAAO,EAAE,oBAAoB,EAAE,CAAA;CAAE,CAOvD"}
@@ -0,0 +1,22 @@
1
+ export default class GeoPoint {
2
+ _latitude: number;
3
+ _longitude: number;
4
+ constructor(latitude: number, longitude: number);
5
+ get latitude(): number;
6
+ get longitude(): number;
7
+ isEqual(other: GeoPoint): boolean;
8
+ _compareTo(other: GeoPoint): number;
9
+ static _jsonSchemaVersion: string;
10
+ static _jsonSchema: {
11
+ type: string;
12
+ latitude: string;
13
+ longitude: string;
14
+ };
15
+ toJSON(): {
16
+ latitude: number;
17
+ longitude: number;
18
+ type: string;
19
+ };
20
+ static fromJSON(json: object): GeoPoint;
21
+ }
22
+ //# sourceMappingURL=FirestoreGeoPoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirestoreGeoPoint.d.ts","sourceRoot":"","sources":["../../../lib/FirestoreGeoPoint.ts"],"names":[],"mappings":"AAwBA,MAAM,CAAC,OAAO,OAAO,QAAQ;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;gBAEP,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IA+B/C,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,OAAO,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO;IAUjC,UAAU,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM;IAQnC,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAA4B;IAC7D,MAAM,CAAC,WAAW;;;;MAIhB;IAEF,MAAM,IAAI;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;IAQ/D,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ;CAexC"}
@@ -0,0 +1,12 @@
1
+ export default class FirestorePath {
2
+ static fromName(name: string): FirestorePath;
3
+ _parts: string[];
4
+ constructor(pathComponents?: string[]);
5
+ get id(): string;
6
+ get isDocument(): boolean;
7
+ get isCollection(): boolean;
8
+ get relativeName(): string;
9
+ child(relativePath: string): FirestorePath;
10
+ parent(): FirestorePath | null;
11
+ }
12
+ //# sourceMappingURL=FirestorePath.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirestorePath.d.ts","sourceRoot":"","sources":["../../../lib/FirestorePath.ts"],"names":[],"mappings":"AAiBA,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa;IAI5C,MAAM,EAAE,MAAM,EAAE,CAAC;gBAEL,cAAc,GAAE,MAAM,EAAO;IAIzC,IAAI,EAAE,IAAI,MAAM,CAEf;IAED,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,IAAI,YAAY,IAAI,OAAO,CAE1B;IAED,IAAI,YAAY,IAAI,MAAM,CAEzB;IAED,KAAK,CAAC,YAAY,EAAE,MAAM,GAAG,aAAa;IAI1C,MAAM,IAAI,aAAa,GAAG,IAAI;CAK/B"}
@@ -0,0 +1,16 @@
1
+ import type { FirestoreInternal } from './types/internal';
2
+ /**
3
+ * A `PersistentCacheIndexManager` for configuring persistent cache indexes used
4
+ * for local query execution.
5
+ *
6
+ * To use, call `getPersistentCacheIndexManager()` to get an instance.
7
+ */
8
+ export declare class PersistentCacheIndexManager {
9
+ _firestore: FirestoreInternal;
10
+ constructor(firestore: FirestoreInternal);
11
+ enableIndexAutoCreation(): Promise<void>;
12
+ disableIndexAutoCreation(): Promise<void>;
13
+ deleteAllIndexes(): Promise<void>;
14
+ }
15
+ export default PersistentCacheIndexManager;
16
+ //# sourceMappingURL=FirestorePersistentCacheIndexManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirestorePersistentCacheIndexManager.d.ts","sourceRoot":"","sources":["../../../lib/FirestorePersistentCacheIndexManager.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D;;;;;GAKG;AACH,qBAAa,2BAA2B;IACtC,UAAU,EAAE,iBAAiB,CAAC;gBAElB,SAAS,EAAE,iBAAiB;IAIlC,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxC,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC;IAIzC,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;CAGxC;AAED,eAAe,2BAA2B,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { createDeprecationProxy } from '@react-native-firebase/app/dist/module/common';
2
+ import DocumentSnapshot from './FirestoreDocumentSnapshot';
3
+ import FieldPath from './FieldPath';
4
+ import { _Filter } from './FirestoreFilter';
5
+ import QueryModifiers from './FirestoreQueryModifiers';
6
+ import QuerySnapshot from './FirestoreQuerySnapshot';
7
+ import type FirestorePath from './FirestorePath';
8
+ import type { DocumentData, FirestoreDataConverter } from './types/firestore';
9
+ import type { FirestoreInternal, DocumentFieldValueInternal } from './types/internal';
10
+ export default class Query {
11
+ _firestore: FirestoreInternal;
12
+ _collectionPath: FirestorePath;
13
+ _modifiers: QueryModifiers;
14
+ _queryName: string | undefined;
15
+ _converter: FirestoreDataConverter<DocumentData, DocumentData> | null;
16
+ /** Satisfies Query<DocumentData, DocumentData> for AggregateQuerySnapshot and similar. */
17
+ readonly type: "query";
18
+ constructor(firestore: FirestoreInternal, collectionPath: FirestorePath, modifiers: QueryModifiers, queryName?: string, converter?: FirestoreDataConverter<DocumentData, DocumentData> | null);
19
+ get firestore(): FirestoreInternal;
20
+ get converter(): FirestoreDataConverter<DocumentData, DocumentData> | null;
21
+ _handleQueryCursor(cursor: 'startAt' | 'startAfter' | 'endAt' | 'endBefore', docOrField: DocumentSnapshot | DocumentFieldValueInternal, fields: DocumentFieldValueInternal[]): QueryModifiers;
22
+ count(): ReturnType<typeof createDeprecationProxy>;
23
+ countFromServer(): ReturnType<Query['count']>;
24
+ endAt(docOrField: DocumentSnapshot | DocumentFieldValueInternal, ...fields: DocumentFieldValueInternal[]): ReturnType<typeof createDeprecationProxy>;
25
+ endBefore(docOrField: DocumentSnapshot | DocumentFieldValueInternal, ...fields: DocumentFieldValueInternal[]): ReturnType<typeof createDeprecationProxy>;
26
+ get(options?: {
27
+ source?: 'default' | 'server' | 'cache';
28
+ }): Promise<QuerySnapshot>;
29
+ isEqual(other: Query): boolean;
30
+ limit(limit: number): ReturnType<typeof createDeprecationProxy>;
31
+ limitToLast(limitToLast: number): ReturnType<typeof createDeprecationProxy>;
32
+ onSnapshot(...args: unknown[]): () => void;
33
+ orderBy(fieldPath: string | FieldPath, directionStr?: string): ReturnType<typeof createDeprecationProxy>;
34
+ startAfter(docOrField: DocumentSnapshot | DocumentFieldValueInternal, ...fields: DocumentFieldValueInternal[]): ReturnType<typeof createDeprecationProxy>;
35
+ startAt(docOrField: DocumentSnapshot | DocumentFieldValueInternal, ...fields: DocumentFieldValueInternal[]): ReturnType<typeof createDeprecationProxy>;
36
+ where(fieldPathOrFilter: string | FieldPath | _Filter, opStr?: string, value?: DocumentFieldValueInternal): ReturnType<typeof createDeprecationProxy>;
37
+ withConverter(converter: FirestoreDataConverter<DocumentData, DocumentData> | null | unknown): Query;
38
+ }
39
+ //# sourceMappingURL=FirestoreQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirestoreQuery.d.ts","sourceRoot":"","sources":["../../../lib/FirestoreQuery.ts"],"names":[],"mappings":"AAiBA,OAAO,EACL,sBAAsB,EAOvB,MAAM,+CAA+C,CAAC;AAGvD,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAC3D,OAAO,SAAqC,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,OAAO,EAAmB,MAAM,mBAAmB,CAAC;AAC7D,OAAO,cAAc,MAAM,2BAA2B,CAAC;AACvD,OAAO,aAA+C,MAAM,0BAA0B,CAAC;AAGvF,OAAO,KAAK,aAAa,MAAM,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oreFilterSpecInternal, FirestoreOrderSpecInternal, FirestoreQueryOptionsInternal } from './types/internal';
3
+ export declare const OPERATORS: Record<string, string>;
4
+ export interface FilterDef {
5
+ fieldPath?: FieldPath | string[];
6
+ operator: string;
7
+ value?: DocumentFieldValueInternal;
8
+ queries?: FilterDef[];
9
+ }
10
+ export interface OrderDef {
11
+ fieldPath: FieldPath;
12
+ direction: string;
13
+ }
14
+ export default class QueryModifiers {
15
+ _limit: number | undefined;
16
+ _limitToLast: number | undefined;
17
+ _filters: FilterDef[];
18
+ _orders: OrderDef[];
19
+ _type: 'collection' | 'collectionGroup';
20
+ _startAt: FirestoreCursorFieldsInternal | undefined;
21
+ _startAfter: FirestoreCursorFieldsInternal | undefined;
22
+ _endAt: FirestoreCursorFieldsInternal | undefined;
23
+ _endBefore: FirestoreCursorFieldsInternal | undefined;
24
+ hasInequality: false | FilterDef;
25
+ hasNotEqual: boolean;
26
+ hasArrayContains: boolean;
27
+ hasArrayContainsAny: boolean;
28
+ hasIn: boolean;
29
+ hasNotIn: boolean;
30
+ constructor();
31
+ _copy(): QueryModifiers;
32
+ get filters(): FirestoreFilterSpecInternal[];
33
+ get orders(): FirestoreOrderSpecInternal[];
34
+ get options(): FirestoreQueryOptionsInternal;
35
+ get type(): string;
36
+ setFieldsCursor(cursor: 'startAt' | 'startAfter' | 'endAt' | 'endBefore', fields: FirestoreCursorFieldsInternal): this;
37
+ hasStart(): boolean;
38
+ hasEnd(): boolean;
39
+ asCollectionGroupQuery(): this;
40
+ isCollectionGroupQuery(): boolean;
41
+ isValidLimit(limit: unknown): boolean;
42
+ limit(limit: number): this;
43
+ isValidLimitToLast(limit: unknown): boolean;
44
+ validatelimitToLast(): void;
45
+ limitToLast(limitToLast: number): this;
46
+ isValidOperator(operator: string): boolean;
47
+ isEqualOperator(operator: string): boolean;
48
+ isNotEqualOperator(operator: string): boolean;
49
+ isInOperator(operator: string): boolean;
50
+ where(fieldPath: FieldPath, opStr: string, value: DocumentFieldValueInternal): this;
51
+ filterWhere(filter: FilterDef): this;
52
+ validateWhere(): void;
53
+ _filterCheck(filters: FilterDef[]): void;
54
+ isValidDirection(directionStr: string): boolean;
55
+ orderBy(fieldPath: FieldPath, directionStr?: string): this;
56
+ validateOrderBy(): void;
57
+ _validateOrderByCheck(filters: FilterDef[]): void;
58
+ }
59
+ //# sourceMappingURL=FirestoreQueryModifiers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirestoreQueryModifiers.d.ts","sourceRoot":"","sources":["../../../lib/FirestoreQueryModifiers.ts"],"names":[],"mappings":"AAkBA,OAAO,SAA0B,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EACV,0BAA0B,EAC1B,6BAA6B,EAC7B,2BAA2B,EAC3B,0BAA0B,EAC1B,6BAA6B,EAC9B,MAAM,kBAAkB,CAAC;AAG1B,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAW5C,CAAC;AAeF,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,SAAS,GAAG,MAAM,EAAE,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,0BAA0B,CAAC;IACnC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,QAAQ;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,QAAQ,EAAE,SAAS,EAAE,CAAC;IACtB,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,KAAK,EAAE,YAAY,GAAG,iBAAiB,CAAC;IACxC,QAAQ,EAAE,6BAA6B,GAAG,SAAS,CAAC;IACpD,WAAW,EAAE,6BAA6B,GAAG,SAAS,CAAC;IACvD,MAAM,EAAE,6BAA6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AAE,SAAS,GAAG,IAAI;IAKpC,aAAa,IAAI,IAAI;IAMrB,YAAY,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI;IAsFxC,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO;IAI/C,OAAO,CAAC,SAAS,EAAE,SAAS,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI;IAW1D,eAAe,IAAI,IAAI;IAIvB,qBAAqB,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI;CA6ClD"}
@@ -0,0 +1,49 @@
1
+ import DocumentChange from './FirestoreDocumentChange';
2
+ import DocumentSnapshot from './FirestoreDocumentSnapshot';
3
+ import SnapshotMetadata from './FirestoreSnapshotMetadata';
4
+ import type Query from './FirestoreQuery';
5
+ import type { DocumentData, FirestoreDataConverter } from './types/firestore';
6
+ import type { FirestoreInternal } from './types/internal';
7
+ export interface QuerySnapshotNativeData {
8
+ source?: string;
9
+ excludesMetadataChanges?: boolean;
10
+ changes: Array<{
11
+ type: string;
12
+ doc: {
13
+ path: string;
14
+ data?: unknown;
15
+ metadata?: [boolean, boolean];
16
+ exists?: boolean;
17
+ };
18
+ ni: number;
19
+ oi: number;
20
+ isMetadataChange?: boolean;
21
+ }>;
22
+ documents: Array<{
23
+ path: string;
24
+ data?: unknown;
25
+ metadata?: [boolean, boolean];
26
+ exists?: boolean;
27
+ }>;
28
+ metadata: [boolean, boolean];
29
+ }
30
+ export default class QuerySnapshot {
31
+ _query: Query;
32
+ _source: string | undefined;
33
+ _excludesMetadataChanges: boolean | undefined;
34
+ _changes: DocumentChange[];
35
+ _docs: DocumentSnapshot[];
36
+ _metadata: SnapshotMetadata;
37
+ constructor(firestore: FirestoreInternal, query: Query, nativeData: QuerySnapshotNativeData, converter: FirestoreDataConverter<DocumentData, DocumentData> | null);
38
+ get docs(): DocumentSnapshot[];
39
+ get empty(): boolean;
40
+ get metadata(): SnapshotMetadata;
41
+ get query(): Query;
42
+ get size(): number;
43
+ docChanges(options?: {
44
+ includeMetadataChanges?: boolean;
45
+ }): DocumentChange[];
46
+ forEach(callback: (doc: DocumentSnapshot, index: number) => void, thisArg?: unknown): void;
47
+ isEqual(other: QuerySnapshot, ...args: unknown[]): boolean;
48
+ }
49
+ //# sourceMappingURL=FirestoreQuerySnapshot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirestoreQuerySnapshot.d.ts","sourceRoot":"","sources":["../../../lib/FirestoreQuerySnapshot.ts"],"names":[],"mappings":"AAwBA,OAAO,cAAc,MAAM,2BAA2B,CAAC;AACvD,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAC3D,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAE3D,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,OAAO,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,OAAO,CAAC;YAAC,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAAC,MAAM,CAAC,EAAE,OAAO,CAAA;SAAE,CAAC;QACvF,EAAE,EAAE,MAAM,CAAC;QACX,EAAE,EAAE,MAAM,CAAC;QACX,gBAAgB,CAAC,EAAE,OAAO,CAAC;KAC5B,CAAC,CAAC;IACH,SAAS,EAAE,KAAK,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB,CAAC,CAAC;IACH,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;CAC9B;AAED,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,MAAM,EAAE,KAAK,CAAC;IACd,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,wBAAwB,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9C,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,SAAS,EAAE,gBAAgB,CAAC;gBAG1B,SAAS,EAAE,iBAAiB,EAC5B,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,uBAAuB,EACnC,SAAS,EAAE,sBAAsB,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG,IAAI;IActE,IAAI,IAAI,IAAI,gBAAgB,EAAE,CAE7B;IAED,IAAI,KAAK,IAAI,OAAO,CAEnB;IAED,IAAI,QAAQ,IAAI,gBAAgB,CAE/B;IAED,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,UAAU,CAAC,OAAO,CAAC,EAAE;QAAE,sBAAsB,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,cAAc,EAAE;IAqC5E,OAAO,CAAC,QAAQ,EAAE,CAAC,GAAG,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI;IAc1F,OAAO,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO;CA0B3D"}
@@ -0,0 +1,8 @@
1
+ export default class SnapshotMetadata {
2
+ _metadata: [boolean, boolean];
3
+ constructor(metadata: [boolean, boolean]);
4
+ get fromCache(): boolean;
5
+ get hasPendingWrites(): boolean;
6
+ isEqual(other: SnapshotMetadata): boolean;
7
+ }
8
+ //# sourceMappingURL=FirestoreSnapshotMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirestoreSnapshotMetadata.d.ts","sourceRoot":"","sources":["../../../lib/FirestoreSnapshotMetadata.ts"],"names":[],"mappings":"AAmBA,MAAM,CAAC,OAAO,OAAO,gBAAgB;IACnC,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;gBAElB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;IAIxC,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,gBAAgB,IAAI,OAAO,CAE9B;IAED,OAAO,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO;CAS1C"}
@@ -0,0 +1,23 @@
1
+ import Blob from './FirestoreBlob';
2
+ import FieldPath from './FieldPath';
3
+ import FieldValue from './FieldValue';
4
+ import { Filter } from './FirestoreFilter';
5
+ import FirestoreGeoPoint from './FirestoreGeoPoint';
6
+ import FirestoreTimestamp from './FirestoreTimestamp';
7
+ import FirestoreVectorValue from './FirestoreVectorValue';
8
+ import type { LogLevel } from './types/firestore';
9
+ type FirestoreLogLevel = LogLevel;
10
+ declare const FirestoreStatics: {
11
+ Blob: typeof Blob;
12
+ FieldPath: typeof FieldPath;
13
+ FieldValue: typeof FieldValue;
14
+ GeoPoint: typeof FirestoreGeoPoint;
15
+ Timestamp: typeof FirestoreTimestamp;
16
+ Filter: typeof Filter;
17
+ VectorValue: typeof FirestoreVectorValue;
18
+ vector(values?: number[]): FirestoreVectorValue;
19
+ CACHE_SIZE_UNLIMITED: number;
20
+ setLogLevel(logLevel: FirestoreLogLevel): void;
21
+ };
22
+ export default FirestoreStatics;
23
+ //# sourceMappingURL=FirestoreStatics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirestoreStatics.d.ts","sourceRoot":"","sources":["../../../lib/FirestoreStatics.ts"],"names":[],"mappings":"AAmBA,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,KAAK,iBAAiB,GAAG,QAAQ,CAAC;AAElC,QAAA,MAAM,gBAAgB;;;;;;;;oBAQJ,MAAM,EAAE,GAAG,oBAAoB;;0BAMzB,iBAAiB,GAAG,IAAI;CAU/C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,33 @@
1
+ export default class Timestamp {
2
+ static now(): Timestamp;
3
+ static fromDate(date: Date): Timestamp;
4
+ static fromMillis(milliseconds: number): Timestamp;
5
+ _seconds: number;
6
+ _nanoseconds: number;
7
+ constructor(seconds: number, nanoseconds: number);
8
+ get seconds(): number;
9
+ get nanoseconds(): number;
10
+ isEqual(other: Timestamp): boolean;
11
+ toDate(): Date;
12
+ toMillis(): number;
13
+ _compareTo(other: Timestamp): number;
14
+ toString(): string;
15
+ static _jsonSchemaVersion: string;
16
+ static _jsonSchema: {
17
+ type: string;
18
+ seconds: string;
19
+ nanoseconds: string;
20
+ };
21
+ toJSON(): {
22
+ seconds: number;
23
+ nanoseconds: number;
24
+ type: string;
25
+ };
26
+ static fromJSON(json: object): Timestamp;
27
+ /**
28
+ * Converts this object to a primitive string, which allows Timestamp objects to be compared
29
+ * using the `>`, `<=`, `>=` and `>` operators.
30
+ */
31
+ valueOf(): string;
32
+ }
33
+ //# sourceMappingURL=FirestoreTimestamp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirestoreTimestamp.d.ts","sourceRoot":"","sources":["../../../lib/FirestoreTimestamp.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAC,OAAO,OAAO,SAAS;IAC5B,MAAM,CAAC,GAAG,IAAI,SAAS;IAIvB,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS;IAUtC,MAAM,CAAC,UAAU,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS;IAMlD,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;gBAET,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IA6BhD,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,IAAI,WAAW,IAAI,MAAM,CAExB;IAED,OAAO,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO;IAUlC,MAAM,IAAI,IAAI;IAId,QAAQ,IAAI,MAAM;IAIlB,UAAU,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM;IASpC,QAAQ,IAAI,MAAM;IAIlB,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAA6B;IAC9D,MAAM,CAAC,WAAW;;;;MAIhB;IAEF,MAAM,IAAI;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;IAQhE,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS;IAexC;;;OAGG;IACH,OAAO,IAAI,MAAM;CAYlB"}
@@ -0,0 +1,42 @@
1
+ import DocumentReference from './FirestoreDocumentReference';
2
+ import DocumentSnapshot from './FirestoreDocumentSnapshot';
3
+ import type { FirestoreInternal } from './types/internal';
4
+ import type { SetOptions } from './types/firestore';
5
+ export interface TransactionMeta {
6
+ id: number;
7
+ /** Receives the Transaction instance (this module's default export). */
8
+ updateFunction: (transaction: Transaction) => Promise<unknown>;
9
+ stack?: string;
10
+ resolve?: (result: unknown) => void;
11
+ reject?: (error: unknown) => void;
12
+ }
13
+ export interface TransactionCommand {
14
+ type: 'SET' | 'UPDATE' | 'DELETE';
15
+ path: string;
16
+ data?: Record<string, unknown>;
17
+ options?: Record<string, unknown>;
18
+ }
19
+ export default class Transaction {
20
+ _firestore: FirestoreInternal;
21
+ _meta: TransactionMeta;
22
+ _calledGetCount: number;
23
+ _commandBuffer: TransactionCommand[];
24
+ _pendingResult: unknown;
25
+ constructor(firestore: FirestoreInternal, meta: TransactionMeta);
26
+ /**
27
+ * Clears the command buffer and any pending result in prep for
28
+ * the next transaction iteration attempt.
29
+ */
30
+ _prepare(): void;
31
+ /**
32
+ * Reads the document referenced by the provided DocumentReference.
33
+ */
34
+ get(documentRef: DocumentReference): Promise<DocumentSnapshot>;
35
+ /**
36
+ * Writes to the document referred to by the provided DocumentReference.
37
+ */
38
+ set(documentRef: DocumentReference, data: Record<string, unknown>, options?: SetOptions): this;
39
+ update(documentRef: DocumentReference, ...args: unknown[]): this;
40
+ delete(documentRef: DocumentReference): this;
41
+ }
42
+ //# sourceMappingURL=FirestoreTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirestoreTransaction.d.ts","sourceRoot":"","sources":["../../../lib/FirestoreTransaction.ts"],"names":[],"mappings":"AAkBA,OAAO,iBAAiB,MAAM,8BAA8B,CAAC;AAC7D,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAI3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,wEAAwE;IACxE,cAAc,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACnC;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,OAAO,WAAW;IAC9B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,KAAK,EAAE,eAAe,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,kBAAkB,EAAE,CAAC;IACrC,cAAc,EAAE,OAAO,CAAC;gBAEZ,SAAS,EAAE,iBAAiB,EAAE,IAAI,EAAE,eAAe;IAQ/D;;;OAGG;IACH,QAAQ,IAAI,IAAI;IAMhB;;OAEG;IACH,GAAG,CAAC,WAAW,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAiB9D;;OAEG;IACH,GAAG,CAAC,WAAW,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI;IAyC9F,MAAM,CAAC,WAAW,EAAE,iBAAiB,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAyBhE,MAAM,CAAC,WAAW,EAAE,iBAAiB,GAAG,IAAI;CAc7C"}
@@ -0,0 +1,26 @@
1
+ import Transaction, { type TransactionMeta } from './FirestoreTransaction';
2
+ import type { FirestoreInternal } from './types/internal';
3
+ export interface TransactionPendingEntry {
4
+ meta: TransactionMeta;
5
+ transaction: Transaction;
6
+ }
7
+ export interface TransactionEventBody {
8
+ type?: 'update' | 'error' | 'complete';
9
+ error?: unknown;
10
+ }
11
+ export interface TransactionEvent {
12
+ body: TransactionEventBody;
13
+ listenerId?: number;
14
+ }
15
+ export default class FirestoreTransactionHandler {
16
+ _firestore: FirestoreInternal;
17
+ _pending: Record<number, TransactionPendingEntry>;
18
+ constructor(firestore: FirestoreInternal);
19
+ _onTransactionEvent(event: TransactionEvent): void;
20
+ _handleUpdate(event: TransactionEvent): Promise<void>;
21
+ _handleError(event: TransactionEvent): void;
22
+ _handleComplete(event: TransactionEvent): void;
23
+ _add(updateFunction: (transaction: Transaction) => Promise<unknown>): Promise<unknown>;
24
+ _remove(id: number): void;
25
+ }
26
+ //# sourceMappingURL=FirestoreTransactionHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirestoreTransactionHandler.d.ts","sourceRoot":"","sources":["../../../lib/FirestoreTransactionHandler.ts"],"names":[],"mappings":"AAkBA,OAAO,WAAW,EAAE,EAAE,KAAK,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAM1D,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,eAAe,CAAC;IACtB,WAAW,EAAE,WAAW,CAAC;CAC1B;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;IACvC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,oBAAoB,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,OAAO,2BAA2B;IAC9C,UAAU,EAAE,iBAAiB,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;gBAEtC,SAAS,EAAE,iBAAiB;IASxC,mBAAmB,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAc5C,aAAa,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IA4C3D,YAAY,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAgB3C,eAAe,CAAC,KAAK,EAAE,gBAAgB,GAAG,IAAI;IAa9C,IAAI,CAAC,cAAc,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;IA6BtF,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;CAI1B"}
@@ -0,0 +1,17 @@
1
+ export default class VectorValue {
2
+ _values: number[];
3
+ constructor(values?: number[]);
4
+ static _jsonSchemaVersion: string;
5
+ static _jsonSchema: {
6
+ type: string;
7
+ vectorValues: string;
8
+ };
9
+ static fromJSON(json: object): VectorValue;
10
+ isEqual(other: VectorValue): boolean;
11
+ toArray(): number[];
12
+ toJSON(): {
13
+ vectorValues: number[];
14
+ type: string;
15
+ };
16
+ }
17
+ //# sourceMappingURL=FirestoreVectorValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirestoreVectorValue.d.ts","sourceRoot":"","sources":["../../../lib/FirestoreVectorValue.ts"],"names":[],"mappings":"AAqBA,MAAM,CAAC,OAAO,OAAO,WAAW;IAC9B,OAAO,EAAE,MAAM,EAAE,CAAC;gBAEN,MAAM,CAAC,EAAE,MAAM,EAAE;IAwB7B,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAA+B;IAChE,MAAM,CAAC,WAAW;;;MAGhB;IAEF,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW;IAkB1C,OAAO,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO;IAgBpC,OAAO,IAAI,MAAM,EAAE;IAInB,MAAM,IAAI;QAAE,YAAY,EAAE,MAAM,EAAE,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;CAGnD"}
@@ -0,0 +1,21 @@
1
+ import DocumentReference from './FirestoreDocumentReference';
2
+ import type { FirestoreInternal } from './types/internal';
3
+ import type { SetOptions } from './types/firestore';
4
+ export interface BatchWrite {
5
+ path: string;
6
+ type: 'DELETE' | 'SET' | 'UPDATE';
7
+ data?: Record<string, unknown>;
8
+ options?: Record<string, unknown>;
9
+ }
10
+ export default class WriteBatch {
11
+ _firestore: FirestoreInternal;
12
+ _writes: BatchWrite[];
13
+ _committed: boolean;
14
+ constructor(firestore: FirestoreInternal);
15
+ _verifyNotCommitted(method: string): void;
16
+ commit(): Promise<void>;
17
+ delete(documentRef: DocumentReference): this;
18
+ set(documentRef: DocumentReference, data: Record<string, unknown>, options?: SetOptions): this;
19
+ update(documentRef: DocumentReference, ...args: unknown[]): this;
20
+ }
21
+ //# sourceMappingURL=FirestoreWriteBatch.d.ts.map