adamo-types 1.0.19 → 1.0.23

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/README.md CHANGED
@@ -25,6 +25,28 @@ Describes web specific interfaces
25
25
  ### Summary
26
26
  Describes admind specific interfaces
27
27
 
28
+ #### User Creation within SYS03/Infonova
29
+
30
+ **Creation Request**
31
+ ```typescript
32
+ interface UserCreationDTO {
33
+ name: string
34
+ email: string
35
+ language: string
36
+ givenName: string
37
+ familyName: string
38
+ workGroupName: string
39
+ password: string
40
+ role: string
41
+ channel: string[]
42
+ salesman: boolean
43
+ }
44
+ ```
45
+
46
+ **Creation Response**
47
+ ```json
48
+ ```
49
+
28
50
  ## Common
29
51
  ### Summary
30
52
  Describes common interfaces between the various tenents
@@ -46,10 +68,12 @@ export interface UserLoginAccessToken {
46
68
  access_token: string
47
69
  }
48
70
  ```
71
+
49
72
  `access_token` - is a JWT consisting of metadata related to the user that signed in:
50
73
  - channels
51
74
  - roles
52
75
  - tenentPermissions
76
+ - iat
53
77
  each `access_token` is valid (currently) for 24 hours
54
78
 
55
79
  **example**
File without changes
@@ -0,0 +1 @@
1
+ export * from './request/admin.user.request'
@@ -0,0 +1,17 @@
1
+ export interface UserCreationDTO {
2
+ ticket: string
3
+ users: Users[]
4
+ }
5
+
6
+ interface Users {
7
+ name: string
8
+ email: string
9
+ language: string
10
+ givenName: string
11
+ familyName: string
12
+ workGroupName: string
13
+ password: string
14
+ role: string
15
+ channel: string[]
16
+ salesman: boolean
17
+ }
File without changes
@@ -1,3 +1,3 @@
1
- export * from './interface/request/login.request.interface'
2
- export * from './interface/response/login.response.interface'
1
+ export * from './request/login.request.interface'
2
+ export * from './response/login.response.interface'
3
3
 
@@ -0,0 +1,8 @@
1
+ export interface UserJWT {
2
+ username: string
3
+ channels: string[]
4
+ tenentPermissions: string[]
5
+ roles: string[]
6
+ iat: number
7
+ }
8
+
@@ -2,3 +2,11 @@ export interface UserSessionRequest {
2
2
  username: string
3
3
  password: string
4
4
  }
5
+
6
+ export interface DecodedJWTUser {
7
+ username: string
8
+ channels: string[]
9
+ tenentPermissions: string[]
10
+ roles: string[]
11
+ iat: number
12
+ }
@@ -1 +1,2 @@
1
1
  export * from './data/user.data'
2
+ export * from './auth/user.auth'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adamo-types",
3
- "version": "1.0.19",
3
+ "version": "1.0.23",
4
4
  "description": "A types library for api communication agreement",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {