@ampsec/platform-client 78.10.0 → 78.12.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 +63 -2
- package/build/src/dto/coverage.dto.js +1 -0
- package/build/src/dto/coverage.dto.js.map +1 -1
- 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/timeZoneSource.d.ts +4 -0
- package/build/src/dto/enums/timeZoneSource.js +9 -0
- package/build/src/dto/enums/timeZoneSource.js.map +1 -0
- package/build/src/dto/platform/platform.saasUsers.dto.d.ts +43 -0
- package/build/src/dto/saasUsers.dto.d.ts +122 -0
- package/build/src/dto/saasUsers.dto.js +3 -0
- package/build/src/dto/saasUsers.dto.js.map +1 -1
- package/build/src/dto/timeZoneInfo.dto.d.ts +16 -0
- package/build/src/dto/timeZoneInfo.dto.js +15 -0
- package/build/src/dto/timeZoneInfo.dto.js.map +1 -0
- package/build/src/dto/users.dto.d.ts +3 -0
- package/build/src/dto/users.dto.js.map +1 -1
- package/package.json +1 -1
- package/src/dto/coverage.dto.ts +1 -0
- package/src/dto/enums/index.ts +1 -0
- package/src/dto/enums/timeZoneSource.ts +4 -0
- package/src/dto/saasUsers.dto.ts +3 -0
- package/src/dto/timeZoneInfo.dto.ts +14 -0
- package/src/dto/users.dto.ts +3 -0
|
@@ -37,11 +37,13 @@ export declare const _AssetCoverageSummary: z.ZodObject<z.objectUtil.extendShape
|
|
|
37
37
|
}, {
|
|
38
38
|
active: boolean;
|
|
39
39
|
}>, "many">>;
|
|
40
|
+
isAssetActive: z.ZodBoolean;
|
|
40
41
|
}>, "strip", z.ZodTypeAny, {
|
|
41
42
|
assetAccounts: Record<string, unknown>;
|
|
42
43
|
assetAccounts2: Record<string, {
|
|
43
44
|
active: boolean;
|
|
44
45
|
}[]>;
|
|
46
|
+
isAssetActive: boolean;
|
|
45
47
|
id?: string | undefined;
|
|
46
48
|
uid?: string | undefined;
|
|
47
49
|
sn?: string | undefined;
|
|
@@ -57,6 +59,7 @@ export declare const _AssetCoverageSummary: z.ZodObject<z.objectUtil.extendShape
|
|
|
57
59
|
assetAccounts2: Record<string, {
|
|
58
60
|
active: boolean;
|
|
59
61
|
}[]>;
|
|
62
|
+
isAssetActive: boolean;
|
|
60
63
|
id?: string | undefined;
|
|
61
64
|
uid?: string | undefined;
|
|
62
65
|
sn?: string | undefined;
|
|
@@ -277,11 +280,13 @@ export declare const _UserCoverageSummary: z.ZodObject<z.objectUtil.extendShape<
|
|
|
277
280
|
}, {
|
|
278
281
|
active: boolean;
|
|
279
282
|
}>, "many">>;
|
|
283
|
+
isAssetActive: z.ZodBoolean;
|
|
280
284
|
}>, "strip", z.ZodTypeAny, {
|
|
281
285
|
assetAccounts: Record<string, unknown>;
|
|
282
286
|
assetAccounts2: Record<string, {
|
|
283
287
|
active: boolean;
|
|
284
288
|
}[]>;
|
|
289
|
+
isAssetActive: boolean;
|
|
285
290
|
id?: string | undefined;
|
|
286
291
|
uid?: string | undefined;
|
|
287
292
|
sn?: string | undefined;
|
|
@@ -297,6 +302,7 @@ export declare const _UserCoverageSummary: z.ZodObject<z.objectUtil.extendShape<
|
|
|
297
302
|
assetAccounts2: Record<string, {
|
|
298
303
|
active: boolean;
|
|
299
304
|
}[]>;
|
|
305
|
+
isAssetActive: boolean;
|
|
300
306
|
id?: string | undefined;
|
|
301
307
|
uid?: string | undefined;
|
|
302
308
|
sn?: string | undefined;
|
|
@@ -319,6 +325,7 @@ export declare const _UserCoverageSummary: z.ZodObject<z.objectUtil.extendShape<
|
|
|
319
325
|
assetAccounts2: Record<string, {
|
|
320
326
|
active: boolean;
|
|
321
327
|
}[]>;
|
|
328
|
+
isAssetActive: boolean;
|
|
322
329
|
id?: string | undefined;
|
|
323
330
|
uid?: string | undefined;
|
|
324
331
|
sn?: string | undefined;
|
|
@@ -385,6 +392,7 @@ export declare const _UserCoverageSummary: z.ZodObject<z.objectUtil.extendShape<
|
|
|
385
392
|
assetAccounts2: Record<string, {
|
|
386
393
|
active: boolean;
|
|
387
394
|
}[]>;
|
|
395
|
+
isAssetActive: boolean;
|
|
388
396
|
id?: string | undefined;
|
|
389
397
|
uid?: string | undefined;
|
|
390
398
|
sn?: string | undefined;
|
|
@@ -470,7 +478,6 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
470
478
|
extId: z.ZodOptional<z.ZodString>;
|
|
471
479
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
472
480
|
created: z.ZodOptional<z.ZodString>;
|
|
473
|
-
/** @deprecated */
|
|
474
481
|
lastActivityTime: z.ZodOptional<z.ZodString>;
|
|
475
482
|
factors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
476
483
|
cid: z.ZodOptional<z.ZodString>;
|
|
@@ -548,6 +555,19 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
548
555
|
extId?: string | undefined;
|
|
549
556
|
} | undefined;
|
|
550
557
|
}>;
|
|
558
|
+
timeZoneInfo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
559
|
+
timezone: z.ZodString;
|
|
560
|
+
src: z.ZodNativeEnum<typeof import("./enums").TimeZoneSource>;
|
|
561
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
562
|
+
}, "strip", z.ZodTypeAny, {
|
|
563
|
+
timezone: string;
|
|
564
|
+
src: import("./enums").TimeZoneSource;
|
|
565
|
+
config?: Record<string, unknown> | undefined;
|
|
566
|
+
}, {
|
|
567
|
+
timezone: string;
|
|
568
|
+
src: import("./enums").TimeZoneSource;
|
|
569
|
+
config?: Record<string, unknown> | undefined;
|
|
570
|
+
}>>>;
|
|
551
571
|
}, "strip", z.ZodTypeAny, {
|
|
552
572
|
profile: {
|
|
553
573
|
email: string;
|
|
@@ -577,6 +597,11 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
577
597
|
factorType: z.ZodOptional<z.ZodString>;
|
|
578
598
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
579
599
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
600
|
+
timeZoneInfo?: {
|
|
601
|
+
timezone: string;
|
|
602
|
+
src: import("./enums").TimeZoneSource;
|
|
603
|
+
config?: Record<string, unknown> | undefined;
|
|
604
|
+
} | undefined;
|
|
580
605
|
}, {
|
|
581
606
|
profile: {
|
|
582
607
|
email: string;
|
|
@@ -606,6 +631,11 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
606
631
|
factorType: z.ZodOptional<z.ZodString>;
|
|
607
632
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
608
633
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
634
|
+
timeZoneInfo?: {
|
|
635
|
+
timezone: string;
|
|
636
|
+
src: import("./enums").TimeZoneSource;
|
|
637
|
+
config?: Record<string, unknown> | undefined;
|
|
638
|
+
} | undefined;
|
|
609
639
|
}>;
|
|
610
640
|
_raw: z.ZodUnknown;
|
|
611
641
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -638,6 +668,11 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
638
668
|
factorType: z.ZodOptional<z.ZodString>;
|
|
639
669
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
640
670
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
671
|
+
timeZoneInfo?: {
|
|
672
|
+
timezone: string;
|
|
673
|
+
src: import("./enums").TimeZoneSource;
|
|
674
|
+
config?: Record<string, unknown> | undefined;
|
|
675
|
+
} | undefined;
|
|
641
676
|
};
|
|
642
677
|
_raw?: unknown;
|
|
643
678
|
}, {
|
|
@@ -670,6 +705,11 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
670
705
|
factorType: z.ZodOptional<z.ZodString>;
|
|
671
706
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
672
707
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
708
|
+
timeZoneInfo?: {
|
|
709
|
+
timezone: string;
|
|
710
|
+
src: import("./enums").TimeZoneSource;
|
|
711
|
+
config?: Record<string, unknown> | undefined;
|
|
712
|
+
} | undefined;
|
|
673
713
|
};
|
|
674
714
|
_raw?: unknown;
|
|
675
715
|
}>;
|
|
@@ -720,6 +760,11 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
720
760
|
factorType: z.ZodOptional<z.ZodString>;
|
|
721
761
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
722
762
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
763
|
+
timeZoneInfo?: {
|
|
764
|
+
timezone: string;
|
|
765
|
+
src: import("./enums").TimeZoneSource;
|
|
766
|
+
config?: Record<string, unknown> | undefined;
|
|
767
|
+
} | undefined;
|
|
723
768
|
};
|
|
724
769
|
_raw?: unknown;
|
|
725
770
|
};
|
|
@@ -763,6 +808,11 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
763
808
|
factorType: z.ZodOptional<z.ZodString>;
|
|
764
809
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
765
810
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
811
|
+
timeZoneInfo?: {
|
|
812
|
+
timezone: string;
|
|
813
|
+
src: import("./enums").TimeZoneSource;
|
|
814
|
+
config?: Record<string, unknown> | undefined;
|
|
815
|
+
} | undefined;
|
|
766
816
|
};
|
|
767
817
|
_raw?: unknown;
|
|
768
818
|
};
|
|
@@ -791,6 +841,7 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
791
841
|
sn?: string | undefined;
|
|
792
842
|
hostname?: string | undefined;
|
|
793
843
|
}>;
|
|
844
|
+
/** @deprecated */
|
|
794
845
|
cid: z.ZodString;
|
|
795
846
|
aid: z.ZodString;
|
|
796
847
|
uid: z.ZodOptional<z.ZodString>;
|
|
@@ -1023,7 +1074,7 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1023
1074
|
displayValue: z.ZodString;
|
|
1024
1075
|
uid: z.ZodOptional<z.ZodString>;
|
|
1025
1076
|
assetType: z.ZodOptional<z.ZodNativeEnum<typeof import("./enums").GlobalAssetType>>;
|
|
1026
|
-
lastActivityTime: z.ZodOptional<z.ZodString>;
|
|
1077
|
+
lastActivityTime: z.ZodOptional<z.ZodString>;
|
|
1027
1078
|
}>, z.objectUtil.extendShape<{
|
|
1028
1079
|
id: z.ZodString;
|
|
1029
1080
|
createdAt: z.ZodString;
|
|
@@ -1145,6 +1196,11 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1145
1196
|
factorType: z.ZodOptional<z.ZodString>;
|
|
1146
1197
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
1147
1198
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
1199
|
+
timeZoneInfo?: {
|
|
1200
|
+
timezone: string;
|
|
1201
|
+
src: import("./enums").TimeZoneSource;
|
|
1202
|
+
config?: Record<string, unknown> | undefined;
|
|
1203
|
+
} | undefined;
|
|
1148
1204
|
};
|
|
1149
1205
|
_raw?: unknown;
|
|
1150
1206
|
};
|
|
@@ -1256,6 +1312,11 @@ export declare const _UserCoverageReport: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1256
1312
|
factorType: z.ZodOptional<z.ZodString>;
|
|
1257
1313
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
1258
1314
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
1315
|
+
timeZoneInfo?: {
|
|
1316
|
+
timezone: string;
|
|
1317
|
+
src: import("./enums").TimeZoneSource;
|
|
1318
|
+
config?: Record<string, unknown> | undefined;
|
|
1319
|
+
} | undefined;
|
|
1259
1320
|
};
|
|
1260
1321
|
_raw?: unknown;
|
|
1261
1322
|
};
|
|
@@ -17,6 +17,7 @@ exports._AssetCoverageSummary = assets_dto_1._SummaryAssetDto.merge(zod_1.z.obje
|
|
|
17
17
|
/** @deprecated */
|
|
18
18
|
assetAccounts: zod_1.z.record(zod_1.z.unknown()),
|
|
19
19
|
assetAccounts2: zod_1.z.record(zod_1.z.array(exports._AssetAccountSummary)),
|
|
20
|
+
isAssetActive: zod_1.z.boolean(),
|
|
20
21
|
}));
|
|
21
22
|
exports._MfaSummary = zod_1.z.object({
|
|
22
23
|
allowEmptyFactors: zod_1.z.boolean(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coverage.dto.js","sourceRoot":"","sources":["../../../src/dto/coverage.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,6CAAyD;AACzD,qDAA+C;AAC/C,mDAAwE;AACxE,2CAA2C;AAC3C,6DAA+C;AAElC,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE;CACpB,CAAC,CAAC;AAGU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE;CACpB,CAAC,CAAC;AAGU,QAAA,qBAAqB,GAAG,6BAAgB,CAAC,KAAK,CACzD,OAAC,CAAC,MAAM,CAAC;IACP,kBAAkB;IAClB,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CA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,kBAAkB;IAClB,SAAS,EAAE,OAAC,CAAC,UAAU,CAAC,8BAAS,CAAC,CAAC,QAAQ,EAAE;IAC7C,kBAAkB;IAClB,SAAS,EAAE,0BAAU,CAAC,QAAQ,EAAE;IAChC,kBAAkB;IAClB,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,6BAAa,CAAC,CAAC,QAAQ,EAAE;IAC7C,UAAU,EAAE,mBAAW,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,mBAAW,CAAC,CAAC,QAAQ,EAAE;IAC5C,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,kBAAkB;IAClB,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAClC,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,KAAK,CAAC,2BAAmB,CAAC,CAAC;IACrD,kBAAkB;IAClB,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACnC,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,6BAAqB,CAAC;CACvC,CAAC,CACH,CAAC;AAGW,QAAA,mBAAmB,GAAG,0BAAc,CAAC,KAAK,CACrD,OAAC,CAAC,MAAM,CAAC;IACP,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,KAAK,CAAC,4BAAY,CAAC,CAAC;IAC7C,aAAa,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,KAAK,CAAC,8BAAa,CAAC,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,sBAAS,CAAC;CAC3B,CAAC,CACH,CAAC"}
|
|
@@ -42,4 +42,5 @@ __exportStar(require("./actionExecution.status"), exports);
|
|
|
42
42
|
__exportStar(require("./tenantStatusFlags"), exports);
|
|
43
43
|
__exportStar(require("./platformJobKind"), exports);
|
|
44
44
|
__exportStar(require("./metric.kind"), exports);
|
|
45
|
+
__exportStar(require("./timeZoneSource"), exports);
|
|
45
46
|
//# 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,kDAAgC;AAChC,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;AACpC,oDAAkC;AAClC,gDAA8B"}
|
|
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,kDAAgC;AAChC,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;AACpC,oDAAkC;AAClC,gDAA8B;AAC9B,mDAAiC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimeZoneSource = void 0;
|
|
4
|
+
var TimeZoneSource;
|
|
5
|
+
(function (TimeZoneSource) {
|
|
6
|
+
TimeZoneSource["IDENTITY"] = "IDENTITY";
|
|
7
|
+
TimeZoneSource["MESSAGING"] = "MESSAGING";
|
|
8
|
+
})(TimeZoneSource || (exports.TimeZoneSource = TimeZoneSource = {}));
|
|
9
|
+
//# sourceMappingURL=timeZoneSource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeZoneSource.js","sourceRoot":"","sources":["../../../../src/dto/enums/timeZoneSource.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;AACzB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB"}
|
|
@@ -97,6 +97,19 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
97
97
|
extId?: string | undefined;
|
|
98
98
|
} | undefined;
|
|
99
99
|
}>;
|
|
100
|
+
timeZoneInfo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
101
|
+
timezone: z.ZodString;
|
|
102
|
+
src: z.ZodNativeEnum<typeof import("..").TimeZoneSource>;
|
|
103
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
timezone: string;
|
|
106
|
+
src: import("..").TimeZoneSource;
|
|
107
|
+
config?: Record<string, unknown> | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
timezone: string;
|
|
110
|
+
src: import("..").TimeZoneSource;
|
|
111
|
+
config?: Record<string, unknown> | undefined;
|
|
112
|
+
}>>>;
|
|
100
113
|
}, "strip", z.ZodTypeAny, {
|
|
101
114
|
profile: {
|
|
102
115
|
email: string;
|
|
@@ -126,6 +139,11 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
126
139
|
factorType: z.ZodOptional<z.ZodString>;
|
|
127
140
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
128
141
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
142
|
+
timeZoneInfo?: {
|
|
143
|
+
timezone: string;
|
|
144
|
+
src: import("..").TimeZoneSource;
|
|
145
|
+
config?: Record<string, unknown> | undefined;
|
|
146
|
+
} | undefined;
|
|
129
147
|
}, {
|
|
130
148
|
profile: {
|
|
131
149
|
email: string;
|
|
@@ -155,6 +173,11 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
155
173
|
factorType: z.ZodOptional<z.ZodString>;
|
|
156
174
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
157
175
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
176
|
+
timeZoneInfo?: {
|
|
177
|
+
timezone: string;
|
|
178
|
+
src: import("..").TimeZoneSource;
|
|
179
|
+
config?: Record<string, unknown> | undefined;
|
|
180
|
+
} | undefined;
|
|
158
181
|
}>;
|
|
159
182
|
_raw: z.ZodUnknown;
|
|
160
183
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -187,6 +210,11 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
187
210
|
factorType: z.ZodOptional<z.ZodString>;
|
|
188
211
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
189
212
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
213
|
+
timeZoneInfo?: {
|
|
214
|
+
timezone: string;
|
|
215
|
+
src: import("..").TimeZoneSource;
|
|
216
|
+
config?: Record<string, unknown> | undefined;
|
|
217
|
+
} | undefined;
|
|
190
218
|
};
|
|
191
219
|
_raw?: unknown;
|
|
192
220
|
}, {
|
|
@@ -219,6 +247,11 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
219
247
|
factorType: z.ZodOptional<z.ZodString>;
|
|
220
248
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
221
249
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
250
|
+
timeZoneInfo?: {
|
|
251
|
+
timezone: string;
|
|
252
|
+
src: import("..").TimeZoneSource;
|
|
253
|
+
config?: Record<string, unknown> | undefined;
|
|
254
|
+
} | undefined;
|
|
222
255
|
};
|
|
223
256
|
_raw?: unknown;
|
|
224
257
|
}>;
|
|
@@ -260,6 +293,11 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
260
293
|
factorType: z.ZodOptional<z.ZodString>;
|
|
261
294
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
262
295
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
296
|
+
timeZoneInfo?: {
|
|
297
|
+
timezone: string;
|
|
298
|
+
src: import("..").TimeZoneSource;
|
|
299
|
+
config?: Record<string, unknown> | undefined;
|
|
300
|
+
} | undefined;
|
|
263
301
|
};
|
|
264
302
|
_raw?: unknown;
|
|
265
303
|
};
|
|
@@ -304,6 +342,11 @@ export declare const _StagedSaasUserUpsertDto: z.ZodObject<z.objectUtil.extendSh
|
|
|
304
342
|
factorType: z.ZodOptional<z.ZodString>;
|
|
305
343
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
306
344
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
345
|
+
timeZoneInfo?: {
|
|
346
|
+
timezone: string;
|
|
347
|
+
src: import("..").TimeZoneSource;
|
|
348
|
+
config?: Record<string, unknown> | undefined;
|
|
349
|
+
} | undefined;
|
|
307
350
|
};
|
|
308
351
|
_raw?: unknown;
|
|
309
352
|
};
|
|
@@ -124,6 +124,20 @@ export declare const _SaasUserMeta: z.ZodObject<{
|
|
|
124
124
|
extId?: string | undefined;
|
|
125
125
|
} | undefined;
|
|
126
126
|
}>;
|
|
127
|
+
/** User's time zone info */
|
|
128
|
+
timeZoneInfo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
129
|
+
timezone: z.ZodString;
|
|
130
|
+
src: z.ZodNativeEnum<typeof import("./enums").TimeZoneSource>;
|
|
131
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
timezone: string;
|
|
134
|
+
src: import("./enums").TimeZoneSource;
|
|
135
|
+
config?: Record<string, unknown> | undefined;
|
|
136
|
+
}, {
|
|
137
|
+
timezone: string;
|
|
138
|
+
src: import("./enums").TimeZoneSource;
|
|
139
|
+
config?: Record<string, unknown> | undefined;
|
|
140
|
+
}>>>;
|
|
127
141
|
}, "strip", z.ZodTypeAny, {
|
|
128
142
|
profile: {
|
|
129
143
|
email: string;
|
|
@@ -153,6 +167,11 @@ export declare const _SaasUserMeta: z.ZodObject<{
|
|
|
153
167
|
factorType: z.ZodOptional<z.ZodString>;
|
|
154
168
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
155
169
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
170
|
+
timeZoneInfo?: {
|
|
171
|
+
timezone: string;
|
|
172
|
+
src: import("./enums").TimeZoneSource;
|
|
173
|
+
config?: Record<string, unknown> | undefined;
|
|
174
|
+
} | undefined;
|
|
156
175
|
}, {
|
|
157
176
|
profile: {
|
|
158
177
|
email: string;
|
|
@@ -182,6 +201,11 @@ export declare const _SaasUserMeta: z.ZodObject<{
|
|
|
182
201
|
factorType: z.ZodOptional<z.ZodString>;
|
|
183
202
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
184
203
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
204
|
+
timeZoneInfo?: {
|
|
205
|
+
timezone: string;
|
|
206
|
+
src: import("./enums").TimeZoneSource;
|
|
207
|
+
config?: Record<string, unknown> | undefined;
|
|
208
|
+
} | undefined;
|
|
185
209
|
}>;
|
|
186
210
|
_raw: z.ZodUnknown;
|
|
187
211
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -214,6 +238,11 @@ export declare const _SaasUserMeta: z.ZodObject<{
|
|
|
214
238
|
factorType: z.ZodOptional<z.ZodString>;
|
|
215
239
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
216
240
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
241
|
+
timeZoneInfo?: {
|
|
242
|
+
timezone: string;
|
|
243
|
+
src: import("./enums").TimeZoneSource;
|
|
244
|
+
config?: Record<string, unknown> | undefined;
|
|
245
|
+
} | undefined;
|
|
217
246
|
};
|
|
218
247
|
_raw?: unknown;
|
|
219
248
|
}, {
|
|
@@ -246,6 +275,11 @@ export declare const _SaasUserMeta: z.ZodObject<{
|
|
|
246
275
|
factorType: z.ZodOptional<z.ZodString>;
|
|
247
276
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
248
277
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
278
|
+
timeZoneInfo?: {
|
|
279
|
+
timezone: string;
|
|
280
|
+
src: import("./enums").TimeZoneSource;
|
|
281
|
+
config?: Record<string, unknown> | undefined;
|
|
282
|
+
} | undefined;
|
|
249
283
|
};
|
|
250
284
|
_raw?: unknown;
|
|
251
285
|
}>;
|
|
@@ -369,6 +403,20 @@ export declare const _SaasUserUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
369
403
|
extId?: string | undefined;
|
|
370
404
|
} | undefined;
|
|
371
405
|
}>;
|
|
406
|
+
/** User's time zone info */
|
|
407
|
+
timeZoneInfo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
408
|
+
timezone: z.ZodString;
|
|
409
|
+
src: z.ZodNativeEnum<typeof import("./enums").TimeZoneSource>;
|
|
410
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
411
|
+
}, "strip", z.ZodTypeAny, {
|
|
412
|
+
timezone: string;
|
|
413
|
+
src: import("./enums").TimeZoneSource;
|
|
414
|
+
config?: Record<string, unknown> | undefined;
|
|
415
|
+
}, {
|
|
416
|
+
timezone: string;
|
|
417
|
+
src: import("./enums").TimeZoneSource;
|
|
418
|
+
config?: Record<string, unknown> | undefined;
|
|
419
|
+
}>>>;
|
|
372
420
|
}, "strip", z.ZodTypeAny, {
|
|
373
421
|
profile: {
|
|
374
422
|
email: string;
|
|
@@ -398,6 +446,11 @@ export declare const _SaasUserUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
398
446
|
factorType: z.ZodOptional<z.ZodString>;
|
|
399
447
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
400
448
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
449
|
+
timeZoneInfo?: {
|
|
450
|
+
timezone: string;
|
|
451
|
+
src: import("./enums").TimeZoneSource;
|
|
452
|
+
config?: Record<string, unknown> | undefined;
|
|
453
|
+
} | undefined;
|
|
401
454
|
}, {
|
|
402
455
|
profile: {
|
|
403
456
|
email: string;
|
|
@@ -427,6 +480,11 @@ export declare const _SaasUserUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
427
480
|
factorType: z.ZodOptional<z.ZodString>;
|
|
428
481
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
429
482
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
483
|
+
timeZoneInfo?: {
|
|
484
|
+
timezone: string;
|
|
485
|
+
src: import("./enums").TimeZoneSource;
|
|
486
|
+
config?: Record<string, unknown> | undefined;
|
|
487
|
+
} | undefined;
|
|
430
488
|
}>;
|
|
431
489
|
_raw: z.ZodUnknown;
|
|
432
490
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -459,6 +517,11 @@ export declare const _SaasUserUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
459
517
|
factorType: z.ZodOptional<z.ZodString>;
|
|
460
518
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
461
519
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
520
|
+
timeZoneInfo?: {
|
|
521
|
+
timezone: string;
|
|
522
|
+
src: import("./enums").TimeZoneSource;
|
|
523
|
+
config?: Record<string, unknown> | undefined;
|
|
524
|
+
} | undefined;
|
|
462
525
|
};
|
|
463
526
|
_raw?: unknown;
|
|
464
527
|
}, {
|
|
@@ -491,6 +554,11 @@ export declare const _SaasUserUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
491
554
|
factorType: z.ZodOptional<z.ZodString>;
|
|
492
555
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
493
556
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
557
|
+
timeZoneInfo?: {
|
|
558
|
+
timezone: string;
|
|
559
|
+
src: import("./enums").TimeZoneSource;
|
|
560
|
+
config?: Record<string, unknown> | undefined;
|
|
561
|
+
} | undefined;
|
|
494
562
|
};
|
|
495
563
|
_raw?: unknown;
|
|
496
564
|
}>;
|
|
@@ -530,6 +598,11 @@ export declare const _SaasUserUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
530
598
|
factorType: z.ZodOptional<z.ZodString>;
|
|
531
599
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
532
600
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
601
|
+
timeZoneInfo?: {
|
|
602
|
+
timezone: string;
|
|
603
|
+
src: import("./enums").TimeZoneSource;
|
|
604
|
+
config?: Record<string, unknown> | undefined;
|
|
605
|
+
} | undefined;
|
|
533
606
|
};
|
|
534
607
|
_raw?: unknown;
|
|
535
608
|
};
|
|
@@ -573,6 +646,11 @@ export declare const _SaasUserUpsertDto: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
573
646
|
factorType: z.ZodOptional<z.ZodString>;
|
|
574
647
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
575
648
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
649
|
+
timeZoneInfo?: {
|
|
650
|
+
timezone: string;
|
|
651
|
+
src: import("./enums").TimeZoneSource;
|
|
652
|
+
config?: Record<string, unknown> | undefined;
|
|
653
|
+
} | undefined;
|
|
576
654
|
};
|
|
577
655
|
_raw?: unknown;
|
|
578
656
|
};
|
|
@@ -701,6 +779,20 @@ export declare const _SaasUserDto: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
701
779
|
extId?: string | undefined;
|
|
702
780
|
} | undefined;
|
|
703
781
|
}>;
|
|
782
|
+
/** User's time zone info */
|
|
783
|
+
timeZoneInfo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
784
|
+
timezone: z.ZodString;
|
|
785
|
+
src: z.ZodNativeEnum<typeof import("./enums").TimeZoneSource>;
|
|
786
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
787
|
+
}, "strip", z.ZodTypeAny, {
|
|
788
|
+
timezone: string;
|
|
789
|
+
src: import("./enums").TimeZoneSource;
|
|
790
|
+
config?: Record<string, unknown> | undefined;
|
|
791
|
+
}, {
|
|
792
|
+
timezone: string;
|
|
793
|
+
src: import("./enums").TimeZoneSource;
|
|
794
|
+
config?: Record<string, unknown> | undefined;
|
|
795
|
+
}>>>;
|
|
704
796
|
}, "strip", z.ZodTypeAny, {
|
|
705
797
|
profile: {
|
|
706
798
|
email: string;
|
|
@@ -730,6 +822,11 @@ export declare const _SaasUserDto: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
730
822
|
factorType: z.ZodOptional<z.ZodString>;
|
|
731
823
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
732
824
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
825
|
+
timeZoneInfo?: {
|
|
826
|
+
timezone: string;
|
|
827
|
+
src: import("./enums").TimeZoneSource;
|
|
828
|
+
config?: Record<string, unknown> | undefined;
|
|
829
|
+
} | undefined;
|
|
733
830
|
}, {
|
|
734
831
|
profile: {
|
|
735
832
|
email: string;
|
|
@@ -759,6 +856,11 @@ export declare const _SaasUserDto: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
759
856
|
factorType: z.ZodOptional<z.ZodString>;
|
|
760
857
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
761
858
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
859
|
+
timeZoneInfo?: {
|
|
860
|
+
timezone: string;
|
|
861
|
+
src: import("./enums").TimeZoneSource;
|
|
862
|
+
config?: Record<string, unknown> | undefined;
|
|
863
|
+
} | undefined;
|
|
762
864
|
}>;
|
|
763
865
|
_raw: z.ZodUnknown;
|
|
764
866
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -791,6 +893,11 @@ export declare const _SaasUserDto: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
791
893
|
factorType: z.ZodOptional<z.ZodString>;
|
|
792
894
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
793
895
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
896
|
+
timeZoneInfo?: {
|
|
897
|
+
timezone: string;
|
|
898
|
+
src: import("./enums").TimeZoneSource;
|
|
899
|
+
config?: Record<string, unknown> | undefined;
|
|
900
|
+
} | undefined;
|
|
794
901
|
};
|
|
795
902
|
_raw?: unknown;
|
|
796
903
|
}, {
|
|
@@ -823,6 +930,11 @@ export declare const _SaasUserDto: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
823
930
|
factorType: z.ZodOptional<z.ZodString>;
|
|
824
931
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
825
932
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
933
|
+
timeZoneInfo?: {
|
|
934
|
+
timezone: string;
|
|
935
|
+
src: import("./enums").TimeZoneSource;
|
|
936
|
+
config?: Record<string, unknown> | undefined;
|
|
937
|
+
} | undefined;
|
|
826
938
|
};
|
|
827
939
|
_raw?: unknown;
|
|
828
940
|
}>;
|
|
@@ -873,6 +985,11 @@ export declare const _SaasUserDto: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
873
985
|
factorType: z.ZodOptional<z.ZodString>;
|
|
874
986
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
875
987
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
988
|
+
timeZoneInfo?: {
|
|
989
|
+
timezone: string;
|
|
990
|
+
src: import("./enums").TimeZoneSource;
|
|
991
|
+
config?: Record<string, unknown> | undefined;
|
|
992
|
+
} | undefined;
|
|
876
993
|
};
|
|
877
994
|
_raw?: unknown;
|
|
878
995
|
};
|
|
@@ -916,6 +1033,11 @@ export declare const _SaasUserDto: z.ZodObject<z.objectUtil.extendShape<z.object
|
|
|
916
1033
|
factorType: z.ZodOptional<z.ZodString>;
|
|
917
1034
|
secure: z.ZodOptional<z.ZodEnum<["SECURE", "INSECURE", "UNKNOWN", "MISSING"]>>;
|
|
918
1035
|
}, z.ZodUnknown, "strip">[] | undefined;
|
|
1036
|
+
timeZoneInfo?: {
|
|
1037
|
+
timezone: string;
|
|
1038
|
+
src: import("./enums").TimeZoneSource;
|
|
1039
|
+
config?: Record<string, unknown> | undefined;
|
|
1040
|
+
} | undefined;
|
|
919
1041
|
};
|
|
920
1042
|
_raw?: unknown;
|
|
921
1043
|
};
|
|
@@ -4,6 +4,7 @@ exports._SaasUserDto = exports._SaasUserUpsertDto = exports._SaasUserMeta = expo
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const base_dto_1 = require("./base.dto");
|
|
6
6
|
const enums_1 = require("./enums");
|
|
7
|
+
const timeZoneInfo_dto_1 = require("./timeZoneInfo.dto");
|
|
7
8
|
exports._MfaRating = zod_1.z.enum(['SECURE', 'INSECURE', 'UNKNOWN', 'MISSING']);
|
|
8
9
|
// export const _MfaFactorDto = z.record(z.string(), z.string());
|
|
9
10
|
exports._MfaFactorDto = zod_1.z
|
|
@@ -88,6 +89,8 @@ exports._SaasUserMeta = zod_1.z.object({
|
|
|
88
89
|
/** User's type */
|
|
89
90
|
userType: zod_1.z.nativeEnum(enums_1.GlobalUserType),
|
|
90
91
|
}),
|
|
92
|
+
/** User's time zone info */
|
|
93
|
+
timeZoneInfo: zod_1.z.optional(timeZoneInfo_dto_1._TimeZoneInfoDto),
|
|
91
94
|
}),
|
|
92
95
|
_raw: zod_1.z.unknown(),
|
|
93
96
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"saasUsers.dto.js","sourceRoot":"","sources":["../../../src/dto/saasUsers.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAkE;AAClE,mCAAuC;
|
|
1
|
+
{"version":3,"file":"saasUsers.dto.js","sourceRoot":"","sources":["../../../src/dto/saasUsers.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,yCAAkE;AAClE,mCAAuC;AACvC,yDAAoD;AAEvC,QAAA,UAAU,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;AAE/E,iEAAiE;AACpD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to: z.ZodOptional<z.ZodObject<{
|
|
4
|
+
timezone: z.ZodString;
|
|
5
|
+
src: z.ZodNativeEnum<typeof TimeZoneSource>;
|
|
6
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
timezone: string;
|
|
9
|
+
src: TimeZoneSource;
|
|
10
|
+
config?: Record<string, unknown> | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
timezone: string;
|
|
13
|
+
src: TimeZoneSource;
|
|
14
|
+
config?: Record<string, unknown> | undefined;
|
|
15
|
+
}>>;
|
|
16
|
+
export type TimeZoneInfo = z.infer<typeof _TimeZoneInfoDto>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._TimeZoneInfoDto = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("./enums");
|
|
6
|
+
exports._TimeZoneInfoDto = zod_1.z
|
|
7
|
+
.object({
|
|
8
|
+
timezone: zod_1.z.string(),
|
|
9
|
+
src: zod_1.z.nativeEnum(enums_1.TimeZoneSource),
|
|
10
|
+
// TODO: make config field strongly typed in future
|
|
11
|
+
// This filed can be used to add additional fields like, cid, ...
|
|
12
|
+
config: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
13
|
+
})
|
|
14
|
+
.optional();
|
|
15
|
+
//# sourceMappingURL=timeZoneInfo.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeZoneInfo.dto.js","sourceRoot":"","sources":["../../../src/dto/timeZoneInfo.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AACtB,mCAAuC;AAE1B,QAAA,gBAAgB,GAAG,OAAC;KAC9B,MAAM,CAAC;IACN,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,GAAG,EAAE,OAAC,CAAC,UAAU,CAAC,sBAAc,CAAC;IACjC,mDAAmD;IACnD,iEAAiE;IACjE,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CACzC,CAAC;KACD,QAAQ,EAAE,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { ChangeAwareDto, ChangeAwareUpsertDto } from './base.dto';
|
|
3
3
|
import { GlobalUserType } from './enums/globalUser.type';
|
|
4
4
|
import { RiskContributorUpsertDto } from './riskContributors.dto';
|
|
5
|
+
import { TimeZoneInfo } from './timeZoneInfo.dto';
|
|
5
6
|
export declare const _SimpleUserDto: z.ZodObject<{
|
|
6
7
|
id: z.ZodOptional<z.ZodString>;
|
|
7
8
|
score: z.ZodOptional<z.ZodNumber>;
|
|
@@ -65,6 +66,8 @@ export type UserUpsertDto = ChangeAwareUpsertDto & {
|
|
|
65
66
|
userType?: GlobalUserType;
|
|
66
67
|
/** Last time the user was active */
|
|
67
68
|
lastActivityTime?: string;
|
|
69
|
+
/** User's time zone info */
|
|
70
|
+
timeZoneInfo?: TimeZoneInfo;
|
|
68
71
|
};
|
|
69
72
|
export type UserDto = ChangeAwareDto & UserUpsertDto & {
|
|
70
73
|
/** Human readable name of the user's tenant, e.g. tenant.displayName */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.dto.js","sourceRoot":"","sources":["../../../src/dto/users.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;
|
|
1
|
+
{"version":3,"file":"users.dto.js","sourceRoot":"","sources":["../../../src/dto/users.dto.ts"],"names":[],"mappings":";;;AAAA,6BAAsB;AAMT,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,cAAc;IACd,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,sCAAsC;IACtC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC"}
|
package/package.json
CHANGED
package/src/dto/coverage.dto.ts
CHANGED
|
@@ -20,6 +20,7 @@ export const _AssetCoverageSummary = _SummaryAssetDto.merge(
|
|
|
20
20
|
/** @deprecated */
|
|
21
21
|
assetAccounts: z.record(z.unknown()),
|
|
22
22
|
assetAccounts2: z.record(z.array(_AssetAccountSummary)),
|
|
23
|
+
isAssetActive: z.boolean(),
|
|
23
24
|
})
|
|
24
25
|
);
|
|
25
26
|
export type AssetCoverageSummary = z.infer<typeof _AssetCoverageSummary>;
|
package/src/dto/enums/index.ts
CHANGED
package/src/dto/saasUsers.dto.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {z} from 'zod';
|
|
2
2
|
import {_ChangeAwareDto, _ChangeAwareUpsertDto} from './base.dto';
|
|
3
3
|
import {GlobalUserType} from './enums';
|
|
4
|
+
import {_TimeZoneInfoDto} from './timeZoneInfo.dto';
|
|
4
5
|
|
|
5
6
|
export const _MfaRating = z.enum(['SECURE', 'INSECURE', 'UNKNOWN', 'MISSING']);
|
|
6
7
|
export type MfaRating = z.infer<typeof _MfaRating>;
|
|
@@ -87,6 +88,8 @@ export const _SaasUserMeta = z.object({
|
|
|
87
88
|
/** User's type */
|
|
88
89
|
userType: z.nativeEnum(GlobalUserType),
|
|
89
90
|
}),
|
|
91
|
+
/** User's time zone info */
|
|
92
|
+
timeZoneInfo: z.optional(_TimeZoneInfoDto),
|
|
90
93
|
}),
|
|
91
94
|
_raw: z.unknown(),
|
|
92
95
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {z} from 'zod';
|
|
2
|
+
import {TimeZoneSource} from './enums';
|
|
3
|
+
|
|
4
|
+
export const _TimeZoneInfoDto = z
|
|
5
|
+
.object({
|
|
6
|
+
timezone: z.string(),
|
|
7
|
+
src: z.nativeEnum(TimeZoneSource),
|
|
8
|
+
// TODO: make config field strongly typed in future
|
|
9
|
+
// This filed can be used to add additional fields like, cid, ...
|
|
10
|
+
config: z.record(z.unknown()).optional(),
|
|
11
|
+
})
|
|
12
|
+
.optional();
|
|
13
|
+
|
|
14
|
+
export type TimeZoneInfo = z.infer<typeof _TimeZoneInfoDto>;
|
package/src/dto/users.dto.ts
CHANGED
|
@@ -2,6 +2,7 @@ import {z} from 'zod';
|
|
|
2
2
|
import {ChangeAwareDto, ChangeAwareUpsertDto} from './base.dto';
|
|
3
3
|
import {GlobalUserType} from './enums/globalUser.type';
|
|
4
4
|
import {RiskContributorUpsertDto} from './riskContributors.dto';
|
|
5
|
+
import {TimeZoneInfo} from './timeZoneInfo.dto';
|
|
5
6
|
|
|
6
7
|
export const _SimpleUserDto = z.object({
|
|
7
8
|
id: z.string().optional(),
|
|
@@ -48,6 +49,8 @@ export type UserUpsertDto = ChangeAwareUpsertDto & {
|
|
|
48
49
|
userType?: GlobalUserType;
|
|
49
50
|
/** Last time the user was active */
|
|
50
51
|
lastActivityTime?: string;
|
|
52
|
+
/** User's time zone info */
|
|
53
|
+
timeZoneInfo?: TimeZoneInfo;
|
|
51
54
|
};
|
|
52
55
|
|
|
53
56
|
export type UserDto = ChangeAwareDto &
|