@drax/identity-back 0.49.0 → 0.51.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/dist/middleware/apiKeyMiddleware.js +1 -1
- package/package.json +9 -9
- package/src/middleware/apiKeyMiddleware.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/types/factory/UserApiKeyServiceFactory.d.ts +1 -1
- package/types/models/RoleModel.d.ts +2 -2
- package/types/models/TenantModel.d.ts +2 -2
- package/types/models/UserApiKeyModel.d.ts +2 -2
- package/types/models/UserGroupModel.d.ts +2 -2
- package/types/models/UserLoginFailModel.d.ts +2 -2
- package/types/models/UserModel.d.ts +2 -2
- package/types/models/UserSessionModel.d.ts +2 -2
- package/types/schemas/PasswordSchema.d.ts +2 -2
- package/types/schemas/RegisterSchema.d.ts +2 -2
- package/types/schemas/RoleSchema.d.ts +17 -21
- package/types/schemas/RoleSchema.d.ts.map +1 -1
- package/types/schemas/TenantSchema.d.ts +7 -7
- package/types/schemas/TokenPayloadSchema.d.ts +2 -2
- package/types/schemas/UserApiKeySchema.d.ts +5 -5
- package/types/schemas/UserLoginFailSchema.d.ts +4 -4
- package/types/schemas/UserSchema.d.ts +59 -62
- package/types/schemas/UserSchema.d.ts.map +1 -1
- package/types/schemas/UserSessionSchema.d.ts +18 -19
- package/types/schemas/UserSessionSchema.d.ts.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import UserApiKeyService from "../services/UserApiKeyService.js";
|
|
2
2
|
declare const UserApiKeyServiceFactory: (verbose?: boolean) => UserApiKeyService;
|
|
3
3
|
export default UserApiKeyServiceFactory;
|
|
4
|
-
//# sourceMappingURL=
|
|
4
|
+
//# sourceMappingURL=UserApiKeyServiceFactory.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { mongoose } from '@drax/common-back';
|
|
2
2
|
import { IRole } from '@drax/identity-share';
|
|
3
|
-
declare const RoleMongoSchema: mongoose.Schema<IRole, mongoose.Model<IRole, any, any, any, mongoose.Document<unknown, any, IRole> & IRole & Required<{
|
|
3
|
+
declare const RoleMongoSchema: mongoose.Schema<IRole, mongoose.Model<IRole, any, any, any, mongoose.Document<unknown, any, IRole, any, {}> & IRole & Required<{
|
|
4
4
|
_id: string;
|
|
5
5
|
}> & {
|
|
6
6
|
__v: number;
|
|
7
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IRole, mongoose.Document<unknown, {}, mongoose.FlatRecord<IRole>> & mongoose.FlatRecord<IRole> & Required<{
|
|
7
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IRole, mongoose.Document<unknown, {}, mongoose.FlatRecord<IRole>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<IRole> & Required<{
|
|
8
8
|
_id: string;
|
|
9
9
|
}> & {
|
|
10
10
|
__v: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { mongoose } from '@drax/common-back';
|
|
2
2
|
import { ITenant } from '@drax/identity-share';
|
|
3
|
-
declare const TenantMongoSchema: mongoose.Schema<ITenant, mongoose.Model<ITenant, any, any, any, mongoose.Document<unknown, any, ITenant> & ITenant & Required<{
|
|
3
|
+
declare const TenantMongoSchema: mongoose.Schema<ITenant, mongoose.Model<ITenant, any, any, any, mongoose.Document<unknown, any, ITenant, any, {}> & ITenant & Required<{
|
|
4
4
|
_id: string;
|
|
5
5
|
}> & {
|
|
6
6
|
__v: number;
|
|
7
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ITenant, mongoose.Document<unknown, {}, mongoose.FlatRecord<ITenant>> & mongoose.FlatRecord<ITenant> & Required<{
|
|
7
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ITenant, mongoose.Document<unknown, {}, mongoose.FlatRecord<ITenant>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<ITenant> & Required<{
|
|
8
8
|
_id: string;
|
|
9
9
|
}> & {
|
|
10
10
|
__v: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { mongoose } from '@drax/common-back';
|
|
2
2
|
import { IUserApiKey } from "@drax/identity-share";
|
|
3
|
-
declare const UserApiKeyMongoSchema: mongoose.Schema<IUserApiKey, mongoose.Model<IUserApiKey, any, any, any, mongoose.Document<unknown, any, IUserApiKey> & IUserApiKey & Required<{
|
|
3
|
+
declare const UserApiKeyMongoSchema: mongoose.Schema<IUserApiKey, mongoose.Model<IUserApiKey, any, any, any, mongoose.Document<unknown, any, IUserApiKey, any, {}> & IUserApiKey & Required<{
|
|
4
4
|
_id: string;
|
|
5
5
|
}> & {
|
|
6
6
|
__v: number;
|
|
7
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IUserApiKey, mongoose.Document<unknown, {}, mongoose.FlatRecord<IUserApiKey>> & mongoose.FlatRecord<IUserApiKey> & Required<{
|
|
7
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IUserApiKey, mongoose.Document<unknown, {}, mongoose.FlatRecord<IUserApiKey>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<IUserApiKey> & Required<{
|
|
8
8
|
_id: string;
|
|
9
9
|
}> & {
|
|
10
10
|
__v: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { mongoose } from '@drax/common-back';
|
|
2
2
|
import { IUserGroup } from "@drax/identity-share";
|
|
3
|
-
declare const UserGroupMongoSchema: mongoose.Schema<IUserGroup, mongoose.Model<IUserGroup, any, any, any, mongoose.Document<unknown, any, IUserGroup> & IUserGroup & {
|
|
3
|
+
declare const UserGroupMongoSchema: mongoose.Schema<IUserGroup, mongoose.Model<IUserGroup, any, any, any, mongoose.Document<unknown, any, IUserGroup, any, {}> & IUserGroup & {
|
|
4
4
|
_id: mongoose.Types.ObjectId;
|
|
5
5
|
} & {
|
|
6
6
|
__v: number;
|
|
7
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IUserGroup, mongoose.Document<unknown, {}, mongoose.FlatRecord<IUserGroup>> & mongoose.FlatRecord<IUserGroup> & {
|
|
7
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IUserGroup, mongoose.Document<unknown, {}, mongoose.FlatRecord<IUserGroup>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<IUserGroup> & {
|
|
8
8
|
_id: mongoose.Types.ObjectId;
|
|
9
9
|
} & {
|
|
10
10
|
__v: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { mongoose } from '@drax/common-back';
|
|
2
2
|
import type { IUserLoginFail } from '@drax/identity-share';
|
|
3
|
-
declare const UserLoginFailMongoSchema: mongoose.Schema<IUserLoginFail, mongoose.Model<IUserLoginFail, any, any, any, mongoose.Document<unknown, any, IUserLoginFail> & IUserLoginFail & Required<{
|
|
3
|
+
declare const UserLoginFailMongoSchema: mongoose.Schema<IUserLoginFail, mongoose.Model<IUserLoginFail, any, any, any, mongoose.Document<unknown, any, IUserLoginFail, any, {}> & IUserLoginFail & Required<{
|
|
4
4
|
_id: string;
|
|
5
5
|
}> & {
|
|
6
6
|
__v: number;
|
|
7
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IUserLoginFail, mongoose.Document<unknown, {}, mongoose.FlatRecord<IUserLoginFail>> & mongoose.FlatRecord<IUserLoginFail> & Required<{
|
|
7
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IUserLoginFail, mongoose.Document<unknown, {}, mongoose.FlatRecord<IUserLoginFail>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<IUserLoginFail> & Required<{
|
|
8
8
|
_id: string;
|
|
9
9
|
}> & {
|
|
10
10
|
__v: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { mongoose } from '@drax/common-back';
|
|
2
2
|
import { IUser } from "@drax/identity-share";
|
|
3
|
-
declare const UserMongoSchema: mongoose.Schema<IUser, mongoose.Model<IUser, any, any, any, mongoose.Document<unknown, any, IUser> & IUser & Required<{
|
|
3
|
+
declare const UserMongoSchema: mongoose.Schema<IUser, mongoose.Model<IUser, any, any, any, mongoose.Document<unknown, any, IUser, any, {}> & IUser & Required<{
|
|
4
4
|
_id: string;
|
|
5
5
|
}> & {
|
|
6
6
|
__v: number;
|
|
7
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IUser, mongoose.Document<unknown, {}, mongoose.FlatRecord<IUser>> & mongoose.FlatRecord<IUser> & Required<{
|
|
7
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IUser, mongoose.Document<unknown, {}, mongoose.FlatRecord<IUser>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<IUser> & Required<{
|
|
8
8
|
_id: string;
|
|
9
9
|
}> & {
|
|
10
10
|
__v: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { mongoose } from '@drax/common-back';
|
|
2
2
|
import type { IUserSession } from '@drax/identity-share';
|
|
3
|
-
declare const UserSessionMongoSchema: mongoose.Schema<IUserSession, mongoose.Model<IUserSession, any, any, any, mongoose.Document<unknown, any, IUserSession> & IUserSession & Required<{
|
|
3
|
+
declare const UserSessionMongoSchema: mongoose.Schema<IUserSession, mongoose.Model<IUserSession, any, any, any, mongoose.Document<unknown, any, IUserSession, any, {}> & IUserSession & Required<{
|
|
4
4
|
_id: string;
|
|
5
5
|
}> & {
|
|
6
6
|
__v: number;
|
|
7
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IUserSession, mongoose.Document<unknown, {}, mongoose.FlatRecord<IUserSession>> & mongoose.FlatRecord<IUserSession> & Required<{
|
|
7
|
+
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IUserSession, mongoose.Document<unknown, {}, mongoose.FlatRecord<IUserSession>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<IUserSession> & Required<{
|
|
8
8
|
_id: string;
|
|
9
9
|
}> & {
|
|
10
10
|
__v: number;
|
|
@@ -3,11 +3,11 @@ declare const MyPasswordBodyRequestSchema: z.ZodObject<{
|
|
|
3
3
|
currentPassword: z.ZodString;
|
|
4
4
|
newPassword: z.ZodString;
|
|
5
5
|
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
newPassword?: string;
|
|
7
6
|
currentPassword?: string;
|
|
8
|
-
}, {
|
|
9
7
|
newPassword?: string;
|
|
8
|
+
}, {
|
|
10
9
|
currentPassword?: string;
|
|
10
|
+
newPassword?: string;
|
|
11
11
|
}>;
|
|
12
12
|
declare const PasswordBodyRequestSchema: z.ZodObject<{
|
|
13
13
|
newPassword: z.ZodString;
|
|
@@ -9,14 +9,14 @@ declare const RegisterBodyRequestSchema: z.ZodObject<{
|
|
|
9
9
|
name?: string;
|
|
10
10
|
username?: string;
|
|
11
11
|
email?: string;
|
|
12
|
-
phone?: string;
|
|
13
12
|
password?: string;
|
|
13
|
+
phone?: string;
|
|
14
14
|
}, {
|
|
15
15
|
name?: string;
|
|
16
16
|
username?: string;
|
|
17
17
|
email?: string;
|
|
18
|
-
phone?: string;
|
|
19
18
|
password?: string;
|
|
19
|
+
phone?: string;
|
|
20
20
|
}>;
|
|
21
21
|
declare const RegisterBodyResponseSchema: z.ZodObject<{
|
|
22
22
|
success: z.ZodBoolean;
|
|
@@ -6,24 +6,20 @@ declare const RoleBaseSchema: import("zod").ZodObject<{
|
|
|
6
6
|
childRoles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
7
7
|
}, "strip", import("zod").ZodTypeAny, {
|
|
8
8
|
name?: string;
|
|
9
|
+
permissions?: string[];
|
|
9
10
|
icon?: string;
|
|
10
11
|
color?: string;
|
|
11
|
-
permissions?: string[];
|
|
12
12
|
childRoles?: string[];
|
|
13
13
|
}, {
|
|
14
14
|
name?: string;
|
|
15
|
+
permissions?: string[];
|
|
15
16
|
icon?: string;
|
|
16
17
|
color?: string;
|
|
17
|
-
permissions?: string[];
|
|
18
18
|
childRoles?: string[];
|
|
19
19
|
}>;
|
|
20
|
-
declare const RoleSchema: import("zod").ZodObject<
|
|
20
|
+
declare const RoleSchema: import("zod").ZodObject<{
|
|
21
21
|
name: import("zod").ZodString;
|
|
22
|
-
|
|
23
|
-
icon: import("zod").ZodOptional<import("zod").ZodString>;
|
|
24
|
-
color: import("zod").ZodOptional<import("zod").ZodString>;
|
|
25
|
-
childRoles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
26
|
-
}, {
|
|
22
|
+
} & {
|
|
27
23
|
_id: import("zod").ZodString;
|
|
28
24
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
25
|
permissions: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
@@ -35,46 +31,46 @@ declare const RoleSchema: import("zod").ZodObject<import("zod").objectUtil.exten
|
|
|
35
31
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
32
|
name: import("zod").ZodString;
|
|
37
33
|
}, "strip", import("zod").ZodTypeAny, {
|
|
38
|
-
_id?: string;
|
|
39
34
|
id?: string;
|
|
40
35
|
name?: string;
|
|
41
|
-
}, {
|
|
42
36
|
_id?: string;
|
|
37
|
+
}, {
|
|
43
38
|
id?: string;
|
|
44
39
|
name?: string;
|
|
40
|
+
_id?: string;
|
|
45
41
|
}>, "many">>;
|
|
46
42
|
createdAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
47
43
|
updatedAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
48
|
-
}
|
|
49
|
-
_id?: string;
|
|
44
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
50
45
|
id?: string;
|
|
51
46
|
name?: string;
|
|
47
|
+
_id?: string;
|
|
48
|
+
createdAt?: Date;
|
|
49
|
+
updatedAt?: Date;
|
|
50
|
+
permissions?: string[];
|
|
52
51
|
icon?: string;
|
|
53
52
|
color?: string;
|
|
54
|
-
permissions?: string[];
|
|
55
53
|
childRoles?: {
|
|
56
|
-
_id?: string;
|
|
57
54
|
id?: string;
|
|
58
55
|
name?: string;
|
|
56
|
+
_id?: string;
|
|
59
57
|
}[];
|
|
60
58
|
readonly?: boolean;
|
|
61
|
-
createdAt?: Date;
|
|
62
|
-
updatedAt?: Date;
|
|
63
59
|
}, {
|
|
64
|
-
_id?: string;
|
|
65
60
|
id?: string;
|
|
66
61
|
name?: string;
|
|
62
|
+
_id?: string;
|
|
63
|
+
createdAt?: Date;
|
|
64
|
+
updatedAt?: Date;
|
|
65
|
+
permissions?: string[];
|
|
67
66
|
icon?: string;
|
|
68
67
|
color?: string;
|
|
69
|
-
permissions?: string[];
|
|
70
68
|
childRoles?: {
|
|
71
|
-
_id?: string;
|
|
72
69
|
id?: string;
|
|
73
70
|
name?: string;
|
|
71
|
+
_id?: string;
|
|
74
72
|
}[];
|
|
75
73
|
readonly?: boolean;
|
|
76
|
-
createdAt?: Date;
|
|
77
|
-
updatedAt?: Date;
|
|
78
74
|
}>;
|
|
79
75
|
export default RoleSchema;
|
|
80
76
|
export { RoleSchema, RoleBaseSchema };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoleSchema.d.ts","sourceRoot":"","sources":["../../src/schemas/RoleSchema.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;EAQlB,CAAA;AAEF,QAAA,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"RoleSchema.d.ts","sourceRoot":"","sources":["../../src/schemas/RoleSchema.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;EAQlB,CAAA;AAEF,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcd,CAAA;AAIF,eAAe,UAAU,CAAA;AAEzB,OAAO,EAAC,UAAU,EAAE,cAAc,EAAC,CAAA"}
|
|
@@ -5,26 +5,26 @@ declare const TenantBaseSchema: import("zod").ZodObject<{
|
|
|
5
5
|
}, {
|
|
6
6
|
name?: string;
|
|
7
7
|
}>;
|
|
8
|
-
declare const TenantSchema: import("zod").ZodObject<
|
|
8
|
+
declare const TenantSchema: import("zod").ZodObject<{
|
|
9
9
|
name: import("zod").ZodString;
|
|
10
|
-
}
|
|
10
|
+
} & {
|
|
11
11
|
_id: import("zod").ZodString;
|
|
12
12
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
13
|
custom: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
14
14
|
createdAt: import("zod").ZodDate;
|
|
15
15
|
updatedAt: import("zod").ZodDate;
|
|
16
|
-
}
|
|
17
|
-
name?: string;
|
|
18
|
-
_id?: string;
|
|
16
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
19
17
|
id?: string;
|
|
18
|
+
name?: string;
|
|
20
19
|
custom?: Record<string, any>;
|
|
20
|
+
_id?: string;
|
|
21
21
|
createdAt?: Date;
|
|
22
22
|
updatedAt?: Date;
|
|
23
23
|
}, {
|
|
24
|
-
name?: string;
|
|
25
|
-
_id?: string;
|
|
26
24
|
id?: string;
|
|
25
|
+
name?: string;
|
|
27
26
|
custom?: Record<string, any>;
|
|
27
|
+
_id?: string;
|
|
28
28
|
createdAt?: Date;
|
|
29
29
|
updatedAt?: Date;
|
|
30
30
|
}>;
|
|
@@ -11,8 +11,8 @@ declare const TokenPayloadSchema: z.ZodObject<{
|
|
|
11
11
|
apiKeyName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
13
|
id?: string;
|
|
14
|
-
username?: string;
|
|
15
14
|
session?: string;
|
|
15
|
+
username?: string;
|
|
16
16
|
roleId?: string;
|
|
17
17
|
roleName?: string;
|
|
18
18
|
tenantId?: string;
|
|
@@ -21,8 +21,8 @@ declare const TokenPayloadSchema: z.ZodObject<{
|
|
|
21
21
|
apiKeyName?: string;
|
|
22
22
|
}, {
|
|
23
23
|
id?: string;
|
|
24
|
-
username?: string;
|
|
25
24
|
session?: string;
|
|
25
|
+
username?: string;
|
|
26
26
|
roleId?: string;
|
|
27
27
|
roleName?: string;
|
|
28
28
|
tenantId?: string;
|
|
@@ -11,27 +11,27 @@ declare const UserApiKeyBaseSchema: import("zod").ZodObject<{
|
|
|
11
11
|
ipv4?: string[];
|
|
12
12
|
ipv6?: string[];
|
|
13
13
|
}>;
|
|
14
|
-
declare const UserApiKeySchema: import("zod").ZodObject<
|
|
14
|
+
declare const UserApiKeySchema: import("zod").ZodObject<{
|
|
15
15
|
name: import("zod").ZodString;
|
|
16
16
|
ipv4: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
17
17
|
ipv6: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
18
|
-
}
|
|
18
|
+
} & {
|
|
19
19
|
_id: import("zod").ZodString;
|
|
20
20
|
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
21
21
|
createdBy: import("zod").ZodString;
|
|
22
|
-
}
|
|
22
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
23
|
+
id?: string;
|
|
23
24
|
name?: string;
|
|
24
25
|
ipv4?: string[];
|
|
25
26
|
ipv6?: string[];
|
|
26
27
|
_id?: string;
|
|
27
|
-
id?: string;
|
|
28
28
|
createdBy?: string;
|
|
29
29
|
}, {
|
|
30
|
+
id?: string;
|
|
30
31
|
name?: string;
|
|
31
32
|
ipv4?: string[];
|
|
32
33
|
ipv6?: string[];
|
|
33
34
|
_id?: string;
|
|
34
|
-
id?: string;
|
|
35
35
|
createdBy?: string;
|
|
36
36
|
}>;
|
|
37
37
|
export default UserApiKeyBaseSchema;
|
|
@@ -12,14 +12,14 @@ declare const UserLoginFailBaseSchema: z.ZodObject<{
|
|
|
12
12
|
ip?: string;
|
|
13
13
|
username?: string;
|
|
14
14
|
}>;
|
|
15
|
-
declare const UserLoginFailSchema: z.ZodObject<
|
|
15
|
+
declare const UserLoginFailSchema: z.ZodObject<{
|
|
16
16
|
username: z.ZodString;
|
|
17
17
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
18
18
|
ip: z.ZodOptional<z.ZodString>;
|
|
19
|
-
}
|
|
19
|
+
} & {
|
|
20
20
|
_id: z.ZodString;
|
|
21
21
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
22
|
-
}
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
userAgent?: string;
|
|
24
24
|
ip?: string;
|
|
25
25
|
username?: string;
|
|
@@ -34,4 +34,4 @@ declare const UserLoginFailSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
34
34
|
}>;
|
|
35
35
|
export default UserLoginFailSchema;
|
|
36
36
|
export { UserLoginFailSchema, UserLoginFailBaseSchema };
|
|
37
|
-
//# sourceMappingURL=
|
|
37
|
+
//# sourceMappingURL=UserLoginFailSchema.d.ts.map
|
|
@@ -7,23 +7,23 @@ declare const UserBaseSchema: import("zod").ZodObject<{
|
|
|
7
7
|
role: import("zod").ZodString;
|
|
8
8
|
tenant: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
9
9
|
}, "strip", import("zod").ZodTypeAny, {
|
|
10
|
+
tenant?: string;
|
|
10
11
|
name?: string;
|
|
11
12
|
username?: string;
|
|
13
|
+
role?: string;
|
|
12
14
|
email?: string;
|
|
13
|
-
phone?: string;
|
|
14
15
|
active?: boolean;
|
|
15
|
-
|
|
16
|
-
tenant?: string;
|
|
16
|
+
phone?: string;
|
|
17
17
|
}, {
|
|
18
|
+
tenant?: string;
|
|
18
19
|
name?: string;
|
|
19
20
|
username?: string;
|
|
21
|
+
role?: string;
|
|
20
22
|
email?: string;
|
|
21
|
-
phone?: string;
|
|
22
23
|
active?: boolean;
|
|
23
|
-
|
|
24
|
-
tenant?: string;
|
|
24
|
+
phone?: string;
|
|
25
25
|
}>;
|
|
26
|
-
declare const UserCreateSchema: import("zod").ZodObject<
|
|
26
|
+
declare const UserCreateSchema: import("zod").ZodObject<{
|
|
27
27
|
name: import("zod").ZodString;
|
|
28
28
|
username: import("zod").ZodString;
|
|
29
29
|
email: import("zod").ZodString;
|
|
@@ -31,28 +31,28 @@ declare const UserCreateSchema: import("zod").ZodObject<import("zod").objectUtil
|
|
|
31
31
|
active: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
32
32
|
role: import("zod").ZodString;
|
|
33
33
|
tenant: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
34
|
-
}
|
|
34
|
+
} & {
|
|
35
35
|
password: import("zod").ZodString;
|
|
36
|
-
}
|
|
36
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
37
|
+
tenant?: string;
|
|
37
38
|
name?: string;
|
|
38
39
|
username?: string;
|
|
39
|
-
email?: string;
|
|
40
|
-
phone?: string;
|
|
41
|
-
active?: boolean;
|
|
42
40
|
role?: string;
|
|
43
|
-
|
|
41
|
+
email?: string;
|
|
44
42
|
password?: string;
|
|
43
|
+
active?: boolean;
|
|
44
|
+
phone?: string;
|
|
45
45
|
}, {
|
|
46
|
+
tenant?: string;
|
|
46
47
|
name?: string;
|
|
47
48
|
username?: string;
|
|
48
|
-
email?: string;
|
|
49
|
-
phone?: string;
|
|
50
|
-
active?: boolean;
|
|
51
49
|
role?: string;
|
|
52
|
-
|
|
50
|
+
email?: string;
|
|
53
51
|
password?: string;
|
|
52
|
+
active?: boolean;
|
|
53
|
+
phone?: string;
|
|
54
54
|
}>;
|
|
55
|
-
declare const UserUpdateSchema: import("zod").ZodObject<
|
|
55
|
+
declare const UserUpdateSchema: import("zod").ZodObject<{
|
|
56
56
|
name: import("zod").ZodString;
|
|
57
57
|
username: import("zod").ZodString;
|
|
58
58
|
email: import("zod").ZodString;
|
|
@@ -60,32 +60,29 @@ declare const UserUpdateSchema: import("zod").ZodObject<import("zod").objectUtil
|
|
|
60
60
|
active: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
61
61
|
role: import("zod").ZodString;
|
|
62
62
|
tenant: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
63
|
-
},
|
|
63
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
64
|
+
tenant?: string;
|
|
64
65
|
name?: string;
|
|
65
66
|
username?: string;
|
|
67
|
+
role?: string;
|
|
66
68
|
email?: string;
|
|
67
|
-
phone?: string;
|
|
68
69
|
active?: boolean;
|
|
69
|
-
|
|
70
|
-
tenant?: string;
|
|
70
|
+
phone?: string;
|
|
71
71
|
}, {
|
|
72
|
+
tenant?: string;
|
|
72
73
|
name?: string;
|
|
73
74
|
username?: string;
|
|
75
|
+
role?: string;
|
|
74
76
|
email?: string;
|
|
75
|
-
phone?: string;
|
|
76
77
|
active?: boolean;
|
|
77
|
-
|
|
78
|
-
tenant?: string;
|
|
78
|
+
phone?: string;
|
|
79
79
|
}>;
|
|
80
|
-
declare const UserSchema: import("zod").ZodObject<
|
|
80
|
+
declare const UserSchema: import("zod").ZodObject<{
|
|
81
81
|
name: import("zod").ZodString;
|
|
82
82
|
username: import("zod").ZodString;
|
|
83
83
|
email: import("zod").ZodString;
|
|
84
84
|
phone: import("zod").ZodOptional<import("zod").ZodString>;
|
|
85
|
-
|
|
86
|
-
role: import("zod").ZodString;
|
|
87
|
-
tenant: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
88
|
-
}, {
|
|
85
|
+
} & {
|
|
89
86
|
_id: import("zod").ZodString;
|
|
90
87
|
role: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
91
88
|
_id: import("zod").ZodString;
|
|
@@ -105,23 +102,23 @@ declare const UserSchema: import("zod").ZodObject<import("zod").objectUtil.exten
|
|
|
105
102
|
_id?: string;
|
|
106
103
|
}>, "many">>;
|
|
107
104
|
}, "strip", import("zod").ZodTypeAny, {
|
|
105
|
+
id?: string;
|
|
108
106
|
name?: string;
|
|
109
107
|
_id?: string;
|
|
110
|
-
|
|
108
|
+
permissions?: string[];
|
|
111
109
|
icon?: string;
|
|
112
110
|
color?: string;
|
|
113
|
-
permissions?: string[];
|
|
114
111
|
childRoles?: {
|
|
115
112
|
name?: string;
|
|
116
113
|
_id?: string;
|
|
117
114
|
}[];
|
|
118
115
|
}, {
|
|
116
|
+
id?: string;
|
|
119
117
|
name?: string;
|
|
120
118
|
_id?: string;
|
|
121
|
-
|
|
119
|
+
permissions?: string[];
|
|
122
120
|
icon?: string;
|
|
123
121
|
color?: string;
|
|
124
|
-
permissions?: string[];
|
|
125
122
|
childRoles?: {
|
|
126
123
|
name?: string;
|
|
127
124
|
_id?: string;
|
|
@@ -134,72 +131,72 @@ declare const UserSchema: import("zod").ZodObject<import("zod").objectUtil.exten
|
|
|
134
131
|
name: import("zod").ZodString;
|
|
135
132
|
custom: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
136
133
|
}, "strip", import("zod").ZodTypeAny, {
|
|
137
|
-
name?: string;
|
|
138
|
-
_id?: string;
|
|
139
134
|
id?: string;
|
|
140
|
-
custom?: Record<string, any>;
|
|
141
|
-
}, {
|
|
142
135
|
name?: string;
|
|
136
|
+
custom?: Record<string, any>;
|
|
143
137
|
_id?: string;
|
|
138
|
+
}, {
|
|
144
139
|
id?: string;
|
|
140
|
+
name?: string;
|
|
145
141
|
custom?: Record<string, any>;
|
|
142
|
+
_id?: string;
|
|
146
143
|
}>>>;
|
|
147
144
|
createdAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
148
145
|
avatar: import("zod").ZodOptional<import("zod").ZodString>;
|
|
149
|
-
}
|
|
146
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
147
|
+
tenant?: {
|
|
148
|
+
id?: string;
|
|
149
|
+
name?: string;
|
|
150
|
+
custom?: Record<string, any>;
|
|
151
|
+
_id?: string;
|
|
152
|
+
};
|
|
150
153
|
name?: string;
|
|
154
|
+
avatar?: string;
|
|
151
155
|
username?: string;
|
|
152
|
-
email?: string;
|
|
153
|
-
phone?: string;
|
|
154
|
-
active?: boolean;
|
|
155
156
|
role?: {
|
|
157
|
+
id?: string;
|
|
156
158
|
name?: string;
|
|
157
159
|
_id?: string;
|
|
158
|
-
|
|
160
|
+
permissions?: string[];
|
|
159
161
|
icon?: string;
|
|
160
162
|
color?: string;
|
|
161
|
-
permissions?: string[];
|
|
162
163
|
childRoles?: {
|
|
163
164
|
name?: string;
|
|
164
165
|
_id?: string;
|
|
165
166
|
}[];
|
|
166
167
|
};
|
|
168
|
+
email?: string;
|
|
169
|
+
_id?: string;
|
|
170
|
+
createdAt?: Date;
|
|
171
|
+
active?: boolean;
|
|
172
|
+
phone?: string;
|
|
173
|
+
}, {
|
|
167
174
|
tenant?: {
|
|
168
|
-
name?: string;
|
|
169
|
-
_id?: string;
|
|
170
175
|
id?: string;
|
|
176
|
+
name?: string;
|
|
171
177
|
custom?: Record<string, any>;
|
|
178
|
+
_id?: string;
|
|
172
179
|
};
|
|
173
|
-
_id?: string;
|
|
174
|
-
createdAt?: Date;
|
|
175
|
-
avatar?: string;
|
|
176
|
-
}, {
|
|
177
180
|
name?: string;
|
|
181
|
+
avatar?: string;
|
|
178
182
|
username?: string;
|
|
179
|
-
email?: string;
|
|
180
|
-
phone?: string;
|
|
181
|
-
active?: boolean;
|
|
182
183
|
role?: {
|
|
184
|
+
id?: string;
|
|
183
185
|
name?: string;
|
|
184
186
|
_id?: string;
|
|
185
|
-
|
|
187
|
+
permissions?: string[];
|
|
186
188
|
icon?: string;
|
|
187
189
|
color?: string;
|
|
188
|
-
permissions?: string[];
|
|
189
190
|
childRoles?: {
|
|
190
191
|
name?: string;
|
|
191
192
|
_id?: string;
|
|
192
193
|
}[];
|
|
193
194
|
};
|
|
194
|
-
|
|
195
|
-
name?: string;
|
|
196
|
-
_id?: string;
|
|
197
|
-
id?: string;
|
|
198
|
-
custom?: Record<string, any>;
|
|
199
|
-
};
|
|
195
|
+
email?: string;
|
|
200
196
|
_id?: string;
|
|
201
197
|
createdAt?: Date;
|
|
202
|
-
|
|
198
|
+
active?: boolean;
|
|
199
|
+
phone?: string;
|
|
203
200
|
}>;
|
|
204
201
|
export { UserBaseSchema, UserSchema, UserCreateSchema, UserUpdateSchema, };
|
|
205
202
|
//# sourceMappingURL=UserSchema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserSchema.d.ts","sourceRoot":"","sources":["../../src/schemas/UserSchema.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;EAclB,CAAA;AAEF,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKpB,CAAC;AAGH,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAC;AAEnD,QAAA,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"UserSchema.d.ts","sourceRoot":"","sources":["../../src/schemas/UserSchema.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;EAclB,CAAA;AAEF,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKpB,CAAC;AAGH,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAC;AAEnD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBV,CAAC;AAGP,OAAO,EACH,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,gBAAgB,GACnB,CAAA"}
|
|
@@ -5,55 +5,54 @@ declare const UserSessionBaseSchema: z.ZodObject<{
|
|
|
5
5
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
6
6
|
ip: z.ZodOptional<z.ZodString>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
|
|
8
|
+
userAgent?: string;
|
|
9
9
|
ip?: string;
|
|
10
10
|
user?: string;
|
|
11
|
-
userAgent?: string;
|
|
12
|
-
}, {
|
|
13
11
|
uuid?: string;
|
|
12
|
+
}, {
|
|
13
|
+
userAgent?: string;
|
|
14
14
|
ip?: string;
|
|
15
15
|
user?: string;
|
|
16
|
-
|
|
16
|
+
uuid?: string;
|
|
17
17
|
}>;
|
|
18
|
-
declare const UserSessionSchema: z.ZodObject<
|
|
18
|
+
declare const UserSessionSchema: z.ZodObject<{
|
|
19
19
|
uuid: z.ZodString;
|
|
20
|
-
user: z.ZodString;
|
|
21
20
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
22
21
|
ip: z.ZodOptional<z.ZodString>;
|
|
23
|
-
}
|
|
22
|
+
} & {
|
|
24
23
|
_id: z.ZodString;
|
|
25
24
|
user: z.ZodObject<{
|
|
26
25
|
_id: z.ZodString;
|
|
27
26
|
username: z.ZodString;
|
|
28
27
|
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
_id?: string;
|
|
30
28
|
username?: string;
|
|
31
|
-
}, {
|
|
32
29
|
_id?: string;
|
|
30
|
+
}, {
|
|
33
31
|
username?: string;
|
|
32
|
+
_id?: string;
|
|
34
33
|
}>;
|
|
35
34
|
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
createdAt?: Date;
|
|
39
|
-
uuid?: string;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
userAgent?: string;
|
|
40
37
|
ip?: string;
|
|
41
38
|
user?: {
|
|
42
|
-
_id?: string;
|
|
43
39
|
username?: string;
|
|
40
|
+
_id?: string;
|
|
44
41
|
};
|
|
45
|
-
userAgent?: string;
|
|
46
|
-
}, {
|
|
47
42
|
_id?: string;
|
|
48
43
|
createdAt?: Date;
|
|
49
44
|
uuid?: string;
|
|
45
|
+
}, {
|
|
46
|
+
userAgent?: string;
|
|
50
47
|
ip?: string;
|
|
51
48
|
user?: {
|
|
52
|
-
_id?: string;
|
|
53
49
|
username?: string;
|
|
50
|
+
_id?: string;
|
|
54
51
|
};
|
|
55
|
-
|
|
52
|
+
_id?: string;
|
|
53
|
+
createdAt?: Date;
|
|
54
|
+
uuid?: string;
|
|
56
55
|
}>;
|
|
57
56
|
export default UserSessionSchema;
|
|
58
57
|
export { UserSessionSchema, UserSessionBaseSchema };
|
|
59
|
-
//# sourceMappingURL=
|
|
58
|
+
//# sourceMappingURL=UserSessionSchema.d.ts.map
|