@eeplatform/basic-edu 1.10.37 → 1.10.39
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/CHANGELOG.md +12 -0
- package/CLAUDE.md +274 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5424,7 +5424,8 @@ function useEnrollmentService() {
|
|
|
5424
5424
|
getAll: _getAll,
|
|
5425
5425
|
getByApplicantInfo: _getByApplicantInfo,
|
|
5426
5426
|
getById: _getById,
|
|
5427
|
-
updateStatusById: _updateStatusById
|
|
5427
|
+
updateStatusById: _updateStatusById,
|
|
5428
|
+
removeProgramById
|
|
5428
5429
|
} = useEnrollmentRepo();
|
|
5429
5430
|
const {
|
|
5430
5431
|
add: addProgramScreening,
|
|
@@ -5619,6 +5620,7 @@ function useEnrollmentService() {
|
|
|
5619
5620
|
}
|
|
5620
5621
|
if (programScreening && programScreening.status === "cancelled" && enrollment.status === "cancelled" && enrollment.specialProgram && status === "pending") {
|
|
5621
5622
|
await updateStatusByApplicantId(_id, "reclassified", session);
|
|
5623
|
+
await removeProgramById(_id, session);
|
|
5622
5624
|
}
|
|
5623
5625
|
await session.commitTransaction();
|
|
5624
5626
|
return "Enrollment accepted successfully";
|
|
@@ -6472,7 +6474,7 @@ function useSchoolRepo() {
|
|
|
6472
6474
|
cacheKeyOptions.prefix = prefix;
|
|
6473
6475
|
}
|
|
6474
6476
|
if (search) {
|
|
6475
|
-
query.$text = { $search: search };
|
|
6477
|
+
query.$text = { $search: `"${search}"` };
|
|
6476
6478
|
cacheKeyOptions.search = search;
|
|
6477
6479
|
}
|
|
6478
6480
|
const cacheKey = makeCacheKey8(namespace_collection, cacheKeyOptions);
|
|
@@ -40019,7 +40021,7 @@ var allowedSectionStudentStatuses = [
|
|
|
40019
40021
|
];
|
|
40020
40022
|
var schemaSectionStudent = Joi33.object({
|
|
40021
40023
|
_id: Joi33.string().hex().optional().allow(null, ""),
|
|
40022
|
-
lrn: Joi33.string().
|
|
40024
|
+
lrn: Joi33.string().optional().allow(null, ""),
|
|
40023
40025
|
school: Joi33.string().hex().required(),
|
|
40024
40026
|
schoolName: Joi33.string().optional().allow(null, ""),
|
|
40025
40027
|
section: Joi33.string().hex().required(),
|
|
@@ -42451,9 +42453,6 @@ function useSectionService() {
|
|
|
42451
42453
|
if (!student._id) {
|
|
42452
42454
|
throw new BadRequestError64("Learner ID is missing.");
|
|
42453
42455
|
}
|
|
42454
|
-
if (!student.learnerInfo.lrn) {
|
|
42455
|
-
throw new BadRequestError64("Learner LRN is missing.");
|
|
42456
|
-
}
|
|
42457
42456
|
const existingStudent = await getStudent({
|
|
42458
42457
|
student: student._id.toString(),
|
|
42459
42458
|
schoolYear: value.schoolYear,
|