infinity-forge 0.30.9 → 0.31.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/README.md +20 -42
- package/dist/sites/components/brands-carousel/styles.d.ts +1 -0
- package/dist/sites/components/counter/versions/version-01/box/styles.d.ts +1 -0
- package/dist/sites/components/counter/versions/version-01/styles.d.ts +1 -0
- package/dist/sites/components/header-link/versions/version-01/styles.d.ts +1 -0
- package/dist/sites/components/mvv/versions/version-01/styles.d.ts +1 -0
- package/dist/sites/context/configs/interfaces.d.ts +1 -0
- package/dist/sites/context/configs/scripts/acept-cookies/styles.d.ts +1 -0
- package/dist/sites/context/configs/scripts/acept-ratedr/styles.d.ts +1 -0
- package/dist/sites/context/configs/scripts/whatsapp-fixed/styles.d.ts +1 -0
- package/dist/system/container/index.d.ts +4 -3
- package/dist/system/container/index.js +1 -0
- package/dist/system/container/index.js.map +1 -1
- package/dist/system/container/main.d.ts +1 -1
- package/dist/system/container/main.js +3 -2
- package/dist/system/container/main.js.map +1 -1
- package/dist/system/container/notifications/container.d.ts +3 -0
- package/dist/system/container/notifications/container.js +12 -0
- package/dist/system/container/notifications/container.js.map +1 -0
- package/dist/system/container/notifications/index.d.ts +2 -0
- package/dist/system/container/notifications/index.js +19 -0
- package/dist/system/container/notifications/index.js.map +1 -0
- package/dist/system/container/notifications/types.d.ts +3 -0
- package/dist/system/container/notifications/types.js +7 -0
- package/dist/system/container/notifications/types.js.map +1 -0
- package/dist/system/container/types.d.ts +1 -0
- package/dist/system/container/types.js +2 -1
- package/dist/system/container/types.js.map +1 -1
- package/dist/system/data/use-cases/index.d.ts +2 -1
- package/dist/system/data/use-cases/index.js +1 -0
- package/dist/system/data/use-cases/index.js.map +1 -1
- package/dist/system/data/use-cases/notifications/index.d.ts +1 -0
- package/dist/system/data/use-cases/notifications/index.js +18 -0
- package/dist/system/data/use-cases/notifications/index.js.map +1 -0
- package/dist/system/data/use-cases/notifications/remote-notifications.d.ts +11 -0
- package/dist/system/data/use-cases/notifications/remote-notifications.js +158 -0
- package/dist/system/data/use-cases/notifications/remote-notifications.js.map +1 -0
- package/dist/system/domain/index.d.ts +1 -1
- package/dist/system/domain/use-cases/index.d.ts +2 -1
- package/dist/system/domain/use-cases/index.js +1 -0
- package/dist/system/domain/use-cases/index.js.map +1 -1
- package/dist/system/domain/use-cases/notifications/create.d.ts +11 -0
- package/dist/system/{presentation/components/layout/header/components/menu-right/notifications/interfaces.js → domain/use-cases/notifications/create.js} +1 -1
- package/dist/system/domain/use-cases/notifications/create.js.map +1 -0
- package/dist/system/domain/use-cases/notifications/index.d.ts +4 -0
- package/dist/system/domain/use-cases/notifications/index.js +21 -0
- package/dist/system/domain/use-cases/notifications/index.js.map +1 -0
- package/dist/system/domain/use-cases/notifications/load-all.d.ts +18 -0
- package/dist/system/domain/use-cases/notifications/load-all.js +3 -0
- package/dist/system/domain/use-cases/notifications/load-all.js.map +1 -0
- package/dist/system/domain/use-cases/notifications/load-no-read.d.ts +8 -0
- package/dist/system/domain/use-cases/notifications/load-no-read.js +3 -0
- package/dist/system/domain/use-cases/notifications/load-no-read.js.map +1 -0
- package/dist/system/domain/use-cases/notifications/read.d.ts +9 -0
- package/dist/system/domain/use-cases/notifications/read.js +3 -0
- package/dist/system/domain/use-cases/notifications/read.js.map +1 -0
- package/dist/system/presentation/components/data/chat/card-message/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/chat/loader/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/chat/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/highlight-text/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/input-search/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/logo/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/overlay/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/page-wrapper/styles.d.ts +1 -0
- package/dist/system/presentation/components/data/sign-up/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/component.d.ts +1 -3
- package/dist/system/presentation/components/layout/component.js +2 -2
- package/dist/system/presentation/components/layout/component.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/index.d.ts +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js +2 -2
- package/dist/system/presentation/components/layout/header/components/menu-right/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/index.d.ts +2 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/index.js +35 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/index.js.map +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/styles.d.ts +5 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/styles.js +14 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/styles.js.map +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.d.ts +1 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js +77 -8
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/styles.d.ts +7 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/styles.js +4 -3
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/styles.js.map +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/settings/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/search-modal/search-list/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/search-modal/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/search-modal/trigger/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/index.d.ts +1 -2
- package/dist/system/presentation/components/layout/header/index.js +3 -3
- package/dist/system/presentation/components/layout/header/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/version-01/index.d.ts +1 -2
- package/dist/system/presentation/components/layout/header/version-01/index.js +2 -2
- package/dist/system/presentation/components/layout/header/version-01/index.js.map +1 -1
- package/dist/system/presentation/components/layout/header/version-01/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/menu/components/menu/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/menu/version-01/styles.d.ts +1 -0
- package/dist/system/presentation/components/layout/styles.d.ts +1 -0
- package/dist/system/presentation/components/pages/menus/table/icon/style.d.ts +1 -0
- package/dist/system/presentation/context/auth/context.js +1 -1
- package/dist/system/presentation/context/auth/context.js.map +1 -1
- package/dist/system/presentation/context/auth/login/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/index.d.ts +1 -0
- package/dist/system/presentation/hooks/index.js +1 -0
- package/dist/system/presentation/hooks/index.js.map +1 -1
- package/dist/system/presentation/hooks/menu/use-load-menu.d.ts +1 -1
- package/dist/system/presentation/hooks/notifications/index.d.ts +2 -0
- package/dist/system/presentation/hooks/notifications/index.js +19 -0
- package/dist/system/presentation/hooks/notifications/index.js.map +1 -0
- package/dist/system/presentation/hooks/notifications/use-load-all/index.d.ts +4 -0
- package/dist/system/presentation/hooks/notifications/use-load-all/index.js +67 -0
- package/dist/system/presentation/hooks/notifications/use-load-all/index.js.map +1 -0
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.d.ts +2 -0
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.js +62 -0
- package/dist/system/presentation/hooks/notifications/use-load-no-read/index.js.map +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/styles.d.ts +1 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/styles.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/styles.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/styles.d.ts +1 -0
- package/dist/ui/components/accordion/styles.d.ts +1 -0
- package/dist/ui/components/breadcrumb/styles.d.ts +1 -0
- package/dist/ui/components/button/styles.d.ts +1 -0
- package/dist/ui/components/form/checkbox/styles.d.ts +1 -0
- package/dist/ui/components/form/handler/dynamic_form_handler/component.js +1 -1
- package/dist/ui/components/form/handler/dynamic_form_handler/styles.d.ts +1 -0
- package/dist/ui/components/form/handler/styles.d.ts +1 -0
- package/dist/ui/components/form/input-control/error/styles.d.ts +1 -0
- package/dist/ui/components/form/input-control/label/styles.d.ts +1 -0
- package/dist/ui/components/form/input-control/loader-input/styles.d.ts +1 -0
- package/dist/ui/components/form/input-control/styles.d.ts +1 -0
- package/dist/ui/components/form/input-date/styles.d.ts +1 -0
- package/dist/ui/components/form/input-file/file-card/styles.d.ts +1 -0
- package/dist/ui/components/form/input-file/styles.d.ts +1 -0
- package/dist/ui/components/form/input-password/styles.d.ts +1 -0
- package/dist/ui/components/form/radio/styles.d.ts +1 -0
- package/dist/ui/components/form/select/styles.d.ts +1 -0
- package/dist/ui/components/loading-screen/styles.d.ts +1 -0
- package/dist/ui/components/menu-mobile/components/nav-links/styles.d.ts +1 -0
- package/dist/ui/components/menu-mobile/styles.d.ts +1 -0
- package/dist/ui/components/menu-mobile/top/styles.d.ts +1 -0
- package/dist/ui/components/next-image/styles.d.ts +1 -0
- package/dist/ui/components/sidebar/styles.d.ts +1 -0
- package/dist/ui/contexts/toast/styles.d.ts +1 -0
- package/dist/ui/contexts/toast/toast-item/styles.d.ts +1 -0
- package/dist/ui/utils/file/load-file.js +1 -1
- package/dist/ui/utils/file/upload-file.js +5 -5
- package/dist/ui/utils/file/upload-file.js.map +1 -1
- package/package.json +5 -6
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/interfaces.d.ts +0 -4
- package/dist/system/presentation/components/layout/header/components/menu-right/notifications/interfaces.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,43 +1,21 @@
|
|
|
1
|
-
<!-- {
|
|
2
|
-
"include": ["src/**/*"],
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"lib": ["es2021", "dom"],
|
|
5
|
-
"types": ["reflect-metadata", "node"],
|
|
6
|
-
"experimentalDecorators": true,
|
|
7
|
-
"emitDecoratorMetadata": true,
|
|
8
|
-
"jsx": "react-jsx",
|
|
9
|
-
"baseUrl": "./src",
|
|
10
|
-
"outDir": "./dist",
|
|
11
|
-
"declaration": true,
|
|
12
|
-
"sourceMap": true,
|
|
13
|
-
"paths": {
|
|
14
|
-
"@/*": ["./*"]
|
|
15
|
-
},
|
|
16
|
-
"esModuleInterop": true,
|
|
17
|
-
"moduleResolution": "node",
|
|
18
|
-
"skipLibCheck": true
|
|
19
|
-
},
|
|
20
|
-
"afterDeclarations": true
|
|
21
|
-
} -->
|
|
22
|
-
|
|
23
1
|
{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
2
|
+
"include": ["src/**/*"],
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"lib": ["es2021", "dom"],
|
|
5
|
+
"types": ["reflect-metadata", "node"],
|
|
6
|
+
"experimentalDecorators": true,
|
|
7
|
+
"emitDecoratorMetadata": true,
|
|
8
|
+
"jsx": "react-jsx",
|
|
9
|
+
"baseUrl": "./src",
|
|
10
|
+
"outDir": "./dist",
|
|
11
|
+
"declaration": true,
|
|
12
|
+
"sourceMap": true,
|
|
13
|
+
"paths": {
|
|
14
|
+
"@/_": ["./_"]
|
|
15
|
+
},
|
|
16
|
+
"esModuleInterop": true,
|
|
17
|
+
"moduleResolution": "node",
|
|
18
|
+
"skipLibCheck": true
|
|
19
|
+
},
|
|
20
|
+
"afterDeclarations": true
|
|
21
|
+
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const BrandsCarousel: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Box: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Counter: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const HeaderLink: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const MVV: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const AceptCookies: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const AceptCookies: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react/experimental" />
|
|
2
3
|
export declare const Whattsapp: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './main.js';
|
|
2
|
+
export * from './infra/index.js';
|
|
3
|
+
export * from './files/index.js';
|
|
4
|
+
export * from './notifications/index.js';
|
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./main.js"), exports);
|
|
18
18
|
__exportStar(require("./infra/index.js"), exports);
|
|
19
19
|
__exportStar(require("./files/index.js"), exports);
|
|
20
|
+
__exportStar(require("./notifications/index.js"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/container/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/container/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,0CAAuB;AACvB,0CAAuB;AACvB,kDAA+B"}
|
|
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Types = exports.container = void 0;
|
|
4
4
|
require("reflect-metadata");
|
|
5
5
|
var inversify_1 = require("inversify");
|
|
6
|
-
var infra_1 = require("./infra/index.js");
|
|
7
6
|
var files_1 = require("./files/index.js");
|
|
7
|
+
var infra_1 = require("./infra/index.js");
|
|
8
|
+
var notifications_1 = require("./notifications/index.js");
|
|
8
9
|
var admin_1 = require("./admin/index.js");
|
|
9
10
|
var types_1 = require("./types.js");
|
|
10
11
|
Object.defineProperty(exports, "Types", { enumerable: true, get: function () { return types_1.Types; } });
|
|
11
|
-
var container = inversify_1.Container.merge(infra_1.infraContainer, admin_1.authContainer, admin_1.userContainer, admin_1.menuContainer, files_1.fileContainer);
|
|
12
|
+
var container = inversify_1.Container.merge(infra_1.infraContainer, admin_1.authContainer, admin_1.userContainer, admin_1.menuContainer, files_1.fileContainer, notifications_1.notificationsContainer);
|
|
12
13
|
exports.container = container;
|
|
13
14
|
//# sourceMappingURL=main.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/system/container/main.ts"],"names":[],"mappings":";;;AAAA,4BAAyB;AACzB,uCAAqC;AAErC,iCAAwC;AACxC,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/system/container/main.ts"],"names":[],"mappings":";;;AAAA,4BAAyB;AACzB,uCAAqC;AAErC,iCAAuC;AACvC,iCAAwC;AACxC,iDAAwD;AACxD,iCAAqE;AAErE,iCAA+B;AAWX,sFAXX,aAAK,OAWW;AATzB,IAAM,SAAS,GAAG,qBAAS,CAAC,KAAK,CAC/B,sBAAc,EACd,qBAAa,EACb,qBAAa,EACb,qBAAa,EACb,qBAAa,EACb,sCAAsB,CACvB,CAAA;AAEQ,8BAAS"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.notificationsContainer = void 0;
|
|
4
|
+
var inversify_1 = require("inversify");
|
|
5
|
+
var infra_1 = require("../infra/index.js");
|
|
6
|
+
var types_1 = require("./types.js");
|
|
7
|
+
var data_1 = require("../../../system/data/index.js");
|
|
8
|
+
var notificationsContainer = new inversify_1.Container({ defaultScope: 'Singleton', autoBindInjectable: true });
|
|
9
|
+
exports.notificationsContainer = notificationsContainer;
|
|
10
|
+
notificationsContainer.parent = infra_1.infraContainer;
|
|
11
|
+
notificationsContainer.bind(types_1.notifications.RemoteNotifications).to(data_1.RemoteNotifications);
|
|
12
|
+
//# sourceMappingURL=container.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../../../src/system/container/notifications/container.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AACrC,kCAAyC;AAEzC,iCAAuC;AACvC,sCAAmD;AAEnD,IAAM,sBAAsB,GAAG,IAAI,qBAAS,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,CAAA;AAK5F,wDAAsB;AAH/B,sBAAsB,CAAC,MAAM,GAAG,sBAAc,CAAA;AAC9C,sBAAsB,CAAC,IAAI,CAAC,qBAAa,CAAC,mBAAmB,CAAC,CAAC,EAAE,CAAC,0BAAmB,CAAC,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types.js"), exports);
|
|
18
|
+
__exportStar(require("./container.js"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/container/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,8CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/system/container/notifications/types.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IAC3B,mBAAmB,EAAE,MAAM,CAAC,GAAG,CAAC,qBAAqB,CAAC;CACvD,CAAA"}
|
|
@@ -14,5 +14,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
exports.Types = void 0;
|
|
15
15
|
var files_1 = require("./files/index.js");
|
|
16
16
|
var admin_1 = require("./admin/index.js");
|
|
17
|
-
|
|
17
|
+
var notifications_1 = require("./notifications/index.js");
|
|
18
|
+
exports.Types = __assign(__assign(__assign(__assign(__assign({}, admin_1.menuTypes), admin_1.authTypes), admin_1.userTypes), files_1.fileTypes), notifications_1.notifications);
|
|
18
19
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/system/container/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/system/container/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,iCAAmC;AACnC,iCAAyD;AACzD,iDAA+C;AAElC,QAAA,KAAK,oDACb,iBAAS,GACT,iBAAS,GACT,iBAAS,GACT,iBAAS,GACT,6BAAa,EACjB"}
|
|
@@ -18,4 +18,5 @@ __exportStar(require("./auth/index.js"), exports);
|
|
|
18
18
|
__exportStar(require("./menu/index.js"), exports);
|
|
19
19
|
__exportStar(require("./users/index.js"), exports);
|
|
20
20
|
__exportStar(require("./files/index.js"), exports);
|
|
21
|
+
__exportStar(require("./notifications/index.js"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/data/use-cases/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,yCAAsB;AACtB,0CAAuB;AACvB,0CAAuB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/data/use-cases/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,yCAAsB;AACtB,0CAAuB;AACvB,0CAAuB;AACvB,kDAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './remote-notifications.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./remote-notifications.js"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/data/use-cases/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as domain from '../../../../system/domain/index.js';
|
|
2
|
+
import * as infinityforge from '../../../../system/index.js';
|
|
3
|
+
export declare class RemoteNotifications implements domain.LoadNoReadNotifications, domain.CreateNotification, domain.LoadAllNotifications, domain.ReadNotifications {
|
|
4
|
+
private readonly makeApiURL;
|
|
5
|
+
private readonly httpClient;
|
|
6
|
+
constructor(makeApiURL: infinityforge.makeApiURL, httpClient: infinityforge.HttpClient);
|
|
7
|
+
loadAll(params: domain.LoadAllNotifications.Params): Promise<any>;
|
|
8
|
+
create(params: domain.CreateNotification.Params): Promise<domain.CreateNotification.Model>;
|
|
9
|
+
loadNoRead(): Promise<domain.LoadNoReadNotifications.Model>;
|
|
10
|
+
readAll(params: domain.ReadNotifications.Params): Promise<domain.ReadNotifications.Model>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
+
if (mod && mod.__esModule) return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
+
__setModuleDefault(result, mod);
|
|
29
|
+
return result;
|
|
30
|
+
};
|
|
31
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
32
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
33
|
+
};
|
|
34
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
35
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
36
|
+
};
|
|
37
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
38
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
39
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
40
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
41
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
42
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
43
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
47
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
48
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
49
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
50
|
+
function step(op) {
|
|
51
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
52
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
53
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
54
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
55
|
+
switch (op[0]) {
|
|
56
|
+
case 0: case 1: t = op; break;
|
|
57
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
58
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
59
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
60
|
+
default:
|
|
61
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
62
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
63
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
64
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
65
|
+
if (t[2]) _.ops.pop();
|
|
66
|
+
_.trys.pop(); continue;
|
|
67
|
+
}
|
|
68
|
+
op = body.call(thisArg, _);
|
|
69
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
70
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
74
|
+
exports.RemoteNotifications = void 0;
|
|
75
|
+
var inversify_1 = require("inversify");
|
|
76
|
+
var infinityforge = __importStar(require("../../../../system/index.js"));
|
|
77
|
+
var RemoteNotifications = /** @class */ (function () {
|
|
78
|
+
function RemoteNotifications(makeApiURL, httpClient) {
|
|
79
|
+
this.makeApiURL = makeApiURL;
|
|
80
|
+
this.httpClient = httpClient;
|
|
81
|
+
}
|
|
82
|
+
RemoteNotifications.prototype.loadAll = function (params) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var response;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
switch (_a.label) {
|
|
87
|
+
case 0: return [4 /*yield*/, this.httpClient.request({
|
|
88
|
+
url: this.makeApiURL.make('Notifications'),
|
|
89
|
+
method: 'get',
|
|
90
|
+
body: params,
|
|
91
|
+
})];
|
|
92
|
+
case 1:
|
|
93
|
+
response = _a.sent();
|
|
94
|
+
return [2 /*return*/, response.data];
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
RemoteNotifications.prototype.create = function (params) {
|
|
100
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
101
|
+
var response;
|
|
102
|
+
return __generator(this, function (_a) {
|
|
103
|
+
switch (_a.label) {
|
|
104
|
+
case 0: return [4 /*yield*/, this.httpClient.request({
|
|
105
|
+
url: this.makeApiURL.make('Notifications'),
|
|
106
|
+
method: 'post',
|
|
107
|
+
body: params,
|
|
108
|
+
})];
|
|
109
|
+
case 1:
|
|
110
|
+
response = _a.sent();
|
|
111
|
+
return [2 /*return*/, response.data];
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
RemoteNotifications.prototype.loadNoRead = function () {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
118
|
+
var response;
|
|
119
|
+
return __generator(this, function (_a) {
|
|
120
|
+
switch (_a.label) {
|
|
121
|
+
case 0: return [4 /*yield*/, this.httpClient.request({
|
|
122
|
+
url: this.makeApiURL.make('Notifications/GetNotRead'),
|
|
123
|
+
method: 'get',
|
|
124
|
+
})];
|
|
125
|
+
case 1:
|
|
126
|
+
response = _a.sent();
|
|
127
|
+
return [2 /*return*/, response.data];
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
RemoteNotifications.prototype.readAll = function (params) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
134
|
+
var response;
|
|
135
|
+
return __generator(this, function (_a) {
|
|
136
|
+
switch (_a.label) {
|
|
137
|
+
case 0: return [4 /*yield*/, this.httpClient.request({
|
|
138
|
+
url: this.makeApiURL.make('Notifications/MarcarLidas'),
|
|
139
|
+
method: 'post',
|
|
140
|
+
body: params,
|
|
141
|
+
})];
|
|
142
|
+
case 1:
|
|
143
|
+
response = _a.sent();
|
|
144
|
+
return [2 /*return*/, response.data];
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
};
|
|
149
|
+
RemoteNotifications = __decorate([
|
|
150
|
+
(0, inversify_1.injectable)(),
|
|
151
|
+
__param(0, (0, inversify_1.inject)(infinityforge.InfraTypes.makeApiURL)),
|
|
152
|
+
__param(1, (0, inversify_1.inject)(infinityforge.InfraTypes.authorizeAdminHttp)),
|
|
153
|
+
__metadata("design:paramtypes", [infinityforge.makeApiURL, Object])
|
|
154
|
+
], RemoteNotifications);
|
|
155
|
+
return RemoteNotifications;
|
|
156
|
+
}());
|
|
157
|
+
exports.RemoteNotifications = RemoteNotifications;
|
|
158
|
+
//# sourceMappingURL=remote-notifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remote-notifications.js","sourceRoot":"","sources":["../../../../../src/system/data/use-cases/notifications/remote-notifications.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA8C;AAG9C,sDAAyC;AAGzC;IAOE,6BACgE,UAAoC,EAC5B,UAAoC;QAD5C,eAAU,GAAV,UAAU,CAA0B;QAC5B,eAAU,GAAV,UAAU,CAA0B;IACzG,CAAC;IAEE,qCAAO,GAAb,UAAc,MAA0C;;;;;4BACrC,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;4BAC7C,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,eAAe,CAAC;4BAC1C,MAAM,EAAE,KAAK;4BACb,IAAI,EAAE,MAAM;yBACb,CAAC,EAAA;;wBAJI,QAAQ,GAAG,SAIf;wBAEF,sBAAO,QAAQ,CAAC,IAAI,EAAA;;;;KACrB;IAEK,oCAAM,GAAZ,UAAa,MAAwC;;;;;4BAClC,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;4BAC7C,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,eAAe,CAAC;4BAC1C,MAAM,EAAE,MAAM;4BACd,IAAI,EAAE,MAAM;yBACb,CAAC,EAAA;;wBAJI,QAAQ,GAAG,SAIf;wBAEF,sBAAO,QAAQ,CAAC,IAAuC,EAAA;;;;KACxD;IAEK,wCAAU,GAAhB;;;;;4BACmB,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;4BAC7C,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,0BAA0B,CAAC;4BACrD,MAAM,EAAE,KAAK;yBACd,CAAC,EAAA;;wBAHI,QAAQ,GAAG,SAGf;wBAEF,sBAAO,QAAQ,CAAC,IAA4C,EAAA;;;;KAC7D;IAEK,qCAAO,GAAb,UAAc,MAAuC;;;;;4BAClC,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;4BAC7C,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,2BAA2B,CAAC;4BACtD,MAAM,EAAE,MAAM;4BACd,IAAI,EAAE,MAAM;yBACb,CAAC,EAAA;;wBAJI,QAAQ,GAAG,SAIf;wBAEF,sBAAO,QAAQ,CAAC,IAAsC,EAAA;;;;KACvD;IAjDU,mBAAmB;QAD/B,IAAA,sBAAU,GAAE;QASR,WAAA,IAAA,kBAAM,EAAC,aAAa,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;QAC3C,WAAA,IAAA,kBAAM,EAAC,aAAa,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAA;yCADsB,aAAa,CAAC,UAAU;OARzF,mBAAmB,CAkD/B;IAAD,0BAAC;CAAA,AAnDD,IAmDC;AAlDY,kDAAmB"}
|
|
@@ -18,4 +18,5 @@ __exportStar(require("./files/index.js"), exports);
|
|
|
18
18
|
__exportStar(require("./auth/index.js"), exports);
|
|
19
19
|
__exportStar(require("./menu/index.js"), exports);
|
|
20
20
|
__exportStar(require("./users/index.js"), exports);
|
|
21
|
+
__exportStar(require("./notifications/index.js"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/domain/use-cases/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,yCAAsB;AACtB,yCAAsB;AACtB,0CAAuB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/domain/use-cases/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,yCAAsB;AACtB,yCAAsB;AACtB,0CAAuB;AACvB,kDAA+B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type CreateNotification = {
|
|
2
|
+
create: (params: CreateNotification.Params) => Promise<CreateNotification.Model>;
|
|
3
|
+
};
|
|
4
|
+
export declare namespace CreateNotification {
|
|
5
|
+
type Params = {
|
|
6
|
+
title: string;
|
|
7
|
+
message: string;
|
|
8
|
+
empresaId: number;
|
|
9
|
+
};
|
|
10
|
+
type Model = {};
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../src/system/domain/use-cases/notifications/create.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./read.js"), exports);
|
|
18
|
+
__exportStar(require("./create.js"), exports);
|
|
19
|
+
__exportStar(require("./load-all.js"), exports);
|
|
20
|
+
__exportStar(require("./load-no-read.js"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/system/domain/use-cases/notifications/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,2CAAwB;AACxB,6CAA0B;AAC1B,iDAA8B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type LoadAllNotifications = {
|
|
2
|
+
loadAll: (params: LoadAllNotifications.Params) => Promise<LoadAllNotifications.Model>;
|
|
3
|
+
};
|
|
4
|
+
export interface INotification {
|
|
5
|
+
id: number;
|
|
6
|
+
title: string;
|
|
7
|
+
message: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
createdAtText: string;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace LoadAllNotifications {
|
|
12
|
+
type Params = {
|
|
13
|
+
timezone: string;
|
|
14
|
+
};
|
|
15
|
+
type Model = {
|
|
16
|
+
data: INotification[];
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-all.js","sourceRoot":"","sources":["../../../../../src/system/domain/use-cases/notifications/load-all.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-no-read.js","sourceRoot":"","sources":["../../../../../src/system/domain/use-cases/notifications/load-no-read.ts"],"names":[],"mappings":""}
|