@eeplatform/basic-edu 1.8.0 → 1.8.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 +6 -0
- package/dist/index.d.ts +89 -3
- package/dist/index.js +35215 -34519
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35660 -34960
- 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,7 +371,7 @@ 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
|
}>;
|
|
@@ -1512,6 +1529,11 @@ type TProgram = {
|
|
|
1512
1529
|
name: string;
|
|
1513
1530
|
code: string;
|
|
1514
1531
|
gradeLevels?: string[];
|
|
1532
|
+
gwa?: number;
|
|
1533
|
+
subjects?: {
|
|
1534
|
+
title: string;
|
|
1535
|
+
grade: number;
|
|
1536
|
+
}[];
|
|
1515
1537
|
description?: string;
|
|
1516
1538
|
status: string;
|
|
1517
1539
|
createdAt?: string | Date;
|
|
@@ -1559,4 +1581,68 @@ declare function useProgramController(): {
|
|
|
1559
1581
|
updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1560
1582
|
};
|
|
1561
1583
|
|
|
1562
|
-
|
|
1584
|
+
type TProgramScreening = {
|
|
1585
|
+
_id?: ObjectId;
|
|
1586
|
+
school: string | ObjectId;
|
|
1587
|
+
schoolName?: string;
|
|
1588
|
+
schoolYear: string;
|
|
1589
|
+
gradeLevel: string;
|
|
1590
|
+
specialProgram: string | ObjectId;
|
|
1591
|
+
specialProgramName?: string;
|
|
1592
|
+
specialProgramCode?: string;
|
|
1593
|
+
applicant: string | ObjectId;
|
|
1594
|
+
applicantName?: string;
|
|
1595
|
+
gwa?: number;
|
|
1596
|
+
subjects?: {
|
|
1597
|
+
title: string;
|
|
1598
|
+
grade: number;
|
|
1599
|
+
}[];
|
|
1600
|
+
status?: string;
|
|
1601
|
+
createdAt?: string | Date;
|
|
1602
|
+
updatedAt?: string | Date;
|
|
1603
|
+
deletedAt?: string | Date;
|
|
1604
|
+
};
|
|
1605
|
+
declare const schemaProgramScreening: Joi.ObjectSchema<any>;
|
|
1606
|
+
declare const schemaProgramScreeningUpdate: Joi.ObjectSchema<any>;
|
|
1607
|
+
declare function modelProgramScreening(value: TProgramScreening): TProgramScreening;
|
|
1608
|
+
|
|
1609
|
+
declare function useProgramScreeningRepo(): {
|
|
1610
|
+
createIndexes: () => Promise<void>;
|
|
1611
|
+
add: (value: TProgramScreening, session?: ClientSession) => Promise<ObjectId>;
|
|
1612
|
+
getAll: ({ search, page, limit, sort, status, school, specialProgramCode, schoolYear, gradeLevel, }?: {
|
|
1613
|
+
search?: string;
|
|
1614
|
+
page?: number;
|
|
1615
|
+
limit?: number;
|
|
1616
|
+
sort?: Record<string, any>;
|
|
1617
|
+
status?: string;
|
|
1618
|
+
school?: string;
|
|
1619
|
+
specialProgramCode?: string;
|
|
1620
|
+
schoolYear?: string;
|
|
1621
|
+
gradeLevel?: string;
|
|
1622
|
+
}) => Promise<Record<string, any> | {
|
|
1623
|
+
items: any[];
|
|
1624
|
+
pages: number;
|
|
1625
|
+
pageRange: string;
|
|
1626
|
+
}>;
|
|
1627
|
+
getById: (_id: string | ObjectId) => Promise<TProgramScreening>;
|
|
1628
|
+
getByCode: (code: string, school: string | ObjectId) => Promise<TProgramScreening>;
|
|
1629
|
+
updateFieldById: ({ _id, field, value }?: {
|
|
1630
|
+
_id: string | ObjectId;
|
|
1631
|
+
field: string;
|
|
1632
|
+
value: string | Array<string> | boolean;
|
|
1633
|
+
}, session?: ClientSession) => Promise<string>;
|
|
1634
|
+
deleteById: (_id: string | ObjectId) => Promise<string>;
|
|
1635
|
+
updateById: (_id: string | ObjectId, value: Pick<TProgramScreening, "specialProgram" | "specialProgramName" | "status">) => Promise<string>;
|
|
1636
|
+
};
|
|
1637
|
+
|
|
1638
|
+
declare function useProgramScreeningController(): {
|
|
1639
|
+
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1640
|
+
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1641
|
+
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1642
|
+
getByCode: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1643
|
+
updateField: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1644
|
+
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1645
|
+
updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1646
|
+
};
|
|
1647
|
+
|
|
1648
|
+
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 };
|