resurgence-data 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/authentication/authentication.data.d.ts +20 -0
- package/dist/authentication/authentication.dto.d.ts +37 -0
- package/dist/authentication/index.d.ts +3 -0
- package/dist/authentication/invite.data.d.ts +0 -0
- package/dist/authentication/invite.dto.d.ts +15 -0
- package/dist/exception/authentication.exception.d.ts +7 -0
- package/dist/exception/authorization.exception.d.ts +5 -0
- package/dist/exception/data.exception.d.ts +3 -0
- package/dist/exception/database.exception.d.ts +3 -0
- package/dist/exception/exception.d.ts +6 -0
- package/dist/exception/index.d.ts +5 -0
- package/dist/exception/resource.exception.d.ts +9 -0
- package/dist/index.d.ts +3 -0
- package/dist/response/index.d.ts +1 -0
- package/dist/response/response.dto.d.ts +6 -0
- package/dist/types/account.type.d.ts +2 -0
- package/dist/types/error.type.d.ts +5 -0
- package/dist/user/index.d.ts +1 -0
- package/dist/user/user.d.ts +13 -0
- package/dist/validation/custom-validation.d.ts +2 -0
- package/package.json +1 -1
@@ -0,0 +1,20 @@
|
|
1
|
+
export interface AuthenticationBillerRole {
|
2
|
+
userId: string;
|
3
|
+
authenticationId: string;
|
4
|
+
billerId: string;
|
5
|
+
role: string;
|
6
|
+
}
|
7
|
+
export interface LoggedInUser {
|
8
|
+
firstName: string;
|
9
|
+
lastName: string;
|
10
|
+
emaiLAddress: string;
|
11
|
+
phoneNumber: string;
|
12
|
+
merchantRoles: AuthenticationBillerRole[];
|
13
|
+
}
|
14
|
+
export interface ResetPasswordEmailRequest {
|
15
|
+
firstName: string;
|
16
|
+
emailAddress: string;
|
17
|
+
actionUrl: string;
|
18
|
+
}
|
19
|
+
export interface NewUserEmailRequest extends ResetPasswordEmailRequest {
|
20
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
export declare class SignUpDTO {
|
2
|
+
firstName: string;
|
3
|
+
lastName: string;
|
4
|
+
emailAddress: string;
|
5
|
+
phoneNumber: string;
|
6
|
+
}
|
7
|
+
export declare class LoginRequestDTO {
|
8
|
+
emailAddress: string;
|
9
|
+
password: string;
|
10
|
+
}
|
11
|
+
export declare class RecoverAccountDTO {
|
12
|
+
emailAddress: string;
|
13
|
+
}
|
14
|
+
export declare class SendInviteDTO {
|
15
|
+
billerId: string;
|
16
|
+
emailAddress: string;
|
17
|
+
role: string;
|
18
|
+
}
|
19
|
+
export declare class ActivationRequestDTO {
|
20
|
+
token: string;
|
21
|
+
password: string;
|
22
|
+
passwordConfirm?: string;
|
23
|
+
}
|
24
|
+
export declare class UpdateAuthenticationDTO {
|
25
|
+
userId: string;
|
26
|
+
active?: boolean;
|
27
|
+
role?: string;
|
28
|
+
}
|
29
|
+
export declare class TwoFactorAuthRequestDTO {
|
30
|
+
emailAddress: string;
|
31
|
+
token: string;
|
32
|
+
}
|
33
|
+
export declare class LoginResponseDTO {
|
34
|
+
twoFactorEnabled: boolean;
|
35
|
+
message?: string;
|
36
|
+
token?: string;
|
37
|
+
}
|
File without changes
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export declare class InviteRequestDTO {
|
2
|
+
firstName: string;
|
3
|
+
lastName: string;
|
4
|
+
emailAddress: string;
|
5
|
+
role: string;
|
6
|
+
billerId: string;
|
7
|
+
userId: string;
|
8
|
+
}
|
9
|
+
export declare class AcceptInviteInviteDTO {
|
10
|
+
token: string;
|
11
|
+
password: string;
|
12
|
+
}
|
13
|
+
export declare class RevokeInviteDTO {
|
14
|
+
id: string;
|
15
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Exception } from "./exception";
|
2
|
+
export declare class ResourceNotFoundException extends Exception {
|
3
|
+
}
|
4
|
+
export declare class ResourceExistsException extends Exception {
|
5
|
+
}
|
6
|
+
export declare class UnauthorizedResourceActionException extends Exception {
|
7
|
+
}
|
8
|
+
export declare class ExpiredResourceException extends Exception {
|
9
|
+
}
|
package/dist/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./response.dto";
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./user";
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export declare class CreateUserDTO {
|
2
|
+
firstName: string;
|
3
|
+
lastName: string;
|
4
|
+
emailAddress: string;
|
5
|
+
phoneNumber: string;
|
6
|
+
businessName: string;
|
7
|
+
avatarUrl?: string;
|
8
|
+
corporate?: boolean;
|
9
|
+
accountType: string;
|
10
|
+
}
|
11
|
+
export declare class UpdateUserDTO extends CreateUserDTO {
|
12
|
+
id: string;
|
13
|
+
}
|