@eeplatform/nuxt-layer-common 1.7.6 → 1.7.7
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 +6 -0
- package/composables/useEnrollment.ts +13 -0
- package/package.json +1 -1
- package/types/user.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -124,11 +124,24 @@ export default function useEnrollment() {
|
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
+
function generateEnrollmentData(value: {
|
|
128
|
+
gradeLevel: string;
|
|
129
|
+
specialProgram: string;
|
|
130
|
+
numberOfApplications: number;
|
|
131
|
+
schoolYear: string;
|
|
132
|
+
}) {
|
|
133
|
+
return $fetch("/api/basic-education/enrollments/generate", {
|
|
134
|
+
method: "POST",
|
|
135
|
+
body: value,
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
|
|
127
139
|
return {
|
|
128
140
|
enrollment,
|
|
129
141
|
add,
|
|
130
142
|
getAll,
|
|
131
143
|
updateStatusById,
|
|
132
144
|
updateStatusWithId,
|
|
145
|
+
generateEnrollmentData,
|
|
133
146
|
};
|
|
134
147
|
}
|
package/package.json
CHANGED