@eeplatform/basic-edu 1.9.3 → 1.10.0
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 +127 -2
- package/dist/index.js +1603 -305
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2755 -1449
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @eeplatform/basic-edu
|
|
2
2
|
|
|
3
|
+
## 1.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- dd1f0b1: Kindergarten routine - initial release
|
|
8
|
+
|
|
9
|
+
## 1.9.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 0bf1dc4: Section management - required at least 1 personnel when generating sections
|
|
14
|
+
|
|
3
15
|
## 1.9.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1460,9 +1460,11 @@ type TTeachingLoadSlot = {
|
|
|
1460
1460
|
startTime: string;
|
|
1461
1461
|
endTime: string;
|
|
1462
1462
|
gradeLevel: string;
|
|
1463
|
-
subject
|
|
1463
|
+
subject?: string | ObjectId;
|
|
1464
1464
|
subjectName?: string;
|
|
1465
1465
|
subjectCode?: string;
|
|
1466
|
+
routine?: string | ObjectId;
|
|
1467
|
+
routineName?: string;
|
|
1466
1468
|
section: string | ObjectId;
|
|
1467
1469
|
sectionName?: string;
|
|
1468
1470
|
duration: number;
|
|
@@ -1482,6 +1484,8 @@ declare function modelTeachingLoadSlot(value: TTeachingLoadSlot): {
|
|
|
1482
1484
|
subject: string | ObjectId;
|
|
1483
1485
|
subjectName: string;
|
|
1484
1486
|
subjectCode: string;
|
|
1487
|
+
routine: string | ObjectId;
|
|
1488
|
+
routineName: string;
|
|
1485
1489
|
section: string | ObjectId;
|
|
1486
1490
|
sectionName: string;
|
|
1487
1491
|
duration: number;
|
|
@@ -1667,4 +1671,125 @@ declare function useProgramScreeningController(): {
|
|
|
1667
1671
|
updateStatusById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1668
1672
|
};
|
|
1669
1673
|
|
|
1670
|
-
|
|
1674
|
+
type TBlockTime = {
|
|
1675
|
+
title: string;
|
|
1676
|
+
startTime: string;
|
|
1677
|
+
endTime: string;
|
|
1678
|
+
durationMinutes: number;
|
|
1679
|
+
domains?: string[];
|
|
1680
|
+
};
|
|
1681
|
+
type TKindergartenRoutine = {
|
|
1682
|
+
_id?: ObjectId;
|
|
1683
|
+
title: string;
|
|
1684
|
+
section?: string | ObjectId;
|
|
1685
|
+
sectionName?: string;
|
|
1686
|
+
classroom?: string | ObjectId;
|
|
1687
|
+
classroomName?: string;
|
|
1688
|
+
schedule: string[];
|
|
1689
|
+
blockTimes: TBlockTime[];
|
|
1690
|
+
type: string;
|
|
1691
|
+
durationMinutes?: number;
|
|
1692
|
+
status: string;
|
|
1693
|
+
school: ObjectId | string;
|
|
1694
|
+
createdAt?: string;
|
|
1695
|
+
updatedAt?: string;
|
|
1696
|
+
deletedAt?: string;
|
|
1697
|
+
};
|
|
1698
|
+
declare const schemaKindergartenRoutine: Joi.ObjectSchema<any>;
|
|
1699
|
+
declare const schemaKindergartenRoutineUpdate: Joi.ObjectSchema<any>;
|
|
1700
|
+
declare function modelKindergartenRoutine(value: TKindergartenRoutine): TKindergartenRoutine;
|
|
1701
|
+
|
|
1702
|
+
declare function useKindergartenRoutineRepo(): {
|
|
1703
|
+
createIndexes: () => Promise<void>;
|
|
1704
|
+
add: (value: TKindergartenRoutine, session?: ClientSession) => Promise<ObjectId>;
|
|
1705
|
+
getAll: ({ search, page, limit, sort, status, createdBy, school, section, classroom, type, }?: {
|
|
1706
|
+
search?: string;
|
|
1707
|
+
page?: number;
|
|
1708
|
+
limit?: number;
|
|
1709
|
+
sort?: Record<string, any>;
|
|
1710
|
+
status?: string;
|
|
1711
|
+
createdBy?: string | ObjectId;
|
|
1712
|
+
school?: string;
|
|
1713
|
+
section?: string;
|
|
1714
|
+
classroom?: string;
|
|
1715
|
+
type?: string;
|
|
1716
|
+
}) => Promise<Record<string, any> | {
|
|
1717
|
+
items: any[];
|
|
1718
|
+
pages: number;
|
|
1719
|
+
pageRange: string;
|
|
1720
|
+
}>;
|
|
1721
|
+
getById: (_id: string | ObjectId) => Promise<TKindergartenRoutine | null>;
|
|
1722
|
+
countByDomain: (domain: string) => Promise<number>;
|
|
1723
|
+
getBySection: (section: string | ObjectId) => Promise<TKindergartenRoutine[]>;
|
|
1724
|
+
updateFieldById: ({ _id, field, value }?: {
|
|
1725
|
+
_id: string | ObjectId;
|
|
1726
|
+
field: string;
|
|
1727
|
+
value: string | Array<any> | object;
|
|
1728
|
+
}, session?: ClientSession) => Promise<string>;
|
|
1729
|
+
updateById: (_id: string | ObjectId, value: Pick<TKindergartenRoutine, "title" | "schedule" | "blockTimes" | "durationMinutes">, session?: ClientSession) => Promise<string>;
|
|
1730
|
+
deleteById: (_id: string | ObjectId) => Promise<string>;
|
|
1731
|
+
};
|
|
1732
|
+
|
|
1733
|
+
declare function useKindergartenRoutineController(): {
|
|
1734
|
+
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1735
|
+
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1736
|
+
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1737
|
+
getBySection: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1738
|
+
updateField: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1739
|
+
updateById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1740
|
+
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1741
|
+
};
|
|
1742
|
+
|
|
1743
|
+
type TKindergartenDomain = {
|
|
1744
|
+
_id?: ObjectId;
|
|
1745
|
+
title: string;
|
|
1746
|
+
school: ObjectId | string;
|
|
1747
|
+
status?: string;
|
|
1748
|
+
createdAt?: string;
|
|
1749
|
+
updatedAt?: string;
|
|
1750
|
+
deletedAt?: string;
|
|
1751
|
+
};
|
|
1752
|
+
declare const schemaKindergartenDomain: Joi.ObjectSchema<any>;
|
|
1753
|
+
declare function modelKindergartenDomain(value: TKindergartenDomain): TKindergartenDomain;
|
|
1754
|
+
|
|
1755
|
+
declare function useKindergartenDomainRepo(): {
|
|
1756
|
+
createIndexes: () => Promise<void>;
|
|
1757
|
+
add: (value: TKindergartenDomain, session?: ClientSession) => Promise<ObjectId>;
|
|
1758
|
+
getAll: ({ search, page, limit, sort, status, createdBy, school, }?: {
|
|
1759
|
+
search?: string;
|
|
1760
|
+
page?: number;
|
|
1761
|
+
limit?: number;
|
|
1762
|
+
sort?: Record<string, any>;
|
|
1763
|
+
status?: string;
|
|
1764
|
+
createdBy?: string | ObjectId;
|
|
1765
|
+
school?: string;
|
|
1766
|
+
}) => Promise<Record<string, any> | {
|
|
1767
|
+
items: any[];
|
|
1768
|
+
pages: number;
|
|
1769
|
+
pageRange: string;
|
|
1770
|
+
}>;
|
|
1771
|
+
getById: (_id: string | ObjectId) => Promise<TKindergartenDomain>;
|
|
1772
|
+
getBySchool: (school: string | ObjectId) => Promise<TKindergartenDomain[]>;
|
|
1773
|
+
updateFieldById: ({ _id, field, value }?: {
|
|
1774
|
+
_id: string | ObjectId;
|
|
1775
|
+
field: string;
|
|
1776
|
+
value: string | Array<any> | object;
|
|
1777
|
+
}, session?: ClientSession) => Promise<string>;
|
|
1778
|
+
updateById: (_id: string | ObjectId, value: Pick<TKindergartenDomain, "title">, session?: ClientSession) => Promise<string>;
|
|
1779
|
+
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<string>;
|
|
1780
|
+
};
|
|
1781
|
+
|
|
1782
|
+
declare function useKindergartenDomainService(): {
|
|
1783
|
+
deleteById: (id: string) => Promise<void>;
|
|
1784
|
+
};
|
|
1785
|
+
|
|
1786
|
+
declare function useKindergartenDomainController(): {
|
|
1787
|
+
add: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1788
|
+
getAll: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1789
|
+
getById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1790
|
+
getBySchool: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1791
|
+
updateField: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1792
|
+
deleteById: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
1793
|
+
};
|
|
1794
|
+
|
|
1795
|
+
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, TSubject, TTeachingLoad, TTeachingLoadSlot, allowedSectionStudentStatuses, modelBasicEduCount, modelDivision, modelKindergartenDomain, modelKindergartenRoutine, modelProgram, modelProgramScreening, modelRegion, modelSchool, modelSection, modelSectionPreset, modelSectionStudent, modelSectionSubject, modelSubject, modelTeachingLoad, modelTeachingLoadSlot, 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, schemaSubject, schemaSubjectAdd, schemaTeachingLoad, schemaTeachingLoadSlot, 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, useSubjectController, useSubjectRepo, useSubjectService, useTeachingLoadController, useTeachingLoadRepo, useTeachingLoadSlotController, useTeachingLoadSlotRepo };
|