@eeplatform/basic-edu 1.5.0 → 1.5.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @eeplatform/basic-edu
2
2
 
3
+ ## 1.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - a6e3e8d: Add section students indexes
8
+
3
9
  ## 1.5.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -885,4 +885,23 @@ declare function useSectionController(): {
885
885
  deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
886
886
  };
887
887
 
888
- export { MAsset, MCurriculum, MGradeLevel, MLearner, MPlantilla, MStockCard, TAddress, TAddressInformation, TAsset, TBasicEduCount, TCurriculum, TCurriculumSubject, TDivision, TGradeLevel, TLearner, TLearnerInfo, TLearningModality, TParentGuardianInfo, TPersonContact, TPlantilla, TRegion, TReturningLearnerInfo, TSchool, TSection, TSectionPreset, TSeniorHighInformation, TStockCard, modelBasicEduCount, modelDivision, modelRegion, modelSchool, modelSection, modelSectionPreset, schemaAsset, schemaAssetUpdateOption, schemaBasicEduCount, schemaCurriculum, schemaDivision, schemaDivisionUpdate, schemaEnrollment, schemaGenerateSections, schemaGradeLevel, schemaPlantilla, schemaRegion, schemaSchool, schemaSchoolUpdate, schemaSection, schemaSectionPreset, schemaStockCard, schemaUpdateStatus, useAssetController, useAssetRepo, useBasicEduCountRepo, useCurriculumController, useCurriculumRepo, useDivisionController, useDivisionRepo, useDivisionService, useEnrollmentController, useEnrollmentRepo, useEnrollmentService, useGradeLevelController, useGradeLevelRepo, useLearnerController, useLearnerRepo, usePlantillaController, usePlantillaRepo, usePlantillaService, useRegionController, useRegionRepo, useSchoolController, useSchoolRepo, useSchoolService, useSectionController, useSectionPresetController, useSectionPresetRepo, useSectionRepo, useStockCardController, useStockCardRepository, useStockCardService };
888
+ type TSectionStudent = {
889
+ _id?: ObjectId;
890
+ section: ObjectId | string;
891
+ student: string;
892
+ studentName: string;
893
+ status?: string;
894
+ assignedAt?: Date | string;
895
+ updatedAt?: Date | string;
896
+ };
897
+ declare const allowedSectionStudentStatuses: string[];
898
+ declare const schemaSectionStudent: Joi.ObjectSchema<any>;
899
+ declare function modelSectionStudent(value: TSectionStudent): TSectionStudent;
900
+
901
+ declare function useSectionStudentRepo(): {
902
+ createIndexes: () => Promise<void>;
903
+ delCachedData: () => void;
904
+ add: (value: TSectionStudent, session?: ClientSession) => Promise<bson.ObjectId>;
905
+ };
906
+
907
+ export { MAsset, MCurriculum, MGradeLevel, MLearner, MPlantilla, MStockCard, TAddress, TAddressInformation, TAsset, TBasicEduCount, TCurriculum, TCurriculumSubject, TDivision, TGradeLevel, TLearner, TLearnerInfo, TLearningModality, TParentGuardianInfo, TPersonContact, TPlantilla, TRegion, TReturningLearnerInfo, TSchool, TSection, TSectionPreset, TSectionStudent, TSeniorHighInformation, TStockCard, allowedSectionStudentStatuses, modelBasicEduCount, modelDivision, modelRegion, modelSchool, modelSection, modelSectionPreset, modelSectionStudent, schemaAsset, schemaAssetUpdateOption, schemaBasicEduCount, schemaCurriculum, schemaDivision, schemaDivisionUpdate, schemaEnrollment, schemaGenerateSections, schemaGradeLevel, schemaPlantilla, schemaRegion, schemaSchool, schemaSchoolUpdate, schemaSection, schemaSectionPreset, schemaSectionStudent, schemaStockCard, schemaUpdateStatus, useAssetController, useAssetRepo, useBasicEduCountRepo, useCurriculumController, useCurriculumRepo, useDivisionController, useDivisionRepo, useDivisionService, useEnrollmentController, useEnrollmentRepo, useEnrollmentService, useGradeLevelController, useGradeLevelRepo, useLearnerController, useLearnerRepo, usePlantillaController, usePlantillaRepo, usePlantillaService, useRegionController, useRegionRepo, useSchoolController, useSchoolRepo, useSchoolService, useSectionController, useSectionPresetController, useSectionPresetRepo, useSectionRepo, useSectionStudentRepo, useStockCardController, useStockCardRepository, useStockCardService };
package/dist/index.js CHANGED
@@ -1349,12 +1349,14 @@ __export(src_exports, {
1349
1349
  MLearner: () => MLearner,
1350
1350
  MPlantilla: () => MPlantilla,
1351
1351
  MStockCard: () => MStockCard,
1352
+ allowedSectionStudentStatuses: () => allowedSectionStudentStatuses,
1352
1353
  modelBasicEduCount: () => modelBasicEduCount,
1353
1354
  modelDivision: () => modelDivision,
1354
1355
  modelRegion: () => modelRegion,
1355
1356
  modelSchool: () => modelSchool,
1356
1357
  modelSection: () => modelSection,
1357
1358
  modelSectionPreset: () => modelSectionPreset,
1359
+ modelSectionStudent: () => modelSectionStudent,
1358
1360
  schemaAsset: () => schemaAsset,
1359
1361
  schemaAssetUpdateOption: () => schemaAssetUpdateOption,
1360
1362
  schemaBasicEduCount: () => schemaBasicEduCount,
@@ -1370,6 +1372,7 @@ __export(src_exports, {
1370
1372
  schemaSchoolUpdate: () => schemaSchoolUpdate,
1371
1373
  schemaSection: () => schemaSection,
1372
1374
  schemaSectionPreset: () => schemaSectionPreset,
1375
+ schemaSectionStudent: () => schemaSectionStudent,
1373
1376
  schemaStockCard: () => schemaStockCard,
1374
1377
  schemaUpdateStatus: () => schemaUpdateStatus,
1375
1378
  useAssetController: () => useAssetController,
@@ -1399,6 +1402,7 @@ __export(src_exports, {
1399
1402
  useSectionPresetController: () => useSectionPresetController,
1400
1403
  useSectionPresetRepo: () => useSectionPresetRepo,
1401
1404
  useSectionRepo: () => useSectionRepo,
1405
+ useSectionStudentRepo: () => useSectionStudentRepo,
1402
1406
  useStockCardController: () => useStockCardController,
1403
1407
  useStockCardRepository: () => useStockCardRepository,
1404
1408
  useStockCardService: () => useStockCardService
@@ -37415,12 +37419,14 @@ dotenv.config();
37415
37419
  MLearner,
37416
37420
  MPlantilla,
37417
37421
  MStockCard,
37422
+ allowedSectionStudentStatuses,
37418
37423
  modelBasicEduCount,
37419
37424
  modelDivision,
37420
37425
  modelRegion,
37421
37426
  modelSchool,
37422
37427
  modelSection,
37423
37428
  modelSectionPreset,
37429
+ modelSectionStudent,
37424
37430
  schemaAsset,
37425
37431
  schemaAssetUpdateOption,
37426
37432
  schemaBasicEduCount,
@@ -37436,6 +37442,7 @@ dotenv.config();
37436
37442
  schemaSchoolUpdate,
37437
37443
  schemaSection,
37438
37444
  schemaSectionPreset,
37445
+ schemaSectionStudent,
37439
37446
  schemaStockCard,
37440
37447
  schemaUpdateStatus,
37441
37448
  useAssetController,
@@ -37465,6 +37472,7 @@ dotenv.config();
37465
37472
  useSectionPresetController,
37466
37473
  useSectionPresetRepo,
37467
37474
  useSectionRepo,
37475
+ useSectionStudentRepo,
37468
37476
  useStockCardController,
37469
37477
  useStockCardRepository,
37470
37478
  useStockCardService