@eeplatform/basic-edu 1.8.8 → 1.9.1
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 +13 -0
- package/dist/index.d.ts +16 -3
- package/dist/index.js +8948 -8636
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9830 -9518
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @eeplatform/basic-edu
|
|
2
2
|
|
|
3
|
+
## 1.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9d87b09: Revise error message for invalid id
|
|
8
|
+
- a3246cf: Updated error message
|
|
9
|
+
|
|
10
|
+
## 1.9.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- a293362: Enrollment management - generate sample data
|
|
15
|
+
|
|
3
16
|
## 1.8.8
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -286,11 +286,9 @@ type TReturningLearnerInfo = {
|
|
|
286
286
|
lastSchoolYearCompleted: string;
|
|
287
287
|
lastSchoolAttended: string;
|
|
288
288
|
lastSchoolId?: string;
|
|
289
|
-
isReturningLearner: boolean;
|
|
290
|
-
isTransferIn: boolean;
|
|
291
289
|
};
|
|
292
290
|
type TSeniorHighInformation = {
|
|
293
|
-
semester:
|
|
291
|
+
semester: string;
|
|
294
292
|
track: string;
|
|
295
293
|
strand: string;
|
|
296
294
|
};
|
|
@@ -377,6 +375,20 @@ declare function useEnrollmentService(): {
|
|
|
377
375
|
}>;
|
|
378
376
|
updateStatusById: (_id: string, status: string) => Promise<string>;
|
|
379
377
|
updateStatusWithId: (_id: string, status: string) => Promise<string>;
|
|
378
|
+
generateEnrollmentData: (payload: {
|
|
379
|
+
school: string;
|
|
380
|
+
schoolYear: string;
|
|
381
|
+
gradeLevel: string;
|
|
382
|
+
specialProgram?: string;
|
|
383
|
+
numberOfApplications: number;
|
|
384
|
+
}) => Promise<{
|
|
385
|
+
message: string;
|
|
386
|
+
createdEnrollments: {
|
|
387
|
+
message: string;
|
|
388
|
+
id: bson.ObjectId;
|
|
389
|
+
}[];
|
|
390
|
+
totalCreated: number;
|
|
391
|
+
}>;
|
|
380
392
|
};
|
|
381
393
|
|
|
382
394
|
declare function useEnrollmentController(): {
|
|
@@ -384,6 +396,7 @@ declare function useEnrollmentController(): {
|
|
|
384
396
|
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
385
397
|
updateStatusById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
386
398
|
updateStatusWithId: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
399
|
+
generateEnrollmentData: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
387
400
|
};
|
|
388
401
|
|
|
389
402
|
type TGradeLevel = {
|