@ampsec/platform-client 58.1.0 → 58.3.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/assetKeys.d.ts +14 -4
- package/build/src/dto/assetKeys.js +10 -0
- package/build/src/dto/assetKeys.js.map +1 -1
- package/build/src/dto/assets.dto.d.ts +114 -15
- package/build/src/dto/assets.dto.js +22 -0
- package/build/src/dto/assets.dto.js.map +1 -1
- package/build/src/dto/base.dto.d.ts +51 -16
- package/build/src/dto/base.dto.js +14 -0
- package/build/src/dto/base.dto.js.map +1 -1
- package/build/src/dto/coverage.dto.d.ts +301 -0
- package/build/src/dto/coverage.dto.js +18 -0
- package/build/src/dto/coverage.dto.js.map +1 -0
- package/build/src/dto/index.d.ts +1 -0
- package/build/src/dto/index.js +1 -0
- package/build/src/dto/index.js.map +1 -1
- package/build/src/dto/saasAssets.dto.d.ts +91 -13
- package/build/src/dto/saasAssets.dto.js +20 -0
- package/build/src/dto/saasAssets.dto.js.map +1 -1
- package/build/src/dto/saasUsers.dto.d.ts +67 -10
- package/build/src/dto/saasUsers.dto.js +16 -0
- package/build/src/dto/saasUsers.dto.js.map +1 -1
- package/build/src/dto/users.dto.d.ts +27 -12
- package/build/src/dto/users.dto.js +11 -0
- package/build/src/dto/users.dto.js.map +1 -1
- package/build/src/services/entity.service.d.ts +8 -1
- package/build/src/services/entity.service.js +17 -2
- package/build/src/services/entity.service.js.map +1 -1
- package/build/src/settings.d.ts +4 -0
- package/build/src/settings.js +4 -0
- package/build/src/settings.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/assetKeys.ts +9 -5
- package/src/dto/assets.dto.ts +20 -13
- package/src/dto/base.dto.ts +25 -25
- package/src/dto/coverage.dto.ts +20 -0
- package/src/dto/index.ts +1 -0
- package/src/dto/saasAssets.dto.ts +17 -11
- package/src/dto/saasUsers.dto.ts +14 -9
- package/src/dto/users.dto.ts +12 -12
- package/src/services/entity.service.ts +24 -1
- package/src/settings.ts +4 -0
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const _AssetKeys: z.ZodObject<{
|
|
2
3
|
/** External ID */
|
|
3
|
-
extId
|
|
4
|
+
extId: z.ZodOptional<z.ZodString>;
|
|
4
5
|
/** Serial Number */
|
|
5
|
-
sn
|
|
6
|
+
sn: z.ZodOptional<z.ZodString>;
|
|
6
7
|
/** MAC Addresses. Note: could be empty */
|
|
8
|
+
macs: z.ZodArray<z.ZodString, "many">;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
10
|
macs: string[];
|
|
8
|
-
|
|
11
|
+
extId?: string | undefined;
|
|
12
|
+
sn?: string | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
macs: string[];
|
|
15
|
+
extId?: string | undefined;
|
|
16
|
+
sn?: string | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export type AssetKeys = z.infer<typeof _AssetKeys>;
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._AssetKeys = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports._AssetKeys = zod_1.z.object({
|
|
6
|
+
/** External ID */
|
|
7
|
+
extId: zod_1.z.string().optional(),
|
|
8
|
+
/** Serial Number */
|
|
9
|
+
sn: zod_1.z.string().optional(),
|
|
10
|
+
/** MAC Addresses. Note: could be empty */
|
|
11
|
+
macs: zod_1.z.array(zod_1.z.string()),
|
|
12
|
+
});
|
|
3
13
|
//# sourceMappingURL=assetKeys.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assetKeys.js","sourceRoot":"","sources":["../../../src/dto/assetKeys.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"assetKeys.js","sourceRoot":"","sources":["../../../src/dto/assetKeys.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAET,QAAA,UAAU,GAAG,OAAC,CAAC,MAAM,CAAC;IACjC,kBAAkB;IAClB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,oBAAoB;IACpB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,0CAA0C;IAC1C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAC1B,CAAC,CAAC"}
|
|
@@ -1,20 +1,119 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ChangeAwareDto, ChangeAwareUpsertDto } from './base.dto';
|
|
1
|
+
import { z } from 'zod';
|
|
3
2
|
import { GlobalAssetType } from './enums/globalAsset.type';
|
|
4
|
-
export
|
|
3
|
+
export declare const _SimpleAssetDto: z.ZodObject<{
|
|
5
4
|
/** Id of the asset */
|
|
6
|
-
id
|
|
5
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7
6
|
/** Human readable name of the asset */
|
|
8
|
-
displayValue
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
displayValue: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
id?: string | undefined;
|
|
10
|
+
displayValue?: string | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
id?: string | undefined;
|
|
13
|
+
displayValue?: string | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export type SimpleAssetDto = z.infer<typeof _SimpleAssetDto>;
|
|
16
|
+
export declare const _AssetUpsertDto: z.ZodObject<{
|
|
17
|
+
id: z.ZodOptional<z.ZodString>;
|
|
18
|
+
etag: z.ZodString;
|
|
19
|
+
extKeys: z.ZodObject<{
|
|
20
|
+
extId: z.ZodOptional<z.ZodString>;
|
|
21
|
+
sn: z.ZodOptional<z.ZodString>;
|
|
22
|
+
macs: z.ZodArray<z.ZodString, "many">;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
macs: string[];
|
|
25
|
+
extId?: string | undefined;
|
|
26
|
+
sn?: string | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
macs: string[];
|
|
29
|
+
extId?: string | undefined;
|
|
30
|
+
sn?: string | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
displayValue: z.ZodString;
|
|
33
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
34
|
+
assetType: z.ZodOptional<z.ZodNativeEnum<typeof GlobalAssetType>>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
etag: string;
|
|
14
37
|
displayValue: string;
|
|
15
|
-
|
|
38
|
+
extKeys: {
|
|
39
|
+
macs: string[];
|
|
40
|
+
extId?: string | undefined;
|
|
41
|
+
sn?: string | undefined;
|
|
42
|
+
};
|
|
43
|
+
id?: string | undefined;
|
|
16
44
|
uid?: string | undefined;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
45
|
+
assetType?: GlobalAssetType | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
etag: string;
|
|
48
|
+
displayValue: string;
|
|
49
|
+
extKeys: {
|
|
50
|
+
macs: string[];
|
|
51
|
+
extId?: string | undefined;
|
|
52
|
+
sn?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
id?: string | undefined;
|
|
55
|
+
uid?: string | undefined;
|
|
56
|
+
assetType?: GlobalAssetType | undefined;
|
|
57
|
+
}>;
|
|
58
|
+
export type AssetUpsertDto = z.infer<typeof _AssetUpsertDto>;
|
|
59
|
+
export declare const _AssetDto: z.ZodIntersection<z.ZodObject<{
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
createdAt: z.ZodString;
|
|
62
|
+
updatedAt: z.ZodString;
|
|
63
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
64
|
+
etag: z.ZodString;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
id: string;
|
|
67
|
+
createdAt: string;
|
|
68
|
+
updatedAt: string;
|
|
69
|
+
deletedAt: string | null;
|
|
70
|
+
etag: string;
|
|
71
|
+
}, {
|
|
72
|
+
id: string;
|
|
73
|
+
createdAt: string;
|
|
74
|
+
updatedAt: string;
|
|
75
|
+
deletedAt: string | null;
|
|
76
|
+
etag: string;
|
|
77
|
+
}>, z.ZodObject<{
|
|
78
|
+
id: z.ZodOptional<z.ZodString>;
|
|
79
|
+
etag: z.ZodString;
|
|
80
|
+
extKeys: z.ZodObject<{
|
|
81
|
+
extId: z.ZodOptional<z.ZodString>;
|
|
82
|
+
sn: z.ZodOptional<z.ZodString>;
|
|
83
|
+
macs: z.ZodArray<z.ZodString, "many">;
|
|
84
|
+
}, "strip", z.ZodTypeAny, {
|
|
85
|
+
macs: string[];
|
|
86
|
+
extId?: string | undefined;
|
|
87
|
+
sn?: string | undefined;
|
|
88
|
+
}, {
|
|
89
|
+
macs: string[];
|
|
90
|
+
extId?: string | undefined;
|
|
91
|
+
sn?: string | undefined;
|
|
92
|
+
}>;
|
|
93
|
+
displayValue: z.ZodString;
|
|
94
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
95
|
+
assetType: z.ZodOptional<z.ZodNativeEnum<typeof GlobalAssetType>>;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
etag: string;
|
|
98
|
+
displayValue: string;
|
|
99
|
+
extKeys: {
|
|
100
|
+
macs: string[];
|
|
101
|
+
extId?: string | undefined;
|
|
102
|
+
sn?: string | undefined;
|
|
103
|
+
};
|
|
104
|
+
id?: string | undefined;
|
|
105
|
+
uid?: string | undefined;
|
|
106
|
+
assetType?: GlobalAssetType | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
etag: string;
|
|
109
|
+
displayValue: string;
|
|
110
|
+
extKeys: {
|
|
111
|
+
macs: string[];
|
|
112
|
+
extId?: string | undefined;
|
|
113
|
+
sn?: string | undefined;
|
|
114
|
+
};
|
|
115
|
+
id?: string | undefined;
|
|
116
|
+
uid?: string | undefined;
|
|
117
|
+
assetType?: GlobalAssetType | undefined;
|
|
118
|
+
}>>;
|
|
119
|
+
export type AssetDto = z.infer<typeof _AssetDto>;
|
|
@@ -1,3 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._AssetDto = exports._AssetUpsertDto = exports._SimpleAssetDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const assetKeys_1 = require("./assetKeys");
|
|
6
|
+
const base_dto_1 = require("./base.dto");
|
|
7
|
+
const globalAsset_type_1 = require("./enums/globalAsset.type");
|
|
8
|
+
exports._SimpleAssetDto = zod_1.z.object({
|
|
9
|
+
/** Id of the asset */
|
|
10
|
+
id: zod_1.z.string().optional(),
|
|
11
|
+
/** Human readable name of the asset */
|
|
12
|
+
displayValue: zod_1.z.string().optional(),
|
|
13
|
+
});
|
|
14
|
+
exports._AssetUpsertDto = base_dto_1._ChangeAwareUpsertDto.extend({
|
|
15
|
+
/** External Keys */
|
|
16
|
+
extKeys: assetKeys_1._AssetKeys,
|
|
17
|
+
/** Asset display value */
|
|
18
|
+
displayValue: zod_1.z.string(),
|
|
19
|
+
/** User Id of the asset owner */
|
|
20
|
+
uid: zod_1.z.string().optional(),
|
|
21
|
+
/** Asset type */
|
|
22
|
+
assetType: zod_1.z.nativeEnum(globalAsset_type_1.GlobalAssetType).optional(),
|
|
23
|
+
});
|
|
24
|
+
exports._AssetDto = base_dto_1._ChangeAwareDto.and(exports._AssetUpsertDto);
|
|
3
25
|
//# sourceMappingURL=assets.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.dto.js","sourceRoot":"","sources":["../../../src/dto/assets.dto.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"assets.dto.js","sourceRoot":"","sources":["../../../src/dto/assets.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,2CAAuC;AACvC,yCAAkE;AAClE,+DAAyD;AAE5C,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,sBAAsB;IACtB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,uCAAuC;IACvC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAIU,QAAA,eAAe,GAAG,gCAAqB,CAAC,MAAM,CAAC;IAC1D,oBAAoB;IACpB,OAAO,EAAE,sBAAU;IACnB,0BAA0B;IAC1B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,iCAAiC;IACjC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,iBAAiB;IACjB,SAAS,EAAE,OAAC,CAAC,UAAU,CAAC,kCAAe,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC;AAIU,QAAA,SAAS,GAAG,0BAAe,CAAC,GAAG,CAAC,uBAAe,CAAC,CAAC"}
|
|
@@ -1,22 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
id
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const _BaseUpsertDto: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
id?: string | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
id?: string | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
export type BaseUpsertDto = z.infer<typeof _BaseUpsertDto>;
|
|
10
|
+
export declare const _BaseDto: z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
createdAt: z.ZodString;
|
|
13
|
+
updatedAt: z.ZodString;
|
|
14
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
id: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
deletedAt: string | null;
|
|
20
|
+
}, {
|
|
21
|
+
id: string;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
deletedAt: string | null;
|
|
25
|
+
}>;
|
|
26
|
+
export type BaseDto = z.infer<typeof _BaseDto>;
|
|
27
|
+
export declare const _ChangeAwareUpsertDto: z.ZodObject<{
|
|
28
|
+
id: z.ZodOptional<z.ZodString>;
|
|
29
|
+
etag: z.ZodString;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
etag: string;
|
|
32
|
+
id?: string | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
etag: string;
|
|
35
|
+
id?: string | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
export type ChangeAwareUpsertDto = z.infer<typeof _ChangeAwareUpsertDto>;
|
|
38
|
+
export declare const _ChangeAwareDto: z.ZodObject<{
|
|
39
|
+
id: z.ZodString;
|
|
40
|
+
createdAt: z.ZodString;
|
|
41
|
+
updatedAt: z.ZodString;
|
|
42
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
43
|
+
etag: z.ZodString;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
45
|
id: string;
|
|
8
|
-
/** Record creation date in database. */
|
|
9
46
|
createdAt: string;
|
|
10
|
-
/** Last record update date in database. */
|
|
11
47
|
updatedAt: string;
|
|
12
|
-
/** Record deletion date in database. Only present on soft deleted, i.e. `null => active` */
|
|
13
48
|
deletedAt: string | null;
|
|
14
|
-
};
|
|
15
|
-
export type ChangeAwareUpsertDto = BaseUpsertDto & {
|
|
16
|
-
/** MD5 hash of a subset of properties to detect field level changes. */
|
|
17
49
|
etag: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
50
|
+
}, {
|
|
51
|
+
id: string;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
updatedAt: string;
|
|
54
|
+
deletedAt: string | null;
|
|
21
55
|
etag: string;
|
|
22
|
-
}
|
|
56
|
+
}>;
|
|
57
|
+
export type ChangeAwareDto = z.infer<typeof _ChangeAwareDto>;
|
|
@@ -1,3 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._ChangeAwareDto = exports._ChangeAwareUpsertDto = exports._BaseDto = exports._BaseUpsertDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports._BaseUpsertDto = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string().optional(),
|
|
7
|
+
});
|
|
8
|
+
exports._BaseDto = zod_1.z.object({
|
|
9
|
+
id: zod_1.z.string(),
|
|
10
|
+
createdAt: zod_1.z.string(),
|
|
11
|
+
updatedAt: zod_1.z.string(),
|
|
12
|
+
deletedAt: zod_1.z.string().nullable(),
|
|
13
|
+
});
|
|
14
|
+
const WithEtag = { etag: zod_1.z.string() };
|
|
15
|
+
exports._ChangeAwareUpsertDto = exports._BaseUpsertDto.extend(WithEtag);
|
|
16
|
+
exports._ChangeAwareDto = exports._BaseDto.extend(WithEtag);
|
|
3
17
|
//# sourceMappingURL=base.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.dto.js","sourceRoot":"","sources":["../../../src/dto/base.dto.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"base.dto.js","sourceRoot":"","sources":["../../../src/dto/base.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAET,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC1B,CAAC,CAAC;AAIU,QAAA,QAAQ,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAIH,MAAM,QAAQ,GAAG,EAAC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,EAAC,CAAC;AAEvB,QAAA,qBAAqB,GAAG,sBAAc,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAIxD,QAAA,eAAe,GAAG,gBAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const _UserCoverageSummary: z.ZodObject<{
|
|
3
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
5
|
+
department: z.ZodOptional<z.ZodString>;
|
|
6
|
+
email: z.ZodOptional<z.ZodString>;
|
|
7
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
9
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
10
|
+
userAccounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
11
|
+
assetAccounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
userAccounts: Record<string, number>;
|
|
14
|
+
assetAccounts: Record<string, number>;
|
|
15
|
+
id?: string | undefined;
|
|
16
|
+
organization?: string | undefined;
|
|
17
|
+
department?: string | undefined;
|
|
18
|
+
email?: string | undefined;
|
|
19
|
+
score?: number | undefined;
|
|
20
|
+
firstName?: string | undefined;
|
|
21
|
+
lastName?: string | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
userAccounts: Record<string, number>;
|
|
24
|
+
assetAccounts: Record<string, number>;
|
|
25
|
+
id?: string | undefined;
|
|
26
|
+
organization?: string | undefined;
|
|
27
|
+
department?: string | undefined;
|
|
28
|
+
email?: string | undefined;
|
|
29
|
+
score?: number | undefined;
|
|
30
|
+
firstName?: string | undefined;
|
|
31
|
+
lastName?: string | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
export type UserCoverageSummary = z.infer<typeof _UserCoverageSummary>;
|
|
34
|
+
export declare const _UserCoverageReport: z.ZodObject<{
|
|
35
|
+
id: z.ZodOptional<z.ZodString>;
|
|
36
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
37
|
+
department: z.ZodOptional<z.ZodString>;
|
|
38
|
+
email: z.ZodOptional<z.ZodString>;
|
|
39
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
41
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
42
|
+
userAccounts: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
43
|
+
id: z.ZodString;
|
|
44
|
+
createdAt: z.ZodString;
|
|
45
|
+
updatedAt: z.ZodString;
|
|
46
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
47
|
+
etag: z.ZodString;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
id: string;
|
|
50
|
+
createdAt: string;
|
|
51
|
+
updatedAt: string;
|
|
52
|
+
deletedAt: string | null;
|
|
53
|
+
etag: string;
|
|
54
|
+
}, {
|
|
55
|
+
id: string;
|
|
56
|
+
createdAt: string;
|
|
57
|
+
updatedAt: string;
|
|
58
|
+
deletedAt: string | null;
|
|
59
|
+
etag: string;
|
|
60
|
+
}>, z.ZodObject<{
|
|
61
|
+
id: z.ZodOptional<z.ZodString>;
|
|
62
|
+
etag: z.ZodString;
|
|
63
|
+
uid: z.ZodString;
|
|
64
|
+
cid: z.ZodString;
|
|
65
|
+
email: z.ZodString;
|
|
66
|
+
extId: z.ZodString;
|
|
67
|
+
meta: z.ZodUnknown;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
cid: string;
|
|
70
|
+
uid: string;
|
|
71
|
+
email: string;
|
|
72
|
+
etag: string;
|
|
73
|
+
extId: string;
|
|
74
|
+
id?: string | undefined;
|
|
75
|
+
meta?: unknown;
|
|
76
|
+
}, {
|
|
77
|
+
cid: string;
|
|
78
|
+
uid: string;
|
|
79
|
+
email: string;
|
|
80
|
+
etag: string;
|
|
81
|
+
extId: string;
|
|
82
|
+
id?: string | undefined;
|
|
83
|
+
meta?: unknown;
|
|
84
|
+
}>>, "many">>;
|
|
85
|
+
assetAccounts: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
86
|
+
id: z.ZodString;
|
|
87
|
+
createdAt: z.ZodString;
|
|
88
|
+
updatedAt: z.ZodString;
|
|
89
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
90
|
+
etag: z.ZodString;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
id: string;
|
|
93
|
+
createdAt: string;
|
|
94
|
+
updatedAt: string;
|
|
95
|
+
deletedAt: string | null;
|
|
96
|
+
etag: string;
|
|
97
|
+
}, {
|
|
98
|
+
id: string;
|
|
99
|
+
createdAt: string;
|
|
100
|
+
updatedAt: string;
|
|
101
|
+
deletedAt: string | null;
|
|
102
|
+
etag: string;
|
|
103
|
+
}>, z.ZodObject<{
|
|
104
|
+
id: z.ZodOptional<z.ZodString>;
|
|
105
|
+
etag: z.ZodString;
|
|
106
|
+
uid: z.ZodString;
|
|
107
|
+
cid: z.ZodString;
|
|
108
|
+
email: z.ZodString;
|
|
109
|
+
extId: z.ZodString;
|
|
110
|
+
meta: z.ZodUnknown;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
cid: string;
|
|
113
|
+
uid: string;
|
|
114
|
+
email: string;
|
|
115
|
+
etag: string;
|
|
116
|
+
extId: string;
|
|
117
|
+
id?: string | undefined;
|
|
118
|
+
meta?: unknown;
|
|
119
|
+
}, {
|
|
120
|
+
cid: string;
|
|
121
|
+
uid: string;
|
|
122
|
+
email: string;
|
|
123
|
+
etag: string;
|
|
124
|
+
extId: string;
|
|
125
|
+
id?: string | undefined;
|
|
126
|
+
meta?: unknown;
|
|
127
|
+
}>>, "many">>;
|
|
128
|
+
assets: z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
129
|
+
id: z.ZodString;
|
|
130
|
+
createdAt: z.ZodString;
|
|
131
|
+
updatedAt: z.ZodString;
|
|
132
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
133
|
+
etag: z.ZodString;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
id: string;
|
|
136
|
+
createdAt: string;
|
|
137
|
+
updatedAt: string;
|
|
138
|
+
deletedAt: string | null;
|
|
139
|
+
etag: string;
|
|
140
|
+
}, {
|
|
141
|
+
id: string;
|
|
142
|
+
createdAt: string;
|
|
143
|
+
updatedAt: string;
|
|
144
|
+
deletedAt: string | null;
|
|
145
|
+
etag: string;
|
|
146
|
+
}>, z.ZodObject<{
|
|
147
|
+
id: z.ZodOptional<z.ZodString>;
|
|
148
|
+
etag: z.ZodString;
|
|
149
|
+
extKeys: z.ZodObject<{
|
|
150
|
+
extId: z.ZodOptional<z.ZodString>;
|
|
151
|
+
sn: z.ZodOptional<z.ZodString>;
|
|
152
|
+
macs: z.ZodArray<z.ZodString, "many">;
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
macs: string[];
|
|
155
|
+
extId?: string | undefined;
|
|
156
|
+
sn?: string | undefined;
|
|
157
|
+
}, {
|
|
158
|
+
macs: string[];
|
|
159
|
+
extId?: string | undefined;
|
|
160
|
+
sn?: string | undefined;
|
|
161
|
+
}>;
|
|
162
|
+
displayValue: z.ZodString;
|
|
163
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
164
|
+
assetType: z.ZodOptional<z.ZodNativeEnum<typeof import("./enums").GlobalAssetType>>;
|
|
165
|
+
}, "strip", z.ZodTypeAny, {
|
|
166
|
+
etag: string;
|
|
167
|
+
displayValue: string;
|
|
168
|
+
extKeys: {
|
|
169
|
+
macs: string[];
|
|
170
|
+
extId?: string | undefined;
|
|
171
|
+
sn?: string | undefined;
|
|
172
|
+
};
|
|
173
|
+
id?: string | undefined;
|
|
174
|
+
uid?: string | undefined;
|
|
175
|
+
assetType?: import("./enums").GlobalAssetType | undefined;
|
|
176
|
+
}, {
|
|
177
|
+
etag: string;
|
|
178
|
+
displayValue: string;
|
|
179
|
+
extKeys: {
|
|
180
|
+
macs: string[];
|
|
181
|
+
extId?: string | undefined;
|
|
182
|
+
sn?: string | undefined;
|
|
183
|
+
};
|
|
184
|
+
id?: string | undefined;
|
|
185
|
+
uid?: string | undefined;
|
|
186
|
+
assetType?: import("./enums").GlobalAssetType | undefined;
|
|
187
|
+
}>>, "many">;
|
|
188
|
+
}, "strip", z.ZodTypeAny, {
|
|
189
|
+
userAccounts: Record<string, ({
|
|
190
|
+
id: string;
|
|
191
|
+
createdAt: string;
|
|
192
|
+
updatedAt: string;
|
|
193
|
+
deletedAt: string | null;
|
|
194
|
+
etag: string;
|
|
195
|
+
} & {
|
|
196
|
+
cid: string;
|
|
197
|
+
uid: string;
|
|
198
|
+
email: string;
|
|
199
|
+
etag: string;
|
|
200
|
+
extId: string;
|
|
201
|
+
id?: string | undefined;
|
|
202
|
+
meta?: unknown;
|
|
203
|
+
})[]>;
|
|
204
|
+
assetAccounts: Record<string, ({
|
|
205
|
+
id: string;
|
|
206
|
+
createdAt: string;
|
|
207
|
+
updatedAt: string;
|
|
208
|
+
deletedAt: string | null;
|
|
209
|
+
etag: string;
|
|
210
|
+
} & {
|
|
211
|
+
cid: string;
|
|
212
|
+
uid: string;
|
|
213
|
+
email: string;
|
|
214
|
+
etag: string;
|
|
215
|
+
extId: string;
|
|
216
|
+
id?: string | undefined;
|
|
217
|
+
meta?: unknown;
|
|
218
|
+
})[]>;
|
|
219
|
+
assets: ({
|
|
220
|
+
id: string;
|
|
221
|
+
createdAt: string;
|
|
222
|
+
updatedAt: string;
|
|
223
|
+
deletedAt: string | null;
|
|
224
|
+
etag: string;
|
|
225
|
+
} & {
|
|
226
|
+
etag: string;
|
|
227
|
+
displayValue: string;
|
|
228
|
+
extKeys: {
|
|
229
|
+
macs: string[];
|
|
230
|
+
extId?: string | undefined;
|
|
231
|
+
sn?: string | undefined;
|
|
232
|
+
};
|
|
233
|
+
id?: string | undefined;
|
|
234
|
+
uid?: string | undefined;
|
|
235
|
+
assetType?: import("./enums").GlobalAssetType | undefined;
|
|
236
|
+
})[];
|
|
237
|
+
id?: string | undefined;
|
|
238
|
+
organization?: string | undefined;
|
|
239
|
+
department?: string | undefined;
|
|
240
|
+
email?: string | undefined;
|
|
241
|
+
score?: number | undefined;
|
|
242
|
+
firstName?: string | undefined;
|
|
243
|
+
lastName?: string | undefined;
|
|
244
|
+
}, {
|
|
245
|
+
userAccounts: Record<string, ({
|
|
246
|
+
id: string;
|
|
247
|
+
createdAt: string;
|
|
248
|
+
updatedAt: string;
|
|
249
|
+
deletedAt: string | null;
|
|
250
|
+
etag: string;
|
|
251
|
+
} & {
|
|
252
|
+
cid: string;
|
|
253
|
+
uid: string;
|
|
254
|
+
email: string;
|
|
255
|
+
etag: string;
|
|
256
|
+
extId: string;
|
|
257
|
+
id?: string | undefined;
|
|
258
|
+
meta?: unknown;
|
|
259
|
+
})[]>;
|
|
260
|
+
assetAccounts: Record<string, ({
|
|
261
|
+
id: string;
|
|
262
|
+
createdAt: string;
|
|
263
|
+
updatedAt: string;
|
|
264
|
+
deletedAt: string | null;
|
|
265
|
+
etag: string;
|
|
266
|
+
} & {
|
|
267
|
+
cid: string;
|
|
268
|
+
uid: string;
|
|
269
|
+
email: string;
|
|
270
|
+
etag: string;
|
|
271
|
+
extId: string;
|
|
272
|
+
id?: string | undefined;
|
|
273
|
+
meta?: unknown;
|
|
274
|
+
})[]>;
|
|
275
|
+
assets: ({
|
|
276
|
+
id: string;
|
|
277
|
+
createdAt: string;
|
|
278
|
+
updatedAt: string;
|
|
279
|
+
deletedAt: string | null;
|
|
280
|
+
etag: string;
|
|
281
|
+
} & {
|
|
282
|
+
etag: string;
|
|
283
|
+
displayValue: string;
|
|
284
|
+
extKeys: {
|
|
285
|
+
macs: string[];
|
|
286
|
+
extId?: string | undefined;
|
|
287
|
+
sn?: string | undefined;
|
|
288
|
+
};
|
|
289
|
+
id?: string | undefined;
|
|
290
|
+
uid?: string | undefined;
|
|
291
|
+
assetType?: import("./enums").GlobalAssetType | undefined;
|
|
292
|
+
})[];
|
|
293
|
+
id?: string | undefined;
|
|
294
|
+
organization?: string | undefined;
|
|
295
|
+
department?: string | undefined;
|
|
296
|
+
email?: string | undefined;
|
|
297
|
+
score?: number | undefined;
|
|
298
|
+
firstName?: string | undefined;
|
|
299
|
+
lastName?: string | undefined;
|
|
300
|
+
}>;
|
|
301
|
+
export type UserCoverageReport = z.infer<typeof _UserCoverageReport>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._UserCoverageReport = exports._UserCoverageSummary = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const assets_dto_1 = require("./assets.dto");
|
|
6
|
+
const saasAssets_dto_1 = require("./saasAssets.dto");
|
|
7
|
+
const saasUsers_dto_1 = require("./saasUsers.dto");
|
|
8
|
+
const users_dto_1 = require("./users.dto");
|
|
9
|
+
exports._UserCoverageSummary = users_dto_1._SimpleUserDto.extend({
|
|
10
|
+
userAccounts: zod_1.z.record(zod_1.z.number()),
|
|
11
|
+
assetAccounts: zod_1.z.record(zod_1.z.number()),
|
|
12
|
+
});
|
|
13
|
+
exports._UserCoverageReport = users_dto_1._SimpleUserDto.extend({
|
|
14
|
+
userAccounts: zod_1.z.record(zod_1.z.array(saasUsers_dto_1._SaasUserDto)),
|
|
15
|
+
assetAccounts: zod_1.z.record(zod_1.z.array(saasAssets_dto_1._SaasAssetDto)),
|
|
16
|
+
assets: zod_1.z.array(assets_dto_1._AssetDto),
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=coverage.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coverage.dto.js","sourceRoot":"","sources":["../../../src/dto/coverage.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,6CAAuC;AACvC,qDAA+C;AAC/C,mDAA6C;AAC7C,2CAA2C;AAE9B,QAAA,oBAAoB,GAAG,0BAAc,CAAC,MAAM,CAAC;IACxD,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAClC,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CACpC,CAAC,CAAC;AAIU,QAAA,mBAAmB,GAAG,0BAAc,CAAC,MAAM,CAAC;IACvD,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,KAAK,CAAC,4BAAY,CAAC,CAAC;IAC7C,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,KAAK,CAAC,8BAAa,CAAC,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,sBAAS,CAAC;CAC3B,CAAC,CAAC"}
|
package/build/src/dto/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './assetKeys';
|
|
|
4
4
|
export * from './base.dto';
|
|
5
5
|
export * from './connectors.dto';
|
|
6
6
|
export * from './constants';
|
|
7
|
+
export * from './coverage.dto';
|
|
7
8
|
export * from './defaultConnector.dto';
|
|
8
9
|
export * from './entityIdSummaries.dto';
|
|
9
10
|
export * from './enum.dto';
|
package/build/src/dto/index.js
CHANGED
|
@@ -20,6 +20,7 @@ __exportStar(require("./assetKeys"), exports);
|
|
|
20
20
|
__exportStar(require("./base.dto"), exports);
|
|
21
21
|
__exportStar(require("./connectors.dto"), exports);
|
|
22
22
|
__exportStar(require("./constants"), exports);
|
|
23
|
+
__exportStar(require("./coverage.dto"), exports);
|
|
23
24
|
__exportStar(require("./defaultConnector.dto"), exports);
|
|
24
25
|
__exportStar(require("./entityIdSummaries.dto"), exports);
|
|
25
26
|
__exportStar(require("./enum.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,mDAAiC;AACjC,8CAA4B;AAC5B,yDAAuC;AACvC,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,yDAAuC;AACvC,wCAAsB;AACtB,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B;AAC3B,mDAAiC;AACjC,8CAA4B;AAC5B,iDAA+B;AAC/B,yDAAuC;AACvC,0DAAwC;AACxC,6CAA2B;AAC3B,0CAAwB;AACxB,kDAAgC;AAChC,iDAA+B;AAC/B,yDAAuC;AACvC,wCAAsB;AACtB,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,8CAA4B;AAC5B,iDAA+B;AAC/B,sDAAoC"}
|