@eeplatform/basic-edu 1.10.0 → 1.10.1

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,11 @@
1
1
  # @eeplatform/basic-edu
2
2
 
3
+ ## 1.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - f8730f2: Kindergarten Routine - fix model
8
+
3
9
  ## 1.10.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -934,7 +934,6 @@ type TSectionPreset = {
934
934
  set: Array<string>;
935
935
  status: string;
936
936
  school: ObjectId | string;
937
- createdBy: ObjectId | string;
938
937
  createdAt?: string;
939
938
  updatedAt?: string;
940
939
  deletedAt?: string;
@@ -1672,6 +1671,7 @@ declare function useProgramScreeningController(): {
1672
1671
  };
1673
1672
 
1674
1673
  type TBlockTime = {
1674
+ id: number;
1675
1675
  title: string;
1676
1676
  startTime: string;
1677
1677
  endTime: string;
@@ -1685,11 +1685,11 @@ type TKindergartenRoutine = {
1685
1685
  sectionName?: string;
1686
1686
  classroom?: string | ObjectId;
1687
1687
  classroomName?: string;
1688
- schedule: string[];
1689
1688
  blockTimes: TBlockTime[];
1690
1689
  type: string;
1691
1690
  durationMinutes?: number;
1692
- status: string;
1691
+ schoolYear?: string;
1692
+ status?: string;
1693
1693
  school: ObjectId | string;
1694
1694
  createdAt?: string;
1695
1695
  updatedAt?: string;
@@ -1702,7 +1702,7 @@ declare function modelKindergartenRoutine(value: TKindergartenRoutine): TKinderg
1702
1702
  declare function useKindergartenRoutineRepo(): {
1703
1703
  createIndexes: () => Promise<void>;
1704
1704
  add: (value: TKindergartenRoutine, session?: ClientSession) => Promise<ObjectId>;
1705
- getAll: ({ search, page, limit, sort, status, createdBy, school, section, classroom, type, }?: {
1705
+ getAll: ({ search, page, limit, sort, status, createdBy, school, section, classroom, type, schoolYear, }?: {
1706
1706
  search?: string;
1707
1707
  page?: number;
1708
1708
  limit?: number;
@@ -1713,6 +1713,7 @@ declare function useKindergartenRoutineRepo(): {
1713
1713
  section?: string;
1714
1714
  classroom?: string;
1715
1715
  type?: string;
1716
+ schoolYear?: string;
1716
1717
  }) => Promise<Record<string, any> | {
1717
1718
  items: any[];
1718
1719
  pages: number;
@@ -1726,7 +1727,7 @@ declare function useKindergartenRoutineRepo(): {
1726
1727
  field: string;
1727
1728
  value: string | Array<any> | object;
1728
1729
  }, session?: ClientSession) => Promise<string>;
1729
- updateById: (_id: string | ObjectId, value: Pick<TKindergartenRoutine, "title" | "schedule" | "blockTimes" | "durationMinutes">, session?: ClientSession) => Promise<string>;
1730
+ updateById: (_id: string | ObjectId, value: Pick<TKindergartenRoutine, "title" | "blockTimes" | "durationMinutes">, session?: ClientSession) => Promise<string>;
1730
1731
  deleteById: (_id: string | ObjectId) => Promise<string>;
1731
1732
  };
1732
1733