@dereekb/dbx-firebase 12.6.21 → 13.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (440) hide show
  1. package/LICENSE +1 -1
  2. package/fesm2022/dereekb-dbx-firebase.mjs +910 -1396
  3. package/fesm2022/dereekb-dbx-firebase.mjs.map +1 -1
  4. package/package.json +21 -23
  5. package/types/dereekb-dbx-firebase.d.ts +4304 -0
  6. package/esm2022/dereekb-dbx-firebase.mjs +0 -5
  7. package/esm2022/index.mjs +0 -2
  8. package/esm2022/lib/analytics/analytics.user.events.providers.mjs +0 -25
  9. package/esm2022/lib/analytics/analytics.user.events.service.mjs +0 -37
  10. package/esm2022/lib/analytics/analytics.user.source.mjs +0 -48
  11. package/esm2022/lib/analytics/index.mjs +0 -4
  12. package/esm2022/lib/auth/appcheck/appcheck.interceptor.mjs +0 -76
  13. package/esm2022/lib/auth/appcheck/appcheck.mjs +0 -11
  14. package/esm2022/lib/auth/appcheck/index.mjs +0 -3
  15. package/esm2022/lib/auth/auth.mjs +0 -22
  16. package/esm2022/lib/auth/firebase.auth.module.mjs +0 -22
  17. package/esm2022/lib/auth/firebase.auth.providers.mjs +0 -27
  18. package/esm2022/lib/auth/index.mjs +0 -7
  19. package/esm2022/lib/auth/login/firebase.login.module.mjs +0 -124
  20. package/esm2022/lib/auth/login/firebase.login.providers.default.mjs +0 -109
  21. package/esm2022/lib/auth/login/firebase.login.providers.mjs +0 -59
  22. package/esm2022/lib/auth/login/index.mjs +0 -27
  23. package/esm2022/lib/auth/login/login.anonymous.component.mjs +0 -23
  24. package/esm2022/lib/auth/login/login.apple.component.mjs +0 -23
  25. package/esm2022/lib/auth/login/login.button.component.mjs +0 -148
  26. package/esm2022/lib/auth/login/login.component.mjs +0 -39
  27. package/esm2022/lib/auth/login/login.context.back.component.mjs +0 -26
  28. package/esm2022/lib/auth/login/login.context.directive.mjs +0 -30
  29. package/esm2022/lib/auth/login/login.context.mjs +0 -7
  30. package/esm2022/lib/auth/login/login.email.component.mjs +0 -24
  31. package/esm2022/lib/auth/login/login.email.content.component.mjs +0 -102
  32. package/esm2022/lib/auth/login/login.email.form.component.mjs +0 -27
  33. package/esm2022/lib/auth/login/login.email.recovery.form.component.mjs +0 -21
  34. package/esm2022/lib/auth/login/login.facebook.component.mjs +0 -23
  35. package/esm2022/lib/auth/login/login.github.component.mjs +0 -23
  36. package/esm2022/lib/auth/login/login.google.component.mjs +0 -23
  37. package/esm2022/lib/auth/login/login.list.component.mjs +0 -71
  38. package/esm2022/lib/auth/login/login.microsoft.component.mjs +0 -23
  39. package/esm2022/lib/auth/login/login.mjs +0 -3
  40. package/esm2022/lib/auth/login/login.password.mjs +0 -4
  41. package/esm2022/lib/auth/login/login.service.mjs +0 -127
  42. package/esm2022/lib/auth/login/login.terms.component.mjs +0 -29
  43. package/esm2022/lib/auth/login/login.terms.mjs +0 -6
  44. package/esm2022/lib/auth/login/login.terms.simple.component.mjs +0 -38
  45. package/esm2022/lib/auth/login/login.twitter.component.mjs +0 -23
  46. package/esm2022/lib/auth/login/register.component.mjs +0 -27
  47. package/esm2022/lib/auth/login/register.email.component.mjs +0 -23
  48. package/esm2022/lib/auth/service/firebase.auth.rxjs.mjs +0 -46
  49. package/esm2022/lib/auth/service/firebase.auth.service.delegate.mjs +0 -28
  50. package/esm2022/lib/auth/service/firebase.auth.service.mjs +0 -193
  51. package/esm2022/lib/auth/service/index.mjs +0 -4
  52. package/esm2022/lib/development/development.directive.mjs +0 -78
  53. package/esm2022/lib/development/development.module.mjs +0 -61
  54. package/esm2022/lib/development/development.popup.component.mjs +0 -44
  55. package/esm2022/lib/development/development.popup.content.component.mjs +0 -79
  56. package/esm2022/lib/development/development.popup.content.form.component.mjs +0 -39
  57. package/esm2022/lib/development/development.providers.mjs +0 -47
  58. package/esm2022/lib/development/development.scheduler.list.component.mjs +0 -79
  59. package/esm2022/lib/development/development.scheduler.service.mjs +0 -78
  60. package/esm2022/lib/development/development.scheduler.widget.component.mjs +0 -40
  61. package/esm2022/lib/development/development.service.mjs +0 -20
  62. package/esm2022/lib/development/development.widget.mjs +0 -2
  63. package/esm2022/lib/development/development.widget.service.mjs +0 -56
  64. package/esm2022/lib/development/index.mjs +0 -14
  65. package/esm2022/lib/firebase/appcheck.mjs +0 -2
  66. package/esm2022/lib/firebase/emulators.mjs +0 -14
  67. package/esm2022/lib/firebase/firebase.emulator.module.mjs +0 -23
  68. package/esm2022/lib/firebase/firebase.emulator.providers.mjs +0 -33
  69. package/esm2022/lib/firebase/firebase.emulator.service.mjs +0 -29
  70. package/esm2022/lib/firebase/firebase.module.mjs +0 -26
  71. package/esm2022/lib/firebase/firebase.options.environment.mjs +0 -2
  72. package/esm2022/lib/firebase/firebase.options.mjs +0 -3
  73. package/esm2022/lib/firebase/firebase.providers.mjs +0 -149
  74. package/esm2022/lib/firebase/index.mjs +0 -10
  75. package/esm2022/lib/firestore/firebase.firestore.context.service.mjs +0 -18
  76. package/esm2022/lib/firestore/firebase.firestore.mjs +0 -6
  77. package/esm2022/lib/firestore/firebase.firestore.module.mjs +0 -23
  78. package/esm2022/lib/firestore/firebase.firestore.providers.mjs +0 -86
  79. package/esm2022/lib/firestore/index.mjs +0 -5
  80. package/esm2022/lib/function/firebase.function.module.mjs +0 -23
  81. package/esm2022/lib/function/firebase.function.providers.mjs +0 -54
  82. package/esm2022/lib/function/index.mjs +0 -3
  83. package/esm2022/lib/index.mjs +0 -14
  84. package/esm2022/lib/model/error.mjs +0 -6
  85. package/esm2022/lib/model/index.mjs +0 -7
  86. package/esm2022/lib/model/loader/collection.change.trigger.mjs +0 -80
  87. package/esm2022/lib/model/loader/collection.change.watcher.mjs +0 -35
  88. package/esm2022/lib/model/loader/collection.loader.instance.mjs +0 -227
  89. package/esm2022/lib/model/loader/collection.loader.mjs +0 -2
  90. package/esm2022/lib/model/loader/document.loader.instance.mjs +0 -68
  91. package/esm2022/lib/model/loader/document.loader.mjs +0 -2
  92. package/esm2022/lib/model/loader/index.mjs +0 -7
  93. package/esm2022/lib/model/model.module.mjs +0 -17
  94. package/esm2022/lib/model/modules/index.mjs +0 -3
  95. package/esm2022/lib/model/modules/model/entities/index.mjs +0 -11
  96. package/esm2022/lib/model/modules/model/entities/model.entities.component.mjs +0 -122
  97. package/esm2022/lib/model/modules/model/entities/model.entities.entity.component.mjs +0 -79
  98. package/esm2022/lib/model/modules/model/entities/model.entities.mjs +0 -15
  99. package/esm2022/lib/model/modules/model/entities/model.entities.popover.button.component.mjs +0 -49
  100. package/esm2022/lib/model/modules/model/entities/model.entities.popover.component.mjs +0 -42
  101. package/esm2022/lib/model/modules/model/entities/model.entities.providers.mjs +0 -20
  102. package/esm2022/lib/model/modules/model/entities/model.entities.source.directive.mjs +0 -38
  103. package/esm2022/lib/model/modules/model/entities/model.entities.widget.entity.abstract.directive.mjs +0 -18
  104. package/esm2022/lib/model/modules/model/entities/model.entities.widget.entity.debug.component.mjs +0 -41
  105. package/esm2022/lib/model/modules/model/entities/model.entities.widget.mjs +0 -51
  106. package/esm2022/lib/model/modules/model/entities/model.entities.widget.service.mjs +0 -91
  107. package/esm2022/lib/model/modules/model/history/index.mjs +0 -7
  108. package/esm2022/lib/model/modules/model/history/model.history.component.mjs +0 -36
  109. package/esm2022/lib/model/modules/model/history/model.history.module.mjs +0 -26
  110. package/esm2022/lib/model/modules/model/history/model.history.popover.button.component.mjs +0 -40
  111. package/esm2022/lib/model/modules/model/history/model.history.popover.component.mjs +0 -36
  112. package/esm2022/lib/model/modules/model/history/model.sourceselect.history.mjs +0 -18
  113. package/esm2022/lib/model/modules/model/history/model.tracker.service.mjs +0 -58
  114. package/esm2022/lib/model/modules/model/index.mjs +0 -8
  115. package/esm2022/lib/model/modules/model/model.key.component.mjs +0 -51
  116. package/esm2022/lib/model/modules/model/model.types.list.component.mjs +0 -67
  117. package/esm2022/lib/model/modules/model/model.types.module.mjs +0 -26
  118. package/esm2022/lib/model/modules/model/model.types.providers.mjs +0 -20
  119. package/esm2022/lib/model/modules/model/model.types.service.mjs +0 -122
  120. package/esm2022/lib/model/modules/model/model.types.view.directive.mjs +0 -45
  121. package/esm2022/lib/model/modules/store/index.mjs +0 -22
  122. package/esm2022/lib/model/modules/store/model.store.module.mjs +0 -21
  123. package/esm2022/lib/model/modules/store/store.collection.change.directive.mjs +0 -45
  124. package/esm2022/lib/model/modules/store/store.collection.change.if.directive.mjs +0 -42
  125. package/esm2022/lib/model/modules/store/store.collection.crud.mjs +0 -28
  126. package/esm2022/lib/model/modules/store/store.collection.directive.mjs +0 -99
  127. package/esm2022/lib/model/modules/store/store.collection.list.directive.mjs +0 -31
  128. package/esm2022/lib/model/modules/store/store.collection.mjs +0 -79
  129. package/esm2022/lib/model/modules/store/store.document.context.store.directive.mjs +0 -19
  130. package/esm2022/lib/model/modules/store/store.document.context.store.link.mjs +0 -45
  131. package/esm2022/lib/model/modules/store/store.document.context.store.mjs +0 -86
  132. package/esm2022/lib/model/modules/store/store.document.crud.mjs +0 -80
  133. package/esm2022/lib/model/modules/store/store.document.directive.mjs +0 -114
  134. package/esm2022/lib/model/modules/store/store.document.mjs +0 -193
  135. package/esm2022/lib/model/modules/store/store.document.twoway.key.directive.mjs +0 -26
  136. package/esm2022/lib/model/modules/store/store.document.twoway.key.source.directive.mjs +0 -22
  137. package/esm2022/lib/model/modules/store/store.document.twoway.key.source.mjs +0 -16
  138. package/esm2022/lib/model/modules/store/store.mjs +0 -2
  139. package/esm2022/lib/model/modules/store/store.subcollection.directive.mjs +0 -44
  140. package/esm2022/lib/model/modules/store/store.subcollection.document.mjs +0 -99
  141. package/esm2022/lib/model/modules/store/store.subcollection.mjs +0 -80
  142. package/esm2022/lib/model/modules/store/store.subcollection.rxjs.mjs +0 -23
  143. package/esm2022/lib/model/service/index.mjs +0 -5
  144. package/esm2022/lib/model/service/model.context.instance.mjs +0 -73
  145. package/esm2022/lib/model/service/model.context.mjs +0 -2
  146. package/esm2022/lib/model/service/model.context.providers.mjs +0 -32
  147. package/esm2022/lib/model/service/model.context.service.mjs +0 -38
  148. package/esm2022/lib/model/system/index.mjs +0 -6
  149. package/esm2022/lib/model/system/systemstate.collection.store.directive.mjs +0 -20
  150. package/esm2022/lib/model/system/systemstate.collection.store.mjs +0 -16
  151. package/esm2022/lib/model/system/systemstate.document.store.accessor.mjs +0 -35
  152. package/esm2022/lib/model/system/systemstate.document.store.directive.mjs +0 -19
  153. package/esm2022/lib/model/system/systemstate.document.store.mjs +0 -16
  154. package/esm2022/lib/module.mjs +0 -15
  155. package/esm2022/lib/modules/index.mjs +0 -3
  156. package/esm2022/lib/modules/notification/component/index.mjs +0 -6
  157. package/esm2022/lib/modules/notification/component/notificationitem.content.component.mjs +0 -15
  158. package/esm2022/lib/modules/notification/component/notificationitem.list.component.mjs +0 -90
  159. package/esm2022/lib/modules/notification/component/notificationitem.view.component.mjs +0 -37
  160. package/esm2022/lib/modules/notification/component/notificationitem.view.default.component.mjs +0 -27
  161. package/esm2022/lib/modules/notification/component/notificationitem.view.directive.mjs +0 -14
  162. package/esm2022/lib/modules/notification/container/index.mjs +0 -3
  163. package/esm2022/lib/modules/notification/container/notification.item.store.popover.button.component.mjs +0 -48
  164. package/esm2022/lib/modules/notification/container/notification.item.store.popover.component.mjs +0 -35
  165. package/esm2022/lib/modules/notification/index.mjs +0 -7
  166. package/esm2022/lib/modules/notification/notification.module.mjs +0 -103
  167. package/esm2022/lib/modules/notification/notification.providers.mjs +0 -47
  168. package/esm2022/lib/modules/notification/service/index.mjs +0 -4
  169. package/esm2022/lib/modules/notification/service/notification.template.service.mjs +0 -28
  170. package/esm2022/lib/modules/notification/service/notificationitem.widget.mjs +0 -11
  171. package/esm2022/lib/modules/notification/service/notificationitem.widget.service.mjs +0 -55
  172. package/esm2022/lib/modules/notification/store/index.mjs +0 -18
  173. package/esm2022/lib/modules/notification/store/notification.collection.store.directive.mjs +0 -21
  174. package/esm2022/lib/modules/notification/store/notification.collection.store.mjs +0 -23
  175. package/esm2022/lib/modules/notification/store/notification.document.store.directive.mjs +0 -21
  176. package/esm2022/lib/modules/notification/store/notification.document.store.mjs +0 -33
  177. package/esm2022/lib/modules/notification/store/notification.item.store.mjs +0 -30
  178. package/esm2022/lib/modules/notification/store/notificationbox.collection.store.directive.mjs +0 -21
  179. package/esm2022/lib/modules/notification/store/notificationbox.collection.store.mjs +0 -16
  180. package/esm2022/lib/modules/notification/store/notificationbox.document.store.directive.mjs +0 -21
  181. package/esm2022/lib/modules/notification/store/notificationbox.document.store.mjs +0 -22
  182. package/esm2022/lib/modules/notification/store/notificationsummary.collection.store.directive.mjs +0 -21
  183. package/esm2022/lib/modules/notification/store/notificationsummary.collection.store.mjs +0 -16
  184. package/esm2022/lib/modules/notification/store/notificationsummary.document.store.directive.mjs +0 -21
  185. package/esm2022/lib/modules/notification/store/notificationsummary.document.store.mjs +0 -34
  186. package/esm2022/lib/modules/notification/store/notificationuser.collection.store.directive.mjs +0 -21
  187. package/esm2022/lib/modules/notification/store/notificationuser.collection.store.mjs +0 -16
  188. package/esm2022/lib/modules/notification/store/notificationuser.document.store.directive.mjs +0 -21
  189. package/esm2022/lib/modules/notification/store/notificationuser.document.store.mjs +0 -18
  190. package/esm2022/lib/modules/storagefile/container/index.mjs +0 -8
  191. package/esm2022/lib/modules/storagefile/container/storagefile.download.button.component.mjs +0 -278
  192. package/esm2022/lib/modules/storagefile/container/storagefile.upload.action.handler.directive.mjs +0 -118
  193. package/esm2022/lib/modules/storagefile/container/storagefile.upload.error.mjs +0 -12
  194. package/esm2022/lib/modules/storagefile/container/storagefile.upload.handler.mjs +0 -260
  195. package/esm2022/lib/modules/storagefile/container/storagefile.upload.initialize.document.directive.mjs +0 -51
  196. package/esm2022/lib/modules/storagefile/container/storagefile.upload.store.directive.mjs +0 -38
  197. package/esm2022/lib/modules/storagefile/container/storagefile.upload.sync.directive.mjs +0 -36
  198. package/esm2022/lib/modules/storagefile/index.mjs +0 -6
  199. package/esm2022/lib/modules/storagefile/service/index.mjs +0 -3
  200. package/esm2022/lib/modules/storagefile/service/storagefile.download.service.mjs +0 -158
  201. package/esm2022/lib/modules/storagefile/service/storagefile.download.storage.service.mjs +0 -91
  202. package/esm2022/lib/modules/storagefile/storagefile.providers.mjs +0 -33
  203. package/esm2022/lib/modules/storagefile/storagefile.upload.module.mjs +0 -83
  204. package/esm2022/lib/modules/storagefile/store/index.mjs +0 -8
  205. package/esm2022/lib/modules/storagefile/store/storagefile.collection.store.directive.mjs +0 -22
  206. package/esm2022/lib/modules/storagefile/store/storagefile.collection.store.mjs +0 -18
  207. package/esm2022/lib/modules/storagefile/store/storagefile.document.store.directive.mjs +0 -21
  208. package/esm2022/lib/modules/storagefile/store/storagefile.document.store.mjs +0 -23
  209. package/esm2022/lib/modules/storagefile/store/storagefile.upload.store.mjs +0 -63
  210. package/esm2022/lib/modules/storagefile/store/storagefilegroup.document.store.directive.mjs +0 -21
  211. package/esm2022/lib/modules/storagefile/store/storagefilegroup.document.store.mjs +0 -18
  212. package/esm2022/lib/pipe/index.mjs +0 -4
  213. package/esm2022/lib/pipe/key.flat.pipe.mjs +0 -20
  214. package/esm2022/lib/pipe/key.twoway.pipe.mjs +0 -20
  215. package/esm2022/lib/pipe/pipe.module.mjs +0 -23
  216. package/esm2022/lib/providers.mjs +0 -48
  217. package/esm2022/lib/router/id.param.redirect.mjs +0 -64
  218. package/esm2022/lib/router/index.mjs +0 -2
  219. package/esm2022/lib/storage/firebase.storage.mjs +0 -10
  220. package/esm2022/lib/storage/firebase.storage.module.mjs +0 -22
  221. package/esm2022/lib/storage/firebase.storage.providers.mjs +0 -44
  222. package/esm2022/lib/storage/firebase.storage.service.mjs +0 -27
  223. package/esm2022/lib/storage/index.mjs +0 -5
  224. package/index.d.ts +0 -1
  225. package/lib/analytics/analytics.user.events.providers.d.ts +0 -6
  226. package/lib/analytics/analytics.user.events.service.d.ts +0 -19
  227. package/lib/analytics/analytics.user.source.d.ts +0 -21
  228. package/lib/analytics/index.d.ts +0 -3
  229. package/lib/auth/appcheck/appcheck.d.ts +0 -8
  230. package/lib/auth/appcheck/appcheck.interceptor.d.ts +0 -15
  231. package/lib/auth/appcheck/index.d.ts +0 -2
  232. package/lib/auth/auth.d.ts +0 -15
  233. package/lib/auth/firebase.auth.module.d.ts +0 -13
  234. package/lib/auth/firebase.auth.providers.d.ts +0 -21
  235. package/lib/auth/index.d.ts +0 -6
  236. package/lib/auth/login/firebase.login.module.d.ts +0 -36
  237. package/lib/auth/login/firebase.login.providers.d.ts +0 -32
  238. package/lib/auth/login/firebase.login.providers.default.d.ts +0 -7
  239. package/lib/auth/login/index.d.ts +0 -26
  240. package/lib/auth/login/login.anonymous.component.d.ts +0 -8
  241. package/lib/auth/login/login.apple.component.d.ts +0 -8
  242. package/lib/auth/login/login.button.component.d.ts +0 -53
  243. package/lib/auth/login/login.component.d.ts +0 -14
  244. package/lib/auth/login/login.context.back.component.d.ts +0 -8
  245. package/lib/auth/login/login.context.d.ts +0 -6
  246. package/lib/auth/login/login.context.directive.d.ts +0 -10
  247. package/lib/auth/login/login.d.ts +0 -7
  248. package/lib/auth/login/login.email.component.d.ts +0 -8
  249. package/lib/auth/login/login.email.content.component.d.ts +0 -41
  250. package/lib/auth/login/login.email.form.component.d.ts +0 -17
  251. package/lib/auth/login/login.email.recovery.form.component.d.ts +0 -11
  252. package/lib/auth/login/login.facebook.component.d.ts +0 -8
  253. package/lib/auth/login/login.github.component.d.ts +0 -8
  254. package/lib/auth/login/login.google.component.d.ts +0 -8
  255. package/lib/auth/login/login.list.component.d.ts +0 -21
  256. package/lib/auth/login/login.microsoft.component.d.ts +0 -8
  257. package/lib/auth/login/login.password.d.ts +0 -3
  258. package/lib/auth/login/login.service.d.ts +0 -115
  259. package/lib/auth/login/login.terms.component.d.ts +0 -9
  260. package/lib/auth/login/login.terms.d.ts +0 -18
  261. package/lib/auth/login/login.terms.simple.component.d.ts +0 -9
  262. package/lib/auth/login/login.twitter.component.d.ts +0 -8
  263. package/lib/auth/login/register.component.d.ts +0 -12
  264. package/lib/auth/login/register.email.component.d.ts +0 -8
  265. package/lib/auth/service/firebase.auth.rxjs.d.ts +0 -23
  266. package/lib/auth/service/firebase.auth.service.d.ts +0 -95
  267. package/lib/auth/service/firebase.auth.service.delegate.d.ts +0 -25
  268. package/lib/auth/service/index.d.ts +0 -3
  269. package/lib/development/development.directive.d.ts +0 -24
  270. package/lib/development/development.module.d.ts +0 -15
  271. package/lib/development/development.popup.component.d.ts +0 -14
  272. package/lib/development/development.popup.content.component.d.ts +0 -49
  273. package/lib/development/development.popup.content.form.component.d.ts +0 -17
  274. package/lib/development/development.providers.d.ts +0 -32
  275. package/lib/development/development.scheduler.list.component.d.ts +0 -23
  276. package/lib/development/development.scheduler.service.d.ts +0 -31
  277. package/lib/development/development.scheduler.widget.component.d.ts +0 -12
  278. package/lib/development/development.service.d.ts +0 -16
  279. package/lib/development/development.widget.d.ts +0 -8
  280. package/lib/development/development.widget.service.d.ts +0 -29
  281. package/lib/development/index.d.ts +0 -13
  282. package/lib/firebase/appcheck.d.ts +0 -21
  283. package/lib/firebase/emulators.d.ts +0 -60
  284. package/lib/firebase/firebase.emulator.module.d.ts +0 -14
  285. package/lib/firebase/firebase.emulator.providers.d.ts +0 -13
  286. package/lib/firebase/firebase.emulator.service.d.ts +0 -11
  287. package/lib/firebase/firebase.module.d.ts +0 -14
  288. package/lib/firebase/firebase.options.d.ts +0 -36
  289. package/lib/firebase/firebase.options.environment.d.ts +0 -10
  290. package/lib/firebase/firebase.providers.d.ts +0 -51
  291. package/lib/firebase/index.d.ts +0 -9
  292. package/lib/firestore/firebase.firestore.context.service.d.ts +0 -10
  293. package/lib/firestore/firebase.firestore.d.ts +0 -5
  294. package/lib/firestore/firebase.firestore.module.d.ts +0 -15
  295. package/lib/firestore/firebase.firestore.providers.d.ts +0 -62
  296. package/lib/firestore/index.d.ts +0 -4
  297. package/lib/function/firebase.function.module.d.ts +0 -16
  298. package/lib/function/firebase.function.providers.d.ts +0 -43
  299. package/lib/function/index.d.ts +0 -2
  300. package/lib/index.d.ts +0 -13
  301. package/lib/model/error.d.ts +0 -2
  302. package/lib/model/index.d.ts +0 -6
  303. package/lib/model/loader/collection.change.trigger.d.ts +0 -57
  304. package/lib/model/loader/collection.change.watcher.d.ts +0 -44
  305. package/lib/model/loader/collection.loader.d.ts +0 -61
  306. package/lib/model/loader/collection.loader.instance.d.ts +0 -110
  307. package/lib/model/loader/document.loader.d.ts +0 -75
  308. package/lib/model/loader/document.loader.instance.d.ts +0 -46
  309. package/lib/model/loader/index.d.ts +0 -6
  310. package/lib/model/model.module.d.ts +0 -9
  311. package/lib/model/modules/index.d.ts +0 -2
  312. package/lib/model/modules/model/entities/index.d.ts +0 -10
  313. package/lib/model/modules/model/entities/model.entities.component.d.ts +0 -47
  314. package/lib/model/modules/model/entities/model.entities.d.ts +0 -60
  315. package/lib/model/modules/model/entities/model.entities.entity.component.d.ts +0 -43
  316. package/lib/model/modules/model/entities/model.entities.popover.button.component.d.ts +0 -30
  317. package/lib/model/modules/model/entities/model.entities.popover.component.d.ts +0 -59
  318. package/lib/model/modules/model/entities/model.entities.providers.d.ts +0 -22
  319. package/lib/model/modules/model/entities/model.entities.source.directive.d.ts +0 -8
  320. package/lib/model/modules/model/entities/model.entities.widget.d.ts +0 -30
  321. package/lib/model/modules/model/entities/model.entities.widget.entity.abstract.directive.d.ts +0 -13
  322. package/lib/model/modules/model/entities/model.entities.widget.entity.debug.component.d.ts +0 -17
  323. package/lib/model/modules/model/entities/model.entities.widget.service.d.ts +0 -74
  324. package/lib/model/modules/model/history/index.d.ts +0 -6
  325. package/lib/model/modules/model/history/model.history.component.d.ts +0 -16
  326. package/lib/model/modules/model/history/model.history.module.d.ts +0 -16
  327. package/lib/model/modules/model/history/model.history.popover.button.component.d.ts +0 -16
  328. package/lib/model/modules/model/history/model.history.popover.component.d.ts +0 -50
  329. package/lib/model/modules/model/history/model.sourceselect.history.d.ts +0 -32
  330. package/lib/model/modules/model/history/model.tracker.service.d.ts +0 -43
  331. package/lib/model/modules/model/index.d.ts +0 -7
  332. package/lib/model/modules/model/model.key.component.d.ts +0 -25
  333. package/lib/model/modules/model/model.types.list.component.d.ts +0 -22
  334. package/lib/model/modules/model/model.types.module.d.ts +0 -16
  335. package/lib/model/modules/model/model.types.providers.d.ts +0 -22
  336. package/lib/model/modules/model/model.types.service.d.ts +0 -90
  337. package/lib/model/modules/model/model.types.view.directive.d.ts +0 -19
  338. package/lib/model/modules/store/index.d.ts +0 -21
  339. package/lib/model/modules/store/model.store.module.d.ts +0 -11
  340. package/lib/model/modules/store/store.collection.change.directive.d.ts +0 -28
  341. package/lib/model/modules/store/store.collection.change.if.directive.d.ts +0 -18
  342. package/lib/model/modules/store/store.collection.crud.d.ts +0 -21
  343. package/lib/model/modules/store/store.collection.d.ts +0 -97
  344. package/lib/model/modules/store/store.collection.directive.d.ts +0 -56
  345. package/lib/model/modules/store/store.collection.list.directive.d.ts +0 -16
  346. package/lib/model/modules/store/store.d.ts +0 -87
  347. package/lib/model/modules/store/store.document.context.store.d.ts +0 -59
  348. package/lib/model/modules/store/store.document.context.store.directive.d.ts +0 -8
  349. package/lib/model/modules/store/store.document.context.store.link.d.ts +0 -17
  350. package/lib/model/modules/store/store.document.crud.d.ts +0 -63
  351. package/lib/model/modules/store/store.document.d.ts +0 -101
  352. package/lib/model/modules/store/store.document.directive.d.ts +0 -66
  353. package/lib/model/modules/store/store.document.twoway.key.directive.d.ts +0 -14
  354. package/lib/model/modules/store/store.document.twoway.key.source.d.ts +0 -10
  355. package/lib/model/modules/store/store.document.twoway.key.source.directive.d.ts +0 -13
  356. package/lib/model/modules/store/store.subcollection.d.ts +0 -51
  357. package/lib/model/modules/store/store.subcollection.directive.d.ts +0 -28
  358. package/lib/model/modules/store/store.subcollection.document.d.ts +0 -67
  359. package/lib/model/modules/store/store.subcollection.rxjs.d.ts +0 -24
  360. package/lib/model/service/index.d.ts +0 -4
  361. package/lib/model/service/model.context.d.ts +0 -33
  362. package/lib/model/service/model.context.instance.d.ts +0 -17
  363. package/lib/model/service/model.context.providers.d.ts +0 -18
  364. package/lib/model/service/model.context.service.d.ts +0 -31
  365. package/lib/model/system/index.d.ts +0 -5
  366. package/lib/model/system/systemstate.collection.store.d.ts +0 -8
  367. package/lib/model/system/systemstate.collection.store.directive.d.ts +0 -9
  368. package/lib/model/system/systemstate.document.store.accessor.d.ts +0 -22
  369. package/lib/model/system/systemstate.document.store.d.ts +0 -8
  370. package/lib/model/system/systemstate.document.store.directive.d.ts +0 -9
  371. package/lib/module.d.ts +0 -7
  372. package/lib/modules/index.d.ts +0 -2
  373. package/lib/modules/notification/component/index.d.ts +0 -5
  374. package/lib/modules/notification/component/notificationitem.content.component.d.ts +0 -9
  375. package/lib/modules/notification/component/notificationitem.list.component.d.ts +0 -24
  376. package/lib/modules/notification/component/notificationitem.view.component.d.ts +0 -10
  377. package/lib/modules/notification/component/notificationitem.view.default.component.d.ts +0 -9
  378. package/lib/modules/notification/component/notificationitem.view.directive.d.ts +0 -8
  379. package/lib/modules/notification/container/index.d.ts +0 -2
  380. package/lib/modules/notification/container/notification.item.store.popover.button.component.d.ts +0 -17
  381. package/lib/modules/notification/container/notification.item.store.popover.component.d.ts +0 -50
  382. package/lib/modules/notification/index.d.ts +0 -6
  383. package/lib/modules/notification/notification.module.d.ts +0 -38
  384. package/lib/modules/notification/notification.providers.d.ts +0 -24
  385. package/lib/modules/notification/service/index.d.ts +0 -3
  386. package/lib/modules/notification/service/notification.template.service.d.ts +0 -11
  387. package/lib/modules/notification/service/notificationitem.widget.d.ts +0 -26
  388. package/lib/modules/notification/service/notificationitem.widget.service.d.ts +0 -22
  389. package/lib/modules/notification/store/index.d.ts +0 -17
  390. package/lib/modules/notification/store/notification.collection.store.d.ts +0 -9
  391. package/lib/modules/notification/store/notification.collection.store.directive.d.ts +0 -9
  392. package/lib/modules/notification/store/notification.document.store.d.ts +0 -16
  393. package/lib/modules/notification/store/notification.document.store.directive.d.ts +0 -9
  394. package/lib/modules/notification/store/notification.item.store.d.ts +0 -28
  395. package/lib/modules/notification/store/notificationbox.collection.store.d.ts +0 -8
  396. package/lib/modules/notification/store/notificationbox.collection.store.directive.d.ts +0 -9
  397. package/lib/modules/notification/store/notificationbox.document.store.d.ts +0 -13
  398. package/lib/modules/notification/store/notificationbox.document.store.directive.d.ts +0 -9
  399. package/lib/modules/notification/store/notificationsummary.collection.store.d.ts +0 -8
  400. package/lib/modules/notification/store/notificationsummary.collection.store.directive.d.ts +0 -9
  401. package/lib/modules/notification/store/notificationsummary.document.store.d.ts +0 -21
  402. package/lib/modules/notification/store/notificationsummary.document.store.directive.d.ts +0 -9
  403. package/lib/modules/notification/store/notificationuser.collection.store.d.ts +0 -8
  404. package/lib/modules/notification/store/notificationuser.collection.store.directive.d.ts +0 -9
  405. package/lib/modules/notification/store/notificationuser.document.store.d.ts +0 -11
  406. package/lib/modules/notification/store/notificationuser.document.store.directive.d.ts +0 -9
  407. package/lib/modules/storagefile/container/index.d.ts +0 -7
  408. package/lib/modules/storagefile/container/storagefile.download.button.component.d.ts +0 -160
  409. package/lib/modules/storagefile/container/storagefile.upload.action.handler.directive.d.ts +0 -47
  410. package/lib/modules/storagefile/container/storagefile.upload.error.d.ts +0 -9
  411. package/lib/modules/storagefile/container/storagefile.upload.handler.d.ts +0 -183
  412. package/lib/modules/storagefile/container/storagefile.upload.initialize.document.directive.d.ts +0 -21
  413. package/lib/modules/storagefile/container/storagefile.upload.store.directive.d.ts +0 -20
  414. package/lib/modules/storagefile/container/storagefile.upload.sync.directive.d.ts +0 -18
  415. package/lib/modules/storagefile/index.d.ts +0 -5
  416. package/lib/modules/storagefile/service/index.d.ts +0 -2
  417. package/lib/modules/storagefile/service/storagefile.download.service.d.ts +0 -79
  418. package/lib/modules/storagefile/service/storagefile.download.storage.service.d.ts +0 -56
  419. package/lib/modules/storagefile/storagefile.providers.d.ts +0 -13
  420. package/lib/modules/storagefile/storagefile.upload.module.d.ts +0 -29
  421. package/lib/modules/storagefile/store/index.d.ts +0 -7
  422. package/lib/modules/storagefile/store/storagefile.collection.store.d.ts +0 -10
  423. package/lib/modules/storagefile/store/storagefile.collection.store.directive.d.ts +0 -9
  424. package/lib/modules/storagefile/store/storagefile.document.store.d.ts +0 -16
  425. package/lib/modules/storagefile/store/storagefile.document.store.directive.d.ts +0 -9
  426. package/lib/modules/storagefile/store/storagefile.upload.store.d.ts +0 -166
  427. package/lib/modules/storagefile/store/storagefilegroup.document.store.d.ts +0 -11
  428. package/lib/modules/storagefile/store/storagefilegroup.document.store.directive.d.ts +0 -9
  429. package/lib/pipe/index.d.ts +0 -3
  430. package/lib/pipe/key.flat.pipe.d.ts +0 -9
  431. package/lib/pipe/key.twoway.pipe.d.ts +0 -9
  432. package/lib/pipe/pipe.module.d.ts +0 -13
  433. package/lib/providers.d.ts +0 -64
  434. package/lib/router/id.param.redirect.d.ts +0 -41
  435. package/lib/router/index.d.ts +0 -1
  436. package/lib/storage/firebase.storage.d.ts +0 -9
  437. package/lib/storage/firebase.storage.module.d.ts +0 -13
  438. package/lib/storage/firebase.storage.providers.d.ts +0 -31
  439. package/lib/storage/firebase.storage.service.d.ts +0 -13
  440. package/lib/storage/index.d.ts +0 -4
