@ampsec/platform-client 29.0.0 → 29.1.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.
@@ -2,6 +2,7 @@ import { BaseDto, BaseUpsertDto } from './base.dto';
2
2
  import { Category, FindingKind } from './enums';
3
3
  import { FindingSeverity } from './enums/finding.severity';
4
4
  import { FindingStatus } from './enums/finding.status';
5
+ import { SimpleProviderDto } from './providers.dto';
5
6
  import { SimpleUserDto } from './users.dto';
6
7
  export type FindingsStatusPathDto = {
7
8
  /** Id of the connector to which the finding applies */
@@ -46,5 +47,7 @@ export type FindingUpsertDto = BaseUpsertDto & {
46
47
  verificationCount?: number;
47
48
  /** Optionally populated when requested through query param `include=user` */
48
49
  user?: SimpleUserDto;
50
+ /** Optionally populated when requested through query param `include=provider` */
51
+ provider?: SimpleProviderDto;
49
52
  };
50
53
  export type FindingDto = BaseDto & FindingUpsertDto;
@@ -1,5 +1,10 @@
1
1
  import { BaseDto, BaseUpsertDto } from './base.dto';
2
2
  import { Category } from './enums';
3
+ export type SimpleProviderDto = {
4
+ id?: string;
5
+ displayValue?: string;
6
+ categories?: Category[];
7
+ };
3
8
  export type ProviderUpsertDto = BaseUpsertDto & {
4
9
  /** Human readable name of the provider */
5
10
  displayValue: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "29.0.0",
3
+ "version": "29.1.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -2,6 +2,7 @@ import {BaseDto, BaseUpsertDto} from './base.dto';
2
2
  import {Category, FindingKind} from './enums';
3
3
  import {FindingSeverity} from './enums/finding.severity';
4
4
  import {FindingStatus} from './enums/finding.status';
5
+ import {SimpleProviderDto} from './providers.dto';
5
6
  import {SimpleUserDto} from './users.dto';
6
7
 
7
8
  export type FindingsStatusPathDto = {
@@ -48,6 +49,8 @@ export type FindingUpsertDto = BaseUpsertDto & {
48
49
  verificationCount?: number;
49
50
  /** Optionally populated when requested through query param `include=user` */
50
51
  user?: SimpleUserDto;
52
+ /** Optionally populated when requested through query param `include=provider` */
53
+ provider?: SimpleProviderDto;
51
54
  };
52
55
 
53
56
  export type FindingDto = BaseDto & FindingUpsertDto;
@@ -1,6 +1,12 @@
1
1
  import {BaseDto, BaseUpsertDto} from './base.dto';
2
2
  import {Category} from './enums';
3
3
 
4
+ export type SimpleProviderDto = {
5
+ id?: string;
6
+ displayValue?: string;
7
+ categories?: Category[];
8
+ };
9
+
4
10
  export type ProviderUpsertDto = BaseUpsertDto & {
5
11
  /** Human readable name of the provider */
6
12
  displayValue: string;