@campxdev/shared 1.8.26 → 1.8.27
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/antd.customize.less +73 -73
- package/exports.ts +19 -19
- package/package.json +86 -86
- package/src/assets/fonts/avenir/index.ts +13 -13
- package/src/assets/fonts/poppins/index.ts +18 -18
- package/src/assets/images/index.ts +17 -17
- package/src/assets/images/unauth.svg +92 -92
- package/src/components/ActionButton.tsx +20 -20
- package/src/components/ApplicationProfile/ApplicationProfile.tsx +336 -336
- package/src/components/ApplicationProfile/Service.ts +68 -68
- package/src/components/ApplicationProfile/UserProfileRelation.tsx +174 -174
- package/src/components/ApplicationProfile/index.tsx +1 -1
- package/src/components/Attachment.tsx +26 -26
- package/src/components/AutocompleteSearch/AutocompleteSearch.tsx +57 -57
- package/src/components/AutocompleteSearch/index.tsx +1 -1
- package/src/components/Breadcrumbs.tsx +72 -72
- package/src/components/Card.tsx +98 -98
- package/src/components/CardsGrid.tsx +28 -28
- package/src/components/ChangePassword.tsx +123 -123
- package/src/components/Chips.tsx +81 -81
- package/src/components/Detail.tsx +15 -15
- package/src/components/DetailsGrid.tsx +52 -52
- package/src/components/DividerHeading.tsx +41 -41
- package/src/components/DrawerWrapper/DialogWrapper.tsx +67 -67
- package/src/components/DrawerWrapper/DrawerTemplate.tsx +53 -53
- package/src/components/DrawerWrapper/DrawerWrapper.tsx +53 -53
- package/src/components/DropDownButton/AnchorElement.tsx +44 -44
- package/src/components/DropDownButton/DropDownButton.tsx +184 -184
- package/src/components/DropDownButton/DropdownMenuItem.tsx +110 -110
- package/src/components/DropDownButton/index.tsx +1 -1
- package/src/components/DropDownButton/styles.tsx +59 -59
- package/src/components/ErrorBoundary/ErrorBoundary.tsx +33 -33
- package/src/components/ErrorBoundary/ErrorFallback.tsx +241 -241
- package/src/components/ErrorBoundary/GlobalNetworkLoadingIndicator.tsx +13 -13
- package/src/components/ErrorBoundary/index.tsx +1 -1
- package/src/components/ErrorBox.tsx +42 -42
- package/src/components/ExcelToJsonInput/ExcelJsonUpload.tsx +50 -50
- package/src/components/ExcelToJsonInput/ExcelToJsonInput.tsx +57 -57
- package/src/components/ExcelToJsonInput/index.tsx +1 -1
- package/src/components/FilterComponents/FilterButton.tsx +56 -56
- package/src/components/FilterComponents/SearchBar.tsx +45 -45
- package/src/components/FloatingContainer.tsx +33 -33
- package/src/components/Form/Form.tsx +147 -147
- package/src/components/Form/RenderForm.tsx +189 -189
- package/src/components/FullScreenLoader.tsx +19 -19
- package/src/components/HookForm/AutoCompleteSearch.tsx +113 -113
- package/src/components/HookForm/DatePicker.tsx +40 -40
- package/src/components/HookForm/DateTimePicker.tsx +47 -47
- package/src/components/HookForm/FormLabel.tsx +14 -14
- package/src/components/HookForm/MultiCheckbox.tsx +69 -69
- package/src/components/HookForm/MultiSelect.tsx +61 -61
- package/src/components/HookForm/RadioGroup.tsx +47 -47
- package/src/components/HookForm/SingleCheckbox.tsx +34 -34
- package/src/components/HookForm/SingleSelect.tsx +46 -46
- package/src/components/HookForm/TextField.tsx +40 -40
- package/src/components/HookForm/TimePicker.tsx +40 -40
- package/src/components/HookForm/index.ts +23 -23
- package/src/components/IconButtons/IconButtons.tsx +137 -137
- package/src/components/IconButtons/Icons.tsx +268 -268
- package/src/components/IconButtons/assets/edit.svg +4 -4
- package/src/components/IconButtons/assets/eye.svg +6 -6
- package/src/components/IconButtons/assets/trash.svg +7 -7
- package/src/components/IconButtons/index.tsx +8 -8
- package/src/components/IconLabel.tsx +37 -37
- package/src/components/Image/Image.tsx +45 -45
- package/src/components/Image/index.tsx +1 -1
- package/src/components/ImageUpload.tsx +98 -98
- package/src/components/Input/AsyncSearchSelect/AsyncSearchSelect.tsx +216 -216
- package/src/components/Input/AsyncSearchSelect/index.tsx +1 -1
- package/src/components/Input/AsyncSearchSelect/styles.tsx +105 -105
- package/src/components/Input/AutoCompleteSearch.tsx +121 -121
- package/src/components/Input/DatePicker.tsx +87 -87
- package/src/components/Input/DateRangePicker.tsx +105 -105
- package/src/components/Input/DateTimePicker.tsx +84 -84
- package/src/components/Input/FormLabel.tsx +21 -21
- package/src/components/Input/MultiCheckbox.tsx +64 -64
- package/src/components/Input/MultiSelect.tsx +161 -161
- package/src/components/Input/RadioGroup.tsx +104 -104
- package/src/components/Input/SingleCheckbox.tsx +78 -78
- package/src/components/Input/SingleSelect.tsx +104 -104
- package/src/components/Input/TextField.tsx +46 -46
- package/src/components/Input/TimePicker.tsx +77 -77
- package/src/components/Input/index.ts +26 -26
- package/src/components/Input/types.ts +3 -3
- package/src/components/JsonPreview.tsx +7 -7
- package/src/components/LabelValue.tsx +21 -21
- package/src/components/Layout/ChangePassword.tsx +49 -49
- package/src/components/Layout/Header/AppHeader.tsx +112 -112
- package/src/components/Layout/Header/AppsMenu.tsx +133 -113
- package/src/components/Layout/Header/HeaderActions/CogWheelMenu.tsx +33 -33
- package/src/components/Layout/Header/HeaderActions/FreshChatButton.tsx +61 -61
- package/src/components/Layout/Header/HeaderActions/FreshDeskHelpButton.tsx +28 -28
- package/src/components/Layout/Header/HeaderActions/HeaderActions.tsx +18 -18
- package/src/components/Layout/Header/HeaderActions/UserBox.tsx +56 -56
- package/src/components/Layout/Header/Notification.tsx +13 -13
- package/src/components/Layout/Header/applications.ts +97 -97
- package/src/components/Layout/Header/assets/campx_square_small.svg +8 -8
- package/src/components/Layout/Header/assets/commuteX.png +0 -0
- package/src/components/Layout/Header/assets/commutex.svg +14 -14
- package/src/components/Layout/Header/assets/commutexSmall.svg +11 -11
- package/src/components/Layout/Header/assets/enroll.svg +14 -14
- package/src/components/Layout/Header/assets/enrollx.svg +14 -14
- package/src/components/Layout/Header/assets/exams_small.svg +11 -11
- package/src/components/Layout/Header/assets/examsx.svg +14 -14
- package/src/components/Layout/Header/assets/hostel_small.svg +13 -13
- package/src/components/Layout/Header/assets/hostelx.svg +13 -13
- package/src/components/Layout/Header/assets/index.ts +37 -37
- package/src/components/Layout/Header/assets/libraryx.svg +12 -12
- package/src/components/Layout/Header/assets/pay_small.svg +15 -15
- package/src/components/Layout/Header/assets/payx.svg +19 -19
- package/src/components/Layout/Header/assets/people_small.svg +9 -9
- package/src/components/Layout/Header/assets/peoplex.svg +12 -12
- package/src/components/Layout/Header/assets/squarex.svg +12 -12
- package/src/components/Layout/Header/icons.tsx +57 -57
- package/src/components/Layout/Header/index.tsx +1 -1
- package/src/components/Layout/Header/styles.tsx +133 -133
- package/src/components/Layout/Helmet.tsx +105 -105
- package/src/components/Layout/LayoutWrapper.tsx +28 -28
- package/src/components/Layout/SideMenuHeader.tsx +29 -29
- package/src/components/Layout/SideNav.tsx +168 -168
- package/src/components/Layout/Tickets/HelpWidget/HelpWidget.tsx +273 -273
- package/src/components/Layout/Tickets/HelpWidget/styles.tsx +94 -94
- package/src/components/Layout/Tickets/MyTickets.tsx +72 -72
- package/src/components/Layout/Tickets/TicketDetails.tsx +65 -65
- package/src/components/Layout/Tickets/TimeLine.tsx +64 -64
- package/src/components/Layout/Tickets/index.tsx +1 -1
- package/src/components/Layout/Tickets/services.ts +11 -11
- package/src/components/Layout/Tickets/styles.tsx +136 -136
- package/src/components/LinearProgress.tsx +19 -19
- package/src/components/ListItemButton.tsx +95 -95
- package/src/components/LoginForm.tsx +279 -279
- package/src/components/MediaRow/MediaRow.tsx +67 -67
- package/src/components/MediaRow/index.tsx +1 -1
- package/src/components/ModalButtons/DialogButton.tsx +126 -126
- package/src/components/ModalButtons/DrawerButton.tsx +115 -115
- package/src/components/ModalButtons/index.tsx +4 -4
- package/src/components/NoDataIllustration.tsx +32 -32
- package/src/components/PageContent.tsx +12 -12
- package/src/components/PageHeader.tsx +55 -55
- package/src/components/PageNotFound.tsx +26 -26
- package/src/components/PopupConfirm/ConfirmContextProvider.tsx +40 -40
- package/src/components/PopupConfirm/PopupConfirm.tsx +67 -67
- package/src/components/PopupConfirm/index.tsx +1 -1
- package/src/components/PopupConfirm/useConfirm.ts +47 -47
- package/src/components/ResetPassword.tsx +107 -107
- package/src/components/Row.tsx +24 -24
- package/src/components/Spinner.tsx +18 -18
- package/src/components/StepsHeader/StepsHeader.tsx +115 -115
- package/src/components/StepsHeader/index.tsx +1 -1
- package/src/components/StyledTableContainer.tsx +33 -33
- package/src/components/SwitchButton.tsx +41 -41
- package/src/components/Table.tsx +42 -42
- package/src/components/Tables/BasicTable/Table.tsx +198 -198
- package/src/components/Tables/BasicTable/TableFooter.tsx +86 -86
- package/src/components/Tables/BasicTable/index.tsx +1 -1
- package/src/components/Tables/ReactTable/BatchActionsHeader.tsx +58 -58
- package/src/components/Tables/ReactTable/ReactTable.tsx +295 -295
- package/src/components/Tables/ReactTable/RenderTableBody.tsx +49 -49
- package/src/components/Tables/ReactTable/index.tsx +1 -1
- package/src/components/Tables/ReactTable/react-table-config.d.ts +128 -128
- package/src/components/Tables/common/NoRecordsFound.tsx +27 -27
- package/src/components/Tables/common/TableStats.tsx +22 -22
- package/src/components/Tables/common/icons.tsx +50 -50
- package/src/components/Tables/common/styles.tsx +170 -170
- package/src/components/Tables/common/types.ts +57 -57
- package/src/components/Tabs/NavigationTabs.tsx +80 -80
- package/src/components/Tabs/Tabs.tsx +53 -53
- package/src/components/Tabs/TabsContainer.tsx +53 -53
- package/src/components/Tabs/index.tsx +1 -1
- package/src/components/Tabs/styles.tsx +55 -55
- package/src/components/ToastContainer/ToastContainer.tsx +57 -57
- package/src/components/ToastContainer/index.tsx +1 -1
- package/src/components/UploadButton/UploadButton.tsx +126 -126
- package/src/components/UploadButton/index.tsx +1 -1
- package/src/components/UploadButton/types.ts +19 -19
- package/src/components/UploadDocument.tsx +108 -108
- package/src/components/UploadFileDialog/UploadFileDialog.tsx +238 -238
- package/src/components/UploadFileDialog/index.tsx +1 -1
- package/src/components/index.ts +108 -106
- package/src/config/axios.ts +73 -73
- package/src/config/axiosEvaluator.ts +53 -53
- package/src/config/axiosXTenant.ts +57 -57
- package/src/constants/UIConstants.ts +124 -97
- package/src/constants/formValidations.ts +6 -6
- package/src/constants/index.ts +5 -5
- package/src/constants/isDevelopment.ts +4 -4
- package/src/constants/permissions.ts +67 -67
- package/src/constants/validateMessages.ts +12 -12
- package/src/contexts/LoginFormProvider.tsx +39 -39
- package/src/contexts/Providers.tsx +52 -52
- package/src/contexts/PublicProviders.tsx +30 -30
- package/src/contexts/QueryClientProvider.tsx +22 -22
- package/src/hooks/index.ts +5 -5
- package/src/hooks/useAuth.ts +112 -112
- package/src/hooks/useExternalScript.ts +38 -38
- package/src/hooks/useFetch.ts +53 -53
- package/src/hooks/useFilters.ts +83 -83
- package/src/hooks/useRouter.ts +31 -31
- package/src/layouts/Components/DashBoardMenu.tsx +232 -232
- package/src/layouts/Components/icons/index.tsx +403 -403
- package/src/layouts/Components/styles.tsx +74 -74
- package/src/layouts/ComponentsLayout.tsx +3 -3
- package/src/permissions/PageWithPermission.tsx +18 -18
- package/src/permissions/PermissionDeniedPage.tsx +16 -16
- package/src/permissions/ValidateAccess.tsx +18 -18
- package/src/permissions/index.ts +2 -2
- package/src/react-app-env.d.ts +1 -1
- package/src/shared-state/AssetsStore.ts +15 -15
- package/src/shared-state/PermissionsStore.ts +508 -480
- package/src/shared-state/UserStore.ts +13 -13
- package/src/shared-state/index.ts +4 -4
- package/src/theme/App.less +3 -3
- package/src/theme/MuiThemeProvider.tsx +18 -18
- package/src/theme/customCssBaseline.ts +135 -135
- package/src/theme/index.css +28 -28
- package/src/theme/muiTheme.ts +597 -597
- package/src/theme/theme.d.ts +77 -77
- package/src/utils/adminAxios.ts +15 -15
- package/src/utils/alphabet.ts +23 -23
- package/src/utils/arrayPadEnd.ts +3 -3
- package/src/utils/formatCurrency.ts +9 -9
- package/src/utils/getUrlParams.ts +5 -5
- package/src/utils/index.ts +7 -7
- package/src/utils/logout.ts +25 -25
- package/src/utils/ordinalSuffixOf.ts +14 -14
- package/src/utils/romanize.ts +40 -40
- package/src/utils/withRouteWrapper.tsx +25 -25
- package/src/utils/withSuspense.tsx +6 -6
- package/styled-components.tsx +60 -60
- package/tsconfig.json +21 -21
|
@@ -1,480 +1,508 @@
|
|
|
1
|
-
import { Store } from 'pullstate'
|
|
2
|
-
|
|
3
|
-
export enum Permission {
|
|
4
|
-
// Square
|
|
5
|
-
// manage
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
//
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
//
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
//
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
//
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
//
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
//
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
//
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
//
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
1
|
+
import { Store } from 'pullstate'
|
|
2
|
+
|
|
3
|
+
export enum Permission {
|
|
4
|
+
// Square
|
|
5
|
+
// manage
|
|
6
|
+
|
|
7
|
+
// manage square profile_permissions
|
|
8
|
+
CAN_MANAGE_SQUARE_PROFILE_PERMISSIONS_VIEW = 'can_manage_square_profile_permissions_view',
|
|
9
|
+
CAN_MANAGE_SQUARE_PROFILE_PERMISSIONS_ADD = 'can_manage_square_profile_permissions_add',
|
|
10
|
+
CAN_MANAGE_SQUARE_PROFILE_PERMISSIONS_EDIT = 'can_manage_square_profile_permissions_edit',
|
|
11
|
+
CAN_MANAGE_SQUARE_PROFILE_PERMISSIONS_DELETE = 'can_manage_square_profile_permissions_delete',
|
|
12
|
+
|
|
13
|
+
MANAGE_ROLES_AND_PROFILES = 'can_manage_roles_and_profiles',
|
|
14
|
+
VIEW_AUDIT_LOGS = 'can_view_audit_logs',
|
|
15
|
+
MANAGE_SETTINGS = 'can_manage_settings',
|
|
16
|
+
|
|
17
|
+
// Users
|
|
18
|
+
USERS_VIEW = 'can_users_view',
|
|
19
|
+
USERS_ADD = 'can_users_add',
|
|
20
|
+
USERS_EDIT = 'can_users_edit',
|
|
21
|
+
USERS_DELETE = 'can_users_delete',
|
|
22
|
+
USERS_REORDER = 'can_users_reorder',
|
|
23
|
+
USERS_UPLOAD_PHOTOS = 'can_user_upload_photos',
|
|
24
|
+
USERS_EXPORT = 'can_users_export',
|
|
25
|
+
|
|
26
|
+
// Students
|
|
27
|
+
STUDENTS_VIEW = 'can_students_view',
|
|
28
|
+
STUDENTS_ADD = 'can_students_add',
|
|
29
|
+
STUDENTS_EDIT = 'can_students_edit',
|
|
30
|
+
STUDENTS_DELETE = 'can_students_delete',
|
|
31
|
+
STUDENTS_DETAIN = 'can_students_detain',
|
|
32
|
+
STUDENTS_IMPORT = 'can_students_import',
|
|
33
|
+
STUDENTS_EXPORT = 'can_students_export',
|
|
34
|
+
STUDENTS_RESULTS = 'can_students_results',
|
|
35
|
+
STUDENTS_UPLOAD_PHOTOS = 'can_students_upload_photos',
|
|
36
|
+
STUDENTS_TRANSFER = 'can_students_transfer',
|
|
37
|
+
STUDENTS_ALLOTMENT = 'can_students_allotment',
|
|
38
|
+
|
|
39
|
+
// Subjects
|
|
40
|
+
SUBJECTS_VIEW = 'can_subjects_view',
|
|
41
|
+
SUBJECTS_ADD = 'can_subjects_add',
|
|
42
|
+
SUBJECTS_EDIT = 'can_subjects_edit',
|
|
43
|
+
SUBJECTS_DELETE = 'can_subjects_delete',
|
|
44
|
+
SUBJECTS_EDIT_SUBJECT_INFO = 'can_subjects_edit_subject_info',
|
|
45
|
+
SUBJECTS_BATCH_CONFIG_VIEW = 'can_subjects_batch_config_view',
|
|
46
|
+
SUBJECTS_BATCH_CONFIG_EDIT = 'can_subjects_batch_config_edit',
|
|
47
|
+
|
|
48
|
+
// Course Registartions
|
|
49
|
+
COURSE_REGISTRATION_VIEW = 'can_course_registration_view',
|
|
50
|
+
COURSE_REGISTRATION_ADD = 'can_course_registration_add',
|
|
51
|
+
COURSE_REGISTRATION_EDIT = 'can_course_registration_edit',
|
|
52
|
+
COURSE_REGISTRATION_DELETE = 'can_course_registration_delete',
|
|
53
|
+
|
|
54
|
+
// Extra Cirricular activities
|
|
55
|
+
EXTRA_CURRICULAR_ACTIVITIES_NEWS_FEED = 'can_extra_curricular_activities_news_feed',
|
|
56
|
+
EXTRA_CURRICULAR_ACTIVITIES_CLUBS = 'can_extra_curricular_activities_clubs',
|
|
57
|
+
EXTRA_CURRICULAR_ACTIVITIES_EVENTS = 'can_extra_curricular_activities_events',
|
|
58
|
+
|
|
59
|
+
//Classroom
|
|
60
|
+
|
|
61
|
+
CLASSROOM_VIEW = 'can_classroom_view',
|
|
62
|
+
CLASSROOM_EDIT = 'can_classroom_edit',
|
|
63
|
+
CLASSROOM_DELETE = 'can_classroom_delete',
|
|
64
|
+
CLASSROOM_ADD = 'can_classroom_add',
|
|
65
|
+
CLASSROOM_REPORTS = 'can_classroom_reports',
|
|
66
|
+
CLASSROOM_REASSIGN_FACULTY = 'can_classroom_re_assign_faculty',
|
|
67
|
+
CAN_REVOKE_MARKS = 'can_classroom_revoke_marks',
|
|
68
|
+
CAN_CLASSROOM_SUBJECTS_VIEW = 'can_classroom_subjects_view',
|
|
69
|
+
CAN_CLASSROOM_SUBJECT_ATTENDANCE_EDIT = 'can_classroom_subject_attendance_edit',
|
|
70
|
+
|
|
71
|
+
// Feed
|
|
72
|
+
CAN_ADD_FEED = 'can_feed_add',
|
|
73
|
+
|
|
74
|
+
// Degrees
|
|
75
|
+
CAN_DEGRESS_ADD = 'can_degrees_add',
|
|
76
|
+
CAN_DEGRESS_DELETE = 'can_degrees_delete',
|
|
77
|
+
CAN_DEGRESS_EDIT = 'can_degrees_edit',
|
|
78
|
+
CAN_DEGRESS_VIEW = 'can_degrees_view',
|
|
79
|
+
|
|
80
|
+
// Programs
|
|
81
|
+
CAN_PROGRAMS_ADD = 'can_programs_add',
|
|
82
|
+
CAN_PROGRAMS_DELETE = 'can_programs_delete',
|
|
83
|
+
CAN_PROGRAMS_EDIT = 'can_programs_edit',
|
|
84
|
+
CAN_PROGRAMS_VIEW = 'can_programs_view',
|
|
85
|
+
|
|
86
|
+
// Semesters
|
|
87
|
+
CAN_SEMESTERS_ADD = 'can_semesters_add',
|
|
88
|
+
CAN_SEMESTERS_DELETE = 'can_semesters_delete',
|
|
89
|
+
CAN_SEMESTERS_EDIT = 'can_semesters_edit',
|
|
90
|
+
CAN_SEMESTERS_VIEW = 'can_semesters_view',
|
|
91
|
+
|
|
92
|
+
// Curriculums
|
|
93
|
+
CAN_CURRICULUMS_ADD = 'can_curriculums_add',
|
|
94
|
+
CAN_CURRICULUMS_EDIT = 'can_curriculums_edit',
|
|
95
|
+
CAN_CURRICULUMS_DELETE = 'can_curriculums_delete',
|
|
96
|
+
CAN_CURRICULUMS_VIEW = 'can_curriculums_view',
|
|
97
|
+
|
|
98
|
+
// Subject types
|
|
99
|
+
SUBJECT_TYPE_VIEW = 'can_subject_types_view',
|
|
100
|
+
SUBJECT_TYPE_ADD = 'can_subject_types_add',
|
|
101
|
+
SUBJECT_TYPE_EDIT = 'can_subject_types_edit',
|
|
102
|
+
SUBJECT_TYPE_DELETE = 'can_subject_types_delete',
|
|
103
|
+
ADMISSIONS_VIEW = 'can_admissions_view',
|
|
104
|
+
|
|
105
|
+
// Assessment Type
|
|
106
|
+
ASSESSMENT_TYPE_VIEW = 'can_assessment_types_view',
|
|
107
|
+
ASSESSMENT_TYPE_ADD = 'can_assessment_types_add',
|
|
108
|
+
ASSESSMENT_TYPE_EDIT = 'can_assessment_types_edit',
|
|
109
|
+
ASSESSMENT_TYPE_DELETE = 'can_assessment_types_delete',
|
|
110
|
+
|
|
111
|
+
// Assessment Templates
|
|
112
|
+
CAN_ASSESSMENT_TEMPLATES_ADD = 'can_assessment_templates_add',
|
|
113
|
+
CAN_ASSESSMENT_TEMPLATES_EDIT = 'can_assessment_templates_edit',
|
|
114
|
+
CAN_ASSESSMENT_TEMPLATES_VIEW = 'can_assessment_templates_view',
|
|
115
|
+
CAN_ASSESSMENT_TEMPLATES_DELETE = 'can_assessment_templates_delete',
|
|
116
|
+
|
|
117
|
+
// Assessment Rules
|
|
118
|
+
CAN_ASSESSMENT_RULES_ADD = 'can_assessment_rules_add',
|
|
119
|
+
CAN_ASSESSMENT_RULES_DELETE = 'can_assessment_rules_delete',
|
|
120
|
+
CAN_ASSESSMENT_RULES_EDIT = 'can_assessment_rules_edit',
|
|
121
|
+
CAN_ASSESSMENT_RULES_VIEW = 'can_assessment_rules_view',
|
|
122
|
+
|
|
123
|
+
// Schools
|
|
124
|
+
SCHOOLS_VIEW = 'can_schools_view',
|
|
125
|
+
SCHOOLS_ADD = 'can_schools_add',
|
|
126
|
+
SCHOOLS_EDIT = 'can_schools_edit',
|
|
127
|
+
SCHOOLS_DELETE = 'can_schools_delete',
|
|
128
|
+
|
|
129
|
+
// Master Subjects
|
|
130
|
+
CAN_MASTER_SUBJECT_VIEW = 'can_master_subject_view',
|
|
131
|
+
CAN_MASTER_SUBJECT_ADD = 'can_master_subject_add',
|
|
132
|
+
CAN_MASTER_SUBJECT_EDIT = 'can_master_subject_edit',
|
|
133
|
+
CAN_MASTER_SUBJECT_DELETE = 'can_master_subject_delete',
|
|
134
|
+
|
|
135
|
+
// Tasks
|
|
136
|
+
CAN_TASKS_ADD = 'can_tasks_add',
|
|
137
|
+
CAN_TASKS_DELETE = 'can_tasks_delete',
|
|
138
|
+
CAN_TASKS_EDIT = 'can_tasks_edit',
|
|
139
|
+
CAN_TASKS_VIEW = 'can_tasks_view',
|
|
140
|
+
CAN_TASKS_CHANGE_STATUS = 'can_tasks_change_status',
|
|
141
|
+
|
|
142
|
+
// Academic Calendar
|
|
143
|
+
ACADEMIC_CALENDAR_VIEW = 'can_academic_calendar_view',
|
|
144
|
+
ACADEMIC_CALENDAR_EVENT_ADD = 'can_academic_calendar_event_add',
|
|
145
|
+
ACADEMIC_CALENDAR_EVENT_EDIT = 'can_academic_calendar_event_edit',
|
|
146
|
+
ACADEMIC_CALENDAR_EVENT_DELETE = 'can_academic_calendar_event_delete',
|
|
147
|
+
|
|
148
|
+
// Time Slots
|
|
149
|
+
CAN_TIME_SLOTS_VIEW = 'can_time_slots_view',
|
|
150
|
+
CAN_TIME_SLOTS_ADD = 'can_time_slots_add',
|
|
151
|
+
CAN_TIME_SLOTS_EDIT = 'can_time_slots_edit',
|
|
152
|
+
CAN_TIME_SLOTS_DELETE = 'can_time_slots_delete',
|
|
153
|
+
|
|
154
|
+
//Departments
|
|
155
|
+
CAN_DEPARTMENTS_VIEW = 'can_departments_view',
|
|
156
|
+
CAN_DEPARTMENTS_ADD = 'can_departments_add',
|
|
157
|
+
CAN_DEPARTMENTS_EDIT = 'can_departments_edit',
|
|
158
|
+
CAN_DEPARTMENTS_DELETE = 'can_departments_delete',
|
|
159
|
+
|
|
160
|
+
//Designations
|
|
161
|
+
DESIGNATIONS_ADD = 'can_designations_add',
|
|
162
|
+
DESIGNATIONS_DELETE = 'can_designations_delete',
|
|
163
|
+
DESIGNATIONS_EDIT = 'can_designations_edit',
|
|
164
|
+
DESIGNATIONS_VIEW = 'can_designations_view',
|
|
165
|
+
|
|
166
|
+
// Enroll X
|
|
167
|
+
|
|
168
|
+
// manage exams profile_permissions
|
|
169
|
+
CAN_MANAGE_ENROLL_X_PROFILE_PERMISSIONS_VIEW = 'can_manage_enrol_x_profile_permissions_view',
|
|
170
|
+
CAN_MANAGE_ENROLL_X_PROFILE_PERMISSIONS_ADD = 'can_manage_enrol_x_profile_permissions_add',
|
|
171
|
+
CAN_MANAGE_ENROLL_X_PROFILE_PERMISSIONS_EDIT = 'can_manage_enrol_x_profile_permissions_edit',
|
|
172
|
+
CAN_MANAGE_ENROLL_X_PROFILE_PERMISSIONS_DELETE = 'can_manage_enrol_x_profile_permissions_delete',
|
|
173
|
+
|
|
174
|
+
// Admissions
|
|
175
|
+
ADMISSIONS_ADD = 'can_admissions_add',
|
|
176
|
+
ADMISSIONS_EDIT = 'can_admissions_edit',
|
|
177
|
+
ADMISSIONS_DELETE = 'can_admissions_delete',
|
|
178
|
+
ADMISSIONS_CHANGE_STATUS = 'can_admissions_change_status',
|
|
179
|
+
ADMISSIONS_IMPORT = 'can_admissions_import',
|
|
180
|
+
ADMISSIONS_EXPORT = 'can_admissions_export',
|
|
181
|
+
ADMISSIONS_CONFIRM = 'can_admissions_confirm',
|
|
182
|
+
CAN_ADMISSIONS_DASHBOARD_VIEW = 'can_admission_dashboard_view',
|
|
183
|
+
|
|
184
|
+
// CET & PHD
|
|
185
|
+
CAN_PHD_FORM_VIEW = 'can_admissions_view_phd_applications',
|
|
186
|
+
CAN_PHD_FORM_DOWNLOAD = 'can_admissions_download_phd_applications',
|
|
187
|
+
CAN_CET_VIEW = 'can_admissions_view_cet',
|
|
188
|
+
CAN_CET_DOWNLOAD = 'can_admissions_download_cet',
|
|
189
|
+
|
|
190
|
+
// Quotas
|
|
191
|
+
CAN_QUOTAS_EDIT = 'can_quotas_edit',
|
|
192
|
+
CAN_QUOTAS_DELETE = 'can_quotas_delete',
|
|
193
|
+
CAN_QUOTAS_ADD = 'can_quotas_add',
|
|
194
|
+
CAN_QUOTAS_VIEW = 'can_quotas_view',
|
|
195
|
+
|
|
196
|
+
// Lead Status
|
|
197
|
+
CAN_LEAD_STATUS_VIEW = 'can_lead_status_view',
|
|
198
|
+
CAN_LEAD_STATUS_EDIT = 'can_lead_status_edit',
|
|
199
|
+
CAN_LEAD_STATUS_ADD = 'can_lead_status_add',
|
|
200
|
+
CAN_LEAD_STATUS_DELETE = 'can_lead_status_delete',
|
|
201
|
+
|
|
202
|
+
//Hostels
|
|
203
|
+
// Hosteler
|
|
204
|
+
CAN_HOSTELER_DASHBOARD_VIEW = 'can_hosteler_dashboard_view',
|
|
205
|
+
CAN_HOSTELER_VIEW = 'can_hosteler_view',
|
|
206
|
+
CAN_HOSTELER_ADD = 'can_hosteler_add',
|
|
207
|
+
CAN_HOSTELER_EDIT = 'can_hosteler_edit',
|
|
208
|
+
CAN_HOSTELER_CHANGE_STATUS = 'can_hosteler_change_status',
|
|
209
|
+
CAN_HOSTELER_FACE_DATA_RESET = 'can_hosteler_face_data_reset',
|
|
210
|
+
CAN_HOSTELER_FEE_PAYMENT_VIEW = 'can_hosteler_fee_payments_view',
|
|
211
|
+
CAN_HOSTELER_REPORTS_VIEW = 'can_hosteler_reports_view',
|
|
212
|
+
|
|
213
|
+
// Hosteler Settings
|
|
214
|
+
CAN_HOSTELER_SETTINGS_VIEW_CONFIGURATION = 'can_hosteler_settings_view_configuration',
|
|
215
|
+
CAN_HOSTELER_SETTINGS_EDIT_CONFIGURATION = 'can_hosteler_settings_edit_configuration',
|
|
216
|
+
CAN_HOSTELER_SETTINGS_ADD_FEE_TYPES = 'can_hosteler_settings_add_fee_types',
|
|
217
|
+
CAN_HOSTELER_SETTINGS_VIEW_FEE_TYPES = 'can_hosteler_settings_view_fee_types',
|
|
218
|
+
CAN_HOSTELER_SETTINGS_EDIT_FEE_TYPES = 'can_hosteler_settings_edit_fee_types',
|
|
219
|
+
CAN_HOSTELER_SETTINGS_DELETE_FEE_TYPES = 'can_hosteler_settings_delete_fee_types',
|
|
220
|
+
CAN_HOSTELERS_SETTINGS_BLOCK_VIEW = 'can_hosteler_settings_blocks_view',
|
|
221
|
+
CAN_HOSTELERS_SETTINGS_BLOCK_ADD = 'can_hosteler_settings_blocks_add',
|
|
222
|
+
CAN_HOSTELERS_SETTINGS_BLOCK_EDIT = 'can_hosteler_settings_blocks_edit',
|
|
223
|
+
CAN_HOSTELERS_SETTINGS_BLOCK_DELETE = 'can_hosteler_settings_blocks_delete',
|
|
224
|
+
CAN_HOSTELERS_SETTINGS_ROOMS_VIEW = 'can_hosteler_settings_rooms_view',
|
|
225
|
+
CAN_HOSTELERS_SETTINGS_ROOMS_ADD = 'can_hosteler_settings_rooms_add',
|
|
226
|
+
CAN_HOSTELERS_SETTINGS_ROOMS_EDIT = 'can_hosteler_settings_rooms_edit',
|
|
227
|
+
CAN_HOSTELERS_SETTINGS_ROOMS_DELETE = 'can_hosteler_settings_rooms_delete',
|
|
228
|
+
CAN_HOSTELERS_SETTINGS_ROOMS_IMPORT = 'can_hosteler_settings_import_hostel_rooms',
|
|
229
|
+
CAN_HOSTELERS_SETTINGS_AMENITIES_VIEW = 'can_hosteler_settings_amenities_view',
|
|
230
|
+
CAN_HOSTELERS_SETTINGS_AMENITIES_ADD = 'can_hosteler_settings_amenities_add',
|
|
231
|
+
CAN_HOSTELERS_SETTINGS_AMENITIES_EDIT = 'can_hosteler_settings_amenities_edit',
|
|
232
|
+
CAN_HOSTELERS_SETTINGS_AMENITIES_DELETE = 'can_hosteler_settings_amenities_delete',
|
|
233
|
+
|
|
234
|
+
// Exams
|
|
235
|
+
|
|
236
|
+
// manage exams profile_permissions
|
|
237
|
+
CAN_MANAGE_EXAMS_PROFILE_PERMISSIONS_VIEW = 'can_manage_exams_profile_permissions_view',
|
|
238
|
+
CAN_MANAGE_EXAMS_PROFILE_PERMISSIONS_ADD = 'can_manage_exams_profile_permissions_add',
|
|
239
|
+
CAN_MANAGE_EXAMS_PROFILE_PERMISSIONS_EDIT = 'can_manage_exams_profile_permissions_edit',
|
|
240
|
+
CAN_MANAGE_EXAMS_PROFILE_PERMISSIONS_DELETE = 'can_manage_exams_profile_permissions_delete',
|
|
241
|
+
|
|
242
|
+
// End Semester Examination
|
|
243
|
+
CAN_END_SEMESTER_EXAMINATIONS_VIEW = 'can_end_semester_examinations_view',
|
|
244
|
+
CAN_END_SEMESTER_EXAMINATIONS_ADD = 'can_end_semester_examinations_add',
|
|
245
|
+
CAN_END_SEMESTER_EXAMINATIONS_EDIT = 'can_end_semester_examinations_edit',
|
|
246
|
+
CAN_END_SEMESTER_EXAMINATIONS_DELETE = 'can_end_semester_examinations_delete',
|
|
247
|
+
|
|
248
|
+
// Registrations
|
|
249
|
+
CAN_EXAM_REGISTARTIONS_VIEW = 'can_exam_registrations_view',
|
|
250
|
+
CAN_EXAM_REGISTARTIONS_ADD = 'can_exam_registrations_add',
|
|
251
|
+
|
|
252
|
+
// Fee configuration
|
|
253
|
+
EXAM_FEE_CONFIGURATION_VIEW = 'can_exam_fee_configuration_view',
|
|
254
|
+
EXAM_FEE_CONFIGURATION_ADD = 'can_exam_fee_configuration_add',
|
|
255
|
+
|
|
256
|
+
// Time table
|
|
257
|
+
CAN_EXAM_TIMETABLE_VIEW = 'can_exam_timetable_view',
|
|
258
|
+
CAN_EXAM_TIMETABLE_ADD = 'can_exam_timetable_add',
|
|
259
|
+
CAN_EXAM_TIMETABLE_EDIT = 'can_exam_timetable_edit',
|
|
260
|
+
CAN_EXAM_TIMETABLE_DELETE = 'can_exam_timetable_delete',
|
|
261
|
+
|
|
262
|
+
// Hall tickets
|
|
263
|
+
CAN_HALL_TICKETS_VIEW = 'can_hall_tickets_view',
|
|
264
|
+
|
|
265
|
+
// OMRS
|
|
266
|
+
CAN_OMRS_VIEW = 'can_omrs_view',
|
|
267
|
+
CAN_OMRS_UPDATE = 'can_omrs_update',
|
|
268
|
+
CAN_OMRS_GENERATE = 'can_omrs_generate',
|
|
269
|
+
|
|
270
|
+
// Paper Configuration
|
|
271
|
+
CAN_PAPER_CONFIGURATION_VIEW = 'can_paper_configuration_view',
|
|
272
|
+
CAN_PAPER_CONFIGURATION_ADD = 'can_paper_configuration_add',
|
|
273
|
+
CAN_PAPER_CONFIGURATION_EDIT = 'can_paper_configuration_edit',
|
|
274
|
+
CAN_PAPER_CONFIGURATION_DELETE = 'can_paper_configuration_delete',
|
|
275
|
+
|
|
276
|
+
// D Form
|
|
277
|
+
CAN_D_FORM_VIEW = 'can_d_forms_view',
|
|
278
|
+
CAN_D_FORM_ADD = 'can_d_forms_add',
|
|
279
|
+
|
|
280
|
+
// Bundling
|
|
281
|
+
CAN_VIEW_ANSWER_SHEET_REPORT = 'can_view_answer_sheet_report',
|
|
282
|
+
CAN_BUNDLING_VIEW = 'can_bundling_view',
|
|
283
|
+
CAN_BUNDLING_ADD = 'can_bundling_add',
|
|
284
|
+
CAN_BUNDLING_EDIT = 'can_bundling_edit',
|
|
285
|
+
CAN_BUNDLING_DELETE = 'can_bundling_delete',
|
|
286
|
+
CAN_BUNDLING_UPDATE_BUNDLE_STATUS = 'can_bundling_update_bundle_status',
|
|
287
|
+
CAN_BUNDLING_BUNDLE_SHEETS_ADD = 'can_bundling_bundle_sheets_add',
|
|
288
|
+
CAN_BUNDLING_BUNDLE_SHEETS_REMOVE = 'can_bundling_bundle_sheets_remove',
|
|
289
|
+
|
|
290
|
+
// Internal Marks
|
|
291
|
+
CAN_INTERNAL_MARKS_VIEW = 'can_internal_marks_view',
|
|
292
|
+
CAN_INTERNAL_MARKS_ADD = 'can_internal_marks_add',
|
|
293
|
+
CAN_INTERNAL_MARKS_EDIT = 'can_internal_marks_edit',
|
|
294
|
+
CAN_INTERNAL_MARKS_IMPORT = 'can_internal_marks_import',
|
|
295
|
+
CAN_INTERANL_MARKS_IMPORT_LMS = 'can_internal_marks_import_lms',
|
|
296
|
+
|
|
297
|
+
// External Marks
|
|
298
|
+
CAN_EXTERNAL_MARKS_VIEW = 'can_external_marks_view',
|
|
299
|
+
CAN_EXTERNAL_MARKS_ADD = 'can_external_marks_add',
|
|
300
|
+
CAN_EXTERNAL_MARKS_EDIT = 'can_external_marks_edit',
|
|
301
|
+
|
|
302
|
+
// Result Processing
|
|
303
|
+
CAN_RESULTS_PROCESSING_VIEW = 'can_results_processing_view_reports',
|
|
304
|
+
|
|
305
|
+
CAN_RESULTS_PROCESSING_GENERATE_MEMOS = 'can_results_processing_generate_memos',
|
|
306
|
+
CAN_RESULTS_PROCESSING_MODERATION_AND_GRAFTING = 'can_results_processing_moderation_and_grafting',
|
|
307
|
+
CAN_RESULTS_PROCESSING_PUBLISH_RESULTS = 'can_results_processing_publish_results',
|
|
308
|
+
CAN_RESULTS_PROCESSING_UPDATE_INTERNAL_MARKS = 'can_results_processing_update_internal_marks',
|
|
309
|
+
|
|
310
|
+
// Revaluation Fee Configuration
|
|
311
|
+
CAN_REVALUATION_FEE_CONFIGURATION_VIEW = 'can_revaluation_fee_configuration_view',
|
|
312
|
+
CAN_REVAULATION_FEE_CONFIGURATION_ADD = 'can_revaluation_fee_configuration_add',
|
|
313
|
+
|
|
314
|
+
//Revaluation
|
|
315
|
+
CAN_REVALUATION_VIEW = 'can_revaluation_view',
|
|
316
|
+
CAN_REVALUATION_REGISTRATIONS_ADD = 'can_revaluation_add_registrations',
|
|
317
|
+
CAN_REVALUATION_OMRS = 'can_revaluation_omrs',
|
|
318
|
+
CAN_REVALUATION_ADD_MARKS = 'can_revaluation_add_marks',
|
|
319
|
+
CAN_REVALUATION_EDIT_MARKS = 'can_revaluation_edit_marks',
|
|
320
|
+
CAN_REVALUATION_PROCESS_REVAL = 'can_revaluation_process_reval',
|
|
321
|
+
CAN_REVALUATION_VIEW_REPORTS = 'can_revaluation_view_reports',
|
|
322
|
+
CAN_REVALUATION_GENERATE_MEMOS = 'can_revaluation_generate_memos',
|
|
323
|
+
|
|
324
|
+
// Internal Examinations
|
|
325
|
+
CAN_INTERNAL_EXAMINATIONS_VIEW = 'can_internal_examinations_view',
|
|
326
|
+
CAN_INTERNAL_EXAMINATIONS_ADD = 'can_internal_examinations_add',
|
|
327
|
+
CAN_INTERNAL_EXAMINATIONS_EDIT = 'can_internal_examinations_edit',
|
|
328
|
+
CAN_INTERNAL_EXAMINATIONS_DELETE = 'can_internal_examinations_delete',
|
|
329
|
+
CAN_INTERNAL_EXAMINATIONS_MANAGE_EXAM_FEE = 'can_internal_examinations_manage_exam_fee',
|
|
330
|
+
|
|
331
|
+
// Seating Plan
|
|
332
|
+
SEATING_PLAN = 'can_examinations_seating_plan',
|
|
333
|
+
CAN_SEATING_PLAN_VIEW = 'can_seating_plan_view',
|
|
334
|
+
CAN_SEATING_PLAN_ADD = 'can_seating_plan_add',
|
|
335
|
+
CAN_SEATING_PLAN_DELETE = 'can_seating_plan_delete',
|
|
336
|
+
|
|
337
|
+
// Invigilations
|
|
338
|
+
CAN_INVIGILATIONS_VIEW = 'can_invigilations_view',
|
|
339
|
+
CAN_INVIGILATIONS_ADD = 'can_invigilations_add',
|
|
340
|
+
|
|
341
|
+
// Evaluators
|
|
342
|
+
CAN_EVALUATORS_VIEW = 'can_evaluators_view',
|
|
343
|
+
CAN_EVALUATORS_ADD = 'can_evaluators_add',
|
|
344
|
+
CAN_EVALUATORS_EDIT = 'can_evaluators_edit',
|
|
345
|
+
CAN_EVALUATORS_DELETE = 'can_evaluators_delete',
|
|
346
|
+
|
|
347
|
+
// Grades
|
|
348
|
+
CAN_GRADES_ADD = 'can_grades_add',
|
|
349
|
+
CAN_GRADES_EDIT = 'can_grades_edit',
|
|
350
|
+
CAN_GRADES_DELETE = 'can_grades_delete',
|
|
351
|
+
CAN_GRADES_VIEW = 'can_grades_view',
|
|
352
|
+
|
|
353
|
+
// Rooms
|
|
354
|
+
CAN_EXAM_ROOM_VIEW = 'can_exam_rooms_view',
|
|
355
|
+
CAN_EXAM_ROOM_ADD = 'can_exam_rooms_add',
|
|
356
|
+
CAN_EXAM_ROOM_EDIT = 'can_exam_rooms_edit',
|
|
357
|
+
CAN_EXAM_ROOM_DELETE = 'can_exam_rooms_delete',
|
|
358
|
+
|
|
359
|
+
// Marks Division
|
|
360
|
+
CAN_MARKS_DIVISION_VIEW = 'can_marks_division_view',
|
|
361
|
+
CAN_MARKS_DIVISION_ADD = 'can_marks_division_add',
|
|
362
|
+
CAN_MARKS_DIVISION_EDIT = 'can_marks_division_edit',
|
|
363
|
+
CAN_MARKS_DIVISION_DELETE = 'can_marks_division_delete',
|
|
364
|
+
|
|
365
|
+
// Time slots
|
|
366
|
+
CAN_EXAM_TIME_SLOTS_VIEW = 'can_exam_time_slots_view',
|
|
367
|
+
CAN_EXAM_TIME_SLOTS_ADD = 'can_exam_time_slots_add',
|
|
368
|
+
CAN_EXAM_TIME_SLOTS_EDIT = 'can_exam_time_slots_edit',
|
|
369
|
+
CAN_EXAM_TIME_SLOTS_DELETE = 'can_exam_time_slots_delete',
|
|
370
|
+
|
|
371
|
+
CAN_INDIVIDUAL_PAGES_VIEW = 'can_individual_pages_view',
|
|
372
|
+
CAN_SETTINGS_VIEW = 'can_settings_view',
|
|
373
|
+
CAN_DASHBOARD_VIEW = 'can_dashboard_view',
|
|
374
|
+
|
|
375
|
+
// Payments
|
|
376
|
+
// manage payments profile_permissions
|
|
377
|
+
CAN_MANAGE_PAYMENTS_PROFILE_PERMISSIONS_VIEW = 'can_manage_payments_profile_permissions_view',
|
|
378
|
+
CAN_MANAGE_PAYMENTS_PROFILE_PERMISSIONS_ADD = 'can_manage_payments_profile_permissions_add',
|
|
379
|
+
CAN_MANAGE_PAYMENTS_PROFILE_PERMISSIONS_EDIT = 'can_manage_payments_profile_permissions_edit',
|
|
380
|
+
CAN_MANAGE_PAYMENTS_PROFILE_PERMISSIONS_DELETE = 'can_manage_payments_profile_permissions_delete',
|
|
381
|
+
|
|
382
|
+
// MANAGE_USER_GROUPS = 'can_manage_user_groups',
|
|
383
|
+
// MANAGE_ASSESSMENTS = 'can_manage_assessments',
|
|
384
|
+
// EDIT_ANSWER_SHEET_MARKS = 'can_edit_answer_sheet_marks',
|
|
385
|
+
// EDIT_EXTERNAL_MARKS = 'can_edit_external_marks',
|
|
386
|
+
// EXAM_COLLATERALS = 'can_exam_collaterals',
|
|
387
|
+
|
|
388
|
+
// EDIT_INTERNAL_MARKS = 'can_edit_internal_marks',
|
|
389
|
+
// PROCESS_RESULTS = 'can_process_results',
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export interface IPermissions {
|
|
393
|
+
// view
|
|
394
|
+
can_view_audit_logs: boolean
|
|
395
|
+
can_students_view: boolean
|
|
396
|
+
can_admissions_view: boolean
|
|
397
|
+
can_users_view: boolean
|
|
398
|
+
can_subjects_view: boolean
|
|
399
|
+
can_course_registration_view: boolean
|
|
400
|
+
|
|
401
|
+
can_internal_examinations_view: boolean
|
|
402
|
+
can_view_answer_sheet_report: boolean
|
|
403
|
+
can_feed_add: boolean
|
|
404
|
+
can_classroom_view: boolean
|
|
405
|
+
can_classroom_edit: boolean
|
|
406
|
+
can_classroom_delete: boolean
|
|
407
|
+
can_classroom_add: boolean
|
|
408
|
+
can_tasks_view: boolean
|
|
409
|
+
can_classroom_revoke_marks: boolean
|
|
410
|
+
// manage
|
|
411
|
+
can_manage_roles_and_profiles: boolean
|
|
412
|
+
can_manage_user_groups: boolean
|
|
413
|
+
can_manage_programs: boolean
|
|
414
|
+
can_manage_courses: boolean
|
|
415
|
+
can_manage_semesters: boolean
|
|
416
|
+
can_manage_curriculums: boolean
|
|
417
|
+
can_manage_assessments: boolean
|
|
418
|
+
|
|
419
|
+
//department
|
|
420
|
+
can_departments_view: boolean
|
|
421
|
+
can_departments_add: boolean
|
|
422
|
+
can_departments_edit: boolean
|
|
423
|
+
can_departments_delete: boolean
|
|
424
|
+
|
|
425
|
+
can_users_add: boolean
|
|
426
|
+
can_users_edit: boolean
|
|
427
|
+
can_users_delete: boolean
|
|
428
|
+
can_users_reorder: boolean
|
|
429
|
+
can_admissions_add: boolean
|
|
430
|
+
can_admissions_edit: boolean
|
|
431
|
+
can_admissions_delete: boolean
|
|
432
|
+
can_admissions_change_status: boolean
|
|
433
|
+
can_admissions_import: boolean
|
|
434
|
+
can_admissions_export: boolean
|
|
435
|
+
can_admissions_confirm: boolean
|
|
436
|
+
can_students_add: boolean
|
|
437
|
+
can_students_edit: boolean
|
|
438
|
+
can_students_delete: boolean
|
|
439
|
+
can_students_detain: boolean
|
|
440
|
+
can_students_import: boolean
|
|
441
|
+
can_students_export: boolean
|
|
442
|
+
can_students_results: boolean
|
|
443
|
+
can_students_upload_photos: boolean
|
|
444
|
+
can_students_transfer: boolean
|
|
445
|
+
can_students_allotment: boolean
|
|
446
|
+
can_subjects_add: boolean
|
|
447
|
+
can_subjects_edit: boolean
|
|
448
|
+
can_subjects_delete: boolean
|
|
449
|
+
can_subjects_edit_subject_info: boolean
|
|
450
|
+
can_course_registration_add: boolean
|
|
451
|
+
can_course_registration_edit: boolean
|
|
452
|
+
can_course_registration_delete: boolean
|
|
453
|
+
can_end_semester_examinations_view: boolean
|
|
454
|
+
can_end_semester_examinations_add: boolean
|
|
455
|
+
can_end_semester_examinations_edit: boolean
|
|
456
|
+
can_end_semester_examinations_delete: boolean
|
|
457
|
+
can_end_semester_examinations_seating_plan: boolean
|
|
458
|
+
can_end_semester_examinations_manage_exam_fee: boolean
|
|
459
|
+
can_end_semester_examinations_d_forms: boolean
|
|
460
|
+
can_end_semester_examinations_bundling: boolean
|
|
461
|
+
can_end_semester_examinations_marks_entry: boolean
|
|
462
|
+
can_end_semester_examinations_invigilations: boolean
|
|
463
|
+
can_examinations_seating_plan: boolean
|
|
464
|
+
can_internal_examinations_add: boolean
|
|
465
|
+
can_internal_examinations_edit: boolean
|
|
466
|
+
can_internal_examinations_delete: boolean
|
|
467
|
+
can_internal_examinations_manage_exam_fee: boolean
|
|
468
|
+
can_internal_examinations_manage_halltickets: boolean
|
|
469
|
+
can_internal_examinations_seating_plan: boolean
|
|
470
|
+
can_internal_examinations_invigilations: boolean
|
|
471
|
+
can_extra_curricular_activities_news_feed: boolean
|
|
472
|
+
can_extra_curricular_activities_clubs: boolean
|
|
473
|
+
can_extra_curricular_activities_events: boolean
|
|
474
|
+
can_edit_answer_sheet_marks: boolean
|
|
475
|
+
can_edit_external_marks: boolean
|
|
476
|
+
can_exam_collaterals: boolean
|
|
477
|
+
can_revalution: boolean
|
|
478
|
+
can_edit_internal_marks: boolean
|
|
479
|
+
can_process_results: boolean
|
|
480
|
+
can_generate_memos: boolean
|
|
481
|
+
can_individual_pages_view: boolean
|
|
482
|
+
can_tasks_add: boolean
|
|
483
|
+
can_tasks_edit: boolean
|
|
484
|
+
can_tasks_change_status: boolean
|
|
485
|
+
can_tasks_delete: boolean
|
|
486
|
+
can_classroom_subject_attendance_edit: boolean
|
|
487
|
+
can_classroom_subjects_view: boolean
|
|
488
|
+
can_internal_marks_import: boolean
|
|
489
|
+
can_internal_marks_import_lms: boolean
|
|
490
|
+
can_grades_add: boolean
|
|
491
|
+
can_grades_edit: boolean
|
|
492
|
+
can_grades_delete: boolean
|
|
493
|
+
can_grades_view: boolean
|
|
494
|
+
can_assessment_templates_add: boolean
|
|
495
|
+
can_assessment_templates_edit: boolean
|
|
496
|
+
can_assessment_templates_view: boolean
|
|
497
|
+
can_assessment_templates_delete: boolean
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
interface IPermissionsStore {
|
|
501
|
+
permissions: IPermissions
|
|
502
|
+
applications: string[]
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
export const PermissionsStore = new Store<IPermissionsStore>({
|
|
506
|
+
permissions: null,
|
|
507
|
+
applications: [],
|
|
508
|
+
})
|