@kipicore/dbcore 1.1.486 → 1.1.487
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 +9 -0
- package/dist/constants/app.js +12 -1
- package/dist/constants/errorMessages.d.ts +4 -0
- package/dist/constants/errorMessages.js +6 -1
- package/dist/constants/successMessages.d.ts +6 -0
- package/dist/constants/successMessages.js +8 -1
- package/dist/db/psql/migrations/20260105092543-userHasPenalties.js +40 -16
- package/dist/db/psql/migrations/20260429092000-add_field_to_user_has_penalty.d.ts +2 -0
- package/dist/db/psql/migrations/20260429092000-add_field_to_user_has_penalty.js +38 -0
- package/dist/db/psql/migrations/20260429101846-create_user_has_penalty_history.d.ts +2 -0
- package/dist/db/psql/migrations/20260429101846-create_user_has_penalty_history.js +238 -0
- package/dist/interfaces/index.d.ts +2 -0
- package/dist/interfaces/index.js +2 -0
- package/dist/interfaces/userHasPenaltyHistoryInterface.d.ts +18 -0
- package/dist/interfaces/userHasPenaltyHistoryInterface.js +2 -0
- package/dist/interfaces/userHasPenaltyInterface.d.ts +6 -5
- package/dist/models/psql/index.d.ts +1 -0
- package/dist/models/psql/index.js +3 -1
- package/dist/models/psql/userHasPenaltyHistoryModel.d.ts +28 -0
- package/dist/models/psql/userHasPenaltyHistoryModel.js +167 -0
- package/dist/models/psql/userHasPenaltyModel.d.ts +4 -3
- package/dist/models/psql/userHasPenaltyModel.js +27 -25
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/userHasPenaltyHistoryType.d.ts +3 -0
- package/dist/types/userHasPenaltyHistoryType.js +2 -0
- package/package.json +1 -1
package/dist/constants/app.d.ts
CHANGED
|
@@ -1344,3 +1344,12 @@ export declare enum PAYOUT_STATUS {
|
|
|
1344
1344
|
DUE = "DUE",
|
|
1345
1345
|
PARTIAL_PAID = "PARTIAL_PAID"
|
|
1346
1346
|
}
|
|
1347
|
+
export declare enum USER_HAS_PENALTY_TYPE {
|
|
1348
|
+
PENALTY = "PENALTY",
|
|
1349
|
+
FINE = "FINE"
|
|
1350
|
+
}
|
|
1351
|
+
export declare enum USER_HAS_PENALTY_TITLE {
|
|
1352
|
+
OTHER = "OTHER",
|
|
1353
|
+
LAB = "LAB",
|
|
1354
|
+
LIBRARY = "LIBRARY"
|
|
1355
|
+
}
|
package/dist/constants/app.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.SCHOOL_SHIFT = exports.WORKIN_DAY_STATUS = exports.LEAVE_STATUS = export
|
|
|
4
4
|
exports.USER_CHAPTER_INDEX_STATUS = exports.CHAPTER_INDEX_TYPE = exports.IMAGE__NAME = exports.INQUIRY_STATUS = exports.INQUIRY_REFERRED_BY = exports.EXAM_GROUP_STANDARD_RESULT = exports.EXAM_GROUP_STATUS = exports.SUBJECT_INDEX_TYPE = exports.LECTURE_SLOT_DURATION = exports.EXAM_ANSWER_SHEET_QUESTION_RESULT = exports.PAYMENT_TERMS_TYPE = exports.PAYMENT_TERMS_STATUS = exports.EXAM_ANSWER_SHEET_RESULT_TYPE = exports.EXAM_ANSWER_SHEET_RESULT_STATUS = exports.EXAM_ANSWER_SHEET_STATUS = exports.EXAM_VALID_ANSWER_TYPE = exports.EXAM_ANSWER_SELECTION_TYPE = exports.EXAM_STATUS = exports.COURSE_STATUS = exports.EXAM_MODE = exports.GREETING_STATUS = exports.USER_HAS_ANNOUCEMENT_STATUS = exports.ANNOUCEMENT_STATUS = exports.TYPE_OF_USER = exports.ANNOUCEMENT_SCHEDULE_TYPE = exports.APPROVE_REQUEST_STATUS = exports.APPROVE_REQUEST_TYPE = exports.TYPE_MANAGEMENT_STATUS = exports.TYPE_MANAGEMENT_TYPE = exports.FILE_TYPE = exports.ACADEMIC_CALENDARS_STATUS = exports.BANNER_TYPE = exports.APP_TYPE = exports.FEED_BACK_STATUS = exports.FEED_BACK_TYPE = exports.FACILITY_TYPE = exports.EMPLOYMENT_TYPE = exports.USER_INSTITUTE_META_STATUS = exports.USER_HAS_PARENT_STATUS = exports.GUARDIANS_USER_META_MODEL_STATUS = exports.DISABILITY_TYPE = exports.WORK_CATEGORY = exports.BLOG_STATUS = exports.WORK_TYPE = exports.USER_DETAILS = exports.NO_TYPE = exports.ADMISSION_TYPE = exports.INSTITUTE_ENTITY_TYPE_SEQUENCE = exports.INSTITUTE_ENTITY_TYPE_STATUS = exports.INSTITUTE_ENTITY_STATUS = void 0;
|
|
5
5
|
exports.SUBSCRIPTION_PLAN_TYPE = exports.SUBSCRIPTION_PLAN_CHARGE_INTERVAL = exports.DISCOUNT_TYPE = exports.CONTACT_FEED_BACK_TYPE = exports.PLANNER_SYNC_STATUS = exports.NOTIFICATION_ACTION = exports.NOTIFICATION_MODULE_TYPE = exports.NOTIFICATION_STATUS = exports.NOTIFICATION_TYPE = exports.PROJECT_ASSESSMENT_OPTION_STATUS = exports.USER_BOOK_ASSESSMENT_STATUS = exports.BOOK_ASSESSMENT_DATE_STATUS = exports.TASK_MANAGEMENT_STATUS = exports.USER_DETAILS_FILED = exports.DEVICE_TYPE = exports.templateKeyWord = exports.bankAccountRegexMap = exports.EMAIL_SUBJECTS = exports.PDF_TEMPLATES = exports.EMAIL_TEMPLATES = exports.PINCODE_API_URL = exports.APPLE_AUTH = exports.META_AUTH = exports.GOOGLE_AUTH = exports.API_URL = exports.DEFAULT_USER_LOGO = exports.DEFAULT_INSTITUTED_LOGO = exports.UPLOAD_PATH = exports.SVG_URL_PATH = exports.TO_DO_STATUS = exports.LECTURE_TITLE = exports.LECTURE_STATUS = exports.SCHOOL_INFORMATION_STEP = exports.CASTE = exports.RELIGION_CASTE = exports.NATIONALITY = exports.CATEGORY = exports.IS_PRINCIPAL = exports.FEE_TYPE = exports.BOOLEAN_STATUS = exports.PROPERTY_STATUS = exports.DESIGNATION_OF_PERSON = exports.TRUST_REGISTERED_UNDER = exports.TRUST_TYPE = exports.SVA_NAME = exports.QDC_NAME = exports.USER_PAYOUT_TYPE = exports.PARENTS_CHILDREN_CURRENT = exports.CHAPTER_INDEX_FILE_TYPE = exports.FEE_HISTORY_STATUS = void 0;
|
|
6
6
|
exports.STUDENT_LEAVE_STATUS = exports.CERTIFICATE_TYPE = exports.CERTIFICATE_FOR = exports.SHEET_TYPE = exports.COMPETITION_USER_ROLE = exports.RESULT_STATUS = exports.COMPETITION_STATUS = exports.STATUS_BY_PARENTS = exports.COMPETITION_TYPE = exports.CAMPUS_CARNIVAL_STATUS = exports.COMPETITION_TYPE_CATEGORY = exports.COMPETITION_EVENTS = exports.PAYMENT_STATUS = exports.INCOME_EXPENSE_SOURCE = exports.INCOME_EXPENSE_TYPE = exports.APPOINTMENT_STATUS = exports.MAINTENANCE_MODULE_NAME = exports.MAINTENANCE_TYPE = exports.MAINTENANCE_MODE = exports.ASSIGN_FILE_TYPE = exports.LOST_FOUND_ITEM_STATUS = exports.PAYMENT_PROCESSING_CALLBACK_URL = exports.PAYMENT_PROCESSING_PAGE_URL = exports.PAYMENT_PROCESSING_STATUS_URL = exports.WALLET_TRANSACTION_VALID_DATE_FOR_OTP_IN_MINUTES = exports.WALLET_TRANSACTION_VALID_DATE_IN_MINUTES = exports.PAYMENT_METHODS = exports.PAYMENT_GATEWAY_TYPES = exports.JOB_ACTION = exports.ONE_GB_BYTES = exports.CHARGE_PER_TRANSACTION_ITEM_UNIT = exports.INSTITUTE_SUBSCRIPTION_PLAN_STATUS = exports.WALLET_TRANSACTION_USERS_TYPE = exports.WALLET_HISTORY_STATUS = exports.WALLET_HISTORY_ACTION = exports.WALLET_HISTORY_ITEM_TYPE = exports.WALLET_HISTORY_TYPE = exports.REPLACE_TEACHER_STATUS = exports.TEACHER_TYPE = exports.INVOICE_TYPE = exports.PURCHASE_STATUS = exports.COLUMN_LIST_TITLE = exports.INVOICE_PAYMENT_TYPE = exports.PDF_CHEQUE_FREQUENCY = exports.PDF_CHEQUE_STATUS = exports.LANGUAGES = exports.HOME_WORK_STATUS = exports.SOCKET_EVENTS = exports.SUBSCRIPTION_PLAN_FILES_TYPE = exports.VALID_CURRENCY = void 0;
|
|
7
|
-
exports.PAYOUT_STATUS = exports.NOTICEBOARD_STATUS = exports.NOTICEBOARD_TYPE = exports.PERMISSION_TYPE = exports.NOTIFICATION_SEND_STATUS = exports.MEMBERSHIP_STATUS = exports.COMMUNITY_TYPE = exports.DESIGNATION_TYPE = exports.ADDITIONAL_PAYOUT_TYPE = exports.POSTAL_DISPATCH_STATUS = exports.CALL_TYPE = exports.SEARCH_TYPE = exports.REPORT_TYPE = exports.DEVICE_TYPE_APP_ANALYTICS = exports.APP_ANALYTICS_EVENT_TYPE = exports.EXPORT_SHEET_TYPE = exports.GRANT_AND_DONATION_TYPE = exports.TICKET_RAISE_PRIORITY = exports.TICKET_RAISE_STATUS = exports.TERM_AND_CONDITION_STATUS = exports.EDUCATION_OFFICER_TYPE = exports.HOME_WORK_TYPE = exports.STUDENT_FEE_PROCESS_STATUS = exports.FEE_COLLECTION_TYPE = exports.BANK_ACCOUNT_TYPE = exports.STUDENT_LEAVE_TYPE = void 0;
|
|
7
|
+
exports.USER_HAS_PENALTY_TITLE = exports.USER_HAS_PENALTY_TYPE = exports.PAYOUT_STATUS = exports.NOTICEBOARD_STATUS = exports.NOTICEBOARD_TYPE = exports.PERMISSION_TYPE = exports.NOTIFICATION_SEND_STATUS = exports.MEMBERSHIP_STATUS = exports.COMMUNITY_TYPE = exports.DESIGNATION_TYPE = exports.ADDITIONAL_PAYOUT_TYPE = exports.POSTAL_DISPATCH_STATUS = exports.CALL_TYPE = exports.SEARCH_TYPE = exports.REPORT_TYPE = exports.DEVICE_TYPE_APP_ANALYTICS = exports.APP_ANALYTICS_EVENT_TYPE = exports.EXPORT_SHEET_TYPE = exports.GRANT_AND_DONATION_TYPE = exports.TICKET_RAISE_PRIORITY = exports.TICKET_RAISE_STATUS = exports.TERM_AND_CONDITION_STATUS = exports.EDUCATION_OFFICER_TYPE = exports.HOME_WORK_TYPE = exports.STUDENT_FEE_PROCESS_STATUS = exports.FEE_COLLECTION_TYPE = exports.BANK_ACCOUNT_TYPE = exports.STUDENT_LEAVE_TYPE = void 0;
|
|
8
8
|
const env_1 = require("../configs/env");
|
|
9
9
|
exports.SIXTY = 60;
|
|
10
10
|
exports.ONE_HUNDRED = 100;
|
|
@@ -1635,3 +1635,14 @@ var PAYOUT_STATUS;
|
|
|
1635
1635
|
PAYOUT_STATUS["DUE"] = "DUE";
|
|
1636
1636
|
PAYOUT_STATUS["PARTIAL_PAID"] = "PARTIAL_PAID";
|
|
1637
1637
|
})(PAYOUT_STATUS || (exports.PAYOUT_STATUS = PAYOUT_STATUS = {}));
|
|
1638
|
+
var USER_HAS_PENALTY_TYPE;
|
|
1639
|
+
(function (USER_HAS_PENALTY_TYPE) {
|
|
1640
|
+
USER_HAS_PENALTY_TYPE["PENALTY"] = "PENALTY";
|
|
1641
|
+
USER_HAS_PENALTY_TYPE["FINE"] = "FINE";
|
|
1642
|
+
})(USER_HAS_PENALTY_TYPE || (exports.USER_HAS_PENALTY_TYPE = USER_HAS_PENALTY_TYPE = {}));
|
|
1643
|
+
var USER_HAS_PENALTY_TITLE;
|
|
1644
|
+
(function (USER_HAS_PENALTY_TITLE) {
|
|
1645
|
+
USER_HAS_PENALTY_TITLE["OTHER"] = "OTHER";
|
|
1646
|
+
USER_HAS_PENALTY_TITLE["LAB"] = "LAB";
|
|
1647
|
+
USER_HAS_PENALTY_TITLE["LIBRARY"] = "LIBRARY";
|
|
1648
|
+
})(USER_HAS_PENALTY_TITLE || (exports.USER_HAS_PENALTY_TITLE = USER_HAS_PENALTY_TITLE = {}));
|
|
@@ -1455,3 +1455,7 @@ export declare enum PAST_YEAR_RECORD_ERROR_MESSAGES {
|
|
|
1455
1455
|
CREATE_FAIL = "Unable to create Past Year Record",
|
|
1456
1456
|
GET_FAIL = "Unable to retrieve Past Year Record"
|
|
1457
1457
|
}
|
|
1458
|
+
export declare enum USER_HAS_PENALTY_HISTORY_ERROR_MESSAGES {
|
|
1459
|
+
CREATE_FAIL = "Unable to create Penalty History Record",
|
|
1460
|
+
GET_FAIL = "Unable to retrieve Penalty History Record"
|
|
1461
|
+
}
|
|
@@ -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.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_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!";
|
|
@@ -1621,3 +1621,8 @@ var PAST_YEAR_RECORD_ERROR_MESSAGES;
|
|
|
1621
1621
|
PAST_YEAR_RECORD_ERROR_MESSAGES["CREATE_FAIL"] = "Unable to create Past Year Record";
|
|
1622
1622
|
PAST_YEAR_RECORD_ERROR_MESSAGES["GET_FAIL"] = "Unable to retrieve Past Year Record";
|
|
1623
1623
|
})(PAST_YEAR_RECORD_ERROR_MESSAGES || (exports.PAST_YEAR_RECORD_ERROR_MESSAGES = PAST_YEAR_RECORD_ERROR_MESSAGES = {}));
|
|
1624
|
+
var USER_HAS_PENALTY_HISTORY_ERROR_MESSAGES;
|
|
1625
|
+
(function (USER_HAS_PENALTY_HISTORY_ERROR_MESSAGES) {
|
|
1626
|
+
USER_HAS_PENALTY_HISTORY_ERROR_MESSAGES["CREATE_FAIL"] = "Unable to create Penalty History Record";
|
|
1627
|
+
USER_HAS_PENALTY_HISTORY_ERROR_MESSAGES["GET_FAIL"] = "Unable to retrieve Penalty History Record";
|
|
1628
|
+
})(USER_HAS_PENALTY_HISTORY_ERROR_MESSAGES || (exports.USER_HAS_PENALTY_HISTORY_ERROR_MESSAGES = USER_HAS_PENALTY_HISTORY_ERROR_MESSAGES = {}));
|
|
@@ -1043,3 +1043,9 @@ export declare enum PAST_YEAR_RECORD_SUCCESS_MESSAGES {
|
|
|
1043
1043
|
UPDATE_SUCCESS = "Past Year Record updated successfully!",
|
|
1044
1044
|
DELETE_SUCCESS = "Past Year Record deleted successfully!"
|
|
1045
1045
|
}
|
|
1046
|
+
export declare enum USER_HAS_PENALTY_HISTORY_SUCCESS_MESSAGES {
|
|
1047
|
+
CREATE_SUCCESS = "Penalty history created successfully!",
|
|
1048
|
+
GET_SUCCESS = "Penalty history retrieved successfully!",
|
|
1049
|
+
UPDATE_SUCCESS = "Penalty history updated successfully!",
|
|
1050
|
+
DELETE_SUCCESS = "Penalty history deleted successfully!"
|
|
1051
|
+
}
|
|
@@ -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.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_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";
|
|
@@ -1213,3 +1213,10 @@ var PAST_YEAR_RECORD_SUCCESS_MESSAGES;
|
|
|
1213
1213
|
PAST_YEAR_RECORD_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "Past Year Record updated successfully!";
|
|
1214
1214
|
PAST_YEAR_RECORD_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "Past Year Record deleted successfully!";
|
|
1215
1215
|
})(PAST_YEAR_RECORD_SUCCESS_MESSAGES || (exports.PAST_YEAR_RECORD_SUCCESS_MESSAGES = PAST_YEAR_RECORD_SUCCESS_MESSAGES = {}));
|
|
1216
|
+
var USER_HAS_PENALTY_HISTORY_SUCCESS_MESSAGES;
|
|
1217
|
+
(function (USER_HAS_PENALTY_HISTORY_SUCCESS_MESSAGES) {
|
|
1218
|
+
USER_HAS_PENALTY_HISTORY_SUCCESS_MESSAGES["CREATE_SUCCESS"] = "Penalty history created successfully!";
|
|
1219
|
+
USER_HAS_PENALTY_HISTORY_SUCCESS_MESSAGES["GET_SUCCESS"] = "Penalty history retrieved successfully!";
|
|
1220
|
+
USER_HAS_PENALTY_HISTORY_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "Penalty history updated successfully!";
|
|
1221
|
+
USER_HAS_PENALTY_HISTORY_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "Penalty history deleted successfully!";
|
|
1222
|
+
})(USER_HAS_PENALTY_HISTORY_SUCCESS_MESSAGES || (exports.USER_HAS_PENALTY_HISTORY_SUCCESS_MESSAGES = USER_HAS_PENALTY_HISTORY_SUCCESS_MESSAGES = {}));
|
|
@@ -22,11 +22,23 @@ const up = async (queryInterface, Sequelize) => {
|
|
|
22
22
|
type: Sequelize.INTEGER,
|
|
23
23
|
allowNull: true,
|
|
24
24
|
},
|
|
25
|
-
|
|
26
|
-
type: Sequelize.
|
|
25
|
+
description: {
|
|
26
|
+
type: Sequelize.STRING,
|
|
27
|
+
allowNull: true,
|
|
28
|
+
},
|
|
29
|
+
title: {
|
|
30
|
+
type: Sequelize.STRING,
|
|
27
31
|
allowNull: true,
|
|
28
|
-
field: 'day_count',
|
|
29
32
|
},
|
|
33
|
+
type: {
|
|
34
|
+
type: Sequelize.STRING,
|
|
35
|
+
allowNull: true,
|
|
36
|
+
},
|
|
37
|
+
// dayCount: {
|
|
38
|
+
// type: Sequelize.INTEGER,
|
|
39
|
+
// allowNull: true,
|
|
40
|
+
// field: 'day_count',
|
|
41
|
+
// },
|
|
30
42
|
status: {
|
|
31
43
|
type: Sequelize.STRING,
|
|
32
44
|
allowNull: true,
|
|
@@ -36,11 +48,11 @@ const up = async (queryInterface, Sequelize) => {
|
|
|
36
48
|
allowNull: true,
|
|
37
49
|
field: 'adjustment_amount',
|
|
38
50
|
},
|
|
39
|
-
studentFeeCollectionId: {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
},
|
|
51
|
+
// studentFeeCollectionId: {
|
|
52
|
+
// type: Sequelize.UUID,
|
|
53
|
+
// field: 'student_fee_collection_id',
|
|
54
|
+
// allowNull: true,
|
|
55
|
+
// },
|
|
44
56
|
userId: {
|
|
45
57
|
type: Sequelize.UUID,
|
|
46
58
|
field: 'user_id',
|
|
@@ -112,11 +124,23 @@ const up = async (queryInterface, Sequelize) => {
|
|
|
112
124
|
type: Sequelize.INTEGER,
|
|
113
125
|
allowNull: true,
|
|
114
126
|
},
|
|
115
|
-
|
|
116
|
-
type: Sequelize.
|
|
127
|
+
description: {
|
|
128
|
+
type: Sequelize.STRING,
|
|
129
|
+
allowNull: true,
|
|
130
|
+
},
|
|
131
|
+
title: {
|
|
132
|
+
type: Sequelize.STRING,
|
|
117
133
|
allowNull: true,
|
|
118
|
-
field: 'day_count',
|
|
119
134
|
},
|
|
135
|
+
type: {
|
|
136
|
+
type: Sequelize.STRING,
|
|
137
|
+
allowNull: true,
|
|
138
|
+
},
|
|
139
|
+
// dayCount: {
|
|
140
|
+
// type: Sequelize.INTEGER,
|
|
141
|
+
// allowNull: true,
|
|
142
|
+
// field: 'day_count',
|
|
143
|
+
// },
|
|
120
144
|
status: {
|
|
121
145
|
type: Sequelize.STRING,
|
|
122
146
|
allowNull: true,
|
|
@@ -126,11 +150,11 @@ const up = async (queryInterface, Sequelize) => {
|
|
|
126
150
|
allowNull: true,
|
|
127
151
|
field: 'adjustment_amount',
|
|
128
152
|
},
|
|
129
|
-
studentFeeCollectionId: {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
},
|
|
153
|
+
// studentFeeCollectionId: {
|
|
154
|
+
// type: Sequelize.UUID,
|
|
155
|
+
// field: 'student_fee_collection_id',
|
|
156
|
+
// allowNull: true,
|
|
157
|
+
// },
|
|
134
158
|
userId: {
|
|
135
159
|
type: Sequelize.UUID,
|
|
136
160
|
field: 'user_id',
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const table = await queryInterface.describeTable('user_has_penalties');
|
|
4
|
+
if (!table.title) {
|
|
5
|
+
await queryInterface.addColumn('user_has_penalties', 'title', {
|
|
6
|
+
type: Sequelize.STRING,
|
|
7
|
+
allowNull: true,
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
if (!table.description) {
|
|
11
|
+
await queryInterface.addColumn('user_has_penalties', 'description', {
|
|
12
|
+
type: Sequelize.STRING,
|
|
13
|
+
allowNull: true,
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
if (!table.type) {
|
|
17
|
+
await queryInterface.addColumn('user_has_penalties', 'type', {
|
|
18
|
+
type: Sequelize.STRING,
|
|
19
|
+
allowNull: true,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const down = async (queryInterface) => {
|
|
24
|
+
const table = await queryInterface.describeTable('user_has_penalties');
|
|
25
|
+
if (table.title) {
|
|
26
|
+
await queryInterface.removeColumn('user_has_penalties', 'title');
|
|
27
|
+
}
|
|
28
|
+
if (table.description) {
|
|
29
|
+
await queryInterface.removeColumn('user_has_penalties', 'description');
|
|
30
|
+
}
|
|
31
|
+
if (table.type) {
|
|
32
|
+
await queryInterface.removeColumn('user_has_penalties', 'type');
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
module.exports = {
|
|
36
|
+
up,
|
|
37
|
+
down,
|
|
38
|
+
};
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const tableName = 'user_has_penalty_history';
|
|
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
|
+
paidAmount: {
|
|
17
|
+
type: Sequelize.INTEGER,
|
|
18
|
+
field: 'paid_amount',
|
|
19
|
+
allowNull: true,
|
|
20
|
+
},
|
|
21
|
+
userId: {
|
|
22
|
+
type: Sequelize.UUID,
|
|
23
|
+
field: 'user_id',
|
|
24
|
+
allowNull: true,
|
|
25
|
+
},
|
|
26
|
+
instituteId: {
|
|
27
|
+
type: Sequelize.UUID,
|
|
28
|
+
field: 'institute_id',
|
|
29
|
+
allowNull: true,
|
|
30
|
+
},
|
|
31
|
+
academicCalendarId: {
|
|
32
|
+
type: Sequelize.UUID,
|
|
33
|
+
field: 'academic_calendar_id',
|
|
34
|
+
allowNull: true,
|
|
35
|
+
},
|
|
36
|
+
paidDate: {
|
|
37
|
+
type: Sequelize.DATE,
|
|
38
|
+
allowNull: false,
|
|
39
|
+
field: 'paid_date',
|
|
40
|
+
},
|
|
41
|
+
paymentType: {
|
|
42
|
+
type: Sequelize.STRING,
|
|
43
|
+
allowNull: true,
|
|
44
|
+
field: 'payment_type',
|
|
45
|
+
},
|
|
46
|
+
upiId: {
|
|
47
|
+
type: Sequelize.STRING,
|
|
48
|
+
allowNull: true,
|
|
49
|
+
field: 'upi_id',
|
|
50
|
+
},
|
|
51
|
+
bankName: {
|
|
52
|
+
type: Sequelize.STRING,
|
|
53
|
+
allowNull: true,
|
|
54
|
+
field: 'bank_name',
|
|
55
|
+
},
|
|
56
|
+
chequeNo: {
|
|
57
|
+
type: Sequelize.STRING,
|
|
58
|
+
allowNull: true,
|
|
59
|
+
field: 'cheque_no',
|
|
60
|
+
},
|
|
61
|
+
groupId: {
|
|
62
|
+
type: Sequelize.STRING,
|
|
63
|
+
allowNull: true,
|
|
64
|
+
field: 'group_id',
|
|
65
|
+
},
|
|
66
|
+
bankAccId: {
|
|
67
|
+
type: Sequelize.STRING,
|
|
68
|
+
allowNull: true,
|
|
69
|
+
field: 'bank_acc_id',
|
|
70
|
+
},
|
|
71
|
+
status: {
|
|
72
|
+
type: Sequelize.STRING,
|
|
73
|
+
allowNull: true,
|
|
74
|
+
},
|
|
75
|
+
userHasPenaltyId: {
|
|
76
|
+
type: Sequelize.STRING,
|
|
77
|
+
allowNull: true,
|
|
78
|
+
field: 'user_has_penalty_id',
|
|
79
|
+
},
|
|
80
|
+
createdBy: {
|
|
81
|
+
type: Sequelize.UUID,
|
|
82
|
+
allowNull: true,
|
|
83
|
+
field: 'created_by',
|
|
84
|
+
},
|
|
85
|
+
updatedBy: {
|
|
86
|
+
type: Sequelize.UUID,
|
|
87
|
+
allowNull: true,
|
|
88
|
+
field: 'updated_by',
|
|
89
|
+
},
|
|
90
|
+
deletedBy: {
|
|
91
|
+
type: Sequelize.UUID,
|
|
92
|
+
allowNull: true,
|
|
93
|
+
field: 'deleted_by',
|
|
94
|
+
},
|
|
95
|
+
createdAt: {
|
|
96
|
+
type: Sequelize.DATE,
|
|
97
|
+
allowNull: true,
|
|
98
|
+
field: 'created_at',
|
|
99
|
+
},
|
|
100
|
+
updatedAt: {
|
|
101
|
+
type: Sequelize.DATE,
|
|
102
|
+
allowNull: true,
|
|
103
|
+
field: 'updated_at',
|
|
104
|
+
},
|
|
105
|
+
deletedAt: {
|
|
106
|
+
type: Sequelize.DATE,
|
|
107
|
+
allowNull: true,
|
|
108
|
+
field: 'deleted_at',
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
const tableDefinition = await queryInterface.describeTable(tableName);
|
|
114
|
+
const columnsToAdd = {
|
|
115
|
+
id: {
|
|
116
|
+
type: Sequelize.UUID,
|
|
117
|
+
defaultValue: Sequelize.UUIDV4,
|
|
118
|
+
allowNull: false,
|
|
119
|
+
primaryKey: true,
|
|
120
|
+
},
|
|
121
|
+
paidAmount: {
|
|
122
|
+
type: Sequelize.INTEGER,
|
|
123
|
+
field: 'paid_amount',
|
|
124
|
+
allowNull: true,
|
|
125
|
+
},
|
|
126
|
+
userId: {
|
|
127
|
+
type: Sequelize.UUID,
|
|
128
|
+
field: 'user_id',
|
|
129
|
+
allowNull: true,
|
|
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
|
+
paidDate: {
|
|
142
|
+
type: Sequelize.DATE,
|
|
143
|
+
allowNull: false,
|
|
144
|
+
field: 'paid_date',
|
|
145
|
+
},
|
|
146
|
+
paymentType: {
|
|
147
|
+
type: Sequelize.STRING,
|
|
148
|
+
allowNull: true,
|
|
149
|
+
field: 'payment_type',
|
|
150
|
+
},
|
|
151
|
+
upiId: {
|
|
152
|
+
type: Sequelize.STRING,
|
|
153
|
+
allowNull: true,
|
|
154
|
+
field: 'upi_id',
|
|
155
|
+
},
|
|
156
|
+
bankName: {
|
|
157
|
+
type: Sequelize.STRING,
|
|
158
|
+
allowNull: true,
|
|
159
|
+
field: 'bank_name',
|
|
160
|
+
},
|
|
161
|
+
chequeNo: {
|
|
162
|
+
type: Sequelize.STRING,
|
|
163
|
+
allowNull: true,
|
|
164
|
+
field: 'cheque_no',
|
|
165
|
+
},
|
|
166
|
+
groupId: {
|
|
167
|
+
type: Sequelize.STRING,
|
|
168
|
+
allowNull: true,
|
|
169
|
+
field: 'group_id',
|
|
170
|
+
},
|
|
171
|
+
bankAccId: {
|
|
172
|
+
type: Sequelize.STRING,
|
|
173
|
+
allowNull: true,
|
|
174
|
+
field: 'bank_acc_id',
|
|
175
|
+
},
|
|
176
|
+
status: {
|
|
177
|
+
type: Sequelize.STRING,
|
|
178
|
+
allowNull: true,
|
|
179
|
+
},
|
|
180
|
+
userHasPenaltyId: {
|
|
181
|
+
type: Sequelize.STRING,
|
|
182
|
+
allowNull: true,
|
|
183
|
+
field: 'user_has_penalty_id',
|
|
184
|
+
},
|
|
185
|
+
createdBy: {
|
|
186
|
+
type: Sequelize.UUID,
|
|
187
|
+
allowNull: true,
|
|
188
|
+
field: 'created_by',
|
|
189
|
+
},
|
|
190
|
+
updatedBy: {
|
|
191
|
+
type: Sequelize.UUID,
|
|
192
|
+
allowNull: true,
|
|
193
|
+
field: 'updated_by',
|
|
194
|
+
},
|
|
195
|
+
deletedBy: {
|
|
196
|
+
type: Sequelize.UUID,
|
|
197
|
+
allowNull: true,
|
|
198
|
+
field: 'deleted_by',
|
|
199
|
+
},
|
|
200
|
+
createdAt: {
|
|
201
|
+
type: Sequelize.DATE,
|
|
202
|
+
allowNull: true,
|
|
203
|
+
field: 'created_at',
|
|
204
|
+
},
|
|
205
|
+
updatedAt: {
|
|
206
|
+
type: Sequelize.DATE,
|
|
207
|
+
allowNull: true,
|
|
208
|
+
field: 'updated_at',
|
|
209
|
+
},
|
|
210
|
+
deletedAt: {
|
|
211
|
+
type: Sequelize.DATE,
|
|
212
|
+
allowNull: true,
|
|
213
|
+
field: 'deleted_at',
|
|
214
|
+
},
|
|
215
|
+
};
|
|
216
|
+
for (const column of Object.keys(columnsToAdd)) {
|
|
217
|
+
const columnToAdd = columnsToAdd[column];
|
|
218
|
+
const tableColumn = columnToAdd.field || column;
|
|
219
|
+
if (!tableDefinition[tableColumn]) {
|
|
220
|
+
await queryInterface.addColumn(tableName, tableColumn, columnToAdd);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
const down = async (queryInterface) => {
|
|
226
|
+
const tableName = 'user_has_penalty_history';
|
|
227
|
+
const tableExists = await queryInterface
|
|
228
|
+
.describeTable(tableName)
|
|
229
|
+
.then(() => true)
|
|
230
|
+
.catch(() => false);
|
|
231
|
+
if (tableExists) {
|
|
232
|
+
await queryInterface.dropTable(tableName);
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
module.exports = {
|
|
236
|
+
up,
|
|
237
|
+
down,
|
|
238
|
+
};
|
|
@@ -195,5 +195,7 @@ export * from './loanEmiInterface';
|
|
|
195
195
|
export * from './additionalPayoutInterface';
|
|
196
196
|
export * from './payoutTransactionHistoryInterface';
|
|
197
197
|
export * from './pastYearRecordInterface';
|
|
198
|
+
export * from './userHasPenaltyHistoryInterface';
|
|
199
|
+
export * from './pastYearRecordInterface';
|
|
198
200
|
export * from './instituteOwnershipHistoryInterface';
|
|
199
201
|
export * from './institutePartnersInterface';
|
package/dist/interfaces/index.js
CHANGED
|
@@ -211,5 +211,7 @@ __exportStar(require("./loanEmiInterface"), exports);
|
|
|
211
211
|
__exportStar(require("./additionalPayoutInterface"), exports);
|
|
212
212
|
__exportStar(require("./payoutTransactionHistoryInterface"), exports);
|
|
213
213
|
__exportStar(require("./pastYearRecordInterface"), exports);
|
|
214
|
+
__exportStar(require("./userHasPenaltyHistoryInterface"), exports);
|
|
215
|
+
__exportStar(require("./pastYearRecordInterface"), exports);
|
|
214
216
|
__exportStar(require("./instituteOwnershipHistoryInterface"), exports);
|
|
215
217
|
__exportStar(require("./institutePartnersInterface"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FEE_HISTORY_STATUS } from '../constants';
|
|
2
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
+
export interface IUserHasPenaltyHistoryModelAttributes extends IDefaultAttributes {
|
|
4
|
+
id: string;
|
|
5
|
+
paidDate: Date;
|
|
6
|
+
paymentType: string;
|
|
7
|
+
userId: string;
|
|
8
|
+
instituteId?: string;
|
|
9
|
+
academicCalendarId?: string;
|
|
10
|
+
upiId: string;
|
|
11
|
+
bankName: string;
|
|
12
|
+
chequeNo: string;
|
|
13
|
+
groupId: string;
|
|
14
|
+
bankAccId: string;
|
|
15
|
+
status: FEE_HISTORY_STATUS;
|
|
16
|
+
paidAmount: number;
|
|
17
|
+
userHasPenaltyId: string;
|
|
18
|
+
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { PAYMENT_STATUS } from '../constants';
|
|
1
|
+
import { PAYMENT_STATUS, USER_HAS_PENALTY_TITLE, USER_HAS_PENALTY_TYPE } from '../constants';
|
|
2
2
|
import { IDefaultAttributes } from './commonInterface';
|
|
3
3
|
export interface IUserHasPenaltyModelAttributes extends IDefaultAttributes {
|
|
4
4
|
id: string;
|
|
5
5
|
userId: string;
|
|
6
6
|
amount: number;
|
|
7
|
-
dayCount: number;
|
|
8
7
|
penaltyId: string;
|
|
9
8
|
paidAmount: number;
|
|
10
|
-
instituteId
|
|
9
|
+
instituteId?: string;
|
|
11
10
|
status: PAYMENT_STATUS;
|
|
12
11
|
adjustmentAmount: number;
|
|
13
|
-
academicCalendarId
|
|
14
|
-
|
|
12
|
+
academicCalendarId?: string;
|
|
13
|
+
title?: USER_HAS_PENALTY_TITLE;
|
|
14
|
+
type?: USER_HAS_PENALTY_TYPE;
|
|
15
|
+
description?: string;
|
|
15
16
|
}
|
|
@@ -130,5 +130,6 @@ export { default as LoanEmiModel } from './loanEmiModel';
|
|
|
130
130
|
export { default as AdditionalPayoutModel } from './additionalPayoutModel';
|
|
131
131
|
export { default as PayoutTransactionHistoryModel } from './payoutTransactionHistoryModel';
|
|
132
132
|
export { default as PastYearRecordModel } from './pastYearRecordModel';
|
|
133
|
+
export { default as UserHasPenaltyHistoryModel } from './userHasPenaltyHistoryModel';
|
|
133
134
|
export { default as InstituteOwnershipHistoryModel } from './instituteOwnershipHistoryModel';
|
|
134
135
|
export { default as InstitutePartnersModel } from './institutePartnersModel';
|
|
@@ -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.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.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');
|
|
@@ -354,6 +354,8 @@ var payoutTransactionHistoryModel_1 = require("./payoutTransactionHistoryModel")
|
|
|
354
354
|
Object.defineProperty(exports, "PayoutTransactionHistoryModel", { enumerable: true, get: function () { return __importDefault(payoutTransactionHistoryModel_1).default; } });
|
|
355
355
|
var pastYearRecordModel_1 = require("./pastYearRecordModel");
|
|
356
356
|
Object.defineProperty(exports, "PastYearRecordModel", { enumerable: true, get: function () { return __importDefault(pastYearRecordModel_1).default; } });
|
|
357
|
+
var userHasPenaltyHistoryModel_1 = require("./userHasPenaltyHistoryModel");
|
|
358
|
+
Object.defineProperty(exports, "UserHasPenaltyHistoryModel", { enumerable: true, get: function () { return __importDefault(userHasPenaltyHistoryModel_1).default; } });
|
|
357
359
|
var instituteOwnershipHistoryModel_1 = require("./instituteOwnershipHistoryModel");
|
|
358
360
|
Object.defineProperty(exports, "InstituteOwnershipHistoryModel", { enumerable: true, get: function () { return __importDefault(instituteOwnershipHistoryModel_1).default; } });
|
|
359
361
|
var institutePartnersModel_1 = require("./institutePartnersModel");
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Model } from 'sequelize';
|
|
2
|
+
import { FEE_HISTORY_STATUS } from '../../constants';
|
|
3
|
+
import { IUserHasPenaltyHistoryModelAttributes } from '../../interfaces/userHasPenaltyHistoryInterface';
|
|
4
|
+
import { TUserHasPenaltyHistoryModelCreationAttributes } from '../../types/userHasPenaltyHistoryType';
|
|
5
|
+
declare class UserHasPenaltyHistoryModel extends Model<IUserHasPenaltyHistoryModelAttributes, TUserHasPenaltyHistoryModelCreationAttributes> {
|
|
6
|
+
id: string;
|
|
7
|
+
upiId: string;
|
|
8
|
+
userId: string;
|
|
9
|
+
paidDate: Date;
|
|
10
|
+
groupId: string;
|
|
11
|
+
chequeNo: string;
|
|
12
|
+
bankName: string;
|
|
13
|
+
bankAccId: string;
|
|
14
|
+
paidAmount: number;
|
|
15
|
+
paymentType: string;
|
|
16
|
+
instituteId?: string;
|
|
17
|
+
userHasPenaltyId: string;
|
|
18
|
+
status: FEE_HISTORY_STATUS;
|
|
19
|
+
academicCalendarId?: string;
|
|
20
|
+
createdBy: string;
|
|
21
|
+
updatedBy: string;
|
|
22
|
+
deletedBy: string;
|
|
23
|
+
readonly createdAt: Date;
|
|
24
|
+
readonly deletedAt: Date;
|
|
25
|
+
readonly updatedAt: Date;
|
|
26
|
+
static associate(models: any): void;
|
|
27
|
+
}
|
|
28
|
+
export default UserHasPenaltyHistoryModel;
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const sequelize_1 = require("sequelize");
|
|
4
|
+
const index_1 = require("./index");
|
|
5
|
+
class UserHasPenaltyHistoryModel extends sequelize_1.Model {
|
|
6
|
+
static associate(models) {
|
|
7
|
+
const { UserModel, InstituteModel, AcademicCalendarModel, UserHasPenaltyModel } = models;
|
|
8
|
+
UserHasPenaltyHistoryModel.belongsTo(UserModel, {
|
|
9
|
+
foreignKey: {
|
|
10
|
+
name: 'createdBy',
|
|
11
|
+
allowNull: true,
|
|
12
|
+
field: 'created_by',
|
|
13
|
+
},
|
|
14
|
+
as: 'createdByUser',
|
|
15
|
+
});
|
|
16
|
+
UserHasPenaltyHistoryModel.belongsTo(UserModel, {
|
|
17
|
+
foreignKey: {
|
|
18
|
+
name: 'updatedBy',
|
|
19
|
+
allowNull: true,
|
|
20
|
+
field: 'updated_by',
|
|
21
|
+
},
|
|
22
|
+
as: 'updatedByUser',
|
|
23
|
+
});
|
|
24
|
+
UserHasPenaltyHistoryModel.belongsTo(UserModel, {
|
|
25
|
+
foreignKey: {
|
|
26
|
+
name: 'deletedBy',
|
|
27
|
+
allowNull: true,
|
|
28
|
+
field: 'deleted_by',
|
|
29
|
+
},
|
|
30
|
+
as: 'deletedByUser',
|
|
31
|
+
});
|
|
32
|
+
UserHasPenaltyHistoryModel.belongsTo(InstituteModel, {
|
|
33
|
+
foreignKey: {
|
|
34
|
+
name: 'instituteId',
|
|
35
|
+
field: 'institute_id',
|
|
36
|
+
},
|
|
37
|
+
as: 'penaltyHistoryInstitute',
|
|
38
|
+
});
|
|
39
|
+
InstituteModel.hasMany(UserHasPenaltyHistoryModel, {
|
|
40
|
+
foreignKey: {
|
|
41
|
+
name: 'instituteId',
|
|
42
|
+
field: 'institute_id',
|
|
43
|
+
},
|
|
44
|
+
as: 'instituteOfPenaltyHistory',
|
|
45
|
+
});
|
|
46
|
+
UserHasPenaltyHistoryModel.belongsTo(AcademicCalendarModel, {
|
|
47
|
+
foreignKey: {
|
|
48
|
+
name: 'academicCalendarId',
|
|
49
|
+
field: 'academic_calendar_id',
|
|
50
|
+
},
|
|
51
|
+
as: 'userHPenaltyHisAcaCal',
|
|
52
|
+
});
|
|
53
|
+
AcademicCalendarModel.hasMany(UserHasPenaltyHistoryModel, {
|
|
54
|
+
foreignKey: {
|
|
55
|
+
name: 'academicCalendarId',
|
|
56
|
+
field: 'academic_calendar_id',
|
|
57
|
+
},
|
|
58
|
+
as: 'acaCalUHPenaltyHistory',
|
|
59
|
+
});
|
|
60
|
+
UserHasPenaltyHistoryModel.belongsTo(UserModel, {
|
|
61
|
+
foreignKey: {
|
|
62
|
+
name: 'userId',
|
|
63
|
+
field: 'user_id',
|
|
64
|
+
},
|
|
65
|
+
as: 'userHPenaltyHisOfUser',
|
|
66
|
+
});
|
|
67
|
+
UserModel.hasMany(UserHasPenaltyHistoryModel, {
|
|
68
|
+
foreignKey: {
|
|
69
|
+
name: 'userId',
|
|
70
|
+
field: 'user_id',
|
|
71
|
+
},
|
|
72
|
+
as: 'userHPenaltyHisUser',
|
|
73
|
+
});
|
|
74
|
+
UserHasPenaltyHistoryModel.belongsTo(UserHasPenaltyModel, {
|
|
75
|
+
foreignKey: {
|
|
76
|
+
name: 'userHasPenaltyId',
|
|
77
|
+
field: 'user_has_penalty_id',
|
|
78
|
+
},
|
|
79
|
+
as: 'userHPenaltyHisOfUser',
|
|
80
|
+
});
|
|
81
|
+
UserHasPenaltyModel.hasMany(UserHasPenaltyHistoryModel, {
|
|
82
|
+
foreignKey: {
|
|
83
|
+
name: 'userHasPenaltyId',
|
|
84
|
+
field: 'user_has_penalty_id',
|
|
85
|
+
},
|
|
86
|
+
as: 'userHPenaltyHisUser',
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
UserHasPenaltyHistoryModel.init({
|
|
91
|
+
id: {
|
|
92
|
+
type: sequelize_1.DataTypes.UUID,
|
|
93
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
94
|
+
allowNull: false,
|
|
95
|
+
primaryKey: true,
|
|
96
|
+
},
|
|
97
|
+
paidAmount: {
|
|
98
|
+
type: sequelize_1.DataTypes.INTEGER,
|
|
99
|
+
field: 'paid_amount',
|
|
100
|
+
allowNull: true,
|
|
101
|
+
},
|
|
102
|
+
userId: {
|
|
103
|
+
type: sequelize_1.DataTypes.UUID,
|
|
104
|
+
field: 'user_id',
|
|
105
|
+
allowNull: true,
|
|
106
|
+
},
|
|
107
|
+
instituteId: {
|
|
108
|
+
type: sequelize_1.DataTypes.UUID,
|
|
109
|
+
field: 'institute_id',
|
|
110
|
+
allowNull: true,
|
|
111
|
+
},
|
|
112
|
+
academicCalendarId: {
|
|
113
|
+
type: sequelize_1.DataTypes.UUID,
|
|
114
|
+
field: 'academic_calendar_id',
|
|
115
|
+
allowNull: true,
|
|
116
|
+
},
|
|
117
|
+
paidDate: {
|
|
118
|
+
type: sequelize_1.DataTypes.DATE,
|
|
119
|
+
allowNull: false,
|
|
120
|
+
field: 'paid_date',
|
|
121
|
+
},
|
|
122
|
+
paymentType: {
|
|
123
|
+
type: sequelize_1.DataTypes.STRING,
|
|
124
|
+
allowNull: true,
|
|
125
|
+
field: 'payment_type'
|
|
126
|
+
},
|
|
127
|
+
upiId: {
|
|
128
|
+
type: sequelize_1.DataTypes.STRING,
|
|
129
|
+
allowNull: true,
|
|
130
|
+
field: 'upi_id',
|
|
131
|
+
},
|
|
132
|
+
bankName: {
|
|
133
|
+
type: sequelize_1.DataTypes.STRING,
|
|
134
|
+
allowNull: true,
|
|
135
|
+
field: 'bank_name'
|
|
136
|
+
},
|
|
137
|
+
chequeNo: {
|
|
138
|
+
type: sequelize_1.DataTypes.STRING,
|
|
139
|
+
allowNull: true,
|
|
140
|
+
field: 'cheque_no'
|
|
141
|
+
},
|
|
142
|
+
groupId: {
|
|
143
|
+
type: sequelize_1.DataTypes.STRING,
|
|
144
|
+
allowNull: true,
|
|
145
|
+
field: 'group_id'
|
|
146
|
+
},
|
|
147
|
+
bankAccId: {
|
|
148
|
+
type: sequelize_1.DataTypes.STRING,
|
|
149
|
+
allowNull: true,
|
|
150
|
+
field: 'bank_acc_id'
|
|
151
|
+
},
|
|
152
|
+
status: {
|
|
153
|
+
type: sequelize_1.DataTypes.STRING,
|
|
154
|
+
allowNull: true,
|
|
155
|
+
},
|
|
156
|
+
userHasPenaltyId: {
|
|
157
|
+
type: sequelize_1.DataTypes.STRING,
|
|
158
|
+
allowNull: true,
|
|
159
|
+
field: 'user_has_penalty_id'
|
|
160
|
+
},
|
|
161
|
+
}, {
|
|
162
|
+
modelName: 'UserHasPenaltyHistoryModel',
|
|
163
|
+
tableName: 'user_has_penalty_history',
|
|
164
|
+
timestamps: true,
|
|
165
|
+
sequelize: index_1.sequelize,
|
|
166
|
+
});
|
|
167
|
+
exports.default = UserHasPenaltyHistoryModel;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { Model } from 'sequelize';
|
|
2
2
|
import { IUserHasPenaltyModelAttributes } from '../../interfaces/userHasPenaltyInterface';
|
|
3
3
|
import { TUserHasPenaltyModelCreationAttributes } from '../../types/userHasPenaltyType';
|
|
4
|
-
import { PAYMENT_STATUS } from '../../constants';
|
|
4
|
+
import { PAYMENT_STATUS, USER_HAS_PENALTY_TYPE } from '../../constants';
|
|
5
5
|
declare class UserHasPenaltyModel extends Model<IUserHasPenaltyModelAttributes, TUserHasPenaltyModelCreationAttributes> {
|
|
6
6
|
id: string;
|
|
7
7
|
userId: string;
|
|
8
8
|
amount: number;
|
|
9
|
-
dayCount: number;
|
|
10
9
|
penaltyId: string;
|
|
11
10
|
paidAmount: number;
|
|
12
11
|
instituteId?: string;
|
|
13
12
|
status: PAYMENT_STATUS;
|
|
14
13
|
adjustmentAmount: number;
|
|
15
14
|
academicCalendarId?: string;
|
|
16
|
-
|
|
15
|
+
title?: USER_HAS_PENALTY_TYPE;
|
|
16
|
+
type?: USER_HAS_PENALTY_TYPE;
|
|
17
|
+
description?: string;
|
|
17
18
|
createdBy: string;
|
|
18
19
|
updatedBy: string;
|
|
19
20
|
deletedBy: string;
|
|
@@ -4,7 +4,7 @@ const sequelize_1 = require("sequelize");
|
|
|
4
4
|
const index_1 = require("./index");
|
|
5
5
|
class UserHasPenaltyModel extends sequelize_1.Model {
|
|
6
6
|
static associate(models) {
|
|
7
|
-
const { UserModel, InstituteModel, AcademicCalendarModel, PenaltiesModel
|
|
7
|
+
const { UserModel, InstituteModel, AcademicCalendarModel, PenaltiesModel } = models;
|
|
8
8
|
UserHasPenaltyModel.belongsTo(UserModel, {
|
|
9
9
|
foreignKey: {
|
|
10
10
|
name: 'createdBy',
|
|
@@ -71,20 +71,20 @@ class UserHasPenaltyModel extends sequelize_1.Model {
|
|
|
71
71
|
},
|
|
72
72
|
as: 'userHasPenaltyUser',
|
|
73
73
|
});
|
|
74
|
-
UserHasPenaltyModel.belongsTo(StudentFeeCollectionModel, {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
});
|
|
81
|
-
StudentFeeCollectionModel.hasMany(UserHasPenaltyModel, {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
});
|
|
74
|
+
// UserHasPenaltyModel.belongsTo(StudentFeeCollectionModel, {
|
|
75
|
+
// foreignKey: {
|
|
76
|
+
// name: 'studentFeeCollectionId',
|
|
77
|
+
// field: 'student_fee_collection_id',
|
|
78
|
+
// },
|
|
79
|
+
// as: 'userHPenaltyStudentFee',
|
|
80
|
+
// });
|
|
81
|
+
// StudentFeeCollectionModel.hasMany(UserHasPenaltyModel, {
|
|
82
|
+
// foreignKey: {
|
|
83
|
+
// name: 'studentFeeCollectionId',
|
|
84
|
+
// field: 'student_fee_collection_id',
|
|
85
|
+
// },
|
|
86
|
+
// as: 'studentFeeHasPenalty',
|
|
87
|
+
// });
|
|
88
88
|
UserHasPenaltyModel.belongsTo(PenaltiesModel, {
|
|
89
89
|
foreignKey: {
|
|
90
90
|
name: 'penaltyId',
|
|
@@ -117,11 +117,6 @@ UserHasPenaltyModel.init({
|
|
|
117
117
|
type: sequelize_1.DataTypes.INTEGER,
|
|
118
118
|
allowNull: true,
|
|
119
119
|
},
|
|
120
|
-
dayCount: {
|
|
121
|
-
type: sequelize_1.DataTypes.INTEGER,
|
|
122
|
-
allowNull: true,
|
|
123
|
-
field: 'day_count'
|
|
124
|
-
},
|
|
125
120
|
status: {
|
|
126
121
|
type: sequelize_1.DataTypes.STRING,
|
|
127
122
|
allowNull: true,
|
|
@@ -131,11 +126,6 @@ UserHasPenaltyModel.init({
|
|
|
131
126
|
allowNull: true,
|
|
132
127
|
field: 'adjustment_amount'
|
|
133
128
|
},
|
|
134
|
-
studentFeeCollectionId: {
|
|
135
|
-
type: sequelize_1.DataTypes.UUID,
|
|
136
|
-
field: 'student_fee_collection_id',
|
|
137
|
-
allowNull: true,
|
|
138
|
-
},
|
|
139
129
|
userId: {
|
|
140
130
|
type: sequelize_1.DataTypes.UUID,
|
|
141
131
|
field: 'user_id',
|
|
@@ -156,6 +146,18 @@ UserHasPenaltyModel.init({
|
|
|
156
146
|
field: 'academic_calendar_id',
|
|
157
147
|
allowNull: true,
|
|
158
148
|
},
|
|
149
|
+
title: {
|
|
150
|
+
type: sequelize_1.DataTypes.STRING,
|
|
151
|
+
allowNull: true,
|
|
152
|
+
},
|
|
153
|
+
description: {
|
|
154
|
+
type: sequelize_1.DataTypes.STRING,
|
|
155
|
+
allowNull: true
|
|
156
|
+
},
|
|
157
|
+
type: {
|
|
158
|
+
type: sequelize_1.DataTypes.STRING,
|
|
159
|
+
allowNull: true,
|
|
160
|
+
}
|
|
159
161
|
}, {
|
|
160
162
|
modelName: 'UserHasPenaltyModel',
|
|
161
163
|
tableName: 'user_has_penalties',
|
package/dist/types/index.d.ts
CHANGED
|
@@ -186,5 +186,6 @@ export * from './loanEmiType';
|
|
|
186
186
|
export * from './additionalPayoutType';
|
|
187
187
|
export * from './payoutTransactionHistoryType';
|
|
188
188
|
export * from './pastYearRecordType';
|
|
189
|
+
export * from './userHasPenaltyHistoryType';
|
|
189
190
|
export * from './instituteOwnershipHistoryType';
|
|
190
191
|
export * from './institutePartnersType';
|
package/dist/types/index.js
CHANGED
|
@@ -202,5 +202,6 @@ __exportStar(require("./loanEmiType"), exports);
|
|
|
202
202
|
__exportStar(require("./additionalPayoutType"), exports);
|
|
203
203
|
__exportStar(require("./payoutTransactionHistoryType"), exports);
|
|
204
204
|
__exportStar(require("./pastYearRecordType"), exports);
|
|
205
|
+
__exportStar(require("./userHasPenaltyHistoryType"), exports);
|
|
205
206
|
__exportStar(require("./instituteOwnershipHistoryType"), exports);
|
|
206
207
|
__exportStar(require("./institutePartnersType"), exports);
|
package/package.json
CHANGED