@abyss-project/cloud 2.2.0 → 2.3.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/dist/api/space.api.d.ts +5 -1
- package/dist/api/space.api.js +17 -1
- package/dist/api/space.api.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +21 -7
- package/dist/index.js.map +1 -1
- package/dist/types/interface/api/requests/space.request.d.ts +10 -0
- package/dist/types/interface/api/responses/space.response.d.ts +8 -0
- package/dist/utils/clean.utils.js +2 -2
- package/dist/utils/clean.utils.js.map +1 -1
- package/package.json +5 -5
- package/tsconfig.json +35 -35
- package/dist/api/file-scan.api.d.ts +0 -6
- package/dist/api/file-scan.api.js +0 -25
- package/dist/api/file-scan.api.js.map +0 -1
- package/dist/types/interface/api/requests/file-scan.request.d.ts +0 -33
- package/dist/types/interface/api/requests/file-scan.request.js +0 -3
- package/dist/types/interface/api/requests/file-scan.request.js.map +0 -1
- package/dist/types/interface/api/responses/file-scan.response.d.ts +0 -16
- package/dist/types/interface/api/responses/file-scan.response.js +0 -3
- package/dist/types/interface/api/responses/file-scan.response.js.map +0 -1
- package/dist/types/interface/models/file-scan.dto.d.ts +0 -12
- package/dist/types/interface/models/file-scan.dto.js +0 -3
- package/dist/types/interface/models/file-scan.dto.js.map +0 -1
package/dist/api/space.api.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { ICleanTrashCloudParams, ICleanTrashCloudResponse, IGetAllMetricsCloudResponse, IGetCloudParams, IGetCloudResponse, IGetMetricsCloudParams, IGetMetricsCloudQuery, IGetMetricsCloudResponse, IGetRepositoryCloudParams, IGetRepositoryCloudResponse, IGetStorageBreakdownParams, IGetStorageBreakdownResponse, IGetTrashCloudParams, IGetTrashCloudResponse, IPaginateCloudQuery, IPaginateCloudResponse, IUpdateCloudBody, IUpdateCloudParams, IUpdateCloudResponse } from '..';
|
|
1
|
+
import { ICleanTrashCloudParams, ICleanTrashCloudResponse, IGetAllMetricsCloudResponse, IGetCloudParams, IGetCloudResponse, IGetMetricsCloudParams, IGetMetricsCloudQuery, IGetMetricsCloudResponse, IGetOrgCommonSpaceParams, IGetOrgCommonSpaceResponse, IGetPersoInOrgSpaceParams, IGetPersoInOrgSpaceResponse, IGetPersonalSpaceResponse, IGetProjectSpaceParams, IGetProjectSpaceResponse, IGetRepositoryCloudParams, IGetRepositoryCloudResponse, IGetStorageBreakdownParams, IGetStorageBreakdownResponse, IGetTrashCloudParams, IGetTrashCloudResponse, IPaginateCloudQuery, IPaginateCloudResponse, IUpdateCloudBody, IUpdateCloudParams, IUpdateCloudResponse } from '..';
|
|
2
2
|
export declare const updateSpace: (params: IUpdateCloudParams, body: IUpdateCloudBody) => Promise<IUpdateCloudResponse>;
|
|
3
3
|
export declare const getRepositorySpace: (params: IGetRepositoryCloudParams) => Promise<IGetRepositoryCloudResponse>;
|
|
4
4
|
export declare const getTrashSpace: (params: IGetTrashCloudParams) => Promise<IGetTrashCloudResponse>;
|
|
5
5
|
export declare const cleanTrashSpace: (params: ICleanTrashCloudParams) => Promise<ICleanTrashCloudResponse>;
|
|
6
6
|
export declare const paginateSpace: (query: IPaginateCloudQuery) => Promise<IPaginateCloudResponse>;
|
|
7
7
|
export declare const getSpace: (params: IGetCloudParams) => Promise<IGetCloudResponse>;
|
|
8
|
+
export declare const getPersonalSpace: () => Promise<IGetPersonalSpaceResponse>;
|
|
9
|
+
export declare const getOrgCommonSpace: (params: IGetOrgCommonSpaceParams) => Promise<IGetOrgCommonSpaceResponse>;
|
|
10
|
+
export declare const getPersoInOrgSpace: (params: IGetPersoInOrgSpaceParams) => Promise<IGetPersoInOrgSpaceResponse>;
|
|
11
|
+
export declare const getProjectSpace: (params: IGetProjectSpaceParams) => Promise<IGetProjectSpaceResponse>;
|
|
8
12
|
export declare const getMetricsSpace: (params: IGetMetricsCloudParams, query: IGetMetricsCloudQuery) => Promise<IGetMetricsCloudResponse>;
|
|
9
13
|
export declare const getAllMetricsSpace: () => Promise<IGetAllMetricsCloudResponse>;
|
|
10
14
|
export declare const getStorageBreakdownSpace: (params: IGetStorageBreakdownParams) => Promise<IGetStorageBreakdownResponse>;
|
package/dist/api/space.api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getStorageBreakdownSpace = exports.getAllMetricsSpace = exports.getMetricsSpace = exports.getSpace = exports.paginateSpace = exports.cleanTrashSpace = exports.getTrashSpace = exports.getRepositorySpace = exports.updateSpace = void 0;
|
|
3
|
+
exports.getStorageBreakdownSpace = exports.getAllMetricsSpace = exports.getMetricsSpace = exports.getProjectSpace = exports.getPersoInOrgSpace = exports.getOrgCommonSpace = exports.getPersonalSpace = exports.getSpace = exports.paginateSpace = exports.cleanTrashSpace = exports.getTrashSpace = exports.getRepositorySpace = exports.updateSpace = void 0;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const updateSpace = async (params, body) => {
|
|
6
6
|
return (await __1.AbyssCloudCore.axios.put(`space/${params.spaceId}`, body))
|
|
@@ -30,6 +30,22 @@ const getSpace = async (params) => {
|
|
|
30
30
|
return (await __1.AbyssCloudCore.axios.get(`space/${params.spaceId}`)).data;
|
|
31
31
|
};
|
|
32
32
|
exports.getSpace = getSpace;
|
|
33
|
+
const getPersonalSpace = async () => {
|
|
34
|
+
return (await __1.AbyssCloudCore.axios.get(`space/personal`)).data;
|
|
35
|
+
};
|
|
36
|
+
exports.getPersonalSpace = getPersonalSpace;
|
|
37
|
+
const getOrgCommonSpace = async (params) => {
|
|
38
|
+
return (await __1.AbyssCloudCore.axios.get(`space/org/${params.orgId}/common`)).data;
|
|
39
|
+
};
|
|
40
|
+
exports.getOrgCommonSpace = getOrgCommonSpace;
|
|
41
|
+
const getPersoInOrgSpace = async (params) => {
|
|
42
|
+
return (await __1.AbyssCloudCore.axios.get(`space/org/${params.orgId}/my`)).data;
|
|
43
|
+
};
|
|
44
|
+
exports.getPersoInOrgSpace = getPersoInOrgSpace;
|
|
45
|
+
const getProjectSpace = async (params) => {
|
|
46
|
+
return (await __1.AbyssCloudCore.axios.get(`space/org/${params.orgId}/projects/${params.projectId}`)).data;
|
|
47
|
+
};
|
|
48
|
+
exports.getProjectSpace = getProjectSpace;
|
|
33
49
|
const getMetricsSpace = async (params, query) => {
|
|
34
50
|
return (await __1.AbyssCloudCore.axios.get(`space/${params.spaceId}/metrics`, {
|
|
35
51
|
params: query,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"space.api.js","sourceRoot":"","sources":["../../src/api/space.api.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"space.api.js","sourceRoot":"","sources":["../../src/api/space.api.ts"],"names":[],"mappings":";;;AAAA,0BA4BY;AAEL,MAAM,WAAW,GAAG,KAAK,EAC9B,MAA0B,EAC1B,IAAsB,EACS,EAAE;IACjC,OAAO,CAAC,MAAM,kBAAc,CAAC,KAAK,CAAC,GAAG,CAAuB,SAAS,MAAM,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC;SAC3F,IAAI,CAAC;AACV,CAAC,CAAC;AANW,QAAA,WAAW,eAMtB;AAEK,MAAM,kBAAkB,GAAG,KAAK,EACrC,MAAiC,EACK,EAAE;IACxC,OAAO,CACL,MAAM,kBAAc,CAAC,KAAK,CAAC,GAAG,CAC5B,SAAS,MAAM,CAAC,OAAO,aAAa,CACrC,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,kBAAkB,sBAQ7B;AAEK,MAAM,aAAa,GAAG,KAAK,EAChC,MAA4B,EACK,EAAE;IACnC,OAAO,CAAC,MAAM,kBAAc,CAAC,KAAK,CAAC,GAAG,CAAyB,SAAS,MAAM,CAAC,OAAO,QAAQ,CAAC,CAAC;SAC7F,IAAI,CAAC;AACV,CAAC,CAAC;AALW,QAAA,aAAa,iBAKxB;AAEK,MAAM,eAAe,GAAG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F,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AANW,QAAA,kBAAkB,sBAM7B;AAKK,MAAM,eAAe,GAAG,KAAK,EAClC,MAA8B,EACK,EAAE;IACrC,OAAO,CACL,MAAM,kBAAc,CAAC,KAAK,CAAC,GAAG,CAC5B,aAAa,MAAM,CAAC,KAAK,aAAa,MAAM,CAAC,SAAS,EAAE,CACzD,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,eAAe,mBAQ1B;AAEK,MAAM,eAAe,GAAG,KAAK,EAClC,MAA8B,EAC9B,KAA4B,EACO,EAAE;IACrC,OAAO,CACL,MAAM,kBAAc,CAAC,KAAK,CAAC,GAAG,CAA2B,SAAS,MAAM,CAAC,OAAO,UAAU,EAAE;QAC1F,MAAM,EAAE,KAAK;KACd,CAAC,CACH,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AATW,QAAA,eAAe,mBAS1B;AAEK,MAAM,kBAAkB,GAAG,KAAK,IAA0C,EAAE;IACjF,OAAO,CAAC,MAAM,kBAAc,CAAC,KAAK,CAAC,GAAG,CAA8B,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC;AAC7F,CAAC,CAAC;AAFW,QAAA,kBAAkB,sBAE7B;AAEK,MAAM,wBAAwB,GAAG,KAAK,EAC3C,MAAkC,EACK,EAAE;IACzC,OAAO,CACL,MAAM,kBAAc,CAAC,KAAK,CAAC,GAAG,CAC5B,SAAS,MAAM,CAAC,OAAO,oBAAoB,CAC5C,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,wBAAwB,4BAQnC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,10 @@ type CoreConfig = {
|
|
|
33
33
|
type SpaceSDKNamespace = {
|
|
34
34
|
update: typeof spaceApi.updateSpace;
|
|
35
35
|
get: typeof spaceApi.getSpace;
|
|
36
|
+
getPersonal: typeof spaceApi.getPersonalSpace;
|
|
37
|
+
getOrgCommon: typeof spaceApi.getOrgCommonSpace;
|
|
38
|
+
getPersoInOrg: typeof spaceApi.getPersoInOrgSpace;
|
|
39
|
+
getProject: typeof spaceApi.getProjectSpace;
|
|
36
40
|
paginate: typeof spaceApi.paginateSpace;
|
|
37
41
|
getRepository: typeof spaceApi.getRepositorySpace;
|
|
38
42
|
getTrash: typeof spaceApi.getTrashSpace;
|
package/dist/index.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
37
|
};
|
|
@@ -76,6 +86,10 @@ class AbyssCloudCore {
|
|
|
76
86
|
const spaceSDK = {
|
|
77
87
|
update: spaceApi.updateSpace,
|
|
78
88
|
get: spaceApi.getSpace,
|
|
89
|
+
getPersonal: spaceApi.getPersonalSpace,
|
|
90
|
+
getOrgCommon: spaceApi.getOrgCommonSpace,
|
|
91
|
+
getPersoInOrg: spaceApi.getPersoInOrgSpace,
|
|
92
|
+
getProject: spaceApi.getProjectSpace,
|
|
79
93
|
paginate: spaceApi.paginateSpace,
|
|
80
94
|
getRepository: spaceApi.getRepositorySpace,
|
|
81
95
|
getTrash: spaceApi.getTrashSpace,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,2DAA+F;AAC/F,qEAAuD;AACvD,0DAA4C;AAC5C,qEAAuD;AACvD,2EAA6D;AAC7D,sFAAwE;AACxE,qEAAuD;AACvD,kFAAoE;AACpE,oFAAsE;AACtE,iEAAmD;AACnD,wDAA0C;AAC1C,uEAAyD;AACzD,4DAA8C;AAC9C,8DAAgD;AAChD,yEAA2D;AAC3D,8DAAgD;AAChD,yEAA2D;AAC3D,wDAA0C;AAC1C,mEAAqD;AACrD,uEAAyD;AAEzD,wCAAsB;AACtB,0CAAwB;AACxB,0CAAwB;AACxB,uDAAqC;AAErC,MAAM,wBAAwB,GAAG,yCAAyC,CAAC;AAE9D,QAAA,cAAc,GAAG,eAAe,CAAC;AACjC,QAAA,kBAAkB,GAAG,mBAAmB,CAAC;AAEtD,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAC5B,MAAM,wBAAwB,GAAG,IAAI,CAAC;AACtC,MAAM,WAAW,GAAG;IAClB,GAAG;IACH,GAAG;CACJ,CAAC;AAiMF,MAAa,cAAc;IAgBlB,MAAM,KAAK,GAAG;QACnB,IAAI,CAAC,EAAc,CAAC,IAAI,EAAE,CAAC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AAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,iBAAiB,EAAE,EAAE;IACrB,aAAa,EAAE,EAAE;IACjB,UAAU,EAAE,EAAE;IACd,OAAO,EAAE,wBAAwB;CAClC,AAPoB,CAOnB;AACK,oBAAK,GAAG,eAAK,CAAC,MAAM,CAAC;IAC1B,OAAO,EAAE,EAAI,CAAC,MAAM,CAAC,OAAO;IAC5B,eAAe,EAAE,IAAI;CACtB,CAAC,AAHU,CAGT;AAEY,mBAAI,GAA6B,IAAI,AAAjC,CAAkC"}
|
|
@@ -38,6 +38,16 @@ export type IPaginateCloudQuery = {
|
|
|
38
38
|
teamId?: string;
|
|
39
39
|
adminView?: boolean;
|
|
40
40
|
} & QueryPaginate;
|
|
41
|
+
export interface IGetOrgCommonSpaceParams {
|
|
42
|
+
orgId: string;
|
|
43
|
+
}
|
|
44
|
+
export interface IGetPersoInOrgSpaceParams {
|
|
45
|
+
orgId: string;
|
|
46
|
+
}
|
|
47
|
+
export interface IGetProjectSpaceParams {
|
|
48
|
+
orgId: string;
|
|
49
|
+
projectId: string;
|
|
50
|
+
}
|
|
41
51
|
export interface IGetMetricsCloudParams {
|
|
42
52
|
spaceId: string;
|
|
43
53
|
}
|
|
@@ -66,3 +66,11 @@ export interface IGetStorageBreakdownData {
|
|
|
66
66
|
}>;
|
|
67
67
|
}
|
|
68
68
|
export type IGetStorageBreakdownResponse = IResponse<IGetStorageBreakdownData>;
|
|
69
|
+
export interface IResolvedSpaceData {
|
|
70
|
+
space: ISpace;
|
|
71
|
+
sharePermission: SharePermission | null;
|
|
72
|
+
}
|
|
73
|
+
export type IGetPersonalSpaceResponse = IResponse<IResolvedSpaceData>;
|
|
74
|
+
export type IGetOrgCommonSpaceResponse = IResponse<IResolvedSpaceData>;
|
|
75
|
+
export type IGetPersoInOrgSpaceResponse = IResponse<IResolvedSpaceData>;
|
|
76
|
+
export type IGetProjectSpaceResponse = IResponse<IResolvedSpaceData>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.minWords = void 0;
|
|
4
|
+
exports.cleanForRules = cleanForRules;
|
|
4
5
|
const wordsToExclude = [];
|
|
5
6
|
exports.minWords = 3;
|
|
6
7
|
function cleanForRules(string) {
|
|
@@ -12,5 +13,4 @@ function cleanForRules(string) {
|
|
|
12
13
|
.join(' ')
|
|
13
14
|
.replace(/[^a-z]/gi, '');
|
|
14
15
|
}
|
|
15
|
-
exports.cleanForRules = cleanForRules;
|
|
16
16
|
//# sourceMappingURL=clean.utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clean.utils.js","sourceRoot":"","sources":["../../src/utils/clean.utils.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"clean.utils.js","sourceRoot":"","sources":["../../src/utils/clean.utils.ts"],"names":[],"mappings":";;;AAGA,sCAQC;AAXD,MAAM,cAAc,GAAa,EAAE,CAAC;AACvB,QAAA,QAAQ,GAAG,CAAC,CAAC;AAE1B,SAAgB,aAAa,CAAC,MAAc;IAC1C,OAAO,MAAM;SACV,WAAW,EAAE;SACb,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;SAC3B,KAAK,CAAC,GAAG,CAAC;SACV,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,IAAI,gBAAQ,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;SACxE,IAAI,CAAC,GAAG,CAAC;SACT,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;AAC7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abyss-project/cloud",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Core package to interact with Abyss-Project Cloud",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"@types/lodash": "^4.14.177",
|
|
34
34
|
"@types/node": "^20.11.0",
|
|
35
35
|
"@types/uuid": "^8.3.0",
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "
|
|
37
|
-
"@typescript-eslint/parser": "
|
|
38
|
-
"eslint": "^
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "8.71.0",
|
|
37
|
+
"@typescript-eslint/parser": "8.71.0",
|
|
38
|
+
"eslint": "^8.57.1",
|
|
39
39
|
"eslint-config-airbnb-base": "^14.2.1",
|
|
40
40
|
"eslint-config-prettier": "^8.3.0",
|
|
41
41
|
"eslint-config-standard": "^16.0.3",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"eslint-plugin-promise": "^5.1.0",
|
|
47
47
|
"prettier": "2.3.1",
|
|
48
48
|
"sequelize-cli": "^6.2.0",
|
|
49
|
-
"typescript": "5.
|
|
49
|
+
"typescript": "5.9.3",
|
|
50
50
|
"tsc-watch": "^4.6.2"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
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
|
+
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IListInfectedFileParams, IListInfectedFileQuery, IListInfectedFileResponse, IListUnscannedFileParams, IListUnscannedFileQuery, IListUnscannedFileResponse, IAcknowledgeSafeFileParams, IAcknowledgeSafeFileBody, IAcknowledgeSafeFileResponse, IRescanFileParams, IRescanFileBody, IRescanFileResponse, IGetFileScanStatusParams, IGetFileScanStatusResponse } from '..';
|
|
2
|
-
export declare const listInfectedFile: (params: IListInfectedFileParams, query: IListInfectedFileQuery) => Promise<IListInfectedFileResponse>;
|
|
3
|
-
export declare const listUnscannedFile: (params: IListUnscannedFileParams, query: IListUnscannedFileQuery) => Promise<IListUnscannedFileResponse>;
|
|
4
|
-
export declare const acknowledgeSafeFile: (params: IAcknowledgeSafeFileParams, body: IAcknowledgeSafeFileBody) => Promise<IAcknowledgeSafeFileResponse>;
|
|
5
|
-
export declare const rescanFile: (params: IRescanFileParams, body: IRescanFileBody) => Promise<IRescanFileResponse>;
|
|
6
|
-
export declare const getFileScanStatus: (params: IGetFileScanStatusParams) => Promise<IGetFileScanStatusResponse>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getFileScanStatus = exports.rescanFile = exports.acknowledgeSafeFile = exports.listUnscannedFile = exports.listInfectedFile = void 0;
|
|
4
|
-
const __1 = require("..");
|
|
5
|
-
const listInfectedFile = async (params, query) => {
|
|
6
|
-
return (await __1.AbyssCloudCore.axios.get(`space-file/${params.spaceId}/file-scan/infected`, { params: query })).data;
|
|
7
|
-
};
|
|
8
|
-
exports.listInfectedFile = listInfectedFile;
|
|
9
|
-
const listUnscannedFile = async (params, query) => {
|
|
10
|
-
return (await __1.AbyssCloudCore.axios.get(`space-file/${params.spaceId}/file-scan/unscanned`, { params: query })).data;
|
|
11
|
-
};
|
|
12
|
-
exports.listUnscannedFile = listUnscannedFile;
|
|
13
|
-
const acknowledgeSafeFile = async (params, body) => {
|
|
14
|
-
return (await __1.AbyssCloudCore.axios.post(`space-file/${params.spaceId}/file-scan/${params.fileId}/acknowledge-safe`, body)).data;
|
|
15
|
-
};
|
|
16
|
-
exports.acknowledgeSafeFile = acknowledgeSafeFile;
|
|
17
|
-
const rescanFile = async (params, body) => {
|
|
18
|
-
return (await __1.AbyssCloudCore.axios.post(`space-file/${params.spaceId}/file-scan/${params.fileId}/rescan`, body)).data;
|
|
19
|
-
};
|
|
20
|
-
exports.rescanFile = rescanFile;
|
|
21
|
-
const getFileScanStatus = async (params) => {
|
|
22
|
-
return (await __1.AbyssCloudCore.axios.get(`space-file/${params.spaceId}/file-scan/${params.fileId}/status`)).data;
|
|
23
|
-
};
|
|
24
|
-
exports.getFileScanStatus = getFileScanStatus;
|
|
25
|
-
//# sourceMappingURL=file-scan.api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-scan.api.js","sourceRoot":"","sources":["../../src/api/file-scan.api.ts"],"names":[],"mappings":";;;AAAA,0BAgBY;AAEL,MAAM,gBAAgB,GAAG,KAAK,EACnC,MAA+B,EAC/B,KAA6B,EACO,EAAE;IACtC,OAAO,CACL,MAAM,kBAAc,CAAC,KAAK,CAAC,GAAG,CAC5B,cAAc,MAAM,CAAC,OAAO,qBAAqB,EACjD,EAAE,MAAM,EAAE,KAAK,EAAE,CAClB,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AAVW,QAAA,gBAAgB,oBAU3B;AAEK,MAAM,iBAAiB,GAAG,KAAK,EACpC,MAAgC,EAChC,KAA8B,EACO,EAAE;IACvC,OAAO,CACL,MAAM,kBAAc,CAAC,KAAK,CAAC,GAAG,CAC5B,cAAc,MAAM,CAAC,OAAO,sBAAsB,EAClD,EAAE,MAAM,EAAE,KAAK,EAAE,CAClB,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AAVW,QAAA,iBAAiB,qBAU5B;AAEK,MAAM,mBAAmB,GAAG,KAAK,EACtC,MAAkC,EAClC,IAA8B,EACS,EAAE;IACzC,OAAO,CACL,MAAM,kBAAc,CAAC,KAAK,CAAC,IAAI,CAC7B,cAAc,MAAM,CAAC,OAAO,cAAc,MAAM,CAAC,MAAM,mBAAmB,EAC1E,IAAI,CACL,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AAVW,QAAA,mBAAmB,uBAU9B;AAEK,MAAM,UAAU,GAAG,KAAK,EAC7B,MAAyB,EACzB,IAAqB,EACS,EAAE;IAChC,OAAO,CACL,MAAM,kBAAc,CAAC,KAAK,CAAC,IAAI,CAC7B,cAAc,MAAM,CAAC,OAAO,cAAc,MAAM,CAAC,MAAM,SAAS,EAChE,IAAI,CACL,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AAVW,QAAA,UAAU,cAUrB;AAEK,MAAM,iBAAiB,GAAG,KAAK,EACpC,MAAgC,EACK,EAAE;IACvC,OAAO,CACL,MAAM,kBAAc,CAAC,KAAK,CAAC,GAAG,CAC5B,cAAc,MAAM,CAAC,OAAO,cAAc,MAAM,CAAC,MAAM,SAAS,CACjE,CACF,CAAC,IAAI,CAAC;AACT,CAAC,CAAC;AARW,QAAA,iBAAiB,qBAQ5B"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { QueryPaginate } from '..';
|
|
2
|
-
import { FileScanStatus, ScanMode } from '../..';
|
|
3
|
-
export interface IListInfectedFileParams {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
}
|
|
6
|
-
export type IListInfectedFileQuery = QueryPaginate & {
|
|
7
|
-
acknowledged?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export interface IListUnscannedFileParams {
|
|
10
|
-
spaceId: string;
|
|
11
|
-
}
|
|
12
|
-
export type IListUnscannedFileQuery = QueryPaginate & {
|
|
13
|
-
scanStatus?: FileScanStatus[];
|
|
14
|
-
};
|
|
15
|
-
export interface IAcknowledgeSafeFileParams {
|
|
16
|
-
spaceId: string;
|
|
17
|
-
fileId: string;
|
|
18
|
-
}
|
|
19
|
-
export interface IAcknowledgeSafeFileBody {
|
|
20
|
-
safe: boolean;
|
|
21
|
-
}
|
|
22
|
-
export interface IRescanFileParams {
|
|
23
|
-
spaceId: string;
|
|
24
|
-
fileId: string;
|
|
25
|
-
}
|
|
26
|
-
export interface IRescanFileBody {
|
|
27
|
-
force: boolean;
|
|
28
|
-
mode?: ScanMode;
|
|
29
|
-
}
|
|
30
|
-
export interface IGetFileScanStatusParams {
|
|
31
|
-
spaceId: string;
|
|
32
|
-
fileId: string;
|
|
33
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-scan.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/file-scan.request.ts"],"names":[],"mappings":""}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IResponse, BasePaginate } from '..';
|
|
2
|
-
import { IScanFile, FileScanStatus } from '../..';
|
|
3
|
-
export type IListInfectedFileResponse = IResponse<BasePaginate<IScanFile>>;
|
|
4
|
-
export type IListUnscannedFileResponse = IResponse<BasePaginate<IScanFile>>;
|
|
5
|
-
export interface IAcknowledgeSafeFileData {
|
|
6
|
-
file: IScanFile;
|
|
7
|
-
}
|
|
8
|
-
export type IAcknowledgeSafeFileResponse = IResponse<IAcknowledgeSafeFileData>;
|
|
9
|
-
export interface IRescanFileData {
|
|
10
|
-
file: IScanFile;
|
|
11
|
-
}
|
|
12
|
-
export type IRescanFileResponse = IResponse<IRescanFileData>;
|
|
13
|
-
export interface IGetFileScanStatusData {
|
|
14
|
-
scanStatus: FileScanStatus | null;
|
|
15
|
-
}
|
|
16
|
-
export type IGetFileScanStatusResponse = IResponse<IGetFileScanStatusData>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-scan.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/file-scan.response.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type FileScanStatus = 'pending_scan' | 'clean' | 'infected' | 'skipped' | 'error';
|
|
2
|
-
export type AnalysisStatus = 'pending' | 'clean' | 'infected' | 'skipped' | 'error';
|
|
3
|
-
export interface IFileAnalysis {
|
|
4
|
-
status: AnalysisStatus;
|
|
5
|
-
engine: string | null;
|
|
6
|
-
engineVersion: string | null;
|
|
7
|
-
contentHash: string | null;
|
|
8
|
-
viruses: string[];
|
|
9
|
-
startedAt: string | null;
|
|
10
|
-
finishedAt: string | null;
|
|
11
|
-
durationMs: number | null;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-scan.dto.js","sourceRoot":"","sources":["../../../../src/types/interface/models/file-scan.dto.ts"],"names":[],"mappings":""}
|