@eeplatform/basic-edu 1.8.0 → 1.8.2
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 +92 -3
- package/dist/index.js +35782 -34957
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8493 -7664
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -227,6 +227,16 @@ type TLearner = {
|
|
|
227
227
|
updatedBy?: string | ObjectId;
|
|
228
228
|
deletedBy?: string | ObjectId;
|
|
229
229
|
};
|
|
230
|
+
type TEnrollment = TLearner & {
|
|
231
|
+
applyToSpecialProgram?: boolean;
|
|
232
|
+
specialProgram?: string | ObjectId;
|
|
233
|
+
specialProgramName?: string;
|
|
234
|
+
gwa?: number;
|
|
235
|
+
subjects?: {
|
|
236
|
+
title: string;
|
|
237
|
+
grade: number;
|
|
238
|
+
}[];
|
|
239
|
+
};
|
|
230
240
|
type TLearnerInfo = {
|
|
231
241
|
psaBirthCertificateNo?: string;
|
|
232
242
|
lrn?: string;
|
|
@@ -287,7 +297,7 @@ type TSeniorHighInformation = {
|
|
|
287
297
|
type TLearningModality = "Modular (Print)" | "Modular (Digital)" | "Online" | "Radio-Based Instruction" | "Educational Television" | "Blended" | "Homeschooling";
|
|
288
298
|
declare const schemaUpdateStatus: Joi.ObjectSchema<any>;
|
|
289
299
|
declare const schemaEnrollment: Joi.ObjectSchema<any>;
|
|
290
|
-
declare function MLearner(value:
|
|
300
|
+
declare function MLearner(value: TEnrollment): {
|
|
291
301
|
_id: ObjectId | undefined;
|
|
292
302
|
region: string;
|
|
293
303
|
regionName: string;
|
|
@@ -300,6 +310,13 @@ declare function MLearner(value: TLearner): {
|
|
|
300
310
|
schoolName: string;
|
|
301
311
|
schoolYear: string;
|
|
302
312
|
gradeLevel: string;
|
|
313
|
+
specialProgram: string | ObjectId | undefined;
|
|
314
|
+
specialProgramName: string;
|
|
315
|
+
gwa: number;
|
|
316
|
+
subjects: {
|
|
317
|
+
title: string;
|
|
318
|
+
grade: number;
|
|
319
|
+
}[];
|
|
303
320
|
returningLearner: boolean;
|
|
304
321
|
learnerInfo: TLearnerInfo;
|
|
305
322
|
parentGuardianInfo: TParentGuardianInfo;
|
|
@@ -354,17 +371,19 @@ declare function useEnrollmentRepo(): {
|
|
|
354
371
|
};
|
|
355
372
|
|
|
356
373
|
declare function useEnrollmentService(): {
|
|
357
|
-
add: (value:
|
|
374
|
+
add: (value: TEnrollment) => Promise<{
|
|
358
375
|
message: string;
|
|
359
376
|
id: bson.ObjectId;
|
|
360
377
|
}>;
|
|
361
378
|
updateStatusById: (_id: string, status: string) => Promise<string>;
|
|
379
|
+
updateStatusWithId: (_id: string, status: string) => Promise<string>;
|
|
362
380
|
};
|
|
363
381
|
|
|
364
382
|
declare function useEnrollmentController(): {
|
|
365
383
|
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
366
384
|
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
367
385
|
updateStatusById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
386
|
+
updateStatusWithId: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
368
387
|
};
|
|
369
388
|
|
|
370
389
|
type TGradeLevel = {
|
|
@@ -1512,6 +1531,11 @@ type TProgram = {
|
|
|
1512
1531
|
name: string;
|
|
1513
1532
|
code: string;
|
|
1514
1533
|
gradeLevels?: string[];
|
|
1534
|
+
gwa?: number;
|
|
1535
|
+
subjects?: {
|
|
1536
|
+
title: string;
|
|
1537
|
+
grade: number;
|
|
1538
|
+
}[];
|
|
1515
1539
|
description?: string;
|
|
1516
1540
|
status: string;
|
|
1517
1541
|
createdAt?: string | Date;
|
|
@@ -1559,4 +1583,69 @@ declare function useProgramController(): {
|
|
|
1559
1583
|
updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1560
1584
|
};
|
|
1561
1585
|
|
|
1562
|
-
|
|
1586
|
+
type TProgramScreening = {
|
|
1587
|
+
_id?: ObjectId;
|
|
1588
|
+
school: string | ObjectId;
|
|
1589
|
+
schoolName?: string;
|
|
1590
|
+
schoolYear: string;
|
|
1591
|
+
gradeLevel: string;
|
|
1592
|
+
specialProgram: string | ObjectId;
|
|
1593
|
+
specialProgramName?: string;
|
|
1594
|
+
specialProgramCode?: string;
|
|
1595
|
+
applicant: string | ObjectId;
|
|
1596
|
+
applicantName?: string;
|
|
1597
|
+
gwa?: number;
|
|
1598
|
+
subjects?: {
|
|
1599
|
+
title: string;
|
|
1600
|
+
grade: number;
|
|
1601
|
+
}[];
|
|
1602
|
+
status?: string;
|
|
1603
|
+
createdAt?: string | Date;
|
|
1604
|
+
updatedAt?: string | Date;
|
|
1605
|
+
deletedAt?: string | Date;
|
|
1606
|
+
};
|
|
1607
|
+
declare const schemaProgramScreening: Joi.ObjectSchema<any>;
|
|
1608
|
+
declare const schemaProgramScreeningUpdate: Joi.ObjectSchema<any>;
|
|
1609
|
+
declare function modelProgramScreening(value: TProgramScreening): TProgramScreening;
|
|
1610
|
+
|
|
1611
|
+
declare function useProgramScreeningRepo(): {
|
|
1612
|
+
createIndexes: () => Promise<void>;
|
|
1613
|
+
add: (value: TProgramScreening, session?: ClientSession) => Promise<ObjectId>;
|
|
1614
|
+
getAll: ({ search, page, limit, sort, status, school, specialProgramCode, schoolYear, gradeLevel, }?: {
|
|
1615
|
+
search?: string;
|
|
1616
|
+
page?: number;
|
|
1617
|
+
limit?: number;
|
|
1618
|
+
sort?: Record<string, any>;
|
|
1619
|
+
status?: string;
|
|
1620
|
+
school?: string;
|
|
1621
|
+
specialProgramCode?: string;
|
|
1622
|
+
schoolYear?: string;
|
|
1623
|
+
gradeLevel?: string;
|
|
1624
|
+
}) => Promise<Record<string, any> | {
|
|
1625
|
+
items: any[];
|
|
1626
|
+
pages: number;
|
|
1627
|
+
pageRange: string;
|
|
1628
|
+
}>;
|
|
1629
|
+
getById: (_id: string | ObjectId) => Promise<TProgramScreening>;
|
|
1630
|
+
getByCode: (code: string, school: string | ObjectId) => Promise<TProgramScreening>;
|
|
1631
|
+
updateFieldById: ({ _id, field, value }?: {
|
|
1632
|
+
_id: string | ObjectId;
|
|
1633
|
+
field: string;
|
|
1634
|
+
value: string | Array<string> | boolean;
|
|
1635
|
+
}, session?: ClientSession) => Promise<string>;
|
|
1636
|
+
deleteById: (_id: string | ObjectId) => Promise<string>;
|
|
1637
|
+
updateById: (_id: string | ObjectId, value: Pick<TProgramScreening, "specialProgram" | "specialProgramName" | "status">) => Promise<string>;
|
|
1638
|
+
};
|
|
1639
|
+
|
|
1640
|
+
declare function useProgramScreeningController(): {
|
|
1641
|
+
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1642
|
+
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1643
|
+
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1644
|
+
getByCode: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1645
|
+
updateField: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1646
|
+
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1647
|
+
updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1648
|
+
updateStatusById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1649
|
+
};
|
|
1650
|
+
|
|
1651
|
+
export { MAsset, MBuilding, MBuildingUnit, MCurriculum, MGradeLevel, MLearner, MPersonnel, MPlantilla, MStockCard, TAddress, TAddressInformation, TAsset, TBasicEduCount, TBuilding, TBuildingUnit, TCurriculum, TDivision, TEnrollment, TGradeLevel, TLearner, TLearnerInfo, TLearningModality, TParentGuardianInfo, TPersonContact, TPersonnel, TPlantilla, TProgram, TProgramScreening, TRegion, TReturningLearnerInfo, TSchool, TSection, TSectionPreset, TSectionStudent, TSectionSubject, TSeniorHighInformation, TStockCard, TSubject, TTeachingLoad, TTeachingLoadSlot, allowedSectionStudentStatuses, modelBasicEduCount, modelDivision, modelProgram, modelProgramScreening, modelRegion, modelSchool, modelSection, modelSectionPreset, modelSectionStudent, modelSectionSubject, modelSubject, modelTeachingLoad, modelTeachingLoadSlot, schemaAsset, schemaAssetUpdateOption, schemaBasicEduCount, schemaBuilding, schemaBuildingUnit, schemaCurriculum, schemaDivision, schemaDivisionUpdate, schemaEnrollment, schemaGenerateSections, schemaGradeLevel, schemaPersonnel, schemaPlantilla, schemaProgram, schemaProgramScreening, schemaProgramScreeningUpdate, schemaProgramUpdate, schemaRegion, schemaSchool, schemaSchoolUpdate, schemaSection, schemaSectionPreset, schemaSectionStudent, schemaSectionSubject, schemaSectionSubjectSetup, schemaStockCard, schemaSubject, schemaSubjectAdd, schemaTeachingLoad, schemaTeachingLoadSlot, schemaUpdateOptions, schemaUpdateStatus, useAssetController, useAssetRepo, useBasicEduCountRepo, useBuildingController, useBuildingRepo, useBuildingService, useBuildingUnitController, useBuildingUnitRepo, useBuildingUnitService, useCurriculumController, useCurriculumRepo, useDivisionController, useDivisionRepo, useDivisionService, useEnrollmentController, useEnrollmentRepo, useEnrollmentService, useGradeLevelController, useGradeLevelRepo, useLearnerController, useLearnerRepo, usePersonnelController, usePersonnelRepo, usePlantillaController, usePlantillaRepo, usePlantillaService, useProgramController, useProgramRepo, useProgramScreeningController, useProgramScreeningRepo, useRegionController, useRegionRepo, useSchoolController, useSchoolRepo, useSchoolService, useSectionController, useSectionPresetController, useSectionPresetRepo, useSectionRepo, useSectionStudentController, useSectionStudentRepo, useSectionSubjectController, useSectionSubjectRepo, useSectionSubjectService, useStockCardController, useStockCardRepository, useStockCardService, useSubjectController, useSubjectRepo, useSubjectService, useTeachingLoadController, useTeachingLoadRepo, useTeachingLoadSlotController, useTeachingLoadSlotRepo };
|