@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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @eeplatform/basic-edu
2
2
 
3
+ ## 1.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a293362: Enrollment management - generate sample data
8
+
9
+ ## 1.8.8
10
+
11
+ ### Patch Changes
12
+
13
+ - cd82d95: Section Mgmt - revised generation
14
+
3
15
  ## 1.8.7
4
16
 
5
17
  ### 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: "1st" | "2nd";
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>;