@punks/backend-entity-manager 0.0.64 → 0.0.67
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/cjs/index.js +21 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/queries.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/__test__/server/app/auth/user.service.d.ts +2 -2
- package/dist/cjs/types/platforms/nest/dto/facets.d.ts +3 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/abstractions/index.d.ts +9 -9
- package/dist/cjs/types/platforms/nest/extensions/authentication/converters/index.d.ts +2 -2
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-login/index.d.ts +2 -2
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-login/types.d.ts +2 -2
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-password-reset-request/index.d.ts +2 -2
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-password-reset-request/types.d.ts +2 -2
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-register/index.d.ts +2 -2
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-register/types.d.ts +2 -2
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-token-verify/index.d.ts +2 -2
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-token-verify/types.d.ts +3 -3
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-verify-request/index.d.ts +2 -2
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-verify-request/types.d.ts +2 -2
- package/dist/cjs/types/platforms/nest/extensions/authentication/resolver/index.d.ts +3 -3
- package/dist/cjs/types/platforms/nest/extensions/authentication/services/authentication/index.d.ts +7 -7
- package/dist/cjs/types/platforms/nest/extensions/multi-tenancy/abstractions/index.d.ts +1 -39
- package/dist/cjs/types/platforms/nest/extensions/multi-tenancy/abstractions/models.d.ts +49 -0
- package/dist/cjs/types/platforms/nest/extensions/multi-tenancy/index.d.ts +1 -0
- package/dist/esm/index.js +21 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/queries.d.ts +1 -0
- package/dist/esm/types/platforms/nest/__test__/server/app/auth/user.service.d.ts +2 -2
- package/dist/esm/types/platforms/nest/dto/facets.d.ts +3 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/abstractions/index.d.ts +9 -9
- package/dist/esm/types/platforms/nest/extensions/authentication/converters/index.d.ts +2 -2
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-login/index.d.ts +2 -2
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-login/types.d.ts +2 -2
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-password-reset-request/index.d.ts +2 -2
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-password-reset-request/types.d.ts +2 -2
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-register/index.d.ts +2 -2
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-register/types.d.ts +2 -2
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-token-verify/index.d.ts +2 -2
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-token-verify/types.d.ts +3 -3
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-verify-request/index.d.ts +2 -2
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-verify-request/types.d.ts +2 -2
- package/dist/esm/types/platforms/nest/extensions/authentication/resolver/index.d.ts +3 -3
- package/dist/esm/types/platforms/nest/extensions/authentication/services/authentication/index.d.ts +7 -7
- package/dist/esm/types/platforms/nest/extensions/multi-tenancy/abstractions/index.d.ts +1 -39
- package/dist/esm/types/platforms/nest/extensions/multi-tenancy/abstractions/models.d.ts +49 -0
- package/dist/esm/types/platforms/nest/extensions/multi-tenancy/index.d.ts +1 -0
- package/dist/index.d.ts +83 -29
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IAuthUserService } from "../../../../extensions";
|
|
2
2
|
import { UserEntity } from "../../database/core/entities/user.entity";
|
|
3
3
|
import { UserEntityManager } from "../../entities/users/user.manager";
|
|
4
4
|
import { AppUserContext } from "../../infrastructure/authentication";
|
|
5
5
|
import { UserRegistrationData } from "./auth.dto";
|
|
6
6
|
import { OrganizationEntityManager } from "../../entities/organizations/organization.manager";
|
|
7
7
|
import { UserProfileEntityManager } from "../../entities/userProfiles/userProfile.manager";
|
|
8
|
-
export declare class AuthUserService implements
|
|
8
|
+
export declare class AuthUserService implements IAuthUserService<UserEntity, AppUserContext, UserRegistrationData> {
|
|
9
9
|
private readonly userManager;
|
|
10
10
|
private readonly userProfileManager;
|
|
11
11
|
private readonly organizationsManager;
|
|
@@ -2,6 +2,7 @@ import { IEntityFacet, IEntityFacetItem } from "../../../abstractions";
|
|
|
2
2
|
export declare class NumericFacetItem implements IEntityFacetItem<number> {
|
|
3
3
|
value: number;
|
|
4
4
|
name?: string;
|
|
5
|
+
count?: number;
|
|
5
6
|
}
|
|
6
7
|
export declare class NumericFacet implements IEntityFacet<number> {
|
|
7
8
|
items: NumericFacetItem[];
|
|
@@ -9,6 +10,7 @@ export declare class NumericFacet implements IEntityFacet<number> {
|
|
|
9
10
|
export declare class BooleanFacetItem implements IEntityFacetItem<boolean> {
|
|
10
11
|
value: boolean;
|
|
11
12
|
name?: string;
|
|
13
|
+
count?: number;
|
|
12
14
|
}
|
|
13
15
|
export declare class BooleanFacet implements IEntityFacet<boolean> {
|
|
14
16
|
items: BooleanFacetItem[];
|
|
@@ -16,6 +18,7 @@ export declare class BooleanFacet implements IEntityFacet<boolean> {
|
|
|
16
18
|
export declare class StringFacetItem implements IEntityFacetItem<string> {
|
|
17
19
|
value: string;
|
|
18
20
|
name?: string;
|
|
21
|
+
count?: number;
|
|
19
22
|
}
|
|
20
23
|
export declare class StringFacet implements IEntityFacet<string> {
|
|
21
24
|
items: StringFacetItem[];
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface IAuthService {
|
|
2
2
|
}
|
|
3
|
-
export interface
|
|
3
|
+
export interface IAuthUserProfile {
|
|
4
4
|
firstName: string;
|
|
5
5
|
lastName: string;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface IAuthUserOrganization {
|
|
8
8
|
id: string;
|
|
9
9
|
uid: string;
|
|
10
10
|
name: string;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface IAuthUser {
|
|
13
13
|
id: string;
|
|
14
14
|
passwordHash: string;
|
|
15
15
|
passwordUpdateTimestamp?: Date;
|
|
@@ -19,13 +19,13 @@ export interface IUser {
|
|
|
19
19
|
verified: boolean;
|
|
20
20
|
verifiedTimestamp?: Date;
|
|
21
21
|
disabled: boolean;
|
|
22
|
-
profile:
|
|
23
|
-
organization?:
|
|
22
|
+
profile: IAuthUserProfile;
|
|
23
|
+
organization?: IAuthUserOrganization;
|
|
24
24
|
}
|
|
25
|
-
export interface
|
|
25
|
+
export interface IAuthUserContext {
|
|
26
26
|
organizationUid?: string;
|
|
27
27
|
}
|
|
28
|
-
export interface
|
|
28
|
+
export interface IAuthUserService<TUser extends IAuthUser, TUserContext extends IAuthUserContext, TUserRegistrationInfo> {
|
|
29
29
|
getById(id: string): Promise<TUser>;
|
|
30
30
|
getByEmail(email: string, context?: TUserContext): Promise<TUser>;
|
|
31
31
|
getByUserName(userName: string, context?: TUserContext): Promise<TUser>;
|
|
@@ -33,7 +33,7 @@ export interface IUserService<TUser extends IUser, TUserContext extends IUserCon
|
|
|
33
33
|
delete(id: string): Promise<void>;
|
|
34
34
|
create(email: string, data: TUserRegistrationInfo, context?: TUserContext): Promise<TUser>;
|
|
35
35
|
}
|
|
36
|
-
export interface
|
|
36
|
+
export interface IAuthUserTokenData<TContext extends IAuthUserContext> {
|
|
37
37
|
userId: string;
|
|
38
38
|
email: string;
|
|
39
39
|
context?: TContext;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const extractUserTokenData: <TContext extends
|
|
1
|
+
import { IAuthUser, IAuthUserContext, IAuthUserTokenData } from "../abstractions";
|
|
2
|
+
export declare const extractUserTokenData: <TContext extends IAuthUserContext>(user: IAuthUser, context?: TContext | undefined) => IAuthUserTokenData<TContext>;
|
package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-login/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { PasswordHashingProvider } from "../../providers/password-hasher";
|
|
2
2
|
import { AuthenticationServicesResolver } from "../../resolver";
|
|
3
3
|
import { JwtProvider } from "../../providers/jwt";
|
|
4
|
-
import {
|
|
4
|
+
import { IAuthUserContext } from "../../abstractions";
|
|
5
5
|
import { UserLoginInput, UserLoginResult } from "./types";
|
|
6
6
|
export declare class UserLoginHandler {
|
|
7
7
|
private readonly services;
|
|
8
8
|
private readonly passwordHashingProvider;
|
|
9
9
|
private readonly jwtProvider;
|
|
10
10
|
constructor(services: AuthenticationServicesResolver, passwordHashingProvider: PasswordHashingProvider, jwtProvider: JwtProvider);
|
|
11
|
-
execute<TUserContext extends
|
|
11
|
+
execute<TUserContext extends IAuthUserContext>(input: UserLoginInput<TUserContext>): Promise<UserLoginResult>;
|
|
12
12
|
private generateUserJwtToken;
|
|
13
13
|
private resolveUser;
|
|
14
14
|
}
|
package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-login/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface UserLoginInput<TUserContext extends
|
|
1
|
+
import { IAuthUserContext } from "../../abstractions";
|
|
2
|
+
export interface UserLoginInput<TUserContext extends IAuthUserContext> {
|
|
3
3
|
userName: string;
|
|
4
4
|
password: string;
|
|
5
5
|
context?: TUserContext;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EmailService } from "../../../../services";
|
|
2
|
-
import {
|
|
2
|
+
import { IAuthUserContext } from "../../abstractions";
|
|
3
3
|
import { AuthenticationServicesResolver } from "../../resolver";
|
|
4
4
|
import { JwtProvider } from "../../providers/jwt";
|
|
5
5
|
import { UserPasswordResetRequestInput, UserPasswordResetRequestResult } from "./types";
|
|
@@ -8,7 +8,7 @@ export declare class UserPasswordResetRequestHandler {
|
|
|
8
8
|
private readonly emailService;
|
|
9
9
|
private readonly jwtProvider;
|
|
10
10
|
constructor(services: AuthenticationServicesResolver, emailService: EmailService, jwtProvider: JwtProvider);
|
|
11
|
-
execute<TUserContext extends
|
|
11
|
+
execute<TUserContext extends IAuthUserContext>(input: UserPasswordResetRequestInput<TUserContext>): Promise<UserPasswordResetRequestResult>;
|
|
12
12
|
private sendPasswordResetEmail;
|
|
13
13
|
private generatePasswordResetToken;
|
|
14
14
|
private resolveUser;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IAuthUserContext } from "../../abstractions";
|
|
2
2
|
export type UserPasswordResetRequestCallbackTemplate = {
|
|
3
3
|
urlTemplate: string;
|
|
4
4
|
tokenPlaceholder: string;
|
|
5
5
|
};
|
|
6
|
-
export interface UserPasswordResetRequestInput<TUserContext extends
|
|
6
|
+
export interface UserPasswordResetRequestInput<TUserContext extends IAuthUserContext> {
|
|
7
7
|
email: string;
|
|
8
8
|
callback: UserPasswordResetRequestCallbackTemplate;
|
|
9
9
|
languageId: string;
|
package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-register/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IAuthUserContext } from "../../abstractions";
|
|
2
2
|
import { EmailService } from "../../../../services";
|
|
3
3
|
import { AuthenticationServicesResolver } from "../../resolver";
|
|
4
4
|
import { JwtProvider } from "../../providers/jwt";
|
|
@@ -11,7 +11,7 @@ export declare class UserRegistrationHandler {
|
|
|
11
11
|
private readonly jwtProvider;
|
|
12
12
|
private readonly logger;
|
|
13
13
|
constructor(services: AuthenticationServicesResolver, passwordHashingProvider: PasswordHashingProvider, emailService: EmailService, jwtProvider: JwtProvider);
|
|
14
|
-
execute<TUserRegistrationInfo, TContext extends
|
|
14
|
+
execute<TUserRegistrationInfo, TContext extends IAuthUserContext>(input: UserRegistrationInput<TUserRegistrationInfo, TContext>): Promise<UserRegistrationResult>;
|
|
15
15
|
private createPasswordHash;
|
|
16
16
|
private sendRegistrationEmail;
|
|
17
17
|
private generateEmailVerifyToken;
|
package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-register/types.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IAuthUserContext } from "../../abstractions";
|
|
2
2
|
import { UserRegistrationError } from "../../types";
|
|
3
3
|
export type UserRegisterCallbackTemplate = {
|
|
4
4
|
urlTemplate: string;
|
|
5
5
|
tokenPlaceholder: string;
|
|
6
6
|
};
|
|
7
|
-
export interface UserRegistrationInput<TUserRegistrationInfo, TUserContext extends
|
|
7
|
+
export interface UserRegistrationInput<TUserRegistrationInfo, TUserContext extends IAuthUserContext> {
|
|
8
8
|
email: string;
|
|
9
9
|
userName: string;
|
|
10
10
|
password: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { JwtProvider } from "../../providers/jwt";
|
|
2
|
-
import {
|
|
2
|
+
import { IAuthUserContext } from "../../abstractions";
|
|
3
3
|
import { UserTokenVerifyInput, UserTokenVerifyResult } from "./types";
|
|
4
4
|
export declare class UserTokenVerifyHandler {
|
|
5
5
|
private readonly jwtProvider;
|
|
6
6
|
constructor(jwtProvider: JwtProvider);
|
|
7
|
-
execute<TUserContext extends
|
|
7
|
+
execute<TUserContext extends IAuthUserContext>(input: UserTokenVerifyInput): Promise<UserTokenVerifyResult<TUserContext>>;
|
|
8
8
|
private decodeUserJwtToken;
|
|
9
9
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface UserTokenVerifyResult<TUserContext extends
|
|
1
|
+
import { IAuthUserContext, IAuthUserTokenData } from "../../abstractions";
|
|
2
|
+
export interface UserTokenVerifyResult<TUserContext extends IAuthUserContext> {
|
|
3
3
|
isValid: boolean;
|
|
4
|
-
data:
|
|
4
|
+
data: IAuthUserTokenData<TUserContext>;
|
|
5
5
|
}
|
|
6
6
|
export interface UserTokenVerifyInput {
|
|
7
7
|
token: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IAuthUserContext } from "../../abstractions";
|
|
2
2
|
import { EmailService } from "../../../../services";
|
|
3
3
|
import { JwtProvider } from "../../providers/jwt";
|
|
4
4
|
import { AuthenticationServicesResolver } from "../../resolver";
|
|
@@ -8,7 +8,7 @@ export declare class UserVerifyRequestHandler {
|
|
|
8
8
|
private readonly emailService;
|
|
9
9
|
private readonly jwtProvider;
|
|
10
10
|
constructor(services: AuthenticationServicesResolver, emailService: EmailService, jwtProvider: JwtProvider);
|
|
11
|
-
execute<TUserContext extends
|
|
11
|
+
execute<TUserContext extends IAuthUserContext>(input: UserVerifyRequestInput<TUserContext>): Promise<UserVerifyRequestResult>;
|
|
12
12
|
private sendEmailVerifyEmail;
|
|
13
13
|
private generateEmailVerifyToken;
|
|
14
14
|
private resolveUser;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface UserVerifyRequestInput<TUserContext extends
|
|
1
|
+
import { IAuthUserContext } from "../../abstractions";
|
|
2
|
+
export interface UserVerifyRequestInput<TUserContext extends IAuthUserContext> {
|
|
3
3
|
email: string;
|
|
4
4
|
callback: UserVerifyRequestCallbackTemplate;
|
|
5
5
|
languageId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IAuthUser, IAuthUserService } from "../abstractions";
|
|
2
2
|
export declare class AuthenticationServicesResolver {
|
|
3
3
|
private usersService;
|
|
4
|
-
registerUsersService(usersService:
|
|
5
|
-
getUsersService<TUser extends
|
|
4
|
+
registerUsersService(usersService: IAuthUserService<any, any, any>): void;
|
|
5
|
+
getUsersService<TUser extends IAuthUser, TUserRegistrationInfo>(): IAuthUserService<TUser, any, TUserRegistrationInfo>;
|
|
6
6
|
}
|
package/dist/esm/types/platforms/nest/extensions/authentication/services/authentication/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IAuthService, IAuthUserContext } from "../../abstractions";
|
|
2
2
|
import { UserRegistrationHandler } from "../../handlers/user-register";
|
|
3
3
|
import { UserDisableHandler } from "../../handlers/user-disable";
|
|
4
4
|
import { UserEnableHandler } from "../../handlers/user-enable";
|
|
@@ -19,7 +19,7 @@ import { UserRegistrationInput, UserRegistrationResult } from "../../handlers/us
|
|
|
19
19
|
import { UserTokenVerifyInput, UserTokenVerifyResult } from "../../handlers/user-token-verify/types";
|
|
20
20
|
import { UserVerifyCompleteInput } from "../../handlers/user-verify-complete/types";
|
|
21
21
|
import { UserVerifyRequestInput, UserVerifyRequestResult } from "../../handlers/user-verify-request/types";
|
|
22
|
-
export declare class AuthenticationService implements
|
|
22
|
+
export declare class AuthenticationService implements IAuthService {
|
|
23
23
|
private readonly userDisableHandler;
|
|
24
24
|
private readonly userEnableHandler;
|
|
25
25
|
private readonly userLoginHandler;
|
|
@@ -33,12 +33,12 @@ export declare class AuthenticationService implements IAuthenticationService {
|
|
|
33
33
|
constructor(userDisableHandler: UserDisableHandler, userEnableHandler: UserEnableHandler, userLoginHandler: UserLoginHandler, userPasswordChangeHandler: UserPasswordChangeHandler, userPasswordResetFinalizeHandler: UserPasswordResetCompleteHandler, userPasswordResetRequestHandler: UserPasswordResetRequestHandler, userRegistrationHandler: UserRegistrationHandler, userTokenVerifyHandler: UserTokenVerifyHandler, userVerifyRequestHandler: UserVerifyRequestHandler, userVerifyCompleteHandler: UserVerifyCompleteHandler);
|
|
34
34
|
userDisable(input: UserDisableInput): Promise<void>;
|
|
35
35
|
userEnable(input: UserEnableInput): Promise<void>;
|
|
36
|
-
userLogin<TUserContext extends
|
|
36
|
+
userLogin<TUserContext extends IAuthUserContext>(input: UserLoginInput<TUserContext>): Promise<UserLoginResult>;
|
|
37
37
|
userPasswordChange(input: UserPasswordChangeInput): Promise<void>;
|
|
38
38
|
userPasswordResetFinalize(input: UserPasswordResetCompleteInput): Promise<void>;
|
|
39
|
-
userPasswordResetRequest<TUserContext extends
|
|
40
|
-
userRegister<TUserRegistrationInfo, TUserContext extends
|
|
41
|
-
userVerifyRequest<TUserContext extends
|
|
39
|
+
userPasswordResetRequest<TUserContext extends IAuthUserContext>(input: UserPasswordResetRequestInput<TUserContext>): Promise<UserPasswordResetRequestResult>;
|
|
40
|
+
userRegister<TUserRegistrationInfo, TUserContext extends IAuthUserContext>(input: UserRegistrationInput<TUserRegistrationInfo, TUserContext>): Promise<UserRegistrationResult>;
|
|
41
|
+
userVerifyRequest<TUserContext extends IAuthUserContext>(input: UserVerifyRequestInput<TUserContext>): Promise<UserVerifyRequestResult>;
|
|
42
42
|
userVerifyComplete(input: UserVerifyCompleteInput): Promise<void>;
|
|
43
|
-
userTokenVerify<TUserContext extends
|
|
43
|
+
userTokenVerify<TUserContext extends IAuthUserContext>(input: UserTokenVerifyInput): Promise<UserTokenVerifyResult<TUserContext>>;
|
|
44
44
|
}
|
|
@@ -1,39 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
id: string;
|
|
3
|
-
uid: string;
|
|
4
|
-
name: string;
|
|
5
|
-
}
|
|
6
|
-
export interface IDivision {
|
|
7
|
-
id: string;
|
|
8
|
-
uid: string;
|
|
9
|
-
name: string;
|
|
10
|
-
}
|
|
11
|
-
export interface IUser {
|
|
12
|
-
id: string;
|
|
13
|
-
uid: string;
|
|
14
|
-
}
|
|
15
|
-
export interface IModule {
|
|
16
|
-
id: string;
|
|
17
|
-
uid: string;
|
|
18
|
-
name: string;
|
|
19
|
-
}
|
|
20
|
-
export interface IOrganization {
|
|
21
|
-
id: string;
|
|
22
|
-
uid: string;
|
|
23
|
-
name: string;
|
|
24
|
-
}
|
|
25
|
-
export interface ISubscription {
|
|
26
|
-
id: string;
|
|
27
|
-
uid: string;
|
|
28
|
-
name: string;
|
|
29
|
-
}
|
|
30
|
-
export interface ITenant {
|
|
31
|
-
id: string;
|
|
32
|
-
uid: string;
|
|
33
|
-
name: string;
|
|
34
|
-
}
|
|
35
|
-
export interface IUserGroup {
|
|
36
|
-
id: string;
|
|
37
|
-
uid: string;
|
|
38
|
-
name: string;
|
|
39
|
-
}
|
|
1
|
+
export * from "./models";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export interface IAppTenant {
|
|
2
|
+
id: string;
|
|
3
|
+
uid: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IAppOrganization {
|
|
7
|
+
id: string;
|
|
8
|
+
uid: string;
|
|
9
|
+
name: string;
|
|
10
|
+
tenant: IAppTenant;
|
|
11
|
+
}
|
|
12
|
+
export interface IAppCompany {
|
|
13
|
+
id: string;
|
|
14
|
+
uid: string;
|
|
15
|
+
name: string;
|
|
16
|
+
organization: IAppOrganization;
|
|
17
|
+
}
|
|
18
|
+
export interface IAppDivision {
|
|
19
|
+
id: string;
|
|
20
|
+
uid: string;
|
|
21
|
+
name: string;
|
|
22
|
+
company: IAppCompany;
|
|
23
|
+
}
|
|
24
|
+
export interface IAppUserProfile {
|
|
25
|
+
firstName: string;
|
|
26
|
+
lastName: string;
|
|
27
|
+
}
|
|
28
|
+
export interface IAppUser {
|
|
29
|
+
id: string;
|
|
30
|
+
uid?: string;
|
|
31
|
+
userName: string;
|
|
32
|
+
email: string;
|
|
33
|
+
verified: boolean;
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
profile: IAppUserProfile;
|
|
36
|
+
}
|
|
37
|
+
export interface IAppUserGroup {
|
|
38
|
+
id: string;
|
|
39
|
+
uid: string;
|
|
40
|
+
name: string;
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
isBuiltIn: boolean;
|
|
43
|
+
organization?: IAppOrganization;
|
|
44
|
+
}
|
|
45
|
+
export interface IAppRole {
|
|
46
|
+
id: string;
|
|
47
|
+
uid: string;
|
|
48
|
+
name: string;
|
|
49
|
+
}
|