@eeplatform/basic-edu 1.10.4 → 1.10.6
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 +28 -5
- package/dist/index.js +8413 -8238
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8380 -8205
- 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.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3a09cd5: Enrollment management - fix update status
|
|
8
|
+
|
|
9
|
+
## 1.10.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 79e0776: Enrollement management - fix service
|
|
14
|
+
|
|
3
15
|
## 1.10.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -86,6 +86,10 @@ type TSubject = {
|
|
|
86
86
|
curriculumName: string;
|
|
87
87
|
effectiveSchoolYear?: number[];
|
|
88
88
|
gradeLevel: string;
|
|
89
|
+
track?: string | ObjectId;
|
|
90
|
+
trackName?: string;
|
|
91
|
+
strand?: string | ObjectId;
|
|
92
|
+
strandName?: string;
|
|
89
93
|
program?: string | ObjectId;
|
|
90
94
|
programName?: string;
|
|
91
95
|
subjectCode: string;
|
|
@@ -112,6 +116,10 @@ declare function modelSubject(value: TSubject): {
|
|
|
112
116
|
curriculumName: string;
|
|
113
117
|
effectiveSchoolYear: number[];
|
|
114
118
|
gradeLevel: string;
|
|
119
|
+
track: string | ObjectId | undefined;
|
|
120
|
+
trackName: string;
|
|
121
|
+
strand: string | ObjectId | undefined;
|
|
122
|
+
strandName: string;
|
|
115
123
|
program: string | ObjectId | undefined;
|
|
116
124
|
programName: string;
|
|
117
125
|
subjectCode: string;
|
|
@@ -152,7 +160,7 @@ declare function useSubjectRepo(): {
|
|
|
152
160
|
updateById: (_id: ObjectId | string, value: Partial<TSubject>, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
153
161
|
deleteById: (_id: string | ObjectId, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
154
162
|
deleteByCurriculum: (curriculumId: string | ObjectId, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
155
|
-
getAsOptions: () => Promise<{}>;
|
|
163
|
+
getAsOptions: (gradeLevel: string[]) => Promise<{}>;
|
|
156
164
|
};
|
|
157
165
|
|
|
158
166
|
declare function useSubjectController(): {
|
|
@@ -287,8 +295,10 @@ type TReturningLearnerInfo = {
|
|
|
287
295
|
};
|
|
288
296
|
type TSeniorHighInformation = {
|
|
289
297
|
semester: string;
|
|
290
|
-
track: string;
|
|
291
|
-
|
|
298
|
+
track: string | ObjectId;
|
|
299
|
+
trackName: string;
|
|
300
|
+
strandName: string;
|
|
301
|
+
strand: string | ObjectId;
|
|
292
302
|
};
|
|
293
303
|
type TLearningModality = "Modular (Print)" | "Modular (Digital)" | "Online" | "Radio-Based Instruction" | "Educational Television" | "Blended" | "Homeschooling";
|
|
294
304
|
declare const schemaUpdateStatus: Joi.ObjectSchema<any>;
|
|
@@ -379,6 +389,8 @@ declare function useEnrollmentService(): {
|
|
|
379
389
|
gradeLevel: string;
|
|
380
390
|
specialProgram?: string;
|
|
381
391
|
numberOfApplications: number;
|
|
392
|
+
track?: string;
|
|
393
|
+
strand?: string;
|
|
382
394
|
}) => Promise<{
|
|
383
395
|
message: string;
|
|
384
396
|
createdEnrollments: {
|
|
@@ -470,6 +482,8 @@ declare function useGradeLevelRepo(): {
|
|
|
470
482
|
school: string | ObjectId;
|
|
471
483
|
gradeLevel: string;
|
|
472
484
|
status?: string;
|
|
485
|
+
track?: string;
|
|
486
|
+
strand?: string;
|
|
473
487
|
}, session?: ClientSession) => Promise<mongodb.WithId<bson.Document> | TGradeLevel | null>;
|
|
474
488
|
};
|
|
475
489
|
|
|
@@ -860,7 +874,7 @@ declare function usePlantillaController(): {
|
|
|
860
874
|
declare function useLearnerRepo(): {
|
|
861
875
|
createIndexes: () => Promise<void>;
|
|
862
876
|
add: (value: TLearner, session?: ClientSession) => Promise<ObjectId>;
|
|
863
|
-
getAll: ({ search, page, limit, sort, status, school, schoolYear, level, }?: {
|
|
877
|
+
getAll: ({ search, page, limit, sort, status, school, schoolYear, level, track, strand, }?: {
|
|
864
878
|
search?: string | undefined;
|
|
865
879
|
page?: number | undefined;
|
|
866
880
|
limit?: number | undefined;
|
|
@@ -869,6 +883,8 @@ declare function useLearnerRepo(): {
|
|
|
869
883
|
school?: string | undefined;
|
|
870
884
|
schoolYear?: string | undefined;
|
|
871
885
|
level?: string | undefined;
|
|
886
|
+
track?: string | undefined;
|
|
887
|
+
strand?: string | undefined;
|
|
872
888
|
}) => Promise<Record<string, any> | {
|
|
873
889
|
items: any[];
|
|
874
890
|
pages: number;
|
|
@@ -880,6 +896,8 @@ declare function useLearnerRepo(): {
|
|
|
880
896
|
gradeLevel: string;
|
|
881
897
|
specialProgram?: string | ObjectId;
|
|
882
898
|
status?: string;
|
|
899
|
+
track?: string | ObjectId;
|
|
900
|
+
strand?: string | ObjectId;
|
|
883
901
|
}, session?: ClientSession) => Promise<number>;
|
|
884
902
|
updateStatusById: (_id: string | ObjectId, status: string, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
885
903
|
getById: (_id: string | ObjectId, status?: string) => Promise<TLearner | null>;
|
|
@@ -977,6 +995,10 @@ type TSection = {
|
|
|
977
995
|
label?: string;
|
|
978
996
|
schoolYear: string;
|
|
979
997
|
gradeLevel: string;
|
|
998
|
+
track?: ObjectId | string;
|
|
999
|
+
trackName?: string;
|
|
1000
|
+
strand?: ObjectId | string;
|
|
1001
|
+
strandName?: string;
|
|
980
1002
|
adviser?: ObjectId | string;
|
|
981
1003
|
adviserName?: string;
|
|
982
1004
|
students: number;
|
|
@@ -1880,13 +1902,14 @@ declare function modelStrand(value: TStrand): TStrand;
|
|
|
1880
1902
|
declare function useStrandRepo(): {
|
|
1881
1903
|
createIndexes: () => Promise<void>;
|
|
1882
1904
|
add: (value: TStrand, session?: ClientSession) => Promise<ObjectId>;
|
|
1883
|
-
getAll: ({ search, page, limit, sort, status, school, }?: {
|
|
1905
|
+
getAll: ({ search, page, limit, sort, status, school, track, }?: {
|
|
1884
1906
|
search?: string;
|
|
1885
1907
|
page?: number;
|
|
1886
1908
|
limit?: number;
|
|
1887
1909
|
sort?: Record<string, any>;
|
|
1888
1910
|
status?: string;
|
|
1889
1911
|
school?: string;
|
|
1912
|
+
track?: string;
|
|
1890
1913
|
}) => Promise<Record<string, any> | {
|
|
1891
1914
|
items: any[];
|
|
1892
1915
|
pages: number;
|