@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,294 @@
1
+ "use strict";
2
+
3
+ /*
4
+ * Copyright (c) 2016-present Invertase Limited & Contributors
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this library except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ */
19
+
20
+ import * as firebaseFirestorePipelines from '@react-native-firebase/app/dist/module/internal/web/firebaseFirestorePipelines';
21
+ const WEB_PIPELINE_HELPER_ALIASES = {
22
+ lower: 'toLower',
23
+ upper: 'toUpper'
24
+ };
25
+ function isRecord(value) {
26
+ return value !== null && typeof value === 'object' && !Array.isArray(value);
27
+ }
28
+ function getPipelineHelper(name) {
29
+ const helperModule = firebaseFirestorePipelines;
30
+ const helper = helperModule[name] ?? helperModule[WEB_PIPELINE_HELPER_ALIASES[name] ?? ''];
31
+ if (typeof helper !== 'function') {
32
+ throw new Error(`pipelineExecute() cannot rebuild "${name}" because the web helper is missing.`);
33
+ }
34
+ return helper;
35
+ }
36
+ function isExpressionNode(value) {
37
+ return value.__kind === 'expression' || value.exprType === 'Field' || value.exprType === 'Constant' || value.exprType === 'Function';
38
+ }
39
+ function isFlatAliasedFieldNode(value) {
40
+ const alias = value.alias ?? value.as;
41
+ return typeof value.path === 'string' && value.path.length > 0 && typeof alias === 'string' && alias.length > 0;
42
+ }
43
+ function isAliasedExpressionNode(value) {
44
+ const alias = value.alias ?? value.as;
45
+ return typeof alias === 'string' && alias.length > 0 && Object.prototype.hasOwnProperty.call(value, 'expr');
46
+ }
47
+ function isAliasedAggregateNode(value) {
48
+ return typeof value.alias === 'string' && value.alias.length > 0 && Object.prototype.hasOwnProperty.call(value, 'aggregate');
49
+ }
50
+ function rebuildFlatAliasedField(value) {
51
+ const alias = value.alias ?? value.as;
52
+ const field = getPipelineHelper('field')(value.path);
53
+ const asFn = field.as;
54
+ if (typeof asFn !== 'function') {
55
+ throw new Error('pipelineExecute() failed to rebuild flat aliased field for web SDK.');
56
+ }
57
+ return asFn.call(field, alias);
58
+ }
59
+ function applyAlias(revivedValue, alias, nodeKey) {
60
+ if (!revivedValue || typeof revivedValue !== 'object' && typeof revivedValue !== 'function' || !('as' in revivedValue)) {
61
+ throw new Error(`pipelineExecute() failed to rebuild aliased ${nodeKey}: invalid value.`);
62
+ }
63
+ return revivedValue.as(alias);
64
+ }
65
+ function rebuildExpressionNode(stack, node, mode, resolve) {
66
+ if (node.exprType === 'Field' || typeof node.path === 'string') {
67
+ resolve(getPipelineHelper('field')(node.path));
68
+ return;
69
+ }
70
+ if (node.exprType === 'Constant' || Object.prototype.hasOwnProperty.call(node, 'value')) {
71
+ if (mode === 'helper') {
72
+ stack.push({
73
+ kind: 'evaluate',
74
+ mode,
75
+ value: node.value,
76
+ resolve
77
+ });
78
+ return;
79
+ }
80
+ let revivedValue;
81
+ stack.push({
82
+ kind: 'finalize',
83
+ run: () => {
84
+ resolve(getPipelineHelper('constant')(revivedValue));
85
+ }
86
+ });
87
+ stack.push({
88
+ kind: 'evaluate',
89
+ mode,
90
+ value: node.value,
91
+ resolve: result => {
92
+ revivedValue = result;
93
+ }
94
+ });
95
+ return;
96
+ }
97
+ if (typeof node.name === 'string') {
98
+ const helperName = node.name;
99
+ const args = Array.isArray(node.args) ? node.args : [];
100
+ const revivedArgs = new Array(args.length);
101
+ const argsMode = helperName === 'conditional' ? 'pipeline' : 'helper';
102
+ stack.push({
103
+ kind: 'finalize',
104
+ run: () => {
105
+ if (helperName === 'array') {
106
+ resolve(getPipelineHelper(helperName)(revivedArgs));
107
+ return;
108
+ }
109
+ resolve(getPipelineHelper(helperName)(...revivedArgs));
110
+ }
111
+ });
112
+ for (let i = args.length - 1; i >= 0; i--) {
113
+ stack.push({
114
+ kind: 'evaluate',
115
+ mode: argsMode,
116
+ value: args[i],
117
+ resolve: result => {
118
+ revivedArgs[i] = result;
119
+ }
120
+ });
121
+ }
122
+ return;
123
+ }
124
+ throw new Error('pipelineExecute() failed to rebuild a serialized expression node for web SDK.');
125
+ }
126
+ function rebuildAggregateNode(stack, node, resolve) {
127
+ if (typeof node.kind !== 'string') {
128
+ throw new Error('pipelineExecute() failed to rebuild aggregate node: missing aggregate kind.');
129
+ }
130
+ const helperName = node.kind;
131
+ const args = Array.isArray(node.args) ? node.args : [];
132
+ const revivedArgs = new Array(args.length);
133
+ stack.push({
134
+ kind: 'finalize',
135
+ run: () => {
136
+ resolve(getPipelineHelper(helperName)(...revivedArgs));
137
+ }
138
+ });
139
+ for (let i = args.length - 1; i >= 0; i--) {
140
+ stack.push({
141
+ kind: 'evaluate',
142
+ mode: 'helper',
143
+ value: args[i],
144
+ resolve: result => {
145
+ revivedArgs[i] = result;
146
+ }
147
+ });
148
+ }
149
+ }
150
+ function rebuildOrderingNode(stack, node, resolve) {
151
+ if (!Object.prototype.hasOwnProperty.call(node, 'expr')) {
152
+ throw new Error('pipelineExecute() failed to rebuild ordering node: missing expr.');
153
+ }
154
+ const direction = node.direction === 'descending' ? 'descending' : 'ascending';
155
+ let revivedExpr;
156
+ stack.push({
157
+ kind: 'finalize',
158
+ run: () => {
159
+ resolve(getPipelineHelper(direction)(revivedExpr));
160
+ }
161
+ });
162
+ stack.push({
163
+ kind: 'evaluate',
164
+ mode: 'pipeline',
165
+ value: node.expr,
166
+ resolve: result => {
167
+ revivedExpr = result;
168
+ }
169
+ });
170
+ }
171
+ function rebuildAliasedNode(stack, node, nodeKey, resolve) {
172
+ const alias = typeof node.alias === 'string' ? node.alias : undefined;
173
+ if (!alias) {
174
+ throw new Error(`pipelineExecute() failed to rebuild aliased node: missing ${nodeKey} alias.`);
175
+ }
176
+ let revivedValue;
177
+ stack.push({
178
+ kind: 'finalize',
179
+ run: () => {
180
+ resolve(applyAlias(revivedValue, alias, nodeKey));
181
+ }
182
+ });
183
+ stack.push({
184
+ kind: 'evaluate',
185
+ mode: 'pipeline',
186
+ value: node[nodeKey],
187
+ resolve: result => {
188
+ revivedValue = result;
189
+ }
190
+ });
191
+ }
192
+ function reviveValueWithMode(value, mode) {
193
+ let finalValue;
194
+ const stack = [{
195
+ kind: 'evaluate',
196
+ mode,
197
+ value,
198
+ resolve: result => {
199
+ finalValue = result;
200
+ }
201
+ }];
202
+ while (stack.length > 0) {
203
+ const frame = stack.pop();
204
+ if (frame.kind === 'finalize') {
205
+ frame.run();
206
+ continue;
207
+ }
208
+ const currentValue = frame.value;
209
+ if (Array.isArray(currentValue)) {
210
+ const revived = new Array(currentValue.length);
211
+ frame.resolve(revived);
212
+ for (let i = currentValue.length - 1; i >= 0; i--) {
213
+ stack.push({
214
+ kind: 'evaluate',
215
+ mode: frame.mode,
216
+ value: currentValue[i],
217
+ resolve: result => {
218
+ revived[i] = result;
219
+ }
220
+ });
221
+ }
222
+ continue;
223
+ }
224
+ if (!isRecord(currentValue)) {
225
+ frame.resolve(currentValue);
226
+ continue;
227
+ }
228
+ if (frame.mode === 'helper') {
229
+ if (isFlatAliasedFieldNode(currentValue) || isAliasedExpressionNode(currentValue) || isAliasedAggregateNode(currentValue) || currentValue.__kind === 'aggregate' || currentValue.__kind === 'ordering') {
230
+ stack.push({
231
+ kind: 'evaluate',
232
+ mode: 'pipeline',
233
+ value: currentValue,
234
+ resolve: frame.resolve
235
+ });
236
+ continue;
237
+ }
238
+ if (isExpressionNode(currentValue)) {
239
+ rebuildExpressionNode(stack, currentValue, frame.mode, frame.resolve);
240
+ continue;
241
+ }
242
+ } else {
243
+ if (isFlatAliasedFieldNode(currentValue)) {
244
+ frame.resolve(rebuildFlatAliasedField(currentValue));
245
+ continue;
246
+ }
247
+ if (isAliasedExpressionNode(currentValue)) {
248
+ rebuildAliasedNode(stack, currentValue, 'expr', frame.resolve);
249
+ continue;
250
+ }
251
+ if (isAliasedAggregateNode(currentValue)) {
252
+ rebuildAliasedNode(stack, currentValue, 'aggregate', frame.resolve);
253
+ continue;
254
+ }
255
+ switch (currentValue.__kind) {
256
+ case 'expression':
257
+ rebuildExpressionNode(stack, currentValue, frame.mode, frame.resolve);
258
+ continue;
259
+ case 'aggregate':
260
+ rebuildAggregateNode(stack, currentValue, frame.resolve);
261
+ continue;
262
+ case 'ordering':
263
+ rebuildOrderingNode(stack, currentValue, frame.resolve);
264
+ continue;
265
+ case 'aliasedExpression':
266
+ rebuildAliasedNode(stack, currentValue, 'expr', frame.resolve);
267
+ continue;
268
+ case 'aliasedAggregate':
269
+ rebuildAliasedNode(stack, currentValue, 'aggregate', frame.resolve);
270
+ continue;
271
+ default:
272
+ }
273
+ }
274
+ const revived = {};
275
+ frame.resolve(revived);
276
+ const entries = Object.entries(currentValue);
277
+ for (let i = entries.length - 1; i >= 0; i--) {
278
+ const [key, entry] = entries[i];
279
+ stack.push({
280
+ kind: 'evaluate',
281
+ mode: frame.mode,
282
+ value: entry,
283
+ resolve: result => {
284
+ revived[key] = result;
285
+ }
286
+ });
287
+ }
288
+ }
289
+ return finalValue;
290
+ }
291
+ export function revivePipelineValue(value) {
292
+ return reviveValueWithMode(value, 'pipeline');
293
+ }
294
+ //# sourceMappingURL=pipeline_node_builder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["firebaseFirestorePipelines","WEB_PIPELINE_HELPER_ALIASES","lower","upper","isRecord","value","Array","isArray","getPipelineHelper","name","helperModule","helper","Error","isExpressionNode","__kind","exprType","isFlatAliasedFieldNode","alias","as","path","length","isAliasedExpressionNode","Object","prototype","hasOwnProperty","call","isAliasedAggregateNode","rebuildFlatAliasedField","field","asFn","applyAlias","revivedValue","nodeKey","rebuildExpressionNode","stack","node","mode","resolve","push","kind","run","result","helperName","args","revivedArgs","argsMode","i","rebuildAggregateNode","rebuildOrderingNode","direction","revivedExpr","expr","rebuildAliasedNode","undefined","reviveValueWithMode","finalValue","frame","pop","currentValue","revived","entries","key","entry","revivePipelineValue"],"sourceRoot":"../../../../lib","sources":["web/pipelines/pipeline_node_builder.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,KAAKA,0BAA0B,MAAM,gFAAgF;AAiB5H,MAAMC,2BAAmD,GAAG;EAC1DC,KAAK,EAAE,SAAS;EAChBC,KAAK,EAAE;AACT,CAAC;AAED,SAASC,QAAQA,CAACC,KAAc,EAAoC;EAClE,OAAOA,KAAK,KAAK,IAAI,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,CAACC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC;AAC7E;AAEA,SAASG,iBAAiBA,CAACC,IAAY,EAAoB;EACzD,MAAMC,YAAY,GAAGV,0BAAqD;EAC1E,MAAMW,MAAM,GAAGD,YAAY,CAACD,IAAI,CAAC,IAAIC,YAAY,CAACT,2BAA2B,CAACQ,IAAI,CAAC,IAAI,EAAE,CAAC;EAC1F,IAAI,OAAOE,MAAM,KAAK,UAAU,EAAE;IAChC,MAAM,IAAIC,KAAK,CACb,qCAAqCH,IAAI,sCAC3C,CAAC;EACH;EACA,OAAOE,MAAM;AACf;AAEA,SAASE,gBAAgBA,CAACR,KAA8B,EAAW;EACjE,OACEA,KAAK,CAACS,MAAM,KAAK,YAAY,IAC7BT,KAAK,CAACU,QAAQ,KAAK,OAAO,IAC1BV,KAAK,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AAY,EAAEF,KAAK,CAACnB,OAAO,CAAC;UACvD;QACF,KAAK,mBAAmB;UACtBe,kBAAkB,CAAClB,KAAK,EAAEwB,YAAY,EAAE,MAAM,EAAEF,KAAK,CAACnB,OAAO,CAAC;UAC9D;QACF,KAAK,kBAAkB;UACrBe,kBAAkB,CAAClB,KAAK,EAAEwB,YAAY,EAAE,WAAW,EAAEF,KAAK,CAACnB,OAAO,CAAC;UACnE;QACF;MACF;IACF;IAEA,MAAMsB,OAAgC,GAAG,CAAC,CAAC;IAC3CH,KAAK,CAACnB,OAAO,CAACsB,OAAO,CAAC;IACtB,MAAMC,OAAO,GAAGtC,MAAM,CAACsC,OAAO,CAACF,YAAY,CAAC;IAC5C,KAAK,IAAIZ,CAAC,GAAGc,OAAO,CAACxC,MAAM,GAAG,CAAC,EAAE0B,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;MAC5C,MAAM,CAACe,GAAG,EAAEC,KAAK,CAAC,GAAGF,OAAO,CAACd,CAAC,CAAE;MAChCZ,KAAK,CAACI,IAAI,CAAC;QACTC,IAAI,EAAE,UAAU;QAChBH,IAAI,EAAEoB,KAAK,CAACpB,IAAI;QAChB/B,KAAK,EAAEyD,KAAK;QACZzB,OAAO,EAAEI,MAAM,IAAI;UACjBkB,OAAO,CAACE,GAAG,CAAC,GAAGpB,MAAM;QACvB;MACF,CAAC,CAAC;IACJ;EACF;EAEA,OAAOc,UAAU;AACnB;AAEA,OAAO,SAASQ,mBAAmBA,CAAC1D,KAAc,EAAW;EAC3D,OAAOiD,mBAAmB,CAACjD,KAAK,EAAE,UAAU,CAAC;AAC/C","ignoreList":[]}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ /*
4
+ * Copyright (c) 2016-present Invertase Limited & Contributors
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ */
19
+
20
+ export { validateExecuteOptions, validatePipelineExecuteRequest as parseWebSdkPipelineRequest, validateSerializedPipeline } from "../../pipelines/pipeline_validate.js";
21
+ //# sourceMappingURL=pipeline_parser.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["validateExecuteOptions","validatePipelineExecuteRequest","parseWebSdkPipelineRequest","validateSerializedPipeline"],"sourceRoot":"../../../../lib","sources":["web/pipelines/pipeline_parser.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SACEA,sBAAsB,EACtBC,8BAA8B,IAAIC,0BAA0B,EAC5DC,0BAA0B,QACrB,sCAAmC","ignoreList":[]}
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+
3
+ /*
4
+ * Copyright (c) 2016-present Invertase Limited & Contributors
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this library except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ */
19
+
20
+ import { objectToWriteable } from "../convert.js";
21
+ const METADATA_FALLBACK_STAGES = new Set(['select', 'addFields', 'removeFields']);
22
+ function isRecord(value) {
23
+ return value !== null && typeof value === 'object' && !Array.isArray(value);
24
+ }
25
+ function serializeTimestamp(value) {
26
+ if (!value) {
27
+ return undefined;
28
+ }
29
+ if (typeof value === 'number') {
30
+ return value;
31
+ }
32
+ if (isRecord(value)) {
33
+ if (typeof value.seconds === 'number' && typeof value.nanoseconds === 'number') {
34
+ return {
35
+ seconds: value.seconds,
36
+ nanoseconds: value.nanoseconds
37
+ };
38
+ }
39
+ if (typeof value.toMillis === 'function') {
40
+ return value.toMillis();
41
+ }
42
+ }
43
+ return undefined;
44
+ }
45
+ function buildExecutionMetadata(request) {
46
+ if (request.pipeline.source.source === 'documents' && request.pipeline.source.documents.length > 0 && request.pipeline.stages.every(stage => METADATA_FALLBACK_STAGES.has(stage.stage))) {
47
+ return {
48
+ sourceDocumentPaths: request.pipeline.source.documents
49
+ };
50
+ }
51
+ return {
52
+ sourceDocumentPaths: []
53
+ };
54
+ }
55
+ function getFallbackPath(metadata, index, resultCount) {
56
+ if (metadata.sourceDocumentPaths.length === 0 || metadata.sourceDocumentPaths.length !== resultCount || index < 0 || index >= metadata.sourceDocumentPaths.length) {
57
+ return undefined;
58
+ }
59
+ return metadata.sourceDocumentPaths[index];
60
+ }
61
+ function serializePipelineResult(result, fallbackPath) {
62
+ const resultRecord = isRecord(result) ? result : {};
63
+ const ref = isRecord(resultRecord.ref) ? resultRecord.ref : undefined;
64
+ const path = typeof ref?.path === 'string' ? ref.path : fallbackPath;
65
+ const rawData = typeof resultRecord.data === 'function' ? resultRecord.data() : resultRecord.data;
66
+ const idFromPath = path ? path.split('/').pop() : undefined;
67
+ return {
68
+ data: isRecord(rawData) ? objectToWriteable(rawData) : undefined,
69
+ path,
70
+ id: typeof resultRecord.id === 'string' ? resultRecord.id : idFromPath,
71
+ createTime: serializeTimestamp(resultRecord.createTime),
72
+ updateTime: serializeTimestamp(resultRecord.updateTime)
73
+ };
74
+ }
75
+ export function serializeWebSdkPipelineSnapshot(rawSnapshot, request) {
76
+ const metadata = buildExecutionMetadata(request);
77
+ const snapshotRecord = isRecord(rawSnapshot) ? rawSnapshot : {};
78
+ const rawResults = Array.isArray(snapshotRecord.results) ? snapshotRecord.results : [];
79
+ const results = rawResults.map((result, index) => serializePipelineResult(result, getFallbackPath(metadata, index, rawResults.length)));
80
+ const executionTime = serializeTimestamp(snapshotRecord.executionTime);
81
+ if (!executionTime) {
82
+ throw new Error('pipelineExecute() expected the web SDK snapshot to include executionTime.');
83
+ }
84
+ return {
85
+ results,
86
+ executionTime
87
+ };
88
+ }
89
+ //# sourceMappingURL=pipeline_snapshot_serializer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["objectToWriteable","METADATA_FALLBACK_STAGES","Set","isRecord","value","Array","isArray","serializeTimestamp","undefined","seconds","nanoseconds","toMillis","buildExecutionMetadata","request","pipeline","source","documents","length","stages","every","stage","has","sourceDocumentPaths","getFallbackPath","metadata","index","resultCount","serializePipelineResult","result","fallbackPath","resultRecord","ref","path","rawData","data","idFromPath","split","pop","id","createTime","updateTime","serializeWebSdkPipelineSnapshot","rawSnapshot","snapshotRecord","rawResults","results","map","executionTime","Error"],"sourceRoot":"../../../../lib","sources":["web/pipelines/pipeline_snapshot_serializer.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAQA,SAASA,iBAAiB,QAAQ,eAAY;AAE9C,MAAMC,wBAAwB,GAAG,IAAIC,GAAG,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;AAMjF,SAASC,QAAQA,CAACC,KAAc,EAAoC;EAClE,OAAOA,KAAK,KAAK,IAAI,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,CAACC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC;AAC7E;AAEA,SAASG,kBAAkBA,CAACH,KAAc,EAAkD;EAC1F,IAAI,CAACA,KAAK,EAAE;IACV,OAAOI,SAAS;EAClB;EAEA,IAAI,OAAOJ,KAAK,KAAK,QAAQ,EAAE;IAC7B,OAAOA,KAAK;EACd;EAEA,IAAID,QAAQ,CAACC,KAAK,CAAC,EAAE;IACnB,IAAI,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AM,EAAEH,KAAK,KAC3CE,uBAAuB,CAACC,MAAM,EAAEL,eAAe,CAACC,QAAQ,EAAEC,KAAK,EAAEmB,UAAU,CAAC3B,MAAM,CAAC,CACrF,CAAC;EAED,MAAM8B,aAAa,GAAGxC,kBAAkB,CAACoC,cAAc,CAACI,aAAa,CAAC;EACtE,IAAI,CAACA,aAAa,EAAE;IAClB,MAAM,IAAIC,KAAK,CAAC,2EAA2E,CAAC;EAC9F;EAEA,OAAO;IACLH,OAAO;IACPE;EACF,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+
3
+ /*
4
+ * Copyright (c) 2016-present Invertase Limited & Contributors
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this library except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ */
19
+
20
+ import { FieldPath, query, where, orderBy, limit, limitToLast, startAt, startAfter, endAt, endBefore, and, or } from '@react-native-firebase/app/dist/module/internal/web/firebaseFirestore';
21
+ import { parseTypeMap, readableToArray } from "./convert.js";
22
+ export function buildQuery(queryInstance, filters, orders, options) {
23
+ let current = queryInstance;
24
+ for (const filter of filters) {
25
+ current = query(current, getFilterConstraint(filter, queryInstance.firestore));
26
+ }
27
+ for (const order of orders) {
28
+ const fieldPath = typeof order.fieldPath === 'string' ? order.fieldPath : new FieldPath(...order.fieldPath);
29
+ const direction = order.direction === 'ASCENDING' ? 'asc' : 'desc';
30
+ current = query(current, orderBy(fieldPath, direction));
31
+ }
32
+ if ('limit' in options && options.limit !== undefined) {
33
+ current = query(current, limit(options.limit));
34
+ }
35
+ if ('limitToLast' in options && options.limitToLast !== undefined) {
36
+ current = query(current, limitToLast(options.limitToLast));
37
+ }
38
+ if ('startAt' in options && options.startAt !== undefined) {
39
+ const fieldList = readableToArray(queryInstance.firestore, options.startAt);
40
+ current = query(current, startAt(...fieldList));
41
+ }
42
+ if ('startAfter' in options && options.startAfter !== undefined) {
43
+ const fieldList = readableToArray(queryInstance.firestore, options.startAfter);
44
+ current = query(current, startAfter(...fieldList));
45
+ }
46
+ if ('endAt' in options && options.endAt !== undefined) {
47
+ const fieldList = readableToArray(queryInstance.firestore, options.endAt);
48
+ current = query(current, endAt(...fieldList));
49
+ }
50
+ if ('endBefore' in options && options.endBefore !== undefined) {
51
+ const fieldList = readableToArray(queryInstance.firestore, options.endBefore);
52
+ current = query(current, endBefore(...fieldList));
53
+ }
54
+ return current;
55
+ }
56
+ function getFilterConstraint(filter, firestore) {
57
+ if ('fieldPath' in filter && filter.fieldPath) {
58
+ const fieldPath = Array.isArray(filter.fieldPath) ? new FieldPath(...filter.fieldPath) : new FieldPath(...filter.fieldPath._segments);
59
+ const operator = filter.operator;
60
+ const value = parseTypeMap(firestore, filter.value);
61
+ switch (operator) {
62
+ case 'EQUAL':
63
+ return where(fieldPath, '==', value);
64
+ case 'NOT_EQUAL':
65
+ return where(fieldPath, '!=', value);
66
+ case 'GREATER_THAN':
67
+ return where(fieldPath, '>', value);
68
+ case 'GREATER_THAN_OR_EQUAL':
69
+ return where(fieldPath, '>=', value);
70
+ case 'LESS_THAN':
71
+ return where(fieldPath, '<', value);
72
+ case 'LESS_THAN_OR_EQUAL':
73
+ return where(fieldPath, '<=', value);
74
+ case 'ARRAY_CONTAINS':
75
+ return where(fieldPath, 'array-contains', value);
76
+ case 'ARRAY_CONTAINS_ANY':
77
+ return where(fieldPath, 'array-contains-any', value);
78
+ case 'IN':
79
+ return where(fieldPath, 'in', value);
80
+ case 'NOT_IN':
81
+ return where(fieldPath, 'not-in', value);
82
+ }
83
+ } else if ('operator' in filter && 'queries' in filter && filter.queries) {
84
+ const constraints = filter.queries.map(f => getFilterConstraint(f, firestore));
85
+ if (filter.operator === 'AND') {
86
+ return and(...constraints);
87
+ }
88
+ if (filter.operator === 'OR') {
89
+ return or(...constraints);
90
+ }
91
+ throw new Error('Invalid filter operator');
92
+ }
93
+ throw new Error('Invalid filter.');
94
+ }
95
+ //# sourceMappingURL=query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FieldPath","query","where","orderBy","limit","limitToLast","startAt","startAfter","endAt","endBefore","and","or","parseTypeMap","readableToArray","buildQuery","queryInstance","filters","orders","options","current","filter","getFilterConstraint","firestore","order","fieldPath","direction","undefined","fieldList","Array","isArray","_segments","operator","value","queries","constraints","map","f","Error"],"sourceRoot":"../../../lib","sources":["web/query.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SACEA,SAAS,EACTC,KAAK,EACLC,KAAK,EACLC,OAAO,EACPC,KAAK,EACLC,WAAW,EACXC,OAAO,EACPC,UAAU,EACVC,KAAK,EACLC,SAAS,EACTC,GAAG,EACHC,EAAE,QACG,uEAAuE;AAM9E,SAASC,YAAY,EAAEC,eAAe,QAAQ,cAAW;AAuBzD,OAAO,SAASC,UAAUA,CACxBC,aAAoB,EACpBC,OAAqB,EACrBC,MAAmB,EACnBC,OAAqB,EACd;EACP,IAAIC,OAAc,GAAGJ,aAAa;EAElC,KAAK,MAAMK,MAAM,IAAIJ,OAAO,EAAE;IAC5BG,OAAO,GAAGlB,KAAK,CAACkB,OAAO,EAAEE,mBAAmB,CAACD,MAAM,EAAEL,aAAa,CAACO,SAAS,CAAC,CAAC;EAChF;EAEA,KAAK,MAAMC,KAAK,IAAIN,MAAM,EAAE;IAC1B,MAAMO,SAAS,GACb,OAAOD,KAAK,CAACC,SAAS,KAAK,QAAQ,GAC/BD,KAAK,CAACC,SAAS,GACf,IAAIxB,SAAS,CAAC,GAAIuB,KAAK,CAACC,SAAsB,CAAC;IAC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GAAG,EAAEQ,KAAK,CAAC;MACrC,KAAK,oBAAoB;QACvB,OAAO9B,KAAK,CAACsB,SAAS,EAAE,IAAI,EAAEQ,KAAK,CAAC;MACtC,KAAK,gBAAgB;QACnB,OAAO9B,KAAK,CAACsB,SAAS,EAAE,gBAAgB,EAAEQ,KAAK,CAAC;MAClD,KAAK,oBAAoB;QACvB,OAAO9B,KAAK,CAACsB,SAAS,EAAE,oBAAoB,EAAEQ,KAAK,CAAC;MACtD,KAAK,IAAI;QACP,OAAO9B,KAAK,CAACsB,SAAS,EAAE,IAAI,EAAEQ,KAAK,CAAC;MACtC,KAAK,QAAQ;QACX,OAAO9B,KAAK,CAACsB,SAAS,EAAE,QAAQ,EAAEQ,KAAK,CAAC;IAC5C;EACF,CAAC,MAAM,IAAI,UAAU,IAAIZ,MAAM,IAAI,SAAS,IAAIA,MAAM,IAAIA,MAAM,CAACa,OAAO,EAAE;IACxE,MAAMC,WAAW,GAAGd,MAAM,CAACa,OAAO,CAACE,GAAG,CAACC,CAAC,IAAIf,mBAAmB,CAACe,CAAC,EAAEd,SAAS,CAAC,CAAC;IAE9E,IAAIF,MAAM,CAACW,QAAQ,KAAK,KAAK,EAAE;MAC7B,OAAOrB,GAAG,CAAC,GAAIwB,WAAsC,CAAC;IACxD;IACA,IAAId,MAAM,CAACW,QAAQ,KAAK,IAAI,EAAE;MAC5B,OAAOpB,EAAE,CAAC,GAAIuB,WAAqC,CAAC;IACtD;IACA,MAAM,IAAIG,KAAK,CAAC,yBAAyB,CAAC;EAC5C;EAEA,MAAM,IAAIA,KAAK,CAAC,iBAAiB,CAAC;AACpC","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ export default class FieldPath {
2
+ _segments: string[];
3
+ constructor(...segments: string[]);
4
+ isEqual(other: FieldPath): boolean;
5
+ _toPath(): string;
6
+ _toArray(): string[];
7
+ }
8
+ export declare const DOCUMENT_ID: FieldPath;
9
+ export declare function fromDotSeparatedString(path: string): FieldPath;
10
+ //# sourceMappingURL=FieldPath.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldPath.d.ts","sourceRoot":"","sources":["../../../lib/FieldPath.ts"],"names":[],"mappings":"AAqBA,MAAM,CAAC,OAAO,OAAO,SAAS;IAC5B,SAAS,EAAE,MAAM,EAAE,CAAC;gBAER,GAAG,QAAQ,EAAE,MAAM,EAAE;IAiBjC,OAAO,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO;IAUlC,OAAO,IAAI,MAAM;IAIjB,QAAQ,IAAI,MAAM,EAAE;CAGrB;AAED,eAAO,MAAM,WAAW,WAA4B,CAAC;AAErD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAgB9D"}
@@ -0,0 +1,17 @@
1
+ export declare const TypeFieldValueDelete = "delete";
2
+ export declare const TypeFieldValueIncrement = "increment";
3
+ export declare const TypeFieldValueRemove = "array_remove";
4
+ export declare const TypeFieldValueUnion = "array_union";
5
+ export declare const TypeFieldValueTimestamp = "timestamp";
6
+ export default class FieldValue {
7
+ _type: string;
8
+ _elements: unknown;
9
+ constructor(internal?: boolean, type?: string, elements?: unknown);
10
+ static delete(): FieldValue;
11
+ static increment(n: number): FieldValue;
12
+ static serverTimestamp(): FieldValue;
13
+ static arrayUnion(...elements: unknown[]): FieldValue;
14
+ static arrayRemove(...elements: unknown[]): FieldValue;
15
+ isEqual(other: FieldValue): boolean;
16
+ }
17
+ //# sourceMappingURL=FieldValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldValue.d.ts","sourceRoot":"","sources":["../../../lib/FieldValue.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,oBAAoB,WAAW,CAAC;AAC7C,eAAO,MAAM,uBAAuB,cAAc,CAAC;AACnD,eAAO,MAAM,oBAAoB,iBAAiB,CAAC;AACnD,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AACjD,eAAO,MAAM,uBAAuB,cAAc,CAAC;AAgBnD,MAAM,CAAC,OAAO,OAAO,UAAU;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;gBAEP,QAAQ,UAAQ,EAAE,IAAI,SAAK,EAAE,QAAQ,CAAC,EAAE,OAAO;IAW3D,MAAM,CAAC,MAAM,IAAI,UAAU;IAI3B,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,GAAG,UAAU;IAQvC,MAAM,CAAC,eAAe,IAAI,UAAU;IAIpC,MAAM,CAAC,UAAU,CAAC,GAAG,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU;IAYrD,MAAM,CAAC,WAAW,CAAC,GAAG,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU;IAYtD,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO;CAYpC"}
@@ -0,0 +1,40 @@
1
+ import type { AggregateSpec, AggregateSpecData, AggregateType, DocumentData, Query as FirestoreQuery } from './types/firestore';
2
+ import FieldPath from './FieldPath';
3
+ import type FirestorePath from './FirestorePath';
4
+ import type Query from './FirestoreQuery';
5
+ import type QueryModifiers from './FirestoreQueryModifiers';
6
+ import type { FirestoreInternal } from './types/internal';
7
+ export declare class AggregateQuery {
8
+ _firestore: FirestoreInternal;
9
+ _query: Query;
10
+ _collectionPath: FirestorePath;
11
+ _modifiers: QueryModifiers;
12
+ constructor(firestore: FirestoreInternal, query: Query, collectionPath: FirestorePath, modifiers: QueryModifiers);
13
+ get query(): Query;
14
+ get(): Promise<AggregateQuerySnapshot>;
15
+ }
16
+ export declare class AggregateQuerySnapshot<AggregateSpecType extends AggregateSpec = AggregateSpec, AppModelType = DocumentData, DbModelType extends DocumentData = DocumentData> {
17
+ readonly type = "AggregateQuerySnapshot";
18
+ _query: FirestoreQuery<AppModelType, DbModelType>;
19
+ _data: {
20
+ count?: number;
21
+ [key: string]: unknown;
22
+ };
23
+ _isGetCountFromServer: boolean;
24
+ constructor(query: FirestoreQuery<AppModelType, DbModelType>, data: {
25
+ count?: number;
26
+ [key: string]: unknown;
27
+ }, isGetCountFromServer: boolean);
28
+ get query(): FirestoreQuery<AppModelType, DbModelType>;
29
+ data(): AggregateSpecData<AggregateSpecType>;
30
+ _fieldsProto(): Record<string, unknown>;
31
+ }
32
+ export declare class AggregateField<T = unknown> {
33
+ readonly type = "AggregateField";
34
+ readonly aggregateType: AggregateType;
35
+ readonly _internalFieldPath?: FieldPath;
36
+ _phantomType?: T;
37
+ constructor(aggregateType?: AggregateType, fieldPath?: FieldPath);
38
+ }
39
+ export declare function fieldPathFromArgument(path: string | FieldPath): FieldPath;
40
+ //# sourceMappingURL=FirestoreAggregate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirestoreAggregate.d.ts","sourceRoot":"","sources":["../../../lib/FirestoreAggregate.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,KAAK,IAAI,cAAc,EACxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,SAAqC,MAAM,aAAa,CAAC;AAEhE,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,cAAc,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,qBAAa,cAAc;IACzB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,MAAM,EAAE,KAAK,CAAC;IACd,eAAe,EAAE,aAAa,CAAC;IAC/B,UAAU,EAAE,cAAc,CAAC;gBAGzB,SAAS,EAAE,iBAAiB,EAC5B,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,aAAa,EAC7B,SAAS,EAAE,cAAc;IAQ3B,IAAI,KAAK,IAAI,KAAK,CAEjB;IAED,GAAG,IAAI,OAAO,CAAC,sBAAsB,CAAC;CAWvC;AAED,qBAAa,sBAAsB,CACjC,iBAAiB,SAAS,aAAa,GAAG,aAAa,EACvD,YAAY,GAAG,YAAY,EAC3B,WAAW,SAAS,YAAY,GAAG,YAAY;IAE/C,QAAQ,CAAC,IAAI,4BAA4B;IACzC,MAAM,EAAE,cAAc,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;IAClD,KAAK,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAClD,qBAAqB,EAAE,OAAO,CAAC;gBAG7B,KAAK,EAAE,cAAc,CAAC,YAAY,EAAE,WAAW,CAAC,EAChD,IAAI,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,EAChD,oBAAoB,EAAE,OAAO;IAO/B,IAAI,KAAK,IAAI,cAAc,CAAC,YAAY,EAAE,WAAW,CAAC,CAErD;IAED,IAAI,IAAI,iBAAiB,CAAC,iBAAiB,CAAC;IAO5C,YAAY,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAGxC;AAED,qBAAa,cAAc,CAAC,CAAC,GAAG,OAAO;IACrC,QAAQ,CAAC,IAAI,oBAAoB;IACjC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAExC,YAAY,CAAC,EAAE,CAAC,CAAC;gBAEL,aAAa,GAAE,aAAuB,EAAE,SAAS,CAAC,EAAE,SAAS;CAI1E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAQzE"}
@@ -0,0 +1,11 @@
1
+ export default class Blob {
2
+ _binaryString: string;
3
+ constructor(internal?: boolean, binaryString?: string);
4
+ static fromBase64String(base64: string): Blob;
5
+ static fromUint8Array(array: Uint8Array): Blob;
6
+ isEqual(blob: Blob): boolean;
7
+ toBase64(): string;
8
+ toUint8Array(): Uint8Array;
9
+ toString(): string;
10
+ }
11
+ //# sourceMappingURL=FirestoreBlob.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FirestoreBlob.d.ts","sourceRoot":"","sources":["../../../lib/FirestoreBlob.ts"],"names":[],"mappings":"AAmBA,MAAM,CAAC,OAAO,OAAO,IAAI;IACvB,aAAa,EAAE,MAAM,CAAC;gBAEV,QAAQ,UAAQ,EAAE,YAAY,CAAC,EAAE,MAAM;IAUnD,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAU7C,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAW9C,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAQ5B,QAAQ,IAAI,MAAM;IAIlB,YAAY,IAAI,UAAU;IAI1B,QAAQ,IAAI,MAAM;CAGnB"}