@eeplatform/basic-edu 1.10.3 → 1.10.5
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 +130 -14
- package/dist/index.js +3597 -2308
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3747 -2449
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -85,8 +85,11 @@ type TSubject = {
|
|
|
85
85
|
curriculum: ObjectId | string;
|
|
86
86
|
curriculumName: string;
|
|
87
87
|
effectiveSchoolYear?: number[];
|
|
88
|
-
educationLevel: string;
|
|
89
88
|
gradeLevel: string;
|
|
89
|
+
track?: string | ObjectId;
|
|
90
|
+
trackName?: string;
|
|
91
|
+
strand?: string | ObjectId;
|
|
92
|
+
strandName?: string;
|
|
90
93
|
program?: string | ObjectId;
|
|
91
94
|
programName?: string;
|
|
92
95
|
subjectCode: string;
|
|
@@ -112,8 +115,11 @@ declare function modelSubject(value: TSubject): {
|
|
|
112
115
|
curriculum: ObjectId;
|
|
113
116
|
curriculumName: string;
|
|
114
117
|
effectiveSchoolYear: number[];
|
|
115
|
-
educationLevel: string;
|
|
116
118
|
gradeLevel: string;
|
|
119
|
+
track: string | ObjectId | undefined;
|
|
120
|
+
trackName: string;
|
|
121
|
+
strand: string | ObjectId | undefined;
|
|
122
|
+
strandName: string;
|
|
117
123
|
program: string | ObjectId | undefined;
|
|
118
124
|
programName: string;
|
|
119
125
|
subjectCode: string;
|
|
@@ -154,7 +160,7 @@ declare function useSubjectRepo(): {
|
|
|
154
160
|
updateById: (_id: ObjectId | string, value: Partial<TSubject>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
155
161
|
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
156
162
|
deleteByCurriculum: (curriculumId: string | ObjectId, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
157
|
-
getAsOptions: () => Promise<{}>;
|
|
163
|
+
getAsOptions: (gradeLevel: string[]) => Promise<{}>;
|
|
158
164
|
};
|
|
159
165
|
|
|
160
166
|
declare function useSubjectController(): {
|
|
@@ -289,8 +295,10 @@ type TReturningLearnerInfo = {
|
|
|
289
295
|
};
|
|
290
296
|
type TSeniorHighInformation = {
|
|
291
297
|
semester: string;
|
|
292
|
-
track: string;
|
|
293
|
-
|
|
298
|
+
track: string | ObjectId;
|
|
299
|
+
trackName: string;
|
|
300
|
+
strandName: string;
|
|
301
|
+
strand: string | ObjectId;
|
|
294
302
|
};
|
|
295
303
|
type TLearningModality = "Modular (Print)" | "Modular (Digital)" | "Online" | "Radio-Based Instruction" | "Educational Television" | "Blended" | "Homeschooling";
|
|
296
304
|
declare const schemaUpdateStatus: Joi.ObjectSchema<any>;
|
|
@@ -381,6 +389,8 @@ declare function useEnrollmentService(): {
|
|
|
381
389
|
gradeLevel: string;
|
|
382
390
|
specialProgram?: string;
|
|
383
391
|
numberOfApplications: number;
|
|
392
|
+
track?: string;
|
|
393
|
+
strand?: string;
|
|
384
394
|
}) => Promise<{
|
|
385
395
|
message: string;
|
|
386
396
|
createdEnrollments: {
|
|
@@ -404,8 +414,6 @@ type TGradeLevel = {
|
|
|
404
414
|
school?: ObjectId | string;
|
|
405
415
|
educationLevel: string;
|
|
406
416
|
gradeLevel: string;
|
|
407
|
-
tracks?: string[];
|
|
408
|
-
trackStrands?: string[];
|
|
409
417
|
teachingStyle: string;
|
|
410
418
|
maxNumberOfLearners: number;
|
|
411
419
|
minNumberOfLearners: number;
|
|
@@ -425,8 +433,6 @@ declare function MGradeLevel(value: TGradeLevel): {
|
|
|
425
433
|
school: string | ObjectId | undefined;
|
|
426
434
|
educationLevel: string;
|
|
427
435
|
gradeLevel: string;
|
|
428
|
-
tracks: string[];
|
|
429
|
-
trackStrands: string[];
|
|
430
436
|
teachingStyle: string;
|
|
431
437
|
maxNumberOfLearners: number;
|
|
432
438
|
minNumberOfLearners: number;
|
|
@@ -476,6 +482,8 @@ declare function useGradeLevelRepo(): {
|
|
|
476
482
|
school: string | ObjectId;
|
|
477
483
|
gradeLevel: string;
|
|
478
484
|
status?: string;
|
|
485
|
+
track?: string;
|
|
486
|
+
strand?: string;
|
|
479
487
|
}, session?: ClientSession) => Promise<mongodb.WithId<bson.Document> | TGradeLevel | null>;
|
|
480
488
|
};
|
|
481
489
|
|
|
@@ -866,7 +874,7 @@ declare function usePlantillaController(): {
|
|
|
866
874
|
declare function useLearnerRepo(): {
|
|
867
875
|
createIndexes: () => Promise<void>;
|
|
868
876
|
add: (value: TLearner, session?: ClientSession) => Promise<ObjectId>;
|
|
869
|
-
getAll: ({ search, page, limit, sort, status, school, schoolYear, level, }?: {
|
|
877
|
+
getAll: ({ search, page, limit, sort, status, school, schoolYear, level, track, strand, }?: {
|
|
870
878
|
search?: string | undefined;
|
|
871
879
|
page?: number | undefined;
|
|
872
880
|
limit?: number | undefined;
|
|
@@ -875,6 +883,8 @@ declare function useLearnerRepo(): {
|
|
|
875
883
|
school?: string | undefined;
|
|
876
884
|
schoolYear?: string | undefined;
|
|
877
885
|
level?: string | undefined;
|
|
886
|
+
track?: string | undefined;
|
|
887
|
+
strand?: string | undefined;
|
|
878
888
|
}) => Promise<Record<string, any> | {
|
|
879
889
|
items: any[];
|
|
880
890
|
pages: number;
|
|
@@ -886,6 +896,8 @@ declare function useLearnerRepo(): {
|
|
|
886
896
|
gradeLevel: string;
|
|
887
897
|
specialProgram?: string | ObjectId;
|
|
888
898
|
status?: string;
|
|
899
|
+
track?: string | ObjectId;
|
|
900
|
+
strand?: string | ObjectId;
|
|
889
901
|
}, session?: ClientSession) => Promise<number>;
|
|
890
902
|
updateStatusById: (_id: string | ObjectId, status: string, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
891
903
|
getById: (_id: string | ObjectId, status?: string) => Promise<TLearner | null>;
|
|
@@ -983,6 +995,10 @@ type TSection = {
|
|
|
983
995
|
label?: string;
|
|
984
996
|
schoolYear: string;
|
|
985
997
|
gradeLevel: string;
|
|
998
|
+
track?: ObjectId | string;
|
|
999
|
+
trackName?: string;
|
|
1000
|
+
strand?: ObjectId | string;
|
|
1001
|
+
strandName?: string;
|
|
986
1002
|
adviser?: ObjectId | string;
|
|
987
1003
|
adviserName?: string;
|
|
988
1004
|
students: number;
|
|
@@ -1051,7 +1067,7 @@ type TSectionStudent = {
|
|
|
1051
1067
|
school: ObjectId | string;
|
|
1052
1068
|
schoolName?: string;
|
|
1053
1069
|
section: ObjectId | string;
|
|
1054
|
-
student: string;
|
|
1070
|
+
student: string | ObjectId;
|
|
1055
1071
|
studentName: string;
|
|
1056
1072
|
gradeLevel?: string;
|
|
1057
1073
|
educationLevel?: string;
|
|
@@ -1079,7 +1095,6 @@ declare function useSectionStudentRepo(): {
|
|
|
1079
1095
|
schoolYear?: string;
|
|
1080
1096
|
}) => Promise<{}>;
|
|
1081
1097
|
getStudent: (options: {
|
|
1082
|
-
learner?: string | ObjectId;
|
|
1083
1098
|
schoolYear?: string;
|
|
1084
1099
|
section?: string | ObjectId;
|
|
1085
1100
|
gradeLevel?: string;
|
|
@@ -1100,7 +1115,6 @@ type TSectionSubject = {
|
|
|
1100
1115
|
section: ObjectId | string;
|
|
1101
1116
|
sectionName: string;
|
|
1102
1117
|
gradeLevel: string;
|
|
1103
|
-
educationLevel: string;
|
|
1104
1118
|
schoolYear: string;
|
|
1105
1119
|
subjectCode: string;
|
|
1106
1120
|
subjectName: string;
|
|
@@ -1820,4 +1834,106 @@ declare function useKindergartenDomainController(): {
|
|
|
1820
1834
|
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1821
1835
|
};
|
|
1822
1836
|
|
|
1823
|
-
|
|
1837
|
+
type TTrack = {
|
|
1838
|
+
_id?: ObjectId;
|
|
1839
|
+
school: ObjectId | string;
|
|
1840
|
+
name: string;
|
|
1841
|
+
status?: string;
|
|
1842
|
+
createdAt?: string | Date;
|
|
1843
|
+
updatedAt?: string | Date;
|
|
1844
|
+
deletedAt?: string | Date;
|
|
1845
|
+
};
|
|
1846
|
+
declare const schemaTrack: Joi.ObjectSchema<any>;
|
|
1847
|
+
declare function modelTrack(value: TTrack): TTrack;
|
|
1848
|
+
|
|
1849
|
+
declare function useTrackRepo(): {
|
|
1850
|
+
createIndexes: () => Promise<void>;
|
|
1851
|
+
add: (value: TTrack, session?: ClientSession) => Promise<ObjectId>;
|
|
1852
|
+
getAll: ({ search, page, limit, sort, status, school, }?: {
|
|
1853
|
+
search?: string;
|
|
1854
|
+
page?: number;
|
|
1855
|
+
limit?: number;
|
|
1856
|
+
sort?: Record<string, any>;
|
|
1857
|
+
status?: string;
|
|
1858
|
+
school?: string;
|
|
1859
|
+
}) => Promise<Record<string, any> | {
|
|
1860
|
+
items: any[];
|
|
1861
|
+
pages: number;
|
|
1862
|
+
pageRange: string;
|
|
1863
|
+
}>;
|
|
1864
|
+
getById: (_id: string | ObjectId) => Promise<TTrack>;
|
|
1865
|
+
getBySchool: (school: string | ObjectId) => Promise<TTrack[]>;
|
|
1866
|
+
updateFieldById: ({ _id, field, value }?: {
|
|
1867
|
+
_id: string | ObjectId;
|
|
1868
|
+
field: string;
|
|
1869
|
+
value: string | Array<any> | object;
|
|
1870
|
+
}, session?: ClientSession) => Promise<string>;
|
|
1871
|
+
updateById: (_id: string | ObjectId, value: Pick<TTrack, "name">, session?: ClientSession) => Promise<string>;
|
|
1872
|
+
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<string>;
|
|
1873
|
+
};
|
|
1874
|
+
|
|
1875
|
+
declare function useTrackService(): {
|
|
1876
|
+
deleteById: (id: string) => Promise<string>;
|
|
1877
|
+
};
|
|
1878
|
+
|
|
1879
|
+
declare function useTrackController(): {
|
|
1880
|
+
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1881
|
+
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1882
|
+
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1883
|
+
getBySchool: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1884
|
+
updateField: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1885
|
+
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1886
|
+
};
|
|
1887
|
+
|
|
1888
|
+
type TStrand = {
|
|
1889
|
+
_id?: ObjectId;
|
|
1890
|
+
school: ObjectId | string;
|
|
1891
|
+
track: ObjectId | string;
|
|
1892
|
+
trackName?: string;
|
|
1893
|
+
name: string;
|
|
1894
|
+
status?: string;
|
|
1895
|
+
createdAt?: string | Date;
|
|
1896
|
+
updatedAt?: string | Date;
|
|
1897
|
+
deletedAt?: string | Date;
|
|
1898
|
+
};
|
|
1899
|
+
declare const schemaStrand: Joi.ObjectSchema<any>;
|
|
1900
|
+
declare function modelStrand(value: TStrand): TStrand;
|
|
1901
|
+
|
|
1902
|
+
declare function useStrandRepo(): {
|
|
1903
|
+
createIndexes: () => Promise<void>;
|
|
1904
|
+
add: (value: TStrand, session?: ClientSession) => Promise<ObjectId>;
|
|
1905
|
+
getAll: ({ search, page, limit, sort, status, school, track, }?: {
|
|
1906
|
+
search?: string;
|
|
1907
|
+
page?: number;
|
|
1908
|
+
limit?: number;
|
|
1909
|
+
sort?: Record<string, any>;
|
|
1910
|
+
status?: string;
|
|
1911
|
+
school?: string;
|
|
1912
|
+
track?: string;
|
|
1913
|
+
}) => Promise<Record<string, any> | {
|
|
1914
|
+
items: any[];
|
|
1915
|
+
pages: number;
|
|
1916
|
+
pageRange: string;
|
|
1917
|
+
}>;
|
|
1918
|
+
getById: (_id: string | ObjectId) => Promise<TStrand>;
|
|
1919
|
+
getBySchool: (school: string | ObjectId) => Promise<TStrand[]>;
|
|
1920
|
+
updateFieldById: ({ _id, field, value }?: {
|
|
1921
|
+
_id: string | ObjectId;
|
|
1922
|
+
field: string;
|
|
1923
|
+
value: string | Array<any> | object;
|
|
1924
|
+
}, session?: ClientSession) => Promise<string>;
|
|
1925
|
+
updateById: (_id: string | ObjectId, value: Pick<TStrand, "name">, session?: ClientSession) => Promise<string>;
|
|
1926
|
+
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<string>;
|
|
1927
|
+
countByTrack: (track: string) => Promise<number>;
|
|
1928
|
+
};
|
|
1929
|
+
|
|
1930
|
+
declare function useStrandController(): {
|
|
1931
|
+
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1932
|
+
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1933
|
+
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1934
|
+
getBySchool: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1935
|
+
updateField: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1936
|
+
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1937
|
+
};
|
|
1938
|
+
|
|
1939
|
+
export { MAsset, MBuilding, MBuildingUnit, MCurriculum, MGradeLevel, MLearner, MPersonnel, MPlantilla, MStockCard, TAddress, TAddressInformation, TAsset, TBasicEduCount, TBlockTime, TBuilding, TBuildingUnit, TCurriculum, TDivision, TEnrollment, TGradeLevel, TKindergartenDomain, TKindergartenRoutine, TLearner, TLearnerInfo, TLearningModality, TParentGuardianInfo, TPersonContact, TPersonnel, TPlantilla, TProgram, TProgramScreening, TRegion, TReturningLearnerInfo, TSchool, TSection, TSectionPreset, TSectionStudent, TSectionSubject, TSeniorHighInformation, TStockCard, TStrand, TSubject, TTeachingLoad, TTeachingLoadSlot, TTrack, allowedSectionStudentStatuses, modelBasicEduCount, modelDivision, modelKindergartenDomain, modelKindergartenRoutine, modelProgram, modelProgramScreening, modelRegion, modelSchool, modelSection, modelSectionPreset, modelSectionStudent, modelSectionSubject, modelStrand, modelSubject, modelTeachingLoad, modelTeachingLoadSlot, modelTrack, schemaAsset, schemaAssetUpdateOption, schemaBasicEduCount, schemaBuilding, schemaBuildingUnit, schemaCurriculum, schemaDivision, schemaDivisionUpdate, schemaEnrollment, schemaGenerateSections, schemaGradeLevel, schemaKindergartenDomain, schemaKindergartenRoutine, schemaKindergartenRoutineUpdate, schemaPersonnel, schemaPlantilla, schemaProgram, schemaProgramScreening, schemaProgramScreeningUpdate, schemaProgramUpdate, schemaRegion, schemaSchool, schemaSchoolUpdate, schemaSection, schemaSectionPreset, schemaSectionStudent, schemaSectionSubject, schemaSectionSubjectSetup, schemaStockCard, schemaStrand, schemaSubject, schemaSubjectAdd, schemaTeachingLoad, schemaTeachingLoadSlot, schemaTrack, schemaUpdateOptions, schemaUpdateStatus, statusesProgramScreening, useAssetController, useAssetRepo, useBasicEduCountRepo, useBuildingController, useBuildingRepo, useBuildingService, useBuildingUnitController, useBuildingUnitRepo, useBuildingUnitService, useCurriculumController, useCurriculumRepo, useDivisionController, useDivisionRepo, useDivisionService, useEnrollmentController, useEnrollmentRepo, useEnrollmentService, useGradeLevelController, useGradeLevelRepo, useKindergartenDomainController, useKindergartenDomainRepo, useKindergartenDomainService, useKindergartenRoutineController, useKindergartenRoutineRepo, 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, useStrandController, useStrandRepo, useSubjectController, useSubjectRepo, useSubjectService, useTeachingLoadController, useTeachingLoadRepo, useTeachingLoadSlotController, useTeachingLoadSlotRepo, useTrackController, useTrackRepo, useTrackService };
|