captify 0.1.19 → 1.1.1
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/dist/agents/components/agents-list-header.d.ts.map +1 -1
- package/dist/agents/components/agents-list-header.js +3 -2
- package/dist/agents/components/agents-list-header.js.map +1 -1
- package/dist/chat/components/chat-content-approval.d.ts.map +1 -1
- package/dist/chat/components/chat-content-approval.js.map +1 -1
- package/dist/chat/components/chat-context-toggle.d.ts.map +1 -1
- package/dist/chat/components/chat-context-toggle.js +2 -4
- package/dist/chat/components/chat-context-toggle.js.map +1 -1
- package/dist/comments/comments.constants.d.ts +8 -1
- package/dist/comments/comments.constants.d.ts.map +1 -1
- package/dist/comments/comments.constants.js +18 -0
- package/dist/comments/comments.constants.js.map +1 -1
- package/dist/comments/comments.interfaces.d.ts +5 -0
- package/dist/comments/comments.interfaces.d.ts.map +1 -1
- package/dist/comments/comments.utilities.d.ts +30 -1
- package/dist/comments/comments.utilities.d.ts.map +1 -1
- package/dist/comments/comments.utilities.js +41 -1
- package/dist/comments/comments.utilities.js.map +1 -1
- package/dist/comments/hooks/use-comments.d.ts.map +1 -1
- package/dist/comments/hooks/use-comments.js +1 -0
- package/dist/comments/hooks/use-comments.js.map +1 -1
- package/dist/comments/services/comments.factory.d.ts.map +1 -1
- package/dist/comments/services/comments.factory.js +5 -2
- package/dist/comments/services/comments.factory.js.map +1 -1
- package/dist/comments/services/comments.service.d.ts +9 -2
- package/dist/comments/services/comments.service.d.ts.map +1 -1
- package/dist/comments/services/comments.service.js +96 -4
- package/dist/comments/services/comments.service.js.map +1 -1
- package/dist/db/schemas/index.d.ts +6 -4
- package/dist/db/schemas/index.d.ts.map +1 -1
- package/dist/db/schemas/index.js +2 -1
- package/dist/db/schemas/index.js.map +1 -1
- package/dist/db/schemas/notifications.schema.d.ts +107 -0
- package/dist/db/schemas/notifications.schema.d.ts.map +1 -0
- package/dist/db/schemas/notifications.schema.js +124 -0
- package/dist/db/schemas/notifications.schema.js.map +1 -0
- package/dist/feedback/api/feedback.handlers.d.ts.map +1 -1
- package/dist/feedback/api/feedback.handlers.js +1 -0
- package/dist/feedback/api/feedback.handlers.js.map +1 -1
- package/dist/feedback/components/feedback-editor.d.ts.map +1 -1
- package/dist/feedback/components/feedback-editor.js +6 -4
- package/dist/feedback/components/feedback-editor.js.map +1 -1
- package/dist/feedback/feedback.interfaces.d.ts +24 -1
- package/dist/feedback/feedback.interfaces.d.ts.map +1 -1
- package/dist/feedback/services/feedback.service.d.ts +26 -3
- package/dist/feedback/services/feedback.service.d.ts.map +1 -1
- package/dist/feedback/services/feedback.service.js +270 -11
- package/dist/feedback/services/feedback.service.js.map +1 -1
- package/dist/files/components/folder-browser/folder-breadcrumb.d.ts.map +1 -1
- package/dist/files/components/folder-browser/folder-breadcrumb.js +1 -1
- package/dist/files/components/folder-browser/folder-breadcrumb.js.map +1 -1
- package/dist/files/components/folder-browser/folder-list-item.js +1 -1
- package/dist/files/components/folder-browser/folder-list-item.js.map +1 -1
- package/dist/files/components/folder-browser/folder-tree-item.d.ts.map +1 -1
- package/dist/files/components/folder-browser/folder-tree-item.js +1 -1
- package/dist/files/components/folder-browser/folder-tree-item.js.map +1 -1
- package/dist/files/components/folder-browser/folder-tree-sidebar.js +1 -1
- package/dist/files/components/folder-browser/folder-tree-sidebar.js.map +1 -1
- package/dist/notifications/api/index.d.ts +7 -0
- package/dist/notifications/api/index.d.ts.map +1 -0
- package/dist/notifications/api/index.js +8 -0
- package/dist/notifications/api/index.js.map +1 -0
- package/dist/notifications/api/notifications.client.d.ts +86 -0
- package/dist/notifications/api/notifications.client.d.ts.map +1 -0
- package/dist/notifications/api/notifications.client.js +102 -0
- package/dist/notifications/api/notifications.client.js.map +1 -0
- package/dist/notifications/api/notifications.handlers.d.ts +166 -0
- package/dist/notifications/api/notifications.handlers.d.ts.map +1 -0
- package/dist/notifications/api/notifications.handlers.js +187 -0
- package/dist/notifications/api/notifications.handlers.js.map +1 -0
- package/dist/notifications/hooks/index.d.ts +5 -0
- package/dist/notifications/hooks/index.d.ts.map +1 -0
- package/dist/notifications/hooks/index.js +5 -0
- package/dist/notifications/hooks/index.js.map +1 -0
- package/dist/notifications/hooks/use-notifications-api.d.ts +111 -0
- package/dist/notifications/hooks/use-notifications-api.d.ts.map +1 -0
- package/dist/notifications/hooks/use-notifications-api.js +253 -0
- package/dist/notifications/hooks/use-notifications-api.js.map +1 -0
- package/dist/notifications/index.d.ts +16 -0
- package/dist/notifications/index.d.ts.map +1 -0
- package/dist/notifications/index.js +18 -0
- package/dist/notifications/index.js.map +1 -0
- package/dist/notifications/notification.utilities.d.ts +12 -0
- package/dist/notifications/notification.utilities.d.ts.map +1 -0
- package/dist/notifications/notification.utilities.js +35 -0
- package/dist/notifications/notification.utilities.js.map +1 -0
- package/dist/notifications/notifications.constants.d.ts +72 -0
- package/dist/notifications/notifications.constants.d.ts.map +1 -0
- package/dist/notifications/notifications.constants.js +104 -0
- package/dist/notifications/notifications.constants.js.map +1 -0
- package/dist/notifications/notifications.errors.d.ts +35 -0
- package/dist/notifications/notifications.errors.d.ts.map +1 -0
- package/dist/notifications/notifications.errors.js +51 -0
- package/dist/notifications/notifications.errors.js.map +1 -0
- package/dist/notifications/notifications.interfaces.d.ts +116 -0
- package/dist/notifications/notifications.interfaces.d.ts.map +1 -0
- package/dist/notifications/notifications.interfaces.js +10 -0
- package/dist/notifications/notifications.interfaces.js.map +1 -0
- package/dist/notifications/notifications.schemas.d.ts +139 -0
- package/dist/notifications/notifications.schemas.d.ts.map +1 -0
- package/dist/notifications/notifications.schemas.js +167 -0
- package/dist/notifications/notifications.schemas.js.map +1 -0
- package/dist/notifications/services/index.d.ts +6 -0
- package/dist/notifications/services/index.d.ts.map +1 -0
- package/dist/notifications/services/index.js +6 -0
- package/dist/notifications/services/index.js.map +1 -0
- package/dist/notifications/services/notifications.factory.d.ts +19 -0
- package/dist/notifications/services/notifications.factory.d.ts.map +1 -0
- package/dist/notifications/services/notifications.factory.js +58 -0
- package/dist/notifications/services/notifications.factory.js.map +1 -0
- package/dist/notifications/services/notifications.service.d.ts +88 -0
- package/dist/notifications/services/notifications.service.d.ts.map +1 -0
- package/dist/notifications/services/notifications.service.js +620 -0
- package/dist/notifications/services/notifications.service.js.map +1 -0
- package/dist/permissions/api/permissions.handlers.d.ts +20 -20
- package/dist/permissions/components/resource-panel.d.ts.map +1 -1
- package/dist/permissions/components/resource-panel.js +2 -1
- package/dist/permissions/components/resource-panel.js.map +1 -1
- package/dist/permissions/hooks/index.d.ts +1 -0
- package/dist/permissions/hooks/index.d.ts.map +1 -1
- package/dist/permissions/hooks/index.js +1 -0
- package/dist/permissions/hooks/index.js.map +1 -1
- package/dist/permissions/hooks/use-notification-permissions.d.ts +19 -0
- package/dist/permissions/hooks/use-notification-permissions.d.ts.map +1 -0
- package/dist/permissions/hooks/use-notification-permissions.js +32 -0
- package/dist/permissions/hooks/use-notification-permissions.js.map +1 -0
- package/dist/permissions/hooks/use-permissions-dashboard.d.ts +6 -6
- package/dist/permissions/hooks/use-policies.d.ts +2 -2
- package/dist/permissions/permissions.constants.d.ts +5 -0
- package/dist/permissions/permissions.constants.d.ts.map +1 -1
- package/dist/permissions/permissions.constants.js +35 -0
- package/dist/permissions/permissions.constants.js.map +1 -1
- package/dist/permissions/permissions.interfaces.d.ts +12 -0
- package/dist/permissions/permissions.interfaces.d.ts.map +1 -1
- package/dist/permissions/permissions.schemas.d.ts +56 -21
- package/dist/permissions/permissions.schemas.d.ts.map +1 -1
- package/dist/permissions/permissions.schemas.js +6 -1
- package/dist/permissions/permissions.schemas.js.map +1 -1
- package/dist/search/components/global-search-bar.d.ts.map +1 -1
- package/dist/search/components/global-search-bar.js +10 -11
- package/dist/search/components/global-search-bar.js.map +1 -1
- package/dist/shared/components/skeleton/console-layout-skeleton.d.ts +9 -21
- package/dist/shared/components/skeleton/console-layout-skeleton.d.ts.map +1 -1
- package/dist/shared/components/skeleton/console-layout-skeleton.js +13 -29
- package/dist/shared/components/skeleton/console-layout-skeleton.js.map +1 -1
- package/dist/shared/components/ui/sidebar.js +9 -9
- package/dist/shared/components/ui/sidebar.js.map +1 -1
- package/dist/shared/shared.constants.d.ts +1 -0
- package/dist/shared/shared.constants.d.ts.map +1 -1
- package/dist/shared/shared.constants.js +1 -0
- package/dist/shared/shared.constants.js.map +1 -1
- package/dist/shared/shared.interfaces.d.ts +0 -1
- package/dist/shared/shared.interfaces.d.ts.map +1 -1
- package/dist/shell/components/ConsoleLayout.d.ts +1 -1
- package/dist/shell/components/ConsoleLayout.d.ts.map +1 -1
- package/dist/shell/components/ConsoleLayout.js +6 -3
- package/dist/shell/components/ConsoleLayout.js.map +1 -1
- package/dist/shell/components/app-launcher/app-launcher-search-bar.js +1 -1
- package/dist/shell/components/app-launcher/app-launcher-search-bar.js.map +1 -1
- package/dist/shell/components/app-launcher/app-launcher.d.ts.map +1 -1
- package/dist/shell/components/app-launcher/app-launcher.js +2 -1
- package/dist/shell/components/app-launcher/app-launcher.js.map +1 -1
- package/dist/shell/components/app-launcher/category-navigation.d.ts.map +1 -1
- package/dist/shell/components/app-launcher/category-navigation.js +9 -2
- package/dist/shell/components/app-launcher/category-navigation.js.map +1 -1
- package/dist/shell/components/app-launcher/left-sidebar.d.ts +1 -1
- package/dist/shell/components/app-launcher/left-sidebar.d.ts.map +1 -1
- package/dist/shell/components/app-launcher/left-sidebar.js +3 -4
- package/dist/shell/components/app-launcher/left-sidebar.js.map +1 -1
- package/dist/shell/components/app-launcher/service-item.d.ts.map +1 -1
- package/dist/shell/components/app-launcher/service-item.js +2 -2
- package/dist/shell/components/app-launcher/service-item.js.map +1 -1
- package/dist/shell/components/index.d.ts +1 -0
- package/dist/shell/components/index.d.ts.map +1 -1
- package/dist/shell/components/index.js +2 -0
- package/dist/shell/components/index.js.map +1 -1
- package/dist/shell/components/layouts/app-sidebar.d.ts +4 -1
- package/dist/shell/components/layouts/app-sidebar.d.ts.map +1 -1
- package/dist/shell/components/layouts/app-sidebar.js +39 -6
- package/dist/shell/components/layouts/app-sidebar.js.map +1 -1
- package/dist/shell/components/layouts/content-header.d.ts.map +1 -1
- package/dist/shell/components/layouts/content-header.js +5 -24
- package/dist/shell/components/layouts/content-header.js.map +1 -1
- package/dist/shell/components/layouts/index.d.ts +1 -3
- package/dist/shell/components/layouts/index.d.ts.map +1 -1
- package/dist/shell/components/layouts/index.js +1 -3
- package/dist/shell/components/layouts/index.js.map +1 -1
- package/dist/shell/components/layouts/sidebar-nested-item.d.ts.map +1 -1
- package/dist/shell/components/layouts/sidebar-nested-item.js +12 -5
- package/dist/shell/components/layouts/sidebar-nested-item.js.map +1 -1
- package/dist/shell/components/notifications/notification-container.d.ts +16 -2
- package/dist/shell/components/notifications/notification-container.d.ts.map +1 -1
- package/dist/shell/components/notifications/notification-container.js +75 -4
- package/dist/shell/components/notifications/notification-container.js.map +1 -1
- package/dist/shell/components/notifications/notification-item.d.ts +1 -1
- package/dist/shell/components/notifications/notification-item.d.ts.map +1 -1
- package/dist/shell/components/notifications/notification-item.js +26 -7
- package/dist/shell/components/notifications/notification-item.js.map +1 -1
- package/dist/shell/components/notifications/notification-panel-header.d.ts.map +1 -1
- package/dist/shell/components/notifications/notification-panel-header.js +4 -1
- package/dist/shell/components/notifications/notification-panel-header.js.map +1 -1
- package/dist/shell/components/notifications/notifications.d.ts +1 -1
- package/dist/shell/components/notifications/notifications.d.ts.map +1 -1
- package/dist/shell/components/notifications/notifications.js +2 -2
- package/dist/shell/components/notifications/notifications.js.map +1 -1
- package/dist/shell/components/toolbars/index.d.ts +1 -4
- package/dist/shell/components/toolbars/index.d.ts.map +1 -1
- package/dist/shell/components/toolbars/index.js +2 -5
- package/dist/shell/components/toolbars/index.js.map +1 -1
- package/dist/shell/components/toolbars/top-right-toolbar.d.ts +1 -1
- package/dist/shell/components/toolbars/top-right-toolbar.d.ts.map +1 -1
- package/dist/shell/components/toolbars/top-right-toolbar.js +2 -2
- package/dist/shell/components/toolbars/top-right-toolbar.js.map +1 -1
- package/dist/shell/components/toolbars/top-toolbar-feedback.js +1 -1
- package/dist/shell/components/toolbars/top-toolbar-feedback.js.map +1 -1
- package/dist/shell/shell.constants.d.ts +1 -1
- package/dist/shell/shell.constants.js +1 -1
- package/dist/shell/shell.interfaces.d.ts +8 -4
- package/dist/shell/shell.interfaces.d.ts.map +1 -1
- package/dist/shell/shell.utilities.d.ts +7 -0
- package/dist/shell/shell.utilities.d.ts.map +1 -1
- package/dist/shell/shell.utilities.js +17 -0
- package/dist/shell/shell.utilities.js.map +1 -1
- package/package.json +130 -12
- package/dist/chat/components/chat-assistant-legacy.d.ts +0 -9
- package/dist/chat/components/chat-assistant-legacy.d.ts.map +0 -1
- package/dist/chat/components/chat-assistant-legacy.js +0 -73
- package/dist/chat/components/chat-assistant-legacy.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.schemas.js","sourceRoot":"","sources":["../../lib/notifications/notifications.schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,2BAA2B,EAC3B,kBAAkB,EAClB,uBAAuB,EACvB,gBAAgB,EAChB,cAAc,EACd,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;AAE/E,oCAAoC;AACpC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,kBAAkB,CAAC,OAAO;IAC1B,kBAAkB,CAAC,KAAK;IACxB,kBAAkB,CAAC,gBAAgB;IACnC,kBAAkB,CAAC,uBAAuB;IAC1C,kBAAkB,CAAC,iBAAiB;IACpC,kBAAkB,CAAC,gBAAgB;CACpC,CAAC,CAAC;AAEH,2CAA2C;AAC3C,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAA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CAAC,CAAC,MAAM,EAAE;IACrB,8DAA8D;IAC9D,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,uEAAuE;IACvE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,oEAAoE;IACpE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,mDAAmD;IACnD,UAAU,EAAE,4BAA4B;IACxC,+FAA+F;IAC/F,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CACpC,CAAC;KACD,QAAQ,CAAC,wCAAwC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/notifications/services/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,uBAAuB,EACvB,yBAAyB,GAC1B,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/notifications/services/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,uBAAuB,EACvB,yBAAyB,GAC1B,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notifications Service Factory
|
|
3
|
+
*
|
|
4
|
+
* Factory for creating NotificationsService instances.
|
|
5
|
+
*/
|
|
6
|
+
import type { NotificationsServiceDependencies } from "../notifications.interfaces";
|
|
7
|
+
import { NotificationsService } from "./notifications.service";
|
|
8
|
+
/**
|
|
9
|
+
* Get or create a NotificationsService instance
|
|
10
|
+
*
|
|
11
|
+
* @param deps - Optional dependencies for testing/customization
|
|
12
|
+
* @returns NotificationsService instance
|
|
13
|
+
*/
|
|
14
|
+
export declare function getNotificationsService(deps?: NotificationsServiceDependencies): NotificationsService;
|
|
15
|
+
/**
|
|
16
|
+
* Reset the singleton instance (for testing)
|
|
17
|
+
*/
|
|
18
|
+
export declare function resetNotificationsService(): void;
|
|
19
|
+
//# sourceMappingURL=notifications.factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.factory.d.ts","sourceRoot":"","sources":["../../../lib/notifications/services/notifications.factory.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;AACrG,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAsB1F;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,CAAC,EAAE,gCAAgC,GACtC,oBAAoB,CA4BtB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,IAAI,IAAI,CAEhD"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notifications Service Factory
|
|
3
|
+
*
|
|
4
|
+
* Factory for creating NotificationsService instances.
|
|
5
|
+
*/
|
|
6
|
+
import { NotificationsService } from "./notifications.service";
|
|
7
|
+
import { DynamoDbInstances } from "../../shared/services/dynamodb";
|
|
8
|
+
import { LoggerFactory } from "../../shared/services/logger";
|
|
9
|
+
import { TABLES } from "../../shared/shared.constants";
|
|
10
|
+
// ============================================================================
|
|
11
|
+
// Service Dependencies (for testing)
|
|
12
|
+
// ============================================================================
|
|
13
|
+
/**
|
|
14
|
+
* Dependencies that can be injected for testing
|
|
15
|
+
*/
|
|
16
|
+
// ============================================================================
|
|
17
|
+
// Singleton Factory
|
|
18
|
+
// ============================================================================
|
|
19
|
+
/**
|
|
20
|
+
* Singleton instance of NotificationsService
|
|
21
|
+
*/
|
|
22
|
+
let notificationsServiceInstance = null;
|
|
23
|
+
/**
|
|
24
|
+
* Get or create a NotificationsService instance
|
|
25
|
+
*
|
|
26
|
+
* @param deps - Optional dependencies for testing/customization
|
|
27
|
+
* @returns NotificationsService instance
|
|
28
|
+
*/
|
|
29
|
+
export function getNotificationsService(deps) {
|
|
30
|
+
var _a, _b, _c, _d;
|
|
31
|
+
if (!notificationsServiceInstance) {
|
|
32
|
+
const tableName = (_b = (_a = deps === null || deps === void 0 ? void 0 : deps.config) === null || _a === void 0 ? void 0 : _a.tableName) !== null && _b !== void 0 ? _b : TABLES.notifications;
|
|
33
|
+
const dynamoDb = (_c = deps === null || deps === void 0 ? void 0 : deps.dynamoDb) !== null && _c !== void 0 ? _c : DynamoDbInstances.getInstance(tableName);
|
|
34
|
+
// Create default logger for the service
|
|
35
|
+
const logger = (_d = deps === null || deps === void 0 ? void 0 : deps.logger) !== null && _d !== void 0 ? _d : LoggerFactory.createLogger({
|
|
36
|
+
serviceName: "NotificationsService",
|
|
37
|
+
userContext: {
|
|
38
|
+
userId: "system",
|
|
39
|
+
email: "system@captify.local",
|
|
40
|
+
name: "System",
|
|
41
|
+
roles: ["service"],
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
notificationsServiceInstance = new NotificationsService({
|
|
45
|
+
dynamoDb,
|
|
46
|
+
logger,
|
|
47
|
+
config: deps === null || deps === void 0 ? void 0 : deps.config,
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
return notificationsServiceInstance;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Reset the singleton instance (for testing)
|
|
54
|
+
*/
|
|
55
|
+
export function resetNotificationsService() {
|
|
56
|
+
notificationsServiceInstance = null;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=notifications.factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.factory.js","sourceRoot":"","sources":["../../../lib/notifications/services/notifications.factory.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAC1F,OAAO,EAAE,iBAAiB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 -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notifications Service
|
|
3
|
+
*
|
|
4
|
+
* Core service for managing in-app notifications.
|
|
5
|
+
* Handles CRUD operations for notifications stored in DynamoDB.
|
|
6
|
+
*/
|
|
7
|
+
import type { CreateNotificationParams, DismissNotificationParams, GetUnreadCountParams, ListNotificationsParams, MarkAllAsReadParams, MarkAsReadParams, Notification, NotificationsOperationOptions, NotificationsServiceDependencies, PaginatedNotifications } from "../notifications.interfaces";
|
|
8
|
+
import { BaseAwsService } from "../../shared/services/base-aws-service";
|
|
9
|
+
export declare class NotificationsService extends BaseAwsService {
|
|
10
|
+
private readonly db;
|
|
11
|
+
private readonly defaultPageSize;
|
|
12
|
+
constructor(deps?: NotificationsServiceDependencies);
|
|
13
|
+
/**
|
|
14
|
+
* Create a single notification
|
|
15
|
+
*
|
|
16
|
+
* Includes deduplication check - if a notification already exists for the same
|
|
17
|
+
* (userId, sourceId, sourceType, type) combination, returns the existing one.
|
|
18
|
+
*/
|
|
19
|
+
createNotification(params: CreateNotificationParams, options?: NotificationsOperationOptions): Promise<Notification>;
|
|
20
|
+
/**
|
|
21
|
+
* Create multiple notifications in bulk using DynamoDB BatchWrite
|
|
22
|
+
* More efficient than creating notifications one by one.
|
|
23
|
+
*
|
|
24
|
+
* Includes deduplication - skips notifications that already exist for the same
|
|
25
|
+
* (userId, sourceId, sourceType, type) combination.
|
|
26
|
+
*/
|
|
27
|
+
createBulkNotifications(params: CreateNotificationParams[], options?: NotificationsOperationOptions): Promise<Notification[]>;
|
|
28
|
+
/**
|
|
29
|
+
* Build a notification document from validated params
|
|
30
|
+
*
|
|
31
|
+
* ID format: {createdAt}-{uuid} (e.g., "1704067200000-550e8400-e29b-41d4-a716-446655440000")
|
|
32
|
+
* This format allows direct SK reconstruction for efficient point lookups.
|
|
33
|
+
*/
|
|
34
|
+
private buildNotificationDocument;
|
|
35
|
+
/**
|
|
36
|
+
* Parse notification ID to extract createdAt timestamp
|
|
37
|
+
*
|
|
38
|
+
* New format: {createdAt}-{uuid} -> returns createdAt
|
|
39
|
+
* Old format: {uuid} -> returns null (fallback to query)
|
|
40
|
+
*/
|
|
41
|
+
private parseNotificationId;
|
|
42
|
+
/**
|
|
43
|
+
* List notifications for a user with pagination
|
|
44
|
+
*/
|
|
45
|
+
listNotifications(params: ListNotificationsParams, options?: NotificationsOperationOptions): Promise<PaginatedNotifications>;
|
|
46
|
+
/**
|
|
47
|
+
* Get unread notification count for a user
|
|
48
|
+
*/
|
|
49
|
+
getUnreadCount(params: GetUnreadCountParams, options?: NotificationsOperationOptions): Promise<number>;
|
|
50
|
+
/**
|
|
51
|
+
* Mark a notification as read
|
|
52
|
+
*/
|
|
53
|
+
markAsRead(params: MarkAsReadParams, options?: NotificationsOperationOptions): Promise<Notification>;
|
|
54
|
+
/**
|
|
55
|
+
* Mark all notifications as read for a user
|
|
56
|
+
*/
|
|
57
|
+
markAllAsRead(params: MarkAllAsReadParams, options?: NotificationsOperationOptions): Promise<number>;
|
|
58
|
+
/**
|
|
59
|
+
* Dismiss a notification (soft delete)
|
|
60
|
+
*/
|
|
61
|
+
dismissNotification(params: DismissNotificationParams, options?: NotificationsOperationOptions): Promise<Notification>;
|
|
62
|
+
/**
|
|
63
|
+
* Dismiss all notifications for a user (bulk soft delete)
|
|
64
|
+
*/
|
|
65
|
+
dismissAllNotifications(params: MarkAllAsReadParams, // Reuse same params (just tenantId + userId)
|
|
66
|
+
options?: NotificationsOperationOptions): Promise<number>;
|
|
67
|
+
/**
|
|
68
|
+
* Find an existing notification by source to prevent duplicates.
|
|
69
|
+
*
|
|
70
|
+
* Checks if a notification already exists for the same user, source, and type combination.
|
|
71
|
+
* This prevents duplicate notifications when the same action triggers multiple times.
|
|
72
|
+
*
|
|
73
|
+
* @returns The existing notification if found, null otherwise
|
|
74
|
+
*/
|
|
75
|
+
private findExistingNotification;
|
|
76
|
+
/**
|
|
77
|
+
* Find a notification by ID using the most efficient method available.
|
|
78
|
+
*
|
|
79
|
+
* For new IDs (format: {createdAt}-{uuid}): Uses direct getItem (O(1) lookup)
|
|
80
|
+
* For old IDs (format: {uuid}): Falls back to query + filter (scans user's notifications)
|
|
81
|
+
*/
|
|
82
|
+
private findNotificationById;
|
|
83
|
+
/**
|
|
84
|
+
* Convert DynamoDB item to Notification entity
|
|
85
|
+
*/
|
|
86
|
+
private dynamoItemToNotification;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=notifications.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.service.d.ts","sourceRoot":"","sources":["../../../lib/notifications/services/notifications.service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAYH,OAAO,KAAK,EACV,wBAAwB,EACxB,yBAAyB,EACzB,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EACZ,6BAA6B,EAC7B,gCAAgC,EAChC,sBAAsB,EACvB,MAAM,8CAA8C,CAAC;AAStD,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAKxE,qBAAa,oBAAqB,SAAQ,cAAc;IACtD,OAAO,CAAC,QAAQ,CAAC,EAAE,CAA4C;IAC/D,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAS;gBAE7B,IAAI,GAAE,gCAAqC;IAevD;;;;;OAKG;IACG,kBAAkB,CACtB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,YAAY,CAAC;IA4CxB;;;;;;OAMG;IACG,uBAAuB,CAC3B,MAAM,EAAE,wBAAwB,EAAE,EAClC,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,YAAY,EAAE,CAAC;IAkI1B;;;;;OAKG;IACH,OAAO,CAAC,yBAAyB;IAqCjC;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB;IAiB3B;;OAEG;IACG,iBAAiB,CACrB,MAAM,EAAE,uBAAuB,EAC/B,O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