@eeplatform/basic-edu 1.3.10 → 1.3.12
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 +51 -33
- package/dist/index.js +588 -507
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +588 -507
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -81,19 +81,27 @@ declare function useCurriculumController(): {
|
|
|
81
81
|
|
|
82
82
|
type BasicEducEnrForm = {
|
|
83
83
|
_id?: ObjectId;
|
|
84
|
-
region:
|
|
85
|
-
|
|
84
|
+
region: string;
|
|
85
|
+
regionName?: string;
|
|
86
|
+
province?: string;
|
|
87
|
+
cityMunicipality: string;
|
|
88
|
+
division: string;
|
|
89
|
+
divisionName?: string;
|
|
90
|
+
schoolId: string;
|
|
86
91
|
school: ObjectId;
|
|
92
|
+
schoolName?: string;
|
|
87
93
|
schoolYear: string;
|
|
88
|
-
|
|
94
|
+
gradeLevel: string;
|
|
95
|
+
returningLearner: boolean;
|
|
89
96
|
learnerInfo: EnrLearnerInfo;
|
|
90
97
|
parentGuardianInfo: EnrParentGuardianInfo;
|
|
91
|
-
|
|
98
|
+
address: AddressInformation;
|
|
92
99
|
returningLearnerInfo?: EnrReturningLearnerInfo;
|
|
93
100
|
seniorHighInfo?: EnrSeniorHighInformation;
|
|
94
|
-
|
|
95
|
-
|
|
101
|
+
alternativeLearningOptions?: string[];
|
|
102
|
+
isCertifiedAndConsented: boolean;
|
|
96
103
|
status?: string;
|
|
104
|
+
remarks?: string;
|
|
97
105
|
rejectionReason?: string;
|
|
98
106
|
createdAt?: Date | string;
|
|
99
107
|
updatedAt?: Date | string;
|
|
@@ -103,29 +111,23 @@ type BasicEducEnrForm = {
|
|
|
103
111
|
deletedBy?: string;
|
|
104
112
|
};
|
|
105
113
|
type EnrLearnerInfo = {
|
|
114
|
+
psaBirthCertificateNo?: string;
|
|
106
115
|
lrn?: string;
|
|
107
116
|
lastName: string;
|
|
108
117
|
firstName: string;
|
|
109
118
|
middleName?: string;
|
|
110
119
|
extensionName?: string;
|
|
111
120
|
birthDate: string;
|
|
112
|
-
sex:
|
|
121
|
+
sex: string;
|
|
113
122
|
age: number;
|
|
114
|
-
placeOfBirth
|
|
115
|
-
municipalityCity: string;
|
|
116
|
-
province?: string;
|
|
117
|
-
country?: string;
|
|
118
|
-
};
|
|
123
|
+
placeOfBirth: string;
|
|
119
124
|
motherTongue?: string;
|
|
120
|
-
hasDisability: boolean;
|
|
121
|
-
disabilityTypes?: DisabilityType[];
|
|
122
|
-
otherDisabilityDetails?: string;
|
|
123
|
-
isIndigenous?: boolean;
|
|
124
|
-
indigenousCommunity?: string;
|
|
125
|
-
is4PsBeneficiary?: boolean;
|
|
126
125
|
fourPsHouseholdId?: string;
|
|
126
|
+
indigenousCommunity?: string;
|
|
127
|
+
withDisability: boolean;
|
|
128
|
+
disabilities?: string[];
|
|
129
|
+
otherDisabilityDetails?: string;
|
|
127
130
|
};
|
|
128
|
-
type DisabilityType = "Visual Impairment (Blind)" | "Visual Impairment (Low Vision)" | "Hearing Impairment" | "Learning Disability" | "Intellectual Disability" | "Autism Spectrum Disorder" | "Emotional-Behavioral Disorder" | "Orthopedic/Physical Handicap" | "Speech/Language Disorder" | "Cerebral Palsy" | "Special Health Problem/Chronic Disease" | "Multiple Disorder" | "Cancer" | "Other";
|
|
129
131
|
type EnrParentGuardianInfo = {
|
|
130
132
|
father?: PersonContact;
|
|
131
133
|
mother?: PersonContact;
|
|
@@ -138,8 +140,8 @@ type PersonContact = {
|
|
|
138
140
|
contactNumber?: string;
|
|
139
141
|
};
|
|
140
142
|
type AddressInformation = {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
+
current: EnrAddress;
|
|
144
|
+
permanent: EnrAddress;
|
|
143
145
|
sameAsCurrent?: boolean;
|
|
144
146
|
};
|
|
145
147
|
type EnrAddress = {
|
|
@@ -166,27 +168,30 @@ type EnrSeniorHighInformation = {
|
|
|
166
168
|
strand: string;
|
|
167
169
|
};
|
|
168
170
|
type EnrLearningModality = "Modular (Print)" | "Modular (Digital)" | "Online" | "Radio-Based Instruction" | "Educational Television" | "Blended" | "Homeschooling";
|
|
169
|
-
type EnrCert = {
|
|
170
|
-
certifiedBy: string;
|
|
171
|
-
date: string;
|
|
172
|
-
consentGiven: boolean;
|
|
173
|
-
};
|
|
174
171
|
declare const schemaEnrollment: Joi.ObjectSchema<any>;
|
|
175
172
|
declare function MEnrollment(value: BasicEducEnrForm): {
|
|
176
173
|
_id: ObjectId | undefined;
|
|
177
|
-
region:
|
|
178
|
-
|
|
174
|
+
region: string;
|
|
175
|
+
regionName: string;
|
|
176
|
+
province: string;
|
|
177
|
+
cityMunicipality: string;
|
|
178
|
+
division: string;
|
|
179
|
+
divisionName: string;
|
|
179
180
|
school: ObjectId;
|
|
181
|
+
schoolId: string;
|
|
182
|
+
schoolName: string;
|
|
180
183
|
schoolYear: string;
|
|
181
|
-
|
|
184
|
+
gradeLevel: string;
|
|
185
|
+
returningLearner: boolean;
|
|
182
186
|
learnerInfo: EnrLearnerInfo;
|
|
183
187
|
parentGuardianInfo: EnrParentGuardianInfo;
|
|
184
|
-
|
|
188
|
+
address: AddressInformation;
|
|
185
189
|
returningLearnerInfo: EnrReturningLearnerInfo | undefined;
|
|
186
190
|
seniorHighInfo: EnrSeniorHighInformation | undefined;
|
|
187
|
-
|
|
188
|
-
|
|
191
|
+
alternativeLearningOptions: string[];
|
|
192
|
+
isCertifiedAndConsented: boolean;
|
|
189
193
|
status: string;
|
|
194
|
+
remarks: string;
|
|
190
195
|
rejectionReason: string;
|
|
191
196
|
createdAt: string | Date;
|
|
192
197
|
updatedAt: string | Date;
|
|
@@ -217,6 +222,19 @@ declare function useEnrollmentRepo(): {
|
|
|
217
222
|
getById: (_id: string | ObjectId) => Promise<BasicEducEnrForm>;
|
|
218
223
|
getByLrn: (lrn: string, schoolYear?: string) => Promise<BasicEducEnrForm | null>;
|
|
219
224
|
deleteById: (_id: string | ObjectId, deletedBy?: string, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
|
|
225
|
+
getByApplicantInfo: ({ school, schoolYear, gradeLevel, firstName, lastName, middleName, birthDate, placeOfBirth, }?: {
|
|
226
|
+
school?: string | undefined;
|
|
227
|
+
schoolYear?: string | undefined;
|
|
228
|
+
gradeLevel?: string | undefined;
|
|
229
|
+
firstName?: string | undefined;
|
|
230
|
+
lastName?: string | undefined;
|
|
231
|
+
middleName?: string | undefined;
|
|
232
|
+
birthDate?: string | undefined;
|
|
233
|
+
placeOfBirth?: string | undefined;
|
|
234
|
+
}) => Promise<{
|
|
235
|
+
accepted: boolean;
|
|
236
|
+
length: number;
|
|
237
|
+
}>;
|
|
220
238
|
getBySchoolAndYear: (school: string | ObjectId, schoolYear: string) => Promise<BasicEducEnrForm[]>;
|
|
221
239
|
};
|
|
222
240
|
|
|
@@ -729,4 +747,4 @@ declare function usePlantillaController(): {
|
|
|
729
747
|
bulkAddPlantillas: (req: Request, res: Response, next: NextFunction) => Promise<void>;
|
|
730
748
|
};
|
|
731
749
|
|
|
732
|
-
export { AddressInformation, BasicEducEnrForm,
|
|
750
|
+
export { AddressInformation, BasicEducEnrForm, EnrAddress, EnrLearnerInfo, EnrLearningModality, EnrParentGuardianInfo, EnrReturningLearnerInfo, EnrSeniorHighInformation, MAsset, MCurriculum, MEnrollment, MGradeLevel, MPlantilla, MStockCard, PersonContact, TAsset, TCurriculum, TCurriculumSubject, TDivision, TGradeLevel, TPlantilla, TRegion, TSchool, TStockCard, modelDivision, modelRegion, modelSchool, schemaAsset, schemaAssetUpdateOption, schemaCurriculum, schemaDivision, schemaDivisionUpdate, schemaEnrollment, schemaGradeLevel, schemaPlantilla, schemaRegion, schemaSchool, schemaSchoolUpdate, schemaStockCard, useAssetController, useAssetRepo, useCurriculumController, useCurriculumRepo, useDivisionController, useDivisionRepo, useDivisionService, useEnrollmentController, useEnrollmentRepo, useEnrollmentService, useGradeLevelController, useGradeLevelRepo, usePlantillaController, usePlantillaRepo, usePlantillaService, useRegionController, useRegionRepo, useSchoolController, useSchoolRepo, useSchoolService, useStockCardController, useStockCardRepository, useStockCardService };
|