@eeplatform/nuxt-layer-common 1.7.6 → 1.7.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @eeplatform/nuxt-layer-common
2
2
 
3
+ ## 1.7.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 54a5c7e: Update get all enrollment query
8
+
9
+ ## 1.7.7
10
+
11
+ ### Patch Changes
12
+
13
+ - 6df6d39: Add enrollment data generation request
14
+
3
15
  ## 1.7.6
4
16
 
5
17
  ### Patch Changes
@@ -102,9 +102,10 @@ export default function useEnrollment() {
102
102
  limit = 10,
103
103
  search = "",
104
104
  createdBy = "",
105
+ gradeLevel = "",
105
106
  } = {}) {
106
107
  return $fetch<Record<string, any>>("/api/basic-education/enrollments", {
107
- query: { status, page, limit, search, createdBy, school },
108
+ query: { status, page, limit, search, createdBy, school, gradeLevel },
108
109
  });
109
110
  }
110
111
 
@@ -124,11 +125,24 @@ export default function useEnrollment() {
124
125
  });
125
126
  }
126
127
 
128
+ function generateEnrollmentData(value: {
129
+ gradeLevel: string;
130
+ specialProgram: string;
131
+ numberOfApplications: number;
132
+ schoolYear: string;
133
+ }) {
134
+ return $fetch("/api/basic-education/enrollments/generate", {
135
+ method: "POST",
136
+ body: value,
137
+ });
138
+ }
139
+
127
140
  return {
128
141
  enrollment,
129
142
  add,
130
143
  getAll,
131
144
  updateStatusById,
132
145
  updateStatusWithId,
146
+ generateEnrollmentData,
133
147
  };
134
148
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@eeplatform/nuxt-layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "1.7.6",
5
+ "version": "1.7.8",
6
6
  "main": "./nuxt.config.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"
package/types/user.d.ts CHANGED
@@ -18,4 +18,5 @@ declare type TUser = {
18
18
  status: string;
19
19
  xenditCustomerId?: string;
20
20
  deletedAt: string;
21
+ default?: boolean;
21
22
  };