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 +24 -0
- package/admin/product-catalog/index.ts +0 -0
- package/admin/user/index.ts +1 -0
- package/admin/user/request/admin.user.request.ts +17 -0
- package/admin/user/response/admin.user.response.ts +0 -0
- package/common/login/index.ts +2 -2
- package/common/login/{interface/request → request}/login.request.interface.ts +0 -0
- package/common/login/{interface/response → response}/login.response.interface.ts +0 -0
- package/common/user/auth/user.auth.ts +8 -0
- package/common/user/data/user.data.ts +8 -0
- package/common/user/index.ts +1 -0
- package/package.json +1 -1
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
|
package/common/login/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
1
|
+
export * from './request/login.request.interface'
|
|
2
|
+
export * from './response/login.response.interface'
|
|
3
3
|
|
|
File without changes
|
|
File without changes
|
package/common/user/index.ts
CHANGED