@openbox/shared-types 0.2.24 → 0.2.25

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.
@@ -1,46 +1,44 @@
1
- export interface LoggedUserInfoProfileAccessBranchesModules {
1
+ export type LoggedUserInfoProfileAccessBranchesModules = {
2
2
  id: string;
3
3
  name: string;
4
- }
5
- export interface LoggedUserInfoProfileAccessBranches {
4
+ };
5
+ export type LoggedUserInfoProfileAccessBranches = {
6
6
  id: string;
7
7
  name: string;
8
8
  modules: LoggedUserInfoProfileAccessBranchesModules[];
9
- }
10
- export interface LoggedUserInfoProfileAccess {
9
+ };
10
+ export type LoggedUserInfoProfileAccess = {
11
11
  id: string;
12
12
  unique: string;
13
13
  name: string;
14
14
  branches: LoggedUserInfoProfileAccessBranches[];
15
- }
16
- export interface LoggedUserInfoProfile {
15
+ };
16
+ export type LoggedUserInfoProfile = {
17
17
  id: string;
18
18
  name: string;
19
19
  admin: boolean;
20
20
  acceses: LoggedUserInfoProfileAccess[];
21
- }
22
- export interface LoggedUserInfoWorkspaceCompany {
21
+ };
22
+ export type LoggedUserInfoWorkspaceCompanyType = {
23
+ id: number;
24
+ name: string;
25
+ };
26
+ export type LoggedUserInfoWorkspaceCompany = {
23
27
  id: string;
24
28
  unique: string;
25
29
  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 {
30
+ companyType: LoggedUserInfoWorkspaceCompanyType | null;
31
+ naturalType: LoggedUserInfoWorkspaceCompanyType | null;
32
+ };
33
+ export type LoggedUserInfoWorkspaceBranch = {
36
34
  id: string;
37
35
  name: string;
38
- }
39
- export interface LoggedUserInfoWorkspace {
36
+ };
37
+ export type LoggedUserInfoWorkspace = {
40
38
  company: LoggedUserInfoWorkspaceCompany;
41
39
  branch: LoggedUserInfoWorkspaceBranch;
42
- }
43
- export interface LoggedUserInfo {
40
+ };
41
+ export type LoggedUserInfo = {
44
42
  id: string;
45
43
  unique: string;
46
44
  email: string;
@@ -49,7 +47,7 @@ export interface LoggedUserInfo {
49
47
  changePassword: boolean;
50
48
  profile: LoggedUserInfoProfile;
51
49
  workspace: LoggedUserInfoWorkspace;
52
- }
53
- export interface AuthAuthGetSingleUserResponse {
50
+ };
51
+ export type AuthAuthGetSingleUserResponse = {
54
52
  data: LoggedUserInfo;
55
- }
53
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.24",
3
+ "version": "0.2.25",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,52 +1,51 @@
1
- export interface LoggedUserInfoProfileAccessBranchesModules {
1
+ export type LoggedUserInfoProfileAccessBranchesModules = {
2
2
  id: string
3
3
  name: string
4
4
  }
5
5
 
6
- export interface LoggedUserInfoProfileAccessBranches {
6
+ export type LoggedUserInfoProfileAccessBranches = {
7
7
  id: string
8
8
  name: string
9
9
  modules: LoggedUserInfoProfileAccessBranchesModules[]
10
10
  }
11
11
 
12
- export interface LoggedUserInfoProfileAccess {
12
+ export type LoggedUserInfoProfileAccess = {
13
13
  id: string
14
14
  unique: string
15
15
  name: string
16
16
  branches: LoggedUserInfoProfileAccessBranches[]
17
17
  }
18
- export interface LoggedUserInfoProfile {
18
+ export type LoggedUserInfoProfile = {
19
19
  id: string
20
20
  name: string
21
21
  admin: boolean
22
22
  acceses: LoggedUserInfoProfileAccess[]
23
23
  }
24
24
 
25
- export interface LoggedUserInfoWorkspaceCompany {
25
+ export type LoggedUserInfoWorkspaceCompanyType = {
26
+ id: number
27
+ name: string
28
+ }
29
+
30
+ export type LoggedUserInfoWorkspaceCompany = {
26
31
  id: string
27
32
  unique: string
28
33
  name: string
29
- companyType: null | {
30
- id: number
31
- name: string
32
- }
33
- naturalType: null | {
34
- id: number
35
- name: string
36
- }
34
+ companyType: LoggedUserInfoWorkspaceCompanyType | null
35
+ naturalType: LoggedUserInfoWorkspaceCompanyType | null
37
36
  }
38
37
 
39
- export interface LoggedUserInfoWorkspaceBranch {
38
+ export type LoggedUserInfoWorkspaceBranch = {
40
39
  id: string
41
40
  name: string
42
41
  }
43
42
 
44
- export interface LoggedUserInfoWorkspace {
43
+ export type LoggedUserInfoWorkspace = {
45
44
  company: LoggedUserInfoWorkspaceCompany
46
45
  branch: LoggedUserInfoWorkspaceBranch
47
46
  }
48
47
 
49
- export interface LoggedUserInfo {
48
+ export type LoggedUserInfo = {
50
49
  id: string
51
50
  unique: string
52
51
  email: string
@@ -57,6 +56,6 @@ export interface LoggedUserInfo {
57
56
  workspace: LoggedUserInfoWorkspace
58
57
  }
59
58
 
60
- export interface AuthAuthGetSingleUserResponse {
59
+ export type AuthAuthGetSingleUserResponse = {
61
60
  data: LoggedUserInfo
62
61
  }