@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.
Files changed (145) hide show
  1. package/.eslintrc.js +32 -0
  2. package/.prettierrc +5 -0
  3. package/README.md +4 -14
  4. package/dist/api/index.d.ts +4 -0
  5. package/dist/api/index.js +4 -0
  6. package/dist/api/index.js.map +1 -1
  7. package/dist/api/probe-scan.api.d.ts +4 -6
  8. package/dist/api/probe-scan.api.js +34 -30
  9. package/dist/api/probe-scan.api.js.map +1 -1
  10. package/dist/api/probe-scan.api.test.js +27 -7
  11. package/dist/api/probe-scan.api.test.js.map +1 -1
  12. package/dist/api/probe-scan.application.api.d.ts +7 -0
  13. package/dist/api/probe-scan.application.api.js +40 -0
  14. package/dist/api/probe-scan.application.api.js.map +1 -0
  15. package/dist/api/probe-scan.application.api.test.d.ts +1 -0
  16. package/dist/api/probe-scan.application.api.test.js +51 -0
  17. package/dist/api/probe-scan.application.api.test.js.map +1 -0
  18. package/dist/api/probe-usage.api.d.ts +2 -0
  19. package/dist/api/probe-usage.api.js +24 -0
  20. package/dist/api/probe-usage.api.js.map +1 -0
  21. package/dist/api/probe-usage.application.api.d.ts +2 -0
  22. package/dist/api/probe-usage.application.api.js +12 -0
  23. package/dist/api/probe-usage.application.api.js.map +1 -0
  24. package/dist/api/probe-webhook.api.d.ts +3 -1
  25. package/dist/api/probe-webhook.api.js +28 -8
  26. package/dist/api/probe-webhook.api.js.map +1 -1
  27. package/dist/api/probe-webhook.api.test.js +17 -7
  28. package/dist/api/probe-webhook.api.test.js.map +1 -1
  29. package/dist/api/probe-webhook.application.api.d.ts +6 -0
  30. package/dist/api/probe-webhook.application.api.js +27 -0
  31. package/dist/api/probe-webhook.application.api.js.map +1 -0
  32. package/dist/api/probe-webhook.application.api.test.d.ts +1 -0
  33. package/dist/api/probe-webhook.application.api.test.js +43 -0
  34. package/dist/api/probe-webhook.application.api.test.js.map +1 -0
  35. package/dist/constants/index.d.ts +1 -0
  36. package/dist/{types/interface/models/probe-scan.model.js → constants/index.js} +1 -1
  37. package/dist/constants/index.js.map +1 -0
  38. package/dist/index.d.ts +42 -9
  39. package/dist/index.js +65 -20
  40. package/dist/index.js.map +1 -1
  41. package/dist/types/enum/api-error.enum.d.ts +15 -1
  42. package/dist/types/enum/api-error.enum.js +14 -0
  43. package/dist/types/enum/api-error.enum.js.map +1 -1
  44. package/dist/types/index.d.ts +1 -1
  45. package/dist/types/index.js +1 -1
  46. package/dist/types/index.js.map +1 -1
  47. package/dist/types/interface/api/requests/index.d.ts +1 -0
  48. package/dist/types/interface/api/requests/index.js +1 -0
  49. package/dist/types/interface/api/requests/index.js.map +1 -1
  50. package/dist/types/interface/api/requests/probe-usage.request.d.ts +3 -0
  51. package/dist/types/interface/{models/probe-webhook.model.js → api/requests/probe-usage.request.js} +1 -1
  52. package/dist/types/interface/api/requests/probe-usage.request.js.map +1 -0
  53. package/dist/types/interface/api/requests/probe-webhook.request.d.ts +8 -0
  54. package/dist/types/interface/api/responses/index.d.ts +1 -0
  55. package/dist/types/interface/api/responses/index.js +1 -0
  56. package/dist/types/interface/api/responses/index.js.map +1 -1
  57. package/dist/types/interface/api/responses/probe-scan.response.d.ts +1 -0
  58. package/dist/types/interface/api/responses/probe-usage.response.d.ts +7 -0
  59. package/dist/types/interface/api/responses/probe-usage.response.js +3 -0
  60. package/dist/types/interface/api/responses/probe-usage.response.js.map +1 -0
  61. package/dist/types/interface/api/responses/probe-webhook.response.d.ts +5 -2
  62. package/dist/types/interface/index.d.ts +0 -1
  63. package/dist/types/interface/index.js +0 -1
  64. package/dist/types/interface/index.js.map +1 -1
  65. package/dist/types/interface/models/index.d.ts +3 -2
  66. package/dist/types/interface/models/index.js +3 -2
  67. package/dist/types/interface/models/index.js.map +1 -1
  68. package/dist/types/interface/models/{probe-scan.model.d.ts → probe-scan.dto.d.ts} +8 -0
  69. package/dist/types/interface/models/probe-scan.dto.js +3 -0
  70. package/dist/types/interface/models/probe-scan.dto.js.map +1 -0
  71. package/dist/types/interface/models/probe-webhook-delivery.dto.d.ts +19 -0
  72. package/dist/types/interface/models/probe-webhook-delivery.dto.js.map +1 -0
  73. package/dist/types/interface/models/{probe-webhook.model.d.ts → probe-webhook.dto.d.ts} +1 -3
  74. package/dist/types/interface/models/probe-webhook.dto.js +3 -0
  75. package/dist/types/interface/models/probe-webhook.dto.js.map +1 -0
  76. package/dist/types/tests/probe.dto.test.js +39 -2
  77. package/dist/types/tests/probe.dto.test.js.map +1 -1
  78. package/dist/utils/enum.utils.d.ts +1 -0
  79. package/dist/utils/enum.utils.js +3 -0
  80. package/dist/utils/enum.utils.js.map +1 -0
  81. package/dist/utils/error.utils.d.ts +15 -0
  82. package/dist/utils/error.utils.js +25 -0
  83. package/dist/utils/error.utils.js.map +1 -0
  84. package/dist/utils/index.d.ts +3 -1
  85. package/dist/utils/index.js +3 -1
  86. package/dist/utils/index.js.map +1 -1
  87. package/dist/utils/probe-scan-cost.utils.d.ts +5 -0
  88. package/dist/utils/probe-scan-cost.utils.js +21 -0
  89. package/dist/utils/probe-scan-cost.utils.js.map +1 -0
  90. package/dist/utils/probe-webhook-signature.utils.d.ts +0 -2
  91. package/dist/utils/probe-webhook-signature.utils.js +1 -2
  92. package/dist/utils/probe-webhook-signature.utils.js.map +1 -1
  93. package/package.json +24 -14
  94. package/src/api/index.ts +6 -0
  95. package/src/api/probe-scan.api.test.ts +47 -0
  96. package/src/api/probe-scan.api.ts +203 -0
  97. package/src/api/probe-scan.application.api.test.ts +35 -0
  98. package/src/api/probe-scan.application.api.ts +157 -0
  99. package/src/api/probe-usage.api.ts +47 -0
  100. package/src/api/probe-usage.application.api.ts +25 -0
  101. package/src/api/probe-webhook.api.test.ts +17 -0
  102. package/src/api/probe-webhook.api.ts +119 -0
  103. package/src/api/probe-webhook.application.api.test.ts +18 -0
  104. package/src/api/probe-webhook.application.api.ts +141 -0
  105. package/src/constants/index.ts +1 -0
  106. package/src/index.ts +205 -0
  107. package/src/types/enum/api-error.enum.ts +33 -0
  108. package/src/types/enum/index.ts +2 -0
  109. package/src/types/enum/probe-scan.enum.ts +44 -0
  110. package/src/types/index.ts +2 -0
  111. package/src/types/interface/api/index.ts +5 -0
  112. package/src/types/interface/api/requests/index.ts +3 -0
  113. package/src/types/interface/api/requests/probe-scan.request.ts +54 -0
  114. package/src/types/interface/api/requests/probe-usage.request.ts +7 -0
  115. package/src/types/interface/api/requests/probe-webhook.request.ts +33 -0
  116. package/src/types/interface/api/responses/index.ts +3 -0
  117. package/src/types/interface/api/responses/probe-scan.response.ts +45 -0
  118. package/src/types/interface/api/responses/probe-usage.response.ts +25 -0
  119. package/src/types/interface/api/responses/probe-webhook.response.ts +24 -0
  120. package/src/types/interface/api/type-message/api-error.ts +7 -0
  121. package/src/types/interface/api/type-message/base-paginate.ts +11 -0
  122. package/src/types/interface/api/type-message/response.ts +6 -0
  123. package/src/types/interface/index.ts +2 -0
  124. package/src/types/interface/models/index.ts +3 -0
  125. package/src/types/interface/models/probe-scan.dto.ts +67 -0
  126. package/src/types/interface/models/probe-webhook-delivery.dto.ts +73 -0
  127. package/src/types/interface/models/probe-webhook.dto.ts +29 -0
  128. package/src/types/tests/probe.dto.test.ts +156 -0
  129. package/src/utils/enum.utils.ts +1 -0
  130. package/src/utils/error.utils.ts +30 -0
  131. package/src/utils/index.ts +4 -0
  132. package/src/utils/probe-scan-cost.utils.ts +101 -0
  133. package/src/utils/probe-webhook-signature.utils.ts +56 -0
  134. package/tsconfig.check.json +15 -0
  135. package/dist/types/interface/dto/index.d.ts +0 -1
  136. package/dist/types/interface/dto/index.js +0 -18
  137. package/dist/types/interface/dto/index.js.map +0 -1
  138. package/dist/types/interface/dto/probe-webhook-delivery.dto.d.ts +0 -7
  139. package/dist/types/interface/dto/probe-webhook-delivery.dto.js.map +0 -1
  140. package/dist/types/interface/models/probe-scan.model.js.map +0 -1
  141. package/dist/types/interface/models/probe-webhook.model.js.map +0 -1
  142. package/dist/utils/http.utils.d.ts +0 -3
  143. package/dist/utils/http.utils.js +0 -20
  144. package/dist/utils/http.utils.js.map +0 -1
  145. /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 {};
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=probe-scan.model.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -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
- scan: typeof probeScanApi.scan;
16
- scanSync: typeof probeScanApi.scanSync;
17
- scanAsync: typeof probeScanApi.scanAsync;
18
- getScan: typeof probeScanApi.getScan;
19
- listScans: typeof probeScanApi.listScans;
20
- webhook: {
21
- create: typeof probeWebhookApi.createProbeWebhook;
22
- list: typeof probeWebhookApi.listProbeWebhook;
23
- delete: typeof probeWebhookApi.deleteProbeWebhook;
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 (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
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 utils_1 = require("./utils");
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
- const DEFAULT_BASE_URL = 'https://tools-api.abyss-project.fr/api/';
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
- scan: probeScanApi.scan,
61
- scanSync: probeScanApi.scanSync,
62
- scanAsync: probeScanApi.scanAsync,
63
- getScan: probeScanApi.getScan,
64
- listScans: probeScanApi.listScans,
65
- webhook: {
66
- create: probeWebhookApi.createProbeWebhook,
67
- list: probeWebhookApi.listProbeWebhook,
68
- delete: probeWebhookApi.deleteProbeWebhook,
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[utils_1.API_KEY_HEADER] = `${config.apiKey}`;
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,2DAA+F;AAC/F,mEAAqD;AACrD,yEAA2D;AAC3D,mCAAyC;AAEzC,wCAAsB;AACtB,0CAAwB;AACxB,0CAAwB;AAMxB,MAAM,gBAAgB,GAAG,yCAAyC,CAAC;AAOtD,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;AA0BF,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,IAAI,EAAE,YAAY,CAAC,IAAI;YACvB,QAAQ,EAAE,YAAY,CAAC,QAAQ;YAC/B,SAAS,EAAE,YAAY,CAAC,SAAS;YACjC,OAAO,EAAE,YAAY,CAAC,OAAO;YAC7B,SAAS,EAAE,YAAY,CAAC,SAAS;YACjC,OAAO,EAAE;gBACP,MAAM,EAAE,eAAe,CAAC,kBAAkB;gBAC1C,IAAI,EAAE,eAAe,CAAC,gBAAgB;gBACtC,MAAM,EAAE,eAAe,CAAC,kBAAkB;aAC3C;SACF,CAAC;IACJ,CAAC;IAEM,MAAM,CAAC,gBAAgB,CAAC,gBAAoC;QACjE,IAAA,qBAAU,EAAC,EAAc,CAAC,KAAK,EAAE;YAC/B,OA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,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":";;;AASA,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,mCAAsB,CAAA;IACtB,+CAAkC,CAAA;IAClC,6CAAgC,CAAA;AAClC,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAED,IAAY,IAWX;AAXD,WAAY,IAAI;IACd,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;AACpC,CAAC,EAXW,IAAI,oBAAJ,IAAI,QAWf"}
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"}
@@ -1,2 +1,2 @@
1
- export * from './interface';
2
1
  export * from './enum';
2
+ export * from './interface';
@@ -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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,8CAA4B"}
@@ -1,2 +1,3 @@
1
1
  export * from './probe-scan.request';
2
+ export * from './probe-usage.request';
2
3
  export * from './probe-webhook.request';
@@ -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,3 @@
1
+ export interface IProbeUsageScopeQuery {
2
+ organizationId?: string;
3
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=probe-webhook.model.js.map
3
+ //# sourceMappingURL=probe-usage.request.js.map
@@ -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
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './probe-scan.response';
2
+ export * from './probe-usage.response';
2
3
  export * from './probe-webhook.response';
@@ -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"}
@@ -6,6 +6,7 @@ export interface IScanSyncData {
6
6
  scanId: string;
7
7
  verdict: ProbeScanVerdict;
8
8
  viruses: string[];
9
+ costUnits: number;
9
10
  }
10
11
  export type IScanSyncResponse = IResponse<IScanSyncData>;
11
12
  export interface IScanAsyncData {
@@ -0,0 +1,7 @@
1
+ import { IResponse } from '../type-message/response';
2
+ export interface IProbeUsageData {
3
+ used: number;
4
+ limit: number;
5
+ remaining: number;
6
+ }
7
+ export type IProbeUsageResponse = IResponse<IProbeUsageData>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=probe-usage.response.js.map
@@ -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 { IProbeWebhook, IProbeWebhookCreated } from '../../models';
3
- export type ICreateProbeWebhookResponse = IResponse<IProbeWebhookCreated>;
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>>;
@@ -1,3 +1,2 @@
1
1
  export * from './models';
2
- export * from './dto';
3
2
  export * from './api';
@@ -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;AACtB,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.model';
2
- export * from './probe-webhook.model';
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.model"), exports);
18
- __exportStar(require("./probe-webhook.model"), exports);
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,qDAAmC;AACnC,wDAAsC"}
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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=probe-scan.dto.js.map
@@ -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":""}
@@ -1,9 +1,7 @@
1
1
  export interface IProbeWebhook {
2
2
  id: string;
3
3
  callbackUrl: string;
4
+ secret: string;
4
5
  active: boolean;
5
6
  createdAt: Date;
6
7
  }
7
- export interface IProbeWebhookCreated extends IProbeWebhook {
8
- secret: string;
9
- }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=probe-webhook.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"probe-webhook.dto.js","sourceRoot":"","sources":["../../../../src/types/interface/models/probe-webhook.dto.ts"],"names":[],"mappings":""}