@ampsec/platform-client 59.8.0 → 61.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/coverage.dto.d.ts +397 -16
- package/build/src/dto/platform/platform.saasAssets.dto.d.ts +99 -3
- package/build/src/dto/platform/platform.saasUsers.dto.d.ts +210 -3
- package/build/src/dto/saasAssets.dto.d.ts +295 -8
- package/build/src/dto/saasAssets.dto.js +30 -2
- package/build/src/dto/saasAssets.dto.js.map +1 -1
- package/build/src/dto/saasUsers.dto.d.ts +637 -6
- package/build/src/dto/saasUsers.dto.js +50 -2
- package/build/src/dto/saasUsers.dto.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/saasAssets.dto.ts +34 -1
- package/src/dto/saasUsers.dto.ts +52 -1
|
@@ -12,29 +12,236 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
|
|
|
12
12
|
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
etag: z.ZodString;
|
|
14
14
|
extId: z.ZodString;
|
|
15
|
-
meta: z.
|
|
15
|
+
meta: z.ZodObject<{
|
|
16
|
+
_user: z.ZodObject<{
|
|
17
|
+
extId: z.ZodOptional<z.ZodString>;
|
|
18
|
+
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
19
|
+
created: z.ZodOptional<z.ZodString>;
|
|
20
|
+
lastActivityTime: z.ZodOptional<z.ZodString>;
|
|
21
|
+
factors: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
|
|
22
|
+
profile: z.ZodObject<{
|
|
23
|
+
firstName: z.ZodString;
|
|
24
|
+
lastName: z.ZodString;
|
|
25
|
+
email: z.ZodString;
|
|
26
|
+
title: z.ZodOptional<z.ZodString>;
|
|
27
|
+
department: z.ZodOptional<z.ZodString>;
|
|
28
|
+
organization: z.ZodOptional<z.ZodString>;
|
|
29
|
+
pictureUrl: z.ZodOptional<z.ZodString>;
|
|
30
|
+
startDate: z.ZodOptional<z.ZodString>;
|
|
31
|
+
manager: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
extId: z.ZodOptional<z.ZodString>;
|
|
33
|
+
name: z.ZodOptional<z.ZodString>;
|
|
34
|
+
email: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
extId?: string | undefined;
|
|
37
|
+
name?: string | undefined;
|
|
38
|
+
email?: string | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
extId?: string | undefined;
|
|
41
|
+
name?: string | undefined;
|
|
42
|
+
email?: string | undefined;
|
|
43
|
+
}>>;
|
|
44
|
+
userType: z.ZodNativeEnum<typeof import("..").GlobalUserType>;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
email: string;
|
|
47
|
+
firstName: string;
|
|
48
|
+
lastName: string;
|
|
49
|
+
userType: import("..").GlobalUserType;
|
|
50
|
+
title?: string | undefined;
|
|
51
|
+
department?: string | undefined;
|
|
52
|
+
organization?: string | undefined;
|
|
53
|
+
pictureUrl?: string | undefined;
|
|
54
|
+
startDate?: string | undefined;
|
|
55
|
+
manager?: {
|
|
56
|
+
extId?: string | undefined;
|
|
57
|
+
name?: string | undefined;
|
|
58
|
+
email?: string | undefined;
|
|
59
|
+
} | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
email: string;
|
|
62
|
+
firstName: string;
|
|
63
|
+
lastName: string;
|
|
64
|
+
userType: import("..").GlobalUserType;
|
|
65
|
+
title?: string | undefined;
|
|
66
|
+
department?: string | undefined;
|
|
67
|
+
organization?: string | undefined;
|
|
68
|
+
pictureUrl?: string | undefined;
|
|
69
|
+
startDate?: string | undefined;
|
|
70
|
+
manager?: {
|
|
71
|
+
extId?: string | undefined;
|
|
72
|
+
name?: string | undefined;
|
|
73
|
+
email?: string | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
profile: {
|
|
78
|
+
email: string;
|
|
79
|
+
firstName: string;
|
|
80
|
+
lastName: string;
|
|
81
|
+
userType: import("..").GlobalUserType;
|
|
82
|
+
title?: string | undefined;
|
|
83
|
+
department?: string | undefined;
|
|
84
|
+
organization?: string | undefined;
|
|
85
|
+
pictureUrl?: string | undefined;
|
|
86
|
+
startDate?: string | undefined;
|
|
87
|
+
manager?: {
|
|
88
|
+
extId?: string | undefined;
|
|
89
|
+
name?: string | undefined;
|
|
90
|
+
email?: string | undefined;
|
|
91
|
+
} | undefined;
|
|
92
|
+
};
|
|
93
|
+
extId?: string | undefined;
|
|
94
|
+
groups?: Record<string, string> | undefined;
|
|
95
|
+
created?: string | undefined;
|
|
96
|
+
lastActivityTime?: string | undefined;
|
|
97
|
+
factors?: Record<string, string>[] | undefined;
|
|
98
|
+
}, {
|
|
99
|
+
profile: {
|
|
100
|
+
email: string;
|
|
101
|
+
firstName: string;
|
|
102
|
+
lastName: string;
|
|
103
|
+
userType: import("..").GlobalUserType;
|
|
104
|
+
title?: string | undefined;
|
|
105
|
+
department?: string | undefined;
|
|
106
|
+
organization?: string | undefined;
|
|
107
|
+
pictureUrl?: string | undefined;
|
|
108
|
+
startDate?: string | undefined;
|
|
109
|
+
manager?: {
|
|
110
|
+
extId?: string | undefined;
|
|
111
|
+
name?: string | undefined;
|
|
112
|
+
email?: string | undefined;
|
|
113
|
+
} | undefined;
|
|
114
|
+
};
|
|
115
|
+
extId?: string | undefined;
|
|
116
|
+
groups?: Record<string, string> | undefined;
|
|
117
|
+
created?: string | undefined;
|
|
118
|
+
lastActivityTime?: string | undefined;
|
|
119
|
+
factors?: Record<string, string>[] | undefined;
|
|
120
|
+
}>;
|
|
121
|
+
_raw: z.ZodUnknown;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
_user: {
|
|
124
|
+
profile: {
|
|
125
|
+
email: string;
|
|
126
|
+
firstName: string;
|
|
127
|
+
lastName: string;
|
|
128
|
+
userType: import("..").GlobalUserType;
|
|
129
|
+
title?: string | undefined;
|
|
130
|
+
department?: string | undefined;
|
|
131
|
+
organization?: string | undefined;
|
|
132
|
+
pictureUrl?: string | undefined;
|
|
133
|
+
startDate?: string | undefined;
|
|
134
|
+
manager?: {
|
|
135
|
+
extId?: string | undefined;
|
|
136
|
+
name?: string | undefined;
|
|
137
|
+
email?: string | undefined;
|
|
138
|
+
} | undefined;
|
|
139
|
+
};
|
|
140
|
+
extId?: string | undefined;
|
|
141
|
+
groups?: Record<string, string> | undefined;
|
|
142
|
+
created?: string | undefined;
|
|
143
|
+
lastActivityTime?: string | undefined;
|
|
144
|
+
factors?: Record<string, string>[] | undefined;
|
|
145
|
+
};
|
|
146
|
+
_raw?: unknown;
|
|
147
|
+
}, {
|
|
148
|
+
_user: {
|
|
149
|
+
profile: {
|
|
150
|
+
email: string;
|
|
151
|
+
firstName: string;
|
|
152
|
+
lastName: string;
|
|
153
|
+
userType: import("..").GlobalUserType;
|
|
154
|
+
title?: string | undefined;
|
|
155
|
+
department?: string | undefined;
|
|
156
|
+
organization?: string | undefined;
|
|
157
|
+
pictureUrl?: string | undefined;
|
|
158
|
+
startDate?: string | undefined;
|
|
159
|
+
manager?: {
|
|
160
|
+
extId?: string | undefined;
|
|
161
|
+
name?: string | undefined;
|
|
162
|
+
email?: string | undefined;
|
|
163
|
+
} | undefined;
|
|
164
|
+
};
|
|
165
|
+
extId?: string | undefined;
|
|
166
|
+
groups?: Record<string, string> | undefined;
|
|
167
|
+
created?: string | undefined;
|
|
168
|
+
lastActivityTime?: string | undefined;
|
|
169
|
+
factors?: Record<string, string>[] | undefined;
|
|
170
|
+
};
|
|
171
|
+
_raw?: unknown;
|
|
172
|
+
}>;
|
|
16
173
|
uid: z.ZodOptional<z.ZodString>;
|
|
17
174
|
}, "strip", z.ZodTypeAny, {
|
|
18
175
|
email: string;
|
|
19
176
|
cid: string;
|
|
20
177
|
etag: string;
|
|
21
178
|
extId: string;
|
|
179
|
+
meta: {
|
|
180
|
+
_user: {
|
|
181
|
+
profile: {
|
|
182
|
+
email: string;
|
|
183
|
+
firstName: string;
|
|
184
|
+
lastName: string;
|
|
185
|
+
userType: import("..").GlobalUserType;
|
|
186
|
+
title?: string | undefined;
|
|
187
|
+
department?: string | undefined;
|
|
188
|
+
organization?: string | undefined;
|
|
189
|
+
pictureUrl?: string | undefined;
|
|
190
|
+
startDate?: string | undefined;
|
|
191
|
+
manager?: {
|
|
192
|
+
extId?: string | undefined;
|
|
193
|
+
name?: string | undefined;
|
|
194
|
+
email?: string | undefined;
|
|
195
|
+
} | undefined;
|
|
196
|
+
};
|
|
197
|
+
extId?: string | undefined;
|
|
198
|
+
groups?: Record<string, string> | undefined;
|
|
199
|
+
created?: string | undefined;
|
|
200
|
+
lastActivityTime?: string | undefined;
|
|
201
|
+
factors?: Record<string, string>[] | undefined;
|
|
202
|
+
};
|
|
203
|
+
_raw?: unknown;
|
|
204
|
+
};
|
|
22
205
|
id?: string | undefined;
|
|
23
206
|
createdAt?: string | undefined;
|
|
24
207
|
updatedAt?: string | undefined;
|
|
25
208
|
deletedAt?: string | null | undefined;
|
|
26
|
-
meta?: unknown;
|
|
27
209
|
uid?: string | undefined;
|
|
28
210
|
}, {
|
|
29
211
|
email: string;
|
|
30
212
|
cid: string;
|
|
31
213
|
etag: string;
|
|
32
214
|
extId: string;
|
|
215
|
+
meta: {
|
|
216
|
+
_user: {
|
|
217
|
+
profile: {
|
|
218
|
+
email: string;
|
|
219
|
+
firstName: string;
|
|
220
|
+
lastName: string;
|
|
221
|
+
userType: import("..").GlobalUserType;
|
|
222
|
+
title?: string | undefined;
|
|
223
|
+
department?: string | undefined;
|
|
224
|
+
organization?: string | undefined;
|
|
225
|
+
pictureUrl?: string | undefined;
|
|
226
|
+
startDate?: string | undefined;
|
|
227
|
+
manager?: {
|
|
228
|
+
extId?: string | undefined;
|
|
229
|
+
name?: string | undefined;
|
|
230
|
+
email?: string | undefined;
|
|
231
|
+
} | undefined;
|
|
232
|
+
};
|
|
233
|
+
extId?: string | undefined;
|
|
234
|
+
groups?: Record<string, string> | undefined;
|
|
235
|
+
created?: string | undefined;
|
|
236
|
+
lastActivityTime?: string | undefined;
|
|
237
|
+
factors?: Record<string, string>[] | undefined;
|
|
238
|
+
};
|
|
239
|
+
_raw?: unknown;
|
|
240
|
+
};
|
|
33
241
|
id?: string | undefined;
|
|
34
242
|
createdAt?: string | undefined;
|
|
35
243
|
updatedAt?: string | undefined;
|
|
36
244
|
deletedAt?: string | null | undefined;
|
|
37
|
-
meta?: unknown;
|
|
38
245
|
uid?: string | undefined;
|
|
39
246
|
}>;
|
|
40
247
|
export type StagedSaasUserUpsertDto = z.infer<typeof _StagedSaasUserUpsertDto>;
|
|
@@ -1,4 +1,83 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { GlobalAssetType } from './enums';
|
|
3
|
+
export declare const _SaasAssetMeta: z.ZodObject<{
|
|
4
|
+
_asset: z.ZodObject<{
|
|
5
|
+
/** Asset ID from provider */
|
|
6
|
+
extId: z.ZodString;
|
|
7
|
+
/** Asset type */
|
|
8
|
+
assetType: z.ZodNativeEnum<typeof GlobalAssetType>;
|
|
9
|
+
/** Asset name */
|
|
10
|
+
deviceName: z.ZodOptional<z.ZodString>;
|
|
11
|
+
/** Asset host name */
|
|
12
|
+
hostNames: z.ZodArray<z.ZodString, "many">;
|
|
13
|
+
/** Last activity time of asset */
|
|
14
|
+
lastActivityTime: z.ZodOptional<z.ZodString>;
|
|
15
|
+
/** Operating system of asset */
|
|
16
|
+
operatingSystems: z.ZodArray<z.ZodObject<{
|
|
17
|
+
displayValue: z.ZodString;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
displayValue: string;
|
|
20
|
+
}, {
|
|
21
|
+
displayValue: string;
|
|
22
|
+
}>, "many">;
|
|
23
|
+
/** Asset serial number */
|
|
24
|
+
serialNumber: z.ZodOptional<z.ZodString>;
|
|
25
|
+
/** Asset mac addresses */
|
|
26
|
+
macAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
extId: string;
|
|
29
|
+
assetType: GlobalAssetType;
|
|
30
|
+
hostNames: string[];
|
|
31
|
+
operatingSystems: {
|
|
32
|
+
displayValue: string;
|
|
33
|
+
}[];
|
|
34
|
+
deviceName?: string | undefined;
|
|
35
|
+
lastActivityTime?: string | undefined;
|
|
36
|
+
serialNumber?: string | undefined;
|
|
37
|
+
macAddresses?: string[] | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
extId: string;
|
|
40
|
+
assetType: GlobalAssetType;
|
|
41
|
+
hostNames: string[];
|
|
42
|
+
operatingSystems: {
|
|
43
|
+
displayValue: string;
|
|
44
|
+
}[];
|
|
45
|
+
deviceName?: string | undefined;
|
|
46
|
+
lastActivityTime?: string | undefined;
|
|
47
|
+
serialNumber?: string | undefined;
|
|
48
|
+
macAddresses?: string[] | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
_raw: z.ZodUnknown;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
_asset: {
|
|
53
|
+
extId: string;
|
|
54
|
+
assetType: GlobalAssetType;
|
|
55
|
+
hostNames: string[];
|
|
56
|
+
operatingSystems: {
|
|
57
|
+
displayValue: string;
|
|
58
|
+
}[];
|
|
59
|
+
deviceName?: string | undefined;
|
|
60
|
+
lastActivityTime?: string | undefined;
|
|
61
|
+
serialNumber?: string | undefined;
|
|
62
|
+
macAddresses?: string[] | undefined;
|
|
63
|
+
};
|
|
64
|
+
_raw?: unknown;
|
|
65
|
+
}, {
|
|
66
|
+
_asset: {
|
|
67
|
+
extId: string;
|
|
68
|
+
assetType: GlobalAssetType;
|
|
69
|
+
hostNames: string[];
|
|
70
|
+
operatingSystems: {
|
|
71
|
+
displayValue: string;
|
|
72
|
+
}[];
|
|
73
|
+
deviceName?: string | undefined;
|
|
74
|
+
lastActivityTime?: string | undefined;
|
|
75
|
+
serialNumber?: string | undefined;
|
|
76
|
+
macAddresses?: string[] | undefined;
|
|
77
|
+
};
|
|
78
|
+
_raw?: unknown;
|
|
79
|
+
}>;
|
|
80
|
+
export type SaasAssetMeta = z.infer<typeof _SaasAssetMeta>;
|
|
2
81
|
export declare const _SaasAssetUpsertDto: z.ZodObject<{
|
|
3
82
|
id: z.ZodOptional<z.ZodString>;
|
|
4
83
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
@@ -8,7 +87,7 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<{
|
|
|
8
87
|
extKeys: z.ZodObject<{
|
|
9
88
|
extId: z.ZodOptional<z.ZodString>;
|
|
10
89
|
sn: z.ZodOptional<z.ZodString>;
|
|
11
|
-
macs: z.ZodArray<z.ZodString, "many">;
|
|
90
|
+
macs: z.ZodArray<z.ZodString, "many">; /** Asset ID from provider */
|
|
12
91
|
}, "strip", z.ZodTypeAny, {
|
|
13
92
|
macs: string[];
|
|
14
93
|
extId?: string | undefined;
|
|
@@ -22,7 +101,83 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<{
|
|
|
22
101
|
aid: z.ZodString;
|
|
23
102
|
uid: z.ZodOptional<z.ZodString>;
|
|
24
103
|
displayValue: z.ZodString;
|
|
25
|
-
meta: z.
|
|
104
|
+
meta: z.ZodObject<{
|
|
105
|
+
_asset: z.ZodObject<{
|
|
106
|
+
/** Asset ID from provider */
|
|
107
|
+
extId: z.ZodString;
|
|
108
|
+
/** Asset type */
|
|
109
|
+
assetType: z.ZodNativeEnum<typeof GlobalAssetType>;
|
|
110
|
+
/** Asset name */
|
|
111
|
+
deviceName: z.ZodOptional<z.ZodString>;
|
|
112
|
+
/** Asset host name */
|
|
113
|
+
hostNames: z.ZodArray<z.ZodString, "many">;
|
|
114
|
+
/** Last activity time of asset */
|
|
115
|
+
lastActivityTime: z.ZodOptional<z.ZodString>;
|
|
116
|
+
/** Operating system of asset */
|
|
117
|
+
operatingSystems: z.ZodArray<z.ZodObject<{
|
|
118
|
+
displayValue: z.ZodString;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
displayValue: string;
|
|
121
|
+
}, {
|
|
122
|
+
displayValue: string;
|
|
123
|
+
}>, "many">;
|
|
124
|
+
/** Asset serial number */
|
|
125
|
+
serialNumber: z.ZodOptional<z.ZodString>;
|
|
126
|
+
/** Asset mac addresses */
|
|
127
|
+
macAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
extId: string;
|
|
130
|
+
assetType: GlobalAssetType;
|
|
131
|
+
hostNames: string[];
|
|
132
|
+
operatingSystems: {
|
|
133
|
+
displayValue: string;
|
|
134
|
+
}[];
|
|
135
|
+
deviceName?: string | undefined;
|
|
136
|
+
lastActivityTime?: string | undefined;
|
|
137
|
+
serialNumber?: string | undefined;
|
|
138
|
+
macAddresses?: string[] | undefined;
|
|
139
|
+
}, {
|
|
140
|
+
extId: string;
|
|
141
|
+
assetType: GlobalAssetType;
|
|
142
|
+
hostNames: string[];
|
|
143
|
+
operatingSystems: {
|
|
144
|
+
displayValue: string;
|
|
145
|
+
}[];
|
|
146
|
+
deviceName?: string | undefined;
|
|
147
|
+
lastActivityTime?: string | undefined;
|
|
148
|
+
serialNumber?: string | undefined;
|
|
149
|
+
macAddresses?: string[] | undefined;
|
|
150
|
+
}>;
|
|
151
|
+
_raw: z.ZodUnknown;
|
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
|
153
|
+
_asset: {
|
|
154
|
+
extId: string;
|
|
155
|
+
assetType: GlobalAssetType;
|
|
156
|
+
hostNames: string[];
|
|
157
|
+
operatingSystems: {
|
|
158
|
+
displayValue: string;
|
|
159
|
+
}[];
|
|
160
|
+
deviceName?: string | undefined;
|
|
161
|
+
lastActivityTime?: string | undefined;
|
|
162
|
+
serialNumber?: string | undefined;
|
|
163
|
+
macAddresses?: string[] | undefined;
|
|
164
|
+
};
|
|
165
|
+
_raw?: unknown;
|
|
166
|
+
}, {
|
|
167
|
+
_asset: {
|
|
168
|
+
extId: string;
|
|
169
|
+
assetType: GlobalAssetType;
|
|
170
|
+
hostNames: string[];
|
|
171
|
+
operatingSystems: {
|
|
172
|
+
displayValue: string;
|
|
173
|
+
}[];
|
|
174
|
+
deviceName?: string | undefined;
|
|
175
|
+
lastActivityTime?: string | undefined;
|
|
176
|
+
serialNumber?: string | undefined;
|
|
177
|
+
macAddresses?: string[] | undefined;
|
|
178
|
+
};
|
|
179
|
+
_raw?: unknown;
|
|
180
|
+
}>;
|
|
26
181
|
}, "strip", z.ZodTypeAny, {
|
|
27
182
|
cid: string;
|
|
28
183
|
aid: string;
|
|
@@ -33,12 +188,26 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<{
|
|
|
33
188
|
extId?: string | undefined;
|
|
34
189
|
sn?: string | undefined;
|
|
35
190
|
};
|
|
191
|
+
meta: {
|
|
192
|
+
_asset: {
|
|
193
|
+
extId: string;
|
|
194
|
+
assetType: GlobalAssetType;
|
|
195
|
+
hostNames: string[];
|
|
196
|
+
operatingSystems: {
|
|
197
|
+
displayValue: string;
|
|
198
|
+
}[];
|
|
199
|
+
deviceName?: string | undefined;
|
|
200
|
+
lastActivityTime?: string | undefined;
|
|
201
|
+
serialNumber?: string | undefined;
|
|
202
|
+
macAddresses?: string[] | undefined;
|
|
203
|
+
};
|
|
204
|
+
_raw?: unknown;
|
|
205
|
+
};
|
|
36
206
|
id?: string | undefined;
|
|
37
207
|
createdAt?: string | undefined;
|
|
38
208
|
updatedAt?: string | undefined;
|
|
39
209
|
deletedAt?: string | null | undefined;
|
|
40
210
|
uid?: string | undefined;
|
|
41
|
-
meta?: unknown;
|
|
42
211
|
}, {
|
|
43
212
|
cid: string;
|
|
44
213
|
aid: string;
|
|
@@ -49,12 +218,26 @@ export declare const _SaasAssetUpsertDto: z.ZodObject<{
|
|
|
49
218
|
extId?: string | undefined;
|
|
50
219
|
sn?: string | undefined;
|
|
51
220
|
};
|
|
221
|
+
meta: {
|
|
222
|
+
_asset: {
|
|
223
|
+
extId: string;
|
|
224
|
+
assetType: GlobalAssetType;
|
|
225
|
+
hostNames: string[];
|
|
226
|
+
operatingSystems: {
|
|
227
|
+
displayValue: string;
|
|
228
|
+
}[];
|
|
229
|
+
deviceName?: string | undefined;
|
|
230
|
+
lastActivityTime?: string | undefined;
|
|
231
|
+
serialNumber?: string | undefined;
|
|
232
|
+
macAddresses?: string[] | undefined;
|
|
233
|
+
};
|
|
234
|
+
_raw?: unknown;
|
|
235
|
+
};
|
|
52
236
|
id?: string | undefined;
|
|
53
237
|
createdAt?: string | undefined;
|
|
54
238
|
updatedAt?: string | undefined;
|
|
55
239
|
deletedAt?: string | null | undefined;
|
|
56
240
|
uid?: string | undefined;
|
|
57
|
-
meta?: unknown;
|
|
58
241
|
}>;
|
|
59
242
|
export type SaasAssetUpsertDto = z.infer<typeof _SaasAssetUpsertDto>;
|
|
60
243
|
export declare const _SaasAssetDto: z.ZodObject<{
|
|
@@ -65,7 +248,7 @@ export declare const _SaasAssetDto: z.ZodObject<{
|
|
|
65
248
|
extKeys: z.ZodObject<{
|
|
66
249
|
extId: z.ZodOptional<z.ZodString>;
|
|
67
250
|
sn: z.ZodOptional<z.ZodString>;
|
|
68
|
-
macs: z.ZodArray<z.ZodString, "many">;
|
|
251
|
+
macs: z.ZodArray<z.ZodString, "many">; /** Asset ID from provider */
|
|
69
252
|
}, "strip", z.ZodTypeAny, {
|
|
70
253
|
macs: string[];
|
|
71
254
|
extId?: string | undefined;
|
|
@@ -75,7 +258,83 @@ export declare const _SaasAssetDto: z.ZodObject<{
|
|
|
75
258
|
extId?: string | undefined;
|
|
76
259
|
sn?: string | undefined;
|
|
77
260
|
}>;
|
|
78
|
-
meta: z.
|
|
261
|
+
meta: z.ZodObject<{
|
|
262
|
+
_asset: z.ZodObject<{
|
|
263
|
+
/** Asset ID from provider */
|
|
264
|
+
extId: z.ZodString;
|
|
265
|
+
/** Asset type */
|
|
266
|
+
assetType: z.ZodNativeEnum<typeof GlobalAssetType>;
|
|
267
|
+
/** Asset name */
|
|
268
|
+
deviceName: z.ZodOptional<z.ZodString>;
|
|
269
|
+
/** Asset host name */
|
|
270
|
+
hostNames: z.ZodArray<z.ZodString, "many">;
|
|
271
|
+
/** Last activity time of asset */
|
|
272
|
+
lastActivityTime: z.ZodOptional<z.ZodString>;
|
|
273
|
+
/** Operating system of asset */
|
|
274
|
+
operatingSystems: z.ZodArray<z.ZodObject<{
|
|
275
|
+
displayValue: z.ZodString;
|
|
276
|
+
}, "strip", z.ZodTypeAny, {
|
|
277
|
+
displayValue: string;
|
|
278
|
+
}, {
|
|
279
|
+
displayValue: string;
|
|
280
|
+
}>, "many">;
|
|
281
|
+
/** Asset serial number */
|
|
282
|
+
serialNumber: z.ZodOptional<z.ZodString>;
|
|
283
|
+
/** Asset mac addresses */
|
|
284
|
+
macAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
285
|
+
}, "strip", z.ZodTypeAny, {
|
|
286
|
+
extId: string;
|
|
287
|
+
assetType: GlobalAssetType;
|
|
288
|
+
hostNames: string[];
|
|
289
|
+
operatingSystems: {
|
|
290
|
+
displayValue: string;
|
|
291
|
+
}[];
|
|
292
|
+
deviceName?: string | undefined;
|
|
293
|
+
lastActivityTime?: string | undefined;
|
|
294
|
+
serialNumber?: string | undefined;
|
|
295
|
+
macAddresses?: string[] | undefined;
|
|
296
|
+
}, {
|
|
297
|
+
extId: string;
|
|
298
|
+
assetType: GlobalAssetType;
|
|
299
|
+
hostNames: string[];
|
|
300
|
+
operatingSystems: {
|
|
301
|
+
displayValue: string;
|
|
302
|
+
}[];
|
|
303
|
+
deviceName?: string | undefined;
|
|
304
|
+
lastActivityTime?: string | undefined;
|
|
305
|
+
serialNumber?: string | undefined;
|
|
306
|
+
macAddresses?: string[] | undefined;
|
|
307
|
+
}>;
|
|
308
|
+
_raw: z.ZodUnknown;
|
|
309
|
+
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
_asset: {
|
|
311
|
+
extId: string;
|
|
312
|
+
assetType: GlobalAssetType;
|
|
313
|
+
hostNames: string[];
|
|
314
|
+
operatingSystems: {
|
|
315
|
+
displayValue: string;
|
|
316
|
+
}[];
|
|
317
|
+
deviceName?: string | undefined;
|
|
318
|
+
lastActivityTime?: string | undefined;
|
|
319
|
+
serialNumber?: string | undefined;
|
|
320
|
+
macAddresses?: string[] | undefined;
|
|
321
|
+
};
|
|
322
|
+
_raw?: unknown;
|
|
323
|
+
}, {
|
|
324
|
+
_asset: {
|
|
325
|
+
extId: string;
|
|
326
|
+
assetType: GlobalAssetType;
|
|
327
|
+
hostNames: string[];
|
|
328
|
+
operatingSystems: {
|
|
329
|
+
displayValue: string;
|
|
330
|
+
}[];
|
|
331
|
+
deviceName?: string | undefined;
|
|
332
|
+
lastActivityTime?: string | undefined;
|
|
333
|
+
serialNumber?: string | undefined;
|
|
334
|
+
macAddresses?: string[] | undefined;
|
|
335
|
+
};
|
|
336
|
+
_raw?: unknown;
|
|
337
|
+
}>;
|
|
79
338
|
id: z.ZodString;
|
|
80
339
|
createdAt: z.ZodString;
|
|
81
340
|
updatedAt: z.ZodString;
|
|
@@ -95,8 +354,22 @@ export declare const _SaasAssetDto: z.ZodObject<{
|
|
|
95
354
|
extId?: string | undefined;
|
|
96
355
|
sn?: string | undefined;
|
|
97
356
|
};
|
|
357
|
+
meta: {
|
|
358
|
+
_asset: {
|
|
359
|
+
extId: string;
|
|
360
|
+
assetType: GlobalAssetType;
|
|
361
|
+
hostNames: string[];
|
|
362
|
+
operatingSystems: {
|
|
363
|
+
displayValue: string;
|
|
364
|
+
}[];
|
|
365
|
+
deviceName?: string | undefined;
|
|
366
|
+
lastActivityTime?: string | undefined;
|
|
367
|
+
serialNumber?: string | undefined;
|
|
368
|
+
macAddresses?: string[] | undefined;
|
|
369
|
+
};
|
|
370
|
+
_raw?: unknown;
|
|
371
|
+
};
|
|
98
372
|
uid?: string | undefined;
|
|
99
|
-
meta?: unknown;
|
|
100
373
|
}, {
|
|
101
374
|
id: string;
|
|
102
375
|
cid: string;
|
|
@@ -111,7 +384,21 @@ export declare const _SaasAssetDto: z.ZodObject<{
|
|
|
111
384
|
extId?: string | undefined;
|
|
112
385
|
sn?: string | undefined;
|
|
113
386
|
};
|
|
387
|
+
meta: {
|
|
388
|
+
_asset: {
|
|
389
|
+
extId: string;
|
|
390
|
+
assetType: GlobalAssetType;
|
|
391
|
+
hostNames: string[];
|
|
392
|
+
operatingSystems: {
|
|
393
|
+
displayValue: string;
|
|
394
|
+
}[];
|
|
395
|
+
deviceName?: string | undefined;
|
|
396
|
+
lastActivityTime?: string | undefined;
|
|
397
|
+
serialNumber?: string | undefined;
|
|
398
|
+
macAddresses?: string[] | undefined;
|
|
399
|
+
};
|
|
400
|
+
_raw?: unknown;
|
|
401
|
+
};
|
|
114
402
|
uid?: string | undefined;
|
|
115
|
-
meta?: unknown;
|
|
116
403
|
}>;
|
|
117
404
|
export type SaasAssetDto = z.infer<typeof _SaasAssetDto>;
|
|
@@ -1,9 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._SaasAssetDto = exports._SaasAssetUpsertDto = void 0;
|
|
3
|
+
exports._SaasAssetDto = exports._SaasAssetUpsertDto = exports._SaasAssetMeta = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const assetKeys_1 = require("./assetKeys");
|
|
6
6
|
const base_dto_1 = require("./base.dto");
|
|
7
|
+
const enums_1 = require("./enums");
|
|
8
|
+
exports._SaasAssetMeta = zod_1.z.object({
|
|
9
|
+
_asset: zod_1.z.object({
|
|
10
|
+
/** Asset ID from provider */
|
|
11
|
+
extId: zod_1.z.string(),
|
|
12
|
+
/** Asset type */
|
|
13
|
+
assetType: zod_1.z.nativeEnum(enums_1.GlobalAssetType),
|
|
14
|
+
/** Asset name */
|
|
15
|
+
deviceName: zod_1.z.string().optional(),
|
|
16
|
+
/** Asset host name */
|
|
17
|
+
hostNames: zod_1.z.array(zod_1.z.string()),
|
|
18
|
+
// TODO: define kind values in enum when needed
|
|
19
|
+
// kind: z.string()
|
|
20
|
+
/** Last activity time of asset */
|
|
21
|
+
lastActivityTime: zod_1.z.string().optional(),
|
|
22
|
+
/** Operating system of asset */
|
|
23
|
+
operatingSystems: zod_1.z.array(zod_1.z.object({
|
|
24
|
+
displayValue: zod_1.z.string(),
|
|
25
|
+
// TODO: define this when needed
|
|
26
|
+
// kind: enum,
|
|
27
|
+
})),
|
|
28
|
+
/** Asset serial number */
|
|
29
|
+
serialNumber: zod_1.z.string().optional(),
|
|
30
|
+
/** Asset mac addresses */
|
|
31
|
+
macAddresses: zod_1.z.array(zod_1.z.string()).optional(),
|
|
32
|
+
}),
|
|
33
|
+
_raw: zod_1.z.unknown(),
|
|
34
|
+
});
|
|
7
35
|
exports._SaasAssetUpsertDto = base_dto_1._ChangeAwareUpsertDto.merge(zod_1.z.object({
|
|
8
36
|
/** External Ids */
|
|
9
37
|
extKeys: assetKeys_1._AssetKeys,
|
|
@@ -16,7 +44,7 @@ exports._SaasAssetUpsertDto = base_dto_1._ChangeAwareUpsertDto.merge(zod_1.z.obj
|
|
|
16
44
|
/** Asset display value */
|
|
17
45
|
displayValue: zod_1.z.string(),
|
|
18
46
|
/** Information specific to this asset */
|
|
19
|
-
meta:
|
|
47
|
+
meta: exports._SaasAssetMeta,
|
|
20
48
|
}));
|
|
21
49
|
exports._SaasAssetDto = exports._SaasAssetUpsertDto.merge(base_dto_1._ChangeAwareDto);
|
|
22
50
|
//# sourceMappingURL=saasAssets.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saasAssets.dto.js","sourceRoot":"","sources":["../../../src/dto/saasAssets.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,2CAAuC;AACvC,yCAAkE;
|
|
1
|
+
{"version":3,"file":"saasAssets.dto.js","sourceRoot":"","sources":["../../../src/dto/saasAssets.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,2CAAuC;AACvC,yCAAkE;AAClE,mCAAwC;AAE3B,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC;QACf,6BAA6B;QAC7B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;QACjB,iBAAiB;QACjB,SAAS,EAAE,OAAC,CAAC,UAAU,CAAC,uBAAe,CAAC;QACxC,iBAAiB;QACjB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACjC,sBAAsB;QACtB,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;QAC9B,+CAA+C;QAC/C,mBAAmB;QACnB,kCAAkC;QAClC,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACvC,gCAAgC;QAChC,gBAAgB,EAAE,OAAC,CAAC,KAAK,CACvB,OAAC,CAAC,MAAM,CAAC;YACP,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;YACxB,gCAAgC;YAChC,cAAc;SACf,CAAC,CACH;QACD,0BAA0B;QAC1B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,0BAA0B;QAC1B,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;KAC7C,CAAC;IACF,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE;CAClB,CAAC,CAAC;AAIU,QAAA,mBAAmB,GAAG,gCAAqB,CAAC,KAAK,CAC5D,OAAC,CAAC,MAAM,CAAC;IACP,mBAAmB;IACnB,OAAO,EAAE,sBAAU;IACnB,mBAAmB;IACnB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,eAAe;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,cAAc;IACd,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,0BAA0B;IAC1B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,yCAAyC;IACzC,IAAI,EAAE,sBAAc;CACrB,CAAC,CACH,CAAC;AAIW,QAAA,aAAa,GAAG,2BAAmB,CAAC,KAAK,CAAC,0BAAe,CAAC,CAAC"}
|