@mitreka/coreflow-types 0.0.16 → 0.0.18

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.
Files changed (3) hide show
  1. package/auth.ts +4 -21
  2. package/cryptor.ts +3 -6
  3. package/package.json +1 -1
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
- company: AccessCompany;
220
- roles: AccessRole[];
221
- user: AccessUser;
201
+ name: string;
202
+ email: string;
203
+ avatar: string;
204
+ company: string;
222
205
  };
223
206
 
224
207
  export type UserIdentityParam = {
package/cryptor.ts CHANGED
@@ -1,7 +1,4 @@
1
1
  export type CryptorOptions = {
2
- algorithm: CryptorAlgorithm,
3
- iv: string,
4
- key: string
5
- }
6
-
7
- export type CryptorAlgorithm = 'aes-256-cbc' | 'aes-256-gcm';
2
+ key: string,
3
+ iv?: string
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mitreka/coreflow-types",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "CoreFlow Types Definition",
5
5
  "author": {
6
6
  "name": "Riyan Widiyanto",