@@ -1,36 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { type PersistentCacheSettings } from 'firebase/firestore';
3
- import { type FirebaseOptions } from 'firebase/app';
4
- import { type DbxFirebaseAppCheckConfig } from './appcheck';
5
- import { type DbxFirebaseEmulatorsConfig } from './emulators';
6
- export declare const DBX_FIREBASE_APP_OPTIONS_TOKEN: InjectionToken<DbxFirebaseAppOptions>;
7
- /**
8
- * Extends FirebaseOptions with additional properties for configuring the underlying client-side Firebase services.
9
- */
10
- export interface DbxFirebaseAppOptions extends FirebaseOptions {
11
- readonly emulators: DbxFirebaseEmulatorsConfig;
12
- /**
13
- * Firebase AppCheck handling
14
- */
15
- readonly appCheck?: DbxFirebaseAppCheckConfig;
16
- /**
17
- * Passed to the Functions initialization to set the domain to use when sending requests.
18
- */
19
- readonly functionsRegionOrCustomDomain?: string | undefined;
20
- /**
21
- * Whether or not to call enableMultiTabIndexedDbPersistence() for firestore at setup time.
22
- *
23
- * True by default.
24
- */
25
- readonly enableMultiTabIndexedDbPersistence?: boolean;
26
- /**
27
- * Whether or not to call enableIndexedDbPersistence() for firestore at setup time.
28
- *
29
- * True by default if enableMultiTabIndexedDbPersistence is false.
30
- */
31
- readonly enableIndexedDbPersistence?: boolean;
32
- /**
33
- * Optional persistent cache setting to pass to the Firestore cache.
34
- */
35
- readonly persistentCacheSettings?: Omit<PersistentCacheSettings, 'tabManager'>;
36
- }
@@ -1,10 +0,0 @@
1
- import { type ProvideDbxFirebaseLoginConfig } from '../auth/login/firebase.login.providers';
2
- import { type DbxFirebaseAppOptions } from './firebase.options';
3
- /**
4
- * Convenience type used in .environment.ts files for building configuration.
5
- */
6
- export type DbxFirebaseEnvironmentOptions = DbxFirebaseAppOptions & Pick<ProvideDbxFirebaseLoginConfig, 'enabledLoginMethods'>;
7
- /**
8
- * @deprecated use DbxFirebaseEnvironmentOptions instead.
9
- */
10
- export type DbxFirebaseOptions = DbxFirebaseEnvironmentOptions;
@@ -1,51 +0,0 @@
1
- import { type EnvironmentProviders } from '@angular/core';
2
- import { type DbxFirebaseAppOptions } from './firebase.options';
3
- import { type Maybe } from '@dereekb/util';
4
- /**
5
- * Configuration for provideDbxFirebaseApp().
6
- */
7
- export interface ProvideDbxFirebaseAppConfig {
8
- /**
9
- * DbxFirebaseAppOptions for the app.
10
- *
11
- * Is automatically configured as a provider for the DBX_FIREBASE_APP_OPTIONS_TOKEN.
12
- */
13
- readonly dbxFirebaseAppOptions: DbxFirebaseAppOptions;
14
- /**
15
- * Whether or not to provide Firestore configuration.
16
- *
17
- * True by default.
18
- */
19
- readonly provideFirestore?: Maybe<boolean>;
20
- /**
21
- * Whether or not to provide App Check configuration.
22
- *
23
- * True by default.
24
- */
25
- readonly provideAppCheck?: Maybe<boolean>;
26
- /**
27
- * Whether or not to provide Auth configuration.
28
- *
29
- * True by default.
30
- */
31
- readonly provideAuth?: Maybe<boolean>;
32
- /**
33
- * Whether or not to provide Storage configuration.
34
- *
35
- * True by default.
36
- */
37
- readonly provideStorage?: Maybe<boolean>;
38
- /**
39
- * Whether or not to provide Functions configuration.
40
- *
41
- * True by default.
42
- */
43
- readonly provideFunctions?: Maybe<boolean>;
44
- }
45
- /**
46
- * Provides EnvironmentProviders for all Firebase services.
47
- *
48
- * @param config
49
- * @returns EnvironmentProviders
50
- */
51
- export declare function provideDbxFirebaseApp(config: ProvideDbxFirebaseAppConfig): EnvironmentProviders;
@@ -1,9 +0,0 @@
1
- export * from './appcheck';
2
- export * from './emulators';
3
- export * from './firebase.providers';
4
- export * from './firebase.module';
5
- export * from './firebase.emulator.module';
6
- export * from './firebase.emulator.service';
7
- export * from './firebase.emulator.providers';
8
- export * from './firebase.options';
9
- export * from './firebase.options.environment';
@@ -1,10 +0,0 @@
1
- import { FirestoreContext } from '@dereekb/firebase';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Service that provides access to the app's FirestoreContext.
5
- */
6
- export declare class DbxFirestoreContextService {
7
- readonly firestoreContext: FirestoreContext<import("@dereekb/firebase").Firestore>;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirestoreContextService, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<DbxFirestoreContextService>;
10
- }
@@ -1,5 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /**
3
- * Token to access the FirestoreContext value.
4
- */
5
- export declare const DBX_FIRESTORE_CONTEXT_TOKEN: InjectionToken<unknown>;
@@ -1,15 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { ProvideDbxFirebaseFirestoreCollectionConfig } from './firebase.firestore.providers';
3
- import * as i0 from "@angular/core";
4
- export type DbxFirebaseFirestoreCollectionModuleConfig<T> = ProvideDbxFirebaseFirestoreCollectionConfig<T>;
5
- /**
6
- * Used to initialize the FirestoreCollection for a DbxFirebase app.
7
- *
8
- * @deprecated use provideDbxFirestoreCollection() instead.
9
- */
10
- export declare class DbxFirebaseFirestoreCollectionModule {
11
- static forRoot<T>(config: DbxFirebaseFirestoreCollectionModuleConfig<T>): ModuleWithProviders<DbxFirebaseFirestoreCollectionModule>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseFirestoreCollectionModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFirebaseFirestoreCollectionModule, never, never, never>;
14
- static ɵinj: i0.ɵɵInjectorDeclaration<DbxFirebaseFirestoreCollectionModule>;
15
- }
@@ -1,62 +0,0 @@
1
- import { type EnvironmentProviders } from '@angular/core';
2
- import { type FirestoreContext, NotificationFirestoreCollections, StorageFileFirestoreCollections, SystemStateFirestoreCollections } from '@dereekb/firebase';
3
- import { type ClassLikeType } from '@dereekb/util';
4
- /**
5
- * Provider factory for the SystemStateFirestoreCollections.
6
- *
7
- * @param appCollection The app collection class to use.
8
- * @returns Provider factory for the SystemStateFirestoreCollections.
9
- */
10
- export declare function provideSystemStateFirestoreCollections(appCollection: SystemStateFirestoreCollections): SystemStateFirestoreCollections;
11
- /**
12
- * Provider factory for the NotificationFirestoreCollections.
13
- *
14
- * @param appCollection The app collection class to use.
15
- * @returns Provider factory for the NotificationFirestoreCollections.
16
- */
17
- export declare function provideNotificationFirestoreCollections(appCollection: NotificationFirestoreCollections): NotificationFirestoreCollections;
18
- /**
19
- * Provider factory for the StorageFileFirestoreCollections.
20
- *
21
- * @param appCollection The app collection class to use.
22
- * @returns Provider factory for the StorageFileFirestoreCollections.
23
- */
24
- export declare function provideStorageFileFirestoreCollections(appCollection: StorageFileFirestoreCollections): StorageFileFirestoreCollections;
25
- /**
26
- * Configuration for provideDbxFirestoreCollection().
27
- */
28
- export interface ProvideDbxFirebaseFirestoreCollectionConfig<T> {
29
- /**
30
- * The app collection class to use.
31
- */
32
- readonly appCollectionClass: ClassLikeType<T>;
33
- /**
34
- * The collection factory to use.
35
- */
36
- readonly collectionFactory: (context: FirestoreContext) => T;
37
- /**
38
- * Whether or not to provide the SystemStateFirestoreCollections.
39
- *
40
- * True by default.
41
- */
42
- readonly provideSystemStateFirestoreCollections?: boolean;
43
- /**
44
- * Whether or not to provide the NotificationFirestoreCollections.
45
- *
46
- * False by default.
47
- */
48
- readonly provideNotificationFirestoreCollections?: boolean;
49
- /**
50
- * Whether or not to provide the StorageFileFirestoreCollections.
51
- *
52
- * False by default.
53
- */
54
- readonly provideStorageFileFirestoreCollections?: boolean;
55
- }
56
- /**
57
- * Creates EnvironmentProviders for the DBX_FIRESTORE_CONTEXT_TOKEN, appCollectionClass, and optionally the SystemStateFirestoreCollections and NotificationFirestoreCollections.
58
- *
59
- * @param config Configuration for the providers.
60
- * @returns EnvironmentProviders
61
- */
62
- export declare function provideDbxFirestoreCollection<T>(config: ProvideDbxFirebaseFirestoreCollectionConfig<T>): EnvironmentProviders;
@@ -1,4 +0,0 @@
1
- export * from './firebase.firestore';
2
- export * from './firebase.firestore.module';
3
- export * from './firebase.firestore.providers';
4
- export * from './firebase.firestore.context.service';
@@ -1,16 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { ProvideDbxFirebaseFunctionsConfig } from './firebase.function.providers';
3
- import { FirebaseFunctionsMap } from '@dereekb/firebase';
4
- import * as i0 from "@angular/core";
5
- export type DbxFirebaseFunctionsModuleConfig<T, M extends FirebaseFunctionsMap = FirebaseFunctionsMap> = ProvideDbxFirebaseFunctionsConfig<T, M>;
6
- /**
7
- * Used to initialize the LazyFirebaseFunctions type for a DbxFirebase app.
8
- *
9
- * @deprecated use provideDbxFirebaseFunctions() instead.
10
- */
11
- export declare class DbxFirebaseFunctionsModule {
12
- static forRoot<T, M extends FirebaseFunctionsMap = FirebaseFunctionsMap>(config: DbxFirebaseFunctionsModuleConfig<T, M>): ModuleWithProviders<DbxFirebaseFunctionsModule>;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseFunctionsModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFirebaseFunctionsModule, never, never, never>;
15
- static ɵinj: i0.ɵɵInjectorDeclaration<DbxFirebaseFunctionsModule>;
16
- }
@@ -1,43 +0,0 @@
1
- import { type EnvironmentProviders } from '@angular/core';
2
- import { Functions } from '@angular/fire/functions';
3
- import { type FirebaseFunctionsConfigMap, type FirebaseFunctionsMap } from '@dereekb/firebase';
4
- import { type ClassLikeType } from '@dereekb/util';
5
- /**
6
- * Configuration for provideDbxFirebaseFunctions().
7
- */
8
- export interface ProvideDbxFirebaseFunctionsConfig<T, M extends FirebaseFunctionsMap = FirebaseFunctionsMap> {
9
- /**
10
- * The token to use for the functions getter.
11
- *
12
- * This is typically your LazyFirebaseFunctions result type.
13
- */
14
- functionsGetterToken: ClassLikeType<T>;
15
- /**
16
- * Factory function to retrieve the functions getter instance.
17
- *
18
- * @param functions The Firebase functions instance.
19
- * @returns The functions getter instance.
20
- */
21
- functionsGetterFactory: (functions: Functions) => T;
22
- /**
23
- * Key of the functions config to use to inject FirebaseDevelopmentFunctions using that same provider.
24
- *
25
- * Defaults to "developmentFunctions". If false, will not be injected automatically.
26
- */
27
- developmentFunctionsKey?: string | false;
28
- /**
29
- * Optional functions config map to provide.
30
- *
31
- * If provided, will inject all the types with factory functions so they can be injected into the app.
32
- */
33
- functionsConfigMap?: FirebaseFunctionsConfigMap<M>;
34
- }
35
- /**
36
- * Creates EnvironmentProviders for the LazyFirebaseFunctions type for a DbxFirebase app.
37
- *
38
- * Also provides FirebaseDevelopmentFunctions if developmentFunctionsKey is provided.
39
- *
40
- * @param config Configuration for provideDbxFirebaseFunctions().
41
- * @returns EnvironmentProviders for the LazyFirebaseFunctions type.
42
- */
43
- export declare function provideDbxFirebaseFunctions<T, M extends FirebaseFunctionsMap = FirebaseFunctionsMap>(config: ProvideDbxFirebaseFunctionsConfig<T, M>): EnvironmentProviders;
@@ -1,2 +0,0 @@
1
- export * from './firebase.function.module';
2
- export * from './firebase.function.providers';
package/lib/index.d.ts DELETED
@@ -1,13 +0,0 @@
1
- export * from './analytics';
2
- export * from './auth';
3
- export * from './development';
4
- export * from './firebase';
5
- export * from './firestore';
6
- export * from './function';
7
- export * from './model';
8
- export * from './modules';
9
- export * from './pipe';
10
- export * from './router';
11
- export * from './storage';
12
- export * from './module';
13
- export * from './providers';
@@ -1,2 +0,0 @@
1
- export declare const DBX_FIREBASE_MODEL_DOES_NOT_EXIST_ERROR = "DOES_NOT_EXIST";
2
- export declare function modelDoesNotExistError(): import("@dereekb/util").ReadableErrorWithCode<import("@dereekb/util").ReadableError>;
@@ -1,6 +0,0 @@
1
- export * from './loader';
2
- export * from './service';
3
- export * from './modules';
4
- export * from './system';
5
- export * from './error';
6
- export * from './model.module';
@@ -1,57 +0,0 @@
1
- import { type ObservableOrValue } from '@dereekb/rxjs';
2
- import { type Destroyable, type Maybe, type Initialized } from '@dereekb/util';
3
- import { type DbxFirebaseCollectionChangeWatcher } from './collection.change.watcher';
4
- import { type DbxFirebaseCollectionLoaderAccessor } from './collection.loader';
5
- export type DbxFirebaseCollectionChangeTriggerFunction<S extends DbxFirebaseCollectionLoaderAccessor<any>> = (instance: DbxFirebaseCollectionChangeTriggerInstance<S>) => ObservableOrValue<void>;
6
- /**
7
- * Restarts the store.
8
- *
9
- * @param instance
10
- * @returns
11
- */
12
- export declare const DEFAULT_FIREBASE_COLLECTION_CHANGE_TRIGGER_FUNCTION: DbxFirebaseCollectionChangeTriggerFunction<any>;
13
- export interface DbxFirebaseCollectionChangeTriggerInstanceConfig<S extends DbxFirebaseCollectionLoaderAccessor<any>> {
14
- readonly watcher: DbxFirebaseCollectionChangeWatcher<S> & Partial<Destroyable>;
15
- /**
16
- * Whether or not to also destroy the watcher when the trigger instance is destroyed.
17
- *
18
- * Defaults to false.
19
- */
20
- readonly destroyWatcherOnDestroy?: boolean;
21
- /**
22
- * Initial trigger function to use.
23
- *
24
- * By default restarts the store.
25
- */
26
- readonly triggerFunction?: Maybe<DbxFirebaseCollectionChangeTriggerFunction<S>>;
27
- }
28
- export interface DbxFirebaseCollectionChangeTrigger<S extends DbxFirebaseCollectionLoaderAccessor<any>> {
29
- readonly watcher: DbxFirebaseCollectionChangeWatcher<S>;
30
- setTriggerFunction?: Maybe<DbxFirebaseCollectionChangeTriggerFunction<S>>;
31
- }
32
- export declare class DbxFirebaseCollectionChangeTriggerInstance<S extends DbxFirebaseCollectionLoaderAccessor<any>> implements DbxFirebaseCollectionChangeTrigger<S>, Initialized, Destroyable {
33
- readonly watcher: DbxFirebaseCollectionChangeWatcher<S>;
34
- private readonly _config;
35
- private readonly _triggerFunction;
36
- private readonly _sub;
37
- constructor(config: DbxFirebaseCollectionChangeTriggerInstanceConfig<S>);
38
- get config(): DbxFirebaseCollectionChangeTriggerInstanceConfig<S>;
39
- init(): void;
40
- destroy(): void;
41
- get triggerFunction(): Maybe<DbxFirebaseCollectionChangeTriggerFunction<S>>;
42
- set triggerFunction(triggerFunction: Maybe<DbxFirebaseCollectionChangeTriggerFunction<S>>);
43
- }
44
- /**
45
- * Creates a new DbxFirebaseCollectionChangeWatcher, set the modes to "auto", and creates a new DbxFirebaseCollectionChangeTriggerInstance.
46
- *
47
- * If no trigger function is provided it will default to resetting the store.
48
- *
49
- * NOTE: Don't forget to initialize the DbxFirebaseCollectionChangeTriggerInstance and handle other lifecycle changes.
50
- *
51
- * @param store
52
- * @param triggerFunction
53
- * @returns
54
- */
55
- export declare function dbxFirebaseCollectionChangeTriggerForStore<S extends DbxFirebaseCollectionLoaderAccessor<any>>(store: S, triggerFunction?: Maybe<DbxFirebaseCollectionChangeTriggerFunction<S>>): DbxFirebaseCollectionChangeTriggerInstance<S>;
56
- export declare function dbxFirebaseCollectionChangeTriggerForWatcher<S extends DbxFirebaseCollectionLoaderAccessor<any>>(watcher: DbxFirebaseCollectionChangeWatcher<S>, triggerFunction?: Maybe<DbxFirebaseCollectionChangeTriggerFunction<S>>): DbxFirebaseCollectionChangeTriggerInstance<S>;
57
- export declare function dbxFirebaseCollectionChangeTrigger<S extends DbxFirebaseCollectionLoaderAccessor<any>>(config: DbxFirebaseCollectionChangeTriggerInstanceConfig<S>): DbxFirebaseCollectionChangeTriggerInstance<S>;
@@ -1,44 +0,0 @@
1
- import { type IterationQueryDocChangeWatcherEvent } from '@dereekb/firebase';
2
- import { type Destroyable } from '@dereekb/util';
3
- import { type Observable } from 'rxjs';
4
- import { type DbxFirebaseCollectionLoaderAccessor } from './collection.loader';
5
- /**
6
- * DbxFirebaseCollectionChangeWatcher trigger modes
7
- * - auto: will automatically call trigger
8
- * - off: will never call trigger
9
- */
10
- export type DbxFirebaseCollectionChangeWatcherTriggerMode = 'auto' | 'off';
11
- export type DbxFirebaseCollectionChangeWatcherEvent = Pick<IterationQueryDocChangeWatcherEvent<unknown>, 'time' | 'type'>;
12
- /**
13
- * Used to watch a DbxFirebaseCollectionLoaderAccessor for when the query changes and
14
- */
15
- export interface DbxFirebaseCollectionChangeWatcher<S extends DbxFirebaseCollectionLoaderAccessor<any>> {
16
- readonly store: S;
17
- /**
18
- * Current mode observable
19
- */
20
- readonly mode$: Observable<DbxFirebaseCollectionChangeWatcherTriggerMode>;
21
- /**
22
- * Stream of events
23
- */
24
- readonly event$: Observable<DbxFirebaseCollectionChangeWatcherEvent>;
25
- readonly hasChangeAvailable$: Observable<boolean>;
26
- /**
27
- * Current trigger state. Based on the hasChangeAvailable$ state and current mode.
28
- */
29
- readonly triggered$: Observable<boolean>;
30
- /**
31
- * Trigger emitter. Only emits when triggered$ is/becomes true.
32
- */
33
- readonly trigger$: Observable<void>;
34
- }
35
- /**
36
- * DbxFirebaseCollectionChangeWatcher instance that can be destroyed and the mode changed.
37
- */
38
- export interface DbxFirebaseCollectionChangeWatcherInstance<S extends DbxFirebaseCollectionLoaderAccessor<any>> extends DbxFirebaseCollectionChangeWatcher<S>, Destroyable {
39
- /**
40
- * Changes the mode
41
- */
42
- setMode(mode: DbxFirebaseCollectionChangeWatcherTriggerMode): void;
43
- }
44
- export declare function dbxFirebaseCollectionChangeWatcher<S extends DbxFirebaseCollectionLoaderAccessor<any>>(store: S, initialMode?: DbxFirebaseCollectionChangeWatcherTriggerMode): DbxFirebaseCollectionChangeWatcherInstance<S>;
@@ -1,61 +0,0 @@
1
- import { type DocumentDataWithIdAndKey, type FirebaseQueryItemAccumulator, type FirebaseQueryItemAccumulatorNextPageUntilResultsCountFunction, type FirebaseQuerySnapshotAccumulator, type FirestoreItemPageIterationInstance, type FirestoreQueryConstraint, type IterationQueryDocChangeWatcher } from '@dereekb/firebase';
2
- import { type ItemAccumulatorNextPageUntilResultsCountResult, type PageListLoadingState } from '@dereekb/rxjs';
3
- import { type Maybe, type ArrayOrValue, type PageNumber } from '@dereekb/util';
4
- import { type Observable } from 'rxjs';
5
- export interface DbxFirebaseCollectionLoaderAccessor<T = unknown> {
6
- readonly constraints$: Observable<Maybe<ArrayOrValue<FirestoreQueryConstraint>>>;
7
- readonly firestoreIteration$: Observable<FirestoreItemPageIterationInstance<T>>;
8
- readonly pageLoadingState$: Observable<PageListLoadingState<DocumentDataWithIdAndKey<T>>>;
9
- readonly queryChangeWatcher$: Observable<IterationQueryDocChangeWatcher<T>>;
10
- /**
11
- * Restarts the loader and refreshes items from the beginning.
12
- */
13
- restart(): void;
14
- }
15
- /**
16
- * Abstract type that loads models from a configured collection.
17
- */
18
- export interface DbxFirebaseCollectionLoader<T = unknown> extends DbxFirebaseCollectionLoaderAccessor<T> {
19
- /**
20
- * Maximum number of pages to load from the interation.
21
- *
22
- * Changing this updates the iteration, but does not reset it.
23
- */
24
- maxPages: Maybe<number>;
25
- /**
26
- * Number of items to load per page.
27
- *
28
- * Changing this will reset the iteration.
29
- */
30
- itemsPerPage: Maybe<number>;
31
- /**
32
- * Sets the constraints on the model loader.
33
- *
34
- * @param constraints
35
- */
36
- setConstraints(constraints: Maybe<ArrayOrValue<FirestoreQueryConstraint>>): void;
37
- /**
38
- * Loads more items.
39
- */
40
- next(): void;
41
- /**
42
- * Returns an observable that loads up to the given page then emits the page number.
43
- *
44
- * @param page Page number to load to.
45
- */
46
- loadToPage(page: PageNumber): Observable<PageNumber>;
47
- /**
48
- * Loads results until all results have been loaded or the max page limit is reached.
49
- */
50
- loadAllResults(): Observable<PageNumber>;
51
- }
52
- export interface DbxFirebaseCollectionLoaderAccessorWithAccumulator<T = unknown> extends DbxFirebaseCollectionLoaderAccessor<T> {
53
- readonly snapshotAccumulator$: Observable<FirebaseQuerySnapshotAccumulator<T>>;
54
- readonly accumulator$: Observable<FirebaseQueryItemAccumulator<T>>;
55
- }
56
- export interface DbxFirebaseCollectionLoaderWithAccumulator<T = unknown> extends DbxFirebaseCollectionLoader<T>, DbxFirebaseCollectionLoaderAccessorWithAccumulator<T> {
57
- /**
58
- * Loads pages until the number of results has been reached, then emits the total number of results.
59
- */
60
- loadPagesUntilResultsCount(maxResultsCount: number, countFunction?: FirebaseQueryItemAccumulatorNextPageUntilResultsCountFunction<T>): Observable<ItemAccumulatorNextPageUntilResultsCountResult>;
61
- }
@@ -1,110 +0,0 @@
1
- import { type PageListLoadingState, type ItemAccumulatorNextPageUntilResultsCountResult } from '@dereekb/rxjs';
2
- import { BehaviorSubject, Subject, type Observable } from 'rxjs';
3
- import { type DocumentDataWithIdAndKey, type DocumentReference, type FirebaseQueryItemAccumulator, type FirebaseQueryItemAccumulatorNextPageUntilResultsCountFunction, type FirebaseQuerySnapshotAccumulator, type FirestoreCollectionLike, type FirestoreDocument, type FirestoreItemPageIterationInstance, type FirestoreItemPageIteratorFilter, type FirestoreModelKey, type FirestoreQueryConstraint, type IterationQueryDocChangeWatcher } from '@dereekb/firebase';
4
- import { type ArrayOrValue, type Destroyable, type GetterOrValue, type Initialized, type Maybe, type PageNumber } from '@dereekb/util';
5
- import { type DbxFirebaseCollectionLoaderAccessor, type DbxFirebaseCollectionLoaderWithAccumulator } from './collection.loader';
6
- /**
7
- * The store mode.
8
- *
9
- * - query: The store will load documents from a query, using the given collection.
10
- * - references: The store will load documents from the input references (keys, refs, etc.).
11
- */
12
- export type DbxFirebaseCollectionMode = 'query' | 'references';
13
- export interface DbxFirebaseCollectionLoaderInstanceInitConfig<T, D extends FirestoreDocument<T> = FirestoreDocument<T>> {
14
- readonly collection?: Maybe<FirestoreCollectionLike<T, D>>;
15
- readonly collectionMode?: DbxFirebaseCollectionMode;
16
- readonly collectionKeys?: Maybe<FirestoreModelKey[]>;
17
- readonly collectionRefs?: Maybe<DocumentReference<T>[]>;
18
- readonly maxPages?: Maybe<number>;
19
- readonly itemsPerPage?: Maybe<number>;
20
- readonly constraints?: Maybe<ArrayOrValue<FirestoreQueryConstraint>>;
21
- /**
22
- * Whether or not to wait for non-null constraints before beginning the iteration.
23
- *
24
- * Defaults to true.
25
- */
26
- readonly waitForNonNullConstraints?: Maybe<boolean>;
27
- }
28
- export type DbxFirebaseCollectionLoaderInstanceData<T, D extends FirestoreDocument<T> = FirestoreDocument<T>> = DbxFirebaseCollectionLoaderAccessor<T>;
29
- /**
30
- * DbxFirebaseModelLoader implementation within an instance.
31
- */
32
- export declare class DbxFirebaseCollectionLoaderInstance<T = unknown, D extends FirestoreDocument<T> = FirestoreDocument<T>> implements DbxFirebaseCollectionLoaderWithAccumulator<T>, DbxFirebaseCollectionLoaderInstanceData<T, D>, Initialized, Destroyable {
33
- private readonly _maxPagesSub;
34
- protected readonly _collection: BehaviorSubject<Maybe<FirestoreCollectionLike<T, D, import("@dereekb/firebase").LimitedFirestoreDocumentAccessor<T, D>>>>;
35
- protected readonly _collectionMode: BehaviorSubject<DbxFirebaseCollectionMode>;
36
- protected readonly _collectionRefs: BehaviorSubject<Maybe<DocumentReference<T>[]>>;
37
- protected readonly _maxPages: BehaviorSubject<Maybe<number>>;
38
- protected readonly _itemsPerPage: BehaviorSubject<Maybe<number>>;
39
- protected readonly _constraints: BehaviorSubject<Maybe<ArrayOrValue<FirestoreQueryConstraint<unknown>>>>;
40
- protected readonly _waitForNonNullConstraints: BehaviorSubject<Maybe<boolean>>;
41
- protected readonly _restart: Subject<void>;
42
- readonly collection$: Observable<Maybe<FirestoreCollectionLike<T, D, import("@dereekb/firebase").LimitedFirestoreDocumentAccessor<T, D>>>>;
43
- readonly collectionMode$: Observable<DbxFirebaseCollectionMode>;
44
- readonly currentCollectionRefs$: Observable<Maybe<DocumentReference<T>[]>>;
45
- readonly collectionRefs$: Observable<DocumentReference<T>[]>;
46
- readonly collectionKeys$: Observable<string[]>;
47
- readonly currentConstraints$: Observable<Maybe<ArrayOrValue<FirestoreQueryConstraint<unknown>>>>;
48
- readonly constraints$: Observable<Maybe<ArrayOrValue<FirestoreQueryConstraint<unknown>>>>;
49
- readonly iteratorFilter$: Observable<FirestoreItemPageIteratorFilter>;
50
- readonly firestoreIteration$: Observable<FirestoreItemPageIterationInstance<T>>;
51
- readonly queryChangeWatcher$: Observable<IterationQueryDocChangeWatcher<T>>;
52
- readonly snapshotAccumulator$: Observable<FirebaseQuerySnapshotAccumulator<T>>;
53
- readonly hasNext$: Observable<boolean>;
54
- readonly canLoadMore$: Observable<boolean>;
55
- readonly hasNextAndCanLoadMore$: Observable<boolean>;
56
- readonly snapshotAccumulatorDocumentRefs$: Observable<DocumentReference<T>[][]>;
57
- readonly snapshotAccumulatorDocuments$: Observable<D[][]>;
58
- readonly accumulator$: Observable<FirebaseQueryItemAccumulator<T>>;
59
- readonly accumulatorPage$: Observable<PageNumber>;
60
- /**
61
- * Passthrough for currentAllItems$ from the accumulator.
62
- */
63
- readonly currentAccumulatorItems$: Observable<DocumentDataWithIdAndKey<T>[][]>;
64
- /**
65
- * Passthrough for allItems$ from the accumulator.
66
- */
67
- readonly accumulatorItems$: Observable<DocumentDataWithIdAndKey<T>[][]>;
68
- /**
69
- * Returns true if the first page result has one or more documents.
70
- */
71
- readonly hasDocuments$: Observable<boolean>;
72
- readonly allDocumentRefs$: Observable<DocumentReference<T>[]>;
73
- readonly allDocuments$: Observable<D[]>;
74
- readonly allDocumentData$: Observable<DocumentDataWithIdAndKey<T>[]>;
75
- readonly pageLoadingState$: Observable<PageListLoadingState<DocumentDataWithIdAndKey<T>>>;
76
- constructor(initConfig?: DbxFirebaseCollectionLoaderInstanceInitConfig<T, D>);
77
- init(): void;
78
- destroy(): void;
79
- get collectionMode(): DbxFirebaseCollectionMode;
80
- set collectionMode(mode: DbxFirebaseCollectionMode);
81
- get collectionKeys(): Maybe<FirestoreModelKey[]>;
82
- set collectionKeys(keys: Maybe<FirestoreModelKey[]>);
83
- get collectionRefs(): Maybe<DocumentReference<T>[]>;
84
- set collectionRefs(refs: Maybe<DocumentReference<T>[]>);
85
- get maxPages(): Maybe<number>;
86
- set maxPages(maxPages: Maybe<number>);
87
- get itemsPerPage(): Maybe<number>;
88
- set itemsPerPage(itemsPerPage: Maybe<number>);
89
- get constraints(): Maybe<ArrayOrValue<FirestoreQueryConstraint>>;
90
- set constraints(constraints: Maybe<ArrayOrValue<FirestoreQueryConstraint>>);
91
- get waitForNonNullConstraints(): Maybe<boolean>;
92
- set waitForNonNullConstraints(waitForNonNullConstraints: Maybe<boolean>);
93
- get collection(): Maybe<FirestoreCollectionLike<T, D>>;
94
- set collection(collection: Maybe<FirestoreCollectionLike<T, D>>);
95
- next(): void;
96
- restart(): void;
97
- setCollectionMode(mode: DbxFirebaseCollectionMode): void;
98
- setCollectionKeys(keys: Maybe<FirestoreModelKey[]>): void;
99
- setCollectionRefs(refs: Maybe<DocumentReference<T>[]>): void;
100
- setMaxPages(maxPages: Maybe<number>): void;
101
- setItemsPerPage(itemsPerPage: Maybe<number>): void;
102
- setConstraints(constraints: Maybe<ArrayOrValue<FirestoreQueryConstraint>>): void;
103
- setWaitForNonNullConstraints(waitForNonNullConstraints: Maybe<boolean>): void;
104
- setCollection(firestoreCollection: Maybe<FirestoreCollectionLike<T, D>>): void;
105
- loadPagesUntilResultsCount(maxResultsLimit: GetterOrValue<number>, countResultsFunction?: FirebaseQueryItemAccumulatorNextPageUntilResultsCountFunction<T> | undefined): Observable<ItemAccumulatorNextPageUntilResultsCountResult>;
106
- loadToPage(page: PageNumber): Observable<PageNumber>;
107
- loadAllResults(): Observable<PageNumber>;
108
- }
109
- export declare function dbxFirebaseCollectionLoaderInstance<T, D extends FirestoreDocument<T> = FirestoreDocument<T>>(config: DbxFirebaseCollectionLoaderInstanceInitConfig<T, D>): DbxFirebaseCollectionLoaderInstance<T, D>;
110
- export declare function dbxFirebaseCollectionLoaderInstanceWithCollection<T, D extends FirestoreDocument<T> = FirestoreDocument<T>>(collection: Maybe<FirestoreCollectionLike<T, D>>): DbxFirebaseCollectionLoaderInstance<T, D>;