@ampsec/platform-client 60.0.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 +140 -16
- package/build/src/dto/platform/platform.saasAssets.dto.d.ts +99 -3
- package/build/src/dto/platform/platform.saasUsers.dto.d.ts +9 -9
- 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 +28 -28
- package/build/src/dto/saasUsers.dto.js +2 -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 +2 -2
|
@@ -241,12 +241,12 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
241
241
|
name?: string | undefined;
|
|
242
242
|
email?: string | undefined;
|
|
243
243
|
}>>;
|
|
244
|
-
|
|
244
|
+
userType: z.ZodNativeEnum<typeof import("./enums").GlobalUserType>;
|
|
245
245
|
}, "strip", z.ZodTypeAny, {
|
|
246
246
|
email: string;
|
|
247
|
-
status: import("./enums").GlobalUserType;
|
|
248
247
|
firstName: string;
|
|
249
248
|
lastName: string;
|
|
249
|
+
userType: import("./enums").GlobalUserType;
|
|
250
250
|
title?: string | undefined;
|
|
251
251
|
department?: string | undefined;
|
|
252
252
|
organization?: string | undefined;
|
|
@@ -259,9 +259,9 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
259
259
|
} | undefined;
|
|
260
260
|
}, {
|
|
261
261
|
email: string;
|
|
262
|
-
status: import("./enums").GlobalUserType;
|
|
263
262
|
firstName: string;
|
|
264
263
|
lastName: string;
|
|
264
|
+
userType: import("./enums").GlobalUserType;
|
|
265
265
|
title?: string | undefined;
|
|
266
266
|
department?: string | undefined;
|
|
267
267
|
organization?: string | undefined;
|
|
@@ -276,9 +276,9 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
276
276
|
}, "strip", z.ZodTypeAny, {
|
|
277
277
|
profile: {
|
|
278
278
|
email: string;
|
|
279
|
-
status: import("./enums").GlobalUserType;
|
|
280
279
|
firstName: string;
|
|
281
280
|
lastName: string;
|
|
281
|
+
userType: import("./enums").GlobalUserType;
|
|
282
282
|
title?: string | undefined;
|
|
283
283
|
department?: string | undefined;
|
|
284
284
|
organization?: string | undefined;
|
|
@@ -298,9 +298,9 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
298
298
|
}, {
|
|
299
299
|
profile: {
|
|
300
300
|
email: string;
|
|
301
|
-
status: import("./enums").GlobalUserType;
|
|
302
301
|
firstName: string;
|
|
303
302
|
lastName: string;
|
|
303
|
+
userType: import("./enums").GlobalUserType;
|
|
304
304
|
title?: string | undefined;
|
|
305
305
|
department?: string | undefined;
|
|
306
306
|
organization?: string | undefined;
|
|
@@ -323,9 +323,9 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
323
323
|
_user: {
|
|
324
324
|
profile: {
|
|
325
325
|
email: string;
|
|
326
|
-
status: import("./enums").GlobalUserType;
|
|
327
326
|
firstName: string;
|
|
328
327
|
lastName: string;
|
|
328
|
+
userType: import("./enums").GlobalUserType;
|
|
329
329
|
title?: string | undefined;
|
|
330
330
|
department?: string | undefined;
|
|
331
331
|
organization?: string | undefined;
|
|
@@ -348,9 +348,9 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
348
348
|
_user: {
|
|
349
349
|
profile: {
|
|
350
350
|
email: string;
|
|
351
|
-
status: import("./enums").GlobalUserType;
|
|
352
351
|
firstName: string;
|
|
353
352
|
lastName: string;
|
|
353
|
+
userType: import("./enums").GlobalUserType;
|
|
354
354
|
title?: string | undefined;
|
|
355
355
|
department?: string | undefined;
|
|
356
356
|
organization?: string | undefined;
|
|
@@ -389,9 +389,9 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
389
389
|
_user: {
|
|
390
390
|
profile: {
|
|
391
391
|
email: string;
|
|
392
|
-
status: import("./enums").GlobalUserType;
|
|
393
392
|
firstName: string;
|
|
394
393
|
lastName: string;
|
|
394
|
+
userType: import("./enums").GlobalUserType;
|
|
395
395
|
title?: string | undefined;
|
|
396
396
|
department?: string | undefined;
|
|
397
397
|
organization?: string | undefined;
|
|
@@ -425,9 +425,9 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
425
425
|
_user: {
|
|
426
426
|
profile: {
|
|
427
427
|
email: string;
|
|
428
|
-
status: import("./enums").GlobalUserType;
|
|
429
428
|
firstName: string;
|
|
430
429
|
lastName: string;
|
|
430
|
+
userType: import("./enums").GlobalUserType;
|
|
431
431
|
title?: string | undefined;
|
|
432
432
|
department?: string | undefined;
|
|
433
433
|
organization?: string | undefined;
|
|
@@ -466,7 +466,75 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
466
466
|
extId?: string | undefined;
|
|
467
467
|
sn?: string | undefined;
|
|
468
468
|
}>;
|
|
469
|
-
meta: z.
|
|
469
|
+
meta: z.ZodObject<{
|
|
470
|
+
_asset: z.ZodObject<{
|
|
471
|
+
extId: z.ZodString;
|
|
472
|
+
assetType: z.ZodNativeEnum<typeof import("./enums").GlobalAssetType>;
|
|
473
|
+
deviceName: z.ZodOptional<z.ZodString>;
|
|
474
|
+
hostNames: z.ZodArray<z.ZodString, "many">;
|
|
475
|
+
lastActivityTime: z.ZodOptional<z.ZodString>;
|
|
476
|
+
operatingSystems: z.ZodArray<z.ZodObject<{
|
|
477
|
+
displayValue: z.ZodString;
|
|
478
|
+
}, "strip", z.ZodTypeAny, {
|
|
479
|
+
displayValue: string;
|
|
480
|
+
}, {
|
|
481
|
+
displayValue: string;
|
|
482
|
+
}>, "many">;
|
|
483
|
+
serialNumber: z.ZodOptional<z.ZodString>;
|
|
484
|
+
macAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
485
|
+
}, "strip", z.ZodTypeAny, {
|
|
486
|
+
extId: string;
|
|
487
|
+
assetType: import("./enums").GlobalAssetType;
|
|
488
|
+
hostNames: string[];
|
|
489
|
+
operatingSystems: {
|
|
490
|
+
displayValue: string;
|
|
491
|
+
}[];
|
|
492
|
+
deviceName?: string | undefined;
|
|
493
|
+
lastActivityTime?: string | undefined;
|
|
494
|
+
serialNumber?: string | undefined;
|
|
495
|
+
macAddresses?: string[] | undefined;
|
|
496
|
+
}, {
|
|
497
|
+
extId: string;
|
|
498
|
+
assetType: import("./enums").GlobalAssetType;
|
|
499
|
+
hostNames: string[];
|
|
500
|
+
operatingSystems: {
|
|
501
|
+
displayValue: string;
|
|
502
|
+
}[];
|
|
503
|
+
deviceName?: string | undefined;
|
|
504
|
+
lastActivityTime?: string | undefined;
|
|
505
|
+
serialNumber?: string | undefined;
|
|
506
|
+
macAddresses?: string[] | undefined;
|
|
507
|
+
}>;
|
|
508
|
+
_raw: z.ZodUnknown;
|
|
509
|
+
}, "strip", z.ZodTypeAny, {
|
|
510
|
+
_asset: {
|
|
511
|
+
extId: string;
|
|
512
|
+
assetType: import("./enums").GlobalAssetType;
|
|
513
|
+
hostNames: string[];
|
|
514
|
+
operatingSystems: {
|
|
515
|
+
displayValue: string;
|
|
516
|
+
}[];
|
|
517
|
+
deviceName?: string | undefined;
|
|
518
|
+
lastActivityTime?: string | undefined;
|
|
519
|
+
serialNumber?: string | undefined;
|
|
520
|
+
macAddresses?: string[] | undefined;
|
|
521
|
+
};
|
|
522
|
+
_raw?: unknown;
|
|
523
|
+
}, {
|
|
524
|
+
_asset: {
|
|
525
|
+
extId: string;
|
|
526
|
+
assetType: import("./enums").GlobalAssetType;
|
|
527
|
+
hostNames: string[];
|
|
528
|
+
operatingSystems: {
|
|
529
|
+
displayValue: string;
|
|
530
|
+
}[];
|
|
531
|
+
deviceName?: string | undefined;
|
|
532
|
+
lastActivityTime?: string | undefined;
|
|
533
|
+
serialNumber?: string | undefined;
|
|
534
|
+
macAddresses?: string[] | undefined;
|
|
535
|
+
};
|
|
536
|
+
_raw?: unknown;
|
|
537
|
+
}>;
|
|
470
538
|
id: z.ZodString;
|
|
471
539
|
createdAt: z.ZodString;
|
|
472
540
|
updatedAt: z.ZodString;
|
|
@@ -486,8 +554,22 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
486
554
|
extId?: string | undefined;
|
|
487
555
|
sn?: string | undefined;
|
|
488
556
|
};
|
|
557
|
+
meta: {
|
|
558
|
+
_asset: {
|
|
559
|
+
extId: string;
|
|
560
|
+
assetType: import("./enums").GlobalAssetType;
|
|
561
|
+
hostNames: string[];
|
|
562
|
+
operatingSystems: {
|
|
563
|
+
displayValue: string;
|
|
564
|
+
}[];
|
|
565
|
+
deviceName?: string | undefined;
|
|
566
|
+
lastActivityTime?: string | undefined;
|
|
567
|
+
serialNumber?: string | undefined;
|
|
568
|
+
macAddresses?: string[] | undefined;
|
|
569
|
+
};
|
|
570
|
+
_raw?: unknown;
|
|
571
|
+
};
|
|
489
572
|
uid?: string | undefined;
|
|
490
|
-
meta?: unknown;
|
|
491
573
|
}, {
|
|
492
574
|
id: string;
|
|
493
575
|
cid: string;
|
|
@@ -502,8 +584,22 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
502
584
|
extId?: string | undefined;
|
|
503
585
|
sn?: string | undefined;
|
|
504
586
|
};
|
|
587
|
+
meta: {
|
|
588
|
+
_asset: {
|
|
589
|
+
extId: string;
|
|
590
|
+
assetType: import("./enums").GlobalAssetType;
|
|
591
|
+
hostNames: string[];
|
|
592
|
+
operatingSystems: {
|
|
593
|
+
displayValue: string;
|
|
594
|
+
}[];
|
|
595
|
+
deviceName?: string | undefined;
|
|
596
|
+
lastActivityTime?: string | undefined;
|
|
597
|
+
serialNumber?: string | undefined;
|
|
598
|
+
macAddresses?: string[] | undefined;
|
|
599
|
+
};
|
|
600
|
+
_raw?: unknown;
|
|
601
|
+
};
|
|
505
602
|
uid?: string | undefined;
|
|
506
|
-
meta?: unknown;
|
|
507
603
|
}>, "many">>;
|
|
508
604
|
assets: z.ZodArray<z.ZodObject<{
|
|
509
605
|
uid: z.ZodOptional<z.ZodString>;
|
|
@@ -571,8 +667,22 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
571
667
|
extId?: string | undefined;
|
|
572
668
|
sn?: string | undefined;
|
|
573
669
|
};
|
|
670
|
+
meta: {
|
|
671
|
+
_asset: {
|
|
672
|
+
extId: string;
|
|
673
|
+
assetType: import("./enums").GlobalAssetType;
|
|
674
|
+
hostNames: string[];
|
|
675
|
+
operatingSystems: {
|
|
676
|
+
displayValue: string;
|
|
677
|
+
}[];
|
|
678
|
+
deviceName?: string | undefined;
|
|
679
|
+
lastActivityTime?: string | undefined;
|
|
680
|
+
serialNumber?: string | undefined;
|
|
681
|
+
macAddresses?: string[] | undefined;
|
|
682
|
+
};
|
|
683
|
+
_raw?: unknown;
|
|
684
|
+
};
|
|
574
685
|
uid?: string | undefined;
|
|
575
|
-
meta?: unknown;
|
|
576
686
|
}[]>;
|
|
577
687
|
userAccounts: Record<string, {
|
|
578
688
|
email: string;
|
|
@@ -588,9 +698,9 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
588
698
|
_user: {
|
|
589
699
|
profile: {
|
|
590
700
|
email: string;
|
|
591
|
-
status: import("./enums").GlobalUserType;
|
|
592
701
|
firstName: string;
|
|
593
702
|
lastName: string;
|
|
703
|
+
userType: import("./enums").GlobalUserType;
|
|
594
704
|
title?: string | undefined;
|
|
595
705
|
department?: string | undefined;
|
|
596
706
|
organization?: string | undefined;
|
|
@@ -650,8 +760,22 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
650
760
|
extId?: string | undefined;
|
|
651
761
|
sn?: string | undefined;
|
|
652
762
|
};
|
|
763
|
+
meta: {
|
|
764
|
+
_asset: {
|
|
765
|
+
extId: string;
|
|
766
|
+
assetType: import("./enums").GlobalAssetType;
|
|
767
|
+
hostNames: string[];
|
|
768
|
+
operatingSystems: {
|
|
769
|
+
displayValue: string;
|
|
770
|
+
}[];
|
|
771
|
+
deviceName?: string | undefined;
|
|
772
|
+
lastActivityTime?: string | undefined;
|
|
773
|
+
serialNumber?: string | undefined;
|
|
774
|
+
macAddresses?: string[] | undefined;
|
|
775
|
+
};
|
|
776
|
+
_raw?: unknown;
|
|
777
|
+
};
|
|
653
778
|
uid?: string | undefined;
|
|
654
|
-
meta?: unknown;
|
|
655
779
|
}[]>;
|
|
656
780
|
userAccounts: Record<string, {
|
|
657
781
|
email: string;
|
|
@@ -667,9 +791,9 @@ export declare const _UserCoverageReport: z.ZodObject<{
|
|
|
667
791
|
_user: {
|
|
668
792
|
profile: {
|
|
669
793
|
email: string;
|
|
670
|
-
status: import("./enums").GlobalUserType;
|
|
671
794
|
firstName: string;
|
|
672
795
|
lastName: string;
|
|
796
|
+
userType: import("./enums").GlobalUserType;
|
|
673
797
|
title?: string | undefined;
|
|
674
798
|
department?: string | undefined;
|
|
675
799
|
organization?: string | undefined;
|
|
@@ -25,7 +25,75 @@ export declare const _StagedSaasAssetUpsertDto: z.ZodObject<{
|
|
|
25
25
|
extId?: string | undefined;
|
|
26
26
|
sn?: string | undefined;
|
|
27
27
|
}>;
|
|
28
|
-
meta: z.
|
|
28
|
+
meta: z.ZodObject<{
|
|
29
|
+
_asset: z.ZodObject<{
|
|
30
|
+
extId: z.ZodString;
|
|
31
|
+
assetType: z.ZodNativeEnum<typeof import("..").GlobalAssetType>;
|
|
32
|
+
deviceName: z.ZodOptional<z.ZodString>;
|
|
33
|
+
hostNames: z.ZodArray<z.ZodString, "many">;
|
|
34
|
+
lastActivityTime: z.ZodOptional<z.ZodString>;
|
|
35
|
+
operatingSystems: z.ZodArray<z.ZodObject<{
|
|
36
|
+
displayValue: z.ZodString;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
displayValue: string;
|
|
39
|
+
}, {
|
|
40
|
+
displayValue: string;
|
|
41
|
+
}>, "many">;
|
|
42
|
+
serialNumber: z.ZodOptional<z.ZodString>;
|
|
43
|
+
macAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
extId: string;
|
|
46
|
+
assetType: import("..").GlobalAssetType;
|
|
47
|
+
hostNames: string[];
|
|
48
|
+
operatingSystems: {
|
|
49
|
+
displayValue: string;
|
|
50
|
+
}[];
|
|
51
|
+
deviceName?: string | undefined;
|
|
52
|
+
lastActivityTime?: string | undefined;
|
|
53
|
+
serialNumber?: string | undefined;
|
|
54
|
+
macAddresses?: string[] | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
extId: string;
|
|
57
|
+
assetType: import("..").GlobalAssetType;
|
|
58
|
+
hostNames: string[];
|
|
59
|
+
operatingSystems: {
|
|
60
|
+
displayValue: string;
|
|
61
|
+
}[];
|
|
62
|
+
deviceName?: string | undefined;
|
|
63
|
+
lastActivityTime?: string | undefined;
|
|
64
|
+
serialNumber?: string | undefined;
|
|
65
|
+
macAddresses?: string[] | undefined;
|
|
66
|
+
}>;
|
|
67
|
+
_raw: z.ZodUnknown;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
_asset: {
|
|
70
|
+
extId: string;
|
|
71
|
+
assetType: import("..").GlobalAssetType;
|
|
72
|
+
hostNames: string[];
|
|
73
|
+
operatingSystems: {
|
|
74
|
+
displayValue: string;
|
|
75
|
+
}[];
|
|
76
|
+
deviceName?: string | undefined;
|
|
77
|
+
lastActivityTime?: string | undefined;
|
|
78
|
+
serialNumber?: string | undefined;
|
|
79
|
+
macAddresses?: string[] | undefined;
|
|
80
|
+
};
|
|
81
|
+
_raw?: unknown;
|
|
82
|
+
}, {
|
|
83
|
+
_asset: {
|
|
84
|
+
extId: string;
|
|
85
|
+
assetType: import("..").GlobalAssetType;
|
|
86
|
+
hostNames: string[];
|
|
87
|
+
operatingSystems: {
|
|
88
|
+
displayValue: string;
|
|
89
|
+
}[];
|
|
90
|
+
deviceName?: string | undefined;
|
|
91
|
+
lastActivityTime?: string | undefined;
|
|
92
|
+
serialNumber?: string | undefined;
|
|
93
|
+
macAddresses?: string[] | undefined;
|
|
94
|
+
};
|
|
95
|
+
_raw?: unknown;
|
|
96
|
+
}>;
|
|
29
97
|
aid: z.ZodOptional<z.ZodString>;
|
|
30
98
|
}, "strip", z.ZodTypeAny, {
|
|
31
99
|
cid: string;
|
|
@@ -36,12 +104,26 @@ export declare const _StagedSaasAssetUpsertDto: z.ZodObject<{
|
|
|
36
104
|
extId?: string | undefined;
|
|
37
105
|
sn?: string | undefined;
|
|
38
106
|
};
|
|
107
|
+
meta: {
|
|
108
|
+
_asset: {
|
|
109
|
+
extId: string;
|
|
110
|
+
assetType: import("..").GlobalAssetType;
|
|
111
|
+
hostNames: string[];
|
|
112
|
+
operatingSystems: {
|
|
113
|
+
displayValue: string;
|
|
114
|
+
}[];
|
|
115
|
+
deviceName?: string | undefined;
|
|
116
|
+
lastActivityTime?: string | undefined;
|
|
117
|
+
serialNumber?: string | undefined;
|
|
118
|
+
macAddresses?: string[] | undefined;
|
|
119
|
+
};
|
|
120
|
+
_raw?: unknown;
|
|
121
|
+
};
|
|
39
122
|
id?: string | undefined;
|
|
40
123
|
uid?: string | undefined;
|
|
41
124
|
createdAt?: string | undefined;
|
|
42
125
|
updatedAt?: string | undefined;
|
|
43
126
|
deletedAt?: string | null | undefined;
|
|
44
|
-
meta?: unknown;
|
|
45
127
|
aid?: string | undefined;
|
|
46
128
|
}, {
|
|
47
129
|
cid: string;
|
|
@@ -52,12 +134,26 @@ export declare const _StagedSaasAssetUpsertDto: z.ZodObject<{
|
|
|
52
134
|
extId?: string | undefined;
|
|
53
135
|
sn?: string | undefined;
|
|
54
136
|
};
|
|
137
|
+
meta: {
|
|
138
|
+
_asset: {
|
|
139
|
+
extId: string;
|
|
140
|
+
assetType: import("..").GlobalAssetType;
|
|
141
|
+
hostNames: string[];
|
|
142
|
+
operatingSystems: {
|
|
143
|
+
displayValue: string;
|
|
144
|
+
}[];
|
|
145
|
+
deviceName?: string | undefined;
|
|
146
|
+
lastActivityTime?: string | undefined;
|
|
147
|
+
serialNumber?: string | undefined;
|
|
148
|
+
macAddresses?: string[] | undefined;
|
|
149
|
+
};
|
|
150
|
+
_raw?: unknown;
|
|
151
|
+
};
|
|
55
152
|
id?: string | undefined;
|
|
56
153
|
uid?: string | undefined;
|
|
57
154
|
createdAt?: string | undefined;
|
|
58
155
|
updatedAt?: string | undefined;
|
|
59
156
|
deletedAt?: string | null | undefined;
|
|
60
|
-
meta?: unknown;
|
|
61
157
|
aid?: string | undefined;
|
|
62
158
|
}>;
|
|
63
159
|
export type StagedSaasAssetUpsertDto = z.infer<typeof _StagedSaasAssetUpsertDto>;
|
|
@@ -41,12 +41,12 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
|
|
|
41
41
|
name?: string | undefined;
|
|
42
42
|
email?: string | undefined;
|
|
43
43
|
}>>;
|
|
44
|
-
|
|
44
|
+
userType: z.ZodNativeEnum<typeof import("..").GlobalUserType>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
46
|
email: string;
|
|
47
|
-
status: import("..").GlobalUserType;
|
|
48
47
|
firstName: string;
|
|
49
48
|
lastName: string;
|
|
49
|
+
userType: import("..").GlobalUserType;
|
|
50
50
|
title?: string | undefined;
|
|
51
51
|
department?: string | undefined;
|
|
52
52
|
organization?: string | undefined;
|
|
@@ -59,9 +59,9 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
|
|
|
59
59
|
} | undefined;
|
|
60
60
|
}, {
|
|
61
61
|
email: string;
|
|
62
|
-
status: import("..").GlobalUserType;
|
|
63
62
|
firstName: string;
|
|
64
63
|
lastName: string;
|
|
64
|
+
userType: import("..").GlobalUserType;
|
|
65
65
|
title?: string | undefined;
|
|
66
66
|
department?: string | undefined;
|
|
67
67
|
organization?: string | undefined;
|
|
@@ -76,9 +76,9 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
|
|
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
|
77
77
|
profile: {
|
|
78
78
|
email: string;
|
|
79
|
-
status: import("..").GlobalUserType;
|
|
80
79
|
firstName: string;
|
|
81
80
|
lastName: string;
|
|
81
|
+
userType: import("..").GlobalUserType;
|
|
82
82
|
title?: string | undefined;
|
|
83
83
|
department?: string | undefined;
|
|
84
84
|
organization?: string | undefined;
|
|
@@ -98,9 +98,9 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
|
|
|
98
98
|
}, {
|
|
99
99
|
profile: {
|
|
100
100
|
email: string;
|
|
101
|
-
status: import("..").GlobalUserType;
|
|
102
101
|
firstName: string;
|
|
103
102
|
lastName: string;
|
|
103
|
+
userType: import("..").GlobalUserType;
|
|
104
104
|
title?: string | undefined;
|
|
105
105
|
department?: string | undefined;
|
|
106
106
|
organization?: string | undefined;
|
|
@@ -123,9 +123,9 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
|
|
|
123
123
|
_user: {
|
|
124
124
|
profile: {
|
|
125
125
|
email: string;
|
|
126
|
-
status: import("..").GlobalUserType;
|
|
127
126
|
firstName: string;
|
|
128
127
|
lastName: string;
|
|
128
|
+
userType: import("..").GlobalUserType;
|
|
129
129
|
title?: string | undefined;
|
|
130
130
|
department?: string | undefined;
|
|
131
131
|
organization?: string | undefined;
|
|
@@ -148,9 +148,9 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
|
|
|
148
148
|
_user: {
|
|
149
149
|
profile: {
|
|
150
150
|
email: string;
|
|
151
|
-
status: import("..").GlobalUserType;
|
|
152
151
|
firstName: string;
|
|
153
152
|
lastName: string;
|
|
153
|
+
userType: import("..").GlobalUserType;
|
|
154
154
|
title?: string | undefined;
|
|
155
155
|
department?: string | undefined;
|
|
156
156
|
organization?: string | undefined;
|
|
@@ -180,9 +180,9 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
|
|
|
180
180
|
_user: {
|
|
181
181
|
profile: {
|
|
182
182
|
email: string;
|
|
183
|
-
status: import("..").GlobalUserType;
|
|
184
183
|
firstName: string;
|
|
185
184
|
lastName: string;
|
|
185
|
+
userType: import("..").GlobalUserType;
|
|
186
186
|
title?: string | undefined;
|
|
187
187
|
department?: string | undefined;
|
|
188
188
|
organization?: string | undefined;
|
|
@@ -216,9 +216,9 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<{
|
|
|
216
216
|
_user: {
|
|
217
217
|
profile: {
|
|
218
218
|
email: string;
|
|
219
|
-
status: import("..").GlobalUserType;
|
|
220
219
|
firstName: string;
|
|
221
220
|
lastName: string;
|
|
221
|
+
userType: import("..").GlobalUserType;
|
|
222
222
|
title?: string | undefined;
|
|
223
223
|
department?: string | undefined;
|
|
224
224
|
organization?: string | undefined;
|
|
@@ -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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d,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"}
|
|
@@ -47,13 +47,13 @@ export declare const _SaasUserMeta: z.ZodObject<{
|
|
|
47
47
|
name?: string | undefined;
|
|
48
48
|
email?: string | undefined;
|
|
49
49
|
}>>;
|
|
50
|
-
/** User's
|
|
51
|
-
|
|
50
|
+
/** User's type */
|
|
51
|
+
userType: z.ZodNativeEnum<typeof GlobalUserType>;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
53
|
email: string;
|
|
54
|
-
status: GlobalUserType;
|
|
55
54
|
firstName: string;
|
|
56
55
|
lastName: string;
|
|
56
|
+
userType: GlobalUserType;
|
|
57
57
|
title?: string | undefined;
|
|
58
58
|
department?: string | undefined;
|
|
59
59
|
organization?: string | undefined;
|
|
@@ -66,9 +66,9 @@ export declare const _SaasUserMeta: z.ZodObject<{
|
|
|
66
66
|
} | undefined;
|
|
67
67
|
}, {
|
|
68
68
|
email: string;
|
|
69
|
-
status: GlobalUserType;
|
|
70
69
|
firstName: string;
|
|
71
70
|
lastName: string;
|
|
71
|
+
userType: GlobalUserType;
|
|
72
72
|
title?: string | undefined;
|
|
73
73
|
department?: string | undefined;
|
|
74
74
|
organization?: string | undefined;
|
|
@@ -83,9 +83,9 @@ export declare const _SaasUserMeta: z.ZodObject<{
|
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
84
|
profile: {
|
|
85
85
|
email: string;
|
|
86
|
-
status: GlobalUserType;
|
|
87
86
|
firstName: string;
|
|
88
87
|
lastName: string;
|
|
88
|
+
userType: GlobalUserType;
|
|
89
89
|
title?: string | undefined;
|
|
90
90
|
department?: string | undefined;
|
|
91
91
|
organization?: string | undefined;
|
|
@@ -105,9 +105,9 @@ export declare const _SaasUserMeta: z.ZodObject<{
|
|
|
105
105
|
}, {
|
|
106
106
|
profile: {
|
|
107
107
|
email: string;
|
|
108
|
-
status: GlobalUserType;
|
|
109
108
|
firstName: string;
|
|
110
109
|
lastName: string;
|
|
110
|
+
userType: GlobalUserType;
|
|
111
111
|
title?: string | undefined;
|
|
112
112
|
department?: string | undefined;
|
|
113
113
|
organization?: string | undefined;
|
|
@@ -130,9 +130,9 @@ export declare const _SaasUserMeta: z.ZodObject<{
|
|
|
130
130
|
_user: {
|
|
131
131
|
profile: {
|
|
132
132
|
email: string;
|
|
133
|
-
status: GlobalUserType;
|
|
134
133
|
firstName: string;
|
|
135
134
|
lastName: string;
|
|
135
|
+
userType: GlobalUserType;
|
|
136
136
|
title?: string | undefined;
|
|
137
137
|
department?: string | undefined;
|
|
138
138
|
organization?: string | undefined;
|
|
@@ -155,9 +155,9 @@ export declare const _SaasUserMeta: z.ZodObject<{
|
|
|
155
155
|
_user: {
|
|
156
156
|
profile: {
|
|
157
157
|
email: string;
|
|
158
|
-
status: GlobalUserType;
|
|
159
158
|
firstName: string;
|
|
160
159
|
lastName: string;
|
|
160
|
+
userType: GlobalUserType;
|
|
161
161
|
title?: string | undefined;
|
|
162
162
|
department?: string | undefined;
|
|
163
163
|
organization?: string | undefined;
|
|
@@ -235,13 +235,13 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
|
|
|
235
235
|
name?: string | undefined;
|
|
236
236
|
email?: string | undefined;
|
|
237
237
|
}>>;
|
|
238
|
-
/** User's
|
|
239
|
-
|
|
238
|
+
/** User's type */
|
|
239
|
+
userType: z.ZodNativeEnum<typeof GlobalUserType>;
|
|
240
240
|
}, "strip", z.ZodTypeAny, {
|
|
241
241
|
email: string;
|
|
242
|
-
status: GlobalUserType;
|
|
243
242
|
firstName: string;
|
|
244
243
|
lastName: string;
|
|
244
|
+
userType: GlobalUserType;
|
|
245
245
|
title?: string | undefined;
|
|
246
246
|
department?: string | undefined;
|
|
247
247
|
organization?: string | undefined;
|
|
@@ -254,9 +254,9 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
|
|
|
254
254
|
} | undefined;
|
|
255
255
|
}, {
|
|
256
256
|
email: string;
|
|
257
|
-
status: GlobalUserType;
|
|
258
257
|
firstName: string;
|
|
259
258
|
lastName: string;
|
|
259
|
+
userType: GlobalUserType;
|
|
260
260
|
title?: string | undefined;
|
|
261
261
|
department?: string | undefined;
|
|
262
262
|
organization?: string | undefined;
|
|
@@ -271,9 +271,9 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
|
|
|
271
271
|
}, "strip", z.ZodTypeAny, {
|
|
272
272
|
profile: {
|
|
273
273
|
email: string;
|
|
274
|
-
status: GlobalUserType;
|
|
275
274
|
firstName: string;
|
|
276
275
|
lastName: string;
|
|
276
|
+
userType: GlobalUserType;
|
|
277
277
|
title?: string | undefined;
|
|
278
278
|
department?: string | undefined;
|
|
279
279
|
organization?: string | undefined;
|
|
@@ -293,9 +293,9 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
|
|
|
293
293
|
}, {
|
|
294
294
|
profile: {
|
|
295
295
|
email: string;
|
|
296
|
-
status: GlobalUserType;
|
|
297
296
|
firstName: string;
|
|
298
297
|
lastName: string;
|
|
298
|
+
userType: GlobalUserType;
|
|
299
299
|
title?: string | undefined;
|
|
300
300
|
department?: string | undefined;
|
|
301
301
|
organization?: string | undefined;
|
|
@@ -318,9 +318,9 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
|
|
|
318
318
|
_user: {
|
|
319
319
|
profile: {
|
|
320
320
|
email: string;
|
|
321
|
-
status: GlobalUserType;
|
|
322
321
|
firstName: string;
|
|
323
322
|
lastName: string;
|
|
323
|
+
userType: GlobalUserType;
|
|
324
324
|
title?: string | undefined;
|
|
325
325
|
department?: string | undefined;
|
|
326
326
|
organization?: string | undefined;
|
|
@@ -343,9 +343,9 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
|
|
|
343
343
|
_user: {
|
|
344
344
|
profile: {
|
|
345
345
|
email: string;
|
|
346
|
-
status: GlobalUserType;
|
|
347
346
|
firstName: string;
|
|
348
347
|
lastName: string;
|
|
348
|
+
userType: GlobalUserType;
|
|
349
349
|
title?: string | undefined;
|
|
350
350
|
department?: string | undefined;
|
|
351
351
|
organization?: string | undefined;
|
|
@@ -375,9 +375,9 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
|
|
|
375
375
|
_user: {
|
|
376
376
|
profile: {
|
|
377
377
|
email: string;
|
|
378
|
-
status: GlobalUserType;
|
|
379
378
|
firstName: string;
|
|
380
379
|
lastName: string;
|
|
380
|
+
userType: GlobalUserType;
|
|
381
381
|
title?: string | undefined;
|
|
382
382
|
department?: string | undefined;
|
|
383
383
|
organization?: string | undefined;
|
|
@@ -411,9 +411,9 @@ export declare const _SaasUserUpsertDto: z.ZodObject<{
|
|
|
411
411
|
_user: {
|
|
412
412
|
profile: {
|
|
413
413
|
email: string;
|
|
414
|
-
status: GlobalUserType;
|
|
415
414
|
firstName: string;
|
|
416
415
|
lastName: string;
|
|
416
|
+
userType: GlobalUserType;
|
|
417
417
|
title?: string | undefined;
|
|
418
418
|
department?: string | undefined;
|
|
419
419
|
organization?: string | undefined;
|
|
@@ -491,13 +491,13 @@ export declare const _SaasUserDto: z.ZodObject<{
|
|
|
491
491
|
name?: string | undefined;
|
|
492
492
|
email?: string | undefined;
|
|
493
493
|
}>>;
|
|
494
|
-
/** User's
|
|
495
|
-
|
|
494
|
+
/** User's type */
|
|
495
|
+
userType: z.ZodNativeEnum<typeof GlobalUserType>;
|
|
496
496
|
}, "strip", z.ZodTypeAny, {
|
|
497
497
|
email: string;
|
|
498
|
-
status: GlobalUserType;
|
|
499
498
|
firstName: string;
|
|
500
499
|
lastName: string;
|
|
500
|
+
userType: GlobalUserType;
|
|
501
501
|
title?: string | undefined;
|
|
502
502
|
department?: string | undefined;
|
|
503
503
|
organization?: string | undefined;
|
|
@@ -510,9 +510,9 @@ export declare const _SaasUserDto: z.ZodObject<{
|
|
|
510
510
|
} | undefined;
|
|
511
511
|
}, {
|
|
512
512
|
email: string;
|
|
513
|
-
status: GlobalUserType;
|
|
514
513
|
firstName: string;
|
|
515
514
|
lastName: string;
|
|
515
|
+
userType: GlobalUserType;
|
|
516
516
|
title?: string | undefined;
|
|
517
517
|
department?: string | undefined;
|
|
518
518
|
organization?: string | undefined;
|
|
@@ -527,9 +527,9 @@ export declare const _SaasUserDto: z.ZodObject<{
|
|
|
527
527
|
}, "strip", z.ZodTypeAny, {
|
|
528
528
|
profile: {
|
|
529
529
|
email: string;
|
|
530
|
-
status: GlobalUserType;
|
|
531
530
|
firstName: string;
|
|
532
531
|
lastName: string;
|
|
532
|
+
userType: GlobalUserType;
|
|
533
533
|
title?: string | undefined;
|
|
534
534
|
department?: string | undefined;
|
|
535
535
|
organization?: string | undefined;
|
|
@@ -549,9 +549,9 @@ export declare const _SaasUserDto: z.ZodObject<{
|
|
|
549
549
|
}, {
|
|
550
550
|
profile: {
|
|
551
551
|
email: string;
|
|
552
|
-
status: GlobalUserType;
|
|
553
552
|
firstName: string;
|
|
554
553
|
lastName: string;
|
|
554
|
+
userType: GlobalUserType;
|
|
555
555
|
title?: string | undefined;
|
|
556
556
|
department?: string | undefined;
|
|
557
557
|
organization?: string | undefined;
|
|
@@ -574,9 +574,9 @@ export declare const _SaasUserDto: z.ZodObject<{
|
|
|
574
574
|
_user: {
|
|
575
575
|
profile: {
|
|
576
576
|
email: string;
|
|
577
|
-
status: GlobalUserType;
|
|
578
577
|
firstName: string;
|
|
579
578
|
lastName: string;
|
|
579
|
+
userType: GlobalUserType;
|
|
580
580
|
title?: string | undefined;
|
|
581
581
|
department?: string | undefined;
|
|
582
582
|
organization?: string | undefined;
|
|
@@ -599,9 +599,9 @@ export declare const _SaasUserDto: z.ZodObject<{
|
|
|
599
599
|
_user: {
|
|
600
600
|
profile: {
|
|
601
601
|
email: string;
|
|
602
|
-
status: GlobalUserType;
|
|
603
602
|
firstName: string;
|
|
604
603
|
lastName: string;
|
|
604
|
+
userType: GlobalUserType;
|
|
605
605
|
title?: string | undefined;
|
|
606
606
|
department?: string | undefined;
|
|
607
607
|
organization?: string | undefined;
|
|
@@ -640,9 +640,9 @@ export declare const _SaasUserDto: z.ZodObject<{
|
|
|
640
640
|
_user: {
|
|
641
641
|
profile: {
|
|
642
642
|
email: string;
|
|
643
|
-
status: GlobalUserType;
|
|
644
643
|
firstName: string;
|
|
645
644
|
lastName: string;
|
|
645
|
+
userType: GlobalUserType;
|
|
646
646
|
title?: string | undefined;
|
|
647
647
|
department?: string | undefined;
|
|
648
648
|
organization?: string | undefined;
|
|
@@ -676,9 +676,9 @@ export declare const _SaasUserDto: z.ZodObject<{
|
|
|
676
676
|
_user: {
|
|
677
677
|
profile: {
|
|
678
678
|
email: string;
|
|
679
|
-
status: GlobalUserType;
|
|
680
679
|
firstName: string;
|
|
681
680
|
lastName: string;
|
|
681
|
+
userType: GlobalUserType;
|
|
682
682
|
title?: string | undefined;
|
|
683
683
|
department?: string | undefined;
|
|
684
684
|
organization?: string | undefined;
|
|
@@ -45,8 +45,8 @@ exports._SaasUserMeta = zod_1.z.object({
|
|
|
45
45
|
email: zod_1.z.string().optional(),
|
|
46
46
|
})
|
|
47
47
|
.optional(),
|
|
48
|
-
/** User's
|
|
49
|
-
|
|
48
|
+
/** User's type */
|
|
49
|
+
userType: zod_1.z.nativeEnum(enums_1.GlobalUserType),
|
|
50
50
|
}),
|
|
51
51
|
}),
|
|
52
52
|
_raw: zod_1.z.unknown(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saasUsers.dto.js","sourceRoot":"","sources":["../../../src/dto/saasUsers.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAkE;AAClE,mCAAuC;AAE1B,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,KAAK,EAAE,OAAC,CAAC,MAAM,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C,MAAM,EAAE;IACf,mBAAmB;IACnB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,qBAAqB;IACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,kBAAkB;IAClB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,wDAAwD;IACxD,IAAI,EAAE,qBAAa;CACpB,CAAC,CACH,CAAC;AAIW,QAAA,YAAY,GAAG,0BAAkB,CAAC,KAAK,CAAC,0BAAe,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,39 @@
|
|
|
1
1
|
import {z} from 'zod';
|
|
2
2
|
import {_AssetKeys} from './assetKeys';
|
|
3
3
|
import {_ChangeAwareDto, _ChangeAwareUpsertDto} from './base.dto';
|
|
4
|
+
import {GlobalAssetType} from './enums';
|
|
5
|
+
|
|
6
|
+
export const _SaasAssetMeta = z.object({
|
|
7
|
+
_asset: z.object({
|
|
8
|
+
/** Asset ID from provider */
|
|
9
|
+
extId: z.string(),
|
|
10
|
+
/** Asset type */
|
|
11
|
+
assetType: z.nativeEnum(GlobalAssetType),
|
|
12
|
+
/** Asset name */
|
|
13
|
+
deviceName: z.string().optional(),
|
|
14
|
+
/** Asset host name */
|
|
15
|
+
hostNames: z.array(z.string()),
|
|
16
|
+
// TODO: define kind values in enum when needed
|
|
17
|
+
// kind: z.string()
|
|
18
|
+
/** Last activity time of asset */
|
|
19
|
+
lastActivityTime: z.string().optional(),
|
|
20
|
+
/** Operating system of asset */
|
|
21
|
+
operatingSystems: z.array(
|
|
22
|
+
z.object({
|
|
23
|
+
displayValue: z.string(),
|
|
24
|
+
// TODO: define this when needed
|
|
25
|
+
// kind: enum,
|
|
26
|
+
})
|
|
27
|
+
),
|
|
28
|
+
/** Asset serial number */
|
|
29
|
+
serialNumber: z.string().optional(),
|
|
30
|
+
/** Asset mac addresses */
|
|
31
|
+
macAddresses: z.array(z.string()).optional(),
|
|
32
|
+
}),
|
|
33
|
+
_raw: z.unknown(),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export type SaasAssetMeta = z.infer<typeof _SaasAssetMeta>;
|
|
4
37
|
|
|
5
38
|
export const _SaasAssetUpsertDto = _ChangeAwareUpsertDto.merge(
|
|
6
39
|
z.object({
|
|
@@ -15,7 +48,7 @@ export const _SaasAssetUpsertDto = _ChangeAwareUpsertDto.merge(
|
|
|
15
48
|
/** Asset display value */
|
|
16
49
|
displayValue: z.string(),
|
|
17
50
|
/** Information specific to this asset */
|
|
18
|
-
meta:
|
|
51
|
+
meta: _SaasAssetMeta,
|
|
19
52
|
})
|
|
20
53
|
);
|
|
21
54
|
|
package/src/dto/saasUsers.dto.ts
CHANGED
|
@@ -43,8 +43,8 @@ export const _SaasUserMeta = z.object({
|
|
|
43
43
|
email: z.string().optional(),
|
|
44
44
|
})
|
|
45
45
|
.optional(),
|
|
46
|
-
/** User's
|
|
47
|
-
|
|
46
|
+
/** User's type */
|
|
47
|
+
userType: z.nativeEnum(GlobalUserType),
|
|
48
48
|
}),
|
|
49
49
|
}),
|
|
50
50
|
_raw: z.unknown(),
|