@kipicore/dbcore 1.1.507 → 1.1.508
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 +9 -0
- package/dist/constants/errorMessages.js +11 -1
- package/dist/constants/successMessages.d.ts +6 -0
- package/dist/constants/successMessages.js +8 -1
- package/dist/db/psql/migrations/20260518074008-user_has_fee_submission.d.ts +2 -0
- package/dist/db/psql/migrations/20260518074008-user_has_fee_submission.js +164 -0
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/index.js +1 -0
- package/dist/interfaces/userHasFeeSubmissionInterface.d.ts +11 -0
- package/dist/interfaces/userHasFeeSubmissionInterface.js +2 -0
- package/dist/models/psql/index.d.ts +1 -0
- package/dist/models/psql/index.js +3 -1
- package/dist/models/psql/userHasFeeSubmissionModel.d.ts +21 -0
- package/dist/models/psql/userHasFeeSubmissionModel.js +86 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/userHasFeeSubmissionType.d.ts +3 -0
- package/dist/types/userHasFeeSubmissionType.js +2 -0
- package/package.json +1 -1
|
@@ -1468,3 +1468,12 @@ export declare enum FEE_SUBMISSION_ERROR_MESSAGES {
|
|
|
1468
1468
|
GET_FAIL = "Unable to retrieve Fee submission!",
|
|
1469
1469
|
FEE_TRANSFER = "Fee transfer to"
|
|
1470
1470
|
}
|
|
1471
|
+
export declare enum USER_HAS_FEE_SUBMISSION_ERROR_MESSAGES {
|
|
1472
|
+
NOT_FOUND = "User Fee submission not found!",
|
|
1473
|
+
ALREADY_EXISTS = "User Fee submission already exists!",
|
|
1474
|
+
DELETE_FAIL = "Unable to delete User Fee submission!",
|
|
1475
|
+
UPDATE_FAIL = "Unable to update User Fee submission!",
|
|
1476
|
+
CREATE_FAIL = "Unable to create User Fee submission!",
|
|
1477
|
+
GET_FAIL = "Unable to retrieve User Fee submission!",
|
|
1478
|
+
FEE_TRANSFER = "Fees transfer"
|
|
1479
|
+
}
|
|
@@ -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.FEE_SUBMISSION_ERROR_MESSAGES = exports.USER_HAS_PENALTY_HISTORY_ERROR_MESSAGES = 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;
|
|
6
|
+
exports.USER_HAS_FEE_SUBMISSION_ERROR_MESSAGES = exports.FEE_SUBMISSION_ERROR_MESSAGES = exports.USER_HAS_PENALTY_HISTORY_ERROR_MESSAGES = 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!";
|
|
@@ -1636,3 +1636,13 @@ var FEE_SUBMISSION_ERROR_MESSAGES;
|
|
|
1636
1636
|
FEE_SUBMISSION_ERROR_MESSAGES["GET_FAIL"] = "Unable to retrieve Fee submission!";
|
|
1637
1637
|
FEE_SUBMISSION_ERROR_MESSAGES["FEE_TRANSFER"] = "Fee transfer to";
|
|
1638
1638
|
})(FEE_SUBMISSION_ERROR_MESSAGES || (exports.FEE_SUBMISSION_ERROR_MESSAGES = FEE_SUBMISSION_ERROR_MESSAGES = {}));
|
|
1639
|
+
var USER_HAS_FEE_SUBMISSION_ERROR_MESSAGES;
|
|
1640
|
+
(function (USER_HAS_FEE_SUBMISSION_ERROR_MESSAGES) {
|
|
1641
|
+
USER_HAS_FEE_SUBMISSION_ERROR_MESSAGES["NOT_FOUND"] = "User Fee submission not found!";
|
|
1642
|
+
USER_HAS_FEE_SUBMISSION_ERROR_MESSAGES["ALREADY_EXISTS"] = "User Fee submission already exists!";
|
|
1643
|
+
USER_HAS_FEE_SUBMISSION_ERROR_MESSAGES["DELETE_FAIL"] = "Unable to delete User Fee submission!";
|
|
1644
|
+
USER_HAS_FEE_SUBMISSION_ERROR_MESSAGES["UPDATE_FAIL"] = "Unable to update User Fee submission!";
|
|
1645
|
+
USER_HAS_FEE_SUBMISSION_ERROR_MESSAGES["CREATE_FAIL"] = "Unable to create User Fee submission!";
|
|
1646
|
+
USER_HAS_FEE_SUBMISSION_ERROR_MESSAGES["GET_FAIL"] = "Unable to retrieve User Fee submission!";
|
|
1647
|
+
USER_HAS_FEE_SUBMISSION_ERROR_MESSAGES["FEE_TRANSFER"] = "Fees transfer";
|
|
1648
|
+
})(USER_HAS_FEE_SUBMISSION_ERROR_MESSAGES || (exports.USER_HAS_FEE_SUBMISSION_ERROR_MESSAGES = USER_HAS_FEE_SUBMISSION_ERROR_MESSAGES = {}));
|
|
@@ -1056,3 +1056,9 @@ export declare enum FEE_SUBMISSION_SUCCESS_MESSAGES {
|
|
|
1056
1056
|
UPDATE_SUCCESS = "Fee updated successfully!",
|
|
1057
1057
|
DELETE_SUCCESS = "Fee deleted successfully!"
|
|
1058
1058
|
}
|
|
1059
|
+
export declare enum USER_HAS_FEE_SUBMISSION_SUCCESS_MESSAGES {
|
|
1060
|
+
CREATE_SUCCESS = "User Fee submission created successfully!",
|
|
1061
|
+
GET_SUCCESS = "User Fee submission retrieved successfully!",
|
|
1062
|
+
UPDATE_SUCCESS = "User Fee submission updated successfully!",
|
|
1063
|
+
DELETE_SUCCESS = "User Fee submission deleted successfully!"
|
|
1064
|
+
}
|
|
@@ -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.FEE_SUBMISSION_SUCCESS_MESSAGES = exports.USER_HAS_PENALTY_HISTORY_SUCCESS_MESSAGES = 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;
|
|
6
|
+
exports.USER_HAS_FEE_SUBMISSION_SUCCESS_MESSAGES = exports.FEE_SUBMISSION_SUCCESS_MESSAGES = exports.USER_HAS_PENALTY_HISTORY_SUCCESS_MESSAGES = 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";
|
|
@@ -1228,3 +1228,10 @@ var FEE_SUBMISSION_SUCCESS_MESSAGES;
|
|
|
1228
1228
|
FEE_SUBMISSION_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "Fee updated successfully!";
|
|
1229
1229
|
FEE_SUBMISSION_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "Fee deleted successfully!";
|
|
1230
1230
|
})(FEE_SUBMISSION_SUCCESS_MESSAGES || (exports.FEE_SUBMISSION_SUCCESS_MESSAGES = FEE_SUBMISSION_SUCCESS_MESSAGES = {}));
|
|
1231
|
+
var USER_HAS_FEE_SUBMISSION_SUCCESS_MESSAGES;
|
|
1232
|
+
(function (USER_HAS_FEE_SUBMISSION_SUCCESS_MESSAGES) {
|
|
1233
|
+
USER_HAS_FEE_SUBMISSION_SUCCESS_MESSAGES["CREATE_SUCCESS"] = "User Fee submission created successfully!";
|
|
1234
|
+
USER_HAS_FEE_SUBMISSION_SUCCESS_MESSAGES["GET_SUCCESS"] = "User Fee submission retrieved successfully!";
|
|
1235
|
+
USER_HAS_FEE_SUBMISSION_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "User Fee submission updated successfully!";
|
|
1236
|
+
USER_HAS_FEE_SUBMISSION_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "User Fee submission deleted successfully!";
|
|
1237
|
+
})(USER_HAS_FEE_SUBMISSION_SUCCESS_MESSAGES || (exports.USER_HAS_FEE_SUBMISSION_SUCCESS_MESSAGES = USER_HAS_FEE_SUBMISSION_SUCCESS_MESSAGES = {}));
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const tableName = 'user_has_fee_submission';
|
|
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
|
+
collectorId: {
|
|
17
|
+
type: Sequelize.UUID,
|
|
18
|
+
allowNull: true,
|
|
19
|
+
field: 'collector_id',
|
|
20
|
+
},
|
|
21
|
+
amount: {
|
|
22
|
+
type: Sequelize.INTEGER,
|
|
23
|
+
allowNull: true,
|
|
24
|
+
},
|
|
25
|
+
date: {
|
|
26
|
+
type: Sequelize.DATE,
|
|
27
|
+
allowNull: true,
|
|
28
|
+
},
|
|
29
|
+
status: {
|
|
30
|
+
type: Sequelize.STRING,
|
|
31
|
+
allowNull: true,
|
|
32
|
+
},
|
|
33
|
+
instituteId: {
|
|
34
|
+
type: Sequelize.UUID,
|
|
35
|
+
field: 'institute_id',
|
|
36
|
+
allowNull: true,
|
|
37
|
+
},
|
|
38
|
+
academicCalendarId: {
|
|
39
|
+
type: Sequelize.UUID,
|
|
40
|
+
field: 'academic_calendar_id',
|
|
41
|
+
allowNull: true,
|
|
42
|
+
},
|
|
43
|
+
createdBy: {
|
|
44
|
+
type: Sequelize.UUID,
|
|
45
|
+
allowNull: true,
|
|
46
|
+
field: 'created_by',
|
|
47
|
+
},
|
|
48
|
+
updatedBy: {
|
|
49
|
+
type: Sequelize.UUID,
|
|
50
|
+
allowNull: true,
|
|
51
|
+
field: 'updated_by',
|
|
52
|
+
},
|
|
53
|
+
deletedBy: {
|
|
54
|
+
type: Sequelize.UUID,
|
|
55
|
+
allowNull: true,
|
|
56
|
+
field: 'deleted_by',
|
|
57
|
+
},
|
|
58
|
+
createdAt: {
|
|
59
|
+
type: Sequelize.DATE,
|
|
60
|
+
allowNull: true,
|
|
61
|
+
field: 'created_at',
|
|
62
|
+
},
|
|
63
|
+
updatedAt: {
|
|
64
|
+
type: Sequelize.DATE,
|
|
65
|
+
allowNull: true,
|
|
66
|
+
field: 'updated_at',
|
|
67
|
+
},
|
|
68
|
+
deletedAt: {
|
|
69
|
+
type: Sequelize.DATE,
|
|
70
|
+
allowNull: true,
|
|
71
|
+
field: 'deleted_at',
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
const tableDefinition = await queryInterface.describeTable(tableName);
|
|
77
|
+
const columnsToAdd = {
|
|
78
|
+
id: {
|
|
79
|
+
type: Sequelize.UUID,
|
|
80
|
+
defaultValue: Sequelize.UUIDV4,
|
|
81
|
+
allowNull: false,
|
|
82
|
+
primaryKey: true,
|
|
83
|
+
},
|
|
84
|
+
collectorId: {
|
|
85
|
+
type: Sequelize.UUID,
|
|
86
|
+
allowNull: true,
|
|
87
|
+
field: 'collector_id',
|
|
88
|
+
},
|
|
89
|
+
amount: {
|
|
90
|
+
type: Sequelize.INTEGER,
|
|
91
|
+
allowNull: true,
|
|
92
|
+
},
|
|
93
|
+
date: {
|
|
94
|
+
type: Sequelize.DATE,
|
|
95
|
+
allowNull: true,
|
|
96
|
+
},
|
|
97
|
+
status: {
|
|
98
|
+
type: Sequelize.STRING,
|
|
99
|
+
allowNull: true,
|
|
100
|
+
},
|
|
101
|
+
instituteId: {
|
|
102
|
+
type: Sequelize.UUID,
|
|
103
|
+
field: 'institute_id',
|
|
104
|
+
allowNull: true,
|
|
105
|
+
},
|
|
106
|
+
academicCalendarId: {
|
|
107
|
+
type: Sequelize.UUID,
|
|
108
|
+
field: 'academic_calendar_id',
|
|
109
|
+
allowNull: true,
|
|
110
|
+
},
|
|
111
|
+
createdBy: {
|
|
112
|
+
type: Sequelize.UUID,
|
|
113
|
+
allowNull: true,
|
|
114
|
+
field: 'created_by',
|
|
115
|
+
},
|
|
116
|
+
updatedBy: {
|
|
117
|
+
type: Sequelize.UUID,
|
|
118
|
+
allowNull: true,
|
|
119
|
+
field: 'updated_by',
|
|
120
|
+
},
|
|
121
|
+
deletedBy: {
|
|
122
|
+
type: Sequelize.UUID,
|
|
123
|
+
allowNull: true,
|
|
124
|
+
field: 'deleted_by',
|
|
125
|
+
},
|
|
126
|
+
createdAt: {
|
|
127
|
+
type: Sequelize.DATE,
|
|
128
|
+
allowNull: true,
|
|
129
|
+
field: 'created_at',
|
|
130
|
+
},
|
|
131
|
+
updatedAt: {
|
|
132
|
+
type: Sequelize.DATE,
|
|
133
|
+
allowNull: true,
|
|
134
|
+
field: 'updated_at',
|
|
135
|
+
},
|
|
136
|
+
deletedAt: {
|
|
137
|
+
type: Sequelize.DATE,
|
|
138
|
+
allowNull: true,
|
|
139
|
+
field: 'deleted_at',
|
|
140
|
+
},
|
|
141
|
+
};
|
|
142
|
+
for (const column of Object.keys(columnsToAdd)) {
|
|
143
|
+
const columnToAdd = columnsToAdd[column];
|
|
144
|
+
const tableColumn = columnToAdd.field || column;
|
|
145
|
+
if (!tableDefinition[tableColumn]) {
|
|
146
|
+
await queryInterface.addColumn(tableName, tableColumn, columnToAdd);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
const down = async (queryInterface) => {
|
|
152
|
+
const tableName = 'user_has_fee_submission';
|
|
153
|
+
const tableExists = await queryInterface
|
|
154
|
+
.describeTable(tableName)
|
|
155
|
+
.then(() => true)
|
|
156
|
+
.catch(() => false);
|
|
157
|
+
if (tableExists) {
|
|
158
|
+
await queryInterface.dropTable(tableName);
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
module.exports = {
|
|
162
|
+
up,
|
|
163
|
+
down,
|
|
164
|
+
};
|
package/dist/interfaces/index.js
CHANGED
|
@@ -216,3 +216,4 @@ __exportStar(require("./pastYearRecordInterface"), exports);
|
|
|
216
216
|
__exportStar(require("./instituteOwnershipHistoryInterface"), exports);
|
|
217
217
|
__exportStar(require("./institutePartnersInterface"), exports);
|
|
218
218
|
__exportStar(require("./feeSubmissionInterface"), exports);
|
|
219
|
+
__exportStar(require("./userHasFeeSubmissionInterface"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
2
|
+
import { FEE_SUBMISSION_STATUS } from '../constants';
|
|
3
|
+
export interface IUserHasFeeSubmissionModelAttributes extends IDefaultAttributes {
|
|
4
|
+
id: string;
|
|
5
|
+
collectorId: string;
|
|
6
|
+
amount: number;
|
|
7
|
+
date: Date;
|
|
8
|
+
status: FEE_SUBMISSION_STATUS;
|
|
9
|
+
instituteId?: string;
|
|
10
|
+
academicCalendarId?: string;
|
|
11
|
+
}
|
|
@@ -133,3 +133,4 @@ export { default as PastYearRecordModel } from './pastYearRecordModel';
|
|
|
133
133
|
export { default as UserHasPenaltyHistoryModel } from './userHasPenaltyHistoryModel';
|
|
134
134
|
export { default as InstituteOwnershipHistoryModel } from './instituteOwnershipHistoryModel';
|
|
135
135
|
export { default as InstitutePartnersModel } from './institutePartnersModel';
|
|
136
|
+
export { default as UserHasFeeSubmissionModel } from './userHasFeeSubmissionModel';
|
|
@@ -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.InstitutePartnersModel = exports.InstituteOwnershipHistoryModel = exports.UserHasPenaltyHistoryModel = 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;
|
|
8
|
+
exports.UserHasFeeSubmissionModel = exports.InstitutePartnersModel = exports.InstituteOwnershipHistoryModel = exports.UserHasPenaltyHistoryModel = 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');
|
|
@@ -360,3 +360,5 @@ var instituteOwnershipHistoryModel_1 = require("./instituteOwnershipHistoryModel
|
|
|
360
360
|
Object.defineProperty(exports, "InstituteOwnershipHistoryModel", { enumerable: true, get: function () { return __importDefault(instituteOwnershipHistoryModel_1).default; } });
|
|
361
361
|
var institutePartnersModel_1 = require("./institutePartnersModel");
|
|
362
362
|
Object.defineProperty(exports, "InstitutePartnersModel", { enumerable: true, get: function () { return __importDefault(institutePartnersModel_1).default; } });
|
|
363
|
+
var userHasFeeSubmissionModel_1 = require("./userHasFeeSubmissionModel");
|
|
364
|
+
Object.defineProperty(exports, "UserHasFeeSubmissionModel", { enumerable: true, get: function () { return __importDefault(userHasFeeSubmissionModel_1).default; } });
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Model } from 'sequelize';
|
|
2
|
+
import { FEE_SUBMISSION_STATUS } from '../../constants/app';
|
|
3
|
+
import { IUserHasFeeSubmissionModelAttributes } from '../../interfaces/userHasFeeSubmissionInterface';
|
|
4
|
+
import { TUserHasFeeSubmissionModelCreationAttributes } from '../../types/userHasFeeSubmissionType';
|
|
5
|
+
declare class UserHasFeeSubmissionModel extends Model<IUserHasFeeSubmissionModelAttributes, TUserHasFeeSubmissionModelCreationAttributes> {
|
|
6
|
+
id: string;
|
|
7
|
+
date: Date;
|
|
8
|
+
amount: number;
|
|
9
|
+
collectorId: string;
|
|
10
|
+
instituteId?: string;
|
|
11
|
+
academicCalendarId?: string;
|
|
12
|
+
status: FEE_SUBMISSION_STATUS;
|
|
13
|
+
createdBy?: string;
|
|
14
|
+
updatedBy?: string;
|
|
15
|
+
deletedBy?: string;
|
|
16
|
+
readonly createdAt: Date;
|
|
17
|
+
readonly deletedAt?: string;
|
|
18
|
+
readonly updatedAt: Date;
|
|
19
|
+
static associate(models: any): void;
|
|
20
|
+
}
|
|
21
|
+
export default UserHasFeeSubmissionModel;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const sequelize_1 = require("sequelize");
|
|
4
|
+
const index_1 = require("./index");
|
|
5
|
+
class UserHasFeeSubmissionModel extends sequelize_1.Model {
|
|
6
|
+
static associate(models) {
|
|
7
|
+
const { UserModel, InstituteModel, AcademicCalendarModel } = models;
|
|
8
|
+
UserHasFeeSubmissionModel.belongsTo(UserModel, {
|
|
9
|
+
foreignKey: { name: 'collectorId', allowNull: true, field: 'collector_id' },
|
|
10
|
+
as: 'userHFeeSubmissionUser',
|
|
11
|
+
});
|
|
12
|
+
UserModel.hasMany(UserHasFeeSubmissionModel, {
|
|
13
|
+
foreignKey: { name: 'collectorId', allowNull: true, field: 'collector_id' },
|
|
14
|
+
as: 'userOfUHasFeeSubmission'
|
|
15
|
+
});
|
|
16
|
+
UserHasFeeSubmissionModel.belongsTo(InstituteModel, {
|
|
17
|
+
foreignKey: { name: 'instituteId', allowNull: true, field: 'institute_id' },
|
|
18
|
+
as: 'userHFeeSubmissionInstitute',
|
|
19
|
+
});
|
|
20
|
+
InstituteModel.hasMany(UserHasFeeSubmissionModel, {
|
|
21
|
+
foreignKey: { name: 'instituteId', allowNull: true, field: 'institute_id' },
|
|
22
|
+
as: 'instituteUHasFeeSubmission',
|
|
23
|
+
});
|
|
24
|
+
UserHasFeeSubmissionModel.belongsTo(UserModel, {
|
|
25
|
+
foreignKey: { name: 'createdBy', allowNull: true, field: 'created_by' },
|
|
26
|
+
as: 'createdByUser',
|
|
27
|
+
});
|
|
28
|
+
UserHasFeeSubmissionModel.belongsTo(UserModel, {
|
|
29
|
+
foreignKey: { name: 'updatedBy', allowNull: true, field: 'updated_by' },
|
|
30
|
+
as: 'updatedByUser',
|
|
31
|
+
});
|
|
32
|
+
UserHasFeeSubmissionModel.belongsTo(UserModel, {
|
|
33
|
+
foreignKey: { name: 'deletedBy', allowNull: true, field: 'deleted_by' },
|
|
34
|
+
as: 'deletedByUser',
|
|
35
|
+
});
|
|
36
|
+
UserHasFeeSubmissionModel.belongsTo(AcademicCalendarModel, {
|
|
37
|
+
foreignKey: { name: 'academicCalendarId', allowNull: true, field: 'academic_calendar_id' },
|
|
38
|
+
as: 'acaCalUserHFeeSubmission',
|
|
39
|
+
});
|
|
40
|
+
AcademicCalendarModel.hasMany(UserHasFeeSubmissionModel, {
|
|
41
|
+
foreignKey: { name: 'academicCalendarId', allowNull: true, field: 'academic_calendar_id' },
|
|
42
|
+
as: 'UHFeeSubmissionAcaCal',
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
UserHasFeeSubmissionModel.init({
|
|
47
|
+
id: {
|
|
48
|
+
type: sequelize_1.DataTypes.UUID,
|
|
49
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
50
|
+
allowNull: false,
|
|
51
|
+
primaryKey: true,
|
|
52
|
+
},
|
|
53
|
+
collectorId: {
|
|
54
|
+
type: sequelize_1.DataTypes.UUID,
|
|
55
|
+
allowNull: true,
|
|
56
|
+
field: 'collector_id',
|
|
57
|
+
},
|
|
58
|
+
amount: {
|
|
59
|
+
type: sequelize_1.DataTypes.INTEGER,
|
|
60
|
+
allowNull: true,
|
|
61
|
+
},
|
|
62
|
+
date: {
|
|
63
|
+
type: sequelize_1.DataTypes.DATE,
|
|
64
|
+
allowNull: true,
|
|
65
|
+
},
|
|
66
|
+
status: {
|
|
67
|
+
type: sequelize_1.DataTypes.STRING,
|
|
68
|
+
allowNull: true,
|
|
69
|
+
},
|
|
70
|
+
instituteId: {
|
|
71
|
+
type: sequelize_1.DataTypes.UUID,
|
|
72
|
+
allowNull: true,
|
|
73
|
+
field: 'institute_id',
|
|
74
|
+
},
|
|
75
|
+
academicCalendarId: {
|
|
76
|
+
type: sequelize_1.DataTypes.UUID,
|
|
77
|
+
field: 'academic_calendar_id',
|
|
78
|
+
allowNull: true,
|
|
79
|
+
},
|
|
80
|
+
}, {
|
|
81
|
+
modelName: 'UserHasFeeSubmissionModel',
|
|
82
|
+
tableName: 'user_has_fee_submission',
|
|
83
|
+
timestamps: true,
|
|
84
|
+
sequelize: index_1.sequelize,
|
|
85
|
+
});
|
|
86
|
+
exports.default = UserHasFeeSubmissionModel;
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -206,3 +206,4 @@ __exportStar(require("./userHasPenaltyHistoryType"), exports);
|
|
|
206
206
|
__exportStar(require("./instituteOwnershipHistoryType"), exports);
|
|
207
207
|
__exportStar(require("./institutePartnersType"), exports);
|
|
208
208
|
__exportStar(require("./feeSubmissionType"), exports);
|
|
209
|
+
__exportStar(require("./userHasFeeSubmissionType"), exports);
|
package/package.json
CHANGED