@dereekb/firebase-server 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 (332) hide show
  1. package/LICENSE +1 -1
  2. package/index.cjs.js +2937 -0
  3. package/index.esm.js +2775 -0
  4. package/mailgun/index.cjs.js +48 -0
  5. package/mailgun/index.esm.js +46 -0
  6. package/mailgun/package.json +26 -6
  7. package/model/index.cjs.js +5298 -0
  8. package/model/index.d.ts +1 -0
  9. package/model/index.esm.js +5161 -0
  10. package/model/package.json +31 -3
  11. package/model/src/lib/notification/notification.module.d.ts +10 -10
  12. package/model/src/lib/storagefile/storagefile.task.service.handler.d.ts +3 -14
  13. package/package.json +48 -27
  14. package/src/lib/auth/auth.context.d.ts +1 -1
  15. package/src/lib/auth/auth.service.d.ts +1 -1
  16. package/src/lib/function/assert.d.ts +2 -2
  17. package/src/lib/function/context.d.ts +1 -1
  18. package/src/lib/index.d.ts +1 -0
  19. package/src/lib/nest/app.d.ts +1 -1
  20. package/src/lib/nest/development/development.app.function.d.ts +1 -2
  21. package/src/lib/nest/function/call.d.ts +1 -1
  22. package/src/lib/nest/function/context.d.ts +0 -4
  23. package/src/lib/nest/function/index.d.ts +0 -1
  24. package/src/lib/nest/function/nest.d.ts +1 -1
  25. package/src/lib/nest/function/v2/blocking.d.ts +3 -2
  26. package/src/lib/nest/model/crud.assert.function.d.ts +0 -4
  27. package/src/lib/storage/storage.d.ts +1 -1
  28. package/src/lib/type.d.ts +9 -0
  29. package/test/index.cjs.js +1324 -0
  30. package/test/index.d.ts +1 -0
  31. package/test/index.esm.js +1247 -0
  32. package/test/package.json +34 -3
  33. package/test/src/lib/firebase/firebase.admin.auth.d.ts +22 -13
  34. package/test/src/lib/firebase/firebase.admin.collection.d.ts +6 -6
  35. package/test/src/lib/firebase/firebase.admin.d.ts +10 -10
  36. package/test/src/lib/firebase/firebase.admin.function.d.ts +9 -9
  37. package/test/src/lib/firebase/firebase.admin.nest.d.ts +8 -8
  38. package/test/src/lib/firebase/firebase.admin.nest.function.d.ts +9 -9
  39. package/test/src/lib/firebase/firebase.test.d.ts +30 -0
  40. package/test/src/lib/firebase/index.d.ts +1 -1
  41. package/test/src/lib/firestore/firestore.admin.d.ts +3 -3
  42. package/test/src/lib/firestore/firestore.d.ts +2 -2
  43. package/test/src/lib/storage/storage.admin.d.ts +3 -3
  44. package/test/src/lib/storage/storage.d.ts +2 -2
  45. package/zoho/LICENSE +1 -1
  46. package/zoho/index.d.ts +1 -0
  47. package/zoho/index.esm.js +2 -2
  48. package/zoho/package.json +12 -8
  49. package/CHANGELOG.md +0 -2233
  50. package/mailgun/src/index.js +0 -5
  51. package/mailgun/src/index.js.map +0 -1
  52. package/mailgun/src/lib/auth.mailgun.js +0 -41
  53. package/mailgun/src/lib/auth.mailgun.js.map +0 -1
  54. package/mailgun/src/lib/index.js +0 -5
  55. package/mailgun/src/lib/index.js.map +0 -1
  56. package/model/src/index.js +0 -5
  57. package/model/src/index.js.map +0 -1
  58. package/model/src/lib/index.js +0 -7
  59. package/model/src/lib/index.js.map +0 -1
  60. package/model/src/lib/mailgun/index.js +0 -5
  61. package/model/src/lib/mailgun/index.js.map +0 -1
  62. package/model/src/lib/mailgun/notification.send.service.mailgun.js +0 -68
  63. package/model/src/lib/mailgun/notification.send.service.mailgun.js.map +0 -1
  64. package/model/src/lib/notification/index.js +0 -20
  65. package/model/src/lib/notification/index.js.map +0 -1
  66. package/model/src/lib/notification/notification.action.init.service.js +0 -230
  67. package/model/src/lib/notification/notification.action.init.service.js.map +0 -1
  68. package/model/src/lib/notification/notification.action.service.js +0 -1487
  69. package/model/src/lib/notification/notification.action.service.js.map +0 -1
  70. package/model/src/lib/notification/notification.config.js +0 -13
  71. package/model/src/lib/notification/notification.config.js.map +0 -1
  72. package/model/src/lib/notification/notification.config.service.js +0 -60
  73. package/model/src/lib/notification/notification.config.service.js.map +0 -1
  74. package/model/src/lib/notification/notification.create.run.js +0 -59
  75. package/model/src/lib/notification/notification.create.run.js.map +0 -1
  76. package/model/src/lib/notification/notification.error.js +0 -87
  77. package/model/src/lib/notification/notification.error.js.map +0 -1
  78. package/model/src/lib/notification/notification.expedite.service.js +0 -112
  79. package/model/src/lib/notification/notification.expedite.service.js.map +0 -1
  80. package/model/src/lib/notification/notification.module.js +0 -106
  81. package/model/src/lib/notification/notification.module.js.map +0 -1
  82. package/model/src/lib/notification/notification.send.js +0 -3
  83. package/model/src/lib/notification/notification.send.js.map +0 -1
  84. package/model/src/lib/notification/notification.send.service.js +0 -10
  85. package/model/src/lib/notification/notification.send.service.js.map +0 -1
  86. package/model/src/lib/notification/notification.send.service.notificationsummary.js +0 -104
  87. package/model/src/lib/notification/notification.send.service.notificationsummary.js.map +0 -1
  88. package/model/src/lib/notification/notification.send.service.text.js +0 -29
  89. package/model/src/lib/notification/notification.send.service.text.js.map +0 -1
  90. package/model/src/lib/notification/notification.task.service.handler.js +0 -65
  91. package/model/src/lib/notification/notification.task.service.handler.js.map +0 -1
  92. package/model/src/lib/notification/notification.task.service.js +0 -10
  93. package/model/src/lib/notification/notification.task.service.js.map +0 -1
  94. package/model/src/lib/notification/notification.task.service.util.js +0 -27
  95. package/model/src/lib/notification/notification.task.service.util.js.map +0 -1
  96. package/model/src/lib/notification/notification.task.subtask.handler.js +0 -256
  97. package/model/src/lib/notification/notification.task.subtask.handler.js.map +0 -1
  98. package/model/src/lib/notification/notification.util.js +0 -478
  99. package/model/src/lib/notification/notification.util.js.map +0 -1
  100. package/model/src/lib/storagefile/index.js +0 -12
  101. package/model/src/lib/storagefile/index.js.map +0 -1
  102. package/model/src/lib/storagefile/storagefile.action.init.service.js +0 -155
  103. package/model/src/lib/storagefile/storagefile.action.init.service.js.map +0 -1
  104. package/model/src/lib/storagefile/storagefile.action.server.js +0 -797
  105. package/model/src/lib/storagefile/storagefile.action.server.js.map +0 -1
  106. package/model/src/lib/storagefile/storagefile.error.js +0 -106
  107. package/model/src/lib/storagefile/storagefile.error.js.map +0 -1
  108. package/model/src/lib/storagefile/storagefile.module.js +0 -64
  109. package/model/src/lib/storagefile/storagefile.module.js.map +0 -1
  110. package/model/src/lib/storagefile/storagefile.task.service.handler.js +0 -287
  111. package/model/src/lib/storagefile/storagefile.task.service.handler.js.map +0 -1
  112. package/model/src/lib/storagefile/storagefile.upload.service.initializer.js +0 -180
  113. package/model/src/lib/storagefile/storagefile.upload.service.initializer.js.map +0 -1
  114. package/model/src/lib/storagefile/storagefile.upload.service.js +0 -10
  115. package/model/src/lib/storagefile/storagefile.upload.service.js.map +0 -1
  116. package/model/src/lib/storagefile/storagefile.util.js +0 -54
  117. package/model/src/lib/storagefile/storagefile.util.js.map +0 -1
  118. package/src/index.js +0 -5
  119. package/src/index.js.map +0 -1
  120. package/src/lib/auth/auth.context.js +0 -13
  121. package/src/lib/auth/auth.context.js.map +0 -1
  122. package/src/lib/auth/auth.service.error.js +0 -34
  123. package/src/lib/auth/auth.service.error.js.map +0 -1
  124. package/src/lib/auth/auth.service.js +0 -427
  125. package/src/lib/auth/auth.service.js.map +0 -1
  126. package/src/lib/auth/auth.util.js +0 -23
  127. package/src/lib/auth/auth.util.js.map +0 -1
  128. package/src/lib/auth/index.js +0 -8
  129. package/src/lib/auth/index.js.map +0 -1
  130. package/src/lib/env/env.service.js +0 -7
  131. package/src/lib/env/env.service.js.map +0 -1
  132. package/src/lib/env/index.js +0 -5
  133. package/src/lib/env/index.js.map +0 -1
  134. package/src/lib/firestore/array.js +0 -34
  135. package/src/lib/firestore/array.js.map +0 -1
  136. package/src/lib/firestore/driver.accessor.batch.js +0 -93
  137. package/src/lib/firestore/driver.accessor.batch.js.map +0 -1
  138. package/src/lib/firestore/driver.accessor.default.js +0 -62
  139. package/src/lib/firestore/driver.accessor.default.js.map +0 -1
  140. package/src/lib/firestore/driver.accessor.js +0 -50
  141. package/src/lib/firestore/driver.accessor.js.map +0 -1
  142. package/src/lib/firestore/driver.accessor.transaction.js +0 -96
  143. package/src/lib/firestore/driver.accessor.transaction.js.map +0 -1
  144. package/src/lib/firestore/driver.js +0 -14
  145. package/src/lib/firestore/driver.js.map +0 -1
  146. package/src/lib/firestore/driver.query.js +0 -55
  147. package/src/lib/firestore/driver.query.js.map +0 -1
  148. package/src/lib/firestore/firestore.js +0 -10
  149. package/src/lib/firestore/firestore.js.map +0 -1
  150. package/src/lib/firestore/increment.js +0 -17
  151. package/src/lib/firestore/increment.js.map +0 -1
  152. package/src/lib/firestore/index.js +0 -9
  153. package/src/lib/firestore/index.js.map +0 -1
  154. package/src/lib/function/assert.js +0 -68
  155. package/src/lib/function/assert.js.map +0 -1
  156. package/src/lib/function/context.js +0 -14
  157. package/src/lib/function/context.js.map +0 -1
  158. package/src/lib/function/error.auth.js +0 -25
  159. package/src/lib/function/error.auth.js.map +0 -1
  160. package/src/lib/function/error.js +0 -221
  161. package/src/lib/function/error.js.map +0 -1
  162. package/src/lib/function/index.js +0 -9
  163. package/src/lib/function/index.js.map +0 -1
  164. package/src/lib/function/type.js +0 -3
  165. package/src/lib/function/type.js.map +0 -1
  166. package/src/lib/index.js +0 -11
  167. package/src/lib/index.js.map +0 -1
  168. package/src/lib/nest/app.js +0 -114
  169. package/src/lib/nest/app.js.map +0 -1
  170. package/src/lib/nest/auth/auth.module.js +0 -60
  171. package/src/lib/nest/auth/auth.module.js.map +0 -1
  172. package/src/lib/nest/auth/auth.util.js +0 -72
  173. package/src/lib/nest/auth/auth.util.js.map +0 -1
  174. package/src/lib/nest/auth/index.js +0 -6
  175. package/src/lib/nest/auth/index.js.map +0 -1
  176. package/src/lib/nest/development/development.app.function.js +0 -38
  177. package/src/lib/nest/development/development.app.function.js.map +0 -1
  178. package/src/lib/nest/development/development.assert.function.js +0 -3
  179. package/src/lib/nest/development/development.assert.function.js.map +0 -1
  180. package/src/lib/nest/development/development.function.js +0 -41
  181. package/src/lib/nest/development/development.function.js.map +0 -1
  182. package/src/lib/nest/development/development.schedule.function.error.js +0 -35
  183. package/src/lib/nest/development/development.schedule.function.error.js.map +0 -1
  184. package/src/lib/nest/development/development.schedule.function.js +0 -54
  185. package/src/lib/nest/development/development.schedule.function.js.map +0 -1
  186. package/src/lib/nest/development/index.js +0 -9
  187. package/src/lib/nest/development/index.js.map +0 -1
  188. package/src/lib/nest/env/env.service.js +0 -19
  189. package/src/lib/nest/env/env.service.js.map +0 -1
  190. package/src/lib/nest/env/env.util.js +0 -12
  191. package/src/lib/nest/env/env.util.js.map +0 -1
  192. package/src/lib/nest/env/index.js +0 -6
  193. package/src/lib/nest/env/index.js.map +0 -1
  194. package/src/lib/nest/firebase/firebase.module.js +0 -17
  195. package/src/lib/nest/firebase/firebase.module.js.map +0 -1
  196. package/src/lib/nest/firebase/index.js +0 -5
  197. package/src/lib/nest/firebase/index.js.map +0 -1
  198. package/src/lib/nest/firestore/firestore.module.js +0 -86
  199. package/src/lib/nest/firestore/firestore.module.js.map +0 -1
  200. package/src/lib/nest/firestore/index.js +0 -5
  201. package/src/lib/nest/firestore/index.js.map +0 -1
  202. package/src/lib/nest/function/call.js +0 -46
  203. package/src/lib/nest/function/call.js.map +0 -1
  204. package/src/lib/nest/function/context.js +0 -79
  205. package/src/lib/nest/function/context.js.map +0 -1
  206. package/src/lib/nest/function/index.js +0 -10
  207. package/src/lib/nest/function/index.js.map +0 -1
  208. package/src/lib/nest/function/nest.js +0 -17
  209. package/src/lib/nest/function/nest.js.map +0 -1
  210. package/src/lib/nest/function/schedule.js +0 -8
  211. package/src/lib/nest/function/schedule.js.map +0 -1
  212. package/src/lib/nest/function/v1/call.d.ts +0 -59
  213. package/src/lib/nest/function/v1/call.js +0 -55
  214. package/src/lib/nest/function/v1/call.js.map +0 -1
  215. package/src/lib/nest/function/v1/event.d.ts +0 -80
  216. package/src/lib/nest/function/v1/event.js +0 -52
  217. package/src/lib/nest/function/v1/event.js.map +0 -1
  218. package/src/lib/nest/function/v1/index.d.ts +0 -3
  219. package/src/lib/nest/function/v1/index.js +0 -7
  220. package/src/lib/nest/function/v1/index.js.map +0 -1
  221. package/src/lib/nest/function/v1/schedule.d.ts +0 -47
  222. package/src/lib/nest/function/v1/schedule.js +0 -68
  223. package/src/lib/nest/function/v1/schedule.js.map +0 -1
  224. package/src/lib/nest/function/v2/blocking.js +0 -38
  225. package/src/lib/nest/function/v2/blocking.js.map +0 -1
  226. package/src/lib/nest/function/v2/call.js +0 -31
  227. package/src/lib/nest/function/v2/call.js.map +0 -1
  228. package/src/lib/nest/function/v2/event.js +0 -25
  229. package/src/lib/nest/function/v2/event.js.map +0 -1
  230. package/src/lib/nest/function/v2/index.js +0 -9
  231. package/src/lib/nest/function/v2/index.js.map +0 -1
  232. package/src/lib/nest/function/v2/schedule.js +0 -56
  233. package/src/lib/nest/function/v2/schedule.js.map +0 -1
  234. package/src/lib/nest/function/v2/taskqueue.js +0 -26
  235. package/src/lib/nest/function/v2/taskqueue.js.map +0 -1
  236. package/src/lib/nest/index.js +0 -15
  237. package/src/lib/nest/index.js.map +0 -1
  238. package/src/lib/nest/middleware/appcheck.decorator.js +0 -12
  239. package/src/lib/nest/middleware/appcheck.decorator.js.map +0 -1
  240. package/src/lib/nest/middleware/appcheck.js +0 -3
  241. package/src/lib/nest/middleware/appcheck.js.map +0 -1
  242. package/src/lib/nest/middleware/appcheck.middleware.js +0 -74
  243. package/src/lib/nest/middleware/appcheck.middleware.js.map +0 -1
  244. package/src/lib/nest/middleware/appcheck.module.js +0 -21
  245. package/src/lib/nest/middleware/appcheck.module.js.map +0 -1
  246. package/src/lib/nest/middleware/globalprefix.js +0 -11
  247. package/src/lib/nest/middleware/globalprefix.js.map +0 -1
  248. package/src/lib/nest/middleware/index.js +0 -10
  249. package/src/lib/nest/middleware/index.js.map +0 -1
  250. package/src/lib/nest/middleware/rawbody.middleware.js +0 -16
  251. package/src/lib/nest/middleware/rawbody.middleware.js.map +0 -1
  252. package/src/lib/nest/middleware/webhook.js +0 -24
  253. package/src/lib/nest/middleware/webhook.js.map +0 -1
  254. package/src/lib/nest/model/call.model.function.js +0 -73
  255. package/src/lib/nest/model/call.model.function.js.map +0 -1
  256. package/src/lib/nest/model/create.model.function.js +0 -27
  257. package/src/lib/nest/model/create.model.function.js.map +0 -1
  258. package/src/lib/nest/model/crud.assert.function.js +0 -3
  259. package/src/lib/nest/model/crud.assert.function.js.map +0 -1
  260. package/src/lib/nest/model/delete.model.function.js +0 -27
  261. package/src/lib/nest/model/delete.model.function.js.map +0 -1
  262. package/src/lib/nest/model/index.js +0 -11
  263. package/src/lib/nest/model/index.js.map +0 -1
  264. package/src/lib/nest/model/permission.error.js +0 -24
  265. package/src/lib/nest/model/permission.error.js.map +0 -1
  266. package/src/lib/nest/model/read.model.function.js +0 -27
  267. package/src/lib/nest/model/read.model.function.js.map +0 -1
  268. package/src/lib/nest/model/specifier.function.js +0 -35
  269. package/src/lib/nest/model/specifier.function.js.map +0 -1
  270. package/src/lib/nest/model/update.model.function.js +0 -27
  271. package/src/lib/nest/model/update.model.function.js.map +0 -1
  272. package/src/lib/nest/nest.provider.js +0 -89
  273. package/src/lib/nest/nest.provider.js.map +0 -1
  274. package/src/lib/nest/storage/index.js +0 -5
  275. package/src/lib/nest/storage/index.js.map +0 -1
  276. package/src/lib/nest/storage/storage.module.js +0 -112
  277. package/src/lib/nest/storage/storage.module.js.map +0 -1
  278. package/src/lib/storage/driver.accessor.js +0 -299
  279. package/src/lib/storage/driver.accessor.js.map +0 -1
  280. package/src/lib/storage/driver.js +0 -12
  281. package/src/lib/storage/driver.js.map +0 -1
  282. package/src/lib/storage/index.js +0 -8
  283. package/src/lib/storage/index.js.map +0 -1
  284. package/src/lib/storage/storage.js +0 -20
  285. package/src/lib/storage/storage.js.map +0 -1
  286. package/src/lib/storage/storage.service.js +0 -26
  287. package/src/lib/storage/storage.service.js.map +0 -1
  288. package/test/src/index.js +0 -5
  289. package/test/src/index.js.map +0 -1
  290. package/test/src/lib/firebase/firebase.admin.auth.js +0 -260
  291. package/test/src/lib/firebase/firebase.admin.auth.js.map +0 -1
  292. package/test/src/lib/firebase/firebase.admin.collection.js +0 -108
  293. package/test/src/lib/firebase/firebase.admin.collection.js.map +0 -1
  294. package/test/src/lib/firebase/firebase.admin.function.js +0 -132
  295. package/test/src/lib/firebase/firebase.admin.function.js.map +0 -1
  296. package/test/src/lib/firebase/firebase.admin.js +0 -174
  297. package/test/src/lib/firebase/firebase.admin.js.map +0 -1
  298. package/test/src/lib/firebase/firebase.admin.nest.function.callable.context.js +0 -42
  299. package/test/src/lib/firebase/firebase.admin.nest.function.callable.context.js.map +0 -1
  300. package/test/src/lib/firebase/firebase.admin.nest.function.cloud.context.js +0 -40
  301. package/test/src/lib/firebase/firebase.admin.nest.function.cloud.context.js.map +0 -1
  302. package/test/src/lib/firebase/firebase.admin.nest.function.js +0 -64
  303. package/test/src/lib/firebase/firebase.admin.nest.function.js.map +0 -1
  304. package/test/src/lib/firebase/firebase.admin.nest.js +0 -107
  305. package/test/src/lib/firebase/firebase.admin.nest.js.map +0 -1
  306. package/test/src/lib/firebase/firebase.admin.test.server.js +0 -37
  307. package/test/src/lib/firebase/firebase.admin.test.server.js.map +0 -1
  308. package/test/src/lib/firebase/firebase.function.js +0 -58
  309. package/test/src/lib/firebase/firebase.function.js.map +0 -1
  310. package/test/src/lib/firebase/firebase.jest.d.ts +0 -21
  311. package/test/src/lib/firebase/firebase.jest.js +0 -45
  312. package/test/src/lib/firebase/firebase.jest.js.map +0 -1
  313. package/test/src/lib/firebase/firebase.js +0 -74
  314. package/test/src/lib/firebase/firebase.js.map +0 -1
  315. package/test/src/lib/firebase/index.js +0 -15
  316. package/test/src/lib/firebase/index.js.map +0 -1
  317. package/test/src/lib/firestore/firestore.admin.js +0 -21
  318. package/test/src/lib/firestore/firestore.admin.js.map +0 -1
  319. package/test/src/lib/firestore/firestore.js +0 -57
  320. package/test/src/lib/firestore/firestore.js.map +0 -1
  321. package/test/src/lib/firestore/index.js +0 -6
  322. package/test/src/lib/firestore/index.js.map +0 -1
  323. package/test/src/lib/index.js +0 -7
  324. package/test/src/lib/index.js.map +0 -1
  325. package/test/src/lib/storage/index.js +0 -6
  326. package/test/src/lib/storage/index.js.map +0 -1
  327. package/test/src/lib/storage/storage.admin.js +0 -21
  328. package/test/src/lib/storage/storage.admin.js.map +0 -1
  329. package/test/src/lib/storage/storage.js +0 -59
  330. package/test/src/lib/storage/storage.js.map +0 -1
  331. /package/{zoho/index.cjs.d.ts → index.d.ts} +0 -0
  332. /package/{zoho/index.esm.d.ts → mailgun/index.d.ts} +0 -0
