@kipicore/dbcore 1.1.227 → 1.1.229

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.
@@ -7,5 +7,10 @@ declare const allModules: {
7
7
  name: string;
8
8
  code: string;
9
9
  appType: string[];
10
+ actions: {
11
+ name: string;
12
+ code: string;
13
+ appType: string[];
14
+ }[];
10
15
  }[];
11
16
  }[];
@@ -5,4 +5,9 @@ export let features: {
5
5
  name: string;
6
6
  code: string;
7
7
  appType: string[];
8
+ actions: {
9
+ name: string;
10
+ code: string;
11
+ appType: string[];
12
+ }[];
8
13
  }[];
@@ -5,10 +5,17 @@ const GreetingModule = {
5
5
  code: 'GREETING',
6
6
  appType: [appTypeEnum.SCHOOL_APP],
7
7
  features: [
8
- { name: 'Add', code: 'GREETING.ADD', appType: [appTypeEnum.SCHOOL_APP] },
9
- { name: 'Update', code: 'GREETING.UPDATE', appType: [appTypeEnum.SCHOOL_APP] },
10
- { name: 'View', code: 'GREETING.VIEW', appType: [appTypeEnum.SCHOOL_APP] },
11
- { name: 'Delete', code: 'GREETING.DELETE', appType: [appTypeEnum.SCHOOL_APP] },
8
+ {
9
+ name: 'Greeting Management',
10
+ code: 'GREETING.GREETINGMANAGEMENT',
11
+ appType: [appTypeEnum.SCHOOL_APP],
12
+ actions: [
13
+ { name: 'Add', code: 'GREETING.GREETINGMANAGEMENT.ADD', appType: [appTypeEnum.SCHOOL_APP] },
14
+ { name: 'Update', code: 'GREETING.GREETINGMANAGEMENT.UPDATE', appType: [appTypeEnum.SCHOOL_APP] },
15
+ { name: 'View', code: 'GREETING.GREETINGMANAGEMENT.VIEW', appType: [appTypeEnum.SCHOOL_APP] },
16
+ { name: 'Delete', code: 'GREETING.GREETINGMANAGEMENT.DELETE', appType: [appTypeEnum.SCHOOL_APP] },
17
+ ],
18
+ },
12
19
  ],
13
20
  };
14
21
  module.exports = GreetingModule;
@@ -5,4 +5,9 @@ export let features: {
5
5
  name: string;
6
6
  code: string;
7
7
  appType: string[];
8
+ actions: {
9
+ name: string;
10
+ code: string;
11
+ appType: string[];
12
+ }[];
8
13
  }[];
@@ -5,10 +5,17 @@ const TaskManagementModule = {
5
5
  code: 'TASKMANAGEMENT',
6
6
  appType: [appTypeEnum.SCHOOL_APP],
7
7
  features: [
8
- { name: 'Add', code: 'TASKMANAGEMENT.ADD', appType: [appTypeEnum.SCHOOL_APP] },
9
- { name: 'Update', code: 'TASKMANAGEMENT.UPDATE', appType: [appTypeEnum.SCHOOL_APP] },
10
- { name: 'View', code: 'TASKMANAGEMENT.VIEW', appType: [appTypeEnum.SCHOOL_APP] },
11
- { name: 'Delete', code: 'TASKMANAGEMENT.DELETE', appType: [appTypeEnum.SCHOOL_APP] },
8
+ {
9
+ name: 'Task',
10
+ code: 'TASKMANAGEMENT.TASK',
11
+ appType: [appTypeEnum.SCHOOL_APP],
12
+ actions: [
13
+ { name: 'Add', code: 'TASKMANAGEMENT.TASK.ADD', appType: [appTypeEnum.SCHOOL_APP] },
14
+ { name: 'Update', code: 'TASKMANAGEMENT.TASK.UPDATE', appType: [appTypeEnum.SCHOOL_APP] },
15
+ { name: 'View', code: 'TASKMANAGEMENT.TASK.VIEW', appType: [appTypeEnum.SCHOOL_APP] },
16
+ { name: 'Delete', code: 'TASKMANAGEMENT.TASK.DELETE', appType: [appTypeEnum.SCHOOL_APP] },
17
+ ],
18
+ },
12
19
  ],
13
20
  };
14
21
  module.exports = TaskManagementModule;
@@ -12,6 +12,12 @@ export interface IUserTrip {
12
12
  pickUpNo: Number;
13
13
  dropNo: Number;
14
14
  }
15
+ export interface IStudentFeeService {
16
+ feeTYpeId: String;
17
+ status: COMMAN_STATUS;
18
+ startDate: Date;
19
+ endDate?: Date;
20
+ }
15
21
  export interface IUserInstituteMetaAttributes extends IDefaultAttributes, Document {
16
22
  id: string;
17
23
  entities?: string[];
@@ -46,4 +52,5 @@ export interface IUserInstituteMetaAttributes extends IDefaultAttributes, Docume
46
52
  academicCalendarId?: string;
47
53
  oldId?: string;
48
54
  previousEntities?: string[];
55
+ studentFeeService?: IStudentFeeService[];
49
56
  }
@@ -60,6 +60,12 @@ const userTripSchema = new mongoose_1.Schema({
60
60
  pickUpNo: { type: Number },
61
61
  dropNo: { type: Number },
62
62
  }, { _id: false });
63
+ const studentFeeServiceSchema = new mongoose_1.Schema({
64
+ feeTYpeId: { type: String },
65
+ startDate: { type: Date },
66
+ endDate: { type: Date },
67
+ status: { type: String },
68
+ }, { _id: false });
63
69
  const userInstituteMetaSchema = new mongoose_1.Schema({
64
70
  entities: {
65
71
  type: [{ type: String }],
@@ -183,6 +189,11 @@ const userInstituteMetaSchema = new mongoose_1.Schema({
183
189
  default: [],
184
190
  required: false,
185
191
  },
192
+ studentFeeService: {
193
+ type: [studentFeeServiceSchema],
194
+ default: [],
195
+ required: false,
196
+ },
186
197
  sidNo: {
187
198
  type: String,
188
199
  required: false,
@@ -53,7 +53,7 @@ class FacilityModel extends sequelize_1.Model {
53
53
  const type = await typeManagementModel_1.default.findOne({
54
54
  where: {
55
55
  id: facility.typeManagementId,
56
- type: app_1.TYPE_MANAGEMENT_TYPE.FACILITY,
56
+ // type: TYPE_MANAGEMENT_TYPE.FACILITY,
57
57
  },
58
58
  });
59
59
  if (!type)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.227",
3
+ "version": "1.1.229",
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",