@campxdev/shared 1.10.39 → 1.10.40

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": "1.10.39",
3
+ "version": "1.10.40",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -1,7 +1,6 @@
1
1
  import { InsertPhotoOutlined } from '@mui/icons-material'
2
- import { Box, CircularProgress, styled, Typography } from '@mui/material'
2
+ import { styled, Typography } from '@mui/material'
3
3
  import { ReactNode, useRef, useState } from 'react'
4
- import { toast } from 'react-toastify'
5
4
  import axios, { axiosErrorToast } from '../config/axios'
6
5
 
7
6
  interface ImageUploadProps {
@@ -29,6 +28,7 @@ export default function ImageUpload({
29
28
  .post(postUrl, formData)
30
29
  .then((res) => {
31
30
  onFileUploaded({
31
+ mediaObject: res?.data?.mediaObject,
32
32
  url: res.data.url,
33
33
  key: res.data.key,
34
34
  fileName: res.data?.mediaObject?.originalFileName ?? '',
@@ -766,6 +766,29 @@ export enum Permission {
766
766
  CAN_INSTITUTION_CONFIGURATION_VIEW = 'can_institution_configuration_view',
767
767
  CAN_INSTITUTION_CONFIGURATION_EDIT = 'can_institution_configuration_edit',
768
768
 
769
+ // Infrastructure
770
+ CAN_INFRASTRUCTURE_BUILDINGS_ADD = 'can_infrastructure_buildings_add',
771
+ CAN_INFRASTRUCTURE_BUILDINGS_EDIT = 'can_infrastructure_buildings_edit',
772
+ CAN_INFRASTRUCTURE_BUILDINGS_VIEW = 'can_infrastructure_buildings_view',
773
+ CAN_INFRASTRUCTURE_BUILDINGS_DELETE = 'can_infrastructure_buildings_delete',
774
+
775
+ CAN_INFRASTRUCTURE_LABS_ADD = 'can_infrastructure_labs_add',
776
+ CAN_INFRASTRUCTURE_LABS_EDIT = 'can_infrastructure_labs_edit',
777
+ CAN_INFRASTRUCTURE_LABS_VIEW = 'can_infrastructure_labs_view',
778
+ CAN_INFRASTRUCTURE_LABS_DELETE = 'can_infrastructure_labs_delete',
779
+
780
+ CAN_INFRASTRUCTURE_CLASSROOMS_ADD = 'can_infrastructure_classrooms_add',
781
+ CAN_INFRASTRUCTURE_CLASSROOMS_EDIT = 'can_infrastructure_classrooms_edit',
782
+ CAN_INFRASTRUCTURE_CLASSROOMS_VIEW = 'can_infrastructure_classrooms_view',
783
+ CAN_INFRASTRUCTURE_CLASSROOMS_DELETE = 'can_infrastructure_classrooms_delete',
784
+
785
+ CAN_INFRASTRUCTURE_EQUIPMENTS_ADD = 'can_infrastructure_equipments_add',
786
+ CAN_INFRASTRUCTURE_EQUIPMENTS_EDIT = 'can_infrastructure_equipments_edit',
787
+ CAN_INFRASTRUCTURE_EQUIPMENTS_VIEW = 'can_infrastructure_equipments_view',
788
+ CAN_INFRASTRUCTURE_EQUIPMENTS_DELETE = 'can_infrastructure_equipments_delete',
789
+ CAN_INFRASTRUCTURE_EQUIPMENTS_HISTORY_MANAGE = 'can_infrastructure_equipments_history_manage',
790
+ CAN_INFRASTRUCTURE_EQUIPMENTS_DOCUMENTS_MANAGE = 'can_infrastructure_equipments_documents_manage',
791
+
769
792
  // Feed
770
793
  CAN_ADD_FEED = 'can_feed_add',
771
794