@ampsec/platform-client 16.0.0 → 17.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.
@@ -1,13 +1,14 @@
1
1
  import { BaseDto, BaseUpsertDto } from './base.dto';
2
+ import { Category, FindingKind } from './enums';
2
3
  import { FindingSeverity } from './enums/finding.severity';
3
4
  import { FindingStatus } from './enums/finding.status';
4
5
  export type FindingUpsertDto = BaseUpsertDto & {
5
6
  /** Date the finding was closed */
6
7
  closedAt?: string;
7
8
  /** Category of finding */
8
- category: string;
9
+ category: Category;
9
10
  /** Type of finding */
10
- kind: string;
11
+ kind: FindingKind;
11
12
  /** Status of the finding, e.g. OPEN */
12
13
  status: FindingStatus;
13
14
  /** Severity of the finding, e.g. CRITICAL, HIGH, etc... */
@@ -1,5 +1,5 @@
1
1
  import { ChangeAwareDto, ChangeAwareUpsertDto } from './base.dto';
2
- import { FindingSeverity } from './enums';
2
+ import { Category, FindingSeverity, SaasComponentKind } from './enums';
3
3
  export type SaasComponentMeta = {
4
4
  _findings: {
5
5
  active?: boolean;
@@ -15,11 +15,11 @@ export type SaasComponentUpsertDto = ChangeAwareUpsertDto & {
15
15
  /** Asset Id */
16
16
  aid?: string | undefined;
17
17
  /** Category */
18
- category: string;
18
+ category: Category;
19
19
  /** Connector Id */
20
20
  cid: string;
21
21
  /** */
22
- kind: string;
22
+ kind: SaasComponentKind;
23
23
  /** Context specific information related to the Saas Component */
24
24
  meta: SaasComponentMeta;
25
25
  /** User Id of the affected user */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "16.0.0",
3
+ "version": "17.0.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -15,7 +15,7 @@
15
15
  "clean": "gts clean src",
16
16
  "fix": "gts fix",
17
17
  "test": "jest",
18
- "verify": "npm run lint && npm run test && npm run build"
18
+ "verify": "npm run lint && npm run test && npm run build && npm outdated"
19
19
  },
20
20
  "keywords": [],
21
21
  "author": "Amplifier Security <engineering@amplifiersecurity.com>",
@@ -1,4 +1,5 @@
1
1
  import {BaseDto, BaseUpsertDto} from './base.dto';
2
+ import {Category, FindingKind} from './enums';
2
3
  import {FindingSeverity} from './enums/finding.severity';
3
4
  import {FindingStatus} from './enums/finding.status';
4
5
 
@@ -6,9 +7,9 @@ export type FindingUpsertDto = BaseUpsertDto & {
6
7
  /** Date the finding was closed */
7
8
  closedAt?: string;
8
9
  /** Category of finding */
9
- category: string;
10
+ category: Category;
10
11
  /** Type of finding */
11
- kind: string;
12
+ kind: FindingKind;
12
13
  /** Status of the finding, e.g. OPEN */
13
14
  status: FindingStatus;
14
15
  /** Severity of the finding, e.g. CRITICAL, HIGH, etc... */
@@ -1,5 +1,5 @@
1
1
  import {ChangeAwareDto, ChangeAwareUpsertDto} from './base.dto';
2
- import {FindingSeverity} from './enums';
2
+ import {Category, FindingSeverity, SaasComponentKind} from './enums';
3
3
 
4
4
  export type SaasComponentMeta = {
5
5
  _findings: {
@@ -17,11 +17,11 @@ export type SaasComponentUpsertDto = ChangeAwareUpsertDto & {
17
17
  /** Asset Id */
18
18
  aid?: string | undefined;
19
19
  /** Category */
20
- category: string;
20
+ category: Category;
21
21
  /** Connector Id */
22
22
  cid: string;
23
23
  /** */
24
- kind: string;
24
+ kind: SaasComponentKind;
25
25
  /** Context specific information related to the Saas Component */
26
26
  meta: SaasComponentMeta;
27
27
  /** User Id of the affected user */