@@ -1,7 +1,35 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server/model",
3
- "version": "12.6.21",
4
- "type": "commonjs",
3
+ "version": "13.0.0",
5
4
  "types": "./src/index.d.ts",
6
- "main": "./src/index.js"
5
+ "module": "./index.esm.js",
6
+ "main": "./index.cjs.js",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./src/index.d.ts",
10
+ "node": {
11
+ "require": "./index.cjs.js"
12
+ },
13
+ "browser": {
14
+ "require": "./index.cjs.js",
15
+ "import": "./index.esm.js"
16
+ },
17
+ "default": "./index.cjs.js"
18
+ }
19
+ },
20
+ "peerDependencies": {
21
+ "@dereekb/date": "13.0.0",
22
+ "@dereekb/rxjs": "13.0.0",
23
+ "@dereekb/model": "13.0.0",
24
+ "@dereekb/firebase": "13.0.0",
25
+ "@dereekb/nestjs": "13.0.0",
26
+ "@dereekb/firebase-server": "13.0.0",
27
+ "@dereekb/util": "13.0.0",
28
+ "@nestjs/common": "^11.0.0",
29
+ "@nestjs/config": "^4.0.0",
30
+ "archiver": "^7.0.0",
31
+ "date-fns": "^4.0.0",
32
+ "make-error": "^1.3.0",
33
+ "core-js": "^3.0.0"
34
+ }
7
35
  }
@@ -11,17 +11,17 @@ export declare function notificationServerActionsContextFactory(context: BaseNot
11
11
  notificationSendService: NotificationSendService;
12
12
  notificationTaskService: NotificationTaskService;
13
13
  notificationsExpediteService: NotificationExpediteService;
14
- firebaseServerActionTransformFactory: import("dist/packages/model/src").TransformAndValidateObjectFactory;
15
- firebaseServerActionTransformFunctionFactory: import("dist/packages/model/src").TransformAndValidateFunctionResultFactory;
16
- notificationUserCollection: import("dist/packages/firebase/src").NotificationUserFirestoreCollection;
17
- notificationSummaryCollection: import("dist/packages/firebase/src").NotificationSummaryFirestoreCollection;
18
- notificationBoxCollection: import("dist/packages/firebase/src").NotificationBoxFirestoreCollection;
19
- notificationCollectionFactory: import("dist/packages/firebase/src").NotificationFirestoreCollectionFactory;
20
- notificationCollectionGroup: import("dist/packages/firebase/src").NotificationFirestoreCollectionGroup;
21
- notificationWeekCollectionFactory: import("dist/packages/firebase/src").NotificationWeekFirestoreCollectionFactory;
22
- notificationWeekCollectionGroup: import("dist/packages/firebase/src").NotificationWeekFirestoreCollectionGroup;
14
+ firebaseServerActionTransformFactory: import("@dereekb/model").TransformAndValidateObjectFactory;
15
+ firebaseServerActionTransformFunctionFactory: import("@dereekb/model").TransformAndValidateFunctionResultFactory;
16
+ notificationUserCollection: import("@dereekb/firebase").NotificationUserFirestoreCollection;
17
+ notificationSummaryCollection: import("@dereekb/firebase").NotificationSummaryFirestoreCollection;
18
+ notificationBoxCollection: import("@dereekb/firebase").NotificationBoxFirestoreCollection;
19
+ notificationCollectionFactory: import("@dereekb/firebase").NotificationFirestoreCollectionFactory;
20
+ notificationCollectionGroup: import("@dereekb/firebase").NotificationFirestoreCollectionGroup;
21
+ notificationWeekCollectionFactory: import("@dereekb/firebase").NotificationWeekFirestoreCollectionFactory;
22
+ notificationWeekCollectionGroup: import("@dereekb/firebase").NotificationWeekFirestoreCollectionGroup;
23
23
  authService: import("dist/packages/firebase-server/src").FirebaseServerAuthService<import("dist/packages/firebase-server/src").FirebaseServerAuthUserContext, import("dist/packages/firebase-server/src").FirebaseServerAuthContext<import("dist/packages/firebase-server/src").FirebaseServerAuthUserContext>>;
24
- firestoreContext: import("dist/packages/firebase/src").FirestoreContext<import("dist/packages/firebase/src").Firestore>;
24
+ firestoreContext: import("@dereekb/firebase").FirestoreContext<import("@dereekb/firebase").Firestore>;
25
25
  };
26
26
  export declare function notificationServerActionsFactory(context: NotificationServerActionsContext, mutableNotificationExpediteService: MutableNotificationExpediteService): NotificationServerActions;
27
27
  export declare function notificationInitServerActionsFactory(context: NotificationServerActionsContext, notificationInitServerActionsContextConfig: NotificationInitServerActionsContextConfig): NotificationInitServerActions;
@@ -1,19 +1,13 @@
1
- import { type StorageFileProcessingNotificationTaskData, type StorageFilePurpose, type StorageFileProcessingSubtaskMetadata, type NotificationTaskServiceHandleNotificationTaskResult, type StorageFileProcessingSubtask, type StorageFileDocument, type StorageFile, type DocumentDataWithIdAndKey, StorageFileProcessingState, type StorageFileFirestoreCollections, type StoredFileReader, type FirebaseStorageAccessor, type StorageFileGroupZipStorageFileProcessingSubtask, type StorageFileGroupZipStorageFileProcessingSubtaskMetadata, type StorageFileGroup, type StorageFileGroupEmbeddedFile, type StorageFileDisplayName, type StorageFileGroupDocument, type StorageMetadata, type FirebaseStorageAccessorFile } from '@dereekb/firebase';
1
+ import { type StorageFileProcessingNotificationTaskData, type StorageFileProcessingSubtaskMetadata, type NotificationTaskServiceHandleNotificationTaskResult, type StorageFileProcessingSubtask, type StorageFileDocument, type StorageFile, type DocumentDataWithIdAndKey, StorageFileProcessingState, type StorageFileFirestoreCollections, type StoredFileReader, type FirebaseStorageAccessor, type StorageFileGroupZipStorageFileProcessingSubtask, type StorageFileGroupZipStorageFileProcessingSubtaskMetadata, type StorageFileGroup, type StorageFileGroupEmbeddedFile, type StorageFileDisplayName, type StorageFileGroupDocument, type StorageMetadata, type FirebaseStorageAccessorFile } from '@dereekb/firebase';
2
2
  import { type NotificationTaskServiceTaskHandlerConfig } from '../notification/notification.task.service.handler';
3
3
  import { type PromiseOrValue, type Maybe } from '@dereekb/util';
4
4
  import { type StorageFileQueueForDeleteTime } from './storagefile.util';
5
5
  import { type NotificationTaskSubtaskCleanupInstructions, type NotificationTaskSubtaskFlowEntry, type NotificationTaskSubtaskInput, type NotificationTaskSubtaskNotificationTaskHandlerConfig, type NotificationTaskSubtaskProcessorConfig } from '../notification/notification.task.subtask.handler';
6
- import * as archiver from 'archiver';
6
+ import archiver from 'archiver';
7
7
  /**
8
8
  * Input for a StorageFileProcessingPurposeSubtask.
9
9
  */
10
10
  export interface StorageFileProcessingPurposeSubtaskInput<M extends StorageFileProcessingSubtaskMetadata = any, S extends StorageFileProcessingSubtask = StorageFileProcessingSubtask> extends NotificationTaskSubtaskInput<StorageFileProcessingNotificationTaskData<M, S>, M, S> {
11
- /**
12
- * The retrieved purpose.
13
- *
14
- * @deprecated use target instead.
15
- */
16
- readonly purpose: StorageFilePurpose;
17
11
  /**
18
12
  * The associated StorageFileDocument.
19
13
  */
@@ -72,12 +66,7 @@ export type StorageFileProcessingPurposeSubtaskProcessorConfigWithTarget<M exten
72
66
  *
73
67
  * The flows behave the same way.
74
68
  */
75
- export type StorageFileProcessingPurposeSubtaskProcessorConfig<M extends StorageFileProcessingSubtaskMetadata = any, S extends StorageFileProcessingSubtask = StorageFileProcessingSubtask> = StorageFileProcessingPurposeSubtaskProcessorConfigWithTarget<M, S> | (Omit<NotificationTaskSubtaskProcessorConfig<StorageFileProcessingPurposeSubtaskInput<M, S>, StorageFileProcessingPurposeSubtaskCleanupOutput, StorageFileProcessingNotificationTaskData<M, S>>, 'target'> & {
76
- /**
77
- * @deprecated use target instead.
78
- */
79
- readonly purpose?: Maybe<StorageFilePurpose>;
80
- });
69
+ export type StorageFileProcessingPurposeSubtaskProcessorConfig<M extends StorageFileProcessingSubtaskMetadata = any, S extends StorageFileProcessingSubtask = StorageFileProcessingSubtask> = StorageFileProcessingPurposeSubtaskProcessorConfigWithTarget<M, S>;
81
70
  export interface StorageFileProcessingNotificationTaskHandlerConfig extends Omit<NotificationTaskSubtaskNotificationTaskHandlerConfig<StorageFileProcessingPurposeSubtaskInput, StorageFileProcessingPurposeSubtaskCleanupOutput, StorageFileProcessingNotificationTaskData>, 'processors'> {
82
71
  /**
83
72
  * The input processors.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server",
3
- "version": "12.6.21",
3
+ "version": "13.0.0",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./src/index.d.ts",
@@ -10,15 +10,27 @@
10
10
  },
11
11
  "./test": {
12
12
  "types": "./test/src/index.d.ts",
13
- "main": "./test/src/index.js",
14
- "require": "./test/src/index.js",
15
- "default": "./test/src/index.js"
13
+ "module": "./test/index.esm.js",
14
+ "main": "./test/index.cjs.js",
15
+ "node": {
16
+ "require": "./test/index.cjs.js"
17
+ },
18
+ "browser": {
19
+ "require": "./test/index.cjs.js",
20
+ "import": "./test/index.esm.js"
21
+ }
16
22
  },
17
23
  "./mailgun": {
18
24
  "types": "./mailgun/src/index.d.ts",
19
- "main": "./mailgun/src/index.js",
20
- "require": "./mailgun/src/index.js",
21
- "default": "./mailgun/src/index.js"
25
+ "module": "./mailgun/index.esm.js",
26
+ "main": "./mailgun/index.cjs.js",
27
+ "node": {
28
+ "require": "./mailgun/index.cjs.js"
29
+ },
30
+ "browser": {
31
+ "require": "./mailgun/index.cjs.js",
32
+ "import": "./mailgun/index.esm.js"
33
+ }
22
34
  },
23
35
  "./zoho": {
24
36
  "types": "./zoho/src/index.d.ts",
@@ -34,33 +46,42 @@
34
46
  },
35
47
  "./model": {
36
48
  "types": "./model/src/index.d.ts",
37
- "main": "./model/src/index.js",
38
- "require": "./model/src/index.js",
39
- "default": "./model/src/index.js"
49
+ "module": "./model/index.esm.js",
50
+ "main": "./model/index.cjs.js",
51
+ "node": {
52
+ "require": "./model/index.cjs.js"
53
+ },
54
+ "browser": {
55
+ "require": "./model/index.cjs.js",
56
+ "import": "./model/index.esm.js"
57
+ }
40
58
  }
41
59
  },
42
- "main": "./src/index.js",
60
+ "main": "./index.cjs.js",
43
61
  "types": "./src/index.d.ts",
44
62
  "peerDependencies": {
45
- "@dereekb/firebase": "*",
46
- "@dereekb/util": "*",
47
- "@dereekb/date": "*",
48
- "@dereekb/dbx-core": "*",
49
- "express": "4.21.2",
50
- "@dereekb/nestjs": "*",
51
- "@dereekb/model": "*",
52
- "firebase-functions": "^6.0.0",
63
+ "@dereekb/firebase": "13.0.0",
64
+ "@dereekb/util": "13.0.0",
65
+ "@dereekb/date": "13.0.0",
66
+ "@dereekb/dbx-core": "13.0.0",
67
+ "@dereekb/rxjs": "13.0.0",
68
+ "express": "^5.0.0",
69
+ "@dereekb/nestjs": "13.0.0",
70
+ "@dereekb/model": "13.0.0",
71
+ "firebase-functions": "^7.0.0",
53
72
  "firebase-admin": "^13.0.0",
54
- "@nestjs/common": "^10.0.0",
73
+ "@nestjs/common": "^11.0.0",
55
74
  "make-error": "^1.3.0",
56
75
  "@google-cloud/firestore": "^7.0.0",
57
- "rxjs": "^7.4.0",
58
- "@nestjs/core": "^10.0.0",
59
- "@nestjs/platform-express": "^10.0.0",
60
- "class-validator": "^0.14.0",
61
- "ts-essentials": "^9.1.2",
62
- "@google-cloud/storage": "7.16.0"
76
+ "rxjs": "^7.8.0",
77
+ "date-fns": "^4.0.0",
78
+ "@nestjs/core": "^11.0.0",
79
+ "@nestjs/platform-express": "^11.0.0",
80
+ "class-validator": "^0.15.1",
81
+ "ts-essentials": "^10.0.0",
82
+ "@google-cloud/storage": "^7.0.0",
83
+ "core-js": "^3.0.0"
63
84
  },
64
85
  "dependencies": {},
65
- "type": "commonjs"
86
+ "module": "./index.esm.js"
66
87
  }
@@ -1,6 +1,6 @@
1
1
  import { type FirebaseAuthToken } from '@dereekb/firebase';
2
- import { type AuthData } from 'firebase-functions/lib/common/providers/https';
3
2
  import type * as admin from 'firebase-admin';
3
+ import { type AuthData } from '../type';
4
4
  export interface AuthDataRef {
5
5
  readonly auth?: AuthData;
6
6
  }
@@ -3,7 +3,7 @@ import { type FirebaseAuthContextInfo, type FirebaseAuthDetails, type FirebaseAu
3
3
  import { type Milliseconds, type AuthClaims, type AuthRoleSet, type ArrayOrValue, type AuthRole, type AuthClaimsUpdate, type AuthClaimsObject, type Maybe, type EmailAddress, type E164PhoneNumber, type PasswordString } from '@dereekb/util';
4
4
  import { type CallableContextWithAuthData } from '../function/context';
5
5
  import { type AuthDataRef } from './auth.context';
6
- import { type CallableContext } from 'firebase-functions/lib/common/providers/https';
6
+ import { type CallableContext } from '../type';
7
7
  export declare const DEFAULT_FIREBASE_PASSWORD_NUMBER_GENERATOR: import("@dereekb/util").NumberFactory;
8
8
  export interface FirebaseServerAuthUserIdentifierContext {
9
9
  /**
@@ -1,5 +1,5 @@
1
1
  import { type DocumentDataWithIdAndKey, type FirestoreDocument, type FirestoreDocumentData } from '@dereekb/firebase';
2
- import { type CallableContext } from 'firebase-functions/lib/common/providers/https';
2
+ import { type CallableContext } from '../type';
3
3
  export declare function assertContextHasAuth(context: CallableContext): void;
4
4
  /**
5
5
  * Attempts to load data from the document. A modelNotAvailableError is thrown if the snapshot data is null/undefined (the document does not exist).
@@ -32,4 +32,4 @@ export declare function assertDocumentExists<D extends FirestoreDocument<any>>(d
32
32
  * @param message
33
33
  * @returns
34
34
  */
35
- export declare function documentModelNotAvailableError(document: Pick<FirestoreDocument<any>, 'modelType'>, message?: string): import("firebase-functions/lib/common/providers/https").HttpsError;
35
+ export declare function documentModelNotAvailableError(document: Pick<FirestoreDocument<any>, 'modelType'>, message?: string): import("firebase-functions/https").HttpsError;
@@ -1,4 +1,4 @@
1
- import { type CallableContext } from 'firebase-functions/lib/common/providers/https';
1
+ import { type CallableContext } from '../type';
2
2
  export type CallableContextWithAuthData<R extends CallableContext = CallableContext> = Omit<R, 'auth'> & Required<Pick<R, 'auth'>>;
3
3
  export declare function isContextWithAuthData<R extends CallableContext>(context: CallableContext): context is CallableContextWithAuthData<R>;
4
4
  export declare function assertIsContextWithAuthData<R extends CallableContext>(context: CallableContext): asserts context is CallableContextWithAuthData<R>;
@@ -5,3 +5,4 @@ export * from './firestore';
5
5
  export * from './function';
6
6
  export * from './nest';
7
7
  export * from './storage';
8
+ export * from './type';
@@ -1,6 +1,6 @@
1
1
  import { type ClassType, type Getter } from '@dereekb/util';
2
2
  import { type INestApplication, type INestApplicationContext, type NestApplicationOptions, type Provider } from '@nestjs/common';
3
- import * as express from 'express';
3
+ import express from 'express';
4
4
  import type * as admin from 'firebase-admin';
5
5
  import { type StorageBucketId } from '@dereekb/firebase';
6
6
  import { type ServerEnvironmentConfig } from '@dereekb/nestjs';
@@ -2,7 +2,6 @@ import { type OnCallDevelopmentParams, type RUN_DEV_FUNCTION_APP_FUNCTION_KEY }
2
2
  import { type CallableHttpFunction, type RunnableHttpFunction } from '../../function/type';
3
3
  import { type NestAppPromiseGetter } from '../app';
4
4
  import { type NestApplicationScheduleConfiguredFunctionMap } from '../function/schedule';
5
- import { type OnCallWithNestContextFactory } from '../function/v1/call';
6
5
  import { type OnCallHandlerWithNestContextFactory } from '../function/v2/call';
7
6
  import { type AbstractFirebaseNestContext } from '../nest.provider';
8
7
  import { type OnCallDevelopmentFunctionMap } from './development.function';
@@ -14,7 +13,7 @@ export interface FirebaseServerDevFunctionsConfig<N extends AbstractFirebaseNest
14
13
  readonly secure?: boolean;
15
14
  readonly nest: NestAppPromiseGetter;
16
15
  readonly developerFunctionsMap: OnCallDevelopmentFunctionMap<N>;
17
- readonly onCallFactory: OnCallWithNestContextFactory<N> | OnCallHandlerWithNestContextFactory<N>;
16
+ readonly onCallFactory: OnCallHandlerWithNestContextFactory<N>;
18
17
  /**
19
18
  * Whether or not to disable adding the dev schedule function. False by default.
20
19
  */
@@ -1,5 +1,5 @@
1
1
  import { type PromiseOrValue } from '@dereekb/util';
2
- import { type CallableRequest } from 'firebase-functions/lib/common/providers/https';
2
+ import { type CallableRequest } from 'firebase-functions/v2/https';
3
3
  import { type NestApplicationContextRequest, type NestContextCallableRequest, type NestContextCallableRequestWithAuth } from './nest';
4
4
  import { type MakeNestContext } from '../nest.provider';
5
5
  export type OnCallWithNestApplicationRequest<I> = NestApplicationContextRequest<CallableRequest<I>>;
@@ -44,7 +44,3 @@ export interface FirebaseServerActionsTransformFactoryOptions extends Pick<Trans
44
44
  readonly logError?: FirebaseServerActionsTransformFactoryLogErrorFunctionInput;
45
45
  }
46
46
  export declare function firebaseServerActionsTransformFactory(options?: FirebaseServerActionsTransformFactoryOptions): TransformAndValidateObjectFactory;
47
- /**
48
- * @deprecated mispelling. Use FIREBASE_SERVER_VALIDATION_ERROR_CODE instead.
49
- */
50
- export declare const FIRESTBASE_SERVER_VALIDATION_ERROR_CODE = "VALIDATION_ERROR";
@@ -1,4 +1,3 @@
1
- export * from './v1';
2
1
  export * from './v2';
3
2
  export * from './context';
4
3
  export * from './call';
@@ -1,5 +1,5 @@
1
1
  import { type INestApplicationContext } from '@nestjs/common';
2
- import { type CallableRequest } from 'firebase-functions/lib/common/providers/https';
2
+ import { type CallableRequest } from 'firebase-functions/v2/https';
3
3
  import { type CallableContextWithAuthData } from '../../function/context';
4
4
  import { type OnCallWithNestContextRequest } from './call';
5
5
  export type NestApplicationContextRequest<R> = R & {
@@ -1,8 +1,9 @@
1
- import { type Maybe, type PromiseOrValue } from '@dereekb/util';
1
+ import { type MaybeSo, type Maybe, type PromiseOrValue } from '@dereekb/util';
2
2
  import { type MakeNestContext, type NestApplicationFunctionFactory } from '../../nest.provider';
3
3
  import { type NestContextRequest } from '../nest';
4
4
  import { type BlockingFunction } from 'firebase-functions/v1';
5
- import { type BlockingOptions } from 'firebase-functions/identity';
5
+ import { type BlockingOptions, type beforeUserCreated } from 'firebase-functions/identity';
6
+ export type BeforeCreateResponse = MaybeSo<Awaited<ReturnType<Parameters<typeof beforeUserCreated>[1]>>>;
6
7
  export type BlockingFunctionNestContextRequest<N, E extends object> = NestContextRequest<N, E>;
7
8
  export type BlockingFunctionHandler<E extends object, O> = (event: E) => PromiseOrValue<O | void>;
8
9
  export type BlockingFunctionHandlerRef<E extends object, O> = {
@@ -4,10 +4,6 @@ import { type OnCallFunctionType } from '@dereekb/firebase';
4
4
  export type AssertModelCrudRequestFunctionContextCrudType = 'call' | 'create' | 'read' | 'update' | 'delete';
5
5
  export interface AssertModelCrudRequestFunctionContext<N, I = unknown> {
6
6
  readonly request: NestContextCallableRequest<N, I>;
7
- /**
8
- * @deprecated use call instead.
9
- */
10
- readonly crud: AssertModelCrudRequestFunctionContextCrudType;
11
7
  readonly call: OnCallFunctionType;
12
8
  readonly modelType: string;
13
9
  readonly specifier: Maybe<string>;
@@ -1,5 +1,5 @@
1
1
  import { type FirebaseStorageContextFactory } from '@dereekb/firebase';
2
- import { type Storage as FirebaseAdminStorage } from 'firebase-admin/lib/storage/storage';
2
+ import { type Storage as FirebaseAdminStorage } from 'firebase-admin/storage';
3
3
  import { type Storage as GoogleCloudStorage } from '@google-cloud/storage';
4
4
  /**
5
5
  * Creates a FirestoreContextFactory that uses the @google-cloud/storage package.
@@ -0,0 +1,9 @@
1
+ import { type CallableRequest } from 'firebase-functions/v2/https';
2
+ /**
3
+ * CallableRequest auth data.
4
+ */
5
+ export type AuthData = NonNullable<CallableRequest['auth']>;
6
+ /**
7
+ * CallableRequest context data (omits data and stream configs).
8
+ */
9
+ export type CallableContext = Omit<CallableRequest<any>, 'data' | 'acceptsStreaming'>;