@kipicore/dbcore 1.1.689 → 1.1.691

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.
@@ -903,7 +903,8 @@ export declare enum NOTIFICATION_MODULE_TYPE {
903
903
  TASK_MANAGEMENT = "TASK_MANAGEMENT",
904
904
  SETUP_AND_CONFIGURATION = "SETUP_AND_CONFIGURATION",
905
905
  APPROVE_REQUEST = "APPROVE_REQUEST",
906
- RMS = "RMS"
906
+ RMS = "RMS",
907
+ USER_ACADEMY_META = "USER_ACADEMY_META"
907
908
  }
908
909
  export declare enum ONLINE_EXAM_NOTIFICATION_TYPE {
909
910
  EXAM_STARTED = "EXAM_STARTED",
@@ -1125,6 +1125,7 @@ var NOTIFICATION_MODULE_TYPE;
1125
1125
  NOTIFICATION_MODULE_TYPE["SETUP_AND_CONFIGURATION"] = "SETUP_AND_CONFIGURATION";
1126
1126
  NOTIFICATION_MODULE_TYPE["APPROVE_REQUEST"] = "APPROVE_REQUEST";
1127
1127
  NOTIFICATION_MODULE_TYPE["RMS"] = "RMS";
1128
+ NOTIFICATION_MODULE_TYPE["USER_ACADEMY_META"] = "USER_ACADEMY_META";
1128
1129
  })(NOTIFICATION_MODULE_TYPE || (exports.NOTIFICATION_MODULE_TYPE = NOTIFICATION_MODULE_TYPE = {}));
1129
1130
  var ONLINE_EXAM_NOTIFICATION_TYPE;
1130
1131
  (function (ONLINE_EXAM_NOTIFICATION_TYPE) {
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any): Promise<void>;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('notifications');
4
+ if (!table.sports_academy_id) {
5
+ await queryInterface.addColumn('notifications', 'sports_academy_id', {
6
+ type: Sequelize.STRING,
7
+ allowNull: true,
8
+ field: 'sports_academy_id',
9
+ });
10
+ }
11
+ };
12
+ const down = async (queryInterface) => {
13
+ const table = await queryInterface.describeTable('notifications');
14
+ if (table.sports_academy_id) {
15
+ await queryInterface.removeColumn('notifications', 'sports_academy_id');
16
+ }
17
+ };
18
+ module.exports = {
19
+ up,
20
+ down,
21
+ };
@@ -10,6 +10,7 @@ export interface INotificationModelAttributes extends IDefaultAttributes {
10
10
  viewDate?: Date;
11
11
  status: NOTIFICATION_STATUS;
12
12
  instituteId?: string;
13
+ sportsAcademyId?: string;
13
14
  moduleType: NOTIFICATION_MODULE_TYPE;
14
15
  }
15
16
  export interface INotification {
@@ -18,4 +19,5 @@ export interface INotification {
18
19
  senderId: string;
19
20
  deviceToken: string;
20
21
  instituteId?: string;
22
+ sportsAcademyId?: string;
21
23
  }
@@ -11,6 +11,7 @@ export interface IUserAcademyMetaAttributes extends IDefaultAttributes, Document
11
11
  joiningDate?: Date;
12
12
  endTime?: Date;
13
13
  rollNumber?: string;
14
+ designation?: string;
14
15
  additionalField?: object;
15
16
  isActive: COMMAN_STATUS;
16
17
  }
@@ -62,6 +62,7 @@ export interface IUserInstituteMetaAttributes extends IDefaultAttributes, Docume
62
62
  isFeeCollectionCreated: boolean;
63
63
  designationId?: string;
64
64
  studentProfileImage?: string;
65
+ selectedSportsIds?: string[];
65
66
  }
66
67
  export interface IUserWiseData {
67
68
  userId: string;
@@ -70,6 +70,10 @@ const userAcademyMetaSchema = new mongoose_1.Schema({
70
70
  type: String,
71
71
  required: false,
72
72
  },
73
+ designation: {
74
+ type: String,
75
+ required: false,
76
+ },
73
77
  additionalField: {
74
78
  type: Object,
75
79
  },
@@ -244,6 +244,10 @@ const userInstituteMetaSchema = new mongoose_1.Schema({
244
244
  },
245
245
  studentProfileImage: {
246
246
  type: String,
247
+ },
248
+ selectedSportsIds: {
249
+ type: [String],
250
+ default: [],
247
251
  }
248
252
  }, {
249
253
  timestamps: true,
@@ -11,6 +11,7 @@ declare class SendNotificationModel extends Model<INotificationModelAttributes,
11
11
  title: string;
12
12
  message: string;
13
13
  instituteId: string;
14
+ sportsAcademyId: string;
14
15
  moduleType: NOTIFICATION_MODULE_TYPE;
15
16
  type: NOTIFICATION_TYPE[];
16
17
  createdBy: string;
@@ -70,6 +70,11 @@ SendNotificationModel.init({
70
70
  allowNull: true,
71
71
  field: 'institute_id',
72
72
  },
73
+ sportsAcademyId: {
74
+ type: sequelize_1.DataTypes.STRING,
75
+ allowNull: true,
76
+ field: 'sports_academy_id',
77
+ },
73
78
  viewDate: {
74
79
  type: sequelize_1.DataTypes.DATE,
75
80
  allowNull: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.689",
3
+ "version": "1.1.691",
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",