@eeplatform/basic-edu 1.10.1 → 1.10.3
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 +30 -3
- package/dist/index.js +334 -74
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +334 -74
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -980,6 +980,7 @@ type TSection = {
|
|
|
980
980
|
_id?: ObjectId;
|
|
981
981
|
school: ObjectId | string;
|
|
982
982
|
name: string;
|
|
983
|
+
label?: string;
|
|
983
984
|
schoolYear: string;
|
|
984
985
|
gradeLevel: string;
|
|
985
986
|
adviser?: ObjectId | string;
|
|
@@ -996,7 +997,7 @@ declare function modelSection(value: TSection): TSection;
|
|
|
996
997
|
|
|
997
998
|
declare function useSectionRepo(): {
|
|
998
999
|
createIndexes: () => Promise<void>;
|
|
999
|
-
add: (value: TSection, session?: ClientSession) => Promise<
|
|
1000
|
+
add: (value: TSection, session?: ClientSession) => Promise<string>;
|
|
1000
1001
|
getAll: ({ search, page, limit, sort, status, school, schoolYear, gradeLevel, }?: {
|
|
1001
1002
|
search?: string | undefined;
|
|
1002
1003
|
page?: number | undefined;
|
|
@@ -1012,6 +1013,12 @@ declare function useSectionRepo(): {
|
|
|
1012
1013
|
pageRange: string;
|
|
1013
1014
|
}>;
|
|
1014
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>;
|
|
1015
1022
|
getByName: (name: string) => Promise<TSection>;
|
|
1016
1023
|
getBySchool: (school: string | ObjectId) => Promise<TSection[]>;
|
|
1017
1024
|
updateFieldById: ({ _id, field, value }?: {
|
|
@@ -1071,6 +1078,13 @@ declare function useSectionStudentRepo(): {
|
|
|
1071
1078
|
section?: string | ObjectId;
|
|
1072
1079
|
schoolYear?: string;
|
|
1073
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>;
|
|
1074
1088
|
};
|
|
1075
1089
|
|
|
1076
1090
|
declare function useSectionStudentController(): {
|
|
@@ -1128,6 +1142,12 @@ declare function useSectionSubjectRepo(): {
|
|
|
1128
1142
|
pageRange: string;
|
|
1129
1143
|
}>;
|
|
1130
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[]>;
|
|
1131
1151
|
getBySection: (section: string | ObjectId) => Promise<TSectionSubject[]>;
|
|
1132
1152
|
getByTeacher: (teacher: string | ObjectId) => Promise<TSectionSubject[]>;
|
|
1133
1153
|
getBySchool: (school: string | ObjectId) => Promise<TSectionSubject[]>;
|
|
@@ -1360,13 +1380,15 @@ declare function usePersonnelRepo(): {
|
|
|
1360
1380
|
classification?: string;
|
|
1361
1381
|
status?: string;
|
|
1362
1382
|
}, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
1363
|
-
getAll: ({ school, search, page, limit, sort, status, }?: {
|
|
1383
|
+
getAll: ({ school, search, page, limit, sort, status, gradeLevel, classification, }?: {
|
|
1364
1384
|
school?: string | undefined;
|
|
1365
1385
|
search?: string | undefined;
|
|
1366
1386
|
page?: number | undefined;
|
|
1367
1387
|
limit?: number | undefined;
|
|
1368
1388
|
sort?: {} | undefined;
|
|
1369
1389
|
status?: string | undefined;
|
|
1390
|
+
gradeLevel?: string | undefined;
|
|
1391
|
+
classification?: string | undefined;
|
|
1370
1392
|
}) => Promise<Record<string, any> | {
|
|
1371
1393
|
items: any[];
|
|
1372
1394
|
pages: number;
|
|
@@ -1438,7 +1460,12 @@ declare function useTeachingLoadRepo(): {
|
|
|
1438
1460
|
}>;
|
|
1439
1461
|
getById: (_id: string | ObjectId) => Promise<TTeachingLoad | null>;
|
|
1440
1462
|
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
1441
|
-
getByTeacher: (
|
|
1463
|
+
getByTeacher: (options: {
|
|
1464
|
+
teacher: string | ObjectId;
|
|
1465
|
+
schoolYear?: string;
|
|
1466
|
+
school?: string | ObjectId;
|
|
1467
|
+
status?: string;
|
|
1468
|
+
}) => Promise<TTeachingLoad[]>;
|
|
1442
1469
|
delCachedData: () => void;
|
|
1443
1470
|
};
|
|
1444
1471
|
|