@eeplatform/basic-edu 1.10.0 → 1.10.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 +36 -8
- package/dist/index.js +2169 -1922
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2010 -1763
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -934,7 +934,6 @@ type TSectionPreset = {
|
|
|
934
934
|
set: Array<string>;
|
|
935
935
|
status: string;
|
|
936
936
|
school: ObjectId | string;
|
|
937
|
-
createdBy: ObjectId | string;
|
|
938
937
|
createdAt?: string;
|
|
939
938
|
updatedAt?: string;
|
|
940
939
|
deletedAt?: string;
|
|
@@ -981,6 +980,7 @@ type TSection = {
|
|
|
981
980
|
_id?: ObjectId;
|
|
982
981
|
school: ObjectId | string;
|
|
983
982
|
name: string;
|
|
983
|
+
label?: string;
|
|
984
984
|
schoolYear: string;
|
|
985
985
|
gradeLevel: string;
|
|
986
986
|
adviser?: ObjectId | string;
|
|
@@ -997,7 +997,7 @@ declare function modelSection(value: TSection): TSection;
|
|
|
997
997
|
|
|
998
998
|
declare function useSectionRepo(): {
|
|
999
999
|
createIndexes: () => Promise<void>;
|
|
1000
|
-
add: (value: TSection, session?: ClientSession) => Promise<
|
|
1000
|
+
add: (value: TSection, session?: ClientSession) => Promise<string>;
|
|
1001
1001
|
getAll: ({ search, page, limit, sort, status, school, schoolYear, gradeLevel, }?: {
|
|
1002
1002
|
search?: string | undefined;
|
|
1003
1003
|
page?: number | undefined;
|
|
@@ -1013,6 +1013,12 @@ declare function useSectionRepo(): {
|
|
|
1013
1013
|
pageRange: string;
|
|
1014
1014
|
}>;
|
|
1015
1015
|
getById: (_id: string | ObjectId) => Promise<TSection>;
|
|
1016
|
+
getSection: (options: {
|
|
1017
|
+
gradeLevel: string;
|
|
1018
|
+
schoolYear?: string;
|
|
1019
|
+
name: string;
|
|
1020
|
+
school: string | ObjectId;
|
|
1021
|
+
}) => Promise<TSection | null>;
|
|
1016
1022
|
getByName: (name: string) => Promise<TSection>;
|
|
1017
1023
|
getBySchool: (school: string | ObjectId) => Promise<TSection[]>;
|
|
1018
1024
|
updateFieldById: ({ _id, field, value }?: {
|
|
@@ -1072,6 +1078,13 @@ declare function useSectionStudentRepo(): {
|
|
|
1072
1078
|
section?: string | ObjectId;
|
|
1073
1079
|
schoolYear?: string;
|
|
1074
1080
|
}) => Promise<{}>;
|
|
1081
|
+
getStudent: (options: {
|
|
1082
|
+
learner?: string | ObjectId;
|
|
1083
|
+
schoolYear?: string;
|
|
1084
|
+
section?: string | ObjectId;
|
|
1085
|
+
gradeLevel?: string;
|
|
1086
|
+
student: string | ObjectId;
|
|
1087
|
+
}) => Promise<mongodb.WithId<bson.Document> | TSectionStudent | null>;
|
|
1075
1088
|
};
|
|
1076
1089
|
|
|
1077
1090
|
declare function useSectionStudentController(): {
|
|
@@ -1129,6 +1142,12 @@ declare function useSectionSubjectRepo(): {
|
|
|
1129
1142
|
pageRange: string;
|
|
1130
1143
|
}>;
|
|
1131
1144
|
getById: (_id: string | ObjectId) => Promise<TSectionSubject>;
|
|
1145
|
+
getSectionSubject: (options: {
|
|
1146
|
+
gradeLevel?: string;
|
|
1147
|
+
schoolYear?: string;
|
|
1148
|
+
subjectCode?: string;
|
|
1149
|
+
section: string | ObjectId;
|
|
1150
|
+
}) => Promise<TSectionSubject[]>;
|
|
1132
1151
|
getBySection: (section: string | ObjectId) => Promise<TSectionSubject[]>;
|
|
1133
1152
|
getByTeacher: (teacher: string | ObjectId) => Promise<TSectionSubject[]>;
|
|
1134
1153
|
getBySchool: (school: string | ObjectId) => Promise<TSectionSubject[]>;
|
|
@@ -1361,13 +1380,15 @@ declare function usePersonnelRepo(): {
|
|
|
1361
1380
|
classification?: string;
|
|
1362
1381
|
status?: string;
|
|
1363
1382
|
}, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
1364
|
-
getAll: ({ school, search, page, limit, sort, status, }?: {
|
|
1383
|
+
getAll: ({ school, search, page, limit, sort, status, gradeLevel, classification, }?: {
|
|
1365
1384
|
school?: string | undefined;
|
|
1366
1385
|
search?: string | undefined;
|
|
1367
1386
|
page?: number | undefined;
|
|
1368
1387
|
limit?: number | undefined;
|
|
1369
1388
|
sort?: {} | undefined;
|
|
1370
1389
|
status?: string | undefined;
|
|
1390
|
+
gradeLevel?: string | undefined;
|
|
1391
|
+
classification?: string | undefined;
|
|
1371
1392
|
}) => Promise<Record<string, any> | {
|
|
1372
1393
|
items: any[];
|
|
1373
1394
|
pages: number;
|
|
@@ -1439,7 +1460,12 @@ declare function useTeachingLoadRepo(): {
|
|
|
1439
1460
|
}>;
|
|
1440
1461
|
getById: (_id: string | ObjectId) => Promise<TTeachingLoad | null>;
|
|
1441
1462
|
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
1442
|
-
getByTeacher: (
|
|
1463
|
+
getByTeacher: (options: {
|
|
1464
|
+
teacher: string | ObjectId;
|
|
1465
|
+
schoolYear?: string;
|
|
1466
|
+
school?: string | ObjectId;
|
|
1467
|
+
status?: string;
|
|
1468
|
+
}) => Promise<TTeachingLoad[]>;
|
|
1443
1469
|
delCachedData: () => void;
|
|
1444
1470
|
};
|
|
1445
1471
|
|
|
@@ -1672,6 +1698,7 @@ declare function useProgramScreeningController(): {
|
|
|
1672
1698
|
};
|
|
1673
1699
|
|
|
1674
1700
|
type TBlockTime = {
|
|
1701
|
+
id: number;
|
|
1675
1702
|
title: string;
|
|
1676
1703
|
startTime: string;
|
|
1677
1704
|
endTime: string;
|
|
@@ -1685,11 +1712,11 @@ type TKindergartenRoutine = {
|
|
|
1685
1712
|
sectionName?: string;
|
|
1686
1713
|
classroom?: string | ObjectId;
|
|
1687
1714
|
classroomName?: string;
|
|
1688
|
-
schedule: string[];
|
|
1689
1715
|
blockTimes: TBlockTime[];
|
|
1690
1716
|
type: string;
|
|
1691
1717
|
durationMinutes?: number;
|
|
1692
|
-
|
|
1718
|
+
schoolYear?: string;
|
|
1719
|
+
status?: string;
|
|
1693
1720
|
school: ObjectId | string;
|
|
1694
1721
|
createdAt?: string;
|
|
1695
1722
|
updatedAt?: string;
|
|
@@ -1702,7 +1729,7 @@ declare function modelKindergartenRoutine(value: TKindergartenRoutine): TKinderg
|
|
|
1702
1729
|
declare function useKindergartenRoutineRepo(): {
|
|
1703
1730
|
createIndexes: () => Promise<void>;
|
|
1704
1731
|
add: (value: TKindergartenRoutine, session?: ClientSession) => Promise<ObjectId>;
|
|
1705
|
-
getAll: ({ search, page, limit, sort, status, createdBy, school, section, classroom, type, }?: {
|
|
1732
|
+
getAll: ({ search, page, limit, sort, status, createdBy, school, section, classroom, type, schoolYear, }?: {
|
|
1706
1733
|
search?: string;
|
|
1707
1734
|
page?: number;
|
|
1708
1735
|
limit?: number;
|
|
@@ -1713,6 +1740,7 @@ declare function useKindergartenRoutineRepo(): {
|
|
|
1713
1740
|
section?: string;
|
|
1714
1741
|
classroom?: string;
|
|
1715
1742
|
type?: string;
|
|
1743
|
+
schoolYear?: string;
|
|
1716
1744
|
}) => Promise<Record<string, any> | {
|
|
1717
1745
|
items: any[];
|
|
1718
1746
|
pages: number;
|
|
@@ -1726,7 +1754,7 @@ declare function useKindergartenRoutineRepo(): {
|
|
|
1726
1754
|
field: string;
|
|
1727
1755
|
value: string | Array<any> | object;
|
|
1728
1756
|
}, session?: ClientSession) => Promise<string>;
|
|
1729
|
-
updateById: (_id: string | ObjectId, value: Pick<TKindergartenRoutine, "title" | "
|
|
1757
|
+
updateById: (_id: string | ObjectId, value: Pick<TKindergartenRoutine, "title" | "blockTimes" | "durationMinutes">, session?: ClientSession) => Promise<string>;
|
|
1730
1758
|
deleteById: (_id: string | ObjectId) => Promise<string>;
|
|
1731
1759
|
};
|
|
1732
1760
|
|