@angular/fire 7.6.1 → 16.0.0-canary.5793d6f

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 (515) hide show
  1. package/analytics/analytics.module.d.ts +2 -2
  2. package/analytics/is-analytics-supported-factory.d.ts +4 -0
  3. package/analytics/screen-tracking.service.d.ts +3 -3
  4. package/app-check/app-check.d.ts +0 -6
  5. package/app-check/app-check.module.d.ts +3 -4
  6. package/app-check/public_api.d.ts +2 -1
  7. package/auth/auth.module.d.ts +2 -2
  8. package/auth-guard/auth-guard.d.ts +6 -6
  9. package/compat/analytics/analytics.d.ts +1 -3
  10. package/compat/analytics/analytics.module.d.ts +1 -1
  11. package/compat/analytics/screen-tracking.service.d.ts +1 -1
  12. package/compat/analytics/user-tracking.service.d.ts +1 -1
  13. package/compat/auth/auth.d.ts +4 -4
  14. package/compat/auth-guard/auth-guard.d.ts +8 -6
  15. package/compat/database/database.d.ts +4 -4
  16. package/compat/database/interfaces.d.ts +14 -14
  17. package/compat/database/list/audit-trail.d.ts +1 -1
  18. package/compat/database/list/create-reference.d.ts +1 -1
  19. package/compat/database/list/data-operation.d.ts +1 -1
  20. package/compat/database/list/state-changes.d.ts +1 -1
  21. package/compat/database/object/create-reference.d.ts +1 -1
  22. package/compat/database/observable/fromRef.d.ts +1 -1
  23. package/compat/database/utils.d.ts +1 -1
  24. package/compat/firebase.app.module.d.ts +1 -1
  25. package/compat/firestore/collection/collection.d.ts +2 -2
  26. package/compat/firestore/collection-group/collection-group.d.ts +2 -2
  27. package/compat/firestore/document/document.d.ts +4 -4
  28. package/compat/firestore/firestore.d.ts +7 -7
  29. package/compat/firestore/interfaces.d.ts +19 -19
  30. package/compat/functions/functions.d.ts +3 -3
  31. package/compat/messaging/messaging.d.ts +2 -2
  32. package/compat/performance/performance.d.ts +2 -2
  33. package/compat/proxy.d.ts +8 -8
  34. package/compat/remote-config/interfaces.d.ts +1 -1
  35. package/compat/remote-config/remote-config.d.ts +15 -49
  36. package/compat/storage/interfaces.d.ts +8 -8
  37. package/compat/storage/observable/fromTask.d.ts +1 -2
  38. package/compat/storage/pipes/storageUrl.pipe.d.ts +1 -1
  39. package/compat/storage/ref.d.ts +1 -1
  40. package/compat/storage/storage.d.ts +3 -3
  41. package/compat/storage/task.d.ts +1 -1
  42. package/core.d.ts +8 -12
  43. package/database/database.module.d.ts +2 -2
  44. package/{esm2015/analytics/analytics.js → esm2022/analytics/analytics.mjs} +1 -1
  45. package/esm2022/analytics/analytics.module.mjs +94 -0
  46. package/esm2022/analytics/is-analytics-supported-factory.mjs +16 -0
  47. package/esm2022/analytics/overrides.mjs +3 -0
  48. package/esm2022/analytics/screen-tracking.service.mjs +148 -0
  49. package/esm2022/analytics/user-tracking.service.mjs +44 -0
  50. package/{esm2015/app/app.js → esm2022/app/app.mjs} +1 -1
  51. package/esm2022/app/app.module.mjs +85 -0
  52. package/esm2022/app-check/app-check.mjs +10 -0
  53. package/esm2022/app-check/app-check.module.mjs +78 -0
  54. package/esm2022/app-check/public_api.mjs +5 -0
  55. package/{esm2015/auth/auth.js → esm2022/auth/auth.mjs} +1 -1
  56. package/esm2022/auth/auth.module.mjs +71 -0
  57. package/esm2022/auth-guard/auth-guard.mjs +53 -0
  58. package/{esm2015/auth-guard/auth-guard.module.js → esm2022/auth-guard/auth-guard.module.mjs} +7 -7
  59. package/esm2022/compat/analytics/analytics.mjs +160 -0
  60. package/esm2022/compat/analytics/analytics.module.mjs +35 -0
  61. package/esm2022/compat/analytics/screen-tracking.service.mjs +49 -0
  62. package/esm2022/compat/analytics/user-tracking.service.mjs +53 -0
  63. package/esm2022/compat/auth/auth.mjs +161 -0
  64. package/{esm2015/compat/auth/auth.module.js → esm2022/compat/auth/auth.module.mjs} +7 -7
  65. package/{esm2015/compat/auth/public_api.js → esm2022/compat/auth/public_api.mjs} +1 -1
  66. package/esm2022/compat/auth-guard/auth-guard.mjs +53 -0
  67. package/{esm2015/compat/auth-guard/auth-guard.module.js → esm2022/compat/auth-guard/auth-guard.module.mjs} +7 -7
  68. package/{esm2015/compat/cache.js → esm2022/compat/cache.mjs} +4 -3
  69. package/esm2022/compat/database/database.mjs +119 -0
  70. package/{esm2015/compat/database/database.module.js → esm2022/compat/database/database.module.mjs} +7 -7
  71. package/esm2022/compat/database/interfaces.mjs +2 -0
  72. package/{esm2015/compat/database/list/audit-trail.js → esm2022/compat/database/list/audit-trail.mjs} +3 -3
  73. package/esm2022/compat/database/list/changes.mjs +85 -0
  74. package/esm2022/compat/database/list/create-reference.mjs +44 -0
  75. package/{esm2015/compat/database/list/data-operation.js → esm2022/compat/database/list/data-operation.mjs} +1 -1
  76. package/{esm2015/compat/database/list/snapshot-changes.js → esm2022/compat/database/list/snapshot-changes.mjs} +1 -1
  77. package/{esm2015/compat/database/list/state-changes.js → esm2022/compat/database/list/state-changes.mjs} +2 -2
  78. package/{esm2015/compat/database/object/create-reference.js → esm2022/compat/database/object/create-reference.mjs} +2 -2
  79. package/{esm2015/compat/database/object/snapshot-changes.js → esm2022/compat/database/object/snapshot-changes.mjs} +1 -1
  80. package/esm2022/compat/database/observable/fromRef.mjs +48 -0
  81. package/{esm2015/compat/database/utils.js → esm2022/compat/database/utils.mjs} +1 -1
  82. package/{esm2015/compat/firebase.app.js → esm2022/compat/firebase.app.mjs} +1 -1
  83. package/esm2022/compat/firebase.app.module.mjs +71 -0
  84. package/esm2022/compat/firestore/collection/changes.mjs +108 -0
  85. package/esm2022/compat/firestore/collection/collection.mjs +123 -0
  86. package/esm2022/compat/firestore/collection-group/collection-group.mjs +86 -0
  87. package/esm2022/compat/firestore/document/document.mjs +87 -0
  88. package/esm2022/compat/firestore/firestore.mjs +257 -0
  89. package/{esm2015/compat/firestore/firestore.module.js → esm2022/compat/firestore/firestore.module.mjs} +7 -7
  90. package/esm2022/compat/firestore/interfaces.mjs +2 -0
  91. package/esm2022/compat/firestore/observable/fromRef.mjs +40 -0
  92. package/esm2022/compat/functions/functions.mjs +69 -0
  93. package/{esm2015/compat/functions/functions.module.js → esm2022/compat/functions/functions.module.mjs} +7 -7
  94. package/{esm2015/compat/functions/public_api.js → esm2022/compat/functions/public_api.mjs} +1 -1
  95. package/esm2022/compat/messaging/messaging.mjs +81 -0
  96. package/{esm2015/compat/messaging/messaging.module.js → esm2022/compat/messaging/messaging.module.mjs} +7 -7
  97. package/esm2022/compat/performance/performance.mjs +105 -0
  98. package/esm2022/compat/performance/performance.module.mjs +27 -0
  99. package/esm2022/compat/performance/performance.service.mjs +28 -0
  100. package/esm2022/compat/proxy.mjs +58 -0
  101. package/esm2022/compat/remote-config/remote-config.mjs +206 -0
  102. package/{esm2015/compat/remote-config/remote-config.module.js → esm2022/compat/remote-config/remote-config.module.mjs} +7 -7
  103. package/esm2022/compat/storage/observable/fromTask.mjs +36 -0
  104. package/esm2022/compat/storage/pipes/storageUrl.pipe.mjs +58 -0
  105. package/{esm2015/compat/storage/ref.js → esm2022/compat/storage/ref.mjs} +3 -3
  106. package/esm2022/compat/storage/storage.mjs +95 -0
  107. package/esm2022/compat/storage/storage.module.mjs +22 -0
  108. package/{esm2015/compat/storage/task.js → esm2022/compat/storage/task.mjs} +2 -2
  109. package/esm2022/core.mjs +43 -0
  110. package/{esm2015/database/database.js → esm2022/database/database.mjs} +1 -1
  111. package/esm2022/database/database.module.mjs +74 -0
  112. package/esm2022/firestore/firebase.mjs +54 -0
  113. package/{esm2015/firestore/firestore.js → esm2022/firestore/firestore.mjs} +1 -1
  114. package/esm2022/firestore/firestore.module.mjs +74 -0
  115. package/{esm2015/firestore/lite/lite.js → esm2022/firestore/lite/lite.mjs} +1 -1
  116. package/esm2022/firestore/lite/lite.module.mjs +73 -0
  117. package/esm2022/firestore/rxfire.mjs +15 -0
  118. package/{esm2015/functions/functions.js → esm2022/functions/functions.mjs} +1 -1
  119. package/esm2022/functions/functions.module.mjs +74 -0
  120. package/esm2022/messaging/is-messaging-supported-factory.mjs +16 -0
  121. package/{esm2015/messaging/messaging.js → esm2022/messaging/messaging.mjs} +1 -1
  122. package/esm2022/messaging/messaging.module.mjs +86 -0
  123. package/esm2022/messaging/overrides.mjs +3 -0
  124. package/{esm2015/performance/performance.js → esm2022/performance/performance.mjs} +1 -1
  125. package/esm2022/performance/performance.module.mjs +81 -0
  126. package/esm2022/remote-config/is-remote-config-supported-factory.mjs +16 -0
  127. package/esm2022/remote-config/overrides.mjs +3 -0
  128. package/{esm2015/remote-config/remote-config.js → esm2022/remote-config/remote-config.mjs} +1 -1
  129. package/esm2022/remote-config/remote-config.module.mjs +86 -0
  130. package/{esm2015/storage/storage.js → esm2022/storage/storage.mjs} +1 -1
  131. package/esm2022/storage/storage.module.mjs +74 -0
  132. package/esm2022/zones.mjs +194 -0
  133. package/{fesm2015/angular-fire-analytics.js → fesm2022/angular-fire-analytics.mjs} +64 -40
  134. package/fesm2022/angular-fire-analytics.mjs.map +1 -0
  135. package/{fesm2015/angular-fire-app-check.js → fesm2022/angular-fire-app-check.mjs} +16 -24
  136. package/fesm2022/angular-fire-app-check.mjs.map +1 -0
  137. package/{fesm2015/angular-fire-app.js → fesm2022/angular-fire-app.mjs} +10 -9
  138. package/fesm2022/angular-fire-app.mjs.map +1 -0
  139. package/{fesm2015/angular-fire-auth-guard.js → fesm2022/angular-fire-auth-guard.mjs} +31 -27
  140. package/fesm2022/angular-fire-auth-guard.mjs.map +1 -0
  141. package/{fesm2015/angular-fire-auth.js → fesm2022/angular-fire-auth.mjs} +10 -11
  142. package/fesm2022/angular-fire-auth.mjs.map +1 -0
  143. package/{fesm2015/angular-fire-compat-analytics.js → fesm2022/angular-fire-compat-analytics.mjs} +43 -41
  144. package/fesm2022/angular-fire-compat-analytics.mjs.map +1 -0
  145. package/{fesm2015/angular-fire-compat-auth-guard.js → fesm2022/angular-fire-compat-auth-guard.mjs} +30 -26
  146. package/fesm2022/angular-fire-compat-auth-guard.mjs.map +1 -0
  147. package/{fesm2015/angular-fire-compat-auth.js → fesm2022/angular-fire-compat-auth.mjs} +38 -16
  148. package/fesm2022/angular-fire-compat-auth.mjs.map +1 -0
  149. package/{fesm2015/angular-fire-compat-database.js → fesm2022/angular-fire-compat-database.mjs} +138 -132
  150. package/fesm2022/angular-fire-compat-database.mjs.map +1 -0
  151. package/{fesm2015/angular-fire-compat-firestore.js → fesm2022/angular-fire-compat-firestore.mjs} +119 -98
  152. package/fesm2022/angular-fire-compat-firestore.mjs.map +1 -0
  153. package/{fesm2015/angular-fire-compat-functions.js → fesm2022/angular-fire-compat-functions.mjs} +13 -12
  154. package/fesm2022/angular-fire-compat-functions.mjs.map +1 -0
  155. package/{fesm2015/angular-fire-compat-messaging.js → fesm2022/angular-fire-compat-messaging.mjs} +25 -19
  156. package/fesm2022/angular-fire-compat-messaging.mjs.map +1 -0
  157. package/{fesm2015/angular-fire-compat-performance.js → fesm2022/angular-fire-compat-performance.mjs} +29 -34
  158. package/fesm2022/angular-fire-compat-performance.mjs.map +1 -0
  159. package/{fesm2015/angular-fire-compat-remote-config.js → fesm2022/angular-fire-compat-remote-config.mjs} +35 -22
  160. package/fesm2022/angular-fire-compat-remote-config.mjs.map +1 -0
  161. package/{fesm2015/angular-fire-compat-storage.js → fesm2022/angular-fire-compat-storage.mjs} +30 -23
  162. package/fesm2022/angular-fire-compat-storage.mjs.map +1 -0
  163. package/{fesm2015/angular-fire-compat.js → fesm2022/angular-fire-compat.mjs} +25 -25
  164. package/fesm2022/angular-fire-compat.mjs.map +1 -0
  165. package/{fesm2015/angular-fire-database.js → fesm2022/angular-fire-database.mjs} +11 -12
  166. package/fesm2022/angular-fire-database.mjs.map +1 -0
  167. package/{fesm2015/angular-fire-firestore-lite.js → fesm2022/angular-fire-firestore-lite.mjs} +11 -12
  168. package/fesm2022/angular-fire-firestore-lite.mjs.map +1 -0
  169. package/{fesm2015/angular-fire-firestore.js → fesm2022/angular-fire-firestore.mjs} +17 -15
  170. package/fesm2022/angular-fire-firestore.mjs.map +1 -0
  171. package/{fesm2015/angular-fire-functions.js → fesm2022/angular-fire-functions.mjs} +12 -13
  172. package/fesm2022/angular-fire-functions.mjs.map +1 -0
  173. package/{fesm2015/angular-fire-messaging.js → fesm2022/angular-fire-messaging.mjs} +33 -19
  174. package/fesm2022/angular-fire-messaging.mjs.map +1 -0
  175. package/{fesm2015/angular-fire-performance.js → fesm2022/angular-fire-performance.mjs} +11 -11
  176. package/fesm2022/angular-fire-performance.mjs.map +1 -0
  177. package/{fesm2015/angular-fire-remote-config.js → fesm2022/angular-fire-remote-config.mjs} +34 -20
  178. package/fesm2022/angular-fire-remote-config.mjs.map +1 -0
  179. package/{fesm2015/angular-fire-storage.js → fesm2022/angular-fire-storage.mjs} +10 -11
  180. package/fesm2022/angular-fire-storage.mjs.map +1 -0
  181. package/{fesm2015/angular-fire.js → fesm2022/angular-fire.mjs} +33 -58
  182. package/fesm2022/angular-fire.mjs.map +1 -0
  183. package/firestore/firebase.d.ts +2 -1
  184. package/firestore/firestore.module.d.ts +2 -2
  185. package/firestore/lite/lite.module.d.ts +2 -2
  186. package/firestore/rxfire.d.ts +3 -1
  187. package/functions/functions.module.d.ts +2 -2
  188. package/messaging/is-messaging-supported-factory.d.ts +4 -0
  189. package/messaging/messaging.module.d.ts +2 -2
  190. package/package.json +158 -7
  191. package/performance/performance.module.d.ts +2 -2
  192. package/publish.sh +1 -0
  193. package/remote-config/is-remote-config-supported-factory.d.ts +4 -0
  194. package/remote-config/remote-config.module.d.ts +2 -2
  195. package/schematics/add/index.js +2 -2
  196. package/schematics/common.js +9 -5
  197. package/schematics/deploy/actions.js +69 -69
  198. package/schematics/deploy/builder.js +7 -7
  199. package/schematics/firebaseTools.js +9 -5
  200. package/schematics/setup/index.js +27 -27
  201. package/schematics/setup/prompts.js +22 -18
  202. package/schematics/update/index.js +1 -1
  203. package/schematics/update/v7/index.js +7 -7
  204. package/schematics/utils.js +34 -34
  205. package/storage/storage.module.d.ts +2 -2
  206. package/README.md +0 -216
  207. package/analytics/package.json +0 -11
  208. package/app/package.json +0 -11
  209. package/app-check/package.json +0 -11
  210. package/auth/package.json +0 -11
  211. package/auth-guard/package.json +0 -11
  212. package/bundles/angular-fire-analytics.umd.js +0 -673
  213. package/bundles/angular-fire-analytics.umd.js.map +0 -1
  214. package/bundles/angular-fire-app-check.umd.js +0 -465
  215. package/bundles/angular-fire-app-check.umd.js.map +0 -1
  216. package/bundles/angular-fire-app.umd.js +0 -477
  217. package/bundles/angular-fire-app.umd.js.map +0 -1
  218. package/bundles/angular-fire-auth-guard.umd.js +0 -109
  219. package/bundles/angular-fire-auth-guard.umd.js.map +0 -1
  220. package/bundles/angular-fire-auth.umd.js +0 -557
  221. package/bundles/angular-fire-auth.umd.js.map +0 -1
  222. package/bundles/angular-fire-compat-analytics.umd.js +0 -672
  223. package/bundles/angular-fire-compat-analytics.umd.js.map +0 -1
  224. package/bundles/angular-fire-compat-auth-guard.umd.js +0 -112
  225. package/bundles/angular-fire-compat-auth-guard.umd.js.map +0 -1
  226. package/bundles/angular-fire-compat-auth.umd.js +0 -559
  227. package/bundles/angular-fire-compat-auth.umd.js.map +0 -1
  228. package/bundles/angular-fire-compat-database.umd.js +0 -799
  229. package/bundles/angular-fire-compat-database.umd.js.map +0 -1
  230. package/bundles/angular-fire-compat-firestore.umd.js +0 -1073
  231. package/bundles/angular-fire-compat-firestore.umd.js.map +0 -1
  232. package/bundles/angular-fire-compat-functions.umd.js +0 -443
  233. package/bundles/angular-fire-compat-functions.umd.js.map +0 -1
  234. package/bundles/angular-fire-compat-messaging.umd.js +0 -465
  235. package/bundles/angular-fire-compat-messaging.umd.js.map +0 -1
  236. package/bundles/angular-fire-compat-performance.umd.js +0 -212
  237. package/bundles/angular-fire-compat-performance.umd.js.map +0 -1
  238. package/bundles/angular-fire-compat-remote-config.umd.js +0 -605
  239. package/bundles/angular-fire-compat-remote-config.umd.js.map +0 -1
  240. package/bundles/angular-fire-compat-storage.umd.js +0 -598
  241. package/bundles/angular-fire-compat-storage.umd.js.map +0 -1
  242. package/bundles/angular-fire-compat.umd.js +0 -535
  243. package/bundles/angular-fire-compat.umd.js.map +0 -1
  244. package/bundles/angular-fire-database.umd.js +0 -557
  245. package/bundles/angular-fire-database.umd.js.map +0 -1
  246. package/bundles/angular-fire-firestore-lite.umd.js +0 -531
  247. package/bundles/angular-fire-firestore-lite.umd.js.map +0 -1
  248. package/bundles/angular-fire-firestore.umd.js +0 -565
  249. package/bundles/angular-fire-firestore.umd.js.map +0 -1
  250. package/bundles/angular-fire-functions.umd.js +0 -461
  251. package/bundles/angular-fire-functions.umd.js.map +0 -1
  252. package/bundles/angular-fire-messaging.umd.js +0 -473
  253. package/bundles/angular-fire-messaging.umd.js.map +0 -1
  254. package/bundles/angular-fire-performance.umd.js +0 -473
  255. package/bundles/angular-fire-performance.umd.js.map +0 -1
  256. package/bundles/angular-fire-remote-config.umd.js +0 -499
  257. package/bundles/angular-fire-remote-config.umd.js.map +0 -1
  258. package/bundles/angular-fire-storage.umd.js +0 -485
  259. package/bundles/angular-fire-storage.umd.js.map +0 -1
  260. package/bundles/angular-fire.umd.js +0 -308
  261. package/bundles/angular-fire.umd.js.map +0 -1
  262. package/compat/analytics/package.json +0 -11
  263. package/compat/auth/package.json +0 -11
  264. package/compat/auth-guard/package.json +0 -11
  265. package/compat/database/package.json +0 -11
  266. package/compat/firestore/package.json +0 -11
  267. package/compat/functions/package.json +0 -11
  268. package/compat/messaging/package.json +0 -11
  269. package/compat/package.json +0 -11
  270. package/compat/performance/package.json +0 -11
  271. package/compat/remote-config/package.json +0 -11
  272. package/compat/storage/package.json +0 -11
  273. package/database/package.json +0 -11
  274. package/docs/analytics.md +0 -67
  275. package/docs/app-check.md +0 -53
  276. package/docs/auth.md +0 -165
  277. package/docs/compat/analytics/getting-started.md +0 -137
  278. package/docs/compat/auth/getting-started.md +0 -162
  279. package/docs/compat/auth/router-guards.md +0 -104
  280. package/docs/compat/emulators/emulators.md +0 -134
  281. package/docs/compat/firestore/collections.md +0 -326
  282. package/docs/compat/firestore/documents.md +0 -115
  283. package/docs/compat/firestore/offline-data.md +0 -39
  284. package/docs/compat/firestore/querying-collections.md +0 -204
  285. package/docs/compat/functions/functions.md +0 -166
  286. package/docs/compat/messaging/messaging.md +0 -232
  287. package/docs/compat/performance/getting-started.md +0 -132
  288. package/docs/compat/remote-config/getting-started.md +0 -134
  289. package/docs/compat/rtdb/lists.md +0 -257
  290. package/docs/compat/rtdb/objects.md +0 -182
  291. package/docs/compat/rtdb/querying-lists.md +0 -155
  292. package/docs/compat/storage/storage.md +0 -257
  293. package/docs/compat.md +0 -70
  294. package/docs/database.md +0 -175
  295. package/docs/deploy/getting-started.md +0 -204
  296. package/docs/firebase.json +0 -16
  297. package/docs/firestore.md +0 -148
  298. package/docs/functions.md +0 -52
  299. package/docs/images/analytics-illo_1x.png +0 -0
  300. package/docs/images/auth-illo_1x.png +0 -0
  301. package/docs/images/cloud-messaging-illo_1x.png +0 -0
  302. package/docs/images/database-illo_1x.png +0 -0
  303. package/docs/images/firestore-illo_1x.png +0 -0
  304. package/docs/images/functions-illo_1x.png +0 -0
  305. package/docs/images/hosting-illo_1x.png +0 -0
  306. package/docs/images/performance-illo_1x.png +0 -0
  307. package/docs/images/reCAPTCHA-logo@1x.png +0 -0
  308. package/docs/images/remote-config-illo_1x.png +0 -0
  309. package/docs/images/storage-illo_1x.png +0 -0
  310. package/docs/install-and-setup.md +0 -114
  311. package/docs/install-angular-cli-windows10.md +0 -82
  312. package/docs/messaging.md +0 -25
  313. package/docs/performance.md +0 -57
  314. package/docs/remote-config.md +0 -53
  315. package/docs/storage.md +0 -90
  316. package/docs/universal/cloud-functions.md +0 -75
  317. package/docs/universal/getting-started.md +0 -153
  318. package/docs/universal/prerendering.md +0 -72
  319. package/docs/version-4-upgrade.md +0 -119
  320. package/docs/version-5-upgrade.md +0 -82
  321. package/docs/version-6-upgrade.md +0 -16
  322. package/docs/version-7-upgrade.md +0 -298
  323. package/esm2015/analytics/analytics.module.js +0 -93
  324. package/esm2015/analytics/overrides.js +0 -3
  325. package/esm2015/analytics/screen-tracking.service.js +0 -139
  326. package/esm2015/analytics/user-tracking.service.js +0 -43
  327. package/esm2015/app/app.module.js +0 -84
  328. package/esm2015/app-check/app-check.js +0 -16
  329. package/esm2015/app-check/app-check.module.js +0 -81
  330. package/esm2015/app-check/public_api.js +0 -4
  331. package/esm2015/auth/auth.module.js +0 -71
  332. package/esm2015/auth-guard/auth-guard.js +0 -49
  333. package/esm2015/compat/analytics/analytics.js +0 -163
  334. package/esm2015/compat/analytics/analytics.module.js +0 -32
  335. package/esm2015/compat/analytics/screen-tracking.service.js +0 -49
  336. package/esm2015/compat/analytics/user-tracking.service.js +0 -52
  337. package/esm2015/compat/auth/auth.js +0 -139
  338. package/esm2015/compat/auth-guard/auth-guard.js +0 -49
  339. package/esm2015/compat/database/database.js +0 -117
  340. package/esm2015/compat/database/interfaces.js +0 -2
  341. package/esm2015/compat/database/list/changes.js +0 -85
  342. package/esm2015/compat/database/list/create-reference.js +0 -41
  343. package/esm2015/compat/database/observable/fromRef.js +0 -47
  344. package/esm2015/compat/firebase.app.module.js +0 -69
  345. package/esm2015/compat/firestore/collection/changes.js +0 -107
  346. package/esm2015/compat/firestore/collection/collection.js +0 -117
  347. package/esm2015/compat/firestore/collection-group/collection-group.js +0 -81
  348. package/esm2015/compat/firestore/document/document.js +0 -82
  349. package/esm2015/compat/firestore/firestore.js +0 -254
  350. package/esm2015/compat/firestore/interfaces.js +0 -2
  351. package/esm2015/compat/firestore/observable/fromRef.js +0 -39
  352. package/esm2015/compat/functions/functions.js +0 -68
  353. package/esm2015/compat/messaging/messaging.js +0 -75
  354. package/esm2015/compat/performance/performance.js +0 -110
  355. package/esm2015/compat/performance/performance.module.js +0 -28
  356. package/esm2015/compat/performance/performance.service.js +0 -27
  357. package/esm2015/compat/proxy.js +0 -61
  358. package/esm2015/compat/remote-config/remote-config.js +0 -193
  359. package/esm2015/compat/storage/observable/fromTask.js +0 -34
  360. package/esm2015/compat/storage/pipes/storageUrl.pipe.js +0 -54
  361. package/esm2015/compat/storage/storage.js +0 -94
  362. package/esm2015/compat/storage/storage.module.js +0 -22
  363. package/esm2015/core.js +0 -79
  364. package/esm2015/database/database.module.js +0 -74
  365. package/esm2015/firestore/firebase.js +0 -53
  366. package/esm2015/firestore/firestore.module.js +0 -74
  367. package/esm2015/firestore/lite/lite.module.js +0 -74
  368. package/esm2015/firestore/rxfire.js +0 -13
  369. package/esm2015/functions/functions.module.js +0 -74
  370. package/esm2015/messaging/messaging.module.js +0 -85
  371. package/esm2015/messaging/overrides.js +0 -3
  372. package/esm2015/performance/performance.module.js +0 -81
  373. package/esm2015/remote-config/overrides.js +0 -3
  374. package/esm2015/remote-config/remote-config.module.js +0 -85
  375. package/esm2015/storage/storage.module.js +0 -74
  376. package/esm2015/zones.js +0 -183
  377. package/fesm2015/angular-fire-analytics.js.map +0 -1
  378. package/fesm2015/angular-fire-app-check.js.map +0 -1
  379. package/fesm2015/angular-fire-app.js.map +0 -1
  380. package/fesm2015/angular-fire-auth-guard.js.map +0 -1
  381. package/fesm2015/angular-fire-auth.js.map +0 -1
  382. package/fesm2015/angular-fire-compat-analytics.js.map +0 -1
  383. package/fesm2015/angular-fire-compat-auth-guard.js.map +0 -1
  384. package/fesm2015/angular-fire-compat-auth.js.map +0 -1
  385. package/fesm2015/angular-fire-compat-database.js.map +0 -1
  386. package/fesm2015/angular-fire-compat-firestore.js.map +0 -1
  387. package/fesm2015/angular-fire-compat-functions.js.map +0 -1
  388. package/fesm2015/angular-fire-compat-messaging.js.map +0 -1
  389. package/fesm2015/angular-fire-compat-performance.js.map +0 -1
  390. package/fesm2015/angular-fire-compat-remote-config.js.map +0 -1
  391. package/fesm2015/angular-fire-compat-storage.js.map +0 -1
  392. package/fesm2015/angular-fire-compat.js.map +0 -1
  393. package/fesm2015/angular-fire-database.js.map +0 -1
  394. package/fesm2015/angular-fire-firestore-lite.js.map +0 -1
  395. package/fesm2015/angular-fire-firestore.js.map +0 -1
  396. package/fesm2015/angular-fire-functions.js.map +0 -1
  397. package/fesm2015/angular-fire-messaging.js.map +0 -1
  398. package/fesm2015/angular-fire-performance.js.map +0 -1
  399. package/fesm2015/angular-fire-remote-config.js.map +0 -1
  400. package/fesm2015/angular-fire-storage.js.map +0 -1
  401. package/fesm2015/angular-fire.js.map +0 -1
  402. package/firestore/lite/package.json +0 -11
  403. package/firestore/package.json +0 -11
  404. package/firestore-protos.js +0 -4
  405. package/functions/package.json +0 -11
  406. package/messaging/package.json +0 -11
  407. package/performance/package.json +0 -11
  408. package/remote-config/package.json +0 -11
  409. package/schematics/add/schema.json +0 -16
  410. package/schematics/builders.json +0 -10
  411. package/schematics/collection.json +0 -15
  412. package/schematics/deploy/schema.json +0 -119
  413. package/schematics/migration.json +0 -15
  414. package/schematics/setup/schema.json +0 -16
  415. package/storage/package.json +0 -11
  416. /package/analytics/{angular-fire-analytics.d.ts → index.d.ts} +0 -0
  417. /package/app/{angular-fire-app.d.ts → index.d.ts} +0 -0
  418. /package/app-check/{angular-fire-app-check.d.ts → index.d.ts} +0 -0
  419. /package/auth/{angular-fire-auth.d.ts → index.d.ts} +0 -0
  420. /package/auth-guard/{angular-fire-auth-guard.d.ts → index.d.ts} +0 -0
  421. /package/compat/analytics/{angular-fire-compat-analytics.d.ts → index.d.ts} +0 -0
  422. /package/compat/auth/{angular-fire-compat-auth.d.ts → index.d.ts} +0 -0
  423. /package/compat/auth-guard/{angular-fire-compat-auth-guard.d.ts → index.d.ts} +0 -0
  424. /package/compat/database/{angular-fire-compat-database.d.ts → index.d.ts} +0 -0
  425. /package/compat/firestore/{angular-fire-compat-firestore.d.ts → index.d.ts} +0 -0
  426. /package/compat/functions/{angular-fire-compat-functions.d.ts → index.d.ts} +0 -0
  427. /package/compat/{angular-fire-compat.d.ts → index.d.ts} +0 -0
  428. /package/compat/messaging/{angular-fire-compat-messaging.d.ts → index.d.ts} +0 -0
  429. /package/compat/performance/{angular-fire-compat-performance.d.ts → index.d.ts} +0 -0
  430. /package/compat/remote-config/{angular-fire-compat-remote-config.d.ts → index.d.ts} +0 -0
  431. /package/compat/storage/{angular-fire-compat-storage.d.ts → index.d.ts} +0 -0
  432. /package/database/{angular-fire-database.d.ts → index.d.ts} +0 -0
  433. /package/{esm2015/analytics/angular-fire-analytics.js → esm2022/analytics/angular-fire-analytics.mjs} +0 -0
  434. /package/{esm2015/analytics/firebase.js → esm2022/analytics/firebase.mjs} +0 -0
  435. /package/{esm2015/analytics/public_api.js → esm2022/analytics/public_api.mjs} +0 -0
  436. /package/{esm2015/angular-fire.js → esm2022/angular-fire.mjs} +0 -0
  437. /package/{esm2015/app/angular-fire-app.js → esm2022/app/angular-fire-app.mjs} +0 -0
  438. /package/{esm2015/app/firebase.js → esm2022/app/firebase.mjs} +0 -0
  439. /package/{esm2015/app/public_api.js → esm2022/app/public_api.mjs} +0 -0
  440. /package/{esm2015/app-check/angular-fire-app-check.js → esm2022/app-check/angular-fire-app-check.mjs} +0 -0
  441. /package/{esm2015/app-check/firebase.js → esm2022/app-check/firebase.mjs} +0 -0
  442. /package/{esm2015/auth/angular-fire-auth.js → esm2022/auth/angular-fire-auth.mjs} +0 -0
  443. /package/{esm2015/auth/firebase.js → esm2022/auth/firebase.mjs} +0 -0
  444. /package/{esm2015/auth/public_api.js → esm2022/auth/public_api.mjs} +0 -0
  445. /package/{esm2015/auth/rxfire.js → esm2022/auth/rxfire.mjs} +0 -0
  446. /package/{esm2015/auth-guard/angular-fire-auth-guard.js → esm2022/auth-guard/angular-fire-auth-guard.mjs} +0 -0
  447. /package/{esm2015/auth-guard/public_api.js → esm2022/auth-guard/public_api.mjs} +0 -0
  448. /package/{esm2015/compat/analytics/angular-fire-compat-analytics.js → esm2022/compat/analytics/angular-fire-compat-analytics.mjs} +0 -0
  449. /package/{esm2015/compat/analytics/base.js → esm2022/compat/analytics/base.mjs} +0 -0
  450. /package/{esm2015/compat/analytics/public_api.js → esm2022/compat/analytics/public_api.mjs} +0 -0
  451. /package/{esm2015/compat/angular-fire-compat.js → esm2022/compat/angular-fire-compat.mjs} +0 -0
  452. /package/{esm2015/compat/auth/angular-fire-compat-auth.js → esm2022/compat/auth/angular-fire-compat-auth.mjs} +0 -0
  453. /package/{esm2015/compat/auth/base.js → esm2022/compat/auth/base.mjs} +0 -0
  454. /package/{esm2015/compat/auth-guard/angular-fire-compat-auth-guard.js → esm2022/compat/auth-guard/angular-fire-compat-auth-guard.mjs} +0 -0
  455. /package/{esm2015/compat/auth-guard/public_api.js → esm2022/compat/auth-guard/public_api.mjs} +0 -0
  456. /package/{esm2015/compat/database/angular-fire-compat-database.js → esm2022/compat/database/angular-fire-compat-database.mjs} +0 -0
  457. /package/{esm2015/compat/database/list/remove.js → esm2022/compat/database/list/remove.mjs} +0 -0
  458. /package/{esm2015/compat/database/list/utils.js → esm2022/compat/database/list/utils.mjs} +0 -0
  459. /package/{esm2015/compat/database/public_api.js → esm2022/compat/database/public_api.mjs} +0 -0
  460. /package/{esm2015/compat/firestore/angular-fire-compat-firestore.js → esm2022/compat/firestore/angular-fire-compat-firestore.mjs} +0 -0
  461. /package/{esm2015/compat/firestore/public_api.js → esm2022/compat/firestore/public_api.mjs} +0 -0
  462. /package/{esm2015/compat/functions/angular-fire-compat-functions.js → esm2022/compat/functions/angular-fire-compat-functions.mjs} +0 -0
  463. /package/{esm2015/compat/functions/base.js → esm2022/compat/functions/base.mjs} +0 -0
  464. /package/{esm2015/compat/messaging/angular-fire-compat-messaging.js → esm2022/compat/messaging/angular-fire-compat-messaging.mjs} +0 -0
  465. /package/{esm2015/compat/messaging/base.js → esm2022/compat/messaging/base.mjs} +0 -0
  466. /package/{esm2015/compat/messaging/public_api.js → esm2022/compat/messaging/public_api.mjs} +0 -0
  467. /package/{esm2015/compat/performance/angular-fire-compat-performance.js → esm2022/compat/performance/angular-fire-compat-performance.mjs} +0 -0
  468. /package/{esm2015/compat/performance/base.js → esm2022/compat/performance/base.mjs} +0 -0
  469. /package/{esm2015/compat/performance/public_api.js → esm2022/compat/performance/public_api.mjs} +0 -0
  470. /package/{esm2015/compat/public_api.js → esm2022/compat/public_api.mjs} +0 -0
  471. /package/{esm2015/compat/remote-config/angular-fire-compat-remote-config.js → esm2022/compat/remote-config/angular-fire-compat-remote-config.mjs} +0 -0
  472. /package/{esm2015/compat/remote-config/base.js → esm2022/compat/remote-config/base.mjs} +0 -0
  473. /package/{esm2015/compat/remote-config/interfaces.js → esm2022/compat/remote-config/interfaces.mjs} +0 -0
  474. /package/{esm2015/compat/remote-config/public_api.js → esm2022/compat/remote-config/public_api.mjs} +0 -0
  475. /package/{esm2015/compat/storage/angular-fire-compat-storage.js → esm2022/compat/storage/angular-fire-compat-storage.mjs} +0 -0
  476. /package/{esm2015/compat/storage/interfaces.js → esm2022/compat/storage/interfaces.mjs} +0 -0
  477. /package/{esm2015/compat/storage/public_api.js → esm2022/compat/storage/public_api.mjs} +0 -0
  478. /package/{esm2015/database/angular-fire-database.js → esm2022/database/angular-fire-database.mjs} +0 -0
  479. /package/{esm2015/database/firebase.js → esm2022/database/firebase.mjs} +0 -0
  480. /package/{esm2015/database/public_api.js → esm2022/database/public_api.mjs} +0 -0
  481. /package/{esm2015/database/rxfire.js → esm2022/database/rxfire.mjs} +0 -0
  482. /package/{esm2015/firestore/angular-fire-firestore.js → esm2022/firestore/angular-fire-firestore.mjs} +0 -0
  483. /package/{esm2015/firestore/lite/angular-fire-firestore-lite.js → esm2022/firestore/lite/angular-fire-firestore-lite.mjs} +0 -0
  484. /package/{esm2015/firestore/lite/firebase.js → esm2022/firestore/lite/firebase.mjs} +0 -0
  485. /package/{esm2015/firestore/lite/public_api.js → esm2022/firestore/lite/public_api.mjs} +0 -0
  486. /package/{esm2015/firestore/lite/rxfire.js → esm2022/firestore/lite/rxfire.mjs} +0 -0
  487. /package/{esm2015/firestore/public_api.js → esm2022/firestore/public_api.mjs} +0 -0
  488. /package/{esm2015/functions/angular-fire-functions.js → esm2022/functions/angular-fire-functions.mjs} +0 -0
  489. /package/{esm2015/functions/firebase.js → esm2022/functions/firebase.mjs} +0 -0
  490. /package/{esm2015/functions/public_api.js → esm2022/functions/public_api.mjs} +0 -0
  491. /package/{esm2015/functions/rxfire.js → esm2022/functions/rxfire.mjs} +0 -0
  492. /package/{esm2015/messaging/angular-fire-messaging.js → esm2022/messaging/angular-fire-messaging.mjs} +0 -0
  493. /package/{esm2015/messaging/firebase.js → esm2022/messaging/firebase.mjs} +0 -0
  494. /package/{esm2015/messaging/public_api.js → esm2022/messaging/public_api.mjs} +0 -0
  495. /package/{esm2015/performance/angular-fire-performance.js → esm2022/performance/angular-fire-performance.mjs} +0 -0
  496. /package/{esm2015/performance/firebase.js → esm2022/performance/firebase.mjs} +0 -0
  497. /package/{esm2015/performance/public_api.js → esm2022/performance/public_api.mjs} +0 -0
  498. /package/{esm2015/performance/rxfire.js → esm2022/performance/rxfire.mjs} +0 -0
  499. /package/{esm2015/public_api.js → esm2022/public_api.mjs} +0 -0
  500. /package/{esm2015/remote-config/angular-fire-remote-config.js → esm2022/remote-config/angular-fire-remote-config.mjs} +0 -0
  501. /package/{esm2015/remote-config/firebase.js → esm2022/remote-config/firebase.mjs} +0 -0
  502. /package/{esm2015/remote-config/public_api.js → esm2022/remote-config/public_api.mjs} +0 -0
  503. /package/{esm2015/remote-config/rxfire.js → esm2022/remote-config/rxfire.mjs} +0 -0
  504. /package/{esm2015/storage/angular-fire-storage.js → esm2022/storage/angular-fire-storage.mjs} +0 -0
  505. /package/{esm2015/storage/firebase.js → esm2022/storage/firebase.mjs} +0 -0
  506. /package/{esm2015/storage/public_api.js → esm2022/storage/public_api.mjs} +0 -0
  507. /package/{esm2015/storage/rxfire.js → esm2022/storage/rxfire.mjs} +0 -0
  508. /package/firestore/{angular-fire-firestore.d.ts → index.d.ts} +0 -0
  509. /package/firestore/lite/{angular-fire-firestore-lite.d.ts → index.d.ts} +0 -0
  510. /package/functions/{angular-fire-functions.d.ts → index.d.ts} +0 -0
  511. /package/{angular-fire.d.ts → index.d.ts} +0 -0
  512. /package/messaging/{angular-fire-messaging.d.ts → index.d.ts} +0 -0
  513. /package/performance/{angular-fire-performance.d.ts → index.d.ts} +0 -0
  514. /package/remote-config/{angular-fire-remote-config.d.ts → index.d.ts} +0 -0
  515. /package/storage/{angular-fire-storage.d.ts → index.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular-fire-compat-database.mjs","sources":["../../../src/compat/database/observable/fromRef.ts","../../../src/compat/database/utils.ts","../../../src/compat/database/list/utils.ts","../../../src/compat/database/list/state-changes.ts","../../../src/compat/database/list/audit-trail.ts","../../../src/compat/database/list/data-operation.ts","../../../src/compat/database/list/remove.ts","../../../src/compat/database/list/changes.ts","../../../src/compat/database/list/snapshot-changes.ts","../../../src/compat/database/list/create-reference.ts","../../../src/compat/database/object/snapshot-changes.ts","../../../src/compat/database/object/create-reference.ts","../../../src/compat/database/database.ts","../../../src/compat/database/database.module.ts","../../../src/compat/database/angular-fire-compat-database.ts"],"sourcesContent":["import { Observable, SchedulerLike, asyncScheduler } from 'rxjs';\nimport { map, share } from 'rxjs/operators';\nimport { AngularFireAction, DatabaseQuery, DatabaseSnapshot, ListenEvent } from '../interfaces';\n\ninterface SnapshotPrevKey<T> {\n snapshot: DatabaseSnapshot<T>;\n prevKey: string | null | undefined;\n}\n\n/**\n * Create an observable from a Database Reference or Database Query.\n * @param ref Database Reference\n * @param event Listen event type ('value', 'added', 'changed', 'removed', 'moved')\n * @param listenType 'on' or 'once'\n * @param scheduler - Rxjs scheduler\n */\nexport function fromRef<T>(ref: DatabaseQuery,\n event: ListenEvent,\n listenType = 'on',\n scheduler: SchedulerLike = asyncScheduler\n): Observable<AngularFireAction<DatabaseSnapshot<T>>> {\n return new Observable<SnapshotPrevKey<T>>(subscriber => {\n let fn: any = null;\n fn = ref[listenType](event, (snapshot, prevKey) => {\n scheduler.schedule(() => {\n subscriber.next({ snapshot, prevKey });\n });\n if (listenType === 'once') {\n scheduler.schedule(() => subscriber.complete());\n }\n }, err => {\n scheduler.schedule(() => subscriber.error(err));\n });\n\n if (listenType === 'on') {\n return {\n unsubscribe() {\n if (fn != null) {\n ref.off(event, fn);\n }\n }\n };\n } else {\n return {\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n unsubscribe() {\n }\n };\n }\n }).pipe(\n map(payload => {\n const { snapshot, prevKey } = payload;\n let key: string | null = null;\n if (snapshot.exists()) {\n key = snapshot.key;\n }\n return { type: event, payload: snapshot, prevKey, key };\n }),\n share()\n );\n}\n","import firebase from 'firebase/compat/app';\nimport { DatabaseReference, FirebaseOperation, FirebaseOperationCases, PathReference } from './interfaces';\n\nexport function isString(value: any): boolean {\n return typeof value === 'string';\n}\n\nexport function isFirebaseDataSnapshot(value: any): boolean {\n return typeof value.exportVal === 'function';\n}\n\nexport function isNil(obj: any): boolean {\n return obj === undefined || obj === null;\n}\n\nexport function isFirebaseRef(value: any): boolean {\n return typeof value.set === 'function';\n}\n\n/**\n * Returns a database reference given a Firebase App and an\n * absolute or relative path.\n * @param database - Firebase Database\n * @param pathRef - Database path, relative or absolute\n */\nexport function getRef(database: firebase.database.Database, pathRef: PathReference): DatabaseReference {\n // if a db ref was passed in, just return it\n return isFirebaseRef(pathRef) ? pathRef as DatabaseReference\n : database.ref(pathRef as string);\n}\n\nexport function checkOperationCases(item: FirebaseOperation, cases: FirebaseOperationCases): Promise<void> {\n if (isString(item)) {\n return cases.stringCase();\n } else if (isFirebaseRef(item)) {\n return cases.firebaseCase();\n } else if (isFirebaseDataSnapshot(item)) {\n return cases.snapshotCase();\n }\n throw new Error(`Expects a string, snapshot, or reference. Got: ${typeof item}`);\n}\n","import { isNil } from '../utils';\n\nexport function validateEventsArray(events?: any[]) {\n if (isNil(events) || events.length === 0) {\n events = ['child_added', 'child_removed', 'child_changed', 'child_moved'];\n }\n return events;\n}\n","import { SchedulerLike, merge } from 'rxjs';\nimport { ChildEvent, DatabaseQuery } from '../interfaces';\nimport { fromRef } from '../observable/fromRef';\nimport { validateEventsArray } from './utils';\n\nexport function stateChanges<T>(query: DatabaseQuery, events?: ChildEvent[], scheduler?: SchedulerLike) {\n events = validateEventsArray(events);\n const childEvent$ = events.map(event => fromRef<T>(query, event, 'on', scheduler));\n return merge(...childEvent$);\n}\n","import { Observable, SchedulerLike } from 'rxjs';\nimport { map, scan, skipWhile, withLatestFrom } from 'rxjs/operators';\nimport { AngularFireAction, ChildEvent, DataSnapshot, DatabaseQuery, SnapshotAction } from '../interfaces';\nimport { fromRef } from '../observable/fromRef';\nimport { stateChanges } from './state-changes';\n\n\nexport function auditTrail<T>(query: DatabaseQuery, events?: ChildEvent[], scheduler?: SchedulerLike): Observable<SnapshotAction<T>[]> {\n const auditTrail$ = stateChanges<T>(query, events)\n .pipe(\n scan((current, action) => [...current, action], [])\n );\n return waitForLoaded<T>(query, auditTrail$, scheduler);\n}\n\ninterface LoadedMetadata {\n data: AngularFireAction<DataSnapshot>;\n lastKeyToLoad: any;\n}\n\nfunction loadedData<T>(query: DatabaseQuery, scheduler?: SchedulerLike): Observable<LoadedMetadata> {\n // Create an observable of loaded values to retrieve the\n // known dataset. This will allow us to know what key to\n // emit the \"whole\" array at when listening for child events.\n return fromRef<T>(query, 'value', 'on', scheduler)\n .pipe(\n map(data => {\n // Store the last key in the data set\n let lastKeyToLoad;\n // Loop through loaded dataset to find the last key\n data.payload.forEach(child => {\n lastKeyToLoad = child.key; return false;\n });\n // return data set and the current last key loaded\n return { data, lastKeyToLoad };\n })\n );\n}\n\nfunction waitForLoaded<T>(query: DatabaseQuery, action$: Observable<SnapshotAction<T>[]>, scheduler?: SchedulerLike) {\n const loaded$ = loadedData<T>(query, scheduler);\n return loaded$\n .pipe(\n withLatestFrom(action$),\n // Get the latest values from the \"loaded\" and \"child\" datasets\n // We can use both datasets to form an array of the latest values.\n map(([loaded, actions]) => {\n // Store the last key in the data set\n const lastKeyToLoad = loaded.lastKeyToLoad;\n // Store all child keys loaded at this point\n const loadedKeys = actions.map(snap => snap.key);\n return { actions, lastKeyToLoad, loadedKeys };\n }),\n // This is the magical part, only emit when the last load key\n // in the dataset has been loaded by a child event. At this point\n // we can assume the dataset is \"whole\".\n skipWhile(meta => meta.loadedKeys.indexOf(meta.lastKeyToLoad) === -1),\n // Pluck off the meta data because the user only cares\n // to iterate through the snapshots\n map(meta => meta.actions)\n );\n}\n","import { DatabaseReference, DatabaseSnapshot, FirebaseOperation } from '../interfaces';\nimport { checkOperationCases } from '../utils';\n\nexport function createDataOperationMethod(ref: DatabaseReference, operation: string) {\n return function dataOperation<T>(item: FirebaseOperation, value: T) {\n return checkOperationCases(item, {\n stringCase: () => ref.child(item as string)[operation](value),\n firebaseCase: () => (item as DatabaseReference)[operation](value),\n snapshotCase: () => (item as DatabaseSnapshot<T>).ref[operation](value)\n });\n };\n}\n","import { DatabaseReference, DatabaseSnapshot, FirebaseOperation } from '../interfaces';\nimport { checkOperationCases } from '../utils';\n\n// TODO(davideast): Find out why TS thinks this returns firebase.Primise\n// instead of Promise.\nexport function createRemoveMethod<T>(ref: DatabaseReference) {\n return function remove(item?: FirebaseOperation): any {\n if (!item) { return ref.remove(); }\n return checkOperationCases(item, {\n stringCase: () => ref.child(item as string).remove(),\n firebaseCase: () => (item as DatabaseReference).remove(),\n snapshotCase: () => (item as DatabaseSnapshot<T>).ref.remove()\n });\n };\n}\n","import { Observable, SchedulerLike, merge, of } from 'rxjs';\nimport { distinctUntilChanged, scan, switchMap } from 'rxjs/operators';\nimport { ChildEvent, DatabaseQuery, SnapshotAction } from '../interfaces';\nimport { fromRef } from '../observable/fromRef';\nimport { isNil } from '../utils';\n\n\nexport function listChanges<T = any>(ref: DatabaseQuery, events: ChildEvent[], scheduler?: SchedulerLike): Observable<SnapshotAction<T>[]> {\n return fromRef(ref, 'value', 'once', scheduler).pipe(\n switchMap(snapshotAction => {\n const childEvent$ = [of(snapshotAction)];\n events.forEach(event => childEvent$.push(fromRef(ref, event, 'on', scheduler)));\n return merge(...childEvent$).pipe(scan(buildView, []));\n }),\n distinctUntilChanged()\n );\n}\n\nfunction positionFor<T>(changes: SnapshotAction<T>[], key) {\n const len = changes.length;\n for (let i = 0; i < len; i++) {\n if (changes[i].payload.key === key) {\n return i;\n }\n }\n return -1;\n}\n\nfunction positionAfter<T>(changes: SnapshotAction<T>[], prevKey?: string) {\n if (isNil(prevKey)) {\n return 0;\n } else {\n const i = positionFor(changes, prevKey);\n if (i === -1) {\n return changes.length;\n } else {\n return i + 1;\n }\n }\n}\n\nfunction buildView(current, action) {\n const { payload, prevKey, key } = action;\n const currentKeyPosition = positionFor(current, key);\n const afterPreviousKeyPosition = positionAfter(current, prevKey);\n switch (action.type) {\n case 'value':\n if (action.payload?.exists()) {\n let prevKey = null;\n action.payload.forEach(payload => {\n const action = { payload, type: 'value', prevKey, key: payload.key };\n prevKey = payload.key;\n current = [...current, action];\n return false;\n });\n }\n return current;\n case 'child_added':\n if (currentKeyPosition > -1) {\n // check that the previouskey is what we expect, else reorder\n const previous = current[currentKeyPosition - 1];\n if ((previous?.key || null) !== prevKey) {\n current = current.filter(x => x.payload.key !== payload.key);\n current.splice(afterPreviousKeyPosition, 0, action);\n }\n } else if (prevKey == null) {\n return [action, ...current];\n } else {\n current = current.slice();\n current.splice(afterPreviousKeyPosition, 0, action);\n }\n return current;\n case 'child_removed':\n return current.filter(x => x.payload.key !== payload.key);\n case 'child_changed':\n return current.map(x => x.payload.key === key ? action : x);\n case 'child_moved':\n if (currentKeyPosition > -1) {\n const data = current.splice(currentKeyPosition, 1)[0];\n current = current.slice();\n current.splice(afterPreviousKeyPosition, 0, data);\n return current;\n }\n return current;\n // default will also remove null results\n default:\n return current;\n }\n}\n","import { Observable, SchedulerLike } from 'rxjs';\nimport { ChildEvent, DatabaseQuery, SnapshotAction } from '../interfaces';\nimport { listChanges } from './changes';\nimport { validateEventsArray } from './utils';\n\nexport function snapshotChanges<T>(\n query: DatabaseQuery,\n events?: ChildEvent[],\n scheduler?: SchedulerLike\n): Observable<SnapshotAction<T>[]> {\n events = validateEventsArray(events);\n return listChanges<T>(query, events, scheduler);\n}\n","import { keepUnstableUntilFirst } from '@angular/fire';\nimport type { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { AngularFireDatabase } from '../database';\nimport { AngularFireList, ChildEvent, DatabaseQuery } from '../interfaces';\nimport { auditTrail } from './audit-trail';\nimport { createDataOperationMethod } from './data-operation';\nimport { createRemoveMethod } from './remove';\nimport { snapshotChanges } from './snapshot-changes';\nimport { stateChanges } from './state-changes';\n\nexport function createListReference<T= any>(query: DatabaseQuery, afDatabase: AngularFireDatabase): AngularFireList<T> {\n const outsideAngularScheduler = afDatabase.schedulers.outsideAngular;\n const refInZone = afDatabase.schedulers.ngZone.run(() => query.ref);\n return {\n query,\n update: createDataOperationMethod(refInZone, 'update'),\n set: createDataOperationMethod(refInZone, 'set'),\n push: (data: T) => refInZone.push(data),\n remove: createRemoveMethod(refInZone),\n snapshotChanges(events?: ChildEvent[]) {\n return snapshotChanges<T>(query, events, outsideAngularScheduler).pipe(keepUnstableUntilFirst);\n },\n stateChanges(events?: ChildEvent[]) {\n return stateChanges<T>(query, events, outsideAngularScheduler).pipe(keepUnstableUntilFirst);\n },\n auditTrail(events?: ChildEvent[]) {\n return auditTrail<T>(query, events, outsideAngularScheduler).pipe(keepUnstableUntilFirst);\n },\n valueChanges<K extends string>(events?: ChildEvent[], options?: {idField?: K}): Observable<(T & Record<string, string>)[]> {\n const snapshotChanges$ = snapshotChanges<T>(query, events, outsideAngularScheduler);\n return snapshotChanges$.pipe(\n map(actions => actions.map(a => {\n if (options && options.idField) {\n return {\n ...a.payload.val() as T,\n ...{\n [options.idField]: a.key\n }\n };\n } else {\n return a.payload.val() as T & Record<string, string>\n }\n })),\n keepUnstableUntilFirst\n );\n }\n };\n}\n","import { Observable, SchedulerLike } from 'rxjs';\nimport { DatabaseQuery, SnapshotAction } from '../interfaces';\nimport { fromRef } from '../observable/fromRef';\n\nexport function createObjectSnapshotChanges<T>(query: DatabaseQuery, scheduler?: SchedulerLike) {\n return function snapshotChanges(): Observable<SnapshotAction<T>> {\n return fromRef(query, 'value', 'on', scheduler);\n };\n}\n","import { keepUnstableUntilFirst } from '@angular/fire';\nimport { map } from 'rxjs/operators';\nimport { AngularFireDatabase } from '../database';\nimport { AngularFireObject, DatabaseQuery } from '../interfaces';\nimport { createObjectSnapshotChanges } from './snapshot-changes';\n\nexport function createObjectReference<T= any>(query: DatabaseQuery, afDatabase: AngularFireDatabase): AngularFireObject<T> {\n return {\n query,\n snapshotChanges<T>() {\n return createObjectSnapshotChanges<T>(query, afDatabase.schedulers.outsideAngular)().pipe(\n keepUnstableUntilFirst\n );\n },\n update(data: Partial<T>) { return query.ref.update(data as any) as Promise<void>; },\n set(data: T) { return query.ref.set(data) as Promise<void>; },\n remove() { return query.ref.remove() as Promise<void>; },\n valueChanges<T>() {\n const snapshotChanges$ = createObjectSnapshotChanges(query, afDatabase.schedulers.outsideAngular)();\n return snapshotChanges$.pipe(\n keepUnstableUntilFirst,\n map(action => action.payload.exists() ? action.payload.val() as T : null)\n );\n },\n };\n}\n","import { Inject, Injectable, InjectionToken, NgZone, Optional, PLATFORM_ID } from '@angular/core';\nimport { ɵAngularFireSchedulers } from '@angular/fire';\nimport { AppCheckInstances } from '@angular/fire/app-check';\nimport { FIREBASE_APP_NAME, FIREBASE_OPTIONS, ɵcacheInstance, ɵfirebaseAppFactory } from '@angular/fire/compat';\nimport {\n SETTINGS as AUTH_SETTINGS,\n AngularFireAuth,\n LANGUAGE_CODE,\n PERSISTENCE,\n TENANT_ID,\n USE_EMULATOR as USE_AUTH_EMULATOR,\n USE_DEVICE_LANGUAGE,\n ɵauthFactory,\n} from '@angular/fire/compat/auth';\nimport { FirebaseOptions } from 'firebase/app';\nimport firebase from 'firebase/compat/app';\nimport { AngularFireList, AngularFireObject, DatabaseQuery, PathReference, QueryFn } from './interfaces';\nimport { createListReference } from './list/create-reference';\nimport { createObjectReference } from './object/create-reference';\nimport { getRef } from './utils';\nimport 'firebase/compat/auth';\nimport 'firebase/compat/database';\n\nexport const URL = new InjectionToken<string>('angularfire2.realtimeDatabaseURL');\n\ntype UseEmulatorArguments = Parameters<firebase.database.Database['useEmulator']>;\nexport const USE_EMULATOR = new InjectionToken<UseEmulatorArguments>('angularfire2.database.use-emulator');\n\n@Injectable({\n providedIn: 'any'\n})\nexport class AngularFireDatabase {\n public readonly database: firebase.database.Database;\n\n constructor(\n @Inject(FIREBASE_OPTIONS) options: FirebaseOptions,\n @Optional() @Inject(FIREBASE_APP_NAME) name: string | null | undefined,\n @Optional() @Inject(URL) databaseURL: string | null,\n // eslint-disable-next-line @typescript-eslint/ban-types\n @Inject(PLATFORM_ID) platformId: Object,\n zone: NgZone,\n public schedulers: ɵAngularFireSchedulers,\n @Optional() @Inject(USE_EMULATOR) _useEmulator: any, // tuple isn't working here\n @Optional() auth: AngularFireAuth,\n @Optional() @Inject(USE_AUTH_EMULATOR) useAuthEmulator: any,\n @Optional() @Inject(AUTH_SETTINGS) authSettings: any, // can't use firebase.auth.AuthSettings here\n @Optional() @Inject(TENANT_ID) tenantId: string | null,\n @Optional() @Inject(LANGUAGE_CODE) languageCode: string | null,\n @Optional() @Inject(USE_DEVICE_LANGUAGE) useDeviceLanguage: boolean | null,\n @Optional() @Inject(PERSISTENCE) persistence: string | null,\n @Optional() _appCheckInstances: AppCheckInstances,\n ) {\n\n const useEmulator: UseEmulatorArguments | null = _useEmulator;\n const app = ɵfirebaseAppFactory(options, zone, name);\n\n if (auth) {\n ɵauthFactory(app, zone, useAuthEmulator, tenantId, languageCode, useDeviceLanguage, authSettings, persistence);\n }\n\n this.database = ɵcacheInstance(`${app.name}.database.${databaseURL}`, 'AngularFireDatabase', app.name, () => {\n const database = zone.runOutsideAngular(() => app.database(databaseURL || undefined));\n if (useEmulator) {\n database.useEmulator(...useEmulator);\n }\n return database;\n }, [useEmulator]);\n }\n\n list<T>(pathOrRef: PathReference, queryFn?: QueryFn): AngularFireList<T> {\n const ref = this.schedulers.ngZone.runOutsideAngular(() => getRef(this.database, pathOrRef));\n let query: DatabaseQuery = ref;\n if (queryFn) {\n query = queryFn(ref);\n }\n return createListReference<T>(query, this);\n }\n\n object<T>(pathOrRef: PathReference): AngularFireObject<T> {\n const ref = this.schedulers.ngZone.runOutsideAngular(() => getRef(this.database, pathOrRef));\n return createObjectReference<T>(ref, this);\n }\n\n createPushId() {\n const ref = this.schedulers.ngZone.runOutsideAngular(() => this.database.ref());\n return ref.push().key;\n }\n\n}\n\nexport {\n PathReference,\n DatabaseSnapshot,\n ChildEvent,\n ListenEvent,\n QueryFn,\n AngularFireList,\n AngularFireObject,\n AngularFireAction,\n Action,\n SnapshotAction\n} from './interfaces';\n","import { NgModule } from '@angular/core';\nimport { VERSION } from '@angular/fire';\nimport firebase from 'firebase/compat/app';\nimport { AngularFireDatabase } from './database';\n\n@NgModule({\n providers: [ AngularFireDatabase ]\n})\nexport class AngularFireDatabaseModule {\n constructor() {\n firebase.registerVersion('angularfire', VERSION.full, 'rtdb-compat');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["USE_AUTH_EMULATOR","AUTH_SETTINGS"],"mappings":";;;;;;;;;;;;;;AASA;;;;;;AAMG;AACa,SAAA,OAAO,CAAI,GAAkB,EAClB,KAAkB,EAClB,UAAU,GAAG,IAAI,EACjB,SAAA,GAA2B,cAAc,EAAA;AAElE,IAAA,OAAO,IAAI,UAAU,CAAqB,UAAU,IAAG;QACrD,IAAI,EAAE,GAAQ,IAAI,CAAC;AACnB,QAAA,EAAE,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAI;AAChD,YAAA,SAAS,CAAC,QAAQ,CAAC,MAAK;gBACtB,UAAU,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;AACzC,aAAC,CAAC,CAAC;YACH,IAAI,UAAU,KAAK,MAAM,EAAE;gBACzB,SAAS,CAAC,QAAQ,CAAC,MAAM,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;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,CAAA;;0BAC/B,QAAQ;;0BACR,QAAQ;;0BAAI,MAAM;2BAACD,cAAiB,CAAA;;0BACpC,QAAQ;;0BAAI,MAAM;2BAACC,QAAa,CAAA;;0BAChC,QAAQ;;0BAAI,MAAM;2BAAC,SAAS,CAAA;;0BAC5B,QAAQ;;0BAAI,MAAM;2BAAC,aAAa,CAAA;;0BAChC,QAAQ;;0BAAI,MAAM;2BAAC,mBAAmB,CAAA;;0BACtC,QAAQ;;0BAAI,MAAM;2BAAC,WAAW,CAAA;;0BAC9B,QAAQ;;;MC1CA,yBAAyB,CAAA;AACpC,IAAA,WAAA,GAAA;QACE,QAAQ,CAAC,eAAe,CAAC,aAAa,EAAE,OAAO,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;KACtE;uGAHU,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;wGAAzB,yBAAyB,EAAA,CAAA,CAAA;wGAAzB,yBAAyB,EAAA,SAAA,EAFzB,CAAE,mBAAmB,CAAE,EAAA,CAAA,CAAA;;2FAEvB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAHrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,SAAS,EAAE,CAAE,mBAAmB,CAAE;AACnC,iBAAA,CAAA;;;ACPD;;AAEG;;;;"}
@@ -1,16 +1,16 @@
1
+ import { isPlatformServer } from '@angular/common';
1
2
  import * as i0 from '@angular/core';
2
3
  import { InjectionToken, PLATFORM_ID, Injectable, Inject, Optional, NgModule } from '@angular/core';
3
- import { asyncScheduler, Observable, from, of } from 'rxjs';
4
4
  import * as i1 from '@angular/fire';
5
5
  import { keepUnstableUntilFirst, VERSION } from '@angular/fire';
6
- import { startWith, pairwise, map, scan, distinctUntilChanged, filter } from 'rxjs/operators';
6
+ import * as i3 from '@angular/fire/app-check';
7
7
  import { ɵfirebaseAppFactory, ɵcacheInstance, FIREBASE_OPTIONS, FIREBASE_APP_NAME } from '@angular/fire/compat';
8
- import { isPlatformServer } from '@angular/common';
9
- import 'firebase/compat/auth';
10
- import 'firebase/compat/firestore';
11
8
  import * as i2 from '@angular/fire/compat/auth';
12
9
  import { ɵauthFactory, USE_EMULATOR as USE_EMULATOR$1, SETTINGS as SETTINGS$1, TENANT_ID, LANGUAGE_CODE, USE_DEVICE_LANGUAGE, PERSISTENCE } from '@angular/fire/compat/auth';
13
- import * as i3 from '@angular/fire/app-check';
10
+ import { Observable, asyncScheduler, from, of } from 'rxjs';
11
+ import { startWith, pairwise, map, scan, distinctUntilChanged, filter } from 'rxjs/operators';
12
+ import 'firebase/compat/auth';
13
+ import 'firebase/compat/firestore';
14
14
  import firebase from 'firebase/compat/app';
15
15
 
16
16
  function _fromRef(ref, scheduler = asyncScheduler) {
@@ -36,11 +36,12 @@ function fromRef(ref, scheduler) {
36
36
  }
37
37
  function fromDocRef(ref, scheduler) {
38
38
  return fromRef(ref, scheduler)
39
- .pipe(startWith(undefined), pairwise(), map(([priorPayload, payload]) => {
39
+ .pipe(startWith(undefined), pairwise(), map((snapshots) => {
40
+ const [priorPayload, payload] = snapshots;
40
41
  if (!payload.exists) {
41
42
  return { payload, type: 'removed' };
42
43
  }
43
- if (!(priorPayload === null || priorPayload === void 0 ? void 0 : priorPayload.exists)) {
44
+ if (!priorPayload?.exists) {
44
45
  return { payload, type: 'added' };
45
46
  }
46
47
  return { payload, type: 'modified' };
@@ -50,13 +51,95 @@ function fromCollectionRef(ref, scheduler) {
50
51
  return fromRef(ref, scheduler).pipe(map(payload => ({ payload, type: 'query' })));
51
52
  }
52
53
 
54
+ /**
55
+ * AngularFirestoreDocument service
56
+ *
57
+ * This class creates a reference to a Firestore Document. A reference is provided in
58
+ * in the constructor. The class is generic which gives you type safety for data update
59
+ * methods and data streaming.
60
+ *
61
+ * This class uses Symbol.observable to transform into Observable using Observable.from().
62
+ *
63
+ * This class is rarely used directly and should be created from the AngularFirestore service.
64
+ *
65
+ * Example:
66
+ *
67
+ * const fakeStock = new AngularFirestoreDocument<Stock>(doc('stocks/FAKE'));
68
+ * await fakeStock.set({ name: 'FAKE', price: 0.01 });
69
+ * fakeStock.valueChanges().map(snap => {
70
+ * if(snap.exists) return snap.data();
71
+ * return null;
72
+ * }).subscribe(value => console.log(value));
73
+ * // OR! Transform using Observable.from() and the data is unwrapped for you
74
+ * Observable.from(fakeStock).subscribe(value => console.log(value));
75
+ */
76
+ class AngularFirestoreDocument {
77
+ ref;
78
+ afs;
79
+ /**
80
+ * The constructor takes in a DocumentReference to provide wrapper methods
81
+ * for data operations, data streaming, and Symbol.observable.
82
+ */
83
+ constructor(ref, afs) {
84
+ this.ref = ref;
85
+ this.afs = afs;
86
+ }
87
+ /**
88
+ * Create or overwrite a single document.
89
+ */
90
+ set(data, options) {
91
+ return this.ref.set(data, options);
92
+ }
93
+ /**
94
+ * Update some fields of a document without overwriting the entire document.
95
+ */
96
+ update(data) {
97
+ return this.ref.update(data);
98
+ }
99
+ /**
100
+ * Delete a document.
101
+ */
102
+ delete() {
103
+ return this.ref.delete();
104
+ }
105
+ /**
106
+ * Create a reference to a sub-collection given a path and an optional query
107
+ * function.
108
+ */
109
+ collection(path, queryFn) {
110
+ const collectionRef = this.ref.collection(path);
111
+ const { ref, query } = associateQuery(collectionRef, queryFn);
112
+ return new AngularFirestoreCollection(ref, query, this.afs);
113
+ }
114
+ /**
115
+ * Listen to snapshot updates from the document.
116
+ */
117
+ snapshotChanges() {
118
+ const scheduledFromDocRef$ = fromDocRef(this.ref, this.afs.schedulers.outsideAngular);
119
+ return scheduledFromDocRef$.pipe(keepUnstableUntilFirst);
120
+ }
121
+ valueChanges(options = {}) {
122
+ return this.snapshotChanges().pipe(map(({ payload }) => options.idField ? {
123
+ ...payload.data(),
124
+ ...{ [options.idField]: payload.id }
125
+ } : payload.data()));
126
+ }
127
+ /**
128
+ * Retrieve the document once.
129
+ */
130
+ get(options) {
131
+ return from(this.ref.get(options)).pipe(keepUnstableUntilFirst);
132
+ }
133
+ }
134
+
53
135
  /**
54
136
  * Return a stream of document changes on a query. These results are not in sort order but in
55
137
  * order of occurence.
56
138
  */
57
139
  function docChanges(query, scheduler) {
58
140
  return fromCollectionRef(query, scheduler)
59
- .pipe(startWith(undefined), pairwise(), map(([priorAction, action]) => {
141
+ .pipe(startWith(undefined), pairwise(), map((actionTuple) => {
142
+ const [priorAction, action] = actionTuple;
60
143
  const docChanges = action.payload.docChanges();
61
144
  const actions = docChanges.map(change => ({ type: change.type, payload: change }));
62
145
  // the metadata has changed from the prior emission
@@ -64,7 +147,7 @@ function docChanges(query, scheduler) {
64
147
  // go through all the docs in payload and figure out which ones changed
65
148
  action.payload.docs.forEach((currentDoc, currentIndex) => {
66
149
  const docChange = docChanges.find(d => d.doc.ref.isEqual(currentDoc.ref));
67
- const priorDoc = priorAction === null || priorAction === void 0 ? void 0 : priorAction.payload.docs.find(d => d.ref.isEqual(currentDoc.ref));
150
+ const priorDoc = priorAction?.payload.docs.find(d => d.ref.isEqual(currentDoc.ref));
68
151
  if (docChange && JSON.stringify(docChange.doc.metadata) === JSON.stringify(currentDoc.metadata) ||
69
152
  !docChange && priorDoc && JSON.stringify(priorDoc.metadata) === JSON.stringify(currentDoc.metadata)) {
70
153
  // document doesn't appear to have changed, don't log another action
@@ -185,6 +268,9 @@ function validateEventsArray(events) {
185
268
  * fakeStock.valueChanges().subscribe(value => console.log(value));
186
269
  */
187
270
  class AngularFirestoreCollection {
271
+ ref;
272
+ query;
273
+ afs;
188
274
  /**
189
275
  * The constructor takes in a CollectionReference and Query to provide wrapper methods
190
276
  * for data operations and data streaming.
@@ -212,7 +298,7 @@ class AngularFirestoreCollection {
212
298
  return source.pipe(
213
299
  // We want to filter out empty arrays, but always emit at first, so the developer knows
214
300
  // that the collection has been resolve; even if it's empty
215
- startWith(undefined), pairwise(), filter(([prior, current]) => current.length > 0 || !prior), map(([prior, current]) => current), keepUnstableUntilFirst);
301
+ startWith(undefined), pairwise(), filter(([prior, current]) => current.length > 0 || !prior), map(([, current]) => current), keepUnstableUntilFirst);
216
302
  }
217
303
  /**
218
304
  * Create a stream of changes as they occur it time. This method is similar to stateChanges()
@@ -234,7 +320,10 @@ class AngularFirestoreCollection {
234
320
  return fromCollectionRef(this.query, this.afs.schedulers.outsideAngular)
235
321
  .pipe(map(actions => actions.payload.docs.map(a => {
236
322
  if (options.idField) {
237
- return Object.assign(Object.assign({}, a.data()), { [options.idField]: a.id });
323
+ return {
324
+ ...a.data(),
325
+ ...{ [options.idField]: a.id }
326
+ };
238
327
  }
239
328
  else {
240
329
  return a.data();
@@ -266,82 +355,6 @@ class AngularFirestoreCollection {
266
355
  }
267
356
  }
268
357
 
269
- /**
270
- * AngularFirestoreDocument service
271
- *
272
- * This class creates a reference to a Firestore Document. A reference is provided in
273
- * in the constructor. The class is generic which gives you type safety for data update
274
- * methods and data streaming.
275
- *
276
- * This class uses Symbol.observable to transform into Observable using Observable.from().
277
- *
278
- * This class is rarely used directly and should be created from the AngularFirestore service.
279
- *
280
- * Example:
281
- *
282
- * const fakeStock = new AngularFirestoreDocument<Stock>(doc('stocks/FAKE'));
283
- * await fakeStock.set({ name: 'FAKE', price: 0.01 });
284
- * fakeStock.valueChanges().map(snap => {
285
- * if(snap.exists) return snap.data();
286
- * return null;
287
- * }).subscribe(value => console.log(value));
288
- * // OR! Transform using Observable.from() and the data is unwrapped for you
289
- * Observable.from(fakeStock).subscribe(value => console.log(value));
290
- */
291
- class AngularFirestoreDocument {
292
- /**
293
- * The constructor takes in a DocumentReference to provide wrapper methods
294
- * for data operations, data streaming, and Symbol.observable.
295
- */
296
- constructor(ref, afs) {
297
- this.ref = ref;
298
- this.afs = afs;
299
- }
300
- /**
301
- * Create or overwrite a single document.
302
- */
303
- set(data, options) {
304
- return this.ref.set(data, options);
305
- }
306
- /**
307
- * Update some fields of a document without overwriting the entire document.
308
- */
309
- update(data) {
310
- return this.ref.update(data);
311
- }
312
- /**
313
- * Delete a document.
314
- */
315
- delete() {
316
- return this.ref.delete();
317
- }
318
- /**
319
- * Create a reference to a sub-collection given a path and an optional query
320
- * function.
321
- */
322
- collection(path, queryFn) {
323
- const collectionRef = this.ref.collection(path);
324
- const { ref, query } = associateQuery(collectionRef, queryFn);
325
- return new AngularFirestoreCollection(ref, query, this.afs);
326
- }
327
- /**
328
- * Listen to snapshot updates from the document.
329
- */
330
- snapshotChanges() {
331
- const scheduledFromDocRef$ = fromDocRef(this.ref, this.afs.schedulers.outsideAngular);
332
- return scheduledFromDocRef$.pipe(keepUnstableUntilFirst);
333
- }
334
- valueChanges(options = {}) {
335
- return this.snapshotChanges().pipe(map(({ payload }) => options.idField ? Object.assign(Object.assign({}, payload.data()), { [options.idField]: payload.id }) : payload.data()));
336
- }
337
- /**
338
- * Retrieve the document once.
339
- */
340
- get(options) {
341
- return from(this.ref.get(options)).pipe(keepUnstableUntilFirst);
342
- }
343
- }
344
-
345
358
  /**
346
359
  * AngularFirestoreCollectionGroup service
347
360
  *
@@ -361,6 +374,8 @@ class AngularFirestoreDocument {
361
374
  * fakeStock.valueChanges().subscribe(value => console.log(value));
362
375
  */
363
376
  class AngularFirestoreCollectionGroup {
377
+ query;
378
+ afs;
364
379
  /**
365
380
  * The constructor takes in a CollectionGroupQuery to provide wrapper methods
366
381
  * for data operations and data streaming.
@@ -402,7 +417,10 @@ class AngularFirestoreCollectionGroup {
402
417
  return fromCollectionRefScheduled$
403
418
  .pipe(map(actions => actions.payload.docs.map(a => {
404
419
  if (options.idField) {
405
- return Object.assign({ [options.idField]: a.id }, a.data());
420
+ return {
421
+ [options.idField]: a.id,
422
+ ...a.data()
423
+ };
406
424
  }
407
425
  else {
408
426
  return a.data();
@@ -497,13 +515,16 @@ function associateQuery(collectionRef, queryFn = ref => ref) {
497
515
  * }
498
516
  */
499
517
  class AngularFirestore {
518
+ schedulers;
519
+ firestore;
520
+ persistenceEnabled$;
500
521
  /**
501
522
  * Each Feature of AngularFire has a FirebaseApp injected. This way we
502
523
  * don't rely on the main Firebase App instance and we can create named
503
524
  * apps and use multiple apps.
504
525
  */
505
526
  constructor(options, name, shouldEnablePersistence, settings,
506
- // tslint:disable-next-line:ban-types
527
+ // eslint-disable-next-line @typescript-eslint/ban-types
507
528
  platformId, zone, schedulers, persistenceSettings, _useEmulator, auth, useAuthEmulator, authSettings, // can't use firebase.auth.AuthSettings here
508
529
  tenantId, languageCode, useDeviceLanguage, persistence, _appCheckInstances) {
509
530
  this.schedulers = schedulers;
@@ -580,10 +601,10 @@ class AngularFirestore {
580
601
  createId() {
581
602
  return this.firestore.collection('_').doc().id;
582
603
  }
604
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AngularFirestore, deps: [{ token: FIREBASE_OPTIONS }, { token: FIREBASE_APP_NAME, optional: true }, { token: ENABLE_PERSISTENCE, optional: true }, { token: SETTINGS, optional: true }, { token: PLATFORM_ID }, { token: i0.NgZone }, { token: i1.ɵAngularFireSchedulers }, { token: PERSISTENCE_SETTINGS, optional: true }, { token: USE_EMULATOR, optional: true }, { token: i2.AngularFireAuth, optional: true }, { token: USE_EMULATOR$1, optional: true }, { token: SETTINGS$1, optional: true }, { token: TENANT_ID, optional: true }, { token: LANGUAGE_CODE, optional: true }, { token: USE_DEVICE_LANGUAGE, optional: true }, { token: PERSISTENCE, optional: true }, { token: i3.AppCheckInstances, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
605
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AngularFirestore, providedIn: 'any' });
583
606
  }
584
- AngularFirestore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: AngularFirestore, deps: [{ token: FIREBASE_OPTIONS }, { token: FIREBASE_APP_NAME, optional: true }, { token: ENABLE_PERSISTENCE, optional: true }, { token: SETTINGS, optional: true }, { token: PLATFORM_ID }, { token: i0.NgZone }, { token: i1.ɵAngularFireSchedulers }, { token: PERSISTENCE_SETTINGS, optional: true }, { token: USE_EMULATOR, optional: true }, { token: i2.AngularFireAuth, optional: true }, { token: USE_EMULATOR$1, optional: true }, { token: SETTINGS$1, optional: true }, { token: TENANT_ID, optional: true }, { token: LANGUAGE_CODE, optional: true }, { token: USE_DEVICE_LANGUAGE, optional: true }, { token: PERSISTENCE, optional: true }, { token: i3.AppCheckInstances, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
585
- AngularFirestore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: AngularFirestore, providedIn: 'any' });
586
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: AngularFirestore, decorators: [{
607
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AngularFirestore, decorators: [{
587
608
  type: Injectable,
588
609
  args: [{
589
610
  providedIn: 'any'
@@ -671,11 +692,11 @@ class AngularFirestoreModule {
671
692
  ]
672
693
  };
673
694
  }
695
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
696
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.3", ngImport: i0, type: AngularFirestoreModule });
697
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AngularFirestoreModule, providers: [AngularFirestore] });
674
698
  }
675
- AngularFirestoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
676
- AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: AngularFirestoreModule });
677
- AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: AngularFirestoreModule, providers: [AngularFirestore] });
678
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: AngularFirestoreModule, decorators: [{
699
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AngularFirestoreModule, decorators: [{
679
700
  type: NgModule,
680
701
  args: [{
681
702
  providers: [AngularFirestore]
@@ -687,4 +708,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImpor
687
708
  */
688
709
 
689
710
  export { AngularFirestore, AngularFirestoreCollection, AngularFirestoreCollectionGroup, AngularFirestoreDocument, AngularFirestoreModule, ENABLE_PERSISTENCE, PERSISTENCE_SETTINGS, SETTINGS, USE_EMULATOR, associateQuery, combineChange, combineChanges, docChanges, fromCollectionRef, fromDocRef, fromRef, sortedChanges, validateEventsArray };
690
- //# sourceMappingURL=angular-fire-compat-firestore.js.map
711
+ //# sourceMappingURL=angular-fire-compat-firestore.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular-fire-compat-firestore.mjs","sources":["../../../src/compat/firestore/observable/fromRef.ts","../../../src/compat/firestore/document/document.ts","../../../src/compat/firestore/collection/changes.ts","../../../src/compat/firestore/collection/collection.ts","../../../src/compat/firestore/collection-group/collection-group.ts","../../../src/compat/firestore/firestore.ts","../../../src/compat/firestore/firestore.module.ts","../../../src/compat/firestore/angular-fire-compat-firestore.ts"],"sourcesContent":["import { Observable, SchedulerLike, asyncScheduler } from 'rxjs';\nimport { map, pairwise, startWith } from 'rxjs/operators';\nimport { Action, DocumentReference, DocumentSnapshot, Query, QuerySnapshot, Reference } from '../interfaces';\n\nfunction _fromRef<R>(ref: Reference, scheduler: SchedulerLike = asyncScheduler): Observable<R> {\n return new Observable(subscriber => {\n let unsubscribe: () => void;\n if (scheduler != null) {\n scheduler.schedule(() => {\n unsubscribe = ref.onSnapshot({ includeMetadataChanges: true }, subscriber);\n });\n } else {\n unsubscribe = ref.onSnapshot({ includeMetadataChanges: true }, subscriber);\n }\n\n return () => {\n if (unsubscribe != null) {\n unsubscribe();\n }\n };\n });\n}\n\nexport function fromRef<R, T>(ref: DocumentReference<T> | Query<T>, scheduler?: SchedulerLike) {\n return _fromRef<R>(ref, scheduler);\n}\n\nexport function fromDocRef<T>(ref: DocumentReference<T>, scheduler?: SchedulerLike): Observable<Action<DocumentSnapshot<T>>> {\n return fromRef<DocumentSnapshot<T>, T>(ref, scheduler)\n .pipe(\n startWith<DocumentSnapshot<T>, undefined>(undefined),\n pairwise(),\n map((snapshots: [DocumentSnapshot<T>, DocumentSnapshot<T>]) => {\n const [priorPayload, payload] = snapshots;\n if (!payload.exists) {\n return { payload, type: 'removed' };\n }\n if (!priorPayload?.exists) {\n return { payload, type: 'added' };\n }\n return { payload, type: 'modified' };\n })\n );\n}\n\nexport function fromCollectionRef<T>(ref: Query<T>, scheduler?: SchedulerLike): Observable<Action<QuerySnapshot<T>>> {\n return fromRef<QuerySnapshot<T>, T>(ref, scheduler).pipe(map(payload => ({ payload, type: 'query' })));\n}\n","import { keepUnstableUntilFirst } from '@angular/fire';\nimport firebase from 'firebase/compat/app';\nimport { Observable, from } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { AngularFirestoreCollection } from '../collection/collection';\nimport { AngularFirestore, associateQuery } from '../firestore';\nimport { Action, DocumentData, DocumentReference, DocumentSnapshot, QueryFn, SetOptions } from '../interfaces';\nimport { fromDocRef } from '../observable/fromRef';\n\n/**\n * AngularFirestoreDocument service\n *\n * This class creates a reference to a Firestore Document. A reference is provided in\n * in the constructor. The class is generic which gives you type safety for data update\n * methods and data streaming.\n *\n * This class uses Symbol.observable to transform into Observable using Observable.from().\n *\n * This class is rarely used directly and should be created from the AngularFirestore service.\n *\n * Example:\n *\n * const fakeStock = new AngularFirestoreDocument<Stock>(doc('stocks/FAKE'));\n * await fakeStock.set({ name: 'FAKE', price: 0.01 });\n * fakeStock.valueChanges().map(snap => {\n * if(snap.exists) return snap.data();\n * return null;\n * }).subscribe(value => console.log(value));\n * // OR! Transform using Observable.from() and the data is unwrapped for you\n * Observable.from(fakeStock).subscribe(value => console.log(value));\n */\nexport class AngularFirestoreDocument<T = DocumentData> {\n\n /**\n * The constructor takes in a DocumentReference to provide wrapper methods\n * for data operations, data streaming, and Symbol.observable.\n */\n constructor(public ref: DocumentReference<T>, private afs: AngularFirestore) { }\n\n /**\n * Create or overwrite a single document.\n */\n set(data: T, options?: SetOptions): Promise<void> {\n return this.ref.set(data, options);\n }\n\n /**\n * Update some fields of a document without overwriting the entire document.\n */\n update(data: Partial<T>): Promise<void> {\n return this.ref.update(data);\n }\n\n /**\n * Delete a document.\n */\n delete(): Promise<void> {\n return this.ref.delete();\n }\n\n /**\n * Create a reference to a sub-collection given a path and an optional query\n * function.\n */\n collection<R = DocumentData>(path: string, queryFn?: QueryFn): AngularFirestoreCollection<R> {\n const collectionRef = this.ref.collection(path) as firebase.firestore.CollectionReference<R>;\n const { ref, query } = associateQuery(collectionRef, queryFn);\n return new AngularFirestoreCollection(ref, query, this.afs);\n }\n\n /**\n * Listen to snapshot updates from the document.\n */\n snapshotChanges(): Observable<Action<DocumentSnapshot<T>>> {\n const scheduledFromDocRef$ = fromDocRef<T>(this.ref, this.afs.schedulers.outsideAngular);\n return scheduledFromDocRef$.pipe(\n keepUnstableUntilFirst\n );\n }\n\n /**\n * Listen to unwrapped snapshot updates from the document.\n *\n * If the `idField` option is provided, document IDs are included and mapped to the\n * provided `idField` property name.\n */\n valueChanges(options?: unknown): Observable<T | undefined>;\n valueChanges<K extends string>(options: { idField: K }): Observable<(T & { [T in K]: string }) | undefined>;\n valueChanges<K extends string>(options: { idField?: K } = {}): Observable<T | undefined> {\n return this.snapshotChanges().pipe(\n map(({ payload }) =>\n options.idField ? {\n ...payload.data(),\n ...{ [options.idField]: payload.id }\n } as T & { [T in K]: string } : payload.data()\n )\n );\n }\n\n /**\n * Retrieve the document once.\n */\n get(options?: firebase.firestore.GetOptions) {\n return from(this.ref.get(options)).pipe(\n keepUnstableUntilFirst,\n );\n }\n}\n","import firebase from 'firebase/compat/app';\nimport { Observable, SchedulerLike } from 'rxjs';\nimport { distinctUntilChanged, map, pairwise, scan, startWith } from 'rxjs/operators';\nimport { Action, DocumentChange, DocumentChangeAction, DocumentChangeType, Query, QuerySnapshot } from '../interfaces';\nimport { fromCollectionRef } from '../observable/fromRef';\n\n\ntype ActionTupe = [Action<QuerySnapshot<firebase.firestore.DocumentData>>, Action<QuerySnapshot<firebase.firestore.DocumentData>>]\n/**\n * Return a stream of document changes on a query. These results are not in sort order but in\n * order of occurence.\n */\nexport function docChanges<T>(query: Query, scheduler?: SchedulerLike): Observable<DocumentChangeAction<T>[]> {\n return fromCollectionRef(query, scheduler)\n .pipe(\n startWith<Action<QuerySnapshot<firebase.firestore.DocumentData>>, undefined>(undefined),\n pairwise(),\n map((actionTuple: ActionTupe) => {\n const [priorAction, action] = actionTuple;\n const docChanges = action.payload.docChanges();\n const actions = docChanges.map(change => ({ type: change.type, payload: change }));\n // the metadata has changed from the prior emission\n if (priorAction && JSON.stringify(priorAction.payload.metadata) !== JSON.stringify(action.payload.metadata)) {\n // go through all the docs in payload and figure out which ones changed\n action.payload.docs.forEach((currentDoc, currentIndex) => {\n const docChange = docChanges.find(d => d.doc.ref.isEqual(currentDoc.ref));\n const priorDoc = priorAction?.payload.docs.find(d => d.ref.isEqual(currentDoc.ref));\n if (docChange && JSON.stringify(docChange.doc.metadata) === JSON.stringify(currentDoc.metadata) ||\n !docChange && priorDoc && JSON.stringify(priorDoc.metadata) === JSON.stringify(currentDoc.metadata)) {\n // document doesn't appear to have changed, don't log another action\n } else {\n // since the actions are processed in order just push onto the array\n actions.push({\n type: 'modified',\n payload: {\n oldIndex: currentIndex,\n newIndex: currentIndex,\n type: 'modified',\n doc: currentDoc\n }\n });\n }\n });\n }\n return actions as DocumentChangeAction<T>[];\n }),\n );\n}\n\n/**\n * Return a stream of document changes on a query. These results are in sort order.\n */\nexport function sortedChanges<T>(\n query: Query,\n events: DocumentChangeType[],\n scheduler?: SchedulerLike): Observable<DocumentChangeAction<T>[]> {\n return docChanges<T>(query, scheduler)\n .pipe(\n scan((current, changes) => combineChanges<T>(current, changes.map(it => it.payload), events), []),\n distinctUntilChanged(), // cut down on unneed change cycles\n map(changes => changes.map(c => ({ type: c.type, payload: c } as DocumentChangeAction<T>))));\n}\n\n/**\n * Combines the total result set from the current set of changes from an incoming set\n * of changes.\n */\nexport function combineChanges<T>(current: DocumentChange<T>[], changes: DocumentChange<T>[], events: DocumentChangeType[]) {\n changes.forEach(change => {\n // skip unwanted change types\n if (events.indexOf(change.type) > -1) {\n current = combineChange(current, change);\n }\n });\n return current;\n}\n\n/**\n * Splice arguments on top of a sliced array, to break top-level ===\n * this is useful for change-detection\n */\nfunction sliceAndSplice<T>(\n original: T[],\n start: number,\n deleteCount: number,\n ...args: T[]\n): T[] {\n const returnArray = original.slice();\n returnArray.splice(start, deleteCount, ...args);\n return returnArray;\n}\n\n/**\n * Creates a new sorted array from a new change.\n * Build our own because we allow filtering of action types ('added', 'removed', 'modified') before scanning\n * and so we have greater control over change detection (by breaking ===)\n */\nexport function combineChange<T>(combined: DocumentChange<T>[], change: DocumentChange<T>): DocumentChange<T>[] {\n switch (change.type) {\n case 'added':\n if (combined[change.newIndex] && combined[change.newIndex].doc.ref.isEqual(change.doc.ref)) {\n // Not sure why the duplicates are getting fired\n } else {\n return sliceAndSplice(combined, change.newIndex, 0, change);\n }\n break;\n case 'modified':\n if (combined[change.oldIndex] == null || combined[change.oldIndex].doc.ref.isEqual(change.doc.ref)) {\n // When an item changes position we first remove it\n // and then add it's new position\n if (change.oldIndex !== change.newIndex) {\n const copiedArray = combined.slice();\n copiedArray.splice(change.oldIndex, 1);\n copiedArray.splice(change.newIndex, 0, change);\n return copiedArray;\n } else {\n return sliceAndSplice(combined, change.newIndex, 1, change);\n }\n }\n break;\n case 'removed':\n if (combined[change.oldIndex] && combined[change.oldIndex].doc.ref.isEqual(change.doc.ref)) {\n return sliceAndSplice(combined, change.oldIndex, 1);\n }\n break;\n }\n return combined;\n}\n","import { keepUnstableUntilFirst } from '@angular/fire';\nimport firebase from 'firebase/compat/app';\nimport { Observable, from } from 'rxjs';\nimport { filter, map, pairwise, scan, startWith } from 'rxjs/operators';\nimport { AngularFirestoreDocument } from '../document/document';\nimport { AngularFirestore } from '../firestore';\nimport { CollectionReference, DocumentChangeAction, DocumentChangeType, DocumentData, DocumentReference, Query } from '../interfaces';\nimport { fromCollectionRef } from '../observable/fromRef';\nimport { docChanges, sortedChanges } from './changes';\n\ntype DocumentChangeTuple<T> = [DocumentChangeAction<T>[], DocumentChangeAction<T>[]];\n\nexport function validateEventsArray(events?: DocumentChangeType[]) {\n if (!events || events.length === 0) {\n events = ['added', 'removed', 'modified'];\n }\n return events;\n}\n\n/**\n * AngularFirestoreCollection service\n *\n * This class creates a reference to a Firestore Collection. A reference and a query are provided in\n * in the constructor. The query can be the unqueried reference if no query is desired.The class\n * is generic which gives you type safety for data update methods and data streaming.\n *\n * This class uses Symbol.observable to transform into Observable using Observable.from().\n *\n * This class is rarely used directly and should be created from the AngularFirestore service.\n *\n * Example:\n *\n * const collectionRef = firebase.firestore.collection('stocks');\n * const query = collectionRef.where('price', '>', '0.01');\n * const fakeStock = new AngularFirestoreCollection<Stock>(collectionRef, query);\n *\n * // NOTE!: the updates are performed on the reference not the query\n * await fakeStock.add({ name: 'FAKE', price: 0.01 });\n *\n * // Subscribe to changes as snapshots. This provides you data updates as well as delta updates.\n * fakeStock.valueChanges().subscribe(value => console.log(value));\n */\nexport class AngularFirestoreCollection<T = DocumentData> {\n /**\n * The constructor takes in a CollectionReference and Query to provide wrapper methods\n * for data operations and data streaming.\n *\n * Note: Data operation methods are done on the reference not the query. This means\n * when you update data it is not updating data to the window of your query unless\n * the data fits the criteria of the query. See the AssociatedRefence type for details\n * on this implication.\n */\n constructor(\n public readonly ref: CollectionReference<T>,\n private readonly query: Query<T>,\n private readonly afs: AngularFirestore) { }\n\n /**\n * Listen to the latest change in the stream. This method returns changes\n * as they occur and they are not sorted by query order. This allows you to construct\n * your own data structure.\n */\n stateChanges(events?: DocumentChangeType[]): Observable<DocumentChangeAction<T>[]> {\n let source = docChanges<T>(this.query, this.afs.schedulers.outsideAngular);\n if (events && events.length > 0) {\n source = source.pipe(\n map(actions => actions.filter(change => events.indexOf(change.type) > -1))\n );\n }\n return source.pipe(\n // We want to filter out empty arrays, but always emit at first, so the developer knows\n // that the collection has been resolve; even if it's empty\n startWith<DocumentChangeAction<T>[], undefined>(undefined),\n pairwise(),\n filter(([prior, current]: DocumentChangeTuple<T>) => current.length > 0 || !prior),\n map(([, current]) => current),\n keepUnstableUntilFirst\n );\n }\n\n /**\n * Create a stream of changes as they occur it time. This method is similar to stateChanges()\n * but it collects each event in an array over time.\n */\n auditTrail(events?: DocumentChangeType[]): Observable<DocumentChangeAction<T>[]> {\n return this.stateChanges(events).pipe(scan((current, action) => [...current, ...action], []));\n }\n\n /**\n * Create a stream of synchronized changes. This method keeps the local array in sorted\n * query order.\n */\n snapshotChanges(events?: DocumentChangeType[]): Observable<DocumentChangeAction<T>[]> {\n const validatedEvents = validateEventsArray(events);\n const scheduledSortedChanges$ = sortedChanges<T>(this.query, validatedEvents, this.afs.schedulers.outsideAngular);\n return scheduledSortedChanges$.pipe(\n keepUnstableUntilFirst\n );\n }\n\n /**\n * Listen to all documents in the collection and its possible query as an Observable.\n *\n * If the `idField` option is provided, document IDs are included and mapped to the\n * provided `idField` property name.\n */\n valueChanges(): Observable<T[]>;\n // eslint-disable-next-line no-empty-pattern\n valueChanges({}): Observable<T[]>;\n valueChanges<K extends string>(options: {idField: K}): Observable<(T & { [T in K]: string })[]>;\n valueChanges<K extends string>(options: {idField?: K} = {}): Observable<T[]> {\n return fromCollectionRef<T>(this.query, this.afs.schedulers.outsideAngular)\n .pipe(\n map(actions => actions.payload.docs.map(a => {\n if (options.idField) {\n return {\n ...a.data() as any,\n ...{ [options.idField]: a.id }\n } as T & { [T in K]: string };\n } else {\n return a.data();\n }\n })),\n keepUnstableUntilFirst\n );\n }\n\n /**\n * Retrieve the results of the query once.\n */\n get(options?: firebase.firestore.GetOptions) {\n return from(this.query.get(options)).pipe(\n keepUnstableUntilFirst,\n );\n }\n\n /**\n * Add data to a collection reference.\n *\n * Note: Data operation methods are done on the reference not the query. This means\n * when you update data it is not updating data to the window of your query unless\n * the data fits the criteria of the query.\n */\n add(data: T): Promise<DocumentReference<T>> {\n return this.ref.add(data);\n }\n\n /**\n * Create a reference to a single document in a collection.\n */\n doc<T2 = T>(path?: string): AngularFirestoreDocument<T2> {\n // TODO is there a better way to solve this type issue\n return new AngularFirestoreDocument(this.ref.doc(path) as any, this.afs);\n }\n}\n","import { keepUnstableUntilFirst } from '@angular/fire';\nimport firebase from 'firebase/compat/app';\nimport { Observable, from } from 'rxjs';\nimport { filter, map, scan } from 'rxjs/operators';\nimport { docChanges, sortedChanges } from '../collection/changes';\nimport { validateEventsArray } from '../collection/collection';\nimport { AngularFirestore } from '../firestore';\nimport { DocumentChangeAction, DocumentChangeType, DocumentData, Query } from '../interfaces';\nimport { fromCollectionRef } from '../observable/fromRef';\n\n/**\n * AngularFirestoreCollectionGroup service\n *\n * This class holds a reference to a Firestore Collection Group Query.\n *\n * This class uses Symbol.observable to transform into Observable using Observable.from().\n *\n * This class is rarely used directly and should be created from the AngularFirestore service.\n *\n * Example:\n *\n * const collectionGroup = firebase.firestore.collectionGroup('stocks');\n * const query = collectionRef.where('price', '>', '0.01');\n * const fakeStock = new AngularFirestoreCollectionGroup<Stock>(query, afs);\n *\n * // Subscribe to changes as snapshots. This provides you data updates as well as delta updates.\n * fakeStock.valueChanges().subscribe(value => console.log(value));\n */\nexport class AngularFirestoreCollectionGroup<T = DocumentData> {\n /**\n * The constructor takes in a CollectionGroupQuery to provide wrapper methods\n * for data operations and data streaming.\n */\n constructor(\n private readonly query: Query<T>,\n private readonly afs: AngularFirestore) { }\n\n /**\n * Listen to the latest change in the stream. This method returns changes\n * as they occur and they are not sorted by query order. This allows you to construct\n * your own data structure.\n */\n stateChanges(events?: DocumentChangeType[]): Observable<DocumentChangeAction<T>[]> {\n if (!events || events.length === 0) {\n return docChanges<T>(this.query, this.afs.schedulers.outsideAngular).pipe(\n keepUnstableUntilFirst\n );\n }\n return docChanges<T>(this.query, this.afs.schedulers.outsideAngular)\n .pipe(\n map(actions => actions.filter(change => events.indexOf(change.type) > -1)),\n filter(changes => changes.length > 0),\n keepUnstableUntilFirst\n );\n }\n\n /**\n * Create a stream of changes as they occur it time. This method is similar to stateChanges()\n * but it collects each event in an array over time.\n */\n auditTrail(events?: DocumentChangeType[]): Observable<DocumentChangeAction<T>[]> {\n return this.stateChanges(events).pipe(scan((current, action) => [...current, ...action], []));\n }\n\n /**\n * Create a stream of synchronized changes. This method keeps the local array in sorted\n * query order.\n */\n snapshotChanges(events?: DocumentChangeType[]): Observable<DocumentChangeAction<T>[]> {\n const validatedEvents = validateEventsArray(events);\n const scheduledSortedChanges$ = sortedChanges<T>(this.query, validatedEvents, this.afs.schedulers.outsideAngular);\n return scheduledSortedChanges$.pipe(\n keepUnstableUntilFirst\n );\n }\n\n /**\n * Listen to all documents in the collection and its possible query as an Observable.\n *\n * If the `idField` option is provided, document IDs are included and mapped to the\n * provided `idField` property name.\n */\n valueChanges(): Observable<T[]>;\n // eslint-disable-next-line no-empty-pattern\n valueChanges({}): Observable<T[]>;\n valueChanges<K extends string>(options: {idField: K}): Observable<(T & { [T in K]: string })[]>;\n valueChanges<K extends string>(options: {idField?: K} = {}): Observable<T[]> {\n const fromCollectionRefScheduled$ = fromCollectionRef<T>(this.query, this.afs.schedulers.outsideAngular);\n return fromCollectionRefScheduled$\n .pipe(\n map(actions => actions.payload.docs.map(a => {\n if (options.idField) {\n return {\n [options.idField]: a.id,\n ...a.data()\n } as T & { [T in K]: string };\n } else {\n return a.data();\n }\n })),\n keepUnstableUntilFirst\n );\n }\n\n /**\n * Retrieve the results of the query once.\n */\n get(options?: firebase.firestore.GetOptions) {\n return from(this.query.get(options)).pipe(\n keepUnstableUntilFirst\n );\n }\n\n}\n","import { isPlatformServer } from '@angular/common';\nimport { Inject, Injectable, InjectionToken, NgZone, Optional, PLATFORM_ID } from '@angular/core';\nimport { ɵAngularFireSchedulers } from '@angular/fire';\nimport { AppCheckInstances } from '@angular/fire/app-check';\nimport { FIREBASE_APP_NAME, FIREBASE_OPTIONS, ɵcacheInstance, ɵfirebaseAppFactory } from '@angular/fire/compat';\nimport {\n SETTINGS as AUTH_SETTINGS,\n AngularFireAuth,\n LANGUAGE_CODE,\n PERSISTENCE,\n TENANT_ID,\n USE_EMULATOR as USE_AUTH_EMULATOR,\n USE_DEVICE_LANGUAGE,\n ɵauthFactory,\n} from '@angular/fire/compat/auth';\nimport { FirebaseOptions } from 'firebase/app';\nimport firebase from 'firebase/compat/app';\nimport { Observable, from, of } from 'rxjs';\nimport { AngularFirestoreCollection } from './collection/collection';\nimport { AngularFirestoreCollectionGroup } from './collection-group/collection-group';\nimport { AngularFirestoreDocument } from './document/document';\nimport {\n AssociatedReference,\n CollectionReference,\n DocumentReference,\n PersistenceSettings,\n Query,\n QueryFn,\n QueryGroupFn,\n Settings\n} from './interfaces';\nimport 'firebase/compat/auth';\nimport 'firebase/compat/firestore';\n\n/**\n * The value of this token determines whether or not the firestore will have persistance enabled\n */\nexport const ENABLE_PERSISTENCE = new InjectionToken<boolean>('angularfire2.enableFirestorePersistence');\nexport const PERSISTENCE_SETTINGS = new InjectionToken<PersistenceSettings | undefined>('angularfire2.firestore.persistenceSettings');\nexport const SETTINGS = new InjectionToken<Settings>('angularfire2.firestore.settings');\n\ntype UseEmulatorArguments = Parameters<firebase.firestore.Firestore['useEmulator']>;\nexport const USE_EMULATOR = new InjectionToken<UseEmulatorArguments>('angularfire2.firestore.use-emulator');\n\n/**\n * A utility methods for associating a collection reference with\n * a query.\n *\n * @param collectionRef - A collection reference to query\n * @param queryFn - The callback to create a query\n *\n * Example:\n * const { query, ref } = associateQuery(docRef.collection('items'), ref => {\n * return ref.where('age', '<', 200);\n * });\n */\nexport function associateQuery<T>(collectionRef: CollectionReference<T>, queryFn = ref => ref): AssociatedReference<T> {\n const query = queryFn(collectionRef);\n const ref = collectionRef;\n return { query, ref };\n}\n\n/**\n * AngularFirestore Service\n *\n * This service is the main entry point for this feature module. It provides\n * an API for creating Collection and Reference services. These services can\n * then be used to do data updates and observable streams of the data.\n *\n * Example:\n *\n * import { Component } from '@angular/core';\n * import { AngularFirestore, AngularFirestoreCollection, AngularFirestoreDocument } from '@angular/fire/firestore';\n * import { Observable } from 'rxjs/Observable';\n * import { from } from 'rxjs/observable';\n *\n * @Component({\n * selector: 'app-my-component',\n * template: `\n * <h2>Items for {{ (profile | async)?.name }}\n * <ul>\n * <li *ngFor=\"let item of items | async\">{{ item.name }}</li>\n * </ul>\n * <div class=\"control-input\">\n * <input type=\"text\" #itemname />\n * <button (click)=\"addItem(itemname.value)\">Add Item</button>\n * </div>\n * `\n * })\n * export class MyComponent implements OnInit {\n *\n * // services for data operations and data streaming\n * private readonly itemsRef: AngularFirestoreCollection<Item>;\n * private readonly profileRef: AngularFirestoreDocument<Profile>;\n *\n * // observables for template\n * items: Observable<Item[]>;\n * profile: Observable<Profile>;\n *\n * // inject main service\n * constructor(private readonly afs: AngularFirestore) {}\n *\n * ngOnInit() {\n * this.itemsRef = afs.collection('items', ref => ref.where('user', '==', 'davideast').limit(10));\n * this.items = this.itemsRef.valueChanges().map(snap => snap.docs.map(data => doc.data()));\n * // this.items = from(this.itemsRef); // you can also do this with no mapping\n *\n * this.profileRef = afs.doc('users/davideast');\n * this.profile = this.profileRef.valueChanges();\n * }\n *\n * addItem(name: string) {\n * const user = 'davideast';\n * this.itemsRef.add({ name, user });\n * }\n * }\n */\n@Injectable({\n providedIn: 'any'\n})\nexport class AngularFirestore {\n public readonly firestore: firebase.firestore.Firestore;\n public readonly persistenceEnabled$: Observable<boolean>;\n\n /**\n * Each Feature of AngularFire has a FirebaseApp injected. This way we\n * don't rely on the main Firebase App instance and we can create named\n * apps and use multiple apps.\n */\n constructor(\n @Inject(FIREBASE_OPTIONS) options: FirebaseOptions,\n @Optional() @Inject(FIREBASE_APP_NAME) name: string | null | undefined,\n @Optional() @Inject(ENABLE_PERSISTENCE) shouldEnablePersistence: boolean | null,\n @Optional() @Inject(SETTINGS) settings: Settings | null,\n // eslint-disable-next-line @typescript-eslint/ban-types\n @Inject(PLATFORM_ID) platformId: Object,\n zone: NgZone,\n public schedulers: ɵAngularFireSchedulers,\n @Optional() @Inject(PERSISTENCE_SETTINGS) persistenceSettings: PersistenceSettings | null,\n @Optional() @Inject(USE_EMULATOR) _useEmulator: any,\n @Optional() auth: AngularFireAuth,\n @Optional() @Inject(USE_AUTH_EMULATOR) useAuthEmulator: any,\n @Optional() @Inject(AUTH_SETTINGS) authSettings: any, // can't use firebase.auth.AuthSettings here\n @Optional() @Inject(TENANT_ID) tenantId: string | null,\n @Optional() @Inject(LANGUAGE_CODE) languageCode: string | null,\n @Optional() @Inject(USE_DEVICE_LANGUAGE) useDeviceLanguage: boolean | null,\n @Optional() @Inject(PERSISTENCE) persistence: string | null,\n @Optional() _appCheckInstances: AppCheckInstances,\n ) {\n const app = ɵfirebaseAppFactory(options, zone, name);\n const useEmulator: UseEmulatorArguments | null = _useEmulator;\n\n if (auth) {\n ɵauthFactory(app, zone, useAuthEmulator, tenantId, languageCode, useDeviceLanguage, authSettings, persistence);\n }\n\n [this.firestore, this.persistenceEnabled$] = ɵcacheInstance(`${app.name}.firestore`, 'AngularFirestore', app.name, () => {\n const firestore = zone.runOutsideAngular(() => app.firestore());\n if (settings) {\n firestore.settings(settings);\n }\n if (useEmulator) {\n firestore.useEmulator(...useEmulator);\n }\n\n if (shouldEnablePersistence && !isPlatformServer(platformId)) {\n // We need to try/catch here because not all enablePersistence() failures are caught\n // https://github.com/firebase/firebase-js-sdk/issues/608\n const enablePersistence = () => {\n try {\n return from(firestore.enablePersistence(persistenceSettings || undefined).then(() => true, () => false));\n } catch (e) {\n if (typeof console !== 'undefined') { console.warn(e); }\n return of(false);\n }\n };\n return [firestore, zone.runOutsideAngular(enablePersistence)];\n } else {\n return [firestore, of(false)];\n }\n\n }, [settings, useEmulator, shouldEnablePersistence]);\n }\n\n /**\n * Create a reference to a Firestore Collection based on a path or\n * CollectionReference and an optional query function to narrow the result\n * set.\n */\n collection<T>(path: string, queryFn?: QueryFn): AngularFirestoreCollection<T>;\n collection<T>(ref: CollectionReference, queryFn?: QueryFn): AngularFirestoreCollection<T>;\n collection<T>(pathOrRef: string | CollectionReference<T>, queryFn?: QueryFn): AngularFirestoreCollection<T> {\n let collectionRef: CollectionReference<T>;\n if (typeof pathOrRef === 'string') {\n collectionRef = this.firestore.collection(pathOrRef) as firebase.firestore.CollectionReference<T>;\n } else {\n collectionRef = pathOrRef;\n }\n const { ref, query } = associateQuery<T>(collectionRef, queryFn);\n const refInZone = this.schedulers.ngZone.run(() => ref);\n return new AngularFirestoreCollection<T>(refInZone, query, this);\n }\n\n /**\n * Create a reference to a Firestore Collection Group based on a collectionId\n * and an optional query function to narrow the result\n * set.\n */\n collectionGroup<T>(collectionId: string, queryGroupFn?: QueryGroupFn<T>): AngularFirestoreCollectionGroup<T> {\n const queryFn = queryGroupFn || (ref => ref);\n const collectionGroup: Query<T> = this.firestore.collectionGroup(collectionId) as firebase.firestore.Query<T>;\n return new AngularFirestoreCollectionGroup<T>(queryFn(collectionGroup), this);\n }\n\n /**\n * Create a reference to a Firestore Document based on a path or\n * DocumentReference. Note that documents are not queryable because they are\n * simply objects. However, documents have sub-collections that return a\n * Collection reference and can be queried.\n */\n doc<T>(path: string): AngularFirestoreDocument<T>;\n doc<T>(ref: DocumentReference): AngularFirestoreDocument<T>;\n doc<T>(pathOrRef: string | DocumentReference<T>): AngularFirestoreDocument<T> {\n let ref: DocumentReference<T>;\n if (typeof pathOrRef === 'string') {\n ref = this.firestore.doc(pathOrRef) as firebase.firestore.DocumentReference<T>;\n } else {\n ref = pathOrRef;\n }\n const refInZone = this.schedulers.ngZone.run(() => ref);\n return new AngularFirestoreDocument<T>(refInZone, this);\n }\n\n /**\n * Returns a generated Firestore Document Id.\n */\n createId() {\n return this.firestore.collection('_').doc().id;\n }\n}\n","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { VERSION } from '@angular/fire';\nimport firebase from 'firebase/compat/app';\nimport { AngularFirestore, ENABLE_PERSISTENCE, PERSISTENCE_SETTINGS } from './firestore';\nimport { PersistenceSettings } from './interfaces';\n\n@NgModule({\n providers: [ AngularFirestore ]\n})\nexport class AngularFirestoreModule {\n constructor() {\n firebase.registerVersion('angularfire', VERSION.full, 'fst-compat');\n }\n /**\n * Attempt to enable persistent storage, if possible\n */\n static enablePersistence(persistenceSettings?: PersistenceSettings): ModuleWithProviders<AngularFirestoreModule> {\n return {\n ngModule: AngularFirestoreModule,\n providers: [\n { provide: ENABLE_PERSISTENCE, useValue: true },\n { provide: PERSISTENCE_SETTINGS, useValue: persistenceSettings },\n ]\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["USE_AUTH_EMULATOR","AUTH_SETTINGS"],"mappings":";;;;;;;;;;;;;;;AAIA,SAAS,QAAQ,CAAI,GAAc,EAAE,YAA2B,cAAc,EAAA;AAC5E,IAAA,OAAO,IAAI,UAAU,CAAC,UAAU,IAAG;AACjC,QAAA,IAAI,WAAuB,CAAC;QAC5B,IAAI,SAAS,IAAI,IAAI,EAAE;AACrB,YAAA,SAAS,CAAC,QAAQ,CAAC,MAAK;AACtB,gBAAA,WAAW,GAAG,GAAG,CAAC,UAAU,CAAC,EAAE,sBAAsB,EAAE,IAAI,EAAE,EAAE,UAAU,CAAC,CAAC;AAC7E,aAAC,CAAC,CAAC;AACJ,SAAA;AAAM,aAAA;AACL,YAAA,WAAW,GAAG,GAAG,CAAC,UAAU,CA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AAE,OAAO,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;KACrE;AACD;;AAEG;IACH,OAAO,iBAAiB,CAAC,mBAAyC,EAAA;QAChE,OAAO;AACL,YAAA,QAAQ,EAAE,sBAAsB;AAChC,YAAA,SAAS,EAAE;AACT,gBAAA,EAAE,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,IAAI,EAAE;AAC/C,gBAAA,EAAE,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,mBAAmB,EAAE;AACjE,aAAA;SACF,CAAC;KACH;uGAfU,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;wGAAtB,sBAAsB,EAAA,CAAA,CAAA;wGAAtB,sBAAsB,EAAA,SAAA,EAFtB,CAAE,gBAAgB,CAAE,EAAA,CAAA,CAAA;;2FAEpB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAHlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,SAAS,EAAE,CAAE,gBAAgB,CAAE;AAChC,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
@@ -1,12 +1,12 @@
1
-
1
+ import 'firebase/compat/functions';
2
2
  import * as i0 from '@angular/core';
3
3
  import { InjectionToken, Injectable, Inject, Optional, NgModule } from '@angular/core';
4
- import { of, from } from 'rxjs';
5
- import { observeOn, switchMap, map, shareReplay } from 'rxjs/operators';
6
4
  import * as i1 from '@angular/fire';
7
5
  import { VERSION } from '@angular/fire';
8
- import { ɵfirebaseAppFactory, ɵcacheInstance, ɵlazySDKProxy, FIREBASE_OPTIONS, FIREBASE_APP_NAME, ɵapplyMixins } from '@angular/fire/compat';
9
6
  import * as i2 from '@angular/fire/app-check';
7
+ import { ɵfirebaseAppFactory, ɵcacheInstance, ɵlazySDKProxy, FIREBASE_OPTIONS, FIREBASE_APP_NAME, ɵapplyMixins } from '@angular/fire/compat';
8
+ import { of, from } from 'rxjs';
9
+ import { observeOn, switchMap, map, shareReplay } from 'rxjs/operators';
10
10
  import firebase from 'firebase/compat/app';
11
11
 
12
12
  // DO NOT MODIFY, this file is autogenerated by tools/build.ts
@@ -21,6 +21,7 @@ const ORIGIN = new InjectionToken('angularfire2.functions.origin');
21
21
  const REGION = new InjectionToken('angularfire2.functions.region');
22
22
  const USE_EMULATOR = new InjectionToken('angularfire2.functions.use-emulator');
23
23
  class AngularFireFunctions {
24
+ httpsCallable;
24
25
  constructor(options, name, zone, schedulers, region, origin, _useEmulator, // can't use the tuple here
25
26
  _appCheckInstances) {
26
27
  const useEmulator = _useEmulator;
@@ -38,10 +39,10 @@ class AngularFireFunctions {
38
39
  this.httpsCallable = (name, options) => (data) => from(functions).pipe(observeOn(schedulers.insideAngular), switchMap(functions => functions.httpsCallable(name, options)(data)), map(r => r.data));
39
40
  return ɵlazySDKProxy(this, functions, zone);
40
41
  }
42
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AngularFireFunctions, deps: [{ token: FIREBASE_OPTIONS }, { token: FIREBASE_APP_NAME, optional: true }, { token: i0.NgZone }, { token: i1.ɵAngularFireSchedulers }, { token: REGION, optional: true }, { token: ORIGIN, optional: true }, { token: USE_EMULATOR, optional: true }, { token: i2.AppCheckInstances, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
43
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AngularFireFunctions, providedIn: 'any' });
41
44
  }
42
- AngularFireFunctions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: AngularFireFunctions, deps: [{ token: FIREBASE_OPTIONS }, { token: FIREBASE_APP_NAME, optional: true }, { token: i0.NgZone }, { token: i1.ɵAngularFireSchedulers }, { token: REGION, optional: true }, { token: ORIGIN, optional: true }, { token: USE_EMULATOR, optional: true }, { token: i2.AppCheckInstances, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
43
- AngularFireFunctions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: AngularFireFunctions, providedIn: 'any' });
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: AngularFireFunctions, decorators: [{
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AngularFireFunctions, decorators: [{
45
46
  type: Injectable,
46
47
  args: [{
47
48
  providedIn: 'any'
@@ -78,11 +79,11 @@ class AngularFireFunctionsModule {
78
79
  constructor() {
79
80
  firebase.registerVersion('angularfire', VERSION.full, 'fn-compat');
80
81
  }
82
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AngularFireFunctionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
83
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.3", ngImport: i0, type: AngularFireFunctionsModule });
84
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AngularFireFunctionsModule, providers: [AngularFireFunctions] });
81
85
  }
82
- AngularFireFunctionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: AngularFireFunctionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
83
- AngularFireFunctionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: AngularFireFunctionsModule });
84
- AngularFireFunctionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: AngularFireFunctionsModule, providers: [AngularFireFunctions] });
85
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0, type: AngularFireFunctionsModule, decorators: [{
86
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AngularFireFunctionsModule, decorators: [{
86
87
  type: NgModule,
87
88
  args: [{
88
89
  providers: [AngularFireFunctions]
@@ -94,4 +95,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImpor
94
95
  */
95
96
 
96
97
  export { AngularFireFunctions, AngularFireFunctionsModule, ORIGIN, REGION, USE_EMULATOR };
97
- //# sourceMappingURL=angular-fire-compat-functions.js.map
98
+ //# sourceMappingURL=angular-fire-compat-functions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular-fire-compat-functions.mjs","sources":["../../../src/compat/functions/base.ts","../../../src/compat/functions/functions.ts","../../../src/compat/functions/functions.module.ts","../../../src/compat/functions/angular-fire-compat-functions.ts"],"sourcesContent":["// DO NOT MODIFY, this file is autogenerated by tools/build.ts\n// Export a null object with the same keys as firebase/compat/functions, so Proxy can work with proxy-polyfill in Internet Explorer\nexport const proxyPolyfillCompat = {\n useEmulator: null,\n useFunctionsEmulator: null,\n httpsCallable: null,\n};\n","import { Inject, Injectable, InjectionToken, NgZone, Optional } from '@angular/core';\nimport { ɵAngularFireSchedulers } from '@angular/fire';\nimport { AppCheckInstances } from '@angular/fire/app-check';\nimport { ɵPromiseProxy, ɵapplyMixins, ɵlazySDKProxy } from '@angular/fire/compat';\nimport { FIREBASE_APP_NAME, FIREBASE_OPTIONS, ɵcacheInstance, ɵfirebaseAppFactory } from '@angular/fire/compat';\nimport { HttpsCallableOptions } from '@firebase/functions-types';\nimport { FirebaseOptions } from 'firebase/app';\nimport firebase from 'firebase/compat/app';\nimport { Observable, from, of } from 'rxjs';\nimport { map, observeOn, shareReplay, switchMap } from 'rxjs/operators';\nimport { proxyPolyfillCompat } from './base';\n\nexport const ORIGIN = new InjectionToken<string>('angularfire2.functions.origin');\nexport const REGION = new InjectionToken<string>('angularfire2.functions.region');\n\ntype UseEmulatorArguments = Parameters<firebase.functions.Functions['useEmulator']>;\nexport const USE_EMULATOR = new InjectionToken<UseEmulatorArguments>('angularfire2.functions.use-emulator');\n\n// override httpsCallable for compatibility with 5.x\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface AngularFireFunctions extends Omit<ɵPromiseProxy<firebase.functions.Functions>, 'httpsCallable'> {\n}\n\n@Injectable({\n providedIn: 'any'\n})\nexport class AngularFireFunctions {\n\n public readonly httpsCallable: <T = any, R = any>(name: string, options?: HttpsCallableOptions) => (data: T) => Observable<R>;\n\n constructor(\n @Inject(FIREBASE_OPTIONS) options: FirebaseOptions,\n @Optional() @Inject(FIREBASE_APP_NAME) name: string | null | undefined,\n zone: NgZone,\n schedulers: ɵAngularFireSchedulers,\n @Optional() @Inject(REGION) region: string | null,\n @Optional() @Inject(ORIGIN) origin: string | null,\n @Optional() @Inject(USE_EMULATOR) _useEmulator: any, // can't use the tuple here\n @Optional() _appCheckInstances: AppCheckInstances,\n ) {\n const useEmulator: UseEmulatorArguments | null = _useEmulator;\n\n const functions = of(undefined).pipe(\n observeOn(schedulers.outsideAngular),\n switchMap(() => import('firebase/compat/functions')),\n map(() => ɵfirebaseAppFactory(options, zone, name)),\n map(app => ɵcacheInstance(`${app.name}.functions.${region || origin}`, 'AngularFireFunctions', app.name, () => {\n let functions: firebase.functions.Functions;\n if (region && origin) {\n throw new Error('REGION and ORIGIN can\\'t be used at the same time.');\n }\n functions = app.functions(region || origin || undefined);\n if (useEmulator) {\n functions.useEmulator(...useEmulator);\n }\n return functions;\n }, [region, origin, useEmulator])),\n shareReplay({ bufferSize: 1, refCount: false })\n );\n\n this.httpsCallable = <T = any, R = any>(name: string, options?: HttpsCallableOptions) =>\n (data: T) => from(functions).pipe(\n observeOn(schedulers.insideAngular),\n switchMap(functions => functions.httpsCallable(name, options)(data)),\n map(r => r.data as R)\n );\n\n return ɵlazySDKProxy(this, functions, zone);\n\n }\n\n}\n\nɵapplyMixins(AngularFireFunctions, [proxyPolyfillCompat]);\n","import { NgModule } from '@angular/core';\nimport { VERSION } from '@angular/fire';\nimport firebase from 'firebase/compat/app';\nimport { AngularFireFunctions } from './functions';\n\n@NgModule({\n providers: [ AngularFireFunctions ]\n})\nexport class AngularFireFunctionsModule {\n constructor() {\n firebase.registerVersion('angularfire', VERSION.full, 'fn-compat');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AACA;AACO,MAAM,mBAAmB,GAAG;AACjC,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,oBAAoB,EAAE,IAAI;AAC1B,IAAA,aAAa,EAAE,IAAI;CACpB;;MCMY,MAAM,GAAG,IAAI,cAAc,CAAS,+BAA+B,EAAE;MACrE,MAAM,GAAG,IAAI,cAAc,CAAS,+BAA+B,EAAE;MAGrE,YAAY,GAAG,IAAI,cAAc,CAAuB,qCAAqC,EAAE;MAU/F,oBAAoB,CAAA;AAEf,IAAA,aAAa,CAAiG;AAE9H,IAAA,WAAA,CAC4B,OAAwB,EACX,IAA+B,EACtE,IAAY,EACZ,UAAkC,EACN,MAAqB,EACrB,MAAqB,EACf,YAAiB;IACvC,kBAAqC,EAAA;QAEjD,MAAM,WAAW,GAAgC,YAAY,CAAC;AAE9D,QAAA,MAAM,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,IAAI,CAClC,SAAS,CAAC,UAAU,CAAC,cAAc,CAAC,EACpC,SAAS,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC,EACpD,GAAG,CAAC,MAAM,mBAAmB,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EACnD,GAAG,CAAC,GAAG,IAAI,cAAc,CAAC,CAAA,EAAG,GAAG,CAAC,IAAI,CAAA,WAAA,EAAc,MAAM,IAAI,MAAM,CAAE,CAAA,EAAE,sBAAsB,EAAE,GAAG,CAAC,IAAI,EAAE,MAAK;AAC5G,YAAA,IAAI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