@kipicore/dbcore 1.1.94 → 1.1.96
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/app.d.ts +2 -1
- package/dist/constants/app.js +1 -0
- package/dist/constants/errorMessages.d.ts +4 -2
- package/dist/constants/errorMessages.js +2 -0
- package/dist/constants/successMessages.d.ts +2 -1
- package/dist/constants/successMessages.js +1 -0
- package/dist/db/psql/migrations/20251118115124-maintenance-table.js +10 -1
- package/dist/interfaces/maintenanceInterface.d.ts +2 -1
- package/dist/models/psql/maintenanceModel.d.ts +1 -0
- package/dist/models/psql/maintenanceModel.js +8 -3
- package/package.json +1 -1
package/dist/constants/app.d.ts
CHANGED
|
@@ -658,7 +658,8 @@ export declare enum PDF_TEMPLATES {
|
|
|
658
658
|
SCHOOL_LEAVING_CERTIFICATE_TEMPLATE = "schoolLeavingCertificateTemplate",
|
|
659
659
|
BONAFIDE_CERTIFICATE_TEMPLATE = "bonafideCertificateTemplate",
|
|
660
660
|
CHARACTER_CERTIFICATES_TEMPLATE = "characterCertificateTemplate",
|
|
661
|
-
TRIAL_CERTIFICATE_TEMPLATE = "trialCertificateTemplate"
|
|
661
|
+
TRIAL_CERTIFICATE_TEMPLATE = "trialCertificateTemplate",
|
|
662
|
+
HALL_TICKET_TEMPLATE = "hallTicketTemplate"
|
|
662
663
|
}
|
|
663
664
|
export declare enum EMAIL_SUBJECTS {
|
|
664
665
|
CREATE_GUARDIAN_VERIFICATION = "Verification Of Guardian Request",
|
package/dist/constants/app.js
CHANGED
|
@@ -805,6 +805,7 @@ var PDF_TEMPLATES;
|
|
|
805
805
|
PDF_TEMPLATES["BONAFIDE_CERTIFICATE_TEMPLATE"] = "bonafideCertificateTemplate";
|
|
806
806
|
PDF_TEMPLATES["CHARACTER_CERTIFICATES_TEMPLATE"] = "characterCertificateTemplate";
|
|
807
807
|
PDF_TEMPLATES["TRIAL_CERTIFICATE_TEMPLATE"] = "trialCertificateTemplate";
|
|
808
|
+
PDF_TEMPLATES["HALL_TICKET_TEMPLATE"] = "hallTicketTemplate";
|
|
808
809
|
})(PDF_TEMPLATES || (exports.PDF_TEMPLATES = PDF_TEMPLATES = {}));
|
|
809
810
|
var EMAIL_SUBJECTS;
|
|
810
811
|
(function (EMAIL_SUBJECTS) {
|
|
@@ -1129,12 +1129,14 @@ export declare enum SEATING_ARRANGEMENT_ERROR_MESSAGES {
|
|
|
1129
1129
|
GET_FAIL = "Unable to retrieve Seating Arrangement data!",
|
|
1130
1130
|
UPDATE_FAIL = "Unable to update Seating Arrangement data!",
|
|
1131
1131
|
DELETE_FAIL = "Unable to delete Seating Arrangement data!",
|
|
1132
|
-
NOT_FOUND = "Unable to find Seating Arrangement data!"
|
|
1132
|
+
NOT_FOUND = "Unable to find Seating Arrangement data!",
|
|
1133
|
+
HALL_TICKET_GENERATE_FAIL = "Unable to generate Hall ticket"
|
|
1133
1134
|
}
|
|
1134
1135
|
export declare enum MAINTENANCE_ERROR_MESSAGES {
|
|
1135
1136
|
CREATE_FAIL = "Unable to save Maintenance data!",
|
|
1136
1137
|
GET_FAIL = "Unable to retrieve Maintenance data!",
|
|
1137
1138
|
UPDATE_FAIL = "Unable to update Maintenance data!",
|
|
1138
1139
|
DELETE_FAIL = "Unable to delete Maintenance data!",
|
|
1139
|
-
NOT_FOUND = "Unable to find Maintenance data!"
|
|
1140
|
+
NOT_FOUND = "Unable to find Maintenance data!",
|
|
1141
|
+
EXISTS_MAINTENANCE = "is already exists for App."
|
|
1140
1142
|
}
|
|
@@ -1252,6 +1252,7 @@ var SEATING_ARRANGEMENT_ERROR_MESSAGES;
|
|
|
1252
1252
|
SEATING_ARRANGEMENT_ERROR_MESSAGES["UPDATE_FAIL"] = "Unable to update Seating Arrangement data!";
|
|
1253
1253
|
SEATING_ARRANGEMENT_ERROR_MESSAGES["DELETE_FAIL"] = "Unable to delete Seating Arrangement data!";
|
|
1254
1254
|
SEATING_ARRANGEMENT_ERROR_MESSAGES["NOT_FOUND"] = "Unable to find Seating Arrangement data!";
|
|
1255
|
+
SEATING_ARRANGEMENT_ERROR_MESSAGES["HALL_TICKET_GENERATE_FAIL"] = "Unable to generate Hall ticket";
|
|
1255
1256
|
})(SEATING_ARRANGEMENT_ERROR_MESSAGES || (exports.SEATING_ARRANGEMENT_ERROR_MESSAGES = SEATING_ARRANGEMENT_ERROR_MESSAGES = {}));
|
|
1256
1257
|
var MAINTENANCE_ERROR_MESSAGES;
|
|
1257
1258
|
(function (MAINTENANCE_ERROR_MESSAGES) {
|
|
@@ -1260,4 +1261,5 @@ var MAINTENANCE_ERROR_MESSAGES;
|
|
|
1260
1261
|
MAINTENANCE_ERROR_MESSAGES["UPDATE_FAIL"] = "Unable to update Maintenance data!";
|
|
1261
1262
|
MAINTENANCE_ERROR_MESSAGES["DELETE_FAIL"] = "Unable to delete Maintenance data!";
|
|
1262
1263
|
MAINTENANCE_ERROR_MESSAGES["NOT_FOUND"] = "Unable to find Maintenance data!";
|
|
1264
|
+
MAINTENANCE_ERROR_MESSAGES["EXISTS_MAINTENANCE"] = "is already exists for App.";
|
|
1263
1265
|
})(MAINTENANCE_ERROR_MESSAGES || (exports.MAINTENANCE_ERROR_MESSAGES = MAINTENANCE_ERROR_MESSAGES = {}));
|
|
@@ -762,7 +762,8 @@ export declare enum SEATING_ARRANGEMENT_SUCCESS_MESSAGES {
|
|
|
762
762
|
CREATE_SUCCESS = "Seating Arrangement created successfully",
|
|
763
763
|
GET_SUCCESS = "Seating Arrangement retrieved successfully",
|
|
764
764
|
UPDATE_SUCCESS = "Seating Arrangement updated successfully",
|
|
765
|
-
DELETE_SUCCESS = "Seating Arrangement deleted successfully"
|
|
765
|
+
DELETE_SUCCESS = "Seating Arrangement deleted successfully",
|
|
766
|
+
HALL_TICKET_GENERATE_SUCCESS = "Hall ticket generate successfully"
|
|
766
767
|
}
|
|
767
768
|
export declare enum MAINTENANCE_SUCCESS_MESSAGES {
|
|
768
769
|
CREATE_SUCCESS = "Maintenance created successfully",
|
|
@@ -888,6 +888,7 @@ var SEATING_ARRANGEMENT_SUCCESS_MESSAGES;
|
|
|
888
888
|
SEATING_ARRANGEMENT_SUCCESS_MESSAGES["GET_SUCCESS"] = "Seating Arrangement retrieved successfully";
|
|
889
889
|
SEATING_ARRANGEMENT_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "Seating Arrangement updated successfully";
|
|
890
890
|
SEATING_ARRANGEMENT_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "Seating Arrangement deleted successfully";
|
|
891
|
+
SEATING_ARRANGEMENT_SUCCESS_MESSAGES["HALL_TICKET_GENERATE_SUCCESS"] = "Hall ticket generate successfully";
|
|
891
892
|
})(SEATING_ARRANGEMENT_SUCCESS_MESSAGES || (exports.SEATING_ARRANGEMENT_SUCCESS_MESSAGES = SEATING_ARRANGEMENT_SUCCESS_MESSAGES = {}));
|
|
892
893
|
var MAINTENANCE_SUCCESS_MESSAGES;
|
|
893
894
|
(function (MAINTENANCE_SUCCESS_MESSAGES) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
const { type } = require('os');
|
|
3
2
|
const up = async (queryInterface, Sequelize) => {
|
|
4
3
|
const tableName = 'maintenance';
|
|
5
4
|
const tableExists = await queryInterface
|
|
@@ -54,6 +53,11 @@ const up = async (queryInterface, Sequelize) => {
|
|
|
54
53
|
field: 'entity_id',
|
|
55
54
|
allowNull: true,
|
|
56
55
|
},
|
|
56
|
+
appType: {
|
|
57
|
+
type: Sequelize.STRING,
|
|
58
|
+
field: 'app_type',
|
|
59
|
+
allowNull: true,
|
|
60
|
+
},
|
|
57
61
|
createdBy: {
|
|
58
62
|
type: Sequelize.UUID,
|
|
59
63
|
allowNull: true,
|
|
@@ -135,6 +139,11 @@ const up = async (queryInterface, Sequelize) => {
|
|
|
135
139
|
field: 'entity_id',
|
|
136
140
|
allowNull: true,
|
|
137
141
|
},
|
|
142
|
+
appType: {
|
|
143
|
+
type: Sequelize.STRING,
|
|
144
|
+
field: 'app_type',
|
|
145
|
+
allowNull: true,
|
|
146
|
+
},
|
|
138
147
|
createdBy: {
|
|
139
148
|
type: Sequelize.UUID,
|
|
140
149
|
allowNull: true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MAINTENANCE_MODE, MAINTENANCE_MODULE_NAME, MAINTENANCE_TYPE } from '../constants';
|
|
1
|
+
import { APP_TYPE, MAINTENANCE_MODE, MAINTENANCE_MODULE_NAME, MAINTENANCE_TYPE } from '../constants';
|
|
2
2
|
import { IDefaultAttributes } from './commonInterface';
|
|
3
3
|
export interface IMaintenanceModelAttributes extends IDefaultAttributes {
|
|
4
4
|
id: string;
|
|
@@ -10,4 +10,5 @@ export interface IMaintenanceModelAttributes extends IDefaultAttributes {
|
|
|
10
10
|
moduleName?: MAINTENANCE_MODULE_NAME;
|
|
11
11
|
instituteId?: string;
|
|
12
12
|
entityId?: string;
|
|
13
|
+
appType: APP_TYPE;
|
|
13
14
|
}
|
|
@@ -11,6 +11,7 @@ declare class MaintenanceModel extends Model<IMaintenanceModelAttributes, TIWork
|
|
|
11
11
|
maintenanceTitle: string;
|
|
12
12
|
maintenanceDescription: string;
|
|
13
13
|
entityId?: string;
|
|
14
|
+
appType: string;
|
|
14
15
|
static associate(models: any): void;
|
|
15
16
|
}
|
|
16
17
|
export default MaintenanceModel;
|
|
@@ -4,7 +4,7 @@ const sequelize_1 = require("sequelize");
|
|
|
4
4
|
const index_1 = require("./index");
|
|
5
5
|
class MaintenanceModel extends sequelize_1.Model {
|
|
6
6
|
static associate(models) {
|
|
7
|
-
const { UserModel, InstituteModel } = models;
|
|
7
|
+
const { UserModel, InstituteModel, InstituteEntityModel } = models;
|
|
8
8
|
MaintenanceModel.belongsTo(UserModel, {
|
|
9
9
|
foreignKey: {
|
|
10
10
|
name: 'createdBy',
|
|
@@ -43,14 +43,14 @@ class MaintenanceModel extends sequelize_1.Model {
|
|
|
43
43
|
},
|
|
44
44
|
as: 'instituteMaintenance',
|
|
45
45
|
});
|
|
46
|
-
MaintenanceModel.belongsTo(
|
|
46
|
+
MaintenanceModel.belongsTo(InstituteEntityModel, {
|
|
47
47
|
foreignKey: {
|
|
48
48
|
name: 'entityId',
|
|
49
49
|
field: 'entity_id',
|
|
50
50
|
},
|
|
51
51
|
as: 'maintenanceInstituteEntity',
|
|
52
52
|
});
|
|
53
|
-
|
|
53
|
+
InstituteEntityModel.hasMany(MaintenanceModel, {
|
|
54
54
|
foreignKey: {
|
|
55
55
|
name: 'entityId',
|
|
56
56
|
field: 'entity_id',
|
|
@@ -105,6 +105,11 @@ MaintenanceModel.init({
|
|
|
105
105
|
field: 'entity_id',
|
|
106
106
|
allowNull: true,
|
|
107
107
|
},
|
|
108
|
+
appType: {
|
|
109
|
+
type: sequelize_1.DataTypes.STRING,
|
|
110
|
+
field: 'app_type',
|
|
111
|
+
allowNull: true,
|
|
112
|
+
}
|
|
108
113
|
}, {
|
|
109
114
|
modelName: 'MaintenanceModel',
|
|
110
115
|
tableName: 'maintenance',
|
package/package.json
CHANGED