@campxdev/shared 1.11.7 → 1.11.8

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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "cSpell.words": ["campxdev", "mentee", "mentees"]
3
+ }
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "1.11.7",
3
+ "version": "1.11.8",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "dev": "react-scripts start",
8
8
  "build": "CI=false && react-scripts build",
9
+ "prepublish": "npm run build",
9
10
  "test": "react-scripts test",
10
11
  "eject": "react-scripts eject",
11
12
  "lint": "eslint ./src/**/*.{js,jsx,ts,tsx,json}",
@@ -6,7 +6,7 @@ import { SingleSelect } from '../Input'
6
6
  type QuotaSelectorProps = {
7
7
  name?: string
8
8
  label: string
9
- filters?: { courseId: number }
9
+ filters?: { courseId: number | string }
10
10
  required?: boolean
11
11
  onChange?: (value: any) => void
12
12
  allowAll?: boolean
@@ -195,10 +195,20 @@ export enum SquarePermissions {
195
195
  COURSE_REGISTRATION_DELETE = 'can_course_registration_delete',
196
196
 
197
197
  // Mentors
198
- CAN_MENTORS_VIEW = 'can_mentors_view',
199
- CAN_ALL_MENTORS_VIEW = 'can_all_mentors_view',
200
- CAN_MY_MENTEES_VIEW = 'can_my_mentees_view',
201
- CAN_SESSION_CREATE = 'can_session_create',
198
+ CAN_VIEW_MENTORS = 'can_view_mentors',
199
+ CAN_ADD_MENTORS = 'can_add_mentors',
200
+ CAN_ASSIGN_MENTEES = 'can_assign_mentees',
201
+ CAN_REMOVE_MENTEES = 'can_remove_mentees',
202
+ CAN_VIEW_MENTOR_REPORT = 'can_view_mentor_report',
203
+ CAN_COMMENT_ON_MENTOR_REPORT = 'can_comment_on_mentor_report',
204
+ CAN_VIEW_MENTEES = 'can_view_mentees',
205
+ CAN_CREATE_SESSION = 'can_create_session',
206
+ CAN_VIEW_MENTEE_REPORT = 'can_view_mentee_report',
207
+ CAN_VIEW_MENTOR_SESSIONS = 'can_view_mentor_sessions',
208
+ CAN_VIEW_MENTOR_SESSIONS_COMMENTS = 'can_view_mentor_sessions_comments',
209
+ CAN_ADD_MENTOR_SESSIONS_COMMENTS = 'can_add_mentor_sessions_comments',
210
+ CAN_EDIT_MENTOR_SESSIONS_COMMENTS = 'can_edit_mentor_sessions_comments',
211
+ CAN_DELETE_MENTOR_SESSIONS_COMMENTS = 'can_delete_mentor_sessions_comments',
202
212
 
203
213
  // Extra Cirricular activities
204
214
  EXTRA_CURRICULAR_ACTIVITIES_NEWS_FEED = 'can_extra_curricular_activities_news_feed',