@ampsec/platform-client 22.2.1 → 24.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,5 +1,4 @@
1
1
  import { ChangeAwareDto, ChangeAwareUpsertDto } from './base.dto';
2
- import { MetricResults } from './reportResults.dto';
3
2
  import { RiskContributorUpsertDto } from './riskContributors.dto';
4
3
  export type UserUpsertDto = ChangeAwareUpsertDto & {
5
4
  /** Tenant ID */
@@ -24,7 +23,7 @@ export type UserUpsertDto = ChangeAwareUpsertDto & {
24
23
  startDate?: string;
25
24
  /** Risk Contributors associated with the user */
26
25
  riskContributors: RiskContributorUpsertDto[];
27
- /** Metrics associated with the user */
28
- metrics?: MetricResults;
26
+ /** Health score associated with the user */
27
+ score?: number;
29
28
  };
30
29
  export type UserDto = ChangeAwareDto & UserUpsertDto;
@@ -27,6 +27,7 @@ export declare const REPORTS: {
27
27
  HEALTH_SCORE: string;
28
28
  EMPLOYEE_TOOLING_COVERAGE: string;
29
29
  ENDPOINT_TOOLING_COVERAGE: string;
30
+ ENGAGEMENT_VALUE: string;
30
31
  VULNERABILITY_SLA: string;
31
32
  TOP_RISK_CONTRIBUTORS: string;
32
33
  MFA_COVERAGE: string;
@@ -26,12 +26,13 @@ exports.REPORTS = {
26
26
  HEALTH_SCORE: 'health-score',
27
27
  EMPLOYEE_TOOLING_COVERAGE: 'workforce-tooling-employee-coverage',
28
28
  ENDPOINT_TOOLING_COVERAGE: 'workforce-tooling-endpoint-coverage',
29
+ ENGAGEMENT_VALUE: 'engagement-value',
29
30
  VULNERABILITY_SLA: 'vulnerability-sla',
30
31
  TOP_RISK_CONTRIBUTORS: 'top-risk-contributors',
31
32
  MFA_COVERAGE: 'mfa-application-coverage',
32
33
  TRAINING_DEFICIENCIES: 'training-deficiencies',
33
34
  SECURITY_HYGIENE: 'security-hygiene',
34
35
  // trending reports
35
- HEALTH_SCORE_TREND: 'health-trend',
36
+ HEALTH_SCORE_TREND: 'monthly-health-trend',
36
37
  };
37
38
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/services/constants.ts"],"names":[],"mappings":";;;AAIa,QAAA,2BAA2B,GAAG,CAAC,CAAC;AAGhC,QAAA,mBAAmB,GAAc,UAAU,CAAC;AAC5C,QAAA,gBAAgB,GAAc,KAAK,CAAC;AAEpC,QAAA,IAAI,GAAG;IAClB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;IACxB,gBAAgB,EAAE,aAAa;IAC/B,kBAAkB,EAAE,eAAe;IACnC,QAAQ,EAAE,UAAU;IACpB,cAAc,EAAE,gBAAgB;IAChC,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,WAAW;IACtB,cAAc,EAAE,gBAAgB;IAChC,iBAAiB,EAAE,mBAAmB;IACtC,WAAW,EAAE,aAAa;IAC1B,eAAe,EAAE,iBAAiB;IAClC,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;CACf,CAAC;AAEW,QAAA,OAAO,GAAG;IACrB,YAAY,EAAE,cAAc;IAC5B,yBAAyB,EAAE,qCAAqC;IAChE,yBAAyB,EAAE,qCAAqC;IAChE,iBAAiB,EAAE,mBAAmB;IACtC,qBAAqB,EAAE,uBAAuB;IAC9C,YAAY,EAAE,0BAA0B;IACxC,qBAAqB,EAAE,uBAAuB;IAC9C,gBAAgB,EAAE,kBAAkB;IACpC,mBAAmB;IACnB,kBAAkB,EAAE,cAAc;CACnC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/services/constants.ts"],"names":[],"mappings":";;;AAIa,QAAA,2BAA2B,GAAG,CAAC,CAAC;AAGhC,QAAA,mBAAmB,GAAc,UAAU,CAAC;AAC5C,QAAA,gBAAgB,GAAc,KAAK,CAAC;AAEpC,QAAA,IAAI,GAAG;IAClB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;IACxB,gBAAgB,EAAE,aAAa;IAC/B,kBAAkB,EAAE,eAAe;IACnC,QAAQ,EAAE,UAAU;IACpB,cAAc,EAAE,gBAAgB;IAChC,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,WAAW;IACtB,cAAc,EAAE,gBAAgB;IAChC,iBAAiB,EAAE,mBAAmB;IACtC,WAAW,EAAE,aAAa;IAC1B,eAAe,EAAE,iBAAiB;IAClC,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;CACf,CAAC;AAEW,QAAA,OAAO,GAAG;IACrB,YAAY,EAAE,cAAc;IAC5B,yBAAyB,EAAE,qCAAqC;IAChE,yBAAyB,EAAE,qCAAqC;IAChE,gBAAgB,EAAE,kBAAkB;IACpC,iBAAiB,EAAE,mBAAmB;IACtC,qBAAqB,EAAE,uBAAuB;IAC9C,YAAY,EAAE,0BAA0B;IACxC,qBAAqB,EAAE,uBAAuB;IAC9C,gBAAgB,EAAE,kBAAkB;IACpC,mBAAmB;IACnB,kBAAkB,EAAE,sBAAsB;CAC3C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampsec/platform-client",
3
- "version": "22.2.1",
3
+ "version": "24.0.0",
4
4
  "description": "",
5
5
  "main": "build/src/index.js",
6
6
  "runkitExampleFilename": "example/main.js",
@@ -1,5 +1,4 @@
1
1
  import {ChangeAwareDto, ChangeAwareUpsertDto} from './base.dto';
2
- import {MetricResults} from './reportResults.dto';
3
2
  import {RiskContributorUpsertDto} from './riskContributors.dto';
4
3
 
5
4
  export type UserUpsertDto = ChangeAwareUpsertDto & {
@@ -25,8 +24,8 @@ export type UserUpsertDto = ChangeAwareUpsertDto & {
25
24
  startDate?: string;
26
25
  /** Risk Contributors associated with the user */
27
26
  riskContributors: RiskContributorUpsertDto[];
28
- /** Metrics associated with the user */
29
- metrics?: MetricResults;
27
+ /** Health score associated with the user */
28
+ score?: number;
30
29
  };
31
30
 
32
31
  export type UserDto = ChangeAwareDto & UserUpsertDto;
@@ -31,11 +31,12 @@ export const REPORTS = {
31
31
  HEALTH_SCORE: 'health-score',
32
32
  EMPLOYEE_TOOLING_COVERAGE: 'workforce-tooling-employee-coverage',
33
33
  ENDPOINT_TOOLING_COVERAGE: 'workforce-tooling-endpoint-coverage',
34
+ ENGAGEMENT_VALUE: 'engagement-value',
34
35
  VULNERABILITY_SLA: 'vulnerability-sla',
35
36
  TOP_RISK_CONTRIBUTORS: 'top-risk-contributors',
36
37
  MFA_COVERAGE: 'mfa-application-coverage',
37
38
  TRAINING_DEFICIENCIES: 'training-deficiencies',
38
39
  SECURITY_HYGIENE: 'security-hygiene',
39
40
  // trending reports
40
- HEALTH_SCORE_TREND: 'health-trend',
41
+ HEALTH_SCORE_TREND: 'monthly-health-trend',
41
42
  };