@mitreka/coreflow-types 0.0.13 → 0.0.15

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 CHANGED
@@ -95,7 +95,7 @@ export type IDToken = {
95
95
  iss: string;
96
96
  aud: string; // Client ID
97
97
  sub: string; // User ID
98
- name: string;
98
+ name?: string;
99
99
  email?: string;
100
100
  iat: number;
101
101
  exp: number;
package/cryptor.ts CHANGED
@@ -1,4 +1,7 @@
1
1
  export type CryptorOptions = {
2
- key: string;
3
- iv: string;
4
- }
2
+ algorithm: CryptorAlgorithm,
3
+ iv: string,
4
+ key: string
5
+ }
6
+
7
+ export type CryptorAlgorithm = 'aes-256-cbc' | 'aes-256-gcm';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mitreka/coreflow-types",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "CoreFlow Types Definition",
5
5
  "author": {
6
6
  "name": "Riyan Widiyanto",
package/user.ts CHANGED
@@ -126,6 +126,7 @@ export type UserMeta = {
126
126
 
127
127
  export interface UserRoleEntity extends RelationEntity {
128
128
  id: string;
129
+ company_id: string;
129
130
  user_id: string;
130
131
  role_id: string;
131
132
  is_active: boolean;