@eeplatform/basic-edu 1.10.6 → 1.10.8
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 +13 -0
- package/dist/index.d.ts +15 -3
- package/dist/index.js +2390 -2307
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2391 -2308
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @eeplatform/basic-edu
|
|
2
2
|
|
|
3
|
+
## 1.10.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- cf34525: Section management - fix section generation
|
|
8
|
+
|
|
9
|
+
## 1.10.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 6ea7dc0: Section management - fix, removed section subject generation
|
|
14
|
+
- d4e399c: Section management - fix section generation
|
|
15
|
+
|
|
3
16
|
## 1.10.6
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1012,6 +1012,7 @@ declare const schemaGenerateSections: Joi.ObjectSchema<any>;
|
|
|
1012
1012
|
declare function modelSection(value: TSection): TSection;
|
|
1013
1013
|
|
|
1014
1014
|
declare function useSectionRepo(): {
|
|
1015
|
+
delCachedData: () => void;
|
|
1015
1016
|
createIndexes: () => Promise<void>;
|
|
1016
1017
|
add: (value: TSection, session?: ClientSession) => Promise<string>;
|
|
1017
1018
|
getAll: ({ search, page, limit, sort, status, school, schoolYear, gradeLevel, }?: {
|
|
@@ -1023,7 +1024,7 @@ declare function useSectionRepo(): {
|
|
|
1023
1024
|
school?: string | undefined;
|
|
1024
1025
|
schoolYear?: string | undefined;
|
|
1025
1026
|
gradeLevel?: string | undefined;
|
|
1026
|
-
}) => Promise<Record<string, any> | {
|
|
1027
|
+
}, session?: ClientSession) => Promise<Record<string, any> | {
|
|
1027
1028
|
items: any[];
|
|
1028
1029
|
pages: number;
|
|
1029
1030
|
pageRange: string;
|
|
@@ -1044,7 +1045,9 @@ declare function useSectionRepo(): {
|
|
|
1044
1045
|
}, session?: ClientSession) => Promise<string>;
|
|
1045
1046
|
addStudentToSection: (_id: string | ObjectId, studentId: string, session?: ClientSession) => Promise<string>;
|
|
1046
1047
|
removeStudentFromSection: (_id: string | ObjectId, studentId: string, session?: ClientSession) => Promise<string>;
|
|
1047
|
-
deleteById: (_id: string | ObjectId) => Promise<string>;
|
|
1048
|
+
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<string>;
|
|
1049
|
+
updateSizeById: (_id: string | ObjectId, size: number, session?: ClientSession) => Promise<string>;
|
|
1050
|
+
deleteByIds: (_id: string[] | ObjectId[], session?: ClientSession) => Promise<string>;
|
|
1048
1051
|
};
|
|
1049
1052
|
|
|
1050
1053
|
declare function useSectionController(): {
|
|
@@ -1067,6 +1070,7 @@ type TSectionStudent = {
|
|
|
1067
1070
|
school: ObjectId | string;
|
|
1068
1071
|
schoolName?: string;
|
|
1069
1072
|
section: ObjectId | string;
|
|
1073
|
+
sectionName?: string;
|
|
1070
1074
|
student: string | ObjectId;
|
|
1071
1075
|
studentName: string;
|
|
1072
1076
|
gradeLevel?: string;
|
|
@@ -1093,13 +1097,21 @@ declare function useSectionStudentRepo(): {
|
|
|
1093
1097
|
gradeLevel?: string;
|
|
1094
1098
|
section?: string | ObjectId;
|
|
1095
1099
|
schoolYear?: string;
|
|
1096
|
-
}) => Promise<{
|
|
1100
|
+
}, session?: ClientSession) => Promise<{
|
|
1101
|
+
items: any[];
|
|
1102
|
+
pages: number;
|
|
1103
|
+
pageRange: string;
|
|
1104
|
+
}>;
|
|
1097
1105
|
getStudent: (options: {
|
|
1098
1106
|
schoolYear?: string;
|
|
1099
1107
|
section?: string | ObjectId;
|
|
1100
1108
|
gradeLevel?: string;
|
|
1101
1109
|
student: string | ObjectId;
|
|
1102
1110
|
}) => Promise<mongodb.WithId<bson.Document> | TSectionStudent | null>;
|
|
1111
|
+
updateSectionById: (_id: ObjectId | string, options: {
|
|
1112
|
+
section: string | ObjectId;
|
|
1113
|
+
sectionName: string;
|
|
1114
|
+
}, session?: ClientSession) => Promise<string>;
|
|
1103
1115
|
};
|
|
1104
1116
|
|
|
1105
1117
|
declare function useSectionStudentController(): {
|