@campxdev/shared 3.1.3-alpha4 → 3.1.4

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": "3.1.3-alpha4",
3
+ "version": "3.1.4",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -41,6 +41,7 @@ const ClassRoomSelector = (props: ClassRoomSelectorProps) => {
41
41
  axios
42
42
  .get(api, {
43
43
  params: filters,
44
+ workspace: false,
44
45
  })
45
46
  .then((response) => {
46
47
  setOptions(response.data)
@@ -54,7 +55,9 @@ const ClassRoomSelector = (props: ClassRoomSelectorProps) => {
54
55
  }
55
56
  } else if (options.length === 0) {
56
57
  axios
57
- .get(api)
58
+ .get(api, {
59
+ workspace: false,
60
+ })
58
61
  .then((response) => {
59
62
  setOptions(response.data)
60
63
  })
@@ -29,7 +29,9 @@ export default function CourseSelector(props: CourseSelectorProps) {
29
29
  const handleOpen = () => {
30
30
  if (options.length === 0) {
31
31
  axios
32
- .get(api)
32
+ .get(api, {
33
+ workspace: false,
34
+ })
33
35
  .then((response) => {
34
36
  setOptions(response.data)
35
37
  })
@@ -27,7 +27,9 @@ export default function DepartmentSelector(props: DepartmentSelectorProps) {
27
27
  const handleOpen = () => {
28
28
  if (options.length === 0) {
29
29
  axios
30
- .get(api)
30
+ .get(api, {
31
+ workspace: false,
32
+ })
31
33
  .then((response) => {
32
34
  setOptions(response.data.data)
33
35
  })
@@ -43,6 +43,7 @@ const ExamGroupSelector = (props: ExamGroupSelectorProps) => {
43
43
  isArchived: 'false',
44
44
  isExamPublished: 'true',
45
45
  },
46
+ workspace: false,
46
47
  })
47
48
  .then((response) => {
48
49
  setOptions(
@@ -64,6 +65,7 @@ const ExamGroupSelector = (props: ExamGroupSelectorProps) => {
64
65
  isArchived: 'false',
65
66
  isExamPublished: 'true',
66
67
  },
68
+ workspace: false,
67
69
  })
68
70
  .then((response) => {
69
71
  setOptions(
@@ -38,6 +38,7 @@ const FacultySelector = (props: FacultySelectorProps) => {
38
38
  axios
39
39
  .get(api, {
40
40
  params: filters,
41
+ workspace: false,
41
42
  })
42
43
  .then((response) => {
43
44
  setOptions(response.data.data)
@@ -19,7 +19,9 @@ export default function FeeTypeSelector(props: FeeTypeSelectorProps) {
19
19
  const handleOpen = () => {
20
20
  if (options.length === 0) {
21
21
  axios
22
- .get('/paymentx/fee-types')
22
+ .get('/paymentx/fee-types', {
23
+ workspace: false,
24
+ })
23
25
  .then((response) => {
24
26
  setOptions(response.data)
25
27
  })
@@ -35,6 +35,7 @@ const ProgramSelector = (props: ProgramSelectorProps) => {
35
35
  axios
36
36
  .get(api, {
37
37
  params: filters,
38
+ workspace: false,
38
39
  })
39
40
  .then((response) => {
40
41
  setOptions(response.data)
@@ -46,7 +47,9 @@ const ProgramSelector = (props: ProgramSelectorProps) => {
46
47
  }
47
48
  } else if (options.length === 0) {
48
49
  axios
49
- .get(api)
50
+ .get(api, {
51
+ workspace: false,
52
+ })
50
53
  .then((response) => {
51
54
  setOptions(response.data)
52
55
  })
@@ -33,6 +33,7 @@ export default function QuotaSelector(props: QuotaSelectorProps) {
33
33
  axios
34
34
  .get(api, {
35
35
  params: filters,
36
+ workspace: false,
36
37
  })
37
38
  .then((response) => {
38
39
  setOptions(
@@ -46,7 +47,9 @@ export default function QuotaSelector(props: QuotaSelectorProps) {
46
47
  }
47
48
  } else if (options.length === 0) {
48
49
  axios
49
- .get(api)
50
+ .get(api, {
51
+ workspace: false,
52
+ })
50
53
  .then((response) => {
51
54
  setOptions(
52
55
  api == '/square/quotas' ? response.data : response.data.quota,
@@ -33,6 +33,7 @@ const SemesterSelector = (props: SemesterSelectorProps) => {
33
33
  axios
34
34
  .get(api, {
35
35
  params: filters,
36
+ workspace: false,
36
37
  })
37
38
  .then((response) => {
38
39
  setOptions(response.data)
@@ -44,7 +45,9 @@ const SemesterSelector = (props: SemesterSelectorProps) => {
44
45
  }
45
46
  } else if (options.length === 0) {
46
47
  axios
47
- .get(api)
48
+ .get(api, {
49
+ workspace: false,
50
+ })
48
51
  .then((response) => {
49
52
  setOptions(response.data)
50
53
  })