@fragus/sam-types 1.0.10 → 1.0.12
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/package.json +1 -1
- package/types/admin/auth/roles.d.ts +13 -6
package/package.json
CHANGED
|
@@ -2,13 +2,20 @@ import { TIsoCountry } from '../../country'
|
|
|
2
2
|
|
|
3
3
|
export type UserRole = 'system' | 'superadmin' | 'admin' | 'seller' | 'customer' | 'reports' | 'observer'
|
|
4
4
|
|
|
5
|
+
export interface UserRoleProviderInfo {
|
|
6
|
+
id: number
|
|
7
|
+
administrativeName: string
|
|
8
|
+
inactive?: boolean
|
|
9
|
+
}
|
|
10
|
+
|
|
5
11
|
export interface UserRoleRecord {
|
|
6
12
|
role: UserRole
|
|
7
|
-
contractProvider:
|
|
8
|
-
id: number
|
|
9
|
-
administrativeName: string
|
|
10
|
-
inactive?: boolean
|
|
11
|
-
}
|
|
13
|
+
contractProvider: UserRoleProviderInfo
|
|
12
14
|
}
|
|
13
15
|
|
|
14
|
-
export type
|
|
16
|
+
export type TUserPermittedProvidersByCountry = Partial<Record<TIsoCountry, UserRoleProviderInfo[]>>
|
|
17
|
+
|
|
18
|
+
export interface UserPermittedProvidersResponse {
|
|
19
|
+
allProviders: TUserPermittedProvidersByCountry
|
|
20
|
+
adminProviders?: TUserPermittedProvidersByCountry
|
|
21
|
+
}
|