@ampsec/platform-client 57.6.1 → 57.7.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.
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { AssetKeys } from './assetKeys';
|
|
2
2
|
import { ChangeAwareDto, ChangeAwareUpsertDto } from './base.dto';
|
|
3
3
|
import { GlobalAssetType } from './enums/globalAsset.type';
|
|
4
|
+
export type SimpleAssetDto = {
|
|
5
|
+
/** Id of the asset */
|
|
6
|
+
id?: string;
|
|
7
|
+
/** Human readable name of the asset */
|
|
8
|
+
displayValue?: string;
|
|
9
|
+
};
|
|
4
10
|
export type AssetUpsertDto = ChangeAwareUpsertDto & {
|
|
5
11
|
/** External Keys */
|
|
6
12
|
extKeys: AssetKeys;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SimpleAssetDto } from './assets.dto';
|
|
1
2
|
import { BaseDto, BaseUpsertDto } from './base.dto';
|
|
2
3
|
import { Category, FindingKind } from './enums';
|
|
3
4
|
import { FindingOutcome, FindingSeverity, FindingStatus } from './enums';
|
|
@@ -32,6 +33,8 @@ export type FindingUpsertDto = BaseUpsertDto & {
|
|
|
32
33
|
cid: string;
|
|
33
34
|
/** Id of the provider to which the finding applies */
|
|
34
35
|
pid: string;
|
|
36
|
+
/** Optionally populated when requested through query param `include=asset` */
|
|
37
|
+
asset?: SimpleAssetDto;
|
|
35
38
|
/** Id of the asset to which the finding applies */
|
|
36
39
|
aid?: string | undefined | null;
|
|
37
40
|
/** Id of the user to which the finding applies */
|
package/package.json
CHANGED
package/src/dto/assets.dto.ts
CHANGED
|
@@ -2,6 +2,13 @@ import {AssetKeys} from './assetKeys';
|
|
|
2
2
|
import {ChangeAwareDto, ChangeAwareUpsertDto} from './base.dto';
|
|
3
3
|
import {GlobalAssetType} from './enums/globalAsset.type';
|
|
4
4
|
|
|
5
|
+
export type SimpleAssetDto = {
|
|
6
|
+
/** Id of the asset */
|
|
7
|
+
id?: string;
|
|
8
|
+
/** Human readable name of the asset */
|
|
9
|
+
displayValue?: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
5
12
|
export type AssetUpsertDto = ChangeAwareUpsertDto & {
|
|
6
13
|
/** External Keys */
|
|
7
14
|
extKeys: AssetKeys;
|
package/src/dto/findings.dto.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import {SimpleAssetDto} from './assets.dto';
|
|
1
2
|
import {BaseDto, BaseUpsertDto} from './base.dto';
|
|
2
3
|
import {Category, FindingKind} from './enums';
|
|
3
4
|
import {FindingOutcome, FindingSeverity, FindingStatus} from './enums';
|
|
@@ -34,6 +35,8 @@ export type FindingUpsertDto = BaseUpsertDto & {
|
|
|
34
35
|
cid: string;
|
|
35
36
|
/** Id of the provider to which the finding applies */
|
|
36
37
|
pid: string;
|
|
38
|
+
/** Optionally populated when requested through query param `include=asset` */
|
|
39
|
+
asset?: SimpleAssetDto;
|
|
37
40
|
/** Id of the asset to which the finding applies */
|
|
38
41
|
aid?: string | undefined | null;
|
|
39
42
|
/** Id of the user to which the finding applies */
|