@abyss-project/probe 1.0.0 → 2.0.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 +32 -0
- package/.prettierrc +5 -0
- package/README.md +4 -14
- package/dist/api/index.d.ts +4 -0
- package/dist/api/index.js +4 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/probe-scan.api.d.ts +4 -6
- package/dist/api/probe-scan.api.js +34 -30
- package/dist/api/probe-scan.api.js.map +1 -1
- package/dist/api/probe-scan.api.test.js +27 -7
- package/dist/api/probe-scan.api.test.js.map +1 -1
- package/dist/api/probe-scan.application.api.d.ts +7 -0
- package/dist/api/probe-scan.application.api.js +40 -0
- package/dist/api/probe-scan.application.api.js.map +1 -0
- package/dist/api/probe-scan.application.api.test.d.ts +1 -0
- package/dist/api/probe-scan.application.api.test.js +51 -0
- package/dist/api/probe-scan.application.api.test.js.map +1 -0
- package/dist/api/probe-usage.api.d.ts +2 -0
- package/dist/api/probe-usage.api.js +24 -0
- package/dist/api/probe-usage.api.js.map +1 -0
- package/dist/api/probe-usage.application.api.d.ts +2 -0
- package/dist/api/probe-usage.application.api.js +12 -0
- package/dist/api/probe-usage.application.api.js.map +1 -0
- package/dist/api/probe-webhook.api.d.ts +3 -1
- package/dist/api/probe-webhook.api.js +28 -8
- package/dist/api/probe-webhook.api.js.map +1 -1
- package/dist/api/probe-webhook.api.test.js +17 -7
- package/dist/api/probe-webhook.api.test.js.map +1 -1
- package/dist/api/probe-webhook.application.api.d.ts +6 -0
- package/dist/api/probe-webhook.application.api.js +27 -0
- package/dist/api/probe-webhook.application.api.js.map +1 -0
- package/dist/api/probe-webhook.application.api.test.d.ts +1 -0
- package/dist/api/probe-webhook.application.api.test.js +43 -0
- package/dist/api/probe-webhook.application.api.test.js.map +1 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/{types/interface/models/probe-scan.model.js → constants/index.js} +1 -1
- package/dist/constants/index.js.map +1 -0
- package/dist/index.d.ts +42 -9
- package/dist/index.js +65 -20
- package/dist/index.js.map +1 -1
- package/dist/types/enum/api-error.enum.d.ts +15 -1
- package/dist/types/enum/api-error.enum.js +14 -0
- package/dist/types/enum/api-error.enum.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/interface/api/requests/index.d.ts +1 -0
- package/dist/types/interface/api/requests/index.js +1 -0
- package/dist/types/interface/api/requests/index.js.map +1 -1
- package/dist/types/interface/api/requests/probe-usage.request.d.ts +3 -0
- package/dist/types/interface/{models/probe-webhook.model.js → api/requests/probe-usage.request.js} +1 -1
- package/dist/types/interface/api/requests/probe-usage.request.js.map +1 -0
- package/dist/types/interface/api/requests/probe-webhook.request.d.ts +8 -0
- package/dist/types/interface/api/responses/index.d.ts +1 -0
- package/dist/types/interface/api/responses/index.js +1 -0
- package/dist/types/interface/api/responses/index.js.map +1 -1
- package/dist/types/interface/api/responses/probe-scan.response.d.ts +1 -0
- package/dist/types/interface/api/responses/probe-usage.response.d.ts +7 -0
- package/dist/types/interface/api/responses/probe-usage.response.js +3 -0
- package/dist/types/interface/api/responses/probe-usage.response.js.map +1 -0
- package/dist/types/interface/api/responses/probe-webhook.response.d.ts +5 -2
- package/dist/types/interface/index.d.ts +0 -1
- package/dist/types/interface/index.js +0 -1
- package/dist/types/interface/index.js.map +1 -1
- package/dist/types/interface/models/index.d.ts +3 -2
- package/dist/types/interface/models/index.js +3 -2
- package/dist/types/interface/models/index.js.map +1 -1
- package/dist/types/interface/models/{probe-scan.model.d.ts → probe-scan.dto.d.ts} +8 -0
- package/dist/types/interface/models/probe-scan.dto.js +3 -0
- package/dist/types/interface/models/probe-scan.dto.js.map +1 -0
- package/dist/types/interface/models/probe-webhook-delivery.dto.d.ts +19 -0
- package/dist/types/interface/models/probe-webhook-delivery.dto.js.map +1 -0
- package/dist/types/interface/models/{probe-webhook.model.d.ts → probe-webhook.dto.d.ts} +1 -3
- package/dist/types/interface/models/probe-webhook.dto.js +3 -0
- package/dist/types/interface/models/probe-webhook.dto.js.map +1 -0
- package/dist/types/tests/probe.dto.test.js +39 -2
- package/dist/types/tests/probe.dto.test.js.map +1 -1
- package/dist/utils/enum.utils.d.ts +1 -0
- package/dist/utils/enum.utils.js +3 -0
- package/dist/utils/enum.utils.js.map +1 -0
- package/dist/utils/error.utils.d.ts +15 -0
- package/dist/utils/error.utils.js +25 -0
- package/dist/utils/error.utils.js.map +1 -0
- package/dist/utils/index.d.ts +3 -1
- package/dist/utils/index.js +3 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/probe-scan-cost.utils.d.ts +5 -0
- package/dist/utils/probe-scan-cost.utils.js +21 -0
- package/dist/utils/probe-scan-cost.utils.js.map +1 -0
- package/dist/utils/probe-webhook-signature.utils.d.ts +0 -2
- package/dist/utils/probe-webhook-signature.utils.js +1 -2
- package/dist/utils/probe-webhook-signature.utils.js.map +1 -1
- package/package.json +24 -14
- package/src/api/index.ts +6 -0
- package/src/api/probe-scan.api.test.ts +47 -0
- package/src/api/probe-scan.api.ts +203 -0
- package/src/api/probe-scan.application.api.test.ts +35 -0
- package/src/api/probe-scan.application.api.ts +157 -0
- package/src/api/probe-usage.api.ts +47 -0
- package/src/api/probe-usage.application.api.ts +25 -0
- package/src/api/probe-webhook.api.test.ts +17 -0
- package/src/api/probe-webhook.api.ts +119 -0
- package/src/api/probe-webhook.application.api.test.ts +18 -0
- package/src/api/probe-webhook.application.api.ts +141 -0
- package/src/constants/index.ts +1 -0
- package/src/index.ts +205 -0
- package/src/types/enum/api-error.enum.ts +33 -0
- package/src/types/enum/index.ts +2 -0
- package/src/types/enum/probe-scan.enum.ts +44 -0
- package/src/types/index.ts +2 -0
- package/src/types/interface/api/index.ts +5 -0
- package/src/types/interface/api/requests/index.ts +3 -0
- package/src/types/interface/api/requests/probe-scan.request.ts +54 -0
- package/src/types/interface/api/requests/probe-usage.request.ts +7 -0
- package/src/types/interface/api/requests/probe-webhook.request.ts +33 -0
- package/src/types/interface/api/responses/index.ts +3 -0
- package/src/types/interface/api/responses/probe-scan.response.ts +45 -0
- package/src/types/interface/api/responses/probe-usage.response.ts +25 -0
- package/src/types/interface/api/responses/probe-webhook.response.ts +24 -0
- package/src/types/interface/api/type-message/api-error.ts +7 -0
- package/src/types/interface/api/type-message/base-paginate.ts +11 -0
- package/src/types/interface/api/type-message/response.ts +6 -0
- package/src/types/interface/index.ts +2 -0
- package/src/types/interface/models/index.ts +3 -0
- package/src/types/interface/models/probe-scan.dto.ts +67 -0
- package/src/types/interface/models/probe-webhook-delivery.dto.ts +73 -0
- package/src/types/interface/models/probe-webhook.dto.ts +29 -0
- package/src/types/tests/probe.dto.test.ts +156 -0
- package/src/utils/enum.utils.ts +1 -0
- package/src/utils/error.utils.ts +30 -0
- package/src/utils/index.ts +4 -0
- package/src/utils/probe-scan-cost.utils.ts +101 -0
- package/src/utils/probe-webhook-signature.utils.ts +56 -0
- package/tsconfig.check.json +15 -0
- package/dist/types/interface/dto/index.d.ts +0 -1
- package/dist/types/interface/dto/index.js +0 -18
- package/dist/types/interface/dto/index.js.map +0 -1
- package/dist/types/interface/dto/probe-webhook-delivery.dto.d.ts +0 -7
- package/dist/types/interface/dto/probe-webhook-delivery.dto.js.map +0 -1
- package/dist/types/interface/models/probe-scan.model.js.map +0 -1
- package/dist/types/interface/models/probe-webhook.model.js.map +0 -1
- package/dist/utils/http.utils.d.ts +0 -3
- package/dist/utils/http.utils.js +0 -20
- package/dist/utils/http.utils.js.map +0 -1
- /package/dist/types/interface/{dto → models}/probe-webhook-delivery.dto.js +0 -0
|
@@ -0,0 +1,43 @@
|
|
|
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 __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
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
const api = __importStar(require("./probe-webhook.application.api"));
|
|
37
|
+
const _create = api.createProbeWebhookApplication;
|
|
38
|
+
const _list = api.listProbeWebhookApplication;
|
|
39
|
+
const _delete = api.deleteProbeWebhookApplication;
|
|
40
|
+
void _create;
|
|
41
|
+
void _list;
|
|
42
|
+
void _delete;
|
|
43
|
+
//# sourceMappingURL=probe-webhook.application.api.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"probe-webhook.application.api.test.js","sourceRoot":"","sources":["../../src/api/probe-webhook.application.api.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,qEAAuD;AAIvD,MAAM,OAAO,GAA6C,GAAG,CAAC,6BAA6B,CAAC;AAC5F,MAAM,KAAK,GAA2C,GAAG,CAAC,2BAA2B,CAAC;AACtF,MAAM,OAAO,GAA6C,GAAG,CAAC,6BAA6B,CAAC;AAE5F,KAAK,OAAO,CAAC;AACb,KAAK,KAAK,CAAC;AACX,KAAK,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,59 @@
|
|
|
1
1
|
import { IAxiosRetryConfig } from 'axios-retry';
|
|
2
2
|
import * as probeScanApi from './api/probe-scan.api';
|
|
3
3
|
import * as probeWebhookApi from './api/probe-webhook.api';
|
|
4
|
+
import * as probeScanApplicationApi from './api/probe-scan.application.api';
|
|
5
|
+
import * as probeWebhookApplicationApi from './api/probe-webhook.application.api';
|
|
6
|
+
import * as probeUsageApi from './api/probe-usage.api';
|
|
7
|
+
import * as probeUsageApplicationApi from './api/probe-usage.application.api';
|
|
4
8
|
export * from './api';
|
|
5
9
|
export * from './types';
|
|
6
10
|
export * from './utils';
|
|
11
|
+
export * from './constants';
|
|
12
|
+
export declare const API_KEY_HEADER = "abyss-api-key";
|
|
13
|
+
export declare const API_KEY_APPLICATION_HEADER = "abyss-api-key-application";
|
|
14
|
+
export declare const ADMIN_TOKEN_HEADER = "abyss-admin-token";
|
|
7
15
|
export declare const PROBE_WEBHOOK_SIGNATURE_HEADER = "x-probe-signature";
|
|
8
16
|
export declare const PROBE_WEBHOOK_SIGNATURE_ALGORITHM = "sha256";
|
|
9
17
|
type CoreConfig = {
|
|
10
18
|
token?: string;
|
|
11
19
|
apiKey?: string;
|
|
20
|
+
adminToken?: string;
|
|
12
21
|
baseURL?: string;
|
|
13
22
|
};
|
|
14
23
|
type AbyssProbeCoreSDK = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
probe: {
|
|
25
|
+
scan: typeof probeScanApi.scan;
|
|
26
|
+
scanSync: typeof probeScanApi.scanSync;
|
|
27
|
+
scanAsync: typeof probeScanApi.scanAsync;
|
|
28
|
+
getScan: typeof probeScanApi.getScan;
|
|
29
|
+
listScans: typeof probeScanApi.listScans;
|
|
30
|
+
usage: {
|
|
31
|
+
get: typeof probeUsageApi.getProbeUsage;
|
|
32
|
+
};
|
|
33
|
+
webhook: {
|
|
34
|
+
create: typeof probeWebhookApi.createProbeWebhook;
|
|
35
|
+
list: typeof probeWebhookApi.listProbeWebhook;
|
|
36
|
+
delete: typeof probeWebhookApi.deleteProbeWebhook;
|
|
37
|
+
update: typeof probeWebhookApi.updateProbeWebhook;
|
|
38
|
+
listDeliveries: typeof probeWebhookApi.listProbeWebhookDeliveries;
|
|
39
|
+
};
|
|
40
|
+
application: {
|
|
41
|
+
scan: typeof probeScanApplicationApi.scanApplication;
|
|
42
|
+
scanSync: typeof probeScanApplicationApi.scanSyncApplication;
|
|
43
|
+
scanAsync: typeof probeScanApplicationApi.scanAsyncApplication;
|
|
44
|
+
getScan: typeof probeScanApplicationApi.getScanApplication;
|
|
45
|
+
listScans: typeof probeScanApplicationApi.listScansApplication;
|
|
46
|
+
usage: {
|
|
47
|
+
get: typeof probeUsageApplicationApi.getProbeUsageApplication;
|
|
48
|
+
};
|
|
49
|
+
webhook: {
|
|
50
|
+
create: typeof probeWebhookApplicationApi.createProbeWebhookApplication;
|
|
51
|
+
list: typeof probeWebhookApplicationApi.listProbeWebhookApplication;
|
|
52
|
+
delete: typeof probeWebhookApplicationApi.deleteProbeWebhookApplication;
|
|
53
|
+
update: typeof probeWebhookApplicationApi.updateProbeWebhookApplication;
|
|
54
|
+
listDeliveries: typeof probeWebhookApplicationApi.listProbeWebhookDeliveriesApplication;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
24
57
|
};
|
|
25
58
|
};
|
|
26
59
|
export declare class AbyssProbeCore {
|
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
|
};
|
|
@@ -30,16 +40,23 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
30
40
|
};
|
|
31
41
|
var _a;
|
|
32
42
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
-
exports.AbyssProbeCore = exports.PROBE_WEBHOOK_SIGNATURE_ALGORITHM = exports.PROBE_WEBHOOK_SIGNATURE_HEADER = void 0;
|
|
43
|
+
exports.AbyssProbeCore = exports.PROBE_WEBHOOK_SIGNATURE_ALGORITHM = exports.PROBE_WEBHOOK_SIGNATURE_HEADER = exports.ADMIN_TOKEN_HEADER = exports.API_KEY_APPLICATION_HEADER = exports.API_KEY_HEADER = void 0;
|
|
34
44
|
const axios_1 = __importDefault(require("axios"));
|
|
35
45
|
const axios_retry_1 = __importStar(require("axios-retry"));
|
|
36
46
|
const probeScanApi = __importStar(require("./api/probe-scan.api"));
|
|
37
47
|
const probeWebhookApi = __importStar(require("./api/probe-webhook.api"));
|
|
38
|
-
const
|
|
48
|
+
const probeScanApplicationApi = __importStar(require("./api/probe-scan.application.api"));
|
|
49
|
+
const probeWebhookApplicationApi = __importStar(require("./api/probe-webhook.application.api"));
|
|
50
|
+
const probeUsageApi = __importStar(require("./api/probe-usage.api"));
|
|
51
|
+
const probeUsageApplicationApi = __importStar(require("./api/probe-usage.application.api"));
|
|
39
52
|
__exportStar(require("./api"), exports);
|
|
40
53
|
__exportStar(require("./types"), exports);
|
|
41
54
|
__exportStar(require("./utils"), exports);
|
|
42
|
-
|
|
55
|
+
__exportStar(require("./constants"), exports);
|
|
56
|
+
const DEFAULT_BASE_URL = 'https://probe-api.abyss-project.fr/api/';
|
|
57
|
+
exports.API_KEY_HEADER = 'abyss-api-key';
|
|
58
|
+
exports.API_KEY_APPLICATION_HEADER = 'abyss-api-key-application';
|
|
59
|
+
exports.ADMIN_TOKEN_HEADER = 'abyss-admin-token';
|
|
43
60
|
exports.PROBE_WEBHOOK_SIGNATURE_HEADER = 'x-probe-signature';
|
|
44
61
|
exports.PROBE_WEBHOOK_SIGNATURE_ALGORITHM = 'sha256';
|
|
45
62
|
const NUMBER_RETRY_API = 10;
|
|
@@ -57,15 +74,39 @@ class AbyssProbeCore {
|
|
|
57
74
|
}
|
|
58
75
|
static buildSDK() {
|
|
59
76
|
return {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
77
|
+
probe: {
|
|
78
|
+
scan: probeScanApi.scan,
|
|
79
|
+
scanSync: probeScanApi.scanSync,
|
|
80
|
+
scanAsync: probeScanApi.scanAsync,
|
|
81
|
+
getScan: probeScanApi.getScan,
|
|
82
|
+
listScans: probeScanApi.listScans,
|
|
83
|
+
usage: {
|
|
84
|
+
get: probeUsageApi.getProbeUsage,
|
|
85
|
+
},
|
|
86
|
+
webhook: {
|
|
87
|
+
create: probeWebhookApi.createProbeWebhook,
|
|
88
|
+
list: probeWebhookApi.listProbeWebhook,
|
|
89
|
+
delete: probeWebhookApi.deleteProbeWebhook,
|
|
90
|
+
update: probeWebhookApi.updateProbeWebhook,
|
|
91
|
+
listDeliveries: probeWebhookApi.listProbeWebhookDeliveries,
|
|
92
|
+
},
|
|
93
|
+
application: {
|
|
94
|
+
scan: probeScanApplicationApi.scanApplication,
|
|
95
|
+
scanSync: probeScanApplicationApi.scanSyncApplication,
|
|
96
|
+
scanAsync: probeScanApplicationApi.scanAsyncApplication,
|
|
97
|
+
getScan: probeScanApplicationApi.getScanApplication,
|
|
98
|
+
listScans: probeScanApplicationApi.listScansApplication,
|
|
99
|
+
usage: {
|
|
100
|
+
get: probeUsageApplicationApi.getProbeUsageApplication,
|
|
101
|
+
},
|
|
102
|
+
webhook: {
|
|
103
|
+
create: probeWebhookApplicationApi.createProbeWebhookApplication,
|
|
104
|
+
list: probeWebhookApplicationApi.listProbeWebhookApplication,
|
|
105
|
+
delete: probeWebhookApplicationApi.deleteProbeWebhookApplication,
|
|
106
|
+
update: probeWebhookApplicationApi.updateProbeWebhookApplication,
|
|
107
|
+
listDeliveries: probeWebhookApplicationApi.listProbeWebhookDeliveriesApplication,
|
|
108
|
+
},
|
|
109
|
+
},
|
|
69
110
|
},
|
|
70
111
|
};
|
|
71
112
|
}
|
|
@@ -88,7 +129,10 @@ class AbyssProbeCore {
|
|
|
88
129
|
_a.axios.defaults.headers.common.Authorization = `Bearer ${config.token}`;
|
|
89
130
|
}
|
|
90
131
|
if (config.apiKey) {
|
|
91
|
-
_a.axios.defaults.headers.common[
|
|
132
|
+
_a.axios.defaults.headers.common[exports.API_KEY_HEADER] = `${config.apiKey}`;
|
|
133
|
+
}
|
|
134
|
+
if (config.adminToken) {
|
|
135
|
+
_a.axios.defaults.headers.common[exports.ADMIN_TOKEN_HEADER] = `${config.adminToken}`;
|
|
92
136
|
}
|
|
93
137
|
}
|
|
94
138
|
static getConfig() {
|
|
@@ -100,6 +144,7 @@ _a = AbyssProbeCore;
|
|
|
100
144
|
AbyssProbeCore.config = {
|
|
101
145
|
token: '',
|
|
102
146
|
apiKey: '',
|
|
147
|
+
adminToken: '',
|
|
103
148
|
baseURL: DEFAULT_BASE_URL,
|
|
104
149
|
};
|
|
105
150
|
AbyssProbeCore.axios = axios_1.default.create({
|
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,mEAAqD;AACrD,yEAA2D;AAC3D,0FAA4E;AAC5E,gGAAkF;AAClF,qEAAuD;AACvD,4FAA8E;AAE9E,wCAAsB;AACtB,0CAAwB;AACxB,0CAAwB;AACxB,8CAA4B;AAE5B,MAAM,gBAAgB,GAAG,yCAAyC,CAAC;AAEtD,QAAA,cAAc,GAAG,eAAe,CAAC;AAMjC,QAAA,0BAA0B,GAAG,2BAA2B,CAAC;AACzD,QAAA,kBAAkB,GAAG,mBAAmB,CAAC;AAOzC,QAAA,8BAA8B,GAAG,mBAAmB,CAAC;AACrD,QAAA,iCAAiC,GAAG,QAAQ,CAAC;AAE1D,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAC5B,MAAM,wBAAwB,GAAG,IAAI,CAAC;AACtC,MAAM,WAAW,GAAG;IAClB,GAAG;IACH,GAAG;CACJ,CAAC;AAsEF,MAAa,cAAc;IAclB,MAAM,KAAK,GAAG;QACnB,IAAI,CAAC,EAAc,CAAC,IAAI,EAAE,CAAC;YACzB,EAAc,CAAC,IAAI,GAAG,EAAc,CAAC,QAAQ,EAAE,CAAC;QAClD,CAAC;QACD,OAAO,EAAc,CAAC,IAAI,CAAC;IAC7B,CAAC;IAEO,MAAM,CAAC,QAAQ;QACrB,OAAO;YACL,KAAK,EAAE;gBACL,IAAI,EAAE,YAAY,CAAC,IAAI;gBACvB,QAAQ,EAAE,YAAY,CAAC,QAAQ;gBAC/B,SAAS,EAAE,YAAY,CAAC,SAAS;gBACjC,OAAO,EAAE,YAAY,CAAC,OAAO;gBAC7B,SAAS,EAAE,YAAY,CAAC,SAAS;gBACjC,KAAK,EAAE;oBACL,GAAG,EAAE,aAAa,CAAC,aAAa;iBACjC;gBACD,OAAO,EAAE;oBACP,MAAM,EAAE,eAAe,CAAC,kBAAkB;oBAC1C,IAAI,EAAE,eAAe,CAAC,gBAAgB;oBACtC,MAAM,EAAE,eAAe,CAAC,kBAAkB;oBAC1C,MAAM,EAAE,eAAe,CAAC,kBAAkB;oBAC1C,cAAc,EAAE,eAAe,CAAC,0BAA0B;iBAC3D;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,uBAAuB,CAAC,eAAe;oBAC7C,QAAQ,EAAE,uBAAuB,CAAC,mBAAmB;oBACrD,SAAS,EAAE,uBAAuB,CAAC,oBAAoB;oBACvD,OAAO,EAAE,uBAAuB,CAAC,kBAAkB;oBACnD,SAAS,EAAE,uBAAuB,CAAC,oBAAoB;oBACvD,KAAK,EAAE;wBACL,GAAG,EAAE,wBAAwB,CAAC,wBAAwB;qBACvD;oBACD,OAAO,EAAE;wBACP,MAAM,EAAE,0BAA0B,CAAC,6BAA6B;wBAChE,IAAI,EAAE,0BAA0B,CAAC,2BAA2B;wBAC5D,MAAM,EAAE,0BAA0B,CAAC,6BAA6B;wBAChE,MAAM,EAAE,0BAA0B,CAAC,6BAA6B;wBAChE,cAAc,EAAE,0BAA0B,CAAC,qCAAqC;qBACjF;iBACF;aACF;SACF,CAAC;IACJ,CAAC;IAEM,MAAM,CAAC,gBAAgB,CAAC,gBAAoC;QACjE,IAAA,qBAAU,EAAC,EAAc,CAAC,KAAK,EAAE;YAC/B,OAAO,EAAE,gBAAgB;YACzB,UAAU,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,GAAG,wBAAwB;YACjE,cAAc,EAAE,CAAC,KAAK,EAAE,EAAE,CACxB,IAAA,+CAAiC,EAAC,KAAK,CAAC;gBACxC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,CAAC;YACrD,GAAG,gBAAgB;SACpB,CAAC,CAAC;IACL,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,MAAkB;QACxC,EAAc,CAAC,IAAI,GAAG,IAAI,CAAC;QAE3B,EAAc,CAAC,MAAM,GAAG,EAAE,GAAG,EAAc,CAAC,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;QAEhE,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,EAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QACzD,CAAC;QAED,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YACjB,EAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,GAAG,UAAU,MAAM,CAAC,KAAK,EAAE,CAAC;QACxF,CAAC;QAED,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;YAClB,EAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,sBAAc,CAAC,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;QACpF,CAAC;QAED,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;YACtB,EAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,0BAAkB,CAAC,GAAG,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QAC5F,CAAC;IACH,CAAC;IAEM,MAAM,CAAC,SAAS;QACrB,OAAO,EAAc,CAAC,MAAM,CAAC;IAC/B,CAAC;;AA/FH,wCAgGC;;AA/FgB,qBAAM,GAAG;IACtB,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,UAAU,EAAE,EAAE;IACd,OAAO,EAAE,gBAAgB;CAC1B,AALoB,CAKnB;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"}
|
|
@@ -13,5 +13,19 @@ export declare enum Code {
|
|
|
13
13
|
internalServerError = "internal_server_error",
|
|
14
14
|
serviceUnavailable = "service_unavailable",
|
|
15
15
|
invalidData = "invalid_data",
|
|
16
|
-
notImplemented = "not_implemented"
|
|
16
|
+
notImplemented = "not_implemented",
|
|
17
|
+
retrospectiveCannotBeModifiedWhenCompleted = "retrospective_cannot_be_modified_when_completed",
|
|
18
|
+
retrospectiveActionNotAllowedInPhase = "retrospective_action_not_allowed_in_phase",
|
|
19
|
+
retrospectiveVoteBudgetExhausted = "retrospective_vote_budget_exhausted",
|
|
20
|
+
retrospectiveActionLimitReached = "retrospective_action_limit_reached",
|
|
21
|
+
atlasDocumentLimitReached = "atlas_document_limit_reached",
|
|
22
|
+
boardCardDocumentLimitReached = "board_card_document_limit_reached",
|
|
23
|
+
boardCardMoveInvalidDestination = "board_card_move_invalid_destination",
|
|
24
|
+
boardCardLinkLimitReached = "board_card_link_limit_reached",
|
|
25
|
+
boardCardLinkAlreadyExists = "board_card_link_already_exists",
|
|
26
|
+
boardCardLinkToSelf = "board_card_link_to_self",
|
|
27
|
+
shortLinkProtected = "short_link_protected",
|
|
28
|
+
drawImageLimitReached = "draw_image_limit_reached",
|
|
29
|
+
drawImageOwnerRequired = "draw_image_owner_required",
|
|
30
|
+
drawImageNotInDraw = "draw_image_not_in_draw"
|
|
17
31
|
}
|
|
@@ -19,5 +19,19 @@ var Code;
|
|
|
19
19
|
Code["serviceUnavailable"] = "service_unavailable";
|
|
20
20
|
Code["invalidData"] = "invalid_data";
|
|
21
21
|
Code["notImplemented"] = "not_implemented";
|
|
22
|
+
Code["retrospectiveCannotBeModifiedWhenCompleted"] = "retrospective_cannot_be_modified_when_completed";
|
|
23
|
+
Code["retrospectiveActionNotAllowedInPhase"] = "retrospective_action_not_allowed_in_phase";
|
|
24
|
+
Code["retrospectiveVoteBudgetExhausted"] = "retrospective_vote_budget_exhausted";
|
|
25
|
+
Code["retrospectiveActionLimitReached"] = "retrospective_action_limit_reached";
|
|
26
|
+
Code["atlasDocumentLimitReached"] = "atlas_document_limit_reached";
|
|
27
|
+
Code["boardCardDocumentLimitReached"] = "board_card_document_limit_reached";
|
|
28
|
+
Code["boardCardMoveInvalidDestination"] = "board_card_move_invalid_destination";
|
|
29
|
+
Code["boardCardLinkLimitReached"] = "board_card_link_limit_reached";
|
|
30
|
+
Code["boardCardLinkAlreadyExists"] = "board_card_link_already_exists";
|
|
31
|
+
Code["boardCardLinkToSelf"] = "board_card_link_to_self";
|
|
32
|
+
Code["shortLinkProtected"] = "short_link_protected";
|
|
33
|
+
Code["drawImageLimitReached"] = "draw_image_limit_reached";
|
|
34
|
+
Code["drawImageOwnerRequired"] = "draw_image_owner_required";
|
|
35
|
+
Code["drawImageNotInDraw"] = "draw_image_not_in_draw";
|
|
22
36
|
})(Code || (exports.Code = Code = {}));
|
|
23
37
|
//# 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":";;;
|
|
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,IA0BX;AA1BD,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;IAClC,sGAA8F,CAAA;IAC9F,0FAAkF,CAAA;IAClF,gFAAwE,CAAA;IACxE,8EAAsE,CAAA;IACtE,kEAA0D,CAAA;IAC1D,2EAAmE,CAAA;IACnE,+EAAuE,CAAA;IACvE,mEAA2D,CAAA;IAC3D,qEAA6D,CAAA;IAC7D,uDAA+C,CAAA;IAC/C,mDAA2C,CAAA;IAC3C,0DAAkD,CAAA;IAClD,4DAAoD,CAAA;IACpD,qDAA6C,CAAA;AAC/C,CAAC,EA1BW,IAAI,oBAAJ,IAAI,QA0Bf"}
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./interface"), exports);
|
|
18
17
|
__exportStar(require("./enum"), exports);
|
|
18
|
+
__exportStar(require("./interface"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,8CAA4B"}
|
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./probe-scan.request"), exports);
|
|
18
|
+
__exportStar(require("./probe-usage.request"), exports);
|
|
18
19
|
__exportStar(require("./probe-webhook.request"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,0DAAwC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,wDAAsC;AACtC,0DAAwC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"probe-usage.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/probe-usage.request.ts"],"names":[],"mappings":""}
|
|
@@ -4,3 +4,11 @@ export interface IProbeWebhookScopeQuery {
|
|
|
4
4
|
export interface ICreateProbeWebhookBody {
|
|
5
5
|
callbackUrl: string;
|
|
6
6
|
}
|
|
7
|
+
export interface IUpdateProbeWebhookBody {
|
|
8
|
+
callbackUrl?: string;
|
|
9
|
+
active?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface IListProbeWebhookDeliveriesQuery extends IProbeWebhookScopeQuery {
|
|
12
|
+
page?: number;
|
|
13
|
+
limit?: number;
|
|
14
|
+
}
|
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./probe-scan.response"), exports);
|
|
18
|
+
__exportStar(require("./probe-usage.response"), exports);
|
|
18
19
|
__exportStar(require("./probe-webhook.response"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,2DAAyC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,yDAAuC;AACvC,2DAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"probe-usage.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/probe-usage.response.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IResponse } from '../type-message/response';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { BasePaginate } from '../type-message/base-paginate';
|
|
3
|
+
import { IProbeWebhook, IProbeWebhookDelivery } from '../../models';
|
|
4
|
+
export type ICreateProbeWebhookResponse = IResponse<IProbeWebhook>;
|
|
4
5
|
export interface IListProbeWebhookData {
|
|
5
6
|
webhooks: IProbeWebhook[];
|
|
6
7
|
}
|
|
@@ -8,3 +9,5 @@ export type IListProbeWebhookResponse = IResponse<IListProbeWebhookData>;
|
|
|
8
9
|
export type IDeleteProbeWebhookResponse = IResponse<{
|
|
9
10
|
ok: true;
|
|
10
11
|
}>;
|
|
12
|
+
export type IUpdateProbeWebhookResponse = IResponse<IProbeWebhook>;
|
|
13
|
+
export type IListProbeWebhookDeliveriesResponse = IResponse<BasePaginate<IProbeWebhookDelivery>>;
|
|
@@ -15,6 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./models"), exports);
|
|
18
|
-
__exportStar(require("./dto"), exports);
|
|
19
18
|
__exportStar(require("./api"), exports);
|
|
20
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/interface/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,wCAAsB
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/interface/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,wCAAsB"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export * from './probe-scan.
|
|
2
|
-
export * from './probe-webhook.
|
|
1
|
+
export * from './probe-scan.dto';
|
|
2
|
+
export * from './probe-webhook.dto';
|
|
3
|
+
export * from './probe-webhook-delivery.dto';
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./probe-scan.
|
|
18
|
-
__exportStar(require("./probe-webhook.
|
|
17
|
+
__exportStar(require("./probe-scan.dto"), exports);
|
|
18
|
+
__exportStar(require("./probe-webhook.dto"), exports);
|
|
19
|
+
__exportStar(require("./probe-webhook-delivery.dto"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/interface/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/interface/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,sDAAoC;AACpC,+DAA6C"}
|
|
@@ -5,6 +5,13 @@ export interface IProbeScanDetail {
|
|
|
5
5
|
verdict: ProbeScanVerdict | null;
|
|
6
6
|
viruses: string[] | null;
|
|
7
7
|
context: Record<string, unknown> | null;
|
|
8
|
+
fileName: string;
|
|
9
|
+
fileSize: number;
|
|
10
|
+
mimeType: string;
|
|
11
|
+
mode: ProbeScanMode;
|
|
12
|
+
startedAt: Date;
|
|
13
|
+
finishedAt: Date | null;
|
|
14
|
+
costUnits: number | null;
|
|
8
15
|
}
|
|
9
16
|
export interface IProbeScanHistoryItem {
|
|
10
17
|
scanId: string;
|
|
@@ -18,5 +25,6 @@ export interface IProbeScanHistoryItem {
|
|
|
18
25
|
context: Record<string, unknown> | null;
|
|
19
26
|
startedAt: Date;
|
|
20
27
|
finishedAt: Date | null;
|
|
28
|
+
costUnits: number | null;
|
|
21
29
|
createdAt: Date;
|
|
22
30
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"probe-scan.dto.js","sourceRoot":"","sources":["../../../../src/types/interface/models/probe-scan.dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ProbeScanVerdict } from '../../enum';
|
|
2
|
+
export interface IProbeWebhookDeliveryPayload {
|
|
3
|
+
scanId: string;
|
|
4
|
+
context: Record<string, unknown> | null;
|
|
5
|
+
verdict: ProbeScanVerdict;
|
|
6
|
+
viruses: string[];
|
|
7
|
+
costUnits: number | null;
|
|
8
|
+
}
|
|
9
|
+
export interface IProbeWebhookDelivery {
|
|
10
|
+
id: string;
|
|
11
|
+
webhookId: string | null;
|
|
12
|
+
scanId: string;
|
|
13
|
+
url: string;
|
|
14
|
+
statusCode: number | null;
|
|
15
|
+
success: boolean;
|
|
16
|
+
attemptedAt: Date;
|
|
17
|
+
error: string | null;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"probe-webhook-delivery.dto.js","sourceRoot":"","sources":["../../../../src/types/interface/models/probe-webhook-delivery.dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"probe-webhook.dto.js","sourceRoot":"","sources":["../../../../src/types/interface/models/probe-webhook.dto.ts"],"names":[],"mappings":""}
|