@kipicore/dbcore 1.1.109 → 1.1.111
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 +15 -0
- package/dist/constants/errorMessages.js +18 -1
- package/dist/constants/successMessages.d.ts +14 -1
- package/dist/constants/successMessages.js +16 -1
- package/dist/db/psql/migrations/20251128095717-clone_list_model_schema.d.ts +2 -0
- package/dist/db/psql/migrations/20251128095717-clone_list_model_schema.js +142 -0
- package/dist/interfaces/appointmentHistoryInterface.d.ts +0 -1
- package/dist/interfaces/appointmentInterface.d.ts +0 -1
- package/dist/interfaces/cloneListInterface.d.ts +8 -0
- package/dist/interfaces/cloneListInterface.js +2 -0
- package/dist/interfaces/competitionGroupInterface.d.ts +11 -0
- package/dist/interfaces/competitionGroupInterface.js +2 -0
- package/dist/interfaces/index.d.ts +2 -0
- package/dist/interfaces/index.js +2 -0
- package/dist/models/mongodb/appointmentHistoryModel.js +3 -3
- package/dist/models/mongodb/appointmentModel.js +3 -3
- package/dist/models/mongodb/competitionGroupModel.d.ts +4 -0
- package/dist/models/mongodb/competitionGroupModel.js +79 -0
- package/dist/models/mongodb/index.d.ts +1 -0
- package/dist/models/mongodb/index.js +3 -1
- package/dist/models/psql/cloneListModel.d.ts +12 -0
- package/dist/models/psql/cloneListModel.js +75 -0
- package/dist/models/psql/index.d.ts +1 -0
- package/dist/models/psql/index.js +3 -1
- package/dist/types/cloneListType.d.ts +3 -0
- package/dist/types/cloneListType.js +2 -0
- package/dist/types/competitionGroupType.d.ts +2 -0
- package/dist/types/competitionGroupType.js +2 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +2 -0
- package/package.json +1 -1
|
@@ -1176,6 +1176,13 @@ export declare enum COMPETITION_ERROR_MESSAGES {
|
|
|
1176
1176
|
DELETE_FAIL = "Unable to delete competition data!",
|
|
1177
1177
|
NOT_FOUND = "Unable to find competition data!"
|
|
1178
1178
|
}
|
|
1179
|
+
export declare enum COMPETITION_GROUP_ERROR_MESSAGES {
|
|
1180
|
+
CREATE_FAIL = "Unable to save competition group data!",
|
|
1181
|
+
GET_FAIL = "Unable to retrieve competition group data!",
|
|
1182
|
+
UPDATE_FAIL = "Unable to update competition group data!",
|
|
1183
|
+
DELETE_FAIL = "Unable to delete competition group data!",
|
|
1184
|
+
NOT_FOUND = "Unable to find competition group data!"
|
|
1185
|
+
}
|
|
1179
1186
|
export declare enum COMPETITION_USER_ERROR_MESSAGES {
|
|
1180
1187
|
CREATE_FAIL = "Unable to save participants data!",
|
|
1181
1188
|
GET_FAIL = "Unable to retrieve participants data!",
|
|
@@ -1184,3 +1191,11 @@ export declare enum COMPETITION_USER_ERROR_MESSAGES {
|
|
|
1184
1191
|
NOT_FOUND = "Unable to find participants data!",
|
|
1185
1192
|
USER_ALREADY_EXIT = "User already registered!"
|
|
1186
1193
|
}
|
|
1194
|
+
export declare enum CLONE_LIST_ERROR_MESSAGES {
|
|
1195
|
+
NOT_FOUND = "Unable to find clone list!",
|
|
1196
|
+
CREATE_FAIL = "Unable to save clone list!",
|
|
1197
|
+
GET_FAIL = "Unable to retrieve clone list!",
|
|
1198
|
+
UPDATE_FAIL = "Unable to update clone list!",
|
|
1199
|
+
DELETE_FAIL = "Unable to delete clone list!",
|
|
1200
|
+
CLONE_TITLE_EXISTS = "Clone title is already exists!"
|
|
1201
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
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
|
-
exports.COMPETITION_USER_ERROR_MESSAGES = exports.COMPETITION_ERROR_MESSAGES = exports.COMPETITION_EVENT_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;
|
|
5
|
+
exports.CLONE_LIST_ERROR_MESSAGES = exports.COMPETITION_USER_ERROR_MESSAGES = exports.COMPETITION_GROUP_ERROR_MESSAGES = exports.COMPETITION_ERROR_MESSAGES = exports.COMPETITION_EVENT_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
6
|
var ERROR_MESSAGES;
|
|
7
7
|
(function (ERROR_MESSAGES) {
|
|
8
8
|
ERROR_MESSAGES["CREATE_FAIL"] = "Unable to save data in DB!";
|
|
@@ -1304,6 +1304,14 @@ var COMPETITION_ERROR_MESSAGES;
|
|
|
1304
1304
|
COMPETITION_ERROR_MESSAGES["DELETE_FAIL"] = "Unable to delete competition data!";
|
|
1305
1305
|
COMPETITION_ERROR_MESSAGES["NOT_FOUND"] = "Unable to find competition data!";
|
|
1306
1306
|
})(COMPETITION_ERROR_MESSAGES || (exports.COMPETITION_ERROR_MESSAGES = COMPETITION_ERROR_MESSAGES = {}));
|
|
1307
|
+
var COMPETITION_GROUP_ERROR_MESSAGES;
|
|
1308
|
+
(function (COMPETITION_GROUP_ERROR_MESSAGES) {
|
|
1309
|
+
COMPETITION_GROUP_ERROR_MESSAGES["CREATE_FAIL"] = "Unable to save competition group data!";
|
|
1310
|
+
COMPETITION_GROUP_ERROR_MESSAGES["GET_FAIL"] = "Unable to retrieve competition group data!";
|
|
1311
|
+
COMPETITION_GROUP_ERROR_MESSAGES["UPDATE_FAIL"] = "Unable to update competition group data!";
|
|
1312
|
+
COMPETITION_GROUP_ERROR_MESSAGES["DELETE_FAIL"] = "Unable to delete competition group data!";
|
|
1313
|
+
COMPETITION_GROUP_ERROR_MESSAGES["NOT_FOUND"] = "Unable to find competition group data!";
|
|
1314
|
+
})(COMPETITION_GROUP_ERROR_MESSAGES || (exports.COMPETITION_GROUP_ERROR_MESSAGES = COMPETITION_GROUP_ERROR_MESSAGES = {}));
|
|
1307
1315
|
var COMPETITION_USER_ERROR_MESSAGES;
|
|
1308
1316
|
(function (COMPETITION_USER_ERROR_MESSAGES) {
|
|
1309
1317
|
COMPETITION_USER_ERROR_MESSAGES["CREATE_FAIL"] = "Unable to save participants data!";
|
|
@@ -1313,3 +1321,12 @@ var COMPETITION_USER_ERROR_MESSAGES;
|
|
|
1313
1321
|
COMPETITION_USER_ERROR_MESSAGES["NOT_FOUND"] = "Unable to find participants data!";
|
|
1314
1322
|
COMPETITION_USER_ERROR_MESSAGES["USER_ALREADY_EXIT"] = "User already registered!";
|
|
1315
1323
|
})(COMPETITION_USER_ERROR_MESSAGES || (exports.COMPETITION_USER_ERROR_MESSAGES = COMPETITION_USER_ERROR_MESSAGES = {}));
|
|
1324
|
+
var CLONE_LIST_ERROR_MESSAGES;
|
|
1325
|
+
(function (CLONE_LIST_ERROR_MESSAGES) {
|
|
1326
|
+
CLONE_LIST_ERROR_MESSAGES["NOT_FOUND"] = "Unable to find clone list!";
|
|
1327
|
+
CLONE_LIST_ERROR_MESSAGES["CREATE_FAIL"] = "Unable to save clone list!";
|
|
1328
|
+
CLONE_LIST_ERROR_MESSAGES["GET_FAIL"] = "Unable to retrieve clone list!";
|
|
1329
|
+
CLONE_LIST_ERROR_MESSAGES["UPDATE_FAIL"] = "Unable to update clone list!";
|
|
1330
|
+
CLONE_LIST_ERROR_MESSAGES["DELETE_FAIL"] = "Unable to delete clone list!";
|
|
1331
|
+
CLONE_LIST_ERROR_MESSAGES["CLONE_TITLE_EXISTS"] = "Clone title is already exists!";
|
|
1332
|
+
})(CLONE_LIST_ERROR_MESSAGES || (exports.CLONE_LIST_ERROR_MESSAGES = CLONE_LIST_ERROR_MESSAGES = {}));
|
|
@@ -775,7 +775,8 @@ export declare enum APPOINTMENT_SUCCESS_MESSAGES {
|
|
|
775
775
|
CREATE_SUCCESS = "Appointment created successfully",
|
|
776
776
|
GET_SUCCESS = "Appointment retrieved successfully",
|
|
777
777
|
UPDATE_SUCCESS = "Appointment updated successfully",
|
|
778
|
-
DELETE_SUCCESS = "Appointment deleted successfully"
|
|
778
|
+
DELETE_SUCCESS = "Appointment deleted successfully",
|
|
779
|
+
QR_CREATE_SUCCESS = "Qr generated successfully"
|
|
779
780
|
}
|
|
780
781
|
export declare enum APPOINTMENT_HISTORY_SUCCESS_MESSAGES {
|
|
781
782
|
CREATE_SUCCESS = "Appointment history created successfully",
|
|
@@ -801,9 +802,21 @@ export declare enum COMPETITION_SUCCESS_MESSAGES {
|
|
|
801
802
|
UPDATE_SUCCESS = "Competition updated successfully",
|
|
802
803
|
DELETE_SUCCESS = "Competition deleted successfully"
|
|
803
804
|
}
|
|
805
|
+
export declare enum COMPETITION_GROUP_SUCCESS_MESSAGES {
|
|
806
|
+
CREATE_SUCCESS = "Competition group created successfully",
|
|
807
|
+
GET_SUCCESS = "Competition group retrieved successfully",
|
|
808
|
+
UPDATE_SUCCESS = "Competition group updated successfully",
|
|
809
|
+
DELETE_SUCCESS = "Competition group deleted successfully"
|
|
810
|
+
}
|
|
804
811
|
export declare enum COMPETITION_USER_SUCCESS_MESSAGES {
|
|
805
812
|
CREATE_SUCCESS = "participants added successfully",
|
|
806
813
|
GET_SUCCESS = "participants retrieved successfully",
|
|
807
814
|
UPDATE_SUCCESS = "participants updated successfully",
|
|
808
815
|
DELETE_SUCCESS = "participants deleted successfully"
|
|
809
816
|
}
|
|
817
|
+
export declare enum CLONE_LIST_SUCCESS_MESSAGES {
|
|
818
|
+
CREATE_SUCCESS = "Clone list added successfully",
|
|
819
|
+
GET_SUCCESS = "Clone list retrieved successfully",
|
|
820
|
+
UPDATE_SUCCESS = "Clone list updated successfully",
|
|
821
|
+
DELETE_SUCCESS = "Clone list deleted successfully"
|
|
822
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
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
|
-
exports.COMPETITION_USER_SUCCESS_MESSAGES = exports.COMPETITION_SUCCESS_MESSAGES = exports.COMPETITION_EVENT_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;
|
|
5
|
+
exports.CLONE_LIST_SUCCESS_MESSAGES = exports.COMPETITION_USER_SUCCESS_MESSAGES = exports.COMPETITION_GROUP_SUCCESS_MESSAGES = exports.COMPETITION_SUCCESS_MESSAGES = exports.COMPETITION_EVENT_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
6
|
var SUCCESS_MESSAGES;
|
|
7
7
|
(function (SUCCESS_MESSAGES) {
|
|
8
8
|
SUCCESS_MESSAGES["CREATE_SUCCESS"] = "Resource created successfully";
|
|
@@ -903,6 +903,7 @@ var APPOINTMENT_SUCCESS_MESSAGES;
|
|
|
903
903
|
APPOINTMENT_SUCCESS_MESSAGES["GET_SUCCESS"] = "Appointment retrieved successfully";
|
|
904
904
|
APPOINTMENT_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "Appointment updated successfully";
|
|
905
905
|
APPOINTMENT_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "Appointment deleted successfully";
|
|
906
|
+
APPOINTMENT_SUCCESS_MESSAGES["QR_CREATE_SUCCESS"] = "Qr generated successfully";
|
|
906
907
|
})(APPOINTMENT_SUCCESS_MESSAGES || (exports.APPOINTMENT_SUCCESS_MESSAGES = APPOINTMENT_SUCCESS_MESSAGES = {}));
|
|
907
908
|
var APPOINTMENT_HISTORY_SUCCESS_MESSAGES;
|
|
908
909
|
(function (APPOINTMENT_HISTORY_SUCCESS_MESSAGES) {
|
|
@@ -932,6 +933,13 @@ var COMPETITION_SUCCESS_MESSAGES;
|
|
|
932
933
|
COMPETITION_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "Competition updated successfully";
|
|
933
934
|
COMPETITION_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "Competition deleted successfully";
|
|
934
935
|
})(COMPETITION_SUCCESS_MESSAGES || (exports.COMPETITION_SUCCESS_MESSAGES = COMPETITION_SUCCESS_MESSAGES = {}));
|
|
936
|
+
var COMPETITION_GROUP_SUCCESS_MESSAGES;
|
|
937
|
+
(function (COMPETITION_GROUP_SUCCESS_MESSAGES) {
|
|
938
|
+
COMPETITION_GROUP_SUCCESS_MESSAGES["CREATE_SUCCESS"] = "Competition group created successfully";
|
|
939
|
+
COMPETITION_GROUP_SUCCESS_MESSAGES["GET_SUCCESS"] = "Competition group retrieved successfully";
|
|
940
|
+
COMPETITION_GROUP_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "Competition group updated successfully";
|
|
941
|
+
COMPETITION_GROUP_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "Competition group deleted successfully";
|
|
942
|
+
})(COMPETITION_GROUP_SUCCESS_MESSAGES || (exports.COMPETITION_GROUP_SUCCESS_MESSAGES = COMPETITION_GROUP_SUCCESS_MESSAGES = {}));
|
|
935
943
|
var COMPETITION_USER_SUCCESS_MESSAGES;
|
|
936
944
|
(function (COMPETITION_USER_SUCCESS_MESSAGES) {
|
|
937
945
|
COMPETITION_USER_SUCCESS_MESSAGES["CREATE_SUCCESS"] = "participants added successfully";
|
|
@@ -939,3 +947,10 @@ var COMPETITION_USER_SUCCESS_MESSAGES;
|
|
|
939
947
|
COMPETITION_USER_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "participants updated successfully";
|
|
940
948
|
COMPETITION_USER_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "participants deleted successfully";
|
|
941
949
|
})(COMPETITION_USER_SUCCESS_MESSAGES || (exports.COMPETITION_USER_SUCCESS_MESSAGES = COMPETITION_USER_SUCCESS_MESSAGES = {}));
|
|
950
|
+
var CLONE_LIST_SUCCESS_MESSAGES;
|
|
951
|
+
(function (CLONE_LIST_SUCCESS_MESSAGES) {
|
|
952
|
+
CLONE_LIST_SUCCESS_MESSAGES["CREATE_SUCCESS"] = "Clone list added successfully";
|
|
953
|
+
CLONE_LIST_SUCCESS_MESSAGES["GET_SUCCESS"] = "Clone list retrieved successfully";
|
|
954
|
+
CLONE_LIST_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "Clone list updated successfully";
|
|
955
|
+
CLONE_LIST_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "Clone list deleted successfully";
|
|
956
|
+
})(CLONE_LIST_SUCCESS_MESSAGES || (exports.CLONE_LIST_SUCCESS_MESSAGES = CLONE_LIST_SUCCESS_MESSAGES = {}));
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const up = async (queryInterface, Sequelize) => {
|
|
3
|
+
const tableName = 'clone_lists';
|
|
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
|
+
instituteId: {
|
|
17
|
+
type: Sequelize.UUID,
|
|
18
|
+
field: 'institute_id',
|
|
19
|
+
allowNull: true,
|
|
20
|
+
},
|
|
21
|
+
title: {
|
|
22
|
+
type: Sequelize.STRING,
|
|
23
|
+
allowNull: true,
|
|
24
|
+
},
|
|
25
|
+
isClone: {
|
|
26
|
+
type: Sequelize.BOOLEAN,
|
|
27
|
+
allowNull: true,
|
|
28
|
+
field: 'is_clone',
|
|
29
|
+
},
|
|
30
|
+
isDefault: {
|
|
31
|
+
type: Sequelize.BOOLEAN,
|
|
32
|
+
allowNull: true,
|
|
33
|
+
field: 'is_default',
|
|
34
|
+
},
|
|
35
|
+
createdBy: {
|
|
36
|
+
type: Sequelize.UUID,
|
|
37
|
+
allowNull: true,
|
|
38
|
+
field: 'created_by',
|
|
39
|
+
},
|
|
40
|
+
updatedBy: {
|
|
41
|
+
type: Sequelize.UUID,
|
|
42
|
+
allowNull: true,
|
|
43
|
+
field: 'updated_by',
|
|
44
|
+
},
|
|
45
|
+
deletedBy: {
|
|
46
|
+
type: Sequelize.UUID,
|
|
47
|
+
allowNull: true,
|
|
48
|
+
field: 'deleted_by',
|
|
49
|
+
},
|
|
50
|
+
createdAt: {
|
|
51
|
+
type: Sequelize.DATE,
|
|
52
|
+
allowNull: true,
|
|
53
|
+
field: 'created_at',
|
|
54
|
+
},
|
|
55
|
+
updatedAt: {
|
|
56
|
+
type: Sequelize.DATE,
|
|
57
|
+
allowNull: true,
|
|
58
|
+
field: 'updated_at',
|
|
59
|
+
},
|
|
60
|
+
deletedAt: {
|
|
61
|
+
type: Sequelize.DATE,
|
|
62
|
+
allowNull: true,
|
|
63
|
+
field: 'deleted_at',
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
const columns = await queryInterface.describeTable(tableName);
|
|
69
|
+
const columnsToAdd = {
|
|
70
|
+
id: {
|
|
71
|
+
type: Sequelize.UUID,
|
|
72
|
+
defaultValue: Sequelize.UUIDV4,
|
|
73
|
+
allowNull: false,
|
|
74
|
+
primaryKey: true,
|
|
75
|
+
},
|
|
76
|
+
instituteId: {
|
|
77
|
+
type: Sequelize.UUID,
|
|
78
|
+
field: 'institute_id',
|
|
79
|
+
allowNull: true,
|
|
80
|
+
},
|
|
81
|
+
title: {
|
|
82
|
+
type: Sequelize.STRING,
|
|
83
|
+
allowNull: true,
|
|
84
|
+
},
|
|
85
|
+
isClone: {
|
|
86
|
+
type: Sequelize.BOOLEAN,
|
|
87
|
+
allowNull: true,
|
|
88
|
+
field: 'is_clone',
|
|
89
|
+
},
|
|
90
|
+
isDefault: {
|
|
91
|
+
type: Sequelize.BOOLEAN,
|
|
92
|
+
allowNull: true,
|
|
93
|
+
field: 'is_default',
|
|
94
|
+
},
|
|
95
|
+
createdBy: {
|
|
96
|
+
type: Sequelize.UUID,
|
|
97
|
+
allowNull: true,
|
|
98
|
+
field: 'created_by',
|
|
99
|
+
},
|
|
100
|
+
updatedBy: {
|
|
101
|
+
type: Sequelize.UUID,
|
|
102
|
+
allowNull: true,
|
|
103
|
+
field: 'updated_by',
|
|
104
|
+
},
|
|
105
|
+
deletedBy: {
|
|
106
|
+
type: Sequelize.UUID,
|
|
107
|
+
allowNull: true,
|
|
108
|
+
field: 'deleted_by',
|
|
109
|
+
},
|
|
110
|
+
createdAt: {
|
|
111
|
+
type: Sequelize.DATE,
|
|
112
|
+
allowNull: true,
|
|
113
|
+
field: 'created_at',
|
|
114
|
+
},
|
|
115
|
+
updatedAt: {
|
|
116
|
+
type: Sequelize.DATE,
|
|
117
|
+
allowNull: true,
|
|
118
|
+
field: 'updated_at',
|
|
119
|
+
},
|
|
120
|
+
deletedAt: {
|
|
121
|
+
type: Sequelize.DATE,
|
|
122
|
+
allowNull: true,
|
|
123
|
+
field: 'deleted_at',
|
|
124
|
+
},
|
|
125
|
+
};
|
|
126
|
+
for (const column of Object.keys(columnsToAdd)) {
|
|
127
|
+
const columnToAdd = columnsToAdd[column];
|
|
128
|
+
const tableColumn = columnToAdd.field || column;
|
|
129
|
+
if (!columns[tableColumn]) {
|
|
130
|
+
await queryInterface.addColumn(tableName, tableColumn, columnToAdd);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
const down = async (queryInterface) => {
|
|
136
|
+
const tableName = 'clone_lists';
|
|
137
|
+
await queryInterface.dropTable(tableName);
|
|
138
|
+
};
|
|
139
|
+
module.exports = {
|
|
140
|
+
up,
|
|
141
|
+
down,
|
|
142
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Document } from 'mongoose';
|
|
2
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
+
export interface ICompetitionGroupAttributes extends IDefaultAttributes, Document {
|
|
4
|
+
id: string;
|
|
5
|
+
groupName: string;
|
|
6
|
+
groupSize: number;
|
|
7
|
+
competitionEventId: string;
|
|
8
|
+
competitionId: string;
|
|
9
|
+
academicCalendarId: string;
|
|
10
|
+
instituteId: string;
|
|
11
|
+
}
|
|
@@ -152,4 +152,6 @@ export * from './appointmentHistoryInterface';
|
|
|
152
152
|
export * from './incomeExpenseInterface';
|
|
153
153
|
export * from './competitionEventInterface';
|
|
154
154
|
export * from './competitionInterface';
|
|
155
|
+
export * from './competitionGroupInterface';
|
|
155
156
|
export * from './competitionUsersInterface';
|
|
157
|
+
export * from './cloneListInterface';
|
package/dist/interfaces/index.js
CHANGED
|
@@ -168,4 +168,6 @@ __exportStar(require("./appointmentHistoryInterface"), exports);
|
|
|
168
168
|
__exportStar(require("./incomeExpenseInterface"), exports);
|
|
169
169
|
__exportStar(require("./competitionEventInterface"), exports);
|
|
170
170
|
__exportStar(require("./competitionInterface"), exports);
|
|
171
|
+
__exportStar(require("./competitionGroupInterface"), exports);
|
|
171
172
|
__exportStar(require("./competitionUsersInterface"), exports);
|
|
173
|
+
__exportStar(require("./cloneListInterface"), exports);
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
const mongoose_1 = __importStar(require("mongoose"));
|
|
37
|
+
const CompetitionGroupSchema = new mongoose_1.Schema({
|
|
38
|
+
groupName: {
|
|
39
|
+
type: String,
|
|
40
|
+
required: false,
|
|
41
|
+
},
|
|
42
|
+
groupSize: {
|
|
43
|
+
type: Number,
|
|
44
|
+
required: true,
|
|
45
|
+
},
|
|
46
|
+
competitionEventId: {
|
|
47
|
+
type: String,
|
|
48
|
+
required: true,
|
|
49
|
+
},
|
|
50
|
+
competitionId: {
|
|
51
|
+
type: String,
|
|
52
|
+
required: true,
|
|
53
|
+
},
|
|
54
|
+
academicCalendarId: {
|
|
55
|
+
type: String,
|
|
56
|
+
required: true,
|
|
57
|
+
},
|
|
58
|
+
instituteId: {
|
|
59
|
+
type: String,
|
|
60
|
+
required: true,
|
|
61
|
+
},
|
|
62
|
+
createdBy: {
|
|
63
|
+
type: String,
|
|
64
|
+
required: false,
|
|
65
|
+
},
|
|
66
|
+
updatedBy: {
|
|
67
|
+
type: String,
|
|
68
|
+
required: false,
|
|
69
|
+
},
|
|
70
|
+
deletedBy: {
|
|
71
|
+
type: String,
|
|
72
|
+
required: false,
|
|
73
|
+
},
|
|
74
|
+
}, {
|
|
75
|
+
timestamps: true,
|
|
76
|
+
versionKey: false,
|
|
77
|
+
});
|
|
78
|
+
const CompetitionGroupModel = mongoose_1.default.model("competition_groups", CompetitionGroupSchema);
|
|
79
|
+
exports.default = CompetitionGroupModel;
|
|
@@ -43,4 +43,5 @@ export { default as AppointmentModel } from './appointmentModel';
|
|
|
43
43
|
export { default as AppointmentHistoryModel } from './appointmentHistoryModel';
|
|
44
44
|
export { default as CompetitionEventModel } from './competitionEventModel';
|
|
45
45
|
export { default as CompetitionModel } from './competitionModel';
|
|
46
|
+
export { default as CompetitionGroupModel } from './competitionGroupModel';
|
|
46
47
|
export { default as CompetitionUsersModel } from './competitionUsersModel';
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CompetitionUsersModel = exports.CompetitionModel = exports.CompetitionEventModel = exports.AppointmentHistoryModel = exports.AppointmentModel = exports.SeatingArrangementModel = exports.AssignFileModel = exports.ThemeModel = exports.BDayWishModel = exports.AdditionalDetailModel = exports.CanteenModel = exports.WalletTransactionModel = exports.VideoAnalystModel = exports.UserSchoolMetaModel = exports.UserInstituteMetaModel = exports.UserDetailsModel = exports.UniqueNumberCounterModel = exports.TaskManagementModel = exports.SubscriptionPlanModel = exports.SubjectIndexModel = exports.SchoolFeeModel = exports.ReplaceTeacherModel = exports.PlannerModel = exports.PhotosGalleryModel = exports.JobApplyModel = exports.InvoiceModel = exports.InquiryModel = exports.InformationSupportModel = exports.HolidayModel = exports.GenerateIdCardModel = exports.FeedBackModel = exports.FeeReminderTypeModel = exports.ExamModel = exports.ExamHasAnswerSheetModel = exports.ExamGroupModel = exports.EventModel = exports.DashboardManagementModel = exports.DailyBookModel = exports.ColumnModel = exports.CertificatesManagementModel = exports.CertificatesHistoryModel = exports.CareerModel = exports.BlogModel = exports.AttendanceModel = exports.ApprovalRequestModel = exports.connectMongoDb = void 0;
|
|
6
|
+
exports.CompetitionUsersModel = exports.CompetitionGroupModel = exports.CompetitionModel = exports.CompetitionEventModel = exports.AppointmentHistoryModel = exports.AppointmentModel = exports.SeatingArrangementModel = exports.AssignFileModel = exports.ThemeModel = exports.BDayWishModel = exports.AdditionalDetailModel = exports.CanteenModel = exports.WalletTransactionModel = exports.VideoAnalystModel = exports.UserSchoolMetaModel = exports.UserInstituteMetaModel = exports.UserDetailsModel = exports.UniqueNumberCounterModel = exports.TaskManagementModel = exports.SubscriptionPlanModel = exports.SubjectIndexModel = exports.SchoolFeeModel = exports.ReplaceTeacherModel = exports.PlannerModel = exports.PhotosGalleryModel = exports.JobApplyModel = exports.InvoiceModel = exports.InquiryModel = exports.InformationSupportModel = exports.HolidayModel = exports.GenerateIdCardModel = exports.FeedBackModel = exports.FeeReminderTypeModel = exports.ExamModel = exports.ExamHasAnswerSheetModel = exports.ExamGroupModel = exports.EventModel = exports.DashboardManagementModel = exports.DailyBookModel = exports.ColumnModel = exports.CertificatesManagementModel = exports.CertificatesHistoryModel = exports.CareerModel = exports.BlogModel = exports.AttendanceModel = exports.ApprovalRequestModel = exports.connectMongoDb = void 0;
|
|
7
7
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
8
|
const env_1 = require("../../configs/env");
|
|
9
9
|
const transformIdInQueryPlugin_1 = __importDefault(require("./plugin/transformIdInQueryPlugin"));
|
|
@@ -111,5 +111,7 @@ var competitionEventModel_1 = require("./competitionEventModel");
|
|
|
111
111
|
Object.defineProperty(exports, "CompetitionEventModel", { enumerable: true, get: function () { return __importDefault(competitionEventModel_1).default; } });
|
|
112
112
|
var competitionModel_1 = require("./competitionModel");
|
|
113
113
|
Object.defineProperty(exports, "CompetitionModel", { enumerable: true, get: function () { return __importDefault(competitionModel_1).default; } });
|
|
114
|
+
var competitionGroupModel_1 = require("./competitionGroupModel");
|
|
115
|
+
Object.defineProperty(exports, "CompetitionGroupModel", { enumerable: true, get: function () { return __importDefault(competitionGroupModel_1).default; } });
|
|
114
116
|
var competitionUsersModel_1 = require("./competitionUsersModel");
|
|
115
117
|
Object.defineProperty(exports, "CompetitionUsersModel", { enumerable: true, get: function () { return __importDefault(competitionUsersModel_1).default; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Model } from 'sequelize';
|
|
2
|
+
import { ICloneListModelAttributes } from '../../interfaces/cloneListInterface';
|
|
3
|
+
import { TCloneListModelCreationAttributes } from '../../types/cloneListType';
|
|
4
|
+
export declare class CloneListModel extends Model<ICloneListModelAttributes, TCloneListModelCreationAttributes> {
|
|
5
|
+
id: string;
|
|
6
|
+
title: string;
|
|
7
|
+
isClone: boolean;
|
|
8
|
+
isDefault: boolean;
|
|
9
|
+
instituteId: string;
|
|
10
|
+
static associate(models: any): void;
|
|
11
|
+
}
|
|
12
|
+
export default CloneListModel;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CloneListModel = void 0;
|
|
4
|
+
const sequelize_1 = require("sequelize");
|
|
5
|
+
const index_1 = require("./index");
|
|
6
|
+
class CloneListModel extends sequelize_1.Model {
|
|
7
|
+
static associate(models) {
|
|
8
|
+
const { InstituteModel, UserModel } = models;
|
|
9
|
+
CloneListModel.belongsTo(InstituteModel, {
|
|
10
|
+
foreignKey: {
|
|
11
|
+
name: 'instituteId',
|
|
12
|
+
field: 'institute_id',
|
|
13
|
+
},
|
|
14
|
+
as: 'instituteCloneList',
|
|
15
|
+
});
|
|
16
|
+
CloneListModel.belongsTo(UserModel, {
|
|
17
|
+
foreignKey: {
|
|
18
|
+
name: 'createdBy',
|
|
19
|
+
allowNull: true,
|
|
20
|
+
field: 'created_by',
|
|
21
|
+
},
|
|
22
|
+
as: 'createdByUser',
|
|
23
|
+
});
|
|
24
|
+
CloneListModel.belongsTo(UserModel, {
|
|
25
|
+
foreignKey: {
|
|
26
|
+
name: 'updatedBy',
|
|
27
|
+
allowNull: true,
|
|
28
|
+
field: 'updated_by',
|
|
29
|
+
},
|
|
30
|
+
as: 'updatedByUser',
|
|
31
|
+
});
|
|
32
|
+
CloneListModel.belongsTo(UserModel, {
|
|
33
|
+
foreignKey: {
|
|
34
|
+
name: 'deletedBy',
|
|
35
|
+
allowNull: true,
|
|
36
|
+
field: 'deleted_by',
|
|
37
|
+
},
|
|
38
|
+
as: 'deletedByUser',
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.CloneListModel = CloneListModel;
|
|
43
|
+
CloneListModel.init({
|
|
44
|
+
id: {
|
|
45
|
+
type: sequelize_1.DataTypes.UUID,
|
|
46
|
+
defaultValue: sequelize_1.DataTypes.UUIDV4,
|
|
47
|
+
allowNull: false,
|
|
48
|
+
primaryKey: true,
|
|
49
|
+
},
|
|
50
|
+
instituteId: {
|
|
51
|
+
type: sequelize_1.DataTypes.UUID,
|
|
52
|
+
field: 'institute_id',
|
|
53
|
+
allowNull: true,
|
|
54
|
+
},
|
|
55
|
+
title: {
|
|
56
|
+
type: sequelize_1.DataTypes.STRING,
|
|
57
|
+
allowNull: true,
|
|
58
|
+
},
|
|
59
|
+
isClone: {
|
|
60
|
+
type: sequelize_1.DataTypes.BOOLEAN,
|
|
61
|
+
allowNull: true,
|
|
62
|
+
field: 'is_clone',
|
|
63
|
+
},
|
|
64
|
+
isDefault: {
|
|
65
|
+
type: sequelize_1.DataTypes.BOOLEAN,
|
|
66
|
+
allowNull: true,
|
|
67
|
+
field: 'is_default',
|
|
68
|
+
},
|
|
69
|
+
}, {
|
|
70
|
+
modelName: 'CloneListModel',
|
|
71
|
+
tableName: 'clone_lists',
|
|
72
|
+
timestamps: true,
|
|
73
|
+
sequelize: index_1.sequelize,
|
|
74
|
+
});
|
|
75
|
+
exports.default = CloneListModel;
|
|
@@ -111,3 +111,4 @@ export { default as WorkOffDaysModel } from './workOffDaysModel';
|
|
|
111
111
|
export { default as AdvertisementModel } from './advertisementModel';
|
|
112
112
|
export { default as MaintenanceModel } from './maintenanceModel';
|
|
113
113
|
export { default as IncomeExpenseModel } from './incomeExpenseModel';
|
|
114
|
+
export { default as CloneListModel } from './cloneListModel';
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
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.FeesCollectionModel = exports.FeeTypeModel = exports.FeeTypeHasTermsModel = exports.FeeReminderSettingModel = exports.FeeReminderModel = exports.FeeHistoryModel = exports.FeeHistoryDetailsModel = 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.VendorManagementModel = exports.VehicleModel = exports.UserRequiredStepsModel = exports.UserProjectAssessmentOptionModel = exports.UserPayoutModel = exports.UserPayoutHistoryModel = exports.UserPayoutDetailsModel = 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.UserHasFeeTermsModel = exports.UserHasDeviceModel = exports.UserHasCourseModel = exports.UserHasBatchModel = exports.UserHasAnnouncementModel = exports.UserFeeTypeModel = exports.UserFeeTypeByAccountModel = 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.SchoolFeeCollectionModel = exports.RulesRegulationModel = exports.RoleModel = exports.ProjectAssessmentOptionModel = exports.ProductModel = exports.PincodeModel = exports.PdcHistoryModel = exports.PdcChequeModel = exports.PaymentTermsModel = void 0;
|
|
8
|
-
exports.IncomeExpenseModel = exports.MaintenanceModel = exports.AdvertisementModel = exports.WorkOffDaysModel = exports.EntityWiseCalendarModel = exports.CampusModel = exports.LostFoundItemModel = exports.WorkingShiftModel = exports.WorkingDayModel = exports.WalletModel = exports.WalletHistoryModel = void 0;
|
|
8
|
+
exports.CloneListModel = exports.IncomeExpenseModel = exports.MaintenanceModel = exports.AdvertisementModel = exports.WorkOffDaysModel = exports.EntityWiseCalendarModel = exports.CampusModel = exports.LostFoundItemModel = exports.WorkingShiftModel = exports.WorkingDayModel = exports.WalletModel = exports.WalletHistoryModel = void 0;
|
|
9
9
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
10
10
|
const sequelize_1 = require("sequelize");
|
|
11
11
|
Object.defineProperty(exports, "Sequelize", { enumerable: true, get: function () { return sequelize_1.Sequelize; } });
|
|
@@ -317,3 +317,5 @@ var maintenanceModel_1 = require("./maintenanceModel");
|
|
|
317
317
|
Object.defineProperty(exports, "MaintenanceModel", { enumerable: true, get: function () { return __importDefault(maintenanceModel_1).default; } });
|
|
318
318
|
var incomeExpenseModel_1 = require("./incomeExpenseModel");
|
|
319
319
|
Object.defineProperty(exports, "IncomeExpenseModel", { enumerable: true, get: function () { return __importDefault(incomeExpenseModel_1).default; } });
|
|
320
|
+
var cloneListModel_1 = require("./cloneListModel");
|
|
321
|
+
Object.defineProperty(exports, "CloneListModel", { enumerable: true, get: function () { return __importDefault(cloneListModel_1).default; } });
|
package/dist/types/index.d.ts
CHANGED
|
@@ -143,4 +143,6 @@ export * from './appointmentHistoryType';
|
|
|
143
143
|
export * from './incomeExpenseType';
|
|
144
144
|
export * from './competitionEventType';
|
|
145
145
|
export * from './competitionType';
|
|
146
|
+
export * from './competitionGroupType';
|
|
146
147
|
export * from './competitionUsersType';
|
|
148
|
+
export * from './cloneListType';
|
package/dist/types/index.js
CHANGED
|
@@ -159,4 +159,6 @@ __exportStar(require("./appointmentHistoryType"), exports);
|
|
|
159
159
|
__exportStar(require("./incomeExpenseType"), exports);
|
|
160
160
|
__exportStar(require("./competitionEventType"), exports);
|
|
161
161
|
__exportStar(require("./competitionType"), exports);
|
|
162
|
+
__exportStar(require("./competitionGroupType"), exports);
|
|
162
163
|
__exportStar(require("./competitionUsersType"), exports);
|
|
164
|
+
__exportStar(require("./cloneListType"), exports);
|
package/package.json
CHANGED