@abyss-project/main 1.0.25 → 1.0.26

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.
@@ -1,3 +1,7 @@
1
1
  export declare enum AbyssApplicationEvent {
2
- SYSTEM_STARTUP_API_STARTUP = "system-startup.api.startup"
2
+ SYSTEM_STARTUP_API_STARTUP = "system-startup.api.startup",
3
+ AUTHENTICATION_USER_REGISTER = "authentication.user.register",
4
+ AUTHENTICATION_USER_LOGIN = "authentication.user.login",
5
+ AUTHENTICATION_USER_LOGIN_REFRESH = "authentication.user.login-refresh",
6
+ MAILING_EMAIL_SEND = "mailing.email.send"
3
7
  }
@@ -4,4 +4,8 @@ exports.AbyssApplicationEvent = void 0;
4
4
  var AbyssApplicationEvent;
5
5
  (function (AbyssApplicationEvent) {
6
6
  AbyssApplicationEvent["SYSTEM_STARTUP_API_STARTUP"] = "system-startup.api.startup";
7
+ AbyssApplicationEvent["AUTHENTICATION_USER_REGISTER"] = "authentication.user.register";
8
+ AbyssApplicationEvent["AUTHENTICATION_USER_LOGIN"] = "authentication.user.login";
9
+ AbyssApplicationEvent["AUTHENTICATION_USER_LOGIN_REFRESH"] = "authentication.user.login-refresh";
10
+ AbyssApplicationEvent["MAILING_EMAIL_SEND"] = "mailing.email.send";
7
11
  })(AbyssApplicationEvent || (exports.AbyssApplicationEvent = AbyssApplicationEvent = {}));
@@ -14,7 +14,7 @@ export declare enum ProjectSubscriptionPrice {
14
14
  ADVANCED = 430,
15
15
  PREMIUM = 880
16
16
  }
17
- type UserConfigPerService = {
17
+ export type UserConfigPerService = {
18
18
  [AbyssService.ABYSS]: {
19
19
  maxNumberOfProject: number;
20
20
  };
@@ -0,0 +1,2 @@
1
+ import { AbyssService } from '../types';
2
+ export declare const getServiceName: (service: AbyssService) => "Abyss" | "Cloud" | "Crypt" | "Storage" | "Monitor" | "Memories" | "Banking" | "Odyssey" | "Spotlight" | "Form" | undefined;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getServiceName = void 0;
4
+ const types_1 = require("../types");
5
+ const getServiceName = (service) => {
6
+ switch (service) {
7
+ case types_1.AbyssService.ABYSS:
8
+ return 'Abyss';
9
+ case types_1.AbyssService.ABYSS_CLOUD:
10
+ return 'Cloud';
11
+ case types_1.AbyssService.ABYSS_CRYPT:
12
+ return 'Crypt';
13
+ case types_1.AbyssService.ABYSS_STORAGE:
14
+ return 'Storage';
15
+ case types_1.AbyssService.ABYSS_MONITOR:
16
+ return 'Monitor';
17
+ case types_1.AbyssService.ABYSS_MEMORIES:
18
+ return 'Memories';
19
+ case types_1.AbyssService.ABYSS_BANKING:
20
+ return 'Banking';
21
+ case types_1.AbyssService.ABYSS_GAME_ODYSSEY:
22
+ return 'Odyssey';
23
+ case types_1.AbyssService.ABYSS_SPOTLIGHT:
24
+ return 'Spotlight';
25
+ case types_1.AbyssService.ABYSS_FORM:
26
+ return 'Form';
27
+ default:
28
+ break;
29
+ }
30
+ };
31
+ exports.getServiceName = getServiceName;
@@ -7,3 +7,4 @@ export * from './notification.utils';
7
7
  export * from './sleep.utils';
8
8
  export * from './subscription.utils';
9
9
  export * from './array.utils';
10
+ export * from './abyss.utils';
@@ -23,3 +23,4 @@ __exportStar(require("./notification.utils"), exports);
23
23
  __exportStar(require("./sleep.utils"), exports);
24
24
  __exportStar(require("./subscription.utils"), exports);
25
25
  __exportStar(require("./array.utils"), exports);
26
+ __exportStar(require("./abyss.utils"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/main",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Core package to interact with Abyss-Project",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",