@kipicore/dbcore 1.1.479 → 1.1.481
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 +8 -0
- package/dist/constants/errorMessages.js +10 -1
- package/dist/constants/successMessages.d.ts +6 -0
- package/dist/constants/successMessages.js +8 -1
- package/dist/db/psql/migrations/20260425000005-create_user_payouts.js +23 -1
- package/dist/db/psql/migrations/20260427122337-paidAmount_add_in_payout_transaction_histories.d.ts +2 -0
- package/dist/db/psql/migrations/{20260425000006-create_user_payout_details.js → 20260427122337-paidAmount_add_in_payout_transaction_histories.js} +6 -9
- package/dist/db/psql/migrations/20260428121214-create-past-yesr-record.d.ts +2 -0
- package/dist/db/psql/migrations/20260428121214-create-past-yesr-record.js +194 -0
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/index.js +1 -0
- package/dist/interfaces/pastYearRecordInterface.d.ts +14 -0
- package/dist/interfaces/pastYearRecordInterface.js +2 -0
- package/dist/interfaces/payoutTransactionHistoryInterface.d.ts +1 -0
- package/dist/models/psql/index.d.ts +1 -0
- package/dist/models/psql/index.js +3 -1
- package/dist/models/psql/pastYearRecordModel.d.ts +24 -0
- package/dist/models/psql/pastYearRecordModel.js +93 -0
- package/dist/models/psql/payoutTransactionHistoryModel.d.ts +1 -0
- package/dist/models/psql/payoutTransactionHistoryModel.js +6 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/pastYearRecordType.d.ts +2 -0
- package/dist/types/pastYearRecordType.js +2 -0
- package/package.json +1 -1
- package/dist/db/psql/migrations/20260425000006-create_user_payout_details.d.ts +0 -2
|
@@ -1447,3 +1447,11 @@ export declare enum NOTICEBOARD_ERROR_MESSAGES {
|
|
|
1447
1447
|
CREATE_FAIL = "Unable to create noticeboard!",
|
|
1448
1448
|
GET_FAIL = "Unable to retrieve noticeboard!"
|
|
1449
1449
|
}
|
|
1450
|
+
export declare enum PAST_YEAR_RECORD_ERROR_MESSAGES {
|
|
1451
|
+
NOT_FOUND = "Past Year Record not found!",
|
|
1452
|
+
ALREADY_EXISTS = "Past Year Record already exists",
|
|
1453
|
+
DELETE_FAIL = "Unable to delete Past Year Record",
|
|
1454
|
+
UPDATE_FAIL = "Unable to update Past Year Record",
|
|
1455
|
+
CREATE_FAIL = "Unable to create Past Year Record",
|
|
1456
|
+
GET_FAIL = "Unable to retrieve Past Year Record"
|
|
1457
|
+
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FILE_STORAGE_ERROR_MESSAGES = exports.EXAM_HAS_ANSWER_SHEET_ERROR_MESSAGES = exports.EXAM_ERROR_MESSAGES = exports.ANNOUCEMENT_ERROR_MESSAGES = exports.PARENTS_ERROR_MESSAGES = exports.USER_INSTITUTE_META_ERROR_MESSAGES = exports.INSTITUTE_ENTITY_ERROR_MESSAGES = exports.INSTITUTE_ENTITY_TYPE_ERROR_MESSAGES = exports.INSTITUTE_ERROR_MESSAGES = exports.MODULE_ERROR_MESSAGES = exports.ROLE_ERROR_MESSAGES = exports.TYPE_MANAGEMENT_ERROR_MESSAGES = exports.CLASSROOM_ERROR_MESSAGES = exports.BATCH_ERROR_MESSAGES = exports.ACADEMIC_CALENDAR_ERROR_MESSAGES = exports.EVENT_ERROR_MESSAGES = exports.HOLIDAY_ERROR_MESSAGES = exports.USER_HAS_ROLL_NUMBER_ERROR_MESSAGES = exports.USER_HAS_OFFER_ERROR_MESSAGES = exports.FEE_REMINDER_ERROR_MESSAGES = exports.FEE_REMINDER_SETTING_ERROR_MESSAGES = exports.FEEREMINDER_ERROR_MESSAGES = exports.FEESCOLLECTION_ERROR_MESSAGES = exports.USER_FEE_TYPE_ERROR_MESSAGES = exports.SCHOOL_FEE_ERROR_MESSAGES = exports.FEE_TYPE_ERROR_MESSAGES = exports.FACILITY_ERROR_MESSAGES = exports.OFFER_ERROR_MESSAGES = exports.INVENTORY_HISTORY_ERROR_MESSAGES = exports.PAYMENT_TERMS_ERROR_MESSAGES = exports.INVENTORY_ERROR_MESSAGES = exports.CATEGORY_ERROR_MESSAGES = exports.USER_HAS_INVENTORY_ERROR_MESSAGES = exports.SUBJECT_HAS_FEE_ERROR_MESSAGES = exports.FEE_HISTORY_ERROR_MESSAGES = exports.MASTER_LEAVE_ERROR_MESSAGES = exports.LEAVE_ERROR_MESSAGES = exports.SUBSCRIPTION_ERROR_MESSAGES = exports.FEEDBACK_ERROR_MESSAGES = exports.SCHOOL_FEES_COLLECTION_ERROR_MESSAGES = exports.ACCOUNT_RECEIPT_ERROR_MESSAGES = exports.SCHOOL_SHIFT_ERROR_MESSAGES = exports.BANK_ACCOUNT_DETAILS_ERROR_MESSAGES = exports.INFORMATION_SUPPORT_ERROR_MESSAGES = exports.INQUIRY_ERROR_MESSAGES = exports.APPROVE_REQUEST_ERROR_MESSAGES = exports.BANNER_ERROR_MESSAGES = exports.USER_FEE_TYPE_ACCOUNT_ERROR_MESSAGES = exports.USER_ERROR_MESSAGES = exports.ERROR_MESSAGES = void 0;
|
|
4
4
|
exports.WALLET_ERROR_MESSAGES = exports.REPLACE_TEACHER_ERROR_MESSAGES = exports.CERTIFICATES_HISTORY_ERROR_MESSAGES = exports.CERTIFICATES_MANAGEMENT_ERROR_MESSAGES = exports.DASHBOARD_MANAGEMENT_ERROR_MESSAGES = exports.PDC_HISTORY_ERROR_MESSAGES = exports.COLUMN_ERROR_MESSAGES = exports.INVOICE_ERROR_MESSAGES = exports.PRODUCT_ERROR_MESSAGES = exports.SUB_CATEGORY_ERROR_MESSAGES = exports.VENDOR_MANAGEMENT_ERROR_MESSAGES = exports.COIN_PURCHASE_OFFER_ERROR_MESSAGES = exports.SYLLABUS_ERROR_MESSAGES = exports.DAILY_BOOK_ERROR_MESSAGES = exports.USER_HAS_HOME_WORK_ERROR_MESSAGES = exports.HOME_WORK_ERROR_MESSAGES = exports.CLOUD_STORAGE_ERROR_MESSAGES = exports.SUBSCRIPTION_PLAN_ERROR_MESSAGES = exports.FLOOR_MANAGEMENT_ERROR_MESSAGES = exports.SIGNED_URL_ERROR_MESSAGES = exports.CAREER_ERROR_MESSAGES = exports.RULES_REGULATION_ERROR_MESSAGES = exports.NOTIFICATION_ERROR_MESSAGES = exports.PHOTO_GALLERY_ERROR_MESSAGES = exports.CONTACT_FEED_BACK_ERROR_MESSAGES = exports.GENERATE_ID_CARD_ERROR_MESSAGES = exports.VEHICLE_ERROR_MESSAGES = exports.BATCH_SUBJECT_PROJECT_ASSESSMENT_ERROR_MESSAGES = exports.USER_BOOK_ASSESSMENT_ERROR_MESSAGES = exports.BATCH_SUBJECT_BOOK_ASSESSMENT_ERROR_MESSAGES = exports.TASK_MANAGEMENT_ERROR_MESSAGES = exports.EXAM_GROUP_ERROR_MESSAGES = exports.USER_PAYOUT_HISTORY_ERROR_MESSAGES = exports.USER_PAYOUT_ERROR_MESSAGES = exports.SUBJECT_INDEX_ERROR_MESSAGES = exports.TESTIMONIAL_ERROR_MESSAGES = exports.DRIVER_ERROR_MESSAGES = exports.BLOG_ERROR_MESSAGES = exports.VIDEO_ANALYST_ERROR_MESSAGES = exports.PDC_CHEQUE_ERROR_MESSAGES = exports.GREETING_ERROR_MESSAGES = exports.USER_HAS_COURSE_ERROR_MESSAGES = exports.COURSE_ERROR_MESSAGES = exports.TO_DO_ERROR_MESSAGES = exports.SLOT_ERROR_MESSAGES = exports.TRIP_ERROR_MESSAGES = exports.LECTURE_ERROR_MESSAGES = exports.WORKING_DAYS_ERROR_MESSAGES = exports.USER_SCHOOL_METADATA_ERROR_MESSAGES = exports.ATTENDANCE_ERROR_MESSAGES = void 0;
|
|
5
5
|
exports.POSTAL_DISPATCH_ERROR_MESSAGES = exports.CALL_REGISTER_ERROR_MESSAGES = exports.VISITOR_BOOK_ERROR_MESSAGES = exports.PDC_CHEQUE_CONFIGURATION_ERROR_MESSAGES = exports.MARK_SHEET_CONFIGURATION_ERROR_MESSAGES = exports.INTERNAL_MARK_ERROR_MESSAGES = exports.APP_ANALYTICS_EVENT_ERROR_MESSAGES = exports.GRANT_AND_DONATION_ERROR_MESSAGES = exports.TICKET_RAISE_ERROR_MESSAGES = exports.TERM_AND_CONDITION_ERROR_MESSAGES = exports.EDUCATION_OFFICER_ERROR_MESSAGES = exports.USER_HAS_PENALTY_ERROR_MESSAGES = exports.PENALTY_ERROR_MESSAGES = exports.CLASS_ROOM_COLLECTION_ERROR_MESSAGES = exports.CLASS_ROOM_EVENT_ERROR_MESSAGES = exports.INSTITUTE_FEE_ERROR_MESSAGES = exports.USER_DIRECTORY_ERROR_MESSAGES = exports.STUDENT_LEAVE_REQUEST_ERROR_MESSAGES = exports.EVENT_TEMPLATES_ERROR_MESSAGES = exports.POLL_SELECTION_ERROR_MESSAGES = exports.POLL_CREATE_ERROR_MESSAGES = exports.SHEET_FIELD_ERROR_MESSAGES = exports.CLONE_LIST_ERROR_MESSAGES = exports.COMPETITION_USER_ERROR_MESSAGES = exports.COMPETITION_GROUP_ERROR_MESSAGES = exports.COMPETITION_ERROR_MESSAGES = exports.CAMPUS_CARNIVAL_ERROR_MESSAGES = exports.INCOME_EXPENSE_ERROR_MESSAGES = exports.APPOINTMENT_HISTORY_ERROR_MESSAGES = exports.APPOINTMENT_ERROR_MESSAGES = exports.MAINTENANCE_ERROR_MESSAGES = exports.SEATING_ARRANGEMENT_ERROR_MESSAGES = exports.ASSIGN_FILE_ERROR_MESSAGES = exports.THEME_ERROR_MESSAGES = exports.B_DAY_WISH_ERROR_MESSAGES = exports.ADDITIONAL_DETAIL_ERROR_MESSAGES = exports.ADVERTISEMENT_ERROR_MESSAGES = exports.WORK_OFF_DAYS_ERROR_MESSAGES = exports.ENTITY_WISE_CALENDAR_ERROR_MESSAGES = exports.CAMPUS_ERROR_MESSAGES = exports.CANTEEN_ERROR_MESSAGES = exports.LOST_FOUND_ITEM_ERROR_MESSAGES = exports.PAYMENT_TRANSACTION_ERROR_MESSAGES = exports.USER_REQUIRED_STEPS_ERROR_MESSAGES = exports.JOB_APPLY_ERROR_MESSAGES = exports.ENTITY_GROUP_ERROR_MESSAGES = exports.USER_HAS_STORAGE_ERROR_MESSAGES = exports.INSTITUTE_SUBSCRIPTION_PLAN_ERROR_MESSAGES = exports.WALLET_TRANSACTION_ERROR_MESSAGES = exports.WALLET_HISTORY_ERROR_MESSAGES = void 0;
|
|
6
|
-
exports.NOTICEBOARD_ERROR_MESSAGES = exports.USER_HAS_PERMISSION_ERROR_MESSAGES = exports.ROLE_MANAGEMENT_ERROR_MESSAGES = exports.ROLE_HAS_PERMISSION_ERROR_MESSAGES = exports.PERMISSION_ERROR_MESSAGES = exports.COMMUNITY_MESSAGE_ERROR_MESSAGES = exports.GROUP_MEMBER_ERROR_MESSAGES = exports.COMMUNITY_GROUP_ERROR_MESSAGES = exports.DESIGNATION_ERROR_MESSAGES = exports.USER_HAS_OFFER_AND_DISCOUNT_ERROR_MESSAGES = exports.OFFER_AND_DISCOUNT_ERROR_MESSAGES = void 0;
|
|
6
|
+
exports.PAST_YEAR_RECORD_ERROR_MESSAGES = exports.NOTICEBOARD_ERROR_MESSAGES = exports.USER_HAS_PERMISSION_ERROR_MESSAGES = exports.ROLE_MANAGEMENT_ERROR_MESSAGES = exports.ROLE_HAS_PERMISSION_ERROR_MESSAGES = exports.PERMISSION_ERROR_MESSAGES = exports.COMMUNITY_MESSAGE_ERROR_MESSAGES = exports.GROUP_MEMBER_ERROR_MESSAGES = exports.COMMUNITY_GROUP_ERROR_MESSAGES = exports.DESIGNATION_ERROR_MESSAGES = exports.USER_HAS_OFFER_AND_DISCOUNT_ERROR_MESSAGES = exports.OFFER_AND_DISCOUNT_ERROR_MESSAGES = void 0;
|
|
7
7
|
var ERROR_MESSAGES;
|
|
8
8
|
(function (ERROR_MESSAGES) {
|
|
9
9
|
ERROR_MESSAGES["CREATE_FAIL"] = "Unable to save data in DB!";
|
|
@@ -1612,3 +1612,12 @@ var NOTICEBOARD_ERROR_MESSAGES;
|
|
|
1612
1612
|
NOTICEBOARD_ERROR_MESSAGES["CREATE_FAIL"] = "Unable to create noticeboard!";
|
|
1613
1613
|
NOTICEBOARD_ERROR_MESSAGES["GET_FAIL"] = "Unable to retrieve noticeboard!";
|
|
1614
1614
|
})(NOTICEBOARD_ERROR_MESSAGES || (exports.NOTICEBOARD_ERROR_MESSAGES = NOTICEBOARD_ERROR_MESSAGES = {}));
|
|
1615
|
+
var PAST_YEAR_RECORD_ERROR_MESSAGES;
|
|
1616
|
+
(function (PAST_YEAR_RECORD_ERROR_MESSAGES) {
|
|
1617
|
+
PAST_YEAR_RECORD_ERROR_MESSAGES["NOT_FOUND"] = "Past Year Record not found!";
|
|
1618
|
+
PAST_YEAR_RECORD_ERROR_MESSAGES["ALREADY_EXISTS"] = "Past Year Record already exists";
|
|
1619
|
+
PAST_YEAR_RECORD_ERROR_MESSAGES["DELETE_FAIL"] = "Unable to delete Past Year Record";
|
|
1620
|
+
PAST_YEAR_RECORD_ERROR_MESSAGES["UPDATE_FAIL"] = "Unable to update Past Year Record";
|
|
1621
|
+
PAST_YEAR_RECORD_ERROR_MESSAGES["CREATE_FAIL"] = "Unable to create Past Year Record";
|
|
1622
|
+
PAST_YEAR_RECORD_ERROR_MESSAGES["GET_FAIL"] = "Unable to retrieve Past Year Record";
|
|
1623
|
+
})(PAST_YEAR_RECORD_ERROR_MESSAGES || (exports.PAST_YEAR_RECORD_ERROR_MESSAGES = PAST_YEAR_RECORD_ERROR_MESSAGES = {}));
|
|
@@ -1037,3 +1037,9 @@ export declare enum NOTICEBOARD_SUCCESS_MESSAGES {
|
|
|
1037
1037
|
UPDATE_SUCCESS = "Noticeboard updated successfully!",
|
|
1038
1038
|
DELETE_SUCCESS = "Noticeboard deleted successfully!"
|
|
1039
1039
|
}
|
|
1040
|
+
export declare enum PAST_YEAR_RECORD_SUCCESS_MESSAGES {
|
|
1041
|
+
CREATE_SUCCESS = "Past Year Record created successfully!",
|
|
1042
|
+
GET_SUCCESS = "Past Year Record retrieved successfully!",
|
|
1043
|
+
UPDATE_SUCCESS = "Past Year Record updated successfully!",
|
|
1044
|
+
DELETE_SUCCESS = "Past Year Record deleted successfully!"
|
|
1045
|
+
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ANNOUCEMENT_SUCCESS_MESSAGES = exports.TYPE_MANAGEMENT_SUCCESS_MESSAGES = exports.PARENTS_SUCCESS_MESSAGES = exports.USER_INSTITUTE_META_SUCCESS_MESSAGES = exports.INSTITUTE_ENTITY_TYPE_SUCCESS_MESSAGES = exports.INSTITUTE_ENTITY_SUCCESS_MESSAGES = exports.WORKING_DAYS_SUCCESS_MESSAGES = exports.INSTITUTE_SUCCESS_MESSAGES = exports.MODULE_SUCCESS_MESSAGES = exports.ROLE_SUCCESS_MESSAGES = exports.CLASSROOM_SUCCESS_MESSAGES = exports.BATCH_SUCCESS_MESSAGES = exports.ACADEMIC_CALENDAR_SUCCESS_MESSAGES = exports.EVENT_SUCCESS_MESSAGES = exports.HOLIDAY_SUCCESS_MESSAGES = exports.USER_HAS_ROLL_NUMBER_SUCCESS_MESSAGES = exports.USER_HAS_OFFER_SUCCESS_MESSAGES = exports.FEE_REMINDER_SETTING_SUCCESS_MESSAGES = exports.FEEREMINDER_SUCCESS_MESSAGES = exports.FEESCOLLECTION_SUCCESS_MESSAGES = exports.OFFER_SUCCESS_MESSAGES = exports.CATEGORY_SUCCESS_MESSAGES = exports.INVENTORY_HISTORY_SUCCESS_MESSAGES = exports.INVENTORY_SUCCESS_MESSAGES = exports.USER_HAS_INVENTORY_HISTORY_SUCCESS_MESSAGES = exports.USER_HAS_INVENTORY_SUCCESS_MESSAGES = exports.SUBJECT_HAS_FEE_SUCCESS_MESSAGES = exports.FEE_HISTORY_SUCCESS_MESSAGES = exports.MASTER_LEAVE_SUCCESS_MESSAGES = exports.LEAVE_SUCCESS_MESSAGES = exports.PAYMENT_TERMS_SUCCESS_MESSAGES = exports.FACILITY_SUCCESS_MESSAGES = exports.FEE_REMINDER_SUCCESS_MESSAGES = exports.SCHOOL_SHIFT_SUCCESS_MESSAGES = exports.SUBSCRIPTION_SUCCESS_MESSAGES = exports.BANK_ACCOUNT_DETAILS_SUCCESS_MESSAGES = exports.ACCOUNT_RECEIPT_SUCCESS_MESSAGES = exports.FEE_TYPE_SUCCESS_MESSAGES = exports.FEEDBACK_SUCCESS_MESSAGES = exports.INFORMATION_SUPPORT_SUCCESS_MESSAGES = exports.INQUIRY_SUCCESS_MESSAGES = exports.FEE_SUCCESS_MESSAGES = exports.SCHOOL_FEES_COLLECTION_SUCCESS_MESSAGES = exports.USER_FEE_TYPE_SUCCESS_MESSAGES = exports.USER_FEE_TYPE_ACCOUNT_SUCCESS_MESSAGES = exports.ADMIN_SUCCESS_MESSAGES = exports.APPROVE_REQUEST_SUCCESS_MESSAGES = exports.BANNER_SUCCESS_MESSAGES = exports.USER_SUCCESS_MESSAGES = exports.SUCCESS_MESSAGES = void 0;
|
|
4
4
|
exports.CERTIFICATES_HISTORY_SUCCESS_MESSAGES = exports.CERTIFICATES_MANAGEMENT_SUCCESS_MESSAGES = exports.DASHBOARD_MANAGEMENT_SUCCESS_MESSAGES = exports.PDC_HISTORY_SUCCESS_MESSAGES = exports.COLUMN_SUCCESS_MESSAGES = exports.INVOICE_SUCCESS_MESSAGES = exports.PRODUCT_SUCCESS_MESSAGES = exports.SUB_CATEGORY_SUCCESS_MESSAGES = exports.VENDOR_MANAGEMENT_SUCCESS_MESSAGES = exports.COIN_PURCHASE_OFFER_SUCCESS_MESSAGES = exports.SYLLABUS_SUCCESS_MESSAGES = exports.DAILY_BOOK_SUCCESS_MESSAGES = exports.USER_HAS_HOME_WORK_SUCCESS_MESSAGES = exports.HOME_WORK_SUCCESS_MESSAGES = exports.CLOUD_STORAGE_SUCCESS_MESSAGES = exports.SUBSCRIPTION_PLAN_SUCCESS_MESSAGES = exports.FLOOR_MANAGEMENT_SUCCESS_MESSAGES = exports.CAREER_SUCCESS_MESSAGES = exports.RULE_REGULATION_SUCCESS_MESSAGES = exports.CUSTOME_NOTIFICATION_SUCCESS_MESSAGES = exports.NOTIFICATION_SUCCESS_MESSAGES = exports.PHOTO_GALLERY_SUCCESS_MESSAGES = exports.CONTACT_FEED_BACK_SUCCESS_MESSAGES = exports.GENERATE_ID_CARD_SUCCESS_MESSAGES = exports.VEHICLE_SUCCESS_MESSAGES = exports.BATCH_SUBJECT_PROJECT_ASSESSMENT_SUCCESS_MESSAGES = exports.USER_BOOK_ASSESSMENT_SUCCESS_MESSAGES = exports.BATCH_SUBJECT_BOOK_ASSESSMENT_SUCCESS_MESSAGES = exports.TASK_MANAGEMENT_SUCCESS_MESSAGES = exports.EXAM_GROUP_SUCCESS_MESSAGES = exports.PLANNER_SUCCESS_MESSAGES = exports.USER_PAYOUT_HISTORY_SUCCESS_MESSAGES = exports.USER_PAYOUT_SUCCESS_MESSAGES = exports.SUBJECT_INDEX_SUCCESS_MESSAGES = exports.DRIVER_SUCCESS_MESSAGES = exports.BLOG_SUCCESS_MESSAGES = exports.VIDEO_ANALYST_SUCCESS_MESSAGES = exports.TESTIMONIAL_SUCCESS_MESSAGES = exports.PDC_CHEQUE_SUCCESS_MESSAGES = exports.GREETING_SUCCESS_MESSAGES = exports.USER_HAS_COURSE_SUCCESS_MESSAGES = exports.COURSE_SUCCESS_MESSAGES = exports.TO_DO_SUCCESS_MESSAGES = exports.SLOT_SUCCESS_MESSAGES = exports.TRIP_SUCCESS_MESSAGES = exports.LECTURE_SUCCESS_MESSAGES = exports.USER_SCHOOL_METADATA_SUCCESS_MESSAGES = exports.ATTENDANCE_SUCCESS_MESSAGES = exports.EXAM_HAS_ANSWER_SHEET_SUCCESS_MESSAGES = exports.EXAM_SUCCESS_MESSAGES = void 0;
|
|
5
5
|
exports.PDC_CHEQUE_CONFIGURATION_SUCCESS_MESSAGES = exports.MARK_SHEET_CONFIGURATION_SUCCESS_MESSAGES = exports.INTERNAL_MARK_SUCCESS_MESSAGES = exports.APP_ANALYTICS_EVENT_SUCCESS_MESSAGES = exports.GRANT_AND_DONATION_SUCCESS_MESSAGES = exports.TICKET_RAISE_SUCCESS_MESSAGES = exports.TERM_AND_CONDITION_SUCCESS_MESSAGES = exports.EDUCATION_OFFICER_SUCCESS_MESSAGES = exports.USER_HAS_PENALTY_SUCCESS_MESSAGES = exports.PENALTY_SUCCESS_MESSAGES = exports.CLASSROOM_COLLECTION_SUCCESS_MESSAGES = exports.CLASSROOM_EVENT_SUCCESS_MESSAGES = exports.INSTITUTE_FEE_SUCCESS_MESSAGES = exports.FEE_CONFIG_SUCCESS_MESSAGES = exports.USER_DIRECTORY_SUCCESS_MESSAGES = exports.STUDENT_LEAVE_REQUEST_SUCCESS_MESSAGES = exports.EVENT_TEMPLATES_SUCCESS_MESSAGES = exports.POLL_SELECTION_SUCCESS_MESSAGES = exports.POLL_CREATE_SUCCESS_MESSAGES = exports.SHEET_FIELD_SUCCESS_MESSAGES = exports.CLONE_LIST_SUCCESS_MESSAGES = exports.COMPETITION_USER_SUCCESS_MESSAGES = exports.COMPETITION_GROUP_SUCCESS_MESSAGES = exports.COMPETITION_SUCCESS_MESSAGES = exports.CAMPUS_CARNIVAL_SUCCESS_MESSAGES = exports.INCOME_EXPENSE_SUCCESS_MESSAGES = exports.APPOINTMENT_HISTORY_SUCCESS_MESSAGES = exports.APPOINTMENT_SUCCESS_MESSAGES = exports.MAINTENANCE_SUCCESS_MESSAGES = exports.SEATING_ARRANGEMENT_SUCCESS_MESSAGES = exports.ASSIGN_FILE_SUCCESS_MESSAGES = exports.THEME_SUCCESS_MESSAGES = exports.B_DAY_WISH_SUCCESS_MESSAGES = exports.ADDITIONAL_DETAIL_SUCCESS_MESSAGES = exports.ADVERTISEMENT_SUCCESS_MESSAGES = exports.WORK_OFF_DAYS_SUCCESS_MESSAGES = exports.ENTITY_WISE_CALENDAR_SUCCESS_MESSAGES = exports.CAMPUS_SUCCESS_MESSAGES = exports.CANTEEN_SUCCESS_MESSAGES = exports.LOST_FOUND_ITEM_SUCCESS_MESSAGES = exports.PAYMENT_TRANSACTION_SUCCESS_MESSAGES = exports.USER_REQUIRED_STEPS_SUCCESS_MESSAGES = exports.JOB_APPLY_SUCCESS_MESSAGES = exports.ENTITY_GROUP_SUCCESS_MESSAGES = exports.USER_HAS_STORAGE_SUCCESS_MESSAGES = exports.INSTITUTE_SUBSCRIPTION_PLAN_SUCCESS_MESSAGES = exports.WALLET_TRANSACTION_SUCCESS_MESSAGES = exports.WALLET_HISTORY_SUCCESS_MESSAGES = exports.WALLET_SUCCESS_MESSAGES = exports.REPLACE_TEACHER_SUCCESS_MESSAGES = void 0;
|
|
6
|
-
exports.NOTICEBOARD_SUCCESS_MESSAGES = exports.USER_HAS_PERMISSION_SUCCESS_MESSAGES = exports.ROLE_MANAGEMENT_SUCCESS_MESSAGES = exports.ROLE_HAS_PERMISSION_SUCCESS_MESSAGES = exports.PERMISSION_SUCCESS_MESSAGES = exports.COMMUNITY_MESSAGE_SUCCESS_MESSAGES = exports.COMMUNITY_GROUP_SUCCESS_MESSAGES = exports.MEMBER_ADDED_SUCCESS_MESSAGES = exports.DESIGNATION_SUCCESS_MESSAGES = exports.USER_HAS_OFFER_AND_DISCOUNT_SUCCESS_MESSAGES = exports.OFFER_AND_DISCOUNT_SUCCESS_MESSAGES = exports.POSTAL_DISPATCH_SUCCESS_MESSAGES = exports.CALL_REGISTER_SUCCESS_MESSAGES = exports.VISITOR_BOOK_SUCCESS_MESSAGES = void 0;
|
|
6
|
+
exports.PAST_YEAR_RECORD_SUCCESS_MESSAGES = exports.NOTICEBOARD_SUCCESS_MESSAGES = exports.USER_HAS_PERMISSION_SUCCESS_MESSAGES = exports.ROLE_MANAGEMENT_SUCCESS_MESSAGES = exports.ROLE_HAS_PERMISSION_SUCCESS_MESSAGES = exports.PERMISSION_SUCCESS_MESSAGES = exports.COMMUNITY_MESSAGE_SUCCESS_MESSAGES = exports.COMMUNITY_GROUP_SUCCESS_MESSAGES = exports.MEMBER_ADDED_SUCCESS_MESSAGES = exports.DESIGNATION_SUCCESS_MESSAGES = exports.USER_HAS_OFFER_AND_DISCOUNT_SUCCESS_MESSAGES = exports.OFFER_AND_DISCOUNT_SUCCESS_MESSAGES = exports.POSTAL_DISPATCH_SUCCESS_MESSAGES = exports.CALL_REGISTER_SUCCESS_MESSAGES = exports.VISITOR_BOOK_SUCCESS_MESSAGES = void 0;
|
|
7
7
|
var SUCCESS_MESSAGES;
|
|
8
8
|
(function (SUCCESS_MESSAGES) {
|
|
9
9
|
SUCCESS_MESSAGES["CREATE_SUCCESS"] = "Resource created successfully";
|
|
@@ -1206,3 +1206,10 @@ var NOTICEBOARD_SUCCESS_MESSAGES;
|
|
|
1206
1206
|
NOTICEBOARD_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "Noticeboard updated successfully!";
|
|
1207
1207
|
NOTICEBOARD_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "Noticeboard deleted successfully!";
|
|
1208
1208
|
})(NOTICEBOARD_SUCCESS_MESSAGES || (exports.NOTICEBOARD_SUCCESS_MESSAGES = NOTICEBOARD_SUCCESS_MESSAGES = {}));
|
|
1209
|
+
var PAST_YEAR_RECORD_SUCCESS_MESSAGES;
|
|
1210
|
+
(function (PAST_YEAR_RECORD_SUCCESS_MESSAGES) {
|
|
1211
|
+
PAST_YEAR_RECORD_SUCCESS_MESSAGES["CREATE_SUCCESS"] = "Past Year Record created successfully!";
|
|
1212
|
+
PAST_YEAR_RECORD_SUCCESS_MESSAGES["GET_SUCCESS"] = "Past Year Record retrieved successfully!";
|
|
1213
|
+
PAST_YEAR_RECORD_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "Past Year Record updated successfully!";
|
|
1214
|
+
PAST_YEAR_RECORD_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "Past Year Record deleted successfully!";
|
|
1215
|
+
})(PAST_YEAR_RECORD_SUCCESS_MESSAGES || (exports.PAST_YEAR_RECORD_SUCCESS_MESSAGES = PAST_YEAR_RECORD_SUCCESS_MESSAGES = {}));
|
|
@@ -3,11 +3,22 @@ module.exports = {
|
|
|
3
3
|
up: async (queryInterface, Sequelize) => {
|
|
4
4
|
const transaction = await queryInterface.sequelize.transaction();
|
|
5
5
|
try {
|
|
6
|
+
// First convert ENUM to STRING using explicit cast
|
|
7
|
+
await queryInterface.sequelize.query(`
|
|
8
|
+
ALTER TABLE "user_payouts"
|
|
9
|
+
ALTER COLUMN "type" DROP DEFAULT,
|
|
10
|
+
ALTER COLUMN "type" TYPE VARCHAR USING "type"::text;
|
|
11
|
+
`, { transaction });
|
|
12
|
+
// Then set new default value
|
|
6
13
|
await queryInterface.changeColumn('user_payouts', 'type', {
|
|
7
14
|
type: Sequelize.STRING,
|
|
8
|
-
allowNull:
|
|
15
|
+
allowNull: true,
|
|
9
16
|
defaultValue: 'NONE',
|
|
10
17
|
}, { transaction });
|
|
18
|
+
// Optional: Drop old enum type if no longer needed
|
|
19
|
+
await queryInterface.sequelize.query(`
|
|
20
|
+
DROP TYPE IF EXISTS "enum_user_payouts_type";
|
|
21
|
+
`, { transaction });
|
|
11
22
|
await transaction.commit();
|
|
12
23
|
}
|
|
13
24
|
catch (error) {
|
|
@@ -18,6 +29,17 @@ module.exports = {
|
|
|
18
29
|
down: async (queryInterface, Sequelize) => {
|
|
19
30
|
const transaction = await queryInterface.sequelize.transaction();
|
|
20
31
|
try {
|
|
32
|
+
// Recreate ENUM type
|
|
33
|
+
await queryInterface.sequelize.query(`
|
|
34
|
+
CREATE TYPE "enum_user_payouts_type" AS ENUM
|
|
35
|
+
('PERCENTAGE', 'HOURLY', 'MONTHLY', 'ANNUAL', 'NONE');
|
|
36
|
+
`, { transaction });
|
|
37
|
+
await queryInterface.sequelize.query(`
|
|
38
|
+
ALTER TABLE "user_payouts"
|
|
39
|
+
ALTER COLUMN "type" DROP DEFAULT,
|
|
40
|
+
ALTER COLUMN "type" TYPE "enum_user_payouts_type"
|
|
41
|
+
USING "type"::"enum_user_payouts_type";
|
|
42
|
+
`, { transaction });
|
|
21
43
|
await queryInterface.changeColumn('user_payouts', 'type', {
|
|
22
44
|
type: Sequelize.ENUM('PERCENTAGE', 'HOURLY', 'MONTHLY', 'ANNUAL', 'NONE'),
|
|
23
45
|
allowNull: false,
|
|
@@ -3,10 +3,10 @@ module.exports = {
|
|
|
3
3
|
up: async (queryInterface, Sequelize) => {
|
|
4
4
|
const transaction = await queryInterface.sequelize.transaction();
|
|
5
5
|
try {
|
|
6
|
-
await queryInterface.
|
|
7
|
-
type: Sequelize.
|
|
8
|
-
allowNull:
|
|
9
|
-
defaultValue:
|
|
6
|
+
await queryInterface.addColumn('payout_transaction_histories', 'paid_amount', {
|
|
7
|
+
type: Sequelize.FLOAT,
|
|
8
|
+
allowNull: true,
|
|
9
|
+
defaultValue: 0,
|
|
10
10
|
}, { transaction });
|
|
11
11
|
await transaction.commit();
|
|
12
12
|
}
|
|
@@ -15,13 +15,10 @@ module.exports = {
|
|
|
15
15
|
throw error;
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
down: async (queryInterface
|
|
18
|
+
down: async (queryInterface) => {
|
|
19
19
|
const transaction = await queryInterface.sequelize.transaction();
|
|
20
20
|
try {
|
|
21
|
-
await queryInterface.
|
|
22
|
-
type: Sequelize.ENUM('PERCENTAGE', 'HOURLY', 'MONTHLY', 'ANNUAL', 'NONE'),
|
|
23
|
-
allowNull: false,
|
|
24
|
-
}, { transaction });
|
|
21
|
+
await queryInterface.removeColumn('payout_transaction_histories', 'paid_amount', { transaction });
|
|
25
22
|
await transaction.commit();
|
|
26
23
|
}
|
|
27
24
|
catch (error) {
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const tableName = 'past_year_record';
|
|
4
|
+
const tableExists = await queryInterface
|
|
5
|
+
.describeTable(tableName)
|
|
6
|
+
.then(() => true)
|
|
7
|
+
.catch(() => false);
|
|
8
|
+
if (!tableExists) {
|
|
9
|
+
await queryInterface.createTable(tableName, {
|
|
10
|
+
id: {
|
|
11
|
+
type: Sequelize.UUID,
|
|
12
|
+
defaultValue: Sequelize.UUIDV4,
|
|
13
|
+
allowNull: false,
|
|
14
|
+
primaryKey: true,
|
|
15
|
+
},
|
|
16
|
+
title: {
|
|
17
|
+
type: Sequelize.STRING,
|
|
18
|
+
allowNull: true,
|
|
19
|
+
},
|
|
20
|
+
description: {
|
|
21
|
+
type: Sequelize.TEXT,
|
|
22
|
+
allowNull: true,
|
|
23
|
+
},
|
|
24
|
+
numberOfStudent: {
|
|
25
|
+
type: Sequelize.INTEGER,
|
|
26
|
+
field: 'number_of_student',
|
|
27
|
+
},
|
|
28
|
+
passedStudent: {
|
|
29
|
+
type: Sequelize.INTEGER,
|
|
30
|
+
field: 'passed_student',
|
|
31
|
+
},
|
|
32
|
+
examAttendedByStudent: {
|
|
33
|
+
type: Sequelize.INTEGER,
|
|
34
|
+
field: 'exam_attended_by_student',
|
|
35
|
+
},
|
|
36
|
+
failedStudent: {
|
|
37
|
+
type: Sequelize.INTEGER,
|
|
38
|
+
field: 'failed_student',
|
|
39
|
+
},
|
|
40
|
+
schoolResult: {
|
|
41
|
+
type: Sequelize.FLOAT,
|
|
42
|
+
field: 'school_result',
|
|
43
|
+
},
|
|
44
|
+
boardResult: {
|
|
45
|
+
type: Sequelize.FLOAT,
|
|
46
|
+
field: 'board_result',
|
|
47
|
+
},
|
|
48
|
+
instituteId: {
|
|
49
|
+
type: Sequelize.UUID,
|
|
50
|
+
field: 'institute_id',
|
|
51
|
+
allowNull: true,
|
|
52
|
+
},
|
|
53
|
+
academicCalendarId: {
|
|
54
|
+
type: Sequelize.UUID,
|
|
55
|
+
field: 'academic_calendar_id',
|
|
56
|
+
allowNull: true,
|
|
57
|
+
},
|
|
58
|
+
createdBy: {
|
|
59
|
+
type: Sequelize.UUID,
|
|
60
|
+
allowNull: true,
|
|
61
|
+
field: 'created_by',
|
|
62
|
+
},
|
|
63
|
+
updatedBy: {
|
|
64
|
+
type: Sequelize.UUID,
|
|
65
|
+
allowNull: true,
|
|
66
|
+
field: 'updated_by',
|
|
67
|
+
},
|
|
68
|
+
deletedBy: {
|
|
69
|
+
type: Sequelize.UUID,
|
|
70
|
+
allowNull: true,
|
|
71
|
+
field: 'deleted_by',
|
|
72
|
+
},
|
|
73
|
+
createdAt: {
|
|
74
|
+
type: Sequelize.DATE,
|
|
75
|
+
allowNull: false,
|
|
76
|
+
field: 'created_at',
|
|
77
|
+
},
|
|
78
|
+
updatedAt: {
|
|
79
|
+
type: Sequelize.DATE,
|
|
80
|
+
allowNull: false,
|
|
81
|
+
field: 'updated_at',
|
|
82
|
+
},
|
|
83
|
+
deletedAt: {
|
|
84
|
+
type: Sequelize.DATE,
|
|
85
|
+
allowNull: true,
|
|
86
|
+
field: 'deleted_at',
|
|
87
|
+
},
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
const tableDefinition = await queryInterface.describeTable(tableName);
|
|
92
|
+
const columnsToAdd = {
|
|
93
|
+
id: {
|
|
94
|
+
type: Sequelize.UUID,
|
|
95
|
+
defaultValue: Sequelize.UUIDV4,
|
|
96
|
+
allowNull: false,
|
|
97
|
+
primaryKey: true,
|
|
98
|
+
},
|
|
99
|
+
title: {
|
|
100
|
+
type: Sequelize.STRING,
|
|
101
|
+
allowNull: true,
|
|
102
|
+
},
|
|
103
|
+
description: {
|
|
104
|
+
type: Sequelize.TEXT,
|
|
105
|
+
allowNull: true,
|
|
106
|
+
},
|
|
107
|
+
numberOfStudent: {
|
|
108
|
+
type: Sequelize.INTEGER,
|
|
109
|
+
field: 'number_of_student',
|
|
110
|
+
},
|
|
111
|
+
passedStudent: {
|
|
112
|
+
type: Sequelize.INTEGER,
|
|
113
|
+
field: 'passed_student',
|
|
114
|
+
},
|
|
115
|
+
examAttendedByStudent: {
|
|
116
|
+
type: Sequelize.INTEGER,
|
|
117
|
+
field: 'exam_attended_by_student',
|
|
118
|
+
},
|
|
119
|
+
failedStudent: {
|
|
120
|
+
type: Sequelize.INTEGER,
|
|
121
|
+
field: 'failed_student',
|
|
122
|
+
},
|
|
123
|
+
schoolResult: {
|
|
124
|
+
type: Sequelize.FLOAT,
|
|
125
|
+
field: 'school_result',
|
|
126
|
+
},
|
|
127
|
+
boardResult: {
|
|
128
|
+
type: Sequelize.FLOAT,
|
|
129
|
+
field: 'board_result',
|
|
130
|
+
},
|
|
131
|
+
instituteId: {
|
|
132
|
+
type: Sequelize.UUID,
|
|
133
|
+
field: 'institute_id',
|
|
134
|
+
allowNull: true,
|
|
135
|
+
},
|
|
136
|
+
academicCalendarId: {
|
|
137
|
+
type: Sequelize.UUID,
|
|
138
|
+
field: 'academic_calendar_id',
|
|
139
|
+
allowNull: true,
|
|
140
|
+
},
|
|
141
|
+
createdBy: {
|
|
142
|
+
type: Sequelize.UUID,
|
|
143
|
+
allowNull: true,
|
|
144
|
+
field: 'created_by',
|
|
145
|
+
},
|
|
146
|
+
updatedBy: {
|
|
147
|
+
type: Sequelize.UUID,
|
|
148
|
+
allowNull: true,
|
|
149
|
+
field: 'updated_by',
|
|
150
|
+
},
|
|
151
|
+
deletedBy: {
|
|
152
|
+
type: Sequelize.UUID,
|
|
153
|
+
allowNull: true,
|
|
154
|
+
field: 'deleted_by',
|
|
155
|
+
},
|
|
156
|
+
createdAt: {
|
|
157
|
+
type: Sequelize.DATE,
|
|
158
|
+
allowNull: false,
|
|
159
|
+
field: 'created_at',
|
|
160
|
+
},
|
|
161
|
+
updatedAt: {
|
|
162
|
+
type: Sequelize.DATE,
|
|
163
|
+
allowNull: false,
|
|
164
|
+
field: 'updated_at',
|
|
165
|
+
},
|
|
166
|
+
deletedAt: {
|
|
167
|
+
type: Sequelize.DATE,
|
|
168
|
+
allowNull: true,
|
|
169
|
+
field: 'deleted_at',
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
for (const column of Object.keys(columnsToAdd)) {
|
|
173
|
+
const columnToAdd = columnsToAdd[column];
|
|
174
|
+
const tableColumn = columnToAdd.field || column;
|
|
175
|
+
if (!tableDefinition[tableColumn]) {
|
|
176
|
+
await queryInterface.addColumn(tableName, tableColumn, columnToAdd);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
const down = async (queryInterface) => {
|
|
182
|
+
const tableName = 'past_year_record';
|
|
183
|
+
const tableExists = await queryInterface
|
|
184
|
+
.describeTable(tableName)
|
|
185
|
+
.then(() => true)
|
|
186
|
+
.catch(() => false);
|
|
187
|
+
if (tableExists) {
|
|
188
|
+
await queryInterface.dropTable(tableName);
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
module.exports = {
|
|
192
|
+
up,
|
|
193
|
+
down,
|
|
194
|
+
};
|
package/dist/interfaces/index.js
CHANGED
|
@@ -210,3 +210,4 @@ __exportStar(require("./userLoanInterface"), exports);
|
|
|
210
210
|
__exportStar(require("./loanEmiInterface"), exports);
|
|
211
211
|
__exportStar(require("./additionalPayoutInterface"), exports);
|
|
212
212
|
__exportStar(require("./payoutTransactionHistoryInterface"), exports);
|
|
213
|
+
__exportStar(require("./pastYearRecordInterface"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
2
|
+
export interface IPastYearRecordModelAttributes extends IDefaultAttributes {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
numberOfStudent: number;
|
|
7
|
+
examAttendedByStudent: number;
|
|
8
|
+
passedStudent: number;
|
|
9
|
+
failedStudent: number;
|
|
10
|
+
schoolResult: number;
|
|
11
|
+
boardResult: number;
|
|
12
|
+
instituteId: string;
|
|
13
|
+
academicCalendarId: string;
|
|
14
|
+
}
|
|
@@ -129,3 +129,4 @@ export { default as UserLoanModel } from './userLoanModel';
|
|
|
129
129
|
export { default as LoanEmiModel } from './loanEmiModel';
|
|
130
130
|
export { default as AdditionalPayoutModel } from './additionalPayoutModel';
|
|
131
131
|
export { default as PayoutTransactionHistoryModel } from './payoutTransactionHistoryModel';
|
|
132
|
+
export { default as PastYearRecordModel } from './pastYearRecordModel';
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ProjectAssessmentOptionModel = exports.ProductModel = exports.PincodeModel = exports.PdcHistoryModel = exports.PdcChequeModel = exports.OfferModel = exports.ModuleModel = exports.ModuleFeatureModel = exports.MasterLeaveModel = exports.LectureModel = exports.LectureHistoryModel = exports.InventoryModel = exports.InventoryHistoryModel = exports.InstituteSubscriptionPlanModel = exports.InstituteModel = exports.InstituteEntityTypeModel = exports.InstituteEntityModel = exports.HomeWorkModel = exports.GreetingsModel = exports.FloorManagementModel = exports.FileStorageModel = exports.FeeReminderSettingModel = exports.FeeReminderModel = exports.FeatureActionModel = exports.FacilityModel = exports.EntityGroupModel = exports.DriverModel = exports.CourseModel = exports.CourseHasVisitorsModel = exports.CountryModel = exports.ContactFeedBackModel = exports.CoinPurchaseOfferModel = exports.CloudStorageModel = exports.ClassRoomModel = exports.CityModel = exports.CategoriesModel = exports.BookAssessmentDateModel = exports.BatchSubjectProjectAssessmentModel = exports.BatchSubjectBookAssessmentModel = exports.BatchModel = exports.BannerModel = exports.BankAccountDetailsModel = exports.AreaModel = exports.AnnouncementModel = exports.AccountHasReceiptDetailsModel = exports.AcademicCalendarModel = exports.SubCategoriesModel = exports.Sequelize = exports.db = exports.sequelize = void 0;
|
|
7
7
|
exports.StudentLeaveRequestModel = exports.CloneListModel = exports.IncomeExpenseModel = exports.MaintenanceModel = exports.WorkOffDaysModel = exports.EntityWiseCalendarModel = exports.CampusModel = exports.LostFoundItemModel = exports.WorkingShiftModel = exports.WorkingDayModel = exports.WalletModel = exports.WalletHistoryModel = exports.VendorManagementModel = exports.VehicleModel = exports.UserRequiredStepsModel = exports.UserProjectAssessmentOptionModel = exports.UserPayoutModel = exports.UserModel = exports.UserLeaveRequestModel = exports.UserHasSubjectFeeModel = exports.UserHasStorageModel = exports.UserHasRollNumberModel = exports.UserHasRoleModel = exports.UserHasParentModel = exports.UserHasOfferModel = exports.UserHasLeaveModel = exports.UserHasLeaveHistoryModel = exports.UserHasInventoryModel = exports.UserHasInventoryHistoryModel = exports.UserHasHomeWorkModel = exports.UserHasFileModel = exports.UserHasDeviceModel = exports.UserHasCourseModel = exports.UserHasBatchModel = exports.UserHasAnnouncementModel = exports.UserBookAssessmentModel = exports.TypeManagementModel = exports.TripModel = exports.TokenModel = exports.ToDoModel = exports.TestimonialModel = exports.SyllabusModel = exports.SubjectHasPayFeeHistoryModel = exports.SubjectHasFeeModel = exports.StateModel = exports.SlotModel = exports.SendNotificationModel = exports.SchoolOfferModel = exports.RulesRegulationModel = exports.RoleModel = void 0;
|
|
8
|
-
exports.PayoutTransactionHistoryModel = exports.AdditionalPayoutModel = exports.LoanEmiModel = exports.UserLoanModel = exports.NoticeboardModel = exports.UserPermissionModel = exports.RoleManagementModel = exports.PermissionModel = exports.DesignationModel = exports.AdditionalPayoutTypeModel = exports.VisitorBookModel = exports.PostalDispatchModel = exports.CallRegisterModel = exports.UserHasOfferAndDiscountModel = exports.UserAcceptedTermsAndCondition = exports.SubjectInternalMarkModel = exports.InternalMarkModel = exports.TermsAndConditionModel = exports.FeeType1Model = exports.StudentFeeTermsModel = exports.UserHasPenaltyModel = exports.PenaltyModel = exports.ClassRoomCollectionModel = exports.ClassRoomEventModel = exports.StudentFeeTypeCollectionModel = exports.SchoolFeeTermsModel = exports.StudentFeeHistoryModel = exports.StudentFeeCollectionModel = exports.UserDirectoryModel = void 0;
|
|
8
|
+
exports.PastYearRecordModel = exports.PayoutTransactionHistoryModel = exports.AdditionalPayoutModel = exports.LoanEmiModel = exports.UserLoanModel = exports.NoticeboardModel = exports.UserPermissionModel = exports.RoleManagementModel = exports.PermissionModel = exports.DesignationModel = exports.AdditionalPayoutTypeModel = exports.VisitorBookModel = exports.PostalDispatchModel = exports.CallRegisterModel = exports.UserHasOfferAndDiscountModel = exports.UserAcceptedTermsAndCondition = exports.SubjectInternalMarkModel = exports.InternalMarkModel = exports.TermsAndConditionModel = exports.FeeType1Model = exports.StudentFeeTermsModel = exports.UserHasPenaltyModel = exports.PenaltyModel = exports.ClassRoomCollectionModel = exports.ClassRoomEventModel = exports.StudentFeeTypeCollectionModel = exports.SchoolFeeTermsModel = exports.StudentFeeHistoryModel = exports.StudentFeeCollectionModel = exports.UserDirectoryModel = void 0;
|
|
9
9
|
const sequelize_1 = require("sequelize");
|
|
10
10
|
Object.defineProperty(exports, "Sequelize", { enumerable: true, get: function () { return sequelize_1.Sequelize; } });
|
|
11
11
|
const postgresConfig = require('../../configs/postgresConfig');
|
|
@@ -352,3 +352,5 @@ var additionalPayoutModel_1 = require("./additionalPayoutModel");
|
|
|
352
352
|
Object.defineProperty(exports, "AdditionalPayoutModel", { enumerable: true, get: function () { return __importDefault(additionalPayoutModel_1).default; } });
|
|
353
353
|
var payoutTransactionHistoryModel_1 = require("./payoutTransactionHistoryModel");
|
|
354
354
|
Object.defineProperty(exports, "PayoutTransactionHistoryModel", { enumerable: true, get: function () { return __importDefault(payoutTransactionHistoryModel_1).default; } });
|
|
355
|
+
var pastYearRecordModel_1 = require("./pastYearRecordModel");
|
|
356
|
+
Object.defineProperty(exports, "PastYearRecordModel", { enumerable: true, get: function () { return __importDefault(pastYearRecordModel_1).default; } });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Model } from 'sequelize';
|
|
2
|
+
import { IPastYearRecordModelAttributes } from '../../interfaces/pastYearRecordInterface';
|
|
3
|
+
import { TPastYearRecordModelAttributes } from '../../types/pastYearRecordType';
|
|
4
|
+
export declare class PastYearRecordModel extends Model<IPastYearRecordModelAttributes, TPastYearRecordModelAttributes> {
|
|
5
|
+
id: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
numberOfStudent: number;
|
|
9
|
+
examAttendedByStudent: number;
|
|
10
|
+
passedStudent: number;
|
|
11
|
+
failedStudent: number;
|
|
12
|
+
schoolResult: number;
|
|
13
|
+
boardResult: number;
|
|
14
|
+
academicCalendarId: string;
|
|
15
|
+
instituteId: string;
|
|
16
|
+
createdBy: string;
|
|
17
|
+
updatedBy: string;
|
|
18
|
+
deletedBy: string;
|
|
19
|
+
readonly createdAt: Date;
|
|
20
|
+
readonly updatedAt: Date;
|
|
21
|
+
readonly deletedAt?: string;
|
|
22
|
+
static associate(models: any): void;
|
|
23
|
+
}
|
|
24
|
+
export default PastYearRecordModel;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PastYearRecordModel = void 0;
|
|
4
|
+
const sequelize_1 = require("sequelize");
|
|
5
|
+
const index_1 = require("./index");
|
|
6
|
+
class PastYearRecordModel extends sequelize_1.Model {
|
|
7
|
+
static associate(models) {
|
|
8
|
+
const { UserModel, InstituteModel, AcademicCalendarModel } = models;
|
|
9
|
+
PastYearRecordModel.belongsTo(UserModel, {
|
|
10
|
+
foreignKey: { name: 'createdBy', allowNull: true, field: 'created_by' },
|
|
11
|
+
as: 'createdByUser',
|
|
12
|
+
});
|
|
13
|
+
PastYearRecordModel.belongsTo(UserModel, {
|
|
14
|
+
foreignKey: { name: 'updatedBy', allowNull: true, field: 'updated_by' },
|
|
15
|
+
as: 'updatedByUser',
|
|
16
|
+
});
|
|
17
|
+
PastYearRecordModel.belongsTo(UserModel, {
|
|
18
|
+
foreignKey: { name: 'deletedBy', allowNull: true, field: 'deleted_by' },
|
|
19
|
+
as: 'deletedByUser',
|
|
20
|
+
});
|
|
21
|
+
PastYearRecordModel.belongsTo(InstituteModel, {
|
|
22
|
+
foreignKey: { name: 'instituteId' },
|
|
23
|
+
as: 'institute',
|
|
24
|
+
});
|
|
25
|
+
InstituteModel.hasMany(PastYearRecordModel, {
|
|
26
|
+
foreignKey: { name: 'instituteId' },
|
|
27
|
+
as: 'instituteHasPastYearRecord',
|
|
28
|
+
});
|
|
29
|
+
PastYearRecordModel.belongsTo(AcademicCalendarModel, {
|
|
30
|
+
foreignKey: { name: 'academicCalendarId' },
|
|
31
|
+
as: 'pastYearRecordAcademicCalendar',
|
|
32
|
+
});
|
|
33
|
+
AcademicCalendarModel.hasMany(PastYearRecordModel, {
|
|
34
|
+
foreignKey: 'academicCalendarId',
|
|
35
|
+
as: 'academicCalendarPastYearRecord',
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.PastYearRecordModel = PastYearRecordModel;
|
|
40
|
+
PastYearRecordModel.init({
|
|
41
|
+
id: {
|
|
42
|
+
type: sequelize_1.DataTypes.UUID,
|
|
43
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
44
|
+
allowNull: false,
|
|
45
|
+
primaryKey: true,
|
|
46
|
+
},
|
|
47
|
+
title: {
|
|
48
|
+
type: sequelize_1.DataTypes.STRING,
|
|
49
|
+
},
|
|
50
|
+
description: {
|
|
51
|
+
type: sequelize_1.DataTypes.TEXT,
|
|
52
|
+
},
|
|
53
|
+
numberOfStudent: {
|
|
54
|
+
type: sequelize_1.DataTypes.NUMBER,
|
|
55
|
+
field: 'number_of_student',
|
|
56
|
+
},
|
|
57
|
+
passedStudent: {
|
|
58
|
+
type: sequelize_1.DataTypes.NUMBER,
|
|
59
|
+
field: 'passed_student',
|
|
60
|
+
},
|
|
61
|
+
examAttendedByStudent: {
|
|
62
|
+
type: sequelize_1.DataTypes.NUMBER,
|
|
63
|
+
field: 'exam_attended_by_student',
|
|
64
|
+
},
|
|
65
|
+
failedStudent: {
|
|
66
|
+
type: sequelize_1.DataTypes.NUMBER,
|
|
67
|
+
field: 'failed_student',
|
|
68
|
+
},
|
|
69
|
+
schoolResult: {
|
|
70
|
+
type: sequelize_1.DataTypes.FLOAT,
|
|
71
|
+
field: 'school_result',
|
|
72
|
+
},
|
|
73
|
+
boardResult: {
|
|
74
|
+
type: sequelize_1.DataTypes.FLOAT,
|
|
75
|
+
field: 'board_result',
|
|
76
|
+
},
|
|
77
|
+
instituteId: {
|
|
78
|
+
type: sequelize_1.DataTypes.UUID,
|
|
79
|
+
field: 'institute_id',
|
|
80
|
+
allowNull: true,
|
|
81
|
+
},
|
|
82
|
+
academicCalendarId: {
|
|
83
|
+
type: sequelize_1.DataTypes.UUID,
|
|
84
|
+
field: 'academic_calendar_id',
|
|
85
|
+
allowNull: true,
|
|
86
|
+
},
|
|
87
|
+
}, {
|
|
88
|
+
modelName: 'PastYearRecordModel',
|
|
89
|
+
tableName: 'past_year_record',
|
|
90
|
+
timestamps: true,
|
|
91
|
+
sequelize: index_1.sequelize,
|
|
92
|
+
});
|
|
93
|
+
exports.default = PastYearRecordModel;
|
|
@@ -72,6 +72,12 @@ PayoutTransactionHistoryModel.init({
|
|
|
72
72
|
defaultValue: 0,
|
|
73
73
|
field: 'total_amount',
|
|
74
74
|
},
|
|
75
|
+
paidAmount: {
|
|
76
|
+
type: sequelize_1.DataTypes.FLOAT,
|
|
77
|
+
allowNull: true,
|
|
78
|
+
defaultValue: 0,
|
|
79
|
+
field: 'paid_amount',
|
|
80
|
+
},
|
|
75
81
|
payableAmount: {
|
|
76
82
|
type: sequelize_1.DataTypes.FLOAT,
|
|
77
83
|
allowNull: true,
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -201,3 +201,4 @@ __exportStar(require("./userLoanType"), exports);
|
|
|
201
201
|
__exportStar(require("./loanEmiType"), exports);
|
|
202
202
|
__exportStar(require("./additionalPayoutType"), exports);
|
|
203
203
|
__exportStar(require("./payoutTransactionHistoryType"), exports);
|
|
204
|
+
__exportStar(require("./pastYearRecordType"), exports);
|
package/package.json
CHANGED