@campxdev/shared 3.0.0 → 3.0.2
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
CHANGED
|
@@ -19,6 +19,10 @@ export const StyledAutocomplete = styled(Autocomplete)(({ theme }) => ({
|
|
|
19
19
|
background: '#F8F8F8',
|
|
20
20
|
borderRadius: '5px',
|
|
21
21
|
height: '38px',
|
|
22
|
+
padding: '8px',
|
|
23
|
+
display: 'flex',
|
|
24
|
+
justifyContent: 'center',
|
|
25
|
+
alignItems: 'center',
|
|
22
26
|
'& .MuiSvgIcon-root': {
|
|
23
27
|
fontSize: '15px',
|
|
24
28
|
marginLeft: '5px',
|
|
@@ -2218,6 +2218,7 @@ interface IPermissionsStore {
|
|
|
2218
2218
|
isMasterInstitution: boolean
|
|
2219
2219
|
isMasterInstitutionUser?: boolean
|
|
2220
2220
|
isHomePageEnabled?: boolean
|
|
2221
|
+
isFrappeEnabled?: boolean
|
|
2221
2222
|
}
|
|
2222
2223
|
|
|
2223
2224
|
export const PermissionsStore = new Store<IPermissionsStore>({
|
|
@@ -2229,4 +2230,5 @@ export const PermissionsStore = new Store<IPermissionsStore>({
|
|
|
2229
2230
|
isMasterInstitution: false,
|
|
2230
2231
|
isMasterInstitutionUser: false,
|
|
2231
2232
|
isHomePageEnabled: false,
|
|
2233
|
+
isFrappeEnabled: false,
|
|
2232
2234
|
})
|
|
@@ -2,7 +2,24 @@ import { Store } from 'pullstate'
|
|
|
2
2
|
|
|
3
3
|
export interface IUserStore {
|
|
4
4
|
username: string
|
|
5
|
-
user:
|
|
5
|
+
user: {
|
|
6
|
+
//User Specific Data
|
|
7
|
+
globalUserId: string
|
|
8
|
+
_id: string
|
|
9
|
+
tenantId: string
|
|
10
|
+
userId: number
|
|
11
|
+
fullName: string
|
|
12
|
+
email: string
|
|
13
|
+
institutionIds: number[]
|
|
14
|
+
isAdminUser: boolean
|
|
15
|
+
isSuperUser: boolean
|
|
16
|
+
photoUrl?: string
|
|
17
|
+
//Employee Specific Data
|
|
18
|
+
employeeId?: string
|
|
19
|
+
designationId?: string
|
|
20
|
+
//Academic Specific Data
|
|
21
|
+
departmentIds?: string[]
|
|
22
|
+
}
|
|
6
23
|
roles: any[]
|
|
7
24
|
}
|
|
8
25
|
|