@ampsec/platform-client 21.0.0 → 21.2.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,7 @@
1
+ export type IdSummary = {
2
+ id: string;
3
+ etag: string;
4
+ };
1
5
  export type ExtKeyMap = {
2
- [propName: string]: {
3
- id: string;
4
- etag: string;
5
- };
6
+ [propName: string]: IdSummary;
6
7
  };
@@ -2,6 +2,13 @@ import { ChangeAwareDto, ChangeAwareUpsertDto } from './base.dto';
2
2
  import { Category, FindingSeverity, SaasComponentKind } from './enums';
3
3
  export type SaasComponentMeta = {
4
4
  _findings: {
5
+ /**
6
+ * Uses styling to display the finding in the UI
7
+ * - `+` is used to denote success, e.g. `+ACTIVE`
8
+ * - `-` is used to denote failure, e.g. `-FAILED`
9
+ * - `?` is used to denote unknown, e.g. `?ASSIGNED` for a pending not-out-of-sla training
10
+ */
11
+ displayValue?: string;
5
12
  active?: boolean;
6
13
  enabled?: boolean;
7
14
  failedPhishing?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "21.0.0",
3
+ "version": "21.2.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -1,6 +1,8 @@
1
+ export type IdSummary = {
2
+ id: string;
3
+ etag: string;
4
+ };
5
+
1
6
  export type ExtKeyMap = {
2
- [propName: string]: {
3
- id: string;
4
- etag: string;
5
- };
7
+ [propName: string]: IdSummary;
6
8
  };
@@ -3,6 +3,13 @@ import {Category, FindingSeverity, SaasComponentKind} from './enums';
3
3
 
4
4
  export type SaasComponentMeta = {
5
5
  _findings: {
6
+ /**
7
+ * Uses styling to display the finding in the UI
8
+ * - `+` is used to denote success, e.g. `+ACTIVE`
9
+ * - `-` is used to denote failure, e.g. `-FAILED`
10
+ * - `?` is used to denote unknown, e.g. `?ASSIGNED` for a pending not-out-of-sla training
11
+ */
12
+ displayValue?: string;
6
13
  active?: boolean;
7
14
  enabled?: boolean;
8
15
  failedPhishing?: boolean;