@kipicore/dbcore 1.1.581 → 1.1.583

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.
@@ -123,6 +123,7 @@ export declare const parseOrderOptions: (inputOrder: unknown, defaultOrder?: Ord
123
123
  import { IInstituteAttributes } from '../interfaces/instituteInterface';
124
124
  import { IUserAttributes } from '../interfaces/userInterface';
125
125
  import { TAeraModelCreationAttributes } from '../types/areaType';
126
+ import { Subject } from '../types';
126
127
  export declare const capitalizeFirst: (str: string) => string;
127
128
  export declare const normalizeToArray: (value: string | string[] | undefined) => string[] | undefined;
128
129
  /**
@@ -176,8 +177,6 @@ export declare const calculateGrade: (subject: {
176
177
  total: number;
177
178
  pass: number;
178
179
  obtained: number;
179
- }) => string;
180
- export declare const getOverallGrade: (subjects: {
181
- grade: GRADE;
182
- }[]) => GRADE;
180
+ }) => GRADE;
181
+ export declare const getOverallGrade: (subjects: Subject[]) => GRADE;
183
182
  export {};
@@ -1,3 +1,4 @@
1
+ import { FINAL_RESULT, GRADE } from '../constants';
1
2
  import { IExamGroupModelAttributes } from '../interfaces/examGroupInterface';
2
3
  export type TExamGroupCreationAttributes = Omit<IExamGroupModelAttributes, 'id'>;
3
4
  export interface TUpdateExamGroupDataParams {
@@ -42,7 +43,7 @@ export type Subject = {
42
43
  total: number;
43
44
  pass: number;
44
45
  obtained: number;
45
- grade: string;
46
+ grade: GRADE;
46
47
  [key: string]: string | number;
47
48
  };
48
49
  export type Summary = {
@@ -50,9 +51,9 @@ export type Summary = {
50
51
  passMarks: number;
51
52
  obtainedMarks: number;
52
53
  percentage: number;
53
- overallGrade: string;
54
+ overallGrade: GRADE;
54
55
  rank: number;
55
- result: string;
56
+ result: FINAL_RESULT;
56
57
  };
57
58
  export type Teacher = {
58
59
  classTeacher: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.581",
3
+ "version": "1.1.583",
4
4
  "description": "Reusable DB core package with Postgres, MongoDB, models, services, interfaces, and types",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",