@campxdev/shared 2.0.16 → 2.0.18

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "2.0.16",
3
+ "version": "2.0.18",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -60,7 +60,7 @@ export const DeviceInformationCard = ({ sessionData, refetch }) => {
60
60
  <Stack direction="row" alignItems="center" gap={2}>
61
61
  <StyledIconContainer>
62
62
  <img
63
- src={sessionData.type == 'WEB' ? web.default : mobile.default}
63
+ src={(sessionData.type = 'WEB' ? web.default : mobile.default)}
64
64
  />
65
65
  </StyledIconContainer>
66
66
  <Stack>
@@ -32,6 +32,7 @@ interface ApplicationProfileProps {
32
32
  | 'hrms'
33
33
  | 'commute_x'
34
34
  | 'admin'
35
+ | 'dashboards'
35
36
  title: string
36
37
  permissions?: {
37
38
  add: string
@@ -65,7 +65,7 @@ export const WorkshopForm = ({ data, hideDialog }) => {
65
65
  ...data,
66
66
  fromDate: data ? moment(data.fromDate).toISOString() : '',
67
67
  toDate: data ? moment(data.toDate).toISOString() : '',
68
- image: [{ key: data?.image?.key, url: data?.image?.url }],
68
+ image: [{ key: data?.image?.key, url: data?.image?.url }] ?? [],
69
69
  },
70
70
  })
71
71
  const { mutate, isLoading } = useMutation(createUpdateWorkshop, {
@@ -141,6 +141,10 @@ export const ProfileApplicationType = [
141
141
  label: 'AdminX',
142
142
  value: 'admin',
143
143
  },
144
+ {
145
+ label: 'Dashboards',
146
+ value: 'dashboards',
147
+ },
144
148
  ]
145
149
 
146
150
  export interface Option {
@@ -538,6 +538,17 @@ export enum ExamsPermissions {
538
538
  CAN_INTERNAL_EXAMINATIONS_DELETE = 'can_internal_examinations_delete',
539
539
  CAN_INTERNAL_EXAMINATIONS_MANAGE_EXAM_FEE = 'can_internal_examinations_manage_exam_fee',
540
540
 
541
+ // Empty Booklet Groups
542
+ CAN_EMPTY_BOOKLET_GROUP_VIEW = 'can_empty_booklet_group_view',
543
+ CAN_EMPTY_BOOKLET_GROUP_ADD = 'can_empty_booklet_group_add',
544
+ CAN_EMPTY_BOOKLET_GROUP_EDIT = 'can_empty_booklet_group_edit',
545
+ CAN_EMPTY_BOOKLET_GROUP_DELETE = 'can_empty_booklet_group_delete',
546
+
547
+ // INternal Exam Booklet Assignment
548
+ CAN_INTERNAL_EXAM_BOOKLET_ASSIGNMENT_VIEW = 'can_internal_exam_booklet_assignment_view',
549
+ CAN_INTERNAL_EXAM_BOOKLET_ASSIGN = 'can_internal_exam_booklet_assign',
550
+ CAN_INTERNAL_EXAM_BOOKLET_UN_ASSIGN = 'can_internal_exam_booklet_un_assign',
551
+
541
552
  // Seating Plan
542
553
  SEATING_PLAN = 'can_examinations_seating_plan',
543
554
  CAN_SEATING_PLAN_VIEW = 'can_seating_plan_view',
@@ -1279,6 +1290,17 @@ export enum Permission {
1279
1290
  CAN_INTERNAL_EXAM_TIMETABLE_EDIT = 'can_internal_exam_timetable_edit',
1280
1291
  CAN_INTERNAL_EXAM_TIMETABLE_DELETE = 'can_internal_exam_timetable_delete',
1281
1292
 
1293
+ // Empty Booklet Groups
1294
+ CAN_EMPTY_BOOKLET_GROUP_VIEW = 'can_empty_booklet_group_view',
1295
+ CAN_EMPTY_BOOKLET_GROUP_ADD = 'can_empty_booklet_group_add',
1296
+ CAN_EMPTY_BOOKLET_GROUP_EDIT = 'can_empty_booklet_group_edit',
1297
+ CAN_EMPTY_BOOKLET_GROUP_DELETE = 'can_empty_booklet_group_delete',
1298
+
1299
+ // INternal Exam Booklet Assignment
1300
+ CAN_INTERNAL_EXAM_BOOKLET_ASSIGNMENT_VIEW = 'can_internal_exam_booklet_assignment_view',
1301
+ CAN_INTERNAL_EXAM_BOOKLET_ASSIGN = 'can_internal_exam_booklet_assign',
1302
+ CAN_INTERNAL_EXAM_BOOKLET_UN_ASSIGN = 'can_internal_exam_booklet_un_assign',
1303
+
1282
1304
  // Seating Plan
1283
1305
  SEATING_PLAN = 'can_examinations_seating_plan',
1284
1306
  CAN_SEATING_PLAN_VIEW = 'can_seating_plan_view',
@@ -2159,6 +2181,13 @@ export interface IPermissions {
2159
2181
  can_classroom_secondary_attendance_add: boolean
2160
2182
  can_classroom_secondary_attendance_edit: boolean
2161
2183
  can_classroom_secondary_attendance_delete: boolean
2184
+ can_empty_booklet_group_view: boolean
2185
+ can_empty_booklet_group_add: boolean
2186
+ can_empty_booklet_group_edit: boolean
2187
+ can_empty_booklet_group_delete: boolean
2188
+ can_internal_exam_booklet_assignment_view: boolean
2189
+ can_internal_exam_booklet_assign: boolean
2190
+ can_internal_exam_booklet_un_assign: boolean
2162
2191
  }
2163
2192
 
2164
2193
  interface IPermissionsStore {