@openbox/shared-types 0.1.63 → 0.1.64
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/lib/auth/GetUser/Response.d.ts +54 -0
- package/lib/auth/GetUser/Response.js +3 -0
- package/lib/auth/GetUser/Response.js.map +1 -0
- package/lib/auth/index.d.ts +2 -1
- package/lib/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/auth/GetUser/Response.ts +61 -0
- package/src/auth/index.ts +2 -0
- package/src/index.ts +2 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export interface LoggedUserInfoProfileAccessBranchesModules {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
}
|
|
5
|
+
export interface LoggedUserInfoProfileAccessBranches {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
modules: LoggedUserInfoProfileAccessBranchesModules[];
|
|
9
|
+
}
|
|
10
|
+
export interface LoggedUserInfoProfileAccess {
|
|
11
|
+
id: string;
|
|
12
|
+
unique: string;
|
|
13
|
+
name: string;
|
|
14
|
+
branches: LoggedUserInfoProfileAccessBranches[];
|
|
15
|
+
}
|
|
16
|
+
export interface LoggedUserInfoProfile {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
admin: boolean;
|
|
20
|
+
acceses: LoggedUserInfoProfileAccess[];
|
|
21
|
+
}
|
|
22
|
+
export interface LoggedUserInfoWorkspaceCompany {
|
|
23
|
+
id: string;
|
|
24
|
+
unique: string;
|
|
25
|
+
name: string;
|
|
26
|
+
companyType: null | {
|
|
27
|
+
id: number;
|
|
28
|
+
name: string;
|
|
29
|
+
};
|
|
30
|
+
naturalType: null | {
|
|
31
|
+
id: number;
|
|
32
|
+
name: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface LoggedUserInfoWorkspaceBranch {
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
}
|
|
39
|
+
export interface LoggedUserInfoWorkspace {
|
|
40
|
+
company: LoggedUserInfoWorkspaceCompany;
|
|
41
|
+
branch: LoggedUserInfoWorkspaceBranch;
|
|
42
|
+
}
|
|
43
|
+
export interface LoggedUserInfo {
|
|
44
|
+
unique: string;
|
|
45
|
+
email: string;
|
|
46
|
+
names: string;
|
|
47
|
+
lastnames: string;
|
|
48
|
+
changePassword: boolean;
|
|
49
|
+
profile: LoggedUserInfoProfile;
|
|
50
|
+
workspace: LoggedUserInfoWorkspace;
|
|
51
|
+
}
|
|
52
|
+
export interface AuthGetUserResponse {
|
|
53
|
+
data: LoggedUserInfo;
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../src/auth/GetUser/Response.ts"],"names":[],"mappings":""}
|
package/lib/auth/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { AuthGetUserResponse } from './GetUser/Response';
|
|
1
2
|
import { AuthLoginRequest } from './Login/Request';
|
|
2
3
|
import { AuthLoginResponse, JWTResponse } from './Login/Response';
|
|
3
4
|
import { AuthRecoverPasswordRequest } from './RecoverPassword/Request';
|
|
4
5
|
import { AuthRecoverPasswordResponse } from './RecoverPassword/Response';
|
|
5
6
|
import { AuthResetPasswordRequest } from './ResetPassword/Request';
|
|
6
7
|
import { AuthResetPasswordResponse } from './ResetPassword/Response';
|
|
7
|
-
export { AuthLoginRequest, JWTResponse, AuthLoginResponse, AuthRecoverPasswordRequest, AuthRecoverPasswordResponse, AuthResetPasswordResponse, AuthResetPasswordRequest, };
|
|
8
|
+
export { AuthLoginRequest, JWTResponse, AuthLoginResponse, AuthRecoverPasswordRequest, AuthRecoverPasswordResponse, AuthResetPasswordResponse, AuthResetPasswordRequest, AuthGetUserResponse, };
|
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AuthLoginRequest, AuthLoginResponse, AuthRecoverPasswordRequest, AuthRecoverPasswordResponse, AuthResetPasswordRequest, AuthResetPasswordResponse, JWTResponse } from './auth';
|
|
1
|
+
import { AuthGetUserResponse, AuthLoginRequest, AuthLoginResponse, AuthRecoverPasswordRequest, AuthRecoverPasswordResponse, AuthResetPasswordRequest, AuthResetPasswordResponse, JWTResponse } from './auth';
|
|
2
2
|
import { CreateServiceRequest, CreateServiceResponse, DeleteServiceResponse, DeleteServicesRequest, DeleteServicesResponse, GetServiceResponse, GetServicesRequest, GetServicesResponse, ManyServices, ServiceSellingType, SingleService, UpdateServiceRequest, UpdateServiceResponse, UpdateServicesStatusRequest, UpdateServicesStatusResponse, UpdateServiceStatusRequest, UpdateServiceStatusResponse } from './services';
|
|
3
|
-
export { ManyServices, GetServicesRequest, GetServicesResponse, SingleService, ServiceSellingType, GetServiceResponse, CreateServiceRequest, CreateServiceResponse, DeleteServiceResponse, DeleteServicesRequest, DeleteServicesResponse, UpdateServicesStatusRequest, UpdateServicesStatusResponse, UpdateServiceStatusRequest, UpdateServiceStatusResponse, UpdateServiceRequest, UpdateServiceResponse, AuthLoginRequest, JWTResponse, AuthLoginResponse, AuthRecoverPasswordRequest, AuthRecoverPasswordResponse, AuthResetPasswordRequest, AuthResetPasswordResponse, };
|
|
3
|
+
export { ManyServices, GetServicesRequest, GetServicesResponse, SingleService, ServiceSellingType, GetServiceResponse, CreateServiceRequest, CreateServiceResponse, DeleteServiceResponse, DeleteServicesRequest, DeleteServicesResponse, UpdateServicesStatusRequest, UpdateServicesStatusResponse, UpdateServiceStatusRequest, UpdateServiceStatusResponse, UpdateServiceRequest, UpdateServiceResponse, AuthLoginRequest, JWTResponse, AuthLoginResponse, AuthRecoverPasswordRequest, AuthRecoverPasswordResponse, AuthResetPasswordRequest, AuthResetPasswordResponse, AuthGetUserResponse, };
|
package/package.json
CHANGED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export interface LoggedUserInfoProfileAccessBranchesModules {
|
|
2
|
+
id: string
|
|
3
|
+
name: string
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface LoggedUserInfoProfileAccessBranches {
|
|
7
|
+
id: string
|
|
8
|
+
name: string
|
|
9
|
+
modules: LoggedUserInfoProfileAccessBranchesModules[]
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface LoggedUserInfoProfileAccess {
|
|
13
|
+
id: string
|
|
14
|
+
unique: string
|
|
15
|
+
name: string
|
|
16
|
+
branches: LoggedUserInfoProfileAccessBranches[]
|
|
17
|
+
}
|
|
18
|
+
export interface LoggedUserInfoProfile {
|
|
19
|
+
id: string
|
|
20
|
+
name: string
|
|
21
|
+
admin: boolean
|
|
22
|
+
acceses: LoggedUserInfoProfileAccess[]
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface LoggedUserInfoWorkspaceCompany {
|
|
26
|
+
id: string
|
|
27
|
+
unique: string
|
|
28
|
+
name: string
|
|
29
|
+
companyType: null | {
|
|
30
|
+
id: number
|
|
31
|
+
name: string
|
|
32
|
+
}
|
|
33
|
+
naturalType: null | {
|
|
34
|
+
id: number
|
|
35
|
+
name: string
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface LoggedUserInfoWorkspaceBranch {
|
|
40
|
+
id: string
|
|
41
|
+
name: string
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface LoggedUserInfoWorkspace {
|
|
45
|
+
company: LoggedUserInfoWorkspaceCompany
|
|
46
|
+
branch: LoggedUserInfoWorkspaceBranch
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface LoggedUserInfo {
|
|
50
|
+
unique: string
|
|
51
|
+
email: string
|
|
52
|
+
names: string
|
|
53
|
+
lastnames: string
|
|
54
|
+
changePassword: boolean
|
|
55
|
+
profile: LoggedUserInfoProfile
|
|
56
|
+
workspace: LoggedUserInfoWorkspace
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface AuthGetUserResponse {
|
|
60
|
+
data: LoggedUserInfo
|
|
61
|
+
}
|
package/src/auth/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AuthGetUserResponse } from './GetUser/Response'
|
|
1
2
|
import { AuthLoginRequest } from './Login/Request'
|
|
2
3
|
import { AuthLoginResponse, JWTResponse } from './Login/Response'
|
|
3
4
|
import { AuthRecoverPasswordRequest } from './RecoverPassword/Request'
|
|
@@ -13,4 +14,5 @@ export {
|
|
|
13
14
|
AuthRecoverPasswordResponse,
|
|
14
15
|
AuthResetPasswordResponse,
|
|
15
16
|
AuthResetPasswordRequest,
|
|
17
|
+
AuthGetUserResponse,
|
|
16
18
|
}
|
package/src/index.ts
CHANGED