@ampsec/platform-client 44.0.0 → 45.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/build/src/dto/enums/finding.outcome.d.ts +5 -0
- package/build/src/dto/enums/finding.outcome.js +11 -0
- package/build/src/dto/enums/finding.outcome.js.map +1 -0
- package/build/src/dto/findings.dto.d.ts +3 -0
- package/build/src/dto/notification.dto.d.ts +3 -1
- package/package.json +1 -1
- package/src/dto/enums/finding.outcome.ts +6 -0
- package/src/dto/findings.dto.ts +3 -0
- package/src/dto/notification.dto.ts +3 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FindingOutcome = void 0;
|
|
4
|
+
/* eslint-disable no-unused-vars */
|
|
5
|
+
var FindingOutcome;
|
|
6
|
+
(function (FindingOutcome) {
|
|
7
|
+
FindingOutcome["REMEDIATION"] = "remediation";
|
|
8
|
+
FindingOutcome["AWARENESS"] = "awareness";
|
|
9
|
+
FindingOutcome["EDUCATION"] = "education";
|
|
10
|
+
})(FindingOutcome || (exports.FindingOutcome = FindingOutcome = {}));
|
|
11
|
+
//# sourceMappingURL=finding.outcome.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finding.outcome.js","sourceRoot":"","sources":["../../../../src/dto/enums/finding.outcome.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,6CAA2B,CAAA;IAC3B,yCAAuB,CAAA;IACvB,yCAAuB,CAAA;AACzB,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseDto, BaseUpsertDto } from './base.dto';
|
|
2
2
|
import { Category, FindingKind } from './enums';
|
|
3
|
+
import { FindingOutcome } from './enums/finding.outcome';
|
|
3
4
|
import { FindingSeverity } from './enums/finding.severity';
|
|
4
5
|
import { FindingStatus } from './enums/finding.status';
|
|
5
6
|
import { SimpleProviderDto } from './providers.dto';
|
|
@@ -21,6 +22,8 @@ export type FindingUpsertDto = BaseUpsertDto & {
|
|
|
21
22
|
status: FindingStatus;
|
|
22
23
|
/** Severity of the finding, e.g. CRITICAL, HIGH, etc... */
|
|
23
24
|
severity: FindingSeverity;
|
|
25
|
+
/** Desired outcome by surfacing the finding. */
|
|
26
|
+
outcome?: FindingOutcome;
|
|
24
27
|
/** Number of times the user has been engaged to resolve the finding */
|
|
25
28
|
numberOfEngagements: number;
|
|
26
29
|
/** Human readable name of the finding */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseDto, BaseUpsertDto } from './base.dto';
|
|
2
2
|
import { Category, DeliveryStrategyKind, FindingKind, FindingSeverity, NotificationStatus } from './enums';
|
|
3
3
|
import { ContentStrategyKind } from './enums/contentStrategy.kind';
|
|
4
|
+
import { FindingOutcome } from './enums/finding.outcome';
|
|
4
5
|
export type NotificationAddress = {
|
|
5
6
|
/** Connector ID for the notification channel */
|
|
6
7
|
cid?: string;
|
|
@@ -22,7 +23,8 @@ export type FindingNotificationContext = {
|
|
|
22
23
|
category: Category;
|
|
23
24
|
/** Kind of the finding */
|
|
24
25
|
kind: FindingKind;
|
|
25
|
-
|
|
26
|
+
/** Desired outcome of surfacing the finding */
|
|
27
|
+
outcome: FindingOutcome;
|
|
26
28
|
};
|
|
27
29
|
export type VulnerabilityNotificationContext = {
|
|
28
30
|
/** Summary of the vulnerability. */
|
package/package.json
CHANGED
package/src/dto/findings.dto.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {BaseDto, BaseUpsertDto} from './base.dto';
|
|
2
2
|
import {Category, FindingKind} from './enums';
|
|
3
|
+
import {FindingOutcome} from './enums/finding.outcome';
|
|
3
4
|
import {FindingSeverity} from './enums/finding.severity';
|
|
4
5
|
import {FindingStatus} from './enums/finding.status';
|
|
5
6
|
import {SimpleProviderDto} from './providers.dto';
|
|
@@ -23,6 +24,8 @@ export type FindingUpsertDto = BaseUpsertDto & {
|
|
|
23
24
|
status: FindingStatus;
|
|
24
25
|
/** Severity of the finding, e.g. CRITICAL, HIGH, etc... */
|
|
25
26
|
severity: FindingSeverity;
|
|
27
|
+
/** Desired outcome by surfacing the finding. */
|
|
28
|
+
outcome?: FindingOutcome;
|
|
26
29
|
/** Number of times the user has been engaged to resolve the finding */
|
|
27
30
|
numberOfEngagements: number;
|
|
28
31
|
/** Human readable name of the finding */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {BaseDto, BaseUpsertDto} from './base.dto';
|
|
2
2
|
import {Category, DeliveryStrategyKind, FindingKind, FindingSeverity, NotificationStatus} from './enums';
|
|
3
3
|
import {ContentStrategyKind} from './enums/contentStrategy.kind';
|
|
4
|
+
import {FindingOutcome} from './enums/finding.outcome';
|
|
4
5
|
|
|
5
6
|
export type NotificationAddress = {
|
|
6
7
|
/** Connector ID for the notification channel */
|
|
@@ -25,7 +26,8 @@ export type FindingNotificationContext = {
|
|
|
25
26
|
category: Category;
|
|
26
27
|
/** Kind of the finding */
|
|
27
28
|
kind: FindingKind;
|
|
28
|
-
|
|
29
|
+
/** Desired outcome of surfacing the finding */
|
|
30
|
+
outcome: FindingOutcome;
|
|
29
31
|
};
|
|
30
32
|
|
|
31
33
|
export type VulnerabilityNotificationContext = {
|