@eeplatform/basic-edu 1.10.11 → 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/dist/index.mjs CHANGED
@@ -2070,7 +2070,7 @@ var schemaSubjectAdd = Joi3.object({
2070
2070
  curriculum: Joi3.string().hex().required(),
2071
2071
  curriculumName: Joi3.string().required(),
2072
2072
  effectiveSchoolYear: Joi3.array().items(Joi3.number().integer().min(1900)).optional(),
2073
- gradeLevel: Joi3.array().items(Joi3.string()).required(),
2073
+ gradeLevel: Joi3.array().items(Joi3.string()).min(1).required(),
2074
2074
  track: Joi3.string().hex().optional().allow("", null),
2075
2075
  trackName: Joi3.string().optional().allow("", null),
2076
2076
  strand: Joi3.string().hex().optional().allow("", null),
@@ -5060,11 +5060,13 @@ function useProgramRepo() {
5060
5060
  {
5061
5061
  key: { name: 1, school: 1, status: 1 },
5062
5062
  unique: true,
5063
+ partialFilterExpression: { status: "active" },
5063
5064
  name: "unique_program_per_school"
5064
5065
  },
5065
5066
  {
5066
5067
  key: { code: 1, school: 1, status: 1 },
5067
5068
  unique: true,
5069
+ partialFilterExpression: { status: "active" },
5068
5070
  name: "unique_program_code_per_school"
5069
5071
  }
5070
5072
  ]);
@@ -5684,7 +5686,7 @@ function useSchoolRepo() {
5684
5686
  await collection.createIndexes([
5685
5687
  { key: { name: 1 } },
5686
5688
  { key: { createdAt: 1 } },
5687
- { key: { name: "text" } },
5689
+ { key: { name: "text", id: "text" } },
5688
5690
  { key: { id: 1, status: 1 }, unique: true, name: "unique_school_id" }
5689
5691
  ]);
5690
5692
  } catch (error) {