@ampsec/platform-client 58.2.0 → 58.3.1

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.
Files changed (37) hide show
  1. package/build/src/dto/assetKeys.d.ts +14 -4
  2. package/build/src/dto/assetKeys.js +10 -0
  3. package/build/src/dto/assetKeys.js.map +1 -1
  4. package/build/src/dto/assets.dto.d.ts +105 -15
  5. package/build/src/dto/assets.dto.js +22 -0
  6. package/build/src/dto/assets.dto.js.map +1 -1
  7. package/build/src/dto/base.dto.d.ts +52 -17
  8. package/build/src/dto/base.dto.js +14 -0
  9. package/build/src/dto/base.dto.js.map +1 -1
  10. package/build/src/dto/coverage.dto.d.ts +289 -0
  11. package/build/src/dto/coverage.dto.js +18 -0
  12. package/build/src/dto/coverage.dto.js.map +1 -0
  13. package/build/src/dto/index.d.ts +1 -0
  14. package/build/src/dto/index.js +1 -0
  15. package/build/src/dto/index.js.map +1 -1
  16. package/build/src/dto/saasAssets.dto.d.ts +104 -13
  17. package/build/src/dto/saasAssets.dto.js +19 -0
  18. package/build/src/dto/saasAssets.dto.js.map +1 -1
  19. package/build/src/dto/saasUsers.dto.d.ts +58 -10
  20. package/build/src/dto/saasUsers.dto.js +16 -0
  21. package/build/src/dto/saasUsers.dto.js.map +1 -1
  22. package/build/src/dto/users.dto.d.ts +27 -12
  23. package/build/src/dto/users.dto.js +11 -0
  24. package/build/src/dto/users.dto.js.map +1 -1
  25. package/build/src/settings.d.ts +4 -0
  26. package/build/src/settings.js +4 -0
  27. package/build/src/settings.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/dto/assetKeys.ts +9 -5
  30. package/src/dto/assets.dto.ts +26 -17
  31. package/src/dto/base.dto.ts +25 -25
  32. package/src/dto/coverage.dto.ts +24 -0
  33. package/src/dto/index.ts +1 -0
  34. package/src/dto/saasAssets.dto.ts +24 -17
  35. package/src/dto/saasUsers.dto.ts +21 -14
  36. package/src/dto/users.dto.ts +12 -12
  37. package/src/settings.ts +4 -0
@@ -1,8 +1,18 @@
1
- export type AssetKeys = {
1
+ import { z } from 'zod';
2
+ export declare const _AssetKeys: z.ZodObject<{
2
3
  /** External ID */
3
- extId?: string;
4
+ extId: z.ZodOptional<z.ZodString>;
4
5
  /** Serial Number */
5
- sn?: string;
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,110 @@
1
- import { AssetKeys } from './assetKeys';
2
- import { ChangeAwareDto, ChangeAwareUpsertDto } from './base.dto';
1
+ import { z } from 'zod';
3
2
  import { GlobalAssetType } from './enums/globalAsset.type';
4
- export type SimpleAssetDto = {
3
+ export declare const _SimpleAssetDto: z.ZodObject<{
5
4
  /** Id of the asset */
6
- id?: string;
5
+ id: z.ZodOptional<z.ZodString>;
7
6
  /** Human readable name of the asset */
8
- displayValue?: string;
9
- };
10
- export type AssetUpsertDto = ChangeAwareUpsertDto & {
11
- /** External Keys */
12
- extKeys: AssetKeys;
13
- /** Asset display value */
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.ZodUnion<[z.ZodString, z.ZodUndefined]>>;
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
- /** User Id of the asset owner */
38
+ extKeys: {
39
+ macs: string[];
40
+ extId?: string | undefined;
41
+ sn?: string | undefined;
42
+ };
43
+ id?: string | undefined;
16
44
  uid?: string | undefined;
17
- /** Asset type */
18
- assetType?: GlobalAssetType;
19
- };
20
- export type AssetDto = ChangeAwareDto & AssetUpsertDto;
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.ZodObject<{
60
+ createdAt: z.ZodString;
61
+ updatedAt: z.ZodString;
62
+ deletedAt: z.ZodNullable<z.ZodString>;
63
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUndefined]>>;
64
+ etag: z.ZodString;
65
+ extKeys: z.ZodObject<{
66
+ extId: z.ZodOptional<z.ZodString>;
67
+ sn: z.ZodOptional<z.ZodString>;
68
+ macs: z.ZodArray<z.ZodString, "many">;
69
+ }, "strip", z.ZodTypeAny, {
70
+ macs: string[];
71
+ extId?: string | undefined;
72
+ sn?: string | undefined;
73
+ }, {
74
+ macs: string[];
75
+ extId?: string | undefined;
76
+ sn?: string | undefined;
77
+ }>;
78
+ displayValue: z.ZodString;
79
+ uid: z.ZodOptional<z.ZodString>;
80
+ assetType: z.ZodOptional<z.ZodNativeEnum<typeof GlobalAssetType>>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ createdAt: string;
83
+ updatedAt: string;
84
+ deletedAt: string | null;
85
+ etag: string;
86
+ displayValue: string;
87
+ extKeys: {
88
+ macs: string[];
89
+ extId?: string | undefined;
90
+ sn?: string | undefined;
91
+ };
92
+ id?: string | undefined;
93
+ uid?: string | undefined;
94
+ assetType?: GlobalAssetType | undefined;
95
+ }, {
96
+ createdAt: string;
97
+ updatedAt: string;
98
+ deletedAt: string | null;
99
+ etag: string;
100
+ displayValue: string;
101
+ extKeys: {
102
+ macs: string[];
103
+ extId?: string | undefined;
104
+ sn?: string | undefined;
105
+ };
106
+ id?: string | undefined;
107
+ uid?: string | undefined;
108
+ assetType?: GlobalAssetType | undefined;
109
+ }>;
110
+ 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.merge(zod_1.z.object({
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.merge(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,KAAK,CACxD,OAAC,CAAC,MAAM,CAAC;IACP,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,CACH,CAAC;AAIW,QAAA,SAAS,GAAG,0BAAe,CAAC,KAAK,CAAC,uBAAe,CAAC,CAAC"}
@@ -1,22 +1,57 @@
1
- export type BaseUpsertDto = {
2
- /** Unique Row Identifier. Populated for entity updates. */
3
- id?: string;
4
- };
5
- export type BaseDto = {
6
- /** Unique Row Identifier */
7
- id: string;
8
- /** Record creation date in database. */
1
+ import { z } from 'zod';
2
+ export declare const _BaseUpsertDto: z.ZodObject<{
3
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUndefined]>>;
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.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUndefined]>>;
12
+ createdAt: z.ZodString;
13
+ updatedAt: z.ZodString;
14
+ deletedAt: z.ZodNullable<z.ZodString>;
15
+ }, "strip", z.ZodTypeAny, {
9
16
  createdAt: string;
10
- /** Last record update date in database. */
11
17
  updatedAt: string;
12
- /** Record deletion date in database. Only present on soft deleted, i.e. `null => active` */
13
18
  deletedAt: string | null;
14
- };
15
- export type ChangeAwareUpsertDto = BaseUpsertDto & {
16
- /** MD5 hash of a subset of properties to detect field level changes. */
19
+ id?: string | undefined;
20
+ }, {
21
+ createdAt: string;
22
+ updatedAt: string;
23
+ deletedAt: string | null;
24
+ id?: string | undefined;
25
+ }>;
26
+ export type BaseDto = z.infer<typeof _BaseDto>;
27
+ export declare const _ChangeAwareUpsertDto: z.ZodObject<{
28
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUndefined]>>;
29
+ etag: z.ZodString;
30
+ }, "strip", z.ZodTypeAny, {
17
31
  etag: string;
18
- };
19
- export type ChangeAwareDto = BaseDto & {
20
- /** MD5 hash of a subset of properties to deted field level changes. */
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.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUndefined]>>;
40
+ createdAt: z.ZodString;
41
+ updatedAt: z.ZodString;
42
+ deletedAt: z.ZodNullable<z.ZodString>;
43
+ etag: z.ZodString;
44
+ }, "strip", z.ZodTypeAny, {
45
+ createdAt: string;
46
+ updatedAt: string;
47
+ deletedAt: string | null;
48
+ etag: string;
49
+ id?: string | undefined;
50
+ }, {
51
+ createdAt: string;
52
+ updatedAt: string;
53
+ deletedAt: string | null;
21
54
  etag: string;
22
- };
55
+ id?: string | undefined;
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.union([zod_1.z.string(), zod_1.z.undefined()]).optional(),
7
+ });
8
+ exports._BaseDto = zod_1.z.object({
9
+ id: zod_1.z.union([zod_1.z.string(), zod_1.z.undefined()]).optional(),
10
+ createdAt: zod_1.z.string(),
11
+ updatedAt: zod_1.z.string(),
12
+ deletedAt: zod_1.z.string().nullable(),
13
+ });
14
+ const WithEtag = zod_1.z.object({ etag: zod_1.z.string() });
15
+ exports._ChangeAwareUpsertDto = exports._BaseUpsertDto.merge(WithEtag);
16
+ exports._ChangeAwareDto = exports._BaseDto.merge(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,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC;AAIU,QAAA,QAAQ,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,EAAE,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IACnD,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,OAAC,CAAC,MAAM,CAAC,EAAC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,EAAC,CAAC,CAAC;AAEjC,QAAA,qBAAqB,GAAG,sBAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AAIvD,QAAA,eAAe,GAAG,gBAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,289 @@
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.ZodObject<{
43
+ createdAt: z.ZodString;
44
+ updatedAt: z.ZodString;
45
+ deletedAt: z.ZodNullable<z.ZodString>;
46
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUndefined]>>;
47
+ etag: z.ZodString;
48
+ uid: z.ZodString;
49
+ cid: z.ZodString;
50
+ email: z.ZodString;
51
+ extId: z.ZodString;
52
+ meta: z.ZodUnknown;
53
+ }, "strip", z.ZodTypeAny, {
54
+ cid: string;
55
+ uid: string;
56
+ createdAt: string;
57
+ updatedAt: string;
58
+ deletedAt: string | null;
59
+ email: string;
60
+ etag: string;
61
+ extId: string;
62
+ id?: string | undefined;
63
+ meta?: unknown;
64
+ }, {
65
+ cid: string;
66
+ uid: string;
67
+ createdAt: string;
68
+ updatedAt: string;
69
+ deletedAt: string | null;
70
+ email: string;
71
+ etag: string;
72
+ extId: string;
73
+ id?: string | undefined;
74
+ meta?: unknown;
75
+ }>, "many">>;
76
+ assetAccounts: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
77
+ createdAt: z.ZodString;
78
+ updatedAt: z.ZodString;
79
+ deletedAt: z.ZodNullable<z.ZodString>;
80
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUndefined]>>;
81
+ etag: z.ZodString;
82
+ extKeys: z.ZodObject<{
83
+ extId: z.ZodOptional<z.ZodString>;
84
+ sn: z.ZodOptional<z.ZodString>;
85
+ macs: z.ZodArray<z.ZodString, "many">;
86
+ }, "strip", z.ZodTypeAny, {
87
+ macs: string[];
88
+ extId?: string | undefined;
89
+ sn?: string | undefined;
90
+ }, {
91
+ macs: string[];
92
+ extId?: string | undefined;
93
+ sn?: string | undefined;
94
+ }>;
95
+ cid: z.ZodString;
96
+ aid: z.ZodString;
97
+ uid: z.ZodOptional<z.ZodString>;
98
+ displayValue: z.ZodString;
99
+ meta: z.ZodUnknown;
100
+ }, "strip", z.ZodTypeAny, {
101
+ cid: string;
102
+ aid: string;
103
+ createdAt: string;
104
+ updatedAt: string;
105
+ deletedAt: string | null;
106
+ etag: string;
107
+ displayValue: string;
108
+ extKeys: {
109
+ macs: string[];
110
+ extId?: string | undefined;
111
+ sn?: string | undefined;
112
+ };
113
+ id?: string | undefined;
114
+ uid?: string | undefined;
115
+ meta?: unknown;
116
+ }, {
117
+ cid: string;
118
+ aid: string;
119
+ createdAt: string;
120
+ updatedAt: string;
121
+ deletedAt: string | null;
122
+ etag: string;
123
+ displayValue: string;
124
+ extKeys: {
125
+ macs: string[];
126
+ extId?: string | undefined;
127
+ sn?: string | undefined;
128
+ };
129
+ id?: string | undefined;
130
+ uid?: string | undefined;
131
+ meta?: unknown;
132
+ }>, "many">>;
133
+ assets: z.ZodArray<z.ZodObject<{
134
+ createdAt: z.ZodString;
135
+ updatedAt: z.ZodString;
136
+ deletedAt: z.ZodNullable<z.ZodString>;
137
+ id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodUndefined]>>;
138
+ etag: z.ZodString;
139
+ extKeys: z.ZodObject<{
140
+ extId: z.ZodOptional<z.ZodString>;
141
+ sn: z.ZodOptional<z.ZodString>;
142
+ macs: z.ZodArray<z.ZodString, "many">;
143
+ }, "strip", z.ZodTypeAny, {
144
+ macs: string[];
145
+ extId?: string | undefined;
146
+ sn?: string | undefined;
147
+ }, {
148
+ macs: string[];
149
+ extId?: string | undefined;
150
+ sn?: string | undefined;
151
+ }>;
152
+ displayValue: z.ZodString;
153
+ uid: z.ZodOptional<z.ZodString>;
154
+ assetType: z.ZodOptional<z.ZodNativeEnum<typeof import("./enums").GlobalAssetType>>;
155
+ }, "strip", z.ZodTypeAny, {
156
+ createdAt: string;
157
+ updatedAt: string;
158
+ deletedAt: string | null;
159
+ etag: string;
160
+ displayValue: string;
161
+ extKeys: {
162
+ macs: string[];
163
+ extId?: string | undefined;
164
+ sn?: string | undefined;
165
+ };
166
+ id?: string | undefined;
167
+ uid?: string | undefined;
168
+ assetType?: import("./enums").GlobalAssetType | undefined;
169
+ }, {
170
+ createdAt: string;
171
+ updatedAt: string;
172
+ deletedAt: string | null;
173
+ etag: string;
174
+ displayValue: string;
175
+ extKeys: {
176
+ macs: string[];
177
+ extId?: string | undefined;
178
+ sn?: string | undefined;
179
+ };
180
+ id?: string | undefined;
181
+ uid?: string | undefined;
182
+ assetType?: import("./enums").GlobalAssetType | undefined;
183
+ }>, "many">;
184
+ }, "strip", z.ZodTypeAny, {
185
+ userAccounts: Record<string, {
186
+ cid: string;
187
+ uid: string;
188
+ createdAt: string;
189
+ updatedAt: string;
190
+ deletedAt: string | null;
191
+ email: string;
192
+ etag: string;
193
+ extId: string;
194
+ id?: string | undefined;
195
+ meta?: unknown;
196
+ }[]>;
197
+ assetAccounts: Record<string, {
198
+ cid: string;
199
+ aid: string;
200
+ createdAt: string;
201
+ updatedAt: string;
202
+ deletedAt: string | null;
203
+ etag: string;
204
+ displayValue: string;
205
+ extKeys: {
206
+ macs: string[];
207
+ extId?: string | undefined;
208
+ sn?: string | undefined;
209
+ };
210
+ id?: string | undefined;
211
+ uid?: string | undefined;
212
+ meta?: unknown;
213
+ }[]>;
214
+ assets: {
215
+ createdAt: string;
216
+ updatedAt: string;
217
+ deletedAt: string | null;
218
+ etag: string;
219
+ displayValue: string;
220
+ extKeys: {
221
+ macs: string[];
222
+ extId?: string | undefined;
223
+ sn?: string | undefined;
224
+ };
225
+ id?: string | undefined;
226
+ uid?: string | undefined;
227
+ assetType?: import("./enums").GlobalAssetType | undefined;
228
+ }[];
229
+ id?: string | undefined;
230
+ organization?: string | undefined;
231
+ department?: string | undefined;
232
+ email?: string | undefined;
233
+ score?: number | undefined;
234
+ firstName?: string | undefined;
235
+ lastName?: string | undefined;
236
+ }, {
237
+ userAccounts: Record<string, {
238
+ cid: string;
239
+ uid: string;
240
+ createdAt: string;
241
+ updatedAt: string;
242
+ deletedAt: string | null;
243
+ email: string;
244
+ etag: string;
245
+ extId: string;
246
+ id?: string | undefined;
247
+ meta?: unknown;
248
+ }[]>;
249
+ assetAccounts: Record<string, {
250
+ cid: string;
251
+ aid: string;
252
+ createdAt: string;
253
+ updatedAt: string;
254
+ deletedAt: string | null;
255
+ etag: string;
256
+ displayValue: string;
257
+ extKeys: {
258
+ macs: string[];
259
+ extId?: string | undefined;
260
+ sn?: string | undefined;
261
+ };
262
+ id?: string | undefined;
263
+ uid?: string | undefined;
264
+ meta?: unknown;
265
+ }[]>;
266
+ assets: {
267
+ createdAt: string;
268
+ updatedAt: string;
269
+ deletedAt: string | null;
270
+ etag: string;
271
+ displayValue: string;
272
+ extKeys: {
273
+ macs: string[];
274
+ extId?: string | undefined;
275
+ sn?: string | undefined;
276
+ };
277
+ id?: string | undefined;
278
+ uid?: string | undefined;
279
+ assetType?: import("./enums").GlobalAssetType | undefined;
280
+ }[];
281
+ id?: string | undefined;
282
+ organization?: string | undefined;
283
+ department?: string | undefined;
284
+ email?: string | undefined;
285
+ score?: number | undefined;
286
+ firstName?: string | undefined;
287
+ lastName?: string | undefined;
288
+ }>;
289
+ 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.merge(zod_1.z.object({
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.merge(zod_1.z.object({
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,KAAK,CACtD,OAAC,CAAC,MAAM,CAAC;IACP,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,CACH,CAAC;AAIW,QAAA,mBAAmB,GAAG,0BAAc,CAAC,KAAK,CACrD,OAAC,CAAC,MAAM,CAAC;IACP,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,CACH,CAAC"}
@@ -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';
@@ -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"}