@eeplatform/basic-edu 1.10.3 → 1.10.4
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 +103 -10
- package/dist/index.js +1197 -83
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1205 -82
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -85,7 +85,6 @@ type TSubject = {
|
|
|
85
85
|
curriculum: ObjectId | string;
|
|
86
86
|
curriculumName: string;
|
|
87
87
|
effectiveSchoolYear?: number[];
|
|
88
|
-
educationLevel: string;
|
|
89
88
|
gradeLevel: string;
|
|
90
89
|
program?: string | ObjectId;
|
|
91
90
|
programName?: string;
|
|
@@ -112,7 +111,6 @@ declare function modelSubject(value: TSubject): {
|
|
|
112
111
|
curriculum: ObjectId;
|
|
113
112
|
curriculumName: string;
|
|
114
113
|
effectiveSchoolYear: number[];
|
|
115
|
-
educationLevel: string;
|
|
116
114
|
gradeLevel: string;
|
|
117
115
|
program: string | ObjectId | undefined;
|
|
118
116
|
programName: string;
|
|
@@ -404,8 +402,6 @@ type TGradeLevel = {
|
|
|
404
402
|
school?: ObjectId | string;
|
|
405
403
|
educationLevel: string;
|
|
406
404
|
gradeLevel: string;
|
|
407
|
-
tracks?: string[];
|
|
408
|
-
trackStrands?: string[];
|
|
409
405
|
teachingStyle: string;
|
|
410
406
|
maxNumberOfLearners: number;
|
|
411
407
|
minNumberOfLearners: number;
|
|
@@ -425,8 +421,6 @@ declare function MGradeLevel(value: TGradeLevel): {
|
|
|
425
421
|
school: string | ObjectId | undefined;
|
|
426
422
|
educationLevel: string;
|
|
427
423
|
gradeLevel: string;
|
|
428
|
-
tracks: string[];
|
|
429
|
-
trackStrands: string[];
|
|
430
424
|
teachingStyle: string;
|
|
431
425
|
maxNumberOfLearners: number;
|
|
432
426
|
minNumberOfLearners: number;
|
|
@@ -1051,7 +1045,7 @@ type TSectionStudent = {
|
|
|
1051
1045
|
school: ObjectId | string;
|
|
1052
1046
|
schoolName?: string;
|
|
1053
1047
|
section: ObjectId | string;
|
|
1054
|
-
student: string;
|
|
1048
|
+
student: string | ObjectId;
|
|
1055
1049
|
studentName: string;
|
|
1056
1050
|
gradeLevel?: string;
|
|
1057
1051
|
educationLevel?: string;
|
|
@@ -1079,7 +1073,6 @@ declare function useSectionStudentRepo(): {
|
|
|
1079
1073
|
schoolYear?: string;
|
|
1080
1074
|
}) => Promise<{}>;
|
|
1081
1075
|
getStudent: (options: {
|
|
1082
|
-
learner?: string | ObjectId;
|
|
1083
1076
|
schoolYear?: string;
|
|
1084
1077
|
section?: string | ObjectId;
|
|
1085
1078
|
gradeLevel?: string;
|
|
@@ -1100,7 +1093,6 @@ type TSectionSubject = {
|
|
|
1100
1093
|
section: ObjectId | string;
|
|
1101
1094
|
sectionName: string;
|
|
1102
1095
|
gradeLevel: string;
|
|
1103
|
-
educationLevel: string;
|
|
1104
1096
|
schoolYear: string;
|
|
1105
1097
|
subjectCode: string;
|
|
1106
1098
|
subjectName: string;
|
|
@@ -1820,4 +1812,105 @@ declare function useKindergartenDomainController(): {
|
|
|
1820
1812
|
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1821
1813
|
};
|
|
1822
1814
|
|
|
1823
|
-
|
|
1815
|
+
type TTrack = {
|
|
1816
|
+
_id?: ObjectId;
|
|
1817
|
+
school: ObjectId | string;
|
|
1818
|
+
name: string;
|
|
1819
|
+
status?: string;
|
|
1820
|
+
createdAt?: string | Date;
|
|
1821
|
+
updatedAt?: string | Date;
|
|
1822
|
+
deletedAt?: string | Date;
|
|
1823
|
+
};
|
|
1824
|
+
declare const schemaTrack: Joi.ObjectSchema<any>;
|
|
1825
|
+
declare function modelTrack(value: TTrack): TTrack;
|
|
1826
|
+
|
|
1827
|
+
declare function useTrackRepo(): {
|
|
1828
|
+
createIndexes: () => Promise<void>;
|
|
1829
|
+
add: (value: TTrack, session?: ClientSession) => Promise<ObjectId>;
|
|
1830
|
+
getAll: ({ search, page, limit, sort, status, school, }?: {
|
|
1831
|
+
search?: string;
|
|
1832
|
+
page?: number;
|
|
1833
|
+
limit?: number;
|
|
1834
|
+
sort?: Record<string, any>;
|
|
1835
|
+
status?: string;
|
|
1836
|
+
school?: string;
|
|
1837
|
+
}) => Promise<Record<string, any> | {
|
|
1838
|
+
items: any[];
|
|
1839
|
+
pages: number;
|
|
1840
|
+
pageRange: string;
|
|
1841
|
+
}>;
|
|
1842
|
+
getById: (_id: string | ObjectId) => Promise<TTrack>;
|
|
1843
|
+
getBySchool: (school: string | ObjectId) => Promise<TTrack[]>;
|
|
1844
|
+
updateFieldById: ({ _id, field, value }?: {
|
|
1845
|
+
_id: string | ObjectId;
|
|
1846
|
+
field: string;
|
|
1847
|
+
value: string | Array<any> | object;
|
|
1848
|
+
}, session?: ClientSession) => Promise<string>;
|
|
1849
|
+
updateById: (_id: string | ObjectId, value: Pick<TTrack, "name">, session?: ClientSession) => Promise<string>;
|
|
1850
|
+
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<string>;
|
|
1851
|
+
};
|
|
1852
|
+
|
|
1853
|
+
declare function useTrackService(): {
|
|
1854
|
+
deleteById: (id: string) => Promise<string>;
|
|
1855
|
+
};
|
|
1856
|
+
|
|
1857
|
+
declare function useTrackController(): {
|
|
1858
|
+
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1859
|
+
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1860
|
+
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1861
|
+
getBySchool: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1862
|
+
updateField: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1863
|
+
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1864
|
+
};
|
|
1865
|
+
|
|
1866
|
+
type TStrand = {
|
|
1867
|
+
_id?: ObjectId;
|
|
1868
|
+
school: ObjectId | string;
|
|
1869
|
+
track: ObjectId | string;
|
|
1870
|
+
trackName?: string;
|
|
1871
|
+
name: string;
|
|
1872
|
+
status?: string;
|
|
1873
|
+
createdAt?: string | Date;
|
|
1874
|
+
updatedAt?: string | Date;
|
|
1875
|
+
deletedAt?: string | Date;
|
|
1876
|
+
};
|
|
1877
|
+
declare const schemaStrand: Joi.ObjectSchema<any>;
|
|
1878
|
+
declare function modelStrand(value: TStrand): TStrand;
|
|
1879
|
+
|
|
1880
|
+
declare function useStrandRepo(): {
|
|
1881
|
+
createIndexes: () => Promise<void>;
|
|
1882
|
+
add: (value: TStrand, session?: ClientSession) => Promise<ObjectId>;
|
|
1883
|
+
getAll: ({ search, page, limit, sort, status, school, }?: {
|
|
1884
|
+
search?: string;
|
|
1885
|
+
page?: number;
|
|
1886
|
+
limit?: number;
|
|
1887
|
+
sort?: Record<string, any>;
|
|
1888
|
+
status?: string;
|
|
1889
|
+
school?: string;
|
|
1890
|
+
}) => Promise<Record<string, any> | {
|
|
1891
|
+
items: any[];
|
|
1892
|
+
pages: number;
|
|
1893
|
+
pageRange: string;
|
|
1894
|
+
}>;
|
|
1895
|
+
getById: (_id: string | ObjectId) => Promise<TStrand>;
|
|
1896
|
+
getBySchool: (school: string | ObjectId) => Promise<TStrand[]>;
|
|
1897
|
+
updateFieldById: ({ _id, field, value }?: {
|
|
1898
|
+
_id: string | ObjectId;
|
|
1899
|
+
field: string;
|
|
1900
|
+
value: string | Array<any> | object;
|
|
1901
|
+
}, session?: ClientSession) => Promise<string>;
|
|
1902
|
+
updateById: (_id: string | ObjectId, value: Pick<TStrand, "name">, session?: ClientSession) => Promise<string>;
|
|
1903
|
+
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<string>;
|
|
1904
|
+
countByTrack: (track: string) => Promise<number>;
|
|
1905
|
+
};
|
|
1906
|
+
|
|
1907
|
+
declare function useStrandController(): {
|
|
1908
|
+
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1909
|
+
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1910
|
+
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1911
|
+
getBySchool: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1912
|
+
updateField: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1913
|
+
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1914
|
+
};
|
|
1915
|
+
|
|
1916
|
+
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 };
|