@abyss-project/main 1.0.26 → 1.0.28

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/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from './types';
4
4
  export * from './utils';
5
5
  export * from './front';
6
6
  export * from './translate';
7
+ export declare const DISCORD_URL = "https://discord.gg/PVMNgxJb8W";
7
8
  export declare const API_KEY_PROJECT_HEADER = "abyss-main-project-api-key";
8
9
  export declare const ADMIN_TOKEN_HEADER = "abyss-admin-token";
9
10
  type CoreConfig = {
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
30
30
  };
31
31
  var _a;
32
32
  Object.defineProperty(exports, "__esModule", { value: true });
33
- exports.AbyssCore = exports.ADMIN_TOKEN_HEADER = exports.API_KEY_PROJECT_HEADER = void 0;
33
+ exports.AbyssCore = exports.ADMIN_TOKEN_HEADER = exports.API_KEY_PROJECT_HEADER = exports.DISCORD_URL = void 0;
34
34
  const axios_1 = __importDefault(require("axios"));
35
35
  const axios_retry_1 = __importStar(require("axios-retry"));
36
36
  __exportStar(require("./api"), exports);
@@ -39,6 +39,7 @@ __exportStar(require("./utils"), exports);
39
39
  __exportStar(require("./front"), exports);
40
40
  __exportStar(require("./translate"), exports);
41
41
  const DEFAULT_BASE_URL = 'https://app-api.abyss-project.fr/api/';
42
+ exports.DISCORD_URL = 'https://discord.gg/PVMNgxJb8W';
42
43
  exports.API_KEY_PROJECT_HEADER = 'abyss-main-project-api-key';
43
44
  exports.ADMIN_TOKEN_HEADER = 'abyss-admin-token';
44
45
  const NUMBER_RETRY_API = 10;
@@ -24,6 +24,7 @@ export interface IUser {
24
24
  profilePictureThumbnailId: string | null;
25
25
  joinNewsletterDate: Date | null;
26
26
  lastPasswordChangeDate: Date | null;
27
+ lastLoginDate?: Date | null;
27
28
  updatedAt?: Date;
28
29
  createdAt?: Date;
29
30
  sponsor?: IUser | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/main",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "description": "Core package to interact with Abyss-Project",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",