@ampsec/platform-client 38.2.0 → 40.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.
- package/build/src/dto/enums/globalUser.type.d.ts +5 -0
- package/build/src/dto/enums/globalUser.type.js +11 -0
- package/build/src/dto/enums/globalUser.type.js.map +1 -0
- package/build/src/dto/enums/index.d.ts +1 -0
- package/build/src/dto/enums/index.js +1 -0
- package/build/src/dto/enums/index.js.map +1 -1
- package/build/src/dto/users.dto.d.ts +15 -1
- package/package.json +1 -1
- package/src/dto/enums/globalUser.type.ts +6 -0
- package/src/dto/enums/index.ts +1 -0
- package/src/dto/users.dto.ts +16 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GlobalUserType = void 0;
|
|
4
|
+
/* eslint-disable no-unused-vars */
|
|
5
|
+
var GlobalUserType;
|
|
6
|
+
(function (GlobalUserType) {
|
|
7
|
+
GlobalUserType["USER"] = "USER";
|
|
8
|
+
GlobalUserType["BOT"] = "BOT";
|
|
9
|
+
GlobalUserType["SERVICE_ACCOUNT"] = "SERVICE_ACCOUNT";
|
|
10
|
+
})(GlobalUserType || (exports.GlobalUserType = GlobalUserType = {}));
|
|
11
|
+
//# sourceMappingURL=globalUser.type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"globalUser.type.js","sourceRoot":"","sources":["../../../../src/dto/enums/globalUser.type.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,6BAAW,CAAA;IACX,qDAAmC,CAAA;AACrC,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB"}
|
|
@@ -6,6 +6,7 @@ export * from './connector.status';
|
|
|
6
6
|
export * from './findingKind';
|
|
7
7
|
export * from './finding.severity';
|
|
8
8
|
export * from './finding.status';
|
|
9
|
+
export * from './globalUser.type';
|
|
9
10
|
export * from './jobExecution.status';
|
|
10
11
|
export * from './notification.status';
|
|
11
12
|
export * from './riskContributor.type';
|
|
@@ -22,6 +22,7 @@ __exportStar(require("./connector.status"), exports);
|
|
|
22
22
|
__exportStar(require("./findingKind"), exports);
|
|
23
23
|
__exportStar(require("./finding.severity"), exports);
|
|
24
24
|
__exportStar(require("./finding.status"), exports);
|
|
25
|
+
__exportStar(require("./globalUser.type"), exports);
|
|
25
26
|
__exportStar(require("./jobExecution.status"), exports);
|
|
26
27
|
__exportStar(require("./notification.status"), exports);
|
|
27
28
|
__exportStar(require("./riskContributor.type"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,wDAAsC;AACtC,6CAA2B;AAC3B,qDAAmC;AACnC,gDAA8B;AAC9B,qDAAmC;AACnC,mDAAiC;AACjC,wDAAsC;AACtC,wDAAsC;AACtC,yDAAuC;AACvC,sDAAoC;AACpC,sDAAoC;AACpC,sDAAoC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,wDAAsC;AACtC,6CAA2B;AAC3B,qDAAmC;AACnC,gDAA8B;AAC9B,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC;AAClC,wDAAsC;AACtC,wDAAsC;AACtC,yDAAuC;AACvC,sDAAoC;AACpC,sDAAoC;AACpC,sDAAoC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ChangeAwareDto, ChangeAwareUpsertDto } from './base.dto';
|
|
2
|
+
import { GlobalUserType } from './enums/globalUser.type';
|
|
2
3
|
import { RiskContributorUpsertDto } from './riskContributors.dto';
|
|
3
4
|
export type SimpleUserDto = {
|
|
4
5
|
/** Id of the user */
|
|
@@ -37,5 +38,18 @@ export type UserUpsertDto = ChangeAwareUpsertDto & {
|
|
|
37
38
|
riskContributors: RiskContributorUpsertDto[];
|
|
38
39
|
/** Health score associated with the user */
|
|
39
40
|
score?: number;
|
|
41
|
+
/** Type of user, e.g user, bot, service accounts, ... */
|
|
42
|
+
userType?: GlobalUserType;
|
|
43
|
+
};
|
|
44
|
+
export type UserDto = ChangeAwareDto & UserUpsertDto & {
|
|
45
|
+
/** Human readable name of the user's tenant, e.g. tenant.displayName */
|
|
46
|
+
organization: string;
|
|
47
|
+
/** Department to which the user is assigned */
|
|
48
|
+
department: string;
|
|
49
|
+
/** User title */
|
|
50
|
+
title: string;
|
|
51
|
+
/** Type of user, e.g user, bot, service accounts, ... */
|
|
52
|
+
userType: GlobalUserType;
|
|
53
|
+
/** Health score associated with the user */
|
|
54
|
+
score: number;
|
|
40
55
|
};
|
|
41
|
-
export type UserDto = ChangeAwareDto & UserUpsertDto;
|
package/package.json
CHANGED
package/src/dto/enums/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './connector.status';
|
|
|
6
6
|
export * from './findingKind';
|
|
7
7
|
export * from './finding.severity';
|
|
8
8
|
export * from './finding.status';
|
|
9
|
+
export * from './globalUser.type';
|
|
9
10
|
export * from './jobExecution.status';
|
|
10
11
|
export * from './notification.status';
|
|
11
12
|
export * from './riskContributor.type';
|
package/src/dto/users.dto.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {ChangeAwareDto, ChangeAwareUpsertDto} from './base.dto';
|
|
2
|
+
import {GlobalUserType} from './enums/globalUser.type';
|
|
2
3
|
import {RiskContributorUpsertDto} from './riskContributors.dto';
|
|
3
4
|
|
|
4
5
|
export type SimpleUserDto = {
|
|
@@ -39,6 +40,20 @@ export type UserUpsertDto = ChangeAwareUpsertDto & {
|
|
|
39
40
|
riskContributors: RiskContributorUpsertDto[];
|
|
40
41
|
/** Health score associated with the user */
|
|
41
42
|
score?: number;
|
|
43
|
+
/** Type of user, e.g user, bot, service accounts, ... */
|
|
44
|
+
userType?: GlobalUserType;
|
|
42
45
|
};
|
|
43
46
|
|
|
44
|
-
export type UserDto = ChangeAwareDto &
|
|
47
|
+
export type UserDto = ChangeAwareDto &
|
|
48
|
+
UserUpsertDto & {
|
|
49
|
+
/** Human readable name of the user's tenant, e.g. tenant.displayName */
|
|
50
|
+
organization: string;
|
|
51
|
+
/** Department to which the user is assigned */
|
|
52
|
+
department: string;
|
|
53
|
+
/** User title */
|
|
54
|
+
title: string;
|
|
55
|
+
/** Type of user, e.g user, bot, service accounts, ... */
|
|
56
|
+
userType: GlobalUserType;
|
|
57
|
+
/** Health score associated with the user */
|
|
58
|
+
score: number;
|
|
59
|
+
};
|