@dereekb/firebase-server 13.11.2 → 13.11.4
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/index.cjs.js +29 -2
- package/index.esm.js +30 -3
- package/mailgun/package.json +9 -9
- package/model/index.cjs.js +330 -43
- package/model/index.esm.js +332 -46
- package/model/package.json +9 -9
- package/model/src/lib/notification/notification.action.server.d.ts +16 -1
- package/model/src/lib/notification/notification.module.d.ts +4 -0
- package/oidc/index.cjs.js +455 -38
- package/oidc/index.esm.js +453 -40
- package/oidc/package.json +10 -10
- package/oidc/src/lib/controller/oidc.interaction.controller.d.ts +3 -1
- package/oidc/src/lib/model/oidc/oidcmodel.action.server.d.ts +22 -1
- package/oidc/src/lib/model/oidc/oidcmodel.module.d.ts +6 -3
- package/oidc/src/lib/oidc.config.d.ts +82 -6
- package/oidc/src/lib/oidc.module.d.ts +1 -1
- package/oidc/src/lib/service/oidc.adapter.service.d.ts +5 -0
- package/oidc/src/lib/service/oidc.interaction.service.d.ts +7 -1
- package/oidc/src/lib/service/oidc.service.d.ts +31 -1
- package/oidc/src/lib/service/oidc.session-ttl.d.ts +85 -0
- package/package.json +10 -10
- package/src/lib/firestore/array.d.ts +1 -0
- package/src/lib/firestore/driver.accessor.batch.d.ts +1 -0
- package/src/lib/firestore/driver.accessor.default.d.ts +1 -0
- package/src/lib/firestore/driver.accessor.transaction.d.ts +1 -0
- package/src/lib/firestore/driver.query.d.ts +1 -0
- package/src/lib/firestore/increment.d.ts +1 -0
- package/src/lib/firestore/snapshot/snapshot.field.encrypt.d.ts +2 -0
- package/src/lib/nest/app.module.d.ts +1 -0
- package/src/lib/nest/auth/auth.module.d.ts +1 -0
- package/src/lib/nest/development/development.app.function.d.ts +1 -0
- package/src/lib/nest/development/development.function.d.ts +1 -0
- package/src/lib/nest/development/development.schedule.function.d.ts +1 -0
- package/src/lib/nest/development/development.schedule.function.error.d.ts +1 -0
- package/src/lib/nest/function/call.d.ts +1 -0
- package/src/lib/nest/function/context.d.ts +1 -0
- package/src/lib/nest/function/v2/blocking.d.ts +2 -0
- package/src/lib/nest/function/v2/call.d.ts +2 -0
- package/src/lib/nest/function/v2/event.d.ts +1 -0
- package/src/lib/nest/function/v2/schedule.d.ts +3 -0
- package/src/lib/nest/function/v2/taskqueue.d.ts +1 -0
- package/src/lib/nest/model/analytics.handler.d.ts +1 -0
- package/src/lib/nest/model/call.model.function.d.ts +1 -0
- package/src/lib/nest/model/create.model.function.d.ts +1 -0
- package/src/lib/nest/storage/storage.module.d.ts +1 -0
- package/test/package.json +11 -11
- package/zoho/package.json +9 -9
package/model/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase-server/model",
|
|
3
|
-
"version": "13.11.
|
|
3
|
+
"version": "13.11.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@dereekb/analytics": "13.11.
|
|
6
|
-
"@dereekb/date": "13.11.
|
|
7
|
-
"@dereekb/firebase": "13.11.
|
|
8
|
-
"@dereekb/firebase-server": "13.11.
|
|
9
|
-
"@dereekb/model": "13.11.
|
|
10
|
-
"@dereekb/nestjs": "13.11.
|
|
11
|
-
"@dereekb/rxjs": "13.11.
|
|
12
|
-
"@dereekb/util": "13.11.
|
|
5
|
+
"@dereekb/analytics": "13.11.4",
|
|
6
|
+
"@dereekb/date": "13.11.4",
|
|
7
|
+
"@dereekb/firebase": "13.11.4",
|
|
8
|
+
"@dereekb/firebase-server": "13.11.4",
|
|
9
|
+
"@dereekb/model": "13.11.4",
|
|
10
|
+
"@dereekb/nestjs": "13.11.4",
|
|
11
|
+
"@dereekb/rxjs": "13.11.4",
|
|
12
|
+
"@dereekb/util": "13.11.4",
|
|
13
13
|
"@nestjs/common": "^11.1.19",
|
|
14
14
|
"@nestjs/config": "^4.0.4",
|
|
15
15
|
"archiver": "^7.0.1",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AsyncNotificationSummaryCreateAction, type AsyncNotificationUserCreateAction, type AsyncNotificationUserUpdateAction, type CleanupSentNotificationsParams, type CreateNotificationBoxParams, type CreateNotificationSummaryParams, type CreateNotificationUserParams, type NotificationSummaryDocument, type NotificationUser, type NotificationUserDocument, type SendNotificationParams, type SendQueuedNotificationsParams, type UpdateNotificationBoxParams, type UpdateNotificationBoxRecipientParams, type UpdateNotificationUserParams, type AsyncNotificationBoxCreateAction, type AsyncNotificationBoxUpdateAction, type CleanupSentNotificationsResult, type FirestoreContextReference, type NotificationBox, type NotificationBoxDocument, type NotificationDocument, type NotificationFirestoreCollections, type SendNotificationResult, type SendQueuedNotificationsResult, type Transaction, type ResyncAllNotificationUserParams, type ResyncAllNotificationUsersResult, type ResyncNotificationUserResult, type ResyncNotificationUserParams, type AppNotificationTemplateTypeInfoRecordServiceRef, type AsyncNotificationSummaryUpdateAction, type UpdateNotificationSummaryParams, type NotificationBoxDocumentReferencePair } from '@dereekb/firebase';
|
|
1
|
+
import { type AsyncNotificationSummaryCreateAction, type AsyncNotificationUserCreateAction, type AsyncNotificationUserUpdateAction, type CleanupSentNotificationsParams, type CleanupOldNotificationLoggedEventDaysParams, type CleanupOldNotificationLoggedEventDaysResult, type CreateNotificationBoxParams, type CreateNotificationSummaryParams, type CreateNotificationUserParams, type NotificationSummaryDocument, type NotificationUser, type NotificationUserDocument, type SendNotificationParams, type SendQueuedNotificationsParams, type UpdateNotificationBoxParams, type UpdateNotificationBoxRecipientParams, type UpdateNotificationUserParams, type AsyncNotificationBoxCreateAction, type AsyncNotificationBoxUpdateAction, type CleanupSentNotificationsResult, type FirestoreContextReference, type NotificationBox, type NotificationBoxDocument, type NotificationDocument, type NotificationFirestoreCollections, type SendNotificationResult, type SendQueuedNotificationsResult, type Transaction, type ResyncAllNotificationUserParams, type ResyncAllNotificationUsersResult, type ResyncNotificationUserResult, type ResyncNotificationUserParams, type AppNotificationTemplateTypeInfoRecordServiceRef, type AsyncNotificationSummaryUpdateAction, type UpdateNotificationSummaryParams, type NotificationBoxDocumentReferencePair } from '@dereekb/firebase';
|
|
2
2
|
import { type FirebaseServerActionsContext, type FirebaseServerAuthServiceRef } from '@dereekb/firebase-server';
|
|
3
3
|
import { type TransformAndValidateFunctionResult } from '@dereekb/model';
|
|
4
4
|
import { type Maybe } from '@dereekb/util';
|
|
@@ -58,6 +58,7 @@ export declare abstract class NotificationServerActions {
|
|
|
58
58
|
abstract sendNotification(params: SendNotificationParams): Promise<TransformAndValidateFunctionResult<SendNotificationParams, (notificationDocument: NotificationDocument) => Promise<SendNotificationResult>>>;
|
|
59
59
|
abstract sendQueuedNotifications(params: SendQueuedNotificationsParams): Promise<TransformAndValidateFunctionResult<SendQueuedNotificationsParams, (sendQueuedNotificationsInput?: Maybe<SendQueuedNotificationsInput>) => Promise<SendQueuedNotificationsResult>>>;
|
|
60
60
|
abstract cleanupSentNotifications(params: CleanupSentNotificationsParams): Promise<TransformAndValidateFunctionResult<CleanupSentNotificationsParams, () => Promise<CleanupSentNotificationsResult>>>;
|
|
61
|
+
abstract cleanupOldNotificationLoggedEventDays(params: CleanupOldNotificationLoggedEventDaysParams): Promise<TransformAndValidateFunctionResult<CleanupOldNotificationLoggedEventDaysParams, () => Promise<CleanupOldNotificationLoggedEventDaysResult>>>;
|
|
61
62
|
}
|
|
62
63
|
/**
|
|
63
64
|
* Creates a concrete {@link NotificationServerActions} implementation by wiring each action
|
|
@@ -314,3 +315,17 @@ export declare function sendQueuedNotificationsFactory(context: NotificationServ
|
|
|
314
315
|
* @returns a transform-and-validate function that cleans up sent notification documents and returns aggregate results
|
|
315
316
|
*/
|
|
316
317
|
export declare function cleanupSentNotificationsFactory(context: NotificationServerActionsContext): import("@dereekb/model").TransformAndValidateFunctionResultFunction<CleanupSentNotificationsParams, () => Promise<CleanupSentNotificationsResult>, object, unknown>;
|
|
318
|
+
/**
|
|
319
|
+
* Factory for the `cleanupOldNotificationLoggedEventDays` action.
|
|
320
|
+
*
|
|
321
|
+
* Queries the {@link NotificationLoggedEventDayFirestoreCollectionGroup} for day documents whose
|
|
322
|
+
* ISO day string ID is older than `now - retentionDays`, then deletes each old day's wrapper doc
|
|
323
|
+
* and all of its nested page documents (the paged `_index` plus every page).
|
|
324
|
+
*
|
|
325
|
+
* For each old day, all docs in the day's paged subcollection are deleted before the wrapper doc
|
|
326
|
+
* itself, so a partial failure leaves the index pointing at zero pages rather than orphaned ones.
|
|
327
|
+
*
|
|
328
|
+
* @param context - the notification server actions context with paged-items collection access
|
|
329
|
+
* @returns a transform-and-validate function that purges old logged-event days and returns aggregate counts
|
|
330
|
+
*/
|
|
331
|
+
export declare function cleanupOldNotificationLoggedEventDaysFactory(context: NotificationServerActionsContext): import("@dereekb/model").TransformAndValidateFunctionResultFunction<CleanupOldNotificationLoggedEventDaysParams, () => Promise<CleanupOldNotificationLoggedEventDaysResult>, object, unknown>;
|
|
@@ -31,6 +31,10 @@ export declare function notificationServerActionsContextFactory(context: BaseNot
|
|
|
31
31
|
notificationCollectionGroup: import("@dereekb/firebase").NotificationFirestoreCollectionGroup;
|
|
32
32
|
notificationWeekCollectionFactory: import("@dereekb/firebase").NotificationWeekFirestoreCollectionFactory;
|
|
33
33
|
notificationWeekCollectionGroup: import("@dereekb/firebase").NotificationWeekFirestoreCollectionGroup;
|
|
34
|
+
notificationLoggedEventDayCollectionFactory: import("@dereekb/firebase").NotificationLoggedEventDayFirestoreCollectionFactory;
|
|
35
|
+
notificationLoggedEventDayCollectionGroup: import("@dereekb/firebase").NotificationLoggedEventDayFirestoreCollectionGroup;
|
|
36
|
+
notificationLoggedEventDayPagedItemsCollectionFactory: import("@dereekb/firebase").NotificationLoggedEventDayPagedItemsFirestoreCollectionFactory;
|
|
37
|
+
notificationLoggedEventDayPageCollectionGroup: import("@dereekb/firebase").NotificationLoggedEventDayPageFirestoreCollectionGroup;
|
|
34
38
|
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>>;
|
|
35
39
|
firestoreContext: import("@dereekb/firebase").FirestoreContext<import("@dereekb/firebase").Firestore>;
|
|
36
40
|
};
|