@eeplatform/basic-edu 1.8.7 → 1.9.0
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/dist/index.d.ts +19 -3
- package/dist/index.js +8037 -7617
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6167 -5747
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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 = {
|
|
@@ -473,6 +486,7 @@ declare function useGradeLevelController(): {
|
|
|
473
486
|
updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
474
487
|
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
475
488
|
getByEducationLevel: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
489
|
+
getByGradeLevel: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
476
490
|
};
|
|
477
491
|
|
|
478
492
|
type TRegion = {
|
|
@@ -870,6 +884,7 @@ declare function useLearnerRepo(): {
|
|
|
870
884
|
school: string | ObjectId;
|
|
871
885
|
schoolYear: string;
|
|
872
886
|
gradeLevel: string;
|
|
887
|
+
specialProgram?: string | ObjectId;
|
|
873
888
|
status?: string;
|
|
874
889
|
}, session?: ClientSession) => Promise<number>;
|
|
875
890
|
updateStatusById: (_id: string | ObjectId, status: string, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
@@ -1013,6 +1028,7 @@ declare function useSectionRepo(): {
|
|
|
1013
1028
|
declare function useSectionController(): {
|
|
1014
1029
|
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1015
1030
|
generateSections: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1031
|
+
generateSectionPreview: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1016
1032
|
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1017
1033
|
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1018
1034
|
getByName: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|