@abyss-project/console 1.1.0 → 1.2.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/.eslintrc.js +33 -33
- package/CHANGELOG.md +9 -9
- package/README.md +32 -32
- package/dist/types/enum/api-error.enum.d.ts +2 -1
- package/dist/types/enum/api-error.enum.js +1 -0
- package/dist/types/enum/api-error.enum.js.map +1 -1
- package/dist/types/enum/file-scan-status.enum.d.ts +2 -0
- package/dist/types/enum/file-scan-status.enum.js +11 -0
- package/dist/types/enum/file-scan-status.enum.js.map +1 -0
- package/dist/types/enum/index.d.ts +1 -0
- package/dist/types/enum/index.js +1 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/interface/models/internal-ticket-attachment.model.d.ts +2 -0
- package/package.json +1 -1
- package/tsconfig.json +35 -35
package/.eslintrc.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
parser: '@typescript-eslint/parser',
|
|
3
|
-
parserOptions: {
|
|
4
|
-
project: 'tsconfig.json',
|
|
5
|
-
tsconfigRootDir: __dirname,
|
|
6
|
-
sourceType: 'module',
|
|
7
|
-
},
|
|
8
|
-
plugins: ['@typescript-eslint/eslint-plugin', 'filenames-simple'],
|
|
9
|
-
extends: [
|
|
10
|
-
'plugin:@typescript-eslint/recommended',
|
|
11
|
-
'plugin:prettier/recommended',
|
|
12
|
-
],
|
|
13
|
-
root: true,
|
|
14
|
-
env: {
|
|
15
|
-
node: true,
|
|
16
|
-
jest: true,
|
|
17
|
-
},
|
|
18
|
-
ignorePatterns: ['.eslintrc.js'],
|
|
19
|
-
rules: {
|
|
20
|
-
'@typescript-eslint/interface-name-prefix': 'off',
|
|
21
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
22
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
23
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
24
|
-
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
25
|
-
'filenames-simple/naming-convention': [
|
|
26
|
-
'error',
|
|
27
|
-
{
|
|
28
|
-
// Use custom regexp to match migration file
|
|
29
|
-
rule: '^([a-z0-9]*)(-[a-z0-9]+)*$',
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
},
|
|
33
|
-
overrides: [],
|
|
1
|
+
module.exports = {
|
|
2
|
+
parser: '@typescript-eslint/parser',
|
|
3
|
+
parserOptions: {
|
|
4
|
+
project: 'tsconfig.json',
|
|
5
|
+
tsconfigRootDir: __dirname,
|
|
6
|
+
sourceType: 'module',
|
|
7
|
+
},
|
|
8
|
+
plugins: ['@typescript-eslint/eslint-plugin', 'filenames-simple'],
|
|
9
|
+
extends: [
|
|
10
|
+
'plugin:@typescript-eslint/recommended',
|
|
11
|
+
'plugin:prettier/recommended',
|
|
12
|
+
],
|
|
13
|
+
root: true,
|
|
14
|
+
env: {
|
|
15
|
+
node: true,
|
|
16
|
+
jest: true,
|
|
17
|
+
},
|
|
18
|
+
ignorePatterns: ['.eslintrc.js'],
|
|
19
|
+
rules: {
|
|
20
|
+
'@typescript-eslint/interface-name-prefix': 'off',
|
|
21
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
22
|
+
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
23
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
24
|
+
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
25
|
+
'filenames-simple/naming-convention': [
|
|
26
|
+
'error',
|
|
27
|
+
{
|
|
28
|
+
// Use custom regexp to match migration file
|
|
29
|
+
rule: '^([a-z0-9]*)(-[a-z0-9]+)*$',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
overrides: [],
|
|
34
34
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## 1.0.80
|
|
4
|
-
|
|
5
|
-
- chore(deps): bump `axios` floor from `^1.6.0` to `^1.13.6` to align with the rest of the Abyss workspace (security advisories CVE-2023-45857 / CVE-2024-39338) and pick up the `AxiosHeaders` API. SDK surface unchanged. The legacy `defaults.headers.common[...]` API still used by `AbyssConsoleCore.setConfig` remains supported across this range; end-to-end auth-header propagation continues to be exercised by the consuming `apps/api` integration suite (no functional change observed).
|
|
6
|
-
|
|
7
|
-
## 1.0.79
|
|
8
|
-
|
|
9
|
-
- Previous baseline.
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.0.80
|
|
4
|
+
|
|
5
|
+
- chore(deps): bump `axios` floor from `^1.6.0` to `^1.13.6` to align with the rest of the Abyss workspace (security advisories CVE-2023-45857 / CVE-2024-39338) and pick up the `AxiosHeaders` API. SDK surface unchanged. The legacy `defaults.headers.common[...]` API still used by `AbyssConsoleCore.setConfig` remains supported across this range; end-to-end auth-header propagation continues to be exercised by the consuming `apps/api` integration suite (no functional change observed).
|
|
6
|
+
|
|
7
|
+
## 1.0.79
|
|
8
|
+
|
|
9
|
+
- Previous baseline.
|
package/README.md
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
<img src="https://docs.abyss-project.fr/img/services/AbyssConsole.svg" align="right" width="96" alt="" />
|
|
2
|
-
|
|
3
|
-
# Abyss Console
|
|
4
|
-
|
|
5
|
-
`@abyss-project/console`
|
|
6
|
-
|
|
7
|
-
Outil interne d'administration et d'observabilité.
|
|
8
|
-
|
|
9
|
-
_Internal administration and observability tool._
|
|
10
|
-
|
|
11
|
-
## Installation
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npm install @abyss-project/console
|
|
15
|
-
# or
|
|
16
|
-
pnpm add @abyss-project/console
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Liens
|
|
20
|
-
|
|
21
|
-
- **Documentation** : [https://docs.abyss-project.fr/console](https://docs.abyss-project.fr/console)
|
|
22
|
-
- **NPM** : [@abyss-project/console](https://www.npmjs.com/package/@abyss-project/console)
|
|
23
|
-
- **Application Abyss** : [app.abyss-project.fr](https://app.abyss-project.fr)
|
|
24
|
-
- **Statut des services** : [status.abyss-project.fr](https://status.abyss-project.fr)
|
|
25
|
-
|
|
26
|
-
## Usage
|
|
27
|
-
|
|
28
|
-
Voir la [documentation produit](https://docs.abyss-project.fr/console) pour les guides d'utilisation, la configuration du Core, les exemples d'appel et la référence des permissions.
|
|
29
|
-
|
|
30
|
-
## Support
|
|
31
|
-
|
|
32
|
-
Pour toute demande, ouvrir un ticket depuis [l'application Abyss](https://app.abyss-project.fr/dashboard/my-account/ticket/create).
|
|
1
|
+
<img src="https://docs.abyss-project.fr/img/services/AbyssConsole.svg" align="right" width="96" alt="" />
|
|
2
|
+
|
|
3
|
+
# Abyss Console
|
|
4
|
+
|
|
5
|
+
`@abyss-project/console`
|
|
6
|
+
|
|
7
|
+
Outil interne d'administration et d'observabilité.
|
|
8
|
+
|
|
9
|
+
_Internal administration and observability tool._
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install @abyss-project/console
|
|
15
|
+
# or
|
|
16
|
+
pnpm add @abyss-project/console
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Liens
|
|
20
|
+
|
|
21
|
+
- **Documentation** : [https://docs.abyss-project.fr/console](https://docs.abyss-project.fr/console)
|
|
22
|
+
- **NPM** : [@abyss-project/console](https://www.npmjs.com/package/@abyss-project/console)
|
|
23
|
+
- **Application Abyss** : [app.abyss-project.fr](https://app.abyss-project.fr)
|
|
24
|
+
- **Statut des services** : [status.abyss-project.fr](https://status.abyss-project.fr)
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
Voir la [documentation produit](https://docs.abyss-project.fr/console) pour les guides d'utilisation, la configuration du Core, les exemples d'appel et la référence des permissions.
|
|
29
|
+
|
|
30
|
+
## Support
|
|
31
|
+
|
|
32
|
+
Pour toute demande, ouvrir un ticket depuis [l'application Abyss](https://app.abyss-project.fr/dashboard/my-account/ticket/create).
|
|
@@ -40,5 +40,6 @@ export declare enum Code {
|
|
|
40
40
|
domainVerificationTokenMismatch = "domain_verification_token_mismatch",
|
|
41
41
|
domainVerificationSsrfProtection = "domain_verification_ssrf_protection",
|
|
42
42
|
domainVerificationHttpError = "domain_verification_http_error",
|
|
43
|
-
domainVerificationUnknownError = "domain_verification_unknown_error"
|
|
43
|
+
domainVerificationUnknownError = "domain_verification_unknown_error",
|
|
44
|
+
fileAnalysing = "file_analysing"
|
|
44
45
|
}
|
|
@@ -46,5 +46,6 @@ var Code;
|
|
|
46
46
|
Code["domainVerificationSsrfProtection"] = "domain_verification_ssrf_protection";
|
|
47
47
|
Code["domainVerificationHttpError"] = "domain_verification_http_error";
|
|
48
48
|
Code["domainVerificationUnknownError"] = "domain_verification_unknown_error";
|
|
49
|
+
Code["fileAnalysing"] = "file_analysing";
|
|
49
50
|
})(Code || (exports.Code = Code = {}));
|
|
50
51
|
//# sourceMappingURL=api-error.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-error.enum.js","sourceRoot":"","sources":["../../../src/types/enum/api-error.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,mCAAsB,CAAA;IACtB,+CAAkC,CAAA;IAClC,6CAAgC,CAAA;AAClC,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"api-error.enum.js","sourceRoot":"","sources":["../../../src/types/enum/api-error.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,mCAAsB,CAAA;IACtB,+CAAkC,CAAA;IAClC,6CAAgC,CAAA;AAClC,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAED,IAAY,IAgDX;AAhDD,WAAY,IAAI;IAEd,qDAA6C,CAAA;IAC7C,oEAA4D,CAAA;IAC5D,+CAAuC,CAAA;IACvC,8BAAsB,CAAA;IACtB,qDAA6C,CAAA;IAC7C,qDAA6C,CAAA;IAC7C,qDAA6C,CAAA;IAC7C,kDAA0C,CAAA;IAC1C,oCAA4B,CAAA;IAC5B,0CAAkC,CAAA;IAGlC,wEAAgE,CAAA;IAChE,qFAA6E,CAAA;IAC7E,oEAA4D,CAAA;IAC5D,oGAA4F,CAAA;IAC5F,gFAAwE,CAAA;IACxE,wEAAgE,CAAA;IAGhE,4DAAoD,CAAA;IACpD,qEAA6D,CAAA;IAC7D,qEAA6D,CAAA;IAC7D,8EAAsE,CAAA;IACtE,8EAAsE,CAAA;IACtE,yEAAiE,CAAA;IACjE,wDAAgD,CAAA;IAGhD,8EAAsE,CAAA;IACtE,wEAAgE,CAAA;IAChE,2EAAmE,CAAA;IACnE,uEAA+D,CAAA;IAC/D,oEAA4D,CAAA;IAC5D,+EAAuE,CAAA;IACvE,6EAAqE,CAAA;IACrE,kFAA0E,CAAA;IAC1E,iEAAyD,CAAA;IACzD,iFAAyE,CAAA;IACzE,8EAAsE,CAAA;IACtE,gFAAwE,CAAA;IACxE,sEAA8D,CAAA;IAC9D,4EAAoE,CAAA;IAGpE,wCAAgC,CAAA;AAClC,CAAC,EAhDW,IAAI,oBAAJ,IAAI,QAgDf"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FileScanStatus = void 0;
|
|
4
|
+
exports.FileScanStatus = {
|
|
5
|
+
PENDING_SCAN: 'pending_scan',
|
|
6
|
+
CLEAN: 'clean',
|
|
7
|
+
INFECTED: 'infected',
|
|
8
|
+
SKIPPED: 'skipped',
|
|
9
|
+
ERROR: 'error',
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=file-scan-status.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-scan-status.enum.js","sourceRoot":"","sources":["../../../src/types/enum/file-scan-status.enum.ts"],"names":[],"mappings":";;;AAmBa,QAAA,cAAc,GAGvB;IACF,YAAY,EAAE,cAAc;IAC5B,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;CACf,CAAC"}
|
package/dist/types/enum/index.js
CHANGED
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./api-error.enum"), exports);
|
|
18
18
|
__exportStar(require("./workflow.enum"), exports);
|
|
19
19
|
__exportStar(require("./internal-ticket.enum"), exports);
|
|
20
|
+
__exportStar(require("./file-scan-status.enum"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,kDAAgC;AAChC,yDAAuC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,kDAAgC;AAChC,yDAAuC;AACvC,0DAAwC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IInternalTicket } from './internal-ticket.model';
|
|
2
2
|
import { IInternalTicketMessage } from './internal-ticket-message.model';
|
|
3
|
+
import { FileScanStatus } from '../../enum/file-scan-status.enum';
|
|
3
4
|
export interface IInternalTicketAttachment {
|
|
4
5
|
id: string;
|
|
5
6
|
internalTicketId: string;
|
|
@@ -12,6 +13,7 @@ export interface IInternalTicketAttachment {
|
|
|
12
13
|
thumbnailPublicAccessId: string | null;
|
|
13
14
|
thumbnailPublicAccessPassword: string | null;
|
|
14
15
|
userId: string;
|
|
16
|
+
scanStatus: FileScanStatus | null;
|
|
15
17
|
createdAt?: Date;
|
|
16
18
|
updatedAt?: Date;
|
|
17
19
|
internalTicket?: IInternalTicket;
|
package/package.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"incremental": false,
|
|
4
|
-
"target": "es2021",
|
|
5
|
-
"lib": [
|
|
6
|
-
"dom",
|
|
7
|
-
"es2021"
|
|
8
|
-
],
|
|
9
|
-
"experimentalDecorators": true,
|
|
10
|
-
"emitDecoratorMetadata": true,
|
|
11
|
-
"module": "commonjs",
|
|
12
|
-
"rootDir": "src",
|
|
13
|
-
"moduleResolution": "node",
|
|
14
|
-
"resolveJsonModule": true,
|
|
15
|
-
"allowJs": true,
|
|
16
|
-
"declaration": true,
|
|
17
|
-
"sourceMap": true,
|
|
18
|
-
"outDir": "./dist",
|
|
19
|
-
"removeComments": true,
|
|
20
|
-
"allowSyntheticDefaultImports": true,
|
|
21
|
-
"esModuleInterop": true,
|
|
22
|
-
"forceConsistentCasingInFileNames": true,
|
|
23
|
-
"strict": true,
|
|
24
|
-
"strictNullChecks": true,
|
|
25
|
-
"strictFunctionTypes": true,
|
|
26
|
-
"strictPropertyInitialization": false,
|
|
27
|
-
"skipLibCheck": true
|
|
28
|
-
},
|
|
29
|
-
"include": [
|
|
30
|
-
"./src"
|
|
31
|
-
],
|
|
32
|
-
"exclude": [
|
|
33
|
-
"./dist/**/*"
|
|
34
|
-
]
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"incremental": false,
|
|
4
|
+
"target": "es2021",
|
|
5
|
+
"lib": [
|
|
6
|
+
"dom",
|
|
7
|
+
"es2021"
|
|
8
|
+
],
|
|
9
|
+
"experimentalDecorators": true,
|
|
10
|
+
"emitDecoratorMetadata": true,
|
|
11
|
+
"module": "commonjs",
|
|
12
|
+
"rootDir": "src",
|
|
13
|
+
"moduleResolution": "node",
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"allowJs": true,
|
|
16
|
+
"declaration": true,
|
|
17
|
+
"sourceMap": true,
|
|
18
|
+
"outDir": "./dist",
|
|
19
|
+
"removeComments": true,
|
|
20
|
+
"allowSyntheticDefaultImports": true,
|
|
21
|
+
"esModuleInterop": true,
|
|
22
|
+
"forceConsistentCasingInFileNames": true,
|
|
23
|
+
"strict": true,
|
|
24
|
+
"strictNullChecks": true,
|
|
25
|
+
"strictFunctionTypes": true,
|
|
26
|
+
"strictPropertyInitialization": false,
|
|
27
|
+
"skipLibCheck": true
|
|
28
|
+
},
|
|
29
|
+
"include": [
|
|
30
|
+
"./src"
|
|
31
|
+
],
|
|
32
|
+
"exclude": [
|
|
33
|
+
"./dist/**/*"
|
|
34
|
+
]
|
|
35
|
+
}
|