@ampsec/platform-client 28.0.2 → 28.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 { SimpleUserDto } from './users.dto';
5
6
  export type FindingsStatusPathDto = {
6
7
  /** Id of the connector to which the finding applies */
7
8
  id: string;
@@ -43,5 +44,7 @@ export type FindingUpsertDto = BaseUpsertDto & {
43
44
  nextNotificationAfter?: string;
44
45
  /** Number of times this finding was marked PENDING_VERIFIED. Defaults to `0` */
45
46
  verificationCount?: number;
47
+ /** Optionally populated when requested through query param `include=user` */
48
+ user?: SimpleUserDto;
46
49
  };
47
50
  export type FindingDto = BaseDto & FindingUpsertDto;
@@ -1,5 +1,17 @@
1
1
  import { ChangeAwareDto, ChangeAwareUpsertDto } from './base.dto';
2
2
  import { RiskContributorUpsertDto } from './riskContributors.dto';
3
+ export type SimpleUserDto = {
4
+ /** Id of the user */
5
+ id?: string;
6
+ /** First name of the user */
7
+ firstName?: string;
8
+ /** Last name of the user */
9
+ lastName?: string;
10
+ /** Email of the user */
11
+ email?: string;
12
+ /** Department of the user */
13
+ department?: string;
14
+ };
3
15
  export type UserUpsertDto = ChangeAwareUpsertDto & {
4
16
  /** Tenant ID */
5
17
  tid: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "28.0.2",
3
+ "version": "28.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 {SimpleUserDto} from './users.dto';
5
6
 
6
7
  export type FindingsStatusPathDto = {
7
8
  /** Id of the connector to which the finding applies */
@@ -45,6 +46,8 @@ export type FindingUpsertDto = BaseUpsertDto & {
45
46
  nextNotificationAfter?: string;
46
47
  /** Number of times this finding was marked PENDING_VERIFIED. Defaults to `0` */
47
48
  verificationCount?: number;
49
+ /** Optionally populated when requested through query param `include=user` */
50
+ user?: SimpleUserDto;
48
51
  };
49
52
 
50
53
  export type FindingDto = BaseDto & FindingUpsertDto;
@@ -1,6 +1,19 @@
1
1
  import {ChangeAwareDto, ChangeAwareUpsertDto} from './base.dto';
2
2
  import {RiskContributorUpsertDto} from './riskContributors.dto';
3
3
 
4
+ export type SimpleUserDto = {
5
+ /** Id of the user */
6
+ id?: string;
7
+ /** First name of the user */
8
+ firstName?: string;
9
+ /** Last name of the user */
10
+ lastName?: string;
11
+ /** Email of the user */
12
+ email?: string;
13
+ /** Department of the user */
14
+ department?: string;
15
+ };
16
+
4
17
  export type UserUpsertDto = ChangeAwareUpsertDto & {
5
18
  /** Tenant ID */
6
19
  tid: string;