@mitreka/coreflow-types 0.0.15 → 0.0.17
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/auth.ts +4 -21
- package/package.json +1 -1
- package/user.ts +1 -5
package/auth.ts
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import type { BaseEntity } from "./entity.js";
|
|
2
2
|
import type { BaseEntityFilters, QueryFilters } from "./filter.js";
|
|
3
3
|
|
|
4
|
-
export type AccessCompany = {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
is_owner: boolean;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export type AccessRole = {
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
4
|
export type AccessToken = {
|
|
16
5
|
iss: string; // issuer
|
|
17
6
|
sub: string; // client id
|
|
@@ -31,13 +20,6 @@ export type AccessTokenResponse = {
|
|
|
31
20
|
id_token?: string; // IDToken JWT
|
|
32
21
|
};
|
|
33
22
|
|
|
34
|
-
export type AccessUser = {
|
|
35
|
-
id: string;
|
|
36
|
-
email: string;
|
|
37
|
-
name: string;
|
|
38
|
-
phone?: string;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
23
|
export type AuthAccessType = 'offline' | 'online';
|
|
42
24
|
export type AuthChallengeMethod = 'S256';
|
|
43
25
|
export type AuthGrantType = 'authorization_code' | 'refresh_token';
|
|
@@ -216,9 +198,10 @@ export type UserIdentity = {
|
|
|
216
198
|
}
|
|
217
199
|
|
|
218
200
|
export type UserSession = {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
201
|
+
name: string;
|
|
202
|
+
email: string;
|
|
203
|
+
avatar: string;
|
|
204
|
+
company: string;
|
|
222
205
|
};
|
|
223
206
|
|
|
224
207
|
export type UserIdentityParam = {
|
package/package.json
CHANGED
package/user.ts
CHANGED
|
@@ -126,17 +126,13 @@ export type UserMeta = {
|
|
|
126
126
|
|
|
127
127
|
export interface UserRoleEntity extends RelationEntity {
|
|
128
128
|
id: string;
|
|
129
|
-
company_id: string;
|
|
130
129
|
user_id: string;
|
|
131
130
|
role_id: string;
|
|
132
|
-
is_active: boolean;
|
|
133
131
|
}
|
|
134
132
|
|
|
135
133
|
export type UserRole = Omit<UserRoleEntity, 'id' | keyof RelationEntity>;
|
|
136
134
|
export type UserRoleRequest = QueryFilters & RelationEntityFilters &
|
|
137
|
-
Omit<UserRoleEntity,
|
|
138
|
-
is_active: boolean | string;
|
|
139
|
-
}
|
|
135
|
+
Omit<UserRoleEntity, keyof RelationEntity>;
|
|
140
136
|
|
|
141
137
|
export interface UserRoleCreate {
|
|
142
138
|
user_id: string;
|