@kipicore/dbcore 1.1.699 → 1.1.701
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/configs/env.d.ts +0 -2
- package/dist/configs/env.js +0 -4
- package/dist/configs/index.d.ts +0 -2
- package/dist/configs/index.js +0 -2
- package/dist/constants/app.d.ts +54 -34
- package/dist/constants/app.js +64 -42
- package/dist/constants/defaultModelAttributes.js +1 -2
- package/dist/constants/errorMessages.d.ts +1 -20
- package/dist/constants/errorMessages.js +1 -22
- package/dist/constants/successMessages.d.ts +0 -14
- package/dist/constants/successMessages.js +1 -17
- package/dist/db/psql/migrations/20260714095754-create-arena-models.js +642 -0
- package/dist/db/psql/migrations/20260720092201-replace-facility-sports-with-sport-group-data.d.ts +2 -0
- package/dist/db/psql/migrations/20260720092201-replace-facility-sports-with-sport-group-data.js +138 -0
- package/dist/db/psql/migrations/20260722143500-create-school_has_sports.js +71 -0
- package/dist/db/psql/migrations/20260728170500-add_sports_academy_id_to_testimonials.js +21 -0
- package/dist/db/psql/migrations/20260729150700-add_sports_academy_id_to_notifications.js +21 -0
- package/dist/db/psql/migrations/20260804100500-update_facility_master.js +27 -0
- package/dist/helpers/index.d.ts +0 -3
- package/dist/helpers/index.js +0 -3
- package/dist/helpers/utils.d.ts +3 -5
- package/dist/helpers/utils.js +31 -58
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -4
- package/dist/interfaces/ageGroupInterface.d.ts +12 -0
- package/dist/interfaces/assessmentTestInterface.d.ts +23 -0
- package/dist/interfaces/categoriesInterface.d.ts +1 -2
- package/dist/interfaces/equipmentInterface.d.ts +10 -0
- package/dist/interfaces/equipmentInterface.js +2 -0
- package/dist/interfaces/facilityMasterInterface.d.ts +9 -0
- package/dist/interfaces/facilityMasterInterface.js +2 -0
- package/dist/interfaces/index.d.ts +18 -1
- package/dist/interfaces/index.js +19 -1
- package/dist/interfaces/instituteInterface.d.ts +0 -1
- package/dist/interfaces/instituteOwnershipHistoryInterface.d.ts +1 -2
- package/dist/interfaces/institutePartnersInterface.d.ts +1 -2
- package/dist/interfaces/kipiverseContactFormInterface.d.ts +2 -3
- package/dist/interfaces/photosGalleryInterface.d.ts +3 -1
- package/dist/interfaces/schoolHasSportInterface.d.ts +7 -0
- package/dist/interfaces/schoolHasSportInterface.js +2 -0
- package/dist/interfaces/sendNotificationInerface.d.ts +2 -0
- package/dist/interfaces/skillInterface.d.ts +19 -0
- package/dist/interfaces/skillInterface.js +2 -0
- package/dist/interfaces/sportCategoryInterface.d.ts +9 -0
- package/dist/interfaces/sportCategoryInterface.js +2 -0
- package/dist/interfaces/sportDataApproveInterface.d.ts +19 -0
- package/dist/interfaces/sportDataApproveInterface.js +2 -0
- package/dist/interfaces/sportGroupDataInterface.d.ts +7 -0
- package/dist/interfaces/sportGroupDataInterface.js +2 -0
- package/dist/interfaces/sportInfoInterface.d.ts +24 -0
- package/dist/interfaces/sportInfoInterface.js +2 -0
- package/dist/interfaces/sportInterface.d.ts +10 -0
- package/dist/interfaces/sportInterface.js +2 -0
- package/dist/interfaces/sportRoleInterface.d.ts +11 -0
- package/dist/interfaces/sportRoleInterface.js +2 -0
- package/dist/interfaces/sportSubCategoryInterface.d.ts +10 -0
- package/dist/interfaces/sportSubCategoryInterface.js +2 -0
- package/dist/interfaces/sportsAcademyInterface.d.ts +39 -0
- package/dist/interfaces/sportsAcademyInterface.js +2 -0
- package/dist/interfaces/studentSportTestInterface.d.ts +20 -0
- package/dist/interfaces/studentSportTestInterface.js +2 -0
- package/dist/interfaces/subCategoriesInterface.d.ts +1 -2
- package/dist/interfaces/subscriptionPlanInterface.d.ts +1 -2
- package/dist/interfaces/testimonialInterface.d.ts +1 -0
- package/dist/interfaces/unitInterface.d.ts +10 -0
- package/dist/interfaces/unitInterface.js +2 -0
- package/dist/interfaces/userAcademyMetaInterface.d.ts +17 -0
- package/dist/interfaces/userAcademyMetaInterface.js +2 -0
- package/dist/interfaces/userAmenityInterface.d.ts +24 -0
- package/dist/interfaces/userAmenityInterface.js +2 -0
- package/dist/interfaces/userInstituteMetaInterface.d.ts +1 -1
- package/dist/interfaces/userInterface.d.ts +1 -3
- package/dist/interfaces/vendorCompanyMetaInterface.d.ts +2 -5
- package/dist/models/mongodb/additionalDetailsModel.js +1 -1
- package/dist/models/mongodb/advertisementModel.js +1 -1
- package/dist/models/mongodb/appAnalyticsEventModel.js +1 -1
- package/dist/models/mongodb/appointmentHistoryModel.js +1 -1
- package/dist/models/mongodb/appointmentModel.js +1 -1
- package/dist/models/mongodb/approvalRequestModel.js +1 -1
- package/dist/models/mongodb/assessmentTestModel.d.ts +4 -0
- package/dist/models/mongodb/assessmentTestModel.js +72 -0
- package/dist/models/mongodb/assignFileModel.js +1 -1
- package/dist/models/mongodb/attendanceModel.js +1 -1
- package/dist/models/mongodb/bDayWishModel.js +1 -1
- package/dist/models/mongodb/blogModel.js +1 -1
- package/dist/models/mongodb/campusCarnivalModel.js +1 -1
- package/dist/models/mongodb/canteenModel.js +1 -1
- package/dist/models/mongodb/careerModel.js +1 -1
- package/dist/models/mongodb/certificatesHistoryModel.js +1 -1
- package/dist/models/mongodb/certificatesManagementModel.js +1 -1
- package/dist/models/mongodb/columnModel.js +1 -1
- package/dist/models/mongodb/communityGroupMemberModel.js +1 -1
- package/dist/models/mongodb/communityGroupModel.js +1 -1
- package/dist/models/mongodb/communityMessageModel.js +1 -1
- package/dist/models/mongodb/competitionGroupModel.js +1 -1
- package/dist/models/mongodb/competitionModel.js +1 -1
- package/dist/models/mongodb/competitionUsersModel.js +1 -1
- package/dist/models/mongodb/createPollModel.js +1 -1
- package/dist/models/mongodb/dailyBookModel.js +1 -1
- package/dist/models/mongodb/dashboardManagementModel.js +1 -1
- package/dist/models/mongodb/educationOfficerModel.js +1 -1
- package/dist/models/mongodb/eventModel.js +1 -1
- package/dist/models/mongodb/eventTemplatesModel.js +1 -1
- package/dist/models/mongodb/examGroupModel.js +1 -1
- package/dist/models/mongodb/examHasAnswerSheetModel.js +1 -1
- package/dist/models/mongodb/examModel.js +1 -1
- package/dist/models/mongodb/feeConfigModel.js +1 -1
- package/dist/models/mongodb/feeReminderTypeModel.js +1 -1
- package/dist/models/mongodb/feeSubmissionModel.js +1 -1
- package/dist/models/mongodb/feedBackModel.js +1 -1
- package/dist/models/mongodb/fileUploadUserDetailsModel.js +1 -1
- package/dist/models/mongodb/finalMarkSheetModel.js +1 -1
- package/dist/models/mongodb/generateIdCardModel.js +1 -1
- package/dist/models/mongodb/grantAndDonationModel.js +1 -1
- package/dist/models/mongodb/holidayModel.js +1 -1
- package/dist/models/mongodb/index.d.ts +7 -0
- package/dist/models/mongodb/index.js +16 -1
- package/dist/models/mongodb/informationSupportModel.js +1 -1
- package/dist/models/mongodb/inquiryModel.js +1 -1
- package/dist/models/mongodb/instituteFeeModel.js +1 -1
- package/dist/models/mongodb/invoiceModel.js +1 -1
- package/dist/models/mongodb/jobApplyModel.js +1 -1
- package/dist/models/mongodb/kipiverseContactFormModel.js +2 -8
- package/dist/models/mongodb/markSheetConfigurationModel.js +1 -1
- package/dist/models/mongodb/modulePriceModel.js +1 -1
- package/dist/models/mongodb/offerAndDiscountModel.js +1 -1
- package/dist/models/mongodb/onlineLectureModel.js +1 -1
- package/dist/models/mongodb/pastYearRecordTopperModel.js +1 -1
- package/dist/models/mongodb/pdcChequeConfigurationModel.js +1 -1
- package/dist/models/mongodb/photosGalleryModel.js +6 -2
- package/dist/models/mongodb/plannerModel.js +1 -1
- package/dist/models/mongodb/pollSelectionModel.js +1 -1
- package/dist/models/mongodb/productMetaModel.js +2 -10
- package/dist/models/mongodb/replaceTeacherModel.js +1 -1
- package/dist/models/mongodb/rmsAmcContractModel.js +1 -1
- package/dist/models/mongodb/rmsAuditLogModel.js +1 -1
- package/dist/models/mongodb/rmsDigitalResourceAccessModel.js +1 -1
- package/dist/models/mongodb/rmsDigitalResourceModel.js +1 -1
- package/dist/models/mongodb/rmsResourceDetailsModel.d.ts +7 -1
- package/dist/models/mongodb/rmsResourceDetailsModel.js +1 -1
- package/dist/models/mongodb/roleHasPermissionModel.js +1 -1
- package/dist/models/mongodb/schoolFee1Model.js +1 -1
- package/dist/models/mongodb/seatingArrangementModel.js +1 -1
- package/dist/models/mongodb/sheetFieldModel.js +1 -1
- package/dist/models/mongodb/sportDataApproveModel.d.ts +4 -0
- package/dist/models/mongodb/sportDataApproveModel.js +117 -0
- package/dist/models/mongodb/sportInfoModel.d.ts +4 -0
- package/dist/models/mongodb/sportInfoModel.js +72 -0
- package/dist/models/mongodb/sportsAcademyModel.d.ts +4 -0
- package/dist/models/mongodb/sportsAcademyModel.js +89 -0
- package/dist/models/mongodb/studentSportTestModel.d.ts +4 -0
- package/dist/models/mongodb/studentSportTestModel.js +68 -0
- package/dist/models/mongodb/subjectIndexModel.js +1 -1
- package/dist/models/mongodb/subscriptionConfigurationModel.js +1 -1
- package/dist/models/mongodb/subscriptionPlanModel.js +1 -6
- package/dist/models/mongodb/taskManagementModel.js +1 -1
- package/dist/models/mongodb/themeModel.js +1 -1
- package/dist/models/mongodb/ticketRaiseModel.js +1 -1
- package/dist/models/mongodb/uniqueNumberCounterModel.js +1 -1
- package/dist/models/mongodb/userAcademyMetaModel.d.ts +4 -0
- package/dist/models/mongodb/userAcademyMetaModel.js +109 -0
- package/dist/models/mongodb/userAmenityModel.d.ts +4 -0
- package/dist/models/mongodb/userAmenityModel.js +73 -0
- package/dist/models/mongodb/userDetailsModel.js +1 -1
- package/dist/models/mongodb/userFinalResultModel.js +1 -1
- package/dist/models/mongodb/userInstituteMetaModel.js +5 -1
- package/dist/models/mongodb/userSchoolMetaModel.d.ts +6 -1
- package/dist/models/mongodb/userSchoolMetaModel.js +3 -36
- package/dist/models/mongodb/vendorCompanyMetaModel.js +2 -16
- package/dist/models/mongodb/videoAnalystModel.js +1 -1
- package/dist/models/mongodb/walletTransactionModel.js +1 -1
- package/dist/models/psql/SubCategoriesModel.d.ts +1 -2
- package/dist/models/psql/SubCategoriesModel.js +0 -5
- package/dist/models/psql/ageGroupModel.d.ts +22 -0
- package/dist/models/psql/ageGroupModel.js +76 -0
- package/dist/models/psql/categoriesModel.d.ts +1 -2
- package/dist/models/psql/categoriesModel.js +0 -5
- package/dist/models/psql/equipmentModel.d.ts +20 -0
- package/dist/models/psql/equipmentModel.js +57 -0
- package/dist/models/psql/facilityMasterModel.d.ts +18 -0
- package/dist/models/psql/facilityMasterModel.js +74 -0
- package/dist/models/psql/fileStorageModel.js +4 -3
- package/dist/models/psql/index.d.ts +11 -1
- package/dist/models/psql/index.js +25 -4
- package/dist/models/psql/instituteModel.d.ts +0 -1
- package/dist/models/psql/instituteModel.js +2 -5
- package/dist/models/psql/instituteOwnershipHistoryModel.d.ts +1 -2
- package/dist/models/psql/instituteOwnershipHistoryModel.js +3 -8
- package/dist/models/psql/institutePartnersModel.d.ts +1 -2
- package/dist/models/psql/institutePartnersModel.js +3 -8
- package/dist/models/psql/schoolHasSportModel.d.ts +17 -0
- package/dist/models/psql/schoolHasSportModel.js +76 -0
- package/dist/models/psql/sendNotificationModel.d.ts +1 -0
- package/dist/models/psql/sendNotificationModel.js +5 -0
- package/dist/models/psql/skillModel.d.ts +25 -0
- package/dist/models/psql/skillModel.js +99 -0
- package/dist/models/psql/sportCategoryModel.d.ts +19 -0
- package/dist/models/psql/sportCategoryModel.js +53 -0
- package/dist/models/psql/sportGroupDataModel.d.ts +13 -0
- package/dist/models/psql/sportGroupDataModel.js +64 -0
- package/dist/models/psql/sportModel.d.ts +20 -0
- package/dist/models/psql/sportModel.js +58 -0
- package/dist/models/psql/sportRoleModel.d.ts +21 -0
- package/dist/models/psql/sportRoleModel.js +71 -0
- package/dist/models/psql/sportSubCategoryModel.d.ts +20 -0
- package/dist/models/psql/sportSubCategoryModel.js +75 -0
- package/dist/models/psql/testimonialModel.d.ts +1 -0
- package/dist/models/psql/testimonialModel.js +8 -7
- package/dist/models/psql/unitModel.d.ts +20 -0
- package/dist/models/psql/unitModel.js +57 -0
- package/dist/models/psql/userModel.d.ts +1 -3
- package/dist/models/psql/userModel.js +2 -2
- package/dist/types/ageGroupType.d.ts +2 -0
- package/dist/types/ageGroupType.js +2 -0
- package/dist/types/assessmentTestType.d.ts +2 -0
- package/dist/types/assessmentTestType.js +2 -0
- package/dist/types/commonType.d.ts +1 -29
- package/dist/types/equipmentType.d.ts +2 -0
- package/dist/types/equipmentType.js +2 -0
- package/dist/types/facilityMasterType.d.ts +3 -0
- package/dist/types/facilityMasterType.js +2 -0
- package/dist/types/index.d.ts +18 -1
- package/dist/types/index.js +19 -1
- package/dist/types/schoolHasSportType.d.ts +2 -0
- package/dist/types/schoolHasSportType.js +2 -0
- package/dist/types/skillType.d.ts +2 -0
- package/dist/types/skillType.js +2 -0
- package/dist/types/sportCategoryType.d.ts +2 -0
- package/dist/types/sportCategoryType.js +2 -0
- package/dist/types/sportDataApproveType.d.ts +2 -0
- package/dist/types/sportDataApproveType.js +2 -0
- package/dist/types/sportGroupDataType.d.ts +3 -0
- package/dist/types/sportGroupDataType.js +2 -0
- package/dist/types/sportInfoType.d.ts +2 -0
- package/dist/types/sportInfoType.js +2 -0
- package/dist/types/sportRoleType.d.ts +2 -0
- package/dist/types/sportRoleType.js +2 -0
- package/dist/types/sportSubCategoryType.d.ts +2 -0
- package/dist/types/sportSubCategoryType.js +2 -0
- package/dist/types/sportType.d.ts +2 -0
- package/dist/types/sportType.js +2 -0
- package/dist/types/sportsAcademyType.d.ts +2 -0
- package/dist/types/sportsAcademyType.js +2 -0
- package/dist/types/studentSportTestType.d.ts +2 -0
- package/dist/types/studentSportTestType.js +2 -0
- package/dist/types/unitType.d.ts +2 -0
- package/dist/types/unitType.js +2 -0
- package/dist/types/userAcademyMetaType.d.ts +2 -0
- package/dist/types/userAcademyMetaType.js +2 -0
- package/dist/types/userAmenityType.d.ts +2 -0
- package/dist/types/userAmenityType.js +2 -0
- package/package.json +2 -10
- package/dist/commonValidator/commandValidator.d.ts +0 -27
- package/dist/commonValidator/commandValidator.js +0 -225
- package/dist/commonValidator/index.d.ts +0 -3
- package/dist/commonValidator/index.js +0 -24
- package/dist/commonValidator/joiCommonValidator.d.ts +0 -12
- package/dist/commonValidator/joiCommonValidator.js +0 -47
- package/dist/commonValidator/joiSchemaBuilder.d.ts +0 -6
- package/dist/commonValidator/joiSchemaBuilder.js +0 -70
- package/dist/configs/logger.d.ts +0 -2
- package/dist/configs/logger.js +0 -44
- package/dist/configs/redisConfig.d.ts +0 -4
- package/dist/configs/redisConfig.js +0 -32
- package/dist/db/psql/migrations/20260714111425-change_status_enum_to_string_in_institutes.js +0 -46
- package/dist/db/psql/migrations/20260714131500-add_note_to_institutes.js +0 -20
- package/dist/db/psql/migrations/20260715150000-create-ai-model-keys.js +0 -156
- package/dist/db/psql/migrations/20260717071354-add_type_to_categories.js +0 -19
- package/dist/db/psql/migrations/20260717072745-add_type_to_sub_categories.d.ts +0 -2
- package/dist/db/psql/migrations/20260717072745-add_type_to_sub_categories.js +0 -19
- package/dist/db/psql/migrations/20260717095051-add_status_to_users.d.ts +0 -2
- package/dist/db/psql/migrations/20260717095051-add_status_to_users.js +0 -19
- package/dist/db/psql/migrations/20260721000001-add-deleted-at-to-rms-maintenance-activities.d.ts +0 -2
- package/dist/db/psql/migrations/20260721000001-add-deleted-at-to-rms-maintenance-activities.js +0 -12
- package/dist/db/psql/migrations/20260721000002-change-uploaded-from-enum-to-string-in-file-storage.d.ts +0 -2
- package/dist/db/psql/migrations/20260721000002-change-uploaded-from-enum-to-string-in-file-storage.js +0 -42
- package/dist/db/psql/migrations/20260722130134-add_portfolio_theme_to_users.d.ts +0 -2
- package/dist/db/psql/migrations/20260722130134-add_portfolio_theme_to_users.js +0 -22
- package/dist/db/psql/migrations/20260727123149-add_vendorCompanyId_to_institute_ownership_histories.js +0 -23
- package/dist/db/psql/migrations/20260727130802-add_vendorCompanyId_to_institute_partners.d.ts +0 -2
- package/dist/db/psql/migrations/20260727130802-add_vendorCompanyId_to_institute_partners.js +0 -23
- package/dist/db/psql/migrations/20260727132312-make_instituteId_and_vendorCompanyId_optional_in_institute_partners.d.ts +0 -2
- package/dist/db/psql/migrations/20260727132312-make_instituteId_and_vendorCompanyId_optional_in_institute_partners.js +0 -28
- package/dist/db/psql/migrations/20260727132747-make_instituteId_and_vendorCompanyId_optional_in_institute_ownership_histories.d.ts +0 -2
- package/dist/db/psql/migrations/20260727132747-make_instituteId_and_vendorCompanyId_optional_in_institute_ownership_histories.js +0 -25
- package/dist/db/psql/migrations/20260729055118-institutePartners.d.ts +0 -2
- package/dist/db/psql/migrations/20260729055118-institutePartners.js +0 -28
- package/dist/db/psql/migrations/20260729055121-instituteOwnershipHistory.d.ts +0 -2
- package/dist/db/psql/migrations/20260729055121-instituteOwnershipHistory.js +0 -25
- package/dist/helpers/sendEmail.d.ts +0 -3
- package/dist/helpers/sendEmail.js +0 -117
- package/dist/helpers/sendNotification.d.ts +0 -4
- package/dist/helpers/sendNotification.js +0 -34
- package/dist/helpers/sendSMS.d.ts +0 -5
- package/dist/helpers/sendSMS.js +0 -34
- package/dist/interfaces/aiModelKeysInterface.d.ts +0 -15
- package/dist/models/psql/aiModelKeysModel.d.ts +0 -20
- package/dist/models/psql/aiModelKeysModel.js +0 -70
- package/dist/queues/emailQueue.d.ts +0 -3
- package/dist/queues/emailQueue.js +0 -22
- package/dist/queues/emailWorker.d.ts +0 -3
- package/dist/queues/emailWorker.js +0 -33
- package/dist/queues/index.d.ts +0 -2
- package/dist/queues/index.js +0 -18
- package/dist/types/aiModelKeysType.d.ts +0 -3
- /package/dist/db/psql/migrations/{20260714111425-change_status_enum_to_string_in_institutes.d.ts → 20260714095754-create-arena-models.d.ts} +0 -0
- /package/dist/db/psql/migrations/{20260714131500-add_note_to_institutes.d.ts → 20260722143500-create-school_has_sports.d.ts} +0 -0
- /package/dist/db/psql/migrations/{20260715150000-create-ai-model-keys.d.ts → 20260728170500-add_sports_academy_id_to_testimonials.d.ts} +0 -0
- /package/dist/db/psql/migrations/{20260727123149-add_vendorCompanyId_to_institute_ownership_histories.d.ts → 20260729150700-add_sports_academy_id_to_notifications.d.ts} +0 -0
- /package/dist/db/psql/migrations/{20260717071354-add_type_to_categories.d.ts → 20260804100500-update_facility_master.d.ts} +0 -0
- /package/dist/interfaces/{aiModelKeysInterface.js → ageGroupInterface.js} +0 -0
- /package/dist/{types/aiModelKeysType.js → interfaces/assessmentTestInterface.js} +0 -0
|
@@ -0,0 +1,117 @@
|
|
|
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 app_1 = require("../../constants/app");
|
|
38
|
+
const sportDataApproveSchema = new mongoose_1.Schema({
|
|
39
|
+
moduleType: {
|
|
40
|
+
type: String,
|
|
41
|
+
enum: Object.values(app_1.SPORT_DATA_MODULE),
|
|
42
|
+
required: true,
|
|
43
|
+
},
|
|
44
|
+
action: {
|
|
45
|
+
type: String,
|
|
46
|
+
enum: Object.values(app_1.SPORT_DATA_ACTION),
|
|
47
|
+
required: true,
|
|
48
|
+
},
|
|
49
|
+
status: {
|
|
50
|
+
type: String,
|
|
51
|
+
enum: Object.values(app_1.SPORT_DATA_APPROVAL_STATUS),
|
|
52
|
+
default: app_1.SPORT_DATA_APPROVAL_STATUS.NOT_SEEN,
|
|
53
|
+
required: true,
|
|
54
|
+
},
|
|
55
|
+
payload: {
|
|
56
|
+
type: mongoose_1.default.Schema.Types.Mixed,
|
|
57
|
+
required: true,
|
|
58
|
+
},
|
|
59
|
+
acceptedData: {
|
|
60
|
+
type: mongoose_1.default.Schema.Types.Mixed,
|
|
61
|
+
required: false,
|
|
62
|
+
},
|
|
63
|
+
referenceId: {
|
|
64
|
+
type: String,
|
|
65
|
+
required: false,
|
|
66
|
+
},
|
|
67
|
+
reason: {
|
|
68
|
+
type: String,
|
|
69
|
+
required: false,
|
|
70
|
+
},
|
|
71
|
+
createdBy: {
|
|
72
|
+
type: String,
|
|
73
|
+
required: false,
|
|
74
|
+
},
|
|
75
|
+
reviewedBy: {
|
|
76
|
+
type: String,
|
|
77
|
+
required: false,
|
|
78
|
+
},
|
|
79
|
+
reviewTime: {
|
|
80
|
+
type: Date,
|
|
81
|
+
required: false,
|
|
82
|
+
},
|
|
83
|
+
acceptedBy: {
|
|
84
|
+
type: String,
|
|
85
|
+
required: false,
|
|
86
|
+
},
|
|
87
|
+
acceptedTime: {
|
|
88
|
+
type: Date,
|
|
89
|
+
required: false,
|
|
90
|
+
},
|
|
91
|
+
rejectedBy: {
|
|
92
|
+
type: String,
|
|
93
|
+
required: false,
|
|
94
|
+
},
|
|
95
|
+
rejectedTime: {
|
|
96
|
+
type: Date,
|
|
97
|
+
required: false,
|
|
98
|
+
},
|
|
99
|
+
updatedBy: {
|
|
100
|
+
type: String,
|
|
101
|
+
required: false,
|
|
102
|
+
},
|
|
103
|
+
deletedBy: {
|
|
104
|
+
type: String,
|
|
105
|
+
required: false,
|
|
106
|
+
},
|
|
107
|
+
deletedAt: {
|
|
108
|
+
type: Date,
|
|
109
|
+
default: null,
|
|
110
|
+
},
|
|
111
|
+
}, {
|
|
112
|
+
timestamps: true,
|
|
113
|
+
versionKey: false,
|
|
114
|
+
});
|
|
115
|
+
sportDataApproveSchema.index({ moduleType: 1, status: 1 });
|
|
116
|
+
const SportDataApproveModel = mongoose_1.default.model('sportDataApprove', sportDataApproveSchema, 'sport_data_approves');
|
|
117
|
+
exports.default = SportDataApproveModel;
|
|
@@ -0,0 +1,72 @@
|
|
|
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 app_1 = require("../../constants/app");
|
|
38
|
+
const sportInfoSkillSchema = new mongoose_1.Schema({
|
|
39
|
+
ageGroupId: { type: String, required: true },
|
|
40
|
+
skillId: { type: String, required: true },
|
|
41
|
+
minValue: { type: Number, required: false },
|
|
42
|
+
maxValue: { type: Number, required: false },
|
|
43
|
+
value: { type: String, required: false },
|
|
44
|
+
}, { _id: false });
|
|
45
|
+
const sportInfoSchema = new mongoose_1.Schema({
|
|
46
|
+
sportId: { type: String, required: true, index: true },
|
|
47
|
+
setupGuide: { type: String, required: false },
|
|
48
|
+
images: { type: [String], required: false, default: [] },
|
|
49
|
+
documents: { type: [String], required: false, default: [] },
|
|
50
|
+
categories: { type: [String], required: false, default: [] },
|
|
51
|
+
subCategories: { type: [String], required: false, default: [] },
|
|
52
|
+
equipments: { type: [String], required: false, default: [] },
|
|
53
|
+
amenitiesNeeded: { type: [String], required: false, default: [] },
|
|
54
|
+
infrastructure: { type: [String], required: false, default: [] },
|
|
55
|
+
specificTests: { type: [String], required: false, default: [] },
|
|
56
|
+
skills: { type: [sportInfoSkillSchema], required: false, default: [] },
|
|
57
|
+
status: {
|
|
58
|
+
type: String,
|
|
59
|
+
enum: Object.values(app_1.COMMAN_STATUS),
|
|
60
|
+
required: true,
|
|
61
|
+
default: app_1.COMMAN_STATUS.ACTIVE,
|
|
62
|
+
},
|
|
63
|
+
createdBy: { type: String, required: false },
|
|
64
|
+
updatedBy: { type: String, required: false },
|
|
65
|
+
deletedBy: { type: String, required: false },
|
|
66
|
+
deletedAt: { type: Date, default: null },
|
|
67
|
+
}, {
|
|
68
|
+
timestamps: true,
|
|
69
|
+
versionKey: false,
|
|
70
|
+
});
|
|
71
|
+
const SportInfoModel = mongoose_1.default.model('sportInfo', sportInfoSchema, 'sport_infos');
|
|
72
|
+
exports.default = SportInfoModel;
|
|
@@ -0,0 +1,89 @@
|
|
|
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 app_1 = require("../../constants/app");
|
|
38
|
+
const sportsAcademySchema = new mongoose_1.Schema({
|
|
39
|
+
name: { type: String, required: true },
|
|
40
|
+
globalId: { type: String, required: false },
|
|
41
|
+
email: { type: String, required: true },
|
|
42
|
+
websiteUrl: { type: String, required: false },
|
|
43
|
+
description: { type: String, required: false },
|
|
44
|
+
addressLine1: { type: String, required: false },
|
|
45
|
+
addressLine2: { type: String, required: false },
|
|
46
|
+
pinCode: { type: String, required: false },
|
|
47
|
+
city: { type: Number, required: false },
|
|
48
|
+
state: { type: Number, required: false },
|
|
49
|
+
country: { type: Number, required: false },
|
|
50
|
+
contactPerson: { type: String, required: false },
|
|
51
|
+
mobiles: [
|
|
52
|
+
{
|
|
53
|
+
name: { type: String, required: true },
|
|
54
|
+
mobile: { type: String, required: true },
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
youtube: { type: String, required: false },
|
|
58
|
+
instagram: { type: String, required: false },
|
|
59
|
+
facebook: { type: String, required: false },
|
|
60
|
+
whatsapp: { type: String, required: false },
|
|
61
|
+
ownerId: { type: String, required: false },
|
|
62
|
+
img: { type: String, required: false },
|
|
63
|
+
bannerImg: { type: String, required: false },
|
|
64
|
+
status: {
|
|
65
|
+
type: String,
|
|
66
|
+
enum: Object.values(app_1.COMMAN_STATUS),
|
|
67
|
+
default: app_1.COMMAN_STATUS.ACTIVE,
|
|
68
|
+
required: true,
|
|
69
|
+
},
|
|
70
|
+
createdBy: { type: String, required: false },
|
|
71
|
+
updatedBy: { type: String, required: false },
|
|
72
|
+
deletedBy: { type: String, required: false },
|
|
73
|
+
deletedAt: { type: Date, default: null },
|
|
74
|
+
sportsIds: { type: [String], required: false },
|
|
75
|
+
sportsHistroy: [
|
|
76
|
+
{
|
|
77
|
+
sportId: { type: Number, required: true },
|
|
78
|
+
startDate: { type: Date, required: true },
|
|
79
|
+
endDate: { type: Date, required: false },
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
amenitiesIds: { type: [String], required: false },
|
|
83
|
+
}, {
|
|
84
|
+
timestamps: true,
|
|
85
|
+
versionKey: false,
|
|
86
|
+
virtuals: true,
|
|
87
|
+
});
|
|
88
|
+
const SportsAcademyModel = mongoose_1.default.model('sportsacademy', sportsAcademySchema);
|
|
89
|
+
exports.default = SportsAcademyModel;
|
|
@@ -0,0 +1,68 @@
|
|
|
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 app_1 = require("../../constants/app");
|
|
38
|
+
const studentSportTestResultSchema = new mongoose_1.Schema({
|
|
39
|
+
skillId: { type: String, required: false },
|
|
40
|
+
title: { type: String, required: false },
|
|
41
|
+
value: { type: mongoose_1.Schema.Types.Mixed, required: false },
|
|
42
|
+
unit: { type: String, required: false },
|
|
43
|
+
remarks: { type: String, required: false },
|
|
44
|
+
}, { _id: false });
|
|
45
|
+
const studentSportTestSchema = new mongoose_1.Schema({
|
|
46
|
+
userId: { type: String, required: true },
|
|
47
|
+
instituteId: { type: String, required: false },
|
|
48
|
+
academicCalendarId: { type: String, required: false },
|
|
49
|
+
userMetaId: { type: String, required: false },
|
|
50
|
+
status: {
|
|
51
|
+
type: String,
|
|
52
|
+
enum: Object.values(app_1.STUDENT_SPORT_TEST_STATUS),
|
|
53
|
+
default: app_1.STUDENT_SPORT_TEST_STATUS.PENDING,
|
|
54
|
+
required: true,
|
|
55
|
+
},
|
|
56
|
+
testId: { type: String, required: false, default: null },
|
|
57
|
+
results: { type: [studentSportTestResultSchema], required: false, default: [] },
|
|
58
|
+
createdBy: { type: String, required: false },
|
|
59
|
+
updatedBy: { type: String, required: false },
|
|
60
|
+
deletedBy: { type: String, required: false },
|
|
61
|
+
deletedAt: { type: Date, default: null },
|
|
62
|
+
}, {
|
|
63
|
+
timestamps: true,
|
|
64
|
+
versionKey: false,
|
|
65
|
+
virtuals: true,
|
|
66
|
+
});
|
|
67
|
+
const StudentSportTestModel = mongoose_1.default.model('studentSportTest', studentSportTestSchema);
|
|
68
|
+
exports.default = StudentSportTestModel;
|
|
@@ -636,7 +636,7 @@ SubjectIndexSchema.index({
|
|
|
636
636
|
type: 1,
|
|
637
637
|
subject: 1,
|
|
638
638
|
});
|
|
639
|
-
const SubjectIndexModel = mongoose_1.default.
|
|
639
|
+
const SubjectIndexModel = mongoose_1.default.model('subject_indexes', SubjectIndexSchema);
|
|
640
640
|
// (async () => {
|
|
641
641
|
// await SubjectIndexModel.syncIndexes();
|
|
642
642
|
// })(); // Rebuilds indexes in DB based on schema
|
|
@@ -65,5 +65,5 @@ const subscriptionConfigurationModelSchema = new mongoose_1.Schema({
|
|
|
65
65
|
timestamps: true,
|
|
66
66
|
versionKey: false,
|
|
67
67
|
});
|
|
68
|
-
const SubscriptionConfigurationModel = mongoose_1.default.
|
|
68
|
+
const SubscriptionConfigurationModel = mongoose_1.default.model('subscription_configuration', subscriptionConfigurationModelSchema);
|
|
69
69
|
exports.default = SubscriptionConfigurationModel;
|
|
@@ -153,14 +153,9 @@ const subscriptionPlanModelSchema = new mongoose_1.Schema({
|
|
|
153
153
|
type: Number,
|
|
154
154
|
required: false,
|
|
155
155
|
},
|
|
156
|
-
sellStatus: {
|
|
157
|
-
type: String,
|
|
158
|
-
default: app_1.PLAN_SELL_STATUS.AVAILABLE,
|
|
159
|
-
required: false,
|
|
160
|
-
},
|
|
161
156
|
}, {
|
|
162
157
|
timestamps: true,
|
|
163
158
|
versionKey: false,
|
|
164
159
|
});
|
|
165
|
-
const SubscriptionPlanModel = mongoose_1.default.
|
|
160
|
+
const SubscriptionPlanModel = mongoose_1.default.model('subscription_plans', subscriptionPlanModelSchema);
|
|
166
161
|
exports.default = SubscriptionPlanModel;
|
|
@@ -166,5 +166,5 @@ TaskManagementModelSchema.pre('updateMany', async function (next) {
|
|
|
166
166
|
throw error;
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
|
-
const TaskManagementModel = mongoose_1.default.
|
|
169
|
+
const TaskManagementModel = mongoose_1.default.model('task_managements', TaskManagementModelSchema);
|
|
170
170
|
exports.default = TaskManagementModel;
|
|
@@ -64,5 +64,5 @@ const ThemeSchema = new mongoose_1.Schema({
|
|
|
64
64
|
timestamps: true,
|
|
65
65
|
versionKey: false,
|
|
66
66
|
});
|
|
67
|
-
const ThemeModel = mongoose_1.default.
|
|
67
|
+
const ThemeModel = mongoose_1.default.model('themes', ThemeSchema);
|
|
68
68
|
exports.default = ThemeModel;
|
|
@@ -102,5 +102,5 @@ const TicketRaiseSchema = new mongoose_1.Schema({
|
|
|
102
102
|
timestamps: true,
|
|
103
103
|
versionKey: false,
|
|
104
104
|
});
|
|
105
|
-
const TicketRaiseModel = mongoose_1.default.
|
|
105
|
+
const TicketRaiseModel = mongoose_1.default.model('ticket_raise', TicketRaiseSchema);
|
|
106
106
|
exports.default = TicketRaiseModel;
|
|
@@ -79,5 +79,5 @@ const uniqueNumberCounterSchema = new mongoose_1.Schema({
|
|
|
79
79
|
timestamps: true,
|
|
80
80
|
versionKey: false,
|
|
81
81
|
});
|
|
82
|
-
const UniqueNumberCounterModel = mongoose_1.default.
|
|
82
|
+
const UniqueNumberCounterModel = mongoose_1.default.model('uniqueNumberCounter', uniqueNumberCounterSchema);
|
|
83
83
|
exports.default = UniqueNumberCounterModel;
|
|
@@ -0,0 +1,109 @@
|
|
|
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 app_1 = require("../../constants/app");
|
|
38
|
+
const userAcademyMetaSchema = new mongoose_1.Schema({
|
|
39
|
+
userId: {
|
|
40
|
+
type: String,
|
|
41
|
+
required: true,
|
|
42
|
+
},
|
|
43
|
+
sportsAcademyId: {
|
|
44
|
+
type: String,
|
|
45
|
+
required: true,
|
|
46
|
+
},
|
|
47
|
+
userType: {
|
|
48
|
+
type: String,
|
|
49
|
+
enum: Object.values(app_1.USER_TYPES),
|
|
50
|
+
required: true,
|
|
51
|
+
},
|
|
52
|
+
status: {
|
|
53
|
+
type: String,
|
|
54
|
+
enum: Object.values(app_1.USER_ACADEMY_META_STATUS),
|
|
55
|
+
default: app_1.USER_ACADEMY_META_STATUS.PENDING,
|
|
56
|
+
},
|
|
57
|
+
sportsIds: {
|
|
58
|
+
type: [String],
|
|
59
|
+
default: [],
|
|
60
|
+
},
|
|
61
|
+
joiningDate: {
|
|
62
|
+
type: Date,
|
|
63
|
+
required: false,
|
|
64
|
+
},
|
|
65
|
+
endTime: {
|
|
66
|
+
type: Date,
|
|
67
|
+
required: false,
|
|
68
|
+
},
|
|
69
|
+
rollNumber: {
|
|
70
|
+
type: String,
|
|
71
|
+
required: false,
|
|
72
|
+
},
|
|
73
|
+
designation: {
|
|
74
|
+
type: String,
|
|
75
|
+
required: false,
|
|
76
|
+
},
|
|
77
|
+
additionalField: {
|
|
78
|
+
type: Object,
|
|
79
|
+
},
|
|
80
|
+
createdBy: {
|
|
81
|
+
type: String,
|
|
82
|
+
},
|
|
83
|
+
updatedBy: {
|
|
84
|
+
type: String,
|
|
85
|
+
},
|
|
86
|
+
deletedBy: {
|
|
87
|
+
type: String,
|
|
88
|
+
},
|
|
89
|
+
deletedAt: {
|
|
90
|
+
type: Date,
|
|
91
|
+
default: null,
|
|
92
|
+
},
|
|
93
|
+
isActive: {
|
|
94
|
+
type: String,
|
|
95
|
+
enum: Object.values(app_1.COMMAN_STATUS),
|
|
96
|
+
default: app_1.COMMAN_STATUS.ACTIVE,
|
|
97
|
+
},
|
|
98
|
+
}, {
|
|
99
|
+
timestamps: true,
|
|
100
|
+
versionKey: false,
|
|
101
|
+
});
|
|
102
|
+
userAcademyMetaSchema.index({
|
|
103
|
+
sportsAcademyId: 1,
|
|
104
|
+
userId: 1,
|
|
105
|
+
userType: 1,
|
|
106
|
+
status: 1,
|
|
107
|
+
});
|
|
108
|
+
const UserAcademyMeta = mongoose_1.default.model('userAcademyMeta', userAcademyMetaSchema);
|
|
109
|
+
exports.default = UserAcademyMeta;
|
|
@@ -0,0 +1,73 @@
|
|
|
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 app_1 = require("../../constants/app");
|
|
38
|
+
const userAmenitySchema = new mongoose_1.Schema({
|
|
39
|
+
name: { type: String, required: true },
|
|
40
|
+
description: { type: String, required: false },
|
|
41
|
+
addressLine1: { type: String, required: false },
|
|
42
|
+
addressLine2: { type: String, required: false },
|
|
43
|
+
pinCode: { type: String, required: false },
|
|
44
|
+
city: { type: Number, required: false },
|
|
45
|
+
state: { type: Number, required: false },
|
|
46
|
+
country: { type: Number, required: false },
|
|
47
|
+
images: { type: [String], required: false },
|
|
48
|
+
ownerId: { type: String, required: false },
|
|
49
|
+
status: {
|
|
50
|
+
type: String,
|
|
51
|
+
enum: Object.values(app_1.AMENITY_STATUS),
|
|
52
|
+
default: app_1.AMENITY_STATUS.ACTIVE,
|
|
53
|
+
required: true,
|
|
54
|
+
},
|
|
55
|
+
facilities: [
|
|
56
|
+
{
|
|
57
|
+
facilityMasterId: { type: String, required: true },
|
|
58
|
+
count: { type: Number, required: true },
|
|
59
|
+
description: { type: String, required: false },
|
|
60
|
+
sportsIds: { type: [String], required: false },
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
createdBy: { type: String, required: false },
|
|
64
|
+
updatedBy: { type: String, required: false },
|
|
65
|
+
deletedBy: { type: String, required: false },
|
|
66
|
+
deletedAt: { type: Date, default: null },
|
|
67
|
+
}, {
|
|
68
|
+
timestamps: true,
|
|
69
|
+
versionKey: false,
|
|
70
|
+
virtuals: true,
|
|
71
|
+
});
|
|
72
|
+
const UserAmenityModel = mongoose_1.default.model('useramenity', userAmenitySchema);
|
|
73
|
+
exports.default = UserAmenityModel;
|
|
@@ -532,7 +532,7 @@ const userDetailsSchema = new mongoose_1.Schema({
|
|
|
532
532
|
userDetailsSchema.index({
|
|
533
533
|
userId: 1,
|
|
534
534
|
});
|
|
535
|
-
const userDetails = mongoose_1.default.
|
|
535
|
+
const userDetails = mongoose_1.default.model('userDetails', userDetailsSchema);
|
|
536
536
|
// (async () => {
|
|
537
537
|
// await userDetails.syncIndexes();
|
|
538
538
|
// })();
|
|
@@ -72,5 +72,5 @@ const userFinalResultSchema = new mongoose_1.Schema({
|
|
|
72
72
|
timestamps: true,
|
|
73
73
|
versionKey: false,
|
|
74
74
|
});
|
|
75
|
-
const UserFinalResultModel = mongoose_1.default.
|
|
75
|
+
const UserFinalResultModel = mongoose_1.default.model('user_final_result', userFinalResultSchema);
|
|
76
76
|
exports.default = UserFinalResultModel;
|
|
@@ -244,6 +244,10 @@ const userInstituteMetaSchema = new mongoose_1.Schema({
|
|
|
244
244
|
},
|
|
245
245
|
studentProfileImage: {
|
|
246
246
|
type: String,
|
|
247
|
+
},
|
|
248
|
+
selectedSportsIds: {
|
|
249
|
+
type: [String],
|
|
250
|
+
default: [],
|
|
247
251
|
}
|
|
248
252
|
}, {
|
|
249
253
|
timestamps: true,
|
|
@@ -267,7 +271,7 @@ userInstituteMetaSchema.index({
|
|
|
267
271
|
status: 1,
|
|
268
272
|
// entities: 1,
|
|
269
273
|
});
|
|
270
|
-
const UserInstituteMeta = mongoose_1.default.
|
|
274
|
+
const UserInstituteMeta = mongoose_1.default.model('userInstituteMeta', userInstituteMetaSchema);
|
|
271
275
|
// (async () => {
|
|
272
276
|
// await UserInstituteMeta.syncIndexes();
|
|
273
277
|
// })(); // Rebuilds indexes in DB based on schema
|