@kipicore/dbcore 1.1.137 → 1.1.139
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/constants/errorMessages.d.ts +2 -1
- package/dist/constants/errorMessages.js +1 -0
- package/dist/db/psql/migrations/20251211045621-rename-academic-calendar-id-column.d.ts +2 -0
- package/dist/db/psql/migrations/20251211045621-rename-academic-calendar-id-column.js +18 -0
- package/dist/db/psql/migrations/20251211121740-remove_index_add_in_syncAcademicList_in_ins.d.ts +2 -0
- package/dist/db/psql/migrations/20251211121740-remove_index_add_in_syncAcademicList_in_ins.js +22 -0
- package/dist/interfaces/appointmentHistoryInterface.d.ts +1 -0
- package/dist/interfaces/appointmentInterface.d.ts +1 -0
- package/dist/interfaces/instituteInterface.d.ts +1 -0
- package/dist/interfaces/pollSelectionInterface.d.ts +1 -0
- package/dist/models/mongodb/appointmentHistoryModel.js +4 -0
- package/dist/models/mongodb/appointmentModel.js +4 -0
- package/dist/models/mongodb/pollSelectionModel.js +4 -0
- package/dist/models/psql/instituteModel.d.ts +1 -0
- package/dist/models/psql/instituteModel.js +6 -0
- package/package.json +1 -1
|
@@ -1222,5 +1222,6 @@ export declare enum POLL_SELECTION_ERROR_MESSAGES {
|
|
|
1222
1222
|
DELETE_FAIL = "Unable to delete Poll selection data!",
|
|
1223
1223
|
NOT_FOUND = "Unable to find Poll selection data!",
|
|
1224
1224
|
EXIST_POLL_OPTION = "You have already selected this option for the poll",
|
|
1225
|
-
MAX_OPTION_ERROR = "You have reached the maximum number of options allowed for this poll."
|
|
1225
|
+
MAX_OPTION_ERROR = "You have reached the maximum number of options allowed for this poll.",
|
|
1226
|
+
POLL_EXPIRED = "This poll has expired and is no longer accepting selections."
|
|
1226
1227
|
}
|
|
@@ -1357,4 +1357,5 @@ var POLL_SELECTION_ERROR_MESSAGES;
|
|
|
1357
1357
|
POLL_SELECTION_ERROR_MESSAGES["NOT_FOUND"] = "Unable to find Poll selection data!";
|
|
1358
1358
|
POLL_SELECTION_ERROR_MESSAGES["EXIST_POLL_OPTION"] = "You have already selected this option for the poll";
|
|
1359
1359
|
POLL_SELECTION_ERROR_MESSAGES["MAX_OPTION_ERROR"] = "You have reached the maximum number of options allowed for this poll.";
|
|
1360
|
+
POLL_SELECTION_ERROR_MESSAGES["POLL_EXPIRED"] = "This poll has expired and is no longer accepting selections.";
|
|
1360
1361
|
})(POLL_SELECTION_ERROR_MESSAGES || (exports.POLL_SELECTION_ERROR_MESSAGES = POLL_SELECTION_ERROR_MESSAGES = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('account_has_receipt_details');
|
|
4
|
+
if (!table.academic_calendar_id) {
|
|
5
|
+
await queryInterface.renameColumn('account_has_receipt_details', 'academic_calender_id', // old col name
|
|
6
|
+
'academic_calendar_id');
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
const down = async (queryInterface, Sequelize) => {
|
|
10
|
+
const table = await queryInterface.describeTable('account_has_receipt_details');
|
|
11
|
+
if (table.academic_calendar_id) {
|
|
12
|
+
await queryInterface.removeColumn('account_has_receipt_details', 'academic_calendar_id');
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
module.exports = {
|
|
16
|
+
up,
|
|
17
|
+
down,
|
|
18
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('institutes');
|
|
4
|
+
if (!table.sync_academic_list) {
|
|
5
|
+
await queryInterface.addColumn('institutes', 'sync_academic_list', {
|
|
6
|
+
type: Sequelize.ARRAY(Sequelize.STRING),
|
|
7
|
+
defaultValue: [],
|
|
8
|
+
allowNull: true,
|
|
9
|
+
field: 'sync_academic_list',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const down = async (queryInterface, Sequelize) => {
|
|
14
|
+
const table = await queryInterface.describeTable('institutes');
|
|
15
|
+
if (table.sync_academic_list) {
|
|
16
|
+
await queryInterface.removeColumn('institutes', 'sync_academic_list');
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
module.exports = {
|
|
20
|
+
up,
|
|
21
|
+
down,
|
|
22
|
+
};
|
|
@@ -35,6 +35,7 @@ declare class InstituteModel extends Model<IInstituteAttributes, TInstituteCreat
|
|
|
35
35
|
plannerSyncStatus: PLANNER_SYNC_STATUS;
|
|
36
36
|
pdfId?: string;
|
|
37
37
|
campusId?: string;
|
|
38
|
+
syncAcademicList?: string[];
|
|
38
39
|
createdBy: string;
|
|
39
40
|
updatedBy: string;
|
|
40
41
|
deletedBy: string;
|
|
@@ -93,6 +93,12 @@ InstituteModel.init({
|
|
|
93
93
|
defaultValue: null,
|
|
94
94
|
allowNull: true,
|
|
95
95
|
},
|
|
96
|
+
syncAcademicList: {
|
|
97
|
+
type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.STRING),
|
|
98
|
+
defaultValue: [],
|
|
99
|
+
allowNull: true,
|
|
100
|
+
field: 'sync_academic_list',
|
|
101
|
+
},
|
|
96
102
|
district: { type: sequelize_1.DataTypes.STRING, allowNull: true },
|
|
97
103
|
mobile: { type: sequelize_1.DataTypes.STRING(10), allowNull: true },
|
|
98
104
|
contactPerson: { type: sequelize_1.DataTypes.STRING(100), field: 'contact_person', allowNull: true },
|
package/package.json
CHANGED