@eeplatform/basic-edu 1.10.10 → 1.10.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @eeplatform/basic-edu
2
2
 
3
+ ## 1.10.12
4
+
5
+ ### Patch Changes
6
+
7
+ - 64d11a9: Fix
8
+
9
+ ## 1.10.11
10
+
11
+ ### Patch Changes
12
+
13
+ - 9fc14d1: Update dependencies
14
+
3
15
  ## 1.10.10
4
16
 
5
17
  ### Patch Changes
package/dist/index.js CHANGED
@@ -2195,7 +2195,7 @@ var schemaSubjectAdd = import_joi3.default.object({
2195
2195
  curriculum: import_joi3.default.string().hex().required(),
2196
2196
  curriculumName: import_joi3.default.string().required(),
2197
2197
  effectiveSchoolYear: import_joi3.default.array().items(import_joi3.default.number().integer().min(1900)).optional(),
2198
- gradeLevel: import_joi3.default.array().items(import_joi3.default.string()).required(),
2198
+ gradeLevel: import_joi3.default.array().items(import_joi3.default.string()).min(1).required(),
2199
2199
  track: import_joi3.default.string().hex().optional().allow("", null),
2200
2200
  trackName: import_joi3.default.string().optional().allow("", null),
2201
2201
  strand: import_joi3.default.string().hex().optional().allow("", null),
@@ -5122,11 +5122,13 @@ function useProgramRepo() {
5122
5122
  {
5123
5123
  key: { name: 1, school: 1, status: 1 },
5124
5124
  unique: true,
5125
+ partialFilterExpression: { status: "active" },
5125
5126
  name: "unique_program_per_school"
5126
5127
  },
5127
5128
  {
5128
5129
  key: { code: 1, school: 1, status: 1 },
5129
5130
  unique: true,
5131
+ partialFilterExpression: { status: "active" },
5130
5132
  name: "unique_program_code_per_school"
5131
5133
  }
5132
5134
  ]);
@@ -5737,7 +5739,7 @@ function useSchoolRepo() {
5737
5739
  await collection.createIndexes([
5738
5740
  { key: { name: 1 } },
5739
5741
  { key: { createdAt: 1 } },
5740
- { key: { name: "text" } },
5742
+ { key: { name: "text", id: "text" } },
5741
5743
  { key: { id: 1, status: 1 }, unique: true, name: "unique_school_id" }
5742
5744
  ]);
5743
5745
  } catch (error) {