@ampsec/platform-client 74.4.0 → 74.4.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.
- package/build/src/dto/assetKeys.d.ts +4 -0
- package/build/src/dto/assetKeys.js +2 -0
- package/build/src/dto/assetKeys.js.map +1 -1
- package/build/src/dto/assets.dto.d.ts +12 -2
- package/build/src/dto/coverage.dto.d.ts +20 -6
- 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/enums/tenantStatusFlags.d.ts +9 -0
- package/build/src/dto/enums/tenantStatusFlags.js +13 -0
- package/build/src/dto/enums/tenantStatusFlags.js.map +1 -0
- package/build/src/dto/platform/platform.saasAssets.dto.d.ts +5 -0
- package/build/src/dto/saasAssets.dto.d.ts +12 -2
- package/build/src/dto/tenants.dto.d.ts +1 -10
- package/build/src/dto/tenants.dto.js +1 -10
- package/build/src/dto/tenants.dto.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/assetKeys.ts +2 -0
- package/src/dto/enums/index.ts +1 -0
- package/src/dto/enums/tenantStatusFlags.ts +9 -0
- package/src/dto/tenants.dto.ts +0 -10
|
@@ -4,15 +4,19 @@ export declare const _AssetKeys: z.ZodObject<{
|
|
|
4
4
|
extId: z.ZodOptional<z.ZodString>;
|
|
5
5
|
/** Serial Number */
|
|
6
6
|
sn: z.ZodOptional<z.ZodString>;
|
|
7
|
+
/** Serial Number */
|
|
8
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
7
9
|
/** MAC Addresses. Note: could be empty */
|
|
8
10
|
macs: z.ZodArray<z.ZodString, "many">;
|
|
9
11
|
}, "strip", z.ZodTypeAny, {
|
|
10
12
|
macs: string[];
|
|
11
13
|
extId?: string | undefined;
|
|
12
14
|
sn?: string | undefined;
|
|
15
|
+
hostname?: string | undefined;
|
|
13
16
|
}, {
|
|
14
17
|
macs: string[];
|
|
15
18
|
extId?: string | undefined;
|
|
16
19
|
sn?: string | undefined;
|
|
20
|
+
hostname?: string | undefined;
|
|
17
21
|
}>;
|
|
18
22
|
export type AssetKeys = z.infer<typeof _AssetKeys>;
|
|
@@ -7,6 +7,8 @@ exports._AssetKeys = zod_1.z.object({
|
|
|
7
7
|
extId: zod_1.z.string().optional(),
|
|
8
8
|
/** Serial Number */
|
|
9
9
|
sn: zod_1.z.string().optional(),
|
|
10
|
+
/** Serial Number */
|
|
11
|
+
hostname: zod_1.z.string().optional(),
|
|
10
12
|
/** MAC Addresses. Note: could be empty */
|
|
11
13
|
macs: zod_1.z.array(zod_1.z.string()),
|
|
12
14
|
});
|
|
@@ -1 +1 @@
|
|
|
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
|
+
{"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,oBAAoB;IACpB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,0CAA0C;IAC1C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CAC1B,CAAC,CAAC"}
|
|
@@ -30,9 +30,9 @@ export declare const _SummaryAssetDto: z.ZodObject<{
|
|
|
30
30
|
id?: string | undefined;
|
|
31
31
|
uid?: string | undefined;
|
|
32
32
|
sn?: string | undefined;
|
|
33
|
+
hostname?: string | undefined;
|
|
33
34
|
displayValue?: string | undefined;
|
|
34
35
|
maxSeverity?: string | undefined;
|
|
35
|
-
hostname?: string | undefined;
|
|
36
36
|
lastCheckinTs?: string | undefined;
|
|
37
37
|
os?: string | undefined;
|
|
38
38
|
make?: string | undefined;
|
|
@@ -41,9 +41,9 @@ export declare const _SummaryAssetDto: z.ZodObject<{
|
|
|
41
41
|
id?: string | undefined;
|
|
42
42
|
uid?: string | undefined;
|
|
43
43
|
sn?: string | undefined;
|
|
44
|
+
hostname?: string | undefined;
|
|
44
45
|
displayValue?: string | undefined;
|
|
45
46
|
maxSeverity?: string | undefined;
|
|
46
|
-
hostname?: string | undefined;
|
|
47
47
|
lastCheckinTs?: string | undefined;
|
|
48
48
|
os?: string | undefined;
|
|
49
49
|
make?: string | undefined;
|
|
@@ -62,15 +62,18 @@ export declare const _AssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.obj
|
|
|
62
62
|
extKeys: z.ZodObject<{
|
|
63
63
|
extId: z.ZodOptional<z.ZodString>;
|
|
64
64
|
sn: z.ZodOptional<z.ZodString>;
|
|
65
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
65
66
|
macs: z.ZodArray<z.ZodString, "many">;
|
|
66
67
|
}, "strip", z.ZodTypeAny, {
|
|
67
68
|
macs: string[];
|
|
68
69
|
extId?: string | undefined;
|
|
69
70
|
sn?: string | undefined;
|
|
71
|
+
hostname?: string | undefined;
|
|
70
72
|
}, {
|
|
71
73
|
macs: string[];
|
|
72
74
|
extId?: string | undefined;
|
|
73
75
|
sn?: string | undefined;
|
|
76
|
+
hostname?: string | undefined;
|
|
74
77
|
}>;
|
|
75
78
|
/** Asset display value */
|
|
76
79
|
displayValue: z.ZodString;
|
|
@@ -87,6 +90,7 @@ export declare const _AssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.obj
|
|
|
87
90
|
macs: string[];
|
|
88
91
|
extId?: string | undefined;
|
|
89
92
|
sn?: string | undefined;
|
|
93
|
+
hostname?: string | undefined;
|
|
90
94
|
};
|
|
91
95
|
id?: string | undefined;
|
|
92
96
|
uid?: string | undefined;
|
|
@@ -102,6 +106,7 @@ export declare const _AssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.obj
|
|
|
102
106
|
macs: string[];
|
|
103
107
|
extId?: string | undefined;
|
|
104
108
|
sn?: string | undefined;
|
|
109
|
+
hostname?: string | undefined;
|
|
105
110
|
};
|
|
106
111
|
id?: string | undefined;
|
|
107
112
|
uid?: string | undefined;
|
|
@@ -124,15 +129,18 @@ export declare const _AssetDto: z.ZodObject<z.objectUtil.extendShape<z.objectUti
|
|
|
124
129
|
extKeys: z.ZodObject<{
|
|
125
130
|
extId: z.ZodOptional<z.ZodString>;
|
|
126
131
|
sn: z.ZodOptional<z.ZodString>;
|
|
132
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
127
133
|
macs: z.ZodArray<z.ZodString, "many">;
|
|
128
134
|
}, "strip", z.ZodTypeAny, {
|
|
129
135
|
macs: string[];
|
|
130
136
|
extId?: string | undefined;
|
|
131
137
|
sn?: string | undefined;
|
|
138
|
+
hostname?: string | undefined;
|
|
132
139
|
}, {
|
|
133
140
|
macs: string[];
|
|
134
141
|
extId?: string | undefined;
|
|
135
142
|
sn?: string | undefined;
|
|
143
|
+
hostname?: string | undefined;
|
|
136
144
|
}>;
|
|
137
145
|
/** Asset display value */
|
|
138
146
|
displayValue: z.ZodString;
|
|
@@ -160,6 +168,7 @@ export declare const _AssetDto: z.ZodObject<z.objectUtil.extendShape<z.objectUti
|
|
|
160
168
|
macs: string[];
|
|
161
169
|
extId?: string | undefined;
|
|
162
170
|
sn?: string | undefined;
|
|
171
|
+
hostname?: string | undefined;
|
|
163
172
|
};
|
|
164
173
|
uid?: string | undefined;
|
|
165
174
|
assetType?: GlobalAssetType | undefined;
|
|
@@ -175,6 +184,7 @@ export declare const _AssetDto: z.ZodObject<z.objectUtil.extendShape<z.objectUti
|
|
|
175
184
|
macs: string[];
|
|
176
185
|
extId?: string | undefined;
|
|
177
186
|
sn?: string | undefined;
|
|
187
|
+
hostname?: string | undefined;
|
|
178
188
|
};
|
|
179
189
|
uid?: string | undefined;
|
|
180
190
|
assetType?: GlobalAssetType | undefined;
|
|
@@ -44,9 +44,9 @@ export declare const _AssetCoverageSummary: z.ZodObject<z.objectUtil.extendShape
|
|
|
44
44
|
id?: string | undefined;
|
|
45
45
|
uid?: string | undefined;
|
|
46
46
|
sn?: string | undefined;
|
|
47
|
+
hostname?: string | undefined;
|
|
47
48
|
displayValue?: string | undefined;
|
|
48
49
|
maxSeverity?: string | undefined;
|
|
49
|
-
hostname?: string | undefined;
|
|
50
50
|
lastCheckinTs?: string | undefined;
|
|
51
51
|
os?: string | undefined;
|
|
52
52
|
make?: string | undefined;
|
|
@@ -59,9 +59,9 @@ export declare const _AssetCoverageSummary: z.ZodObject<z.objectUtil.extendShape
|
|
|
59
59
|
id?: string | undefined;
|
|
60
60
|
uid?: string | undefined;
|
|
61
61
|
sn?: string | undefined;
|
|
62
|
+
hostname?: string | undefined;
|
|
62
63
|
displayValue?: string | undefined;
|
|
63
64
|
maxSeverity?: string | undefined;
|
|
64
|
-
hostname?: string | undefined;
|
|
65
65
|
lastCheckinTs?: string | undefined;
|
|
66
66
|
os?: string | undefined;
|
|
67
67
|
make?: string | undefined;
|
|
@@ -284,9 +284,9 @@ export declare const _UserCoverageSummary: z.ZodObject<z.objectUtil.extendShape<
|
|
|
284
284
|
id?: string | undefined;
|
|
285
285
|
uid?: string | undefined;
|
|
286
286
|
sn?: string | undefined;
|
|
287
|
+
hostname?: string | undefined;
|
|
287
288
|
displayValue?: string | undefined;
|
|
288
289
|
maxSeverity?: string | undefined;
|
|
289
|
-
hostname?: string | undefined;
|
|
290
290
|
lastCheckinTs?: string | undefined;
|
|
291
291
|
os?: string | undefined;
|
|
292
292
|
make?: string | undefined;
|
|
@@ -299,9 +299,9 @@ export declare const _UserCoverageSummary: z.ZodObject<z.objectUtil.extendShape<
|
|
|
299
299
|
id?: string | undefined;
|
|
300
300
|
uid?: string | undefined;
|
|
301
301
|
sn?: string | undefined;
|
|
302
|
+
hostname?: string | undefined;
|
|
302
303
|
displayValue?: string | undefined;
|
|
303
304
|
maxSeverity?: string | undefined;
|
|
304
|
-
hostname?: string | undefined;
|
|
305
305
|
lastCheckinTs?: string | undefined;
|
|
306
306
|
os?: string | undefined;
|
|
307
307
|
make?: string | undefined;
|
|
@@ -321,9 +321,9 @@ export declare const _UserCoverageSummary: z.ZodObject<z.objectUtil.extendShape<
|
|
|
321
321
|
id?: string | undefined;
|
|
322
322
|
uid?: string | undefined;
|
|
323
323
|
sn?: string | undefined;
|
|
324
|
+
hostname?: string | undefined;
|
|
324
325
|
displayValue?: string | undefined;
|
|
325
326
|
maxSeverity?: string | undefined;
|
|
326
|
-
hostname?: string | undefined;
|
|
327
327
|
lastCheckinTs?: string | undefined;
|
|
328
328
|
os?: string | undefined;
|
|
329
329
|
make?: string | undefined;
|
|
@@ -387,9 +387,9 @@ export declare const _UserCoverageSummary: z.ZodObject<z.objectUtil.extendShape<
|
|
|
387
387
|
id?: string | undefined;
|
|
388
388
|
uid?: string | undefined;
|
|
389
389
|
sn?: string | undefined;
|
|
390
|
+
hostname?: string | undefined;
|
|
390
391
|
displayValue?: string | undefined;
|
|
391
392
|
maxSeverity?: string | undefined;
|
|
392
|
-
hostname?: string | undefined;
|
|
393
393
|
lastCheckinTs?: string | undefined;
|
|
394
394
|
os?: string | undefined;
|
|
395
395
|
make?: string | undefined;
|
|
@@ -776,15 +776,18 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
776
776
|
extKeys: z.ZodObject<{
|
|
777
777
|
extId: z.ZodOptional<z.ZodString>;
|
|
778
778
|
sn: z.ZodOptional<z.ZodString>;
|
|
779
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
779
780
|
macs: z.ZodArray<z.ZodString, "many">;
|
|
780
781
|
}, "strip", z.ZodTypeAny, {
|
|
781
782
|
macs: string[];
|
|
782
783
|
extId?: string | undefined;
|
|
783
784
|
sn?: string | undefined;
|
|
785
|
+
hostname?: string | undefined;
|
|
784
786
|
}, {
|
|
785
787
|
macs: string[];
|
|
786
788
|
extId?: string | undefined;
|
|
787
789
|
sn?: string | undefined;
|
|
790
|
+
hostname?: string | undefined;
|
|
788
791
|
}>;
|
|
789
792
|
cid: z.ZodString;
|
|
790
793
|
aid: z.ZodString;
|
|
@@ -908,6 +911,7 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
908
911
|
macs: string[];
|
|
909
912
|
extId?: string | undefined;
|
|
910
913
|
sn?: string | undefined;
|
|
914
|
+
hostname?: string | undefined;
|
|
911
915
|
};
|
|
912
916
|
meta: {
|
|
913
917
|
_asset: {
|
|
@@ -943,6 +947,7 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
943
947
|
macs: string[];
|
|
944
948
|
extId?: string | undefined;
|
|
945
949
|
sn?: string | undefined;
|
|
950
|
+
hostname?: string | undefined;
|
|
946
951
|
};
|
|
947
952
|
meta: {
|
|
948
953
|
_asset: {
|
|
@@ -977,15 +982,18 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
977
982
|
extKeys: z.ZodObject<{
|
|
978
983
|
extId: z.ZodOptional<z.ZodString>;
|
|
979
984
|
sn: z.ZodOptional<z.ZodString>;
|
|
985
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
980
986
|
macs: z.ZodArray<z.ZodString, "many">;
|
|
981
987
|
}, "strip", z.ZodTypeAny, {
|
|
982
988
|
macs: string[];
|
|
983
989
|
extId?: string | undefined;
|
|
984
990
|
sn?: string | undefined;
|
|
991
|
+
hostname?: string | undefined;
|
|
985
992
|
}, {
|
|
986
993
|
macs: string[];
|
|
987
994
|
extId?: string | undefined;
|
|
988
995
|
sn?: string | undefined;
|
|
996
|
+
hostname?: string | undefined;
|
|
989
997
|
}>;
|
|
990
998
|
displayValue: z.ZodString;
|
|
991
999
|
uid: z.ZodOptional<z.ZodString>;
|
|
@@ -1009,6 +1017,7 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1009
1017
|
macs: string[];
|
|
1010
1018
|
extId?: string | undefined;
|
|
1011
1019
|
sn?: string | undefined;
|
|
1020
|
+
hostname?: string | undefined;
|
|
1012
1021
|
};
|
|
1013
1022
|
uid?: string | undefined;
|
|
1014
1023
|
assetType?: import("./enums").GlobalAssetType | undefined;
|
|
@@ -1024,6 +1033,7 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1024
1033
|
macs: string[];
|
|
1025
1034
|
extId?: string | undefined;
|
|
1026
1035
|
sn?: string | undefined;
|
|
1036
|
+
hostname?: string | undefined;
|
|
1027
1037
|
};
|
|
1028
1038
|
uid?: string | undefined;
|
|
1029
1039
|
assetType?: import("./enums").GlobalAssetType | undefined;
|
|
@@ -1043,6 +1053,7 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1043
1053
|
macs: string[];
|
|
1044
1054
|
extId?: string | undefined;
|
|
1045
1055
|
sn?: string | undefined;
|
|
1056
|
+
hostname?: string | undefined;
|
|
1046
1057
|
};
|
|
1047
1058
|
meta: {
|
|
1048
1059
|
_asset: {
|
|
@@ -1121,6 +1132,7 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1121
1132
|
macs: string[];
|
|
1122
1133
|
extId?: string | undefined;
|
|
1123
1134
|
sn?: string | undefined;
|
|
1135
|
+
hostname?: string | undefined;
|
|
1124
1136
|
};
|
|
1125
1137
|
uid?: string | undefined;
|
|
1126
1138
|
assetType?: import("./enums").GlobalAssetType | undefined;
|
|
@@ -1149,6 +1161,7 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1149
1161
|
macs: string[];
|
|
1150
1162
|
extId?: string | undefined;
|
|
1151
1163
|
sn?: string | undefined;
|
|
1164
|
+
hostname?: string | undefined;
|
|
1152
1165
|
};
|
|
1153
1166
|
meta: {
|
|
1154
1167
|
_asset: {
|
|
@@ -1227,6 +1240,7 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1227
1240
|
macs: string[];
|
|
1228
1241
|
extId?: string | undefined;
|
|
1229
1242
|
sn?: string | undefined;
|
|
1243
|
+
hostname?: string | undefined;
|
|
1230
1244
|
};
|
|
1231
1245
|
uid?: string | undefined;
|
|
1232
1246
|
assetType?: import("./enums").GlobalAssetType | undefined;
|
|
@@ -38,4 +38,5 @@ __exportStar(require("./riskContributor.type"), exports);
|
|
|
38
38
|
__exportStar(require("./saasComponentKind"), exports);
|
|
39
39
|
__exportStar(require("./aiServiceModelName"), exports);
|
|
40
40
|
__exportStar(require("./actionExecution.status"), exports);
|
|
41
|
+
__exportStar(require("./tenantStatusFlags"), exports);
|
|
41
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -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,sDAAoC;AACpC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,iDAA+B;AAC/B,0DAAwC;AACxC,mDAAiC;AACjC,gDAA8B;AAC9B,oDAAkC;AAClC,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,wDAAsC;AACtC,mDAAiC;AACjC,8DAA4C;AAC5C,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,2DAAyC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,wDAAsC;AACtC,sDAAoC;AACpC,6CAA2B;AAC3B,qDAAmC;AACnC,qDAAmC;AACnC,iDAA+B;AAC/B,0DAAwC;AACxC,mDAAiC;AACjC,gDAA8B;AAC9B,oDAAkC;AAClC,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,wDAAsC;AACtC,mDAAiC;AACjC,8DAA4C;AAC5C,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,2DAAyC;AACzC,sDAAoC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const TENANT_STATUS_FLAGS: {
|
|
2
|
+
HAS_ETL_ERROR: number;
|
|
3
|
+
HAS_RECONCILIATION_ERROR: number;
|
|
4
|
+
HAS_FINDINGS_GENERATION_ERROR: number;
|
|
5
|
+
HAS_RISK_CONTRIBUTORS_ERROR: number;
|
|
6
|
+
HAS_REPORTING_ERROR: number;
|
|
7
|
+
HAS_NOTIFICATIONS_ERROR: number;
|
|
8
|
+
HAS_FLOWS_ERROR: number;
|
|
9
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TENANT_STATUS_FLAGS = void 0;
|
|
4
|
+
exports.TENANT_STATUS_FLAGS = {
|
|
5
|
+
HAS_ETL_ERROR: 1,
|
|
6
|
+
HAS_RECONCILIATION_ERROR: 1 << 1,
|
|
7
|
+
HAS_FINDINGS_GENERATION_ERROR: 1 << 2,
|
|
8
|
+
HAS_RISK_CONTRIBUTORS_ERROR: 1 << 3,
|
|
9
|
+
HAS_REPORTING_ERROR: 1 << 4,
|
|
10
|
+
HAS_NOTIFICATIONS_ERROR: 1 << 5,
|
|
11
|
+
HAS_FLOWS_ERROR: 1 << 6,
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=tenantStatusFlags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenantStatusFlags.js","sourceRoot":"","sources":["../../../../src/dto/enums/tenantStatusFlags.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG;IACjC,aAAa,EAAE,CAAC;IAChB,wBAAwB,EAAE,CAAC,IAAI,CAAC;IAChC,6BAA6B,EAAE,CAAC,IAAI,CAAC;IACrC,2BAA2B,EAAE,CAAC,IAAI,CAAC;IACnC,mBAAmB,EAAE,CAAC,IAAI,CAAC;IAC3B,uBAAuB,EAAE,CAAC,IAAI,CAAC;IAC/B,eAAe,EAAE,CAAC,IAAI,CAAC;CACxB,CAAC"}
|
|
@@ -14,15 +14,18 @@ export declare const _StagedSaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendS
|
|
|
14
14
|
extKeys: z.ZodObject<{
|
|
15
15
|
extId: z.ZodOptional<z.ZodString>;
|
|
16
16
|
sn: z.ZodOptional<z.ZodString>;
|
|
17
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
17
18
|
macs: z.ZodArray<z.ZodString, "many">;
|
|
18
19
|
}, "strip", z.ZodTypeAny, {
|
|
19
20
|
macs: string[];
|
|
20
21
|
extId?: string | undefined;
|
|
21
22
|
sn?: string | undefined;
|
|
23
|
+
hostname?: string | undefined;
|
|
22
24
|
}, {
|
|
23
25
|
macs: string[];
|
|
24
26
|
extId?: string | undefined;
|
|
25
27
|
sn?: string | undefined;
|
|
28
|
+
hostname?: string | undefined;
|
|
26
29
|
}>;
|
|
27
30
|
cid: z.ZodString;
|
|
28
31
|
aid: z.ZodString;
|
|
@@ -137,6 +140,7 @@ export declare const _StagedSaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendS
|
|
|
137
140
|
macs: string[];
|
|
138
141
|
extId?: string | undefined;
|
|
139
142
|
sn?: string | undefined;
|
|
143
|
+
hostname?: string | undefined;
|
|
140
144
|
};
|
|
141
145
|
meta: {
|
|
142
146
|
_asset: {
|
|
@@ -173,6 +177,7 @@ export declare const _StagedSaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendS
|
|
|
173
177
|
macs: string[];
|
|
174
178
|
extId?: string | undefined;
|
|
175
179
|
sn?: string | undefined;
|
|
180
|
+
hostname?: string | undefined;
|
|
176
181
|
};
|
|
177
182
|
meta: {
|
|
178
183
|
_asset: {
|
|
@@ -123,15 +123,18 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
123
123
|
extKeys: z.ZodObject<{
|
|
124
124
|
extId: z.ZodOptional<z.ZodString>;
|
|
125
125
|
sn: z.ZodOptional<z.ZodString>;
|
|
126
|
-
|
|
126
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
127
|
+
macs: z.ZodArray<z.ZodString, "many">;
|
|
127
128
|
}, "strip", z.ZodTypeAny, {
|
|
128
129
|
macs: string[];
|
|
129
130
|
extId?: string | undefined;
|
|
130
131
|
sn?: string | undefined;
|
|
132
|
+
hostname?: string | undefined;
|
|
131
133
|
}, {
|
|
132
134
|
macs: string[];
|
|
133
135
|
extId?: string | undefined;
|
|
134
136
|
sn?: string | undefined;
|
|
137
|
+
hostname?: string | undefined;
|
|
135
138
|
}>;
|
|
136
139
|
/** Connector Id */
|
|
137
140
|
cid: z.ZodString;
|
|
@@ -260,6 +263,7 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
260
263
|
macs: string[];
|
|
261
264
|
extId?: string | undefined;
|
|
262
265
|
sn?: string | undefined;
|
|
266
|
+
hostname?: string | undefined;
|
|
263
267
|
};
|
|
264
268
|
meta: {
|
|
265
269
|
_asset: {
|
|
@@ -295,6 +299,7 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
295
299
|
macs: string[];
|
|
296
300
|
extId?: string | undefined;
|
|
297
301
|
sn?: string | undefined;
|
|
302
|
+
hostname?: string | undefined;
|
|
298
303
|
};
|
|
299
304
|
meta: {
|
|
300
305
|
_asset: {
|
|
@@ -336,15 +341,18 @@ export declare const _SaasAssetDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
336
341
|
extKeys: z.ZodObject<{
|
|
337
342
|
extId: z.ZodOptional<z.ZodString>;
|
|
338
343
|
sn: z.ZodOptional<z.ZodString>;
|
|
339
|
-
|
|
344
|
+
hostname: z.ZodOptional<z.ZodString>;
|
|
345
|
+
macs: z.ZodArray<z.ZodString, "many">;
|
|
340
346
|
}, "strip", z.ZodTypeAny, {
|
|
341
347
|
macs: string[];
|
|
342
348
|
extId?: string | undefined;
|
|
343
349
|
sn?: string | undefined;
|
|
350
|
+
hostname?: string | undefined;
|
|
344
351
|
}, {
|
|
345
352
|
macs: string[];
|
|
346
353
|
extId?: string | undefined;
|
|
347
354
|
sn?: string | undefined;
|
|
355
|
+
hostname?: string | undefined;
|
|
348
356
|
}>;
|
|
349
357
|
/** Connector Id */
|
|
350
358
|
cid: z.ZodString;
|
|
@@ -485,6 +493,7 @@ export declare const _SaasAssetDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
485
493
|
macs: string[];
|
|
486
494
|
extId?: string | undefined;
|
|
487
495
|
sn?: string | undefined;
|
|
496
|
+
hostname?: string | undefined;
|
|
488
497
|
};
|
|
489
498
|
meta: {
|
|
490
499
|
_asset: {
|
|
@@ -520,6 +529,7 @@ export declare const _SaasAssetDto: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
520
529
|
macs: string[];
|
|
521
530
|
extId?: string | undefined;
|
|
522
531
|
sn?: string | undefined;
|
|
532
|
+
hostname?: string | undefined;
|
|
523
533
|
};
|
|
524
534
|
meta: {
|
|
525
535
|
_asset: {
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const TENANT_STATUS_FLAGS: {
|
|
3
|
-
HAS_ETL_ERROR: number;
|
|
4
|
-
HAS_RECONCILIATION_ERROR: number;
|
|
5
|
-
HAS_FINDINGS_GENERATION_ERROR: number;
|
|
6
|
-
HAS_RISK_CONTRIBUTORS_ERROR: number;
|
|
7
|
-
HAS_REPORTING_ERROR: number;
|
|
8
|
-
HAS_NOTIFICATIONS_ERROR: number;
|
|
9
|
-
HAS_FLOWS_ERROR: number;
|
|
10
|
-
};
|
|
11
2
|
export declare const _TenantUpsertDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
12
3
|
id: z.ZodOptional<z.ZodString>;
|
|
13
4
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -36,7 +27,7 @@ export type TenantUpsertDto = z.infer<typeof _TenantUpsertDto>;
|
|
|
36
27
|
export declare const _TenantDto: z.ZodObject<z.objectUtil.extendShape<{
|
|
37
28
|
id: z.ZodString;
|
|
38
29
|
createdAt: z.ZodString;
|
|
39
|
-
updatedAt: z.ZodString;
|
|
30
|
+
updatedAt: z.ZodString; /** Human readable name of the tenant */
|
|
40
31
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
41
32
|
}, {
|
|
42
33
|
/** Human readable name of the tenant */
|
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._TenantDto = exports._TenantUpsertDto =
|
|
3
|
+
exports._TenantDto = exports._TenantUpsertDto = void 0;
|
|
4
4
|
const base_dto_1 = require("./base.dto");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
|
-
exports.TENANT_STATUS_FLAGS = {
|
|
7
|
-
HAS_ETL_ERROR: 1,
|
|
8
|
-
HAS_RECONCILIATION_ERROR: 1 << 1,
|
|
9
|
-
HAS_FINDINGS_GENERATION_ERROR: 1 << 2,
|
|
10
|
-
HAS_RISK_CONTRIBUTORS_ERROR: 1 << 3,
|
|
11
|
-
HAS_REPORTING_ERROR: 1 << 4,
|
|
12
|
-
HAS_NOTIFICATIONS_ERROR: 1 << 5,
|
|
13
|
-
HAS_FLOWS_ERROR: 1 << 6,
|
|
14
|
-
};
|
|
15
6
|
const DisplayValueAndStatusSchema = zod_1.z.object({
|
|
16
7
|
/** Human readable name of the tenant */
|
|
17
8
|
displayValue: zod_1.z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.dto.js","sourceRoot":"","sources":["../../../src/dto/tenants.dto.ts"],"names":[],"mappings":";;;AAAA,yCAAoD;AACpD,6BAAsB;
|
|
1
|
+
{"version":3,"file":"tenants.dto.js","sourceRoot":"","sources":["../../../src/dto/tenants.dto.ts"],"names":[],"mappings":";;;AAAA,yCAAoD;AACpD,6BAAsB;AAEtB,MAAM,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,wCAAwC;IACxC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;CAC9B,CAAC,CAAC;AAEU,QAAA,gBAAgB,GAAG,yBAAc,CAAC,MAAM,CAAC;IACpD,GAAG,2BAA2B,CAAC,KAAK;CACrC,CAAC,CAAC;AAGU,QAAA,UAAU,GAAG,mBAAQ,CAAC,MAAM,CAAC;IACxC,GAAG,2BAA2B,CAAC,KAAK;CACrC,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/dto/assetKeys.ts
CHANGED
package/src/dto/enums/index.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const TENANT_STATUS_FLAGS = {
|
|
2
|
+
HAS_ETL_ERROR: 1,
|
|
3
|
+
HAS_RECONCILIATION_ERROR: 1 << 1,
|
|
4
|
+
HAS_FINDINGS_GENERATION_ERROR: 1 << 2,
|
|
5
|
+
HAS_RISK_CONTRIBUTORS_ERROR: 1 << 3,
|
|
6
|
+
HAS_REPORTING_ERROR: 1 << 4,
|
|
7
|
+
HAS_NOTIFICATIONS_ERROR: 1 << 5,
|
|
8
|
+
HAS_FLOWS_ERROR: 1 << 6,
|
|
9
|
+
};
|
package/src/dto/tenants.dto.ts
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import {_BaseDto, _BaseUpsertDto} from './base.dto';
|
|
2
2
|
import {z} from 'zod';
|
|
3
3
|
|
|
4
|
-
export const TENANT_STATUS_FLAGS = {
|
|
5
|
-
HAS_ETL_ERROR: 1,
|
|
6
|
-
HAS_RECONCILIATION_ERROR: 1 << 1,
|
|
7
|
-
HAS_FINDINGS_GENERATION_ERROR: 1 << 2,
|
|
8
|
-
HAS_RISK_CONTRIBUTORS_ERROR: 1 << 3,
|
|
9
|
-
HAS_REPORTING_ERROR: 1 << 4,
|
|
10
|
-
HAS_NOTIFICATIONS_ERROR: 1 << 5,
|
|
11
|
-
HAS_FLOWS_ERROR: 1 << 6,
|
|
12
|
-
};
|
|
13
|
-
|
|
14
4
|
const DisplayValueAndStatusSchema = z.object({
|
|
15
5
|
/** Human readable name of the tenant */
|
|
16
6
|
displayValue: z.string(),
|