@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.
- package/LICENSE +1 -1
- package/index.cjs.js +2937 -0
- package/index.esm.js +2775 -0
- package/mailgun/index.cjs.js +48 -0
- package/mailgun/index.esm.js +46 -0
- package/mailgun/package.json +26 -6
- package/model/index.cjs.js +5298 -0
- package/model/index.d.ts +1 -0
- package/model/index.esm.js +5161 -0
- package/model/package.json +31 -3
- package/model/src/lib/notification/notification.module.d.ts +10 -10
- package/model/src/lib/storagefile/storagefile.task.service.handler.d.ts +3 -14
- package/package.json +48 -27
- package/src/lib/auth/auth.context.d.ts +1 -1
- package/src/lib/auth/auth.service.d.ts +1 -1
- package/src/lib/function/assert.d.ts +2 -2
- package/src/lib/function/context.d.ts +1 -1
- package/src/lib/index.d.ts +1 -0
- package/src/lib/nest/app.d.ts +1 -1
- package/src/lib/nest/development/development.app.function.d.ts +1 -2
- package/src/lib/nest/function/call.d.ts +1 -1
- package/src/lib/nest/function/context.d.ts +0 -4
- package/src/lib/nest/function/index.d.ts +0 -1
- package/src/lib/nest/function/nest.d.ts +1 -1
- package/src/lib/nest/function/v2/blocking.d.ts +3 -2
- package/src/lib/nest/model/crud.assert.function.d.ts +0 -4
- package/src/lib/storage/storage.d.ts +1 -1
- package/src/lib/type.d.ts +9 -0
- package/test/index.cjs.js +1324 -0
- package/test/index.d.ts +1 -0
- package/test/index.esm.js +1247 -0
- package/test/package.json +34 -3
- package/test/src/lib/firebase/firebase.admin.auth.d.ts +22 -13
- package/test/src/lib/firebase/firebase.admin.collection.d.ts +6 -6
- package/test/src/lib/firebase/firebase.admin.d.ts +10 -10
- package/test/src/lib/firebase/firebase.admin.function.d.ts +9 -9
- package/test/src/lib/firebase/firebase.admin.nest.d.ts +8 -8
- package/test/src/lib/firebase/firebase.admin.nest.function.d.ts +9 -9
- package/test/src/lib/firebase/firebase.test.d.ts +30 -0
- package/test/src/lib/firebase/index.d.ts +1 -1
- package/test/src/lib/firestore/firestore.admin.d.ts +3 -3
- package/test/src/lib/firestore/firestore.d.ts +2 -2
- package/test/src/lib/storage/storage.admin.d.ts +3 -3
- package/test/src/lib/storage/storage.d.ts +2 -2
- package/zoho/LICENSE +1 -1
- package/zoho/index.d.ts +1 -0
- package/zoho/index.esm.js +2 -2
- package/zoho/package.json +12 -8
- package/CHANGELOG.md +0 -2233
- package/mailgun/src/index.js +0 -5
- package/mailgun/src/index.js.map +0 -1
- package/mailgun/src/lib/auth.mailgun.js +0 -41
- package/mailgun/src/lib/auth.mailgun.js.map +0 -1
- package/mailgun/src/lib/index.js +0 -5
- package/mailgun/src/lib/index.js.map +0 -1
- package/model/src/index.js +0 -5
- package/model/src/index.js.map +0 -1
- package/model/src/lib/index.js +0 -7
- package/model/src/lib/index.js.map +0 -1
- package/model/src/lib/mailgun/index.js +0 -5
- package/model/src/lib/mailgun/index.js.map +0 -1
- package/model/src/lib/mailgun/notification.send.service.mailgun.js +0 -68
- package/model/src/lib/mailgun/notification.send.service.mailgun.js.map +0 -1
- package/model/src/lib/notification/index.js +0 -20
- package/model/src/lib/notification/index.js.map +0 -1
- package/model/src/lib/notification/notification.action.init.service.js +0 -230
- package/model/src/lib/notification/notification.action.init.service.js.map +0 -1
- package/model/src/lib/notification/notification.action.service.js +0 -1487
- package/model/src/lib/notification/notification.action.service.js.map +0 -1
- package/model/src/lib/notification/notification.config.js +0 -13
- package/model/src/lib/notification/notification.config.js.map +0 -1
- package/model/src/lib/notification/notification.config.service.js +0 -60
- package/model/src/lib/notification/notification.config.service.js.map +0 -1
- package/model/src/lib/notification/notification.create.run.js +0 -59
- package/model/src/lib/notification/notification.create.run.js.map +0 -1
- package/model/src/lib/notification/notification.error.js +0 -87
- package/model/src/lib/notification/notification.error.js.map +0 -1
- package/model/src/lib/notification/notification.expedite.service.js +0 -112
- package/model/src/lib/notification/notification.expedite.service.js.map +0 -1
- package/model/src/lib/notification/notification.module.js +0 -106
- package/model/src/lib/notification/notification.module.js.map +0 -1
- package/model/src/lib/notification/notification.send.js +0 -3
- package/model/src/lib/notification/notification.send.js.map +0 -1
- package/model/src/lib/notification/notification.send.service.js +0 -10
- package/model/src/lib/notification/notification.send.service.js.map +0 -1
- package/model/src/lib/notification/notification.send.service.notificationsummary.js +0 -104
- package/model/src/lib/notification/notification.send.service.notificationsummary.js.map +0 -1
- package/model/src/lib/notification/notification.send.service.text.js +0 -29
- package/model/src/lib/notification/notification.send.service.text.js.map +0 -1
- package/model/src/lib/notification/notification.task.service.handler.js +0 -65
- package/model/src/lib/notification/notification.task.service.handler.js.map +0 -1
- package/model/src/lib/notification/notification.task.service.js +0 -10
- package/model/src/lib/notification/notification.task.service.js.map +0 -1
- package/model/src/lib/notification/notification.task.service.util.js +0 -27
- package/model/src/lib/notification/notification.task.service.util.js.map +0 -1
- package/model/src/lib/notification/notification.task.subtask.handler.js +0 -256
- package/model/src/lib/notification/notification.task.subtask.handler.js.map +0 -1
- package/model/src/lib/notification/notification.util.js +0 -478
- package/model/src/lib/notification/notification.util.js.map +0 -1
- package/model/src/lib/storagefile/index.js +0 -12
- package/model/src/lib/storagefile/index.js.map +0 -1
- package/model/src/lib/storagefile/storagefile.action.init.service.js +0 -155
- package/model/src/lib/storagefile/storagefile.action.init.service.js.map +0 -1
- package/model/src/lib/storagefile/storagefile.action.server.js +0 -797
- package/model/src/lib/storagefile/storagefile.action.server.js.map +0 -1
- package/model/src/lib/storagefile/storagefile.error.js +0 -106
- package/model/src/lib/storagefile/storagefile.error.js.map +0 -1
- package/model/src/lib/storagefile/storagefile.module.js +0 -64
- package/model/src/lib/storagefile/storagefile.module.js.map +0 -1
- package/model/src/lib/storagefile/storagefile.task.service.handler.js +0 -287
- package/model/src/lib/storagefile/storagefile.task.service.handler.js.map +0 -1
- package/model/src/lib/storagefile/storagefile.upload.service.initializer.js +0 -180
- package/model/src/lib/storagefile/storagefile.upload.service.initializer.js.map +0 -1
- package/model/src/lib/storagefile/storagefile.upload.service.js +0 -10
- package/model/src/lib/storagefile/storagefile.upload.service.js.map +0 -1
- package/model/src/lib/storagefile/storagefile.util.js +0 -54
- package/model/src/lib/storagefile/storagefile.util.js.map +0 -1
- package/src/index.js +0 -5
- package/src/index.js.map +0 -1
- package/src/lib/auth/auth.context.js +0 -13
- package/src/lib/auth/auth.context.js.map +0 -1
- package/src/lib/auth/auth.service.error.js +0 -34
- package/src/lib/auth/auth.service.error.js.map +0 -1
- package/src/lib/auth/auth.service.js +0 -427
- package/src/lib/auth/auth.service.js.map +0 -1
- package/src/lib/auth/auth.util.js +0 -23
- package/src/lib/auth/auth.util.js.map +0 -1
- package/src/lib/auth/index.js +0 -8
- package/src/lib/auth/index.js.map +0 -1
- package/src/lib/env/env.service.js +0 -7
- package/src/lib/env/env.service.js.map +0 -1
- package/src/lib/env/index.js +0 -5
- package/src/lib/env/index.js.map +0 -1
- package/src/lib/firestore/array.js +0 -34
- package/src/lib/firestore/array.js.map +0 -1
- package/src/lib/firestore/driver.accessor.batch.js +0 -93
- package/src/lib/firestore/driver.accessor.batch.js.map +0 -1
- package/src/lib/firestore/driver.accessor.default.js +0 -62
- package/src/lib/firestore/driver.accessor.default.js.map +0 -1
- package/src/lib/firestore/driver.accessor.js +0 -50
- package/src/lib/firestore/driver.accessor.js.map +0 -1
- package/src/lib/firestore/driver.accessor.transaction.js +0 -96
- package/src/lib/firestore/driver.accessor.transaction.js.map +0 -1
- package/src/lib/firestore/driver.js +0 -14
- package/src/lib/firestore/driver.js.map +0 -1
- package/src/lib/firestore/driver.query.js +0 -55
- package/src/lib/firestore/driver.query.js.map +0 -1
- package/src/lib/firestore/firestore.js +0 -10
- package/src/lib/firestore/firestore.js.map +0 -1
- package/src/lib/firestore/increment.js +0 -17
- package/src/lib/firestore/increment.js.map +0 -1
- package/src/lib/firestore/index.js +0 -9
- package/src/lib/firestore/index.js.map +0 -1
- package/src/lib/function/assert.js +0 -68
- package/src/lib/function/assert.js.map +0 -1
- package/src/lib/function/context.js +0 -14
- package/src/lib/function/context.js.map +0 -1
- package/src/lib/function/error.auth.js +0 -25
- package/src/lib/function/error.auth.js.map +0 -1
- package/src/lib/function/error.js +0 -221
- package/src/lib/function/error.js.map +0 -1
- package/src/lib/function/index.js +0 -9
- package/src/lib/function/index.js.map +0 -1
- package/src/lib/function/type.js +0 -3
- package/src/lib/function/type.js.map +0 -1
- package/src/lib/index.js +0 -11
- package/src/lib/index.js.map +0 -1
- package/src/lib/nest/app.js +0 -114
- package/src/lib/nest/app.js.map +0 -1
- package/src/lib/nest/auth/auth.module.js +0 -60
- package/src/lib/nest/auth/auth.module.js.map +0 -1
- package/src/lib/nest/auth/auth.util.js +0 -72
- package/src/lib/nest/auth/auth.util.js.map +0 -1
- package/src/lib/nest/auth/index.js +0 -6
- package/src/lib/nest/auth/index.js.map +0 -1
- package/src/lib/nest/development/development.app.function.js +0 -38
- package/src/lib/nest/development/development.app.function.js.map +0 -1
- package/src/lib/nest/development/development.assert.function.js +0 -3
- package/src/lib/nest/development/development.assert.function.js.map +0 -1
- package/src/lib/nest/development/development.function.js +0 -41
- package/src/lib/nest/development/development.function.js.map +0 -1
- package/src/lib/nest/development/development.schedule.function.error.js +0 -35
- package/src/lib/nest/development/development.schedule.function.error.js.map +0 -1
- package/src/lib/nest/development/development.schedule.function.js +0 -54
- package/src/lib/nest/development/development.schedule.function.js.map +0 -1
- package/src/lib/nest/development/index.js +0 -9
- package/src/lib/nest/development/index.js.map +0 -1
- package/src/lib/nest/env/env.service.js +0 -19
- package/src/lib/nest/env/env.service.js.map +0 -1
- package/src/lib/nest/env/env.util.js +0 -12
- package/src/lib/nest/env/env.util.js.map +0 -1
- package/src/lib/nest/env/index.js +0 -6
- package/src/lib/nest/env/index.js.map +0 -1
- package/src/lib/nest/firebase/firebase.module.js +0 -17
- package/src/lib/nest/firebase/firebase.module.js.map +0 -1
- package/src/lib/nest/firebase/index.js +0 -5
- package/src/lib/nest/firebase/index.js.map +0 -1
- package/src/lib/nest/firestore/firestore.module.js +0 -86
- package/src/lib/nest/firestore/firestore.module.js.map +0 -1
- package/src/lib/nest/firestore/index.js +0 -5
- package/src/lib/nest/firestore/index.js.map +0 -1
- package/src/lib/nest/function/call.js +0 -46
- package/src/lib/nest/function/call.js.map +0 -1
- package/src/lib/nest/function/context.js +0 -79
- package/src/lib/nest/function/context.js.map +0 -1
- package/src/lib/nest/function/index.js +0 -10
- package/src/lib/nest/function/index.js.map +0 -1
- package/src/lib/nest/function/nest.js +0 -17
- package/src/lib/nest/function/nest.js.map +0 -1
- package/src/lib/nest/function/schedule.js +0 -8
- package/src/lib/nest/function/schedule.js.map +0 -1
- package/src/lib/nest/function/v1/call.d.ts +0 -59
- package/src/lib/nest/function/v1/call.js +0 -55
- package/src/lib/nest/function/v1/call.js.map +0 -1
- package/src/lib/nest/function/v1/event.d.ts +0 -80
- package/src/lib/nest/function/v1/event.js +0 -52
- package/src/lib/nest/function/v1/event.js.map +0 -1
- package/src/lib/nest/function/v1/index.d.ts +0 -3
- package/src/lib/nest/function/v1/index.js +0 -7
- package/src/lib/nest/function/v1/index.js.map +0 -1
- package/src/lib/nest/function/v1/schedule.d.ts +0 -47
- package/src/lib/nest/function/v1/schedule.js +0 -68
- package/src/lib/nest/function/v1/schedule.js.map +0 -1
- package/src/lib/nest/function/v2/blocking.js +0 -38
- package/src/lib/nest/function/v2/blocking.js.map +0 -1
- package/src/lib/nest/function/v2/call.js +0 -31
- package/src/lib/nest/function/v2/call.js.map +0 -1
- package/src/lib/nest/function/v2/event.js +0 -25
- package/src/lib/nest/function/v2/event.js.map +0 -1
- package/src/lib/nest/function/v2/index.js +0 -9
- package/src/lib/nest/function/v2/index.js.map +0 -1
- package/src/lib/nest/function/v2/schedule.js +0 -56
- package/src/lib/nest/function/v2/schedule.js.map +0 -1
- package/src/lib/nest/function/v2/taskqueue.js +0 -26
- package/src/lib/nest/function/v2/taskqueue.js.map +0 -1
- package/src/lib/nest/index.js +0 -15
- package/src/lib/nest/index.js.map +0 -1
- package/src/lib/nest/middleware/appcheck.decorator.js +0 -12
- package/src/lib/nest/middleware/appcheck.decorator.js.map +0 -1
- package/src/lib/nest/middleware/appcheck.js +0 -3
- package/src/lib/nest/middleware/appcheck.js.map +0 -1
- package/src/lib/nest/middleware/appcheck.middleware.js +0 -74
- package/src/lib/nest/middleware/appcheck.middleware.js.map +0 -1
- package/src/lib/nest/middleware/appcheck.module.js +0 -21
- package/src/lib/nest/middleware/appcheck.module.js.map +0 -1
- package/src/lib/nest/middleware/globalprefix.js +0 -11
- package/src/lib/nest/middleware/globalprefix.js.map +0 -1
- package/src/lib/nest/middleware/index.js +0 -10
- package/src/lib/nest/middleware/index.js.map +0 -1
- package/src/lib/nest/middleware/rawbody.middleware.js +0 -16
- package/src/lib/nest/middleware/rawbody.middleware.js.map +0 -1
- package/src/lib/nest/middleware/webhook.js +0 -24
- package/src/lib/nest/middleware/webhook.js.map +0 -1
- package/src/lib/nest/model/call.model.function.js +0 -73
- package/src/lib/nest/model/call.model.function.js.map +0 -1
- package/src/lib/nest/model/create.model.function.js +0 -27
- package/src/lib/nest/model/create.model.function.js.map +0 -1
- package/src/lib/nest/model/crud.assert.function.js +0 -3
- package/src/lib/nest/model/crud.assert.function.js.map +0 -1
- package/src/lib/nest/model/delete.model.function.js +0 -27
- package/src/lib/nest/model/delete.model.function.js.map +0 -1
- package/src/lib/nest/model/index.js +0 -11
- package/src/lib/nest/model/index.js.map +0 -1
- package/src/lib/nest/model/permission.error.js +0 -24
- package/src/lib/nest/model/permission.error.js.map +0 -1
- package/src/lib/nest/model/read.model.function.js +0 -27
- package/src/lib/nest/model/read.model.function.js.map +0 -1
- package/src/lib/nest/model/specifier.function.js +0 -35
- package/src/lib/nest/model/specifier.function.js.map +0 -1
- package/src/lib/nest/model/update.model.function.js +0 -27
- package/src/lib/nest/model/update.model.function.js.map +0 -1
- package/src/lib/nest/nest.provider.js +0 -89
- package/src/lib/nest/nest.provider.js.map +0 -1
- package/src/lib/nest/storage/index.js +0 -5
- package/src/lib/nest/storage/index.js.map +0 -1
- package/src/lib/nest/storage/storage.module.js +0 -112
- package/src/lib/nest/storage/storage.module.js.map +0 -1
- package/src/lib/storage/driver.accessor.js +0 -299
- package/src/lib/storage/driver.accessor.js.map +0 -1
- package/src/lib/storage/driver.js +0 -12
- package/src/lib/storage/driver.js.map +0 -1
- package/src/lib/storage/index.js +0 -8
- package/src/lib/storage/index.js.map +0 -1
- package/src/lib/storage/storage.js +0 -20
- package/src/lib/storage/storage.js.map +0 -1
- package/src/lib/storage/storage.service.js +0 -26
- package/src/lib/storage/storage.service.js.map +0 -1
- package/test/src/index.js +0 -5
- package/test/src/index.js.map +0 -1
- package/test/src/lib/firebase/firebase.admin.auth.js +0 -260
- package/test/src/lib/firebase/firebase.admin.auth.js.map +0 -1
- package/test/src/lib/firebase/firebase.admin.collection.js +0 -108
- package/test/src/lib/firebase/firebase.admin.collection.js.map +0 -1
- package/test/src/lib/firebase/firebase.admin.function.js +0 -132
- package/test/src/lib/firebase/firebase.admin.function.js.map +0 -1
- package/test/src/lib/firebase/firebase.admin.js +0 -174
- package/test/src/lib/firebase/firebase.admin.js.map +0 -1
- package/test/src/lib/firebase/firebase.admin.nest.function.callable.context.js +0 -42
- package/test/src/lib/firebase/firebase.admin.nest.function.callable.context.js.map +0 -1
- package/test/src/lib/firebase/firebase.admin.nest.function.cloud.context.js +0 -40
- package/test/src/lib/firebase/firebase.admin.nest.function.cloud.context.js.map +0 -1
- package/test/src/lib/firebase/firebase.admin.nest.function.js +0 -64
- package/test/src/lib/firebase/firebase.admin.nest.function.js.map +0 -1
- package/test/src/lib/firebase/firebase.admin.nest.js +0 -107
- package/test/src/lib/firebase/firebase.admin.nest.js.map +0 -1
- package/test/src/lib/firebase/firebase.admin.test.server.js +0 -37
- package/test/src/lib/firebase/firebase.admin.test.server.js.map +0 -1
- package/test/src/lib/firebase/firebase.function.js +0 -58
- package/test/src/lib/firebase/firebase.function.js.map +0 -1
- package/test/src/lib/firebase/firebase.jest.d.ts +0 -21
- package/test/src/lib/firebase/firebase.jest.js +0 -45
- package/test/src/lib/firebase/firebase.jest.js.map +0 -1
- package/test/src/lib/firebase/firebase.js +0 -74
- package/test/src/lib/firebase/firebase.js.map +0 -1
- package/test/src/lib/firebase/index.js +0 -15
- package/test/src/lib/firebase/index.js.map +0 -1
- package/test/src/lib/firestore/firestore.admin.js +0 -21
- package/test/src/lib/firestore/firestore.admin.js.map +0 -1
- package/test/src/lib/firestore/firestore.js +0 -57
- package/test/src/lib/firestore/firestore.js.map +0 -1
- package/test/src/lib/firestore/index.js +0 -6
- package/test/src/lib/firestore/index.js.map +0 -1
- package/test/src/lib/index.js +0 -7
- package/test/src/lib/index.js.map +0 -1
- package/test/src/lib/storage/index.js +0 -6
- package/test/src/lib/storage/index.js.map +0 -1
- package/test/src/lib/storage/storage.admin.js +0 -21
- package/test/src/lib/storage/storage.admin.js.map +0 -1
- package/test/src/lib/storage/storage.js +0 -59
- package/test/src/lib/storage/storage.js.map +0 -1
- /package/{zoho/index.cjs.d.ts → index.d.ts} +0 -0
- /package/{zoho/index.esm.d.ts → mailgun/index.d.ts} +0 -0
package/model/package.json
CHANGED
|
@@ -1,7 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/model",
|
|
3
|
-
"version": "
|
|
4
|
-
"type": "commonjs",
|
|
3
|
+
"version": "13.0.0",
|
|
5
4
|
"types": "./src/index.d.ts",
|
|
6
|
-
"
|
|
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("
|
|
15
|
-
firebaseServerActionTransformFunctionFactory: import("
|
|
16
|
-
notificationUserCollection: import("
|
|
17
|
-
notificationSummaryCollection: import("
|
|
18
|
-
notificationBoxCollection: import("
|
|
19
|
-
notificationCollectionFactory: import("
|
|
20
|
-
notificationCollectionGroup: import("
|
|
21
|
-
notificationWeekCollectionFactory: import("
|
|
22
|
-
notificationWeekCollectionGroup: import("
|
|
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("
|
|
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
|
|
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
|
|
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
|
|
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": "
|
|
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
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
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
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
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
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
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": "./
|
|
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
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"@dereekb/
|
|
52
|
-
"
|
|
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": "^
|
|
73
|
+
"@nestjs/common": "^11.0.0",
|
|
55
74
|
"make-error": "^1.3.0",
|
|
56
75
|
"@google-cloud/firestore": "^7.0.0",
|
|
57
|
-
"rxjs": "^7.
|
|
58
|
-
"
|
|
59
|
-
"@nestjs/
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
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
|
-
"
|
|
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 '
|
|
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 '
|
|
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/
|
|
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 '
|
|
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>;
|
package/src/lib/index.d.ts
CHANGED
package/src/lib/nest/app.d.ts
CHANGED
|
@@ -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
|
|
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:
|
|
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/
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { type INestApplicationContext } from '@nestjs/common';
|
|
2
|
-
import { type CallableRequest } from 'firebase-functions/
|
|
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/
|
|
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'>;
|