@kipicore/dbcore 1.1.687 → 1.1.689
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 +37 -27
- package/dist/constants/app.js +45 -34
- 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/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/amenityInterface.d.ts +23 -0
- package/dist/interfaces/assessmentTestInterface.d.ts +23 -0
- package/dist/interfaces/assessmentTestInterface.js +2 -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 +17 -1
- package/dist/interfaces/index.js +18 -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/photosGalleryInterface.d.ts +3 -1
- package/dist/interfaces/schoolHasSportInterface.d.ts +7 -0
- package/dist/interfaces/schoolHasSportInterface.js +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/sportGroupDataInterface.d.ts +7 -0
- package/dist/interfaces/sportGroupDataInterface.js +2 -0
- package/dist/interfaces/sportInfoInterface.d.ts +23 -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 +16 -0
- package/dist/interfaces/userAcademyMetaInterface.js +2 -0
- package/dist/interfaces/userAmenityInterface.d.ts +23 -0
- package/dist/interfaces/userAmenityInterface.js +2 -0
- package/dist/interfaces/userInterface.d.ts +1 -3
- package/dist/interfaces/vendorCompanyMetaInterface.d.ts +2 -5
- package/dist/models/mongodb/amenityModel.d.ts +4 -0
- package/dist/models/mongodb/amenityModel.js +72 -0
- package/dist/models/mongodb/assessmentTestModel.d.ts +4 -0
- package/dist/models/mongodb/assessmentTestModel.js +72 -0
- package/dist/models/mongodb/index.d.ts +6 -0
- package/dist/models/mongodb/index.js +14 -1
- package/dist/models/mongodb/photosGalleryModel.js +5 -1
- package/dist/models/mongodb/productMetaModel.js +1 -9
- package/dist/models/mongodb/sportInfoModel.d.ts +4 -0
- package/dist/models/mongodb/sportInfoModel.js +71 -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/subscriptionPlanModel.js +0 -5
- package/dist/models/mongodb/userAcademyMetaModel.d.ts +4 -0
- package/dist/models/mongodb/userAcademyMetaModel.js +105 -0
- package/dist/models/mongodb/userAmenityModel.d.ts +4 -0
- package/dist/models/mongodb/userAmenityModel.js +72 -0
- package/dist/models/mongodb/vendorCompanyMetaModel.js +1 -15
- 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 +64 -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/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 +17 -1
- package/dist/types/index.js +18 -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/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.d.ts +0 -2
- 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.d.ts +0 -2
- 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/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/interfaces/{aiModelKeysInterface.js → ageGroupInterface.js} +0 -0
- /package/dist/{types/aiModelKeysType.js → interfaces/amenityInterface.js} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { COMMAN_STATUS } from '../constants/app';
|
|
2
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
+
export interface ISportCategoryModelAttributes extends IDefaultAttributes {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
code: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
status: COMMAN_STATUS;
|
|
9
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Document } from 'mongoose';
|
|
2
|
+
import { COMMAN_STATUS } from '../constants/app';
|
|
3
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
4
|
+
export interface ISportInfoSkill {
|
|
5
|
+
ageGroupId: string;
|
|
6
|
+
skillId: string;
|
|
7
|
+
minValue?: number;
|
|
8
|
+
maxValue?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface ISportInfoModelAttributes extends IDefaultAttributes, Document {
|
|
11
|
+
sportId: string;
|
|
12
|
+
setupGuide?: string;
|
|
13
|
+
images?: string[];
|
|
14
|
+
documents?: string[];
|
|
15
|
+
categories?: string[];
|
|
16
|
+
subCategories?: string[];
|
|
17
|
+
equipments?: string[];
|
|
18
|
+
amenitiesNeeded?: string[];
|
|
19
|
+
infrastructure?: string[];
|
|
20
|
+
specificTests?: string[];
|
|
21
|
+
skills?: ISportInfoSkill[];
|
|
22
|
+
status: COMMAN_STATUS;
|
|
23
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { COMMAN_STATUS } from '../constants/app';
|
|
2
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
+
export interface ISportModelAttributes extends IDefaultAttributes {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
code: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
status: COMMAN_STATUS;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { COMMAN_STATUS } from '../constants/app';
|
|
2
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
+
export interface ISportRoleModelAttributes extends IDefaultAttributes {
|
|
4
|
+
id: string;
|
|
5
|
+
sportId: string;
|
|
6
|
+
name: string;
|
|
7
|
+
code: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
status: COMMAN_STATUS;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { COMMAN_STATUS } from '../constants/app';
|
|
2
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
+
export interface ISportSubCategoryModelAttributes extends IDefaultAttributes {
|
|
4
|
+
id: string;
|
|
5
|
+
sportId: string;
|
|
6
|
+
categoryId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
code: string;
|
|
9
|
+
status: COMMAN_STATUS;
|
|
10
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Document } from 'mongoose';
|
|
2
|
+
import { COMMAN_STATUS } from '../constants/app';
|
|
3
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
4
|
+
export interface IMobileDetail {
|
|
5
|
+
name: string;
|
|
6
|
+
mobile: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ISportsHistroy {
|
|
9
|
+
sportId: number;
|
|
10
|
+
startDate: Date;
|
|
11
|
+
endDate?: Date;
|
|
12
|
+
}
|
|
13
|
+
export interface ISportsAcademyModelAttributes extends IDefaultAttributes, Document {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
globalId: string;
|
|
17
|
+
email: string;
|
|
18
|
+
websiteUrl?: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
addressLine1?: string;
|
|
21
|
+
addressLine2?: string;
|
|
22
|
+
pinCode?: string;
|
|
23
|
+
city?: number;
|
|
24
|
+
state?: number;
|
|
25
|
+
country?: number;
|
|
26
|
+
contactPerson?: string;
|
|
27
|
+
mobiles?: IMobileDetail[];
|
|
28
|
+
youtube?: string;
|
|
29
|
+
instagram?: string;
|
|
30
|
+
facebook?: string;
|
|
31
|
+
whatsapp?: string;
|
|
32
|
+
ownerId?: string;
|
|
33
|
+
img?: string;
|
|
34
|
+
bannerImg?: string;
|
|
35
|
+
status: COMMAN_STATUS;
|
|
36
|
+
sportsIds?: string[];
|
|
37
|
+
sportsHistroy?: ISportsHistroy[];
|
|
38
|
+
amenitiesIds?: string[];
|
|
39
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Document } from 'mongoose';
|
|
2
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
+
import { STUDENT_SPORT_TEST_STATUS } from '../constants/app';
|
|
4
|
+
export interface IStudentSportTestResultItem {
|
|
5
|
+
skillId?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
value: string;
|
|
8
|
+
unit?: string;
|
|
9
|
+
remarks?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface IStudentSportTestModelAttributes extends IDefaultAttributes, Document {
|
|
12
|
+
id: string;
|
|
13
|
+
userId: string;
|
|
14
|
+
instituteId: string;
|
|
15
|
+
academicCalendarId: string;
|
|
16
|
+
userMetaId: string;
|
|
17
|
+
status: STUDENT_SPORT_TEST_STATUS;
|
|
18
|
+
testId: string | null;
|
|
19
|
+
results: IStudentSportTestResultItem[];
|
|
20
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { IDefaultAttributes } from './commonInterface';
|
|
2
|
-
import {
|
|
2
|
+
import { COMMAN_STATUS } from '../constants/app';
|
|
3
3
|
export interface ISubCategoriesModelAttributes extends IDefaultAttributes {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
6
|
categoryId: string;
|
|
7
7
|
instituteId?: string;
|
|
8
8
|
status: COMMAN_STATUS;
|
|
9
|
-
type: CATEGORY_TYPE;
|
|
10
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Document } from 'mongoose';
|
|
2
|
-
import { APP_TYPE, COMMAN_STATUS, SUBSCRIPTION_PLAN_CHARGE_INTERVAL, DISCOUNT_TYPE, SUBSCRIPTION_PLAN_FILES_TYPE, VALID_CURRENCY, USER_TYPES, SUBSCRIPTION_PLAN_TYPE
|
|
2
|
+
import { APP_TYPE, COMMAN_STATUS, SUBSCRIPTION_PLAN_CHARGE_INTERVAL, DISCOUNT_TYPE, SUBSCRIPTION_PLAN_FILES_TYPE, VALID_CURRENCY, USER_TYPES, SUBSCRIPTION_PLAN_TYPE } from '../constants/app';
|
|
3
3
|
import { IDefaultAttributes } from './commonInterface';
|
|
4
4
|
export interface ISubscriptionPlanFiles {
|
|
5
5
|
type: SUBSCRIPTION_PLAN_FILES_TYPE;
|
|
@@ -33,5 +33,4 @@ export interface ISubscriptionPlanModelAttributes extends IDefaultAttributes, Do
|
|
|
33
33
|
maxFreeCourses?: number;
|
|
34
34
|
maxFreeCoursePrice?: number;
|
|
35
35
|
maxNumberOfSchool?: number;
|
|
36
|
-
sellStatus?: PLAN_SELL_STATUS;
|
|
37
36
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { COMMAN_STATUS } from '../constants/app';
|
|
2
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
+
export interface IUnitModelAttributes extends IDefaultAttributes {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
code: string;
|
|
7
|
+
symbol: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
status: COMMAN_STATUS;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Document } from 'mongoose';
|
|
2
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
+
import { COMMAN_STATUS, USER_ACADEMY_META_STATUS, USER_TYPES } from '../constants/app';
|
|
4
|
+
export interface IUserAcademyMetaAttributes extends IDefaultAttributes, Document {
|
|
5
|
+
id: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
sportsAcademyId: string;
|
|
8
|
+
userType: USER_TYPES;
|
|
9
|
+
status?: USER_ACADEMY_META_STATUS;
|
|
10
|
+
sportsIds?: string[];
|
|
11
|
+
joiningDate?: Date;
|
|
12
|
+
endTime?: Date;
|
|
13
|
+
rollNumber?: string;
|
|
14
|
+
additionalField?: object;
|
|
15
|
+
isActive: COMMAN_STATUS;
|
|
16
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Document } from 'mongoose';
|
|
2
|
+
import { AMENITY_STATUS } from '../constants/app';
|
|
3
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
4
|
+
export interface IUserAmenityFacilityDetail {
|
|
5
|
+
facilityMasterId: string;
|
|
6
|
+
count: number;
|
|
7
|
+
description?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IUserAmenityModelAttributes extends IDefaultAttributes, Document {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
addressLine1?: string;
|
|
14
|
+
addressLine2?: string;
|
|
15
|
+
pinCode?: string;
|
|
16
|
+
city?: number;
|
|
17
|
+
state?: number;
|
|
18
|
+
country?: number;
|
|
19
|
+
images?: string[];
|
|
20
|
+
ownerId?: string;
|
|
21
|
+
status: AMENITY_STATUS;
|
|
22
|
+
facilities?: IUserAmenityFacilityDetail[];
|
|
23
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { APP_TYPE, EMAIL_VERIFICATION, MOBILE_VERIFICATION,
|
|
1
|
+
import { APP_TYPE, EMAIL_VERIFICATION, MOBILE_VERIFICATION, USER_TYPES } from '../constants/app';
|
|
2
2
|
import { IDefaultAttributes } from './commonInterface';
|
|
3
3
|
export interface IUserAttributes extends IDefaultAttributes {
|
|
4
4
|
id: string;
|
|
@@ -42,6 +42,4 @@ export interface IUserAttributes extends IDefaultAttributes {
|
|
|
42
42
|
district?: string;
|
|
43
43
|
area?: string;
|
|
44
44
|
taluka?: string;
|
|
45
|
-
status?: USER_STATUS;
|
|
46
|
-
portfolioTheme?: string;
|
|
47
45
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Document } from 'mongoose';
|
|
2
2
|
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
-
import { VENDOR_COMPANY_META_STATUS
|
|
3
|
+
import { VENDOR_COMPANY_META_STATUS } from '../constants/app';
|
|
4
4
|
export interface IBankDetails {
|
|
5
5
|
accountHolderName: string;
|
|
6
6
|
accountNumber: string;
|
|
@@ -28,7 +28,7 @@ export interface IVendorCompanyMetaAttributes extends IDefaultAttributes, Docume
|
|
|
28
28
|
logo?: string;
|
|
29
29
|
banner?: string;
|
|
30
30
|
address1: string;
|
|
31
|
-
address2
|
|
31
|
+
address2: string;
|
|
32
32
|
area: string;
|
|
33
33
|
district?: string;
|
|
34
34
|
pinCode: string;
|
|
@@ -40,7 +40,4 @@ export interface IVendorCompanyMetaAttributes extends IDefaultAttributes, Docume
|
|
|
40
40
|
description?: string;
|
|
41
41
|
documents: ICompanyDocument[];
|
|
42
42
|
bankDetails: IBankDetails;
|
|
43
|
-
partnersIds?: string[];
|
|
44
|
-
type: VENDOR_COMPANY_TYPE;
|
|
45
|
-
isActive?: boolean;
|
|
46
43
|
}
|
|
@@ -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 amenitySchema = 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.COMMAN_STATUS),
|
|
52
|
+
default: app_1.COMMAN_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
|
+
},
|
|
61
|
+
],
|
|
62
|
+
createdBy: { type: String, required: false },
|
|
63
|
+
updatedBy: { type: String, required: false },
|
|
64
|
+
deletedBy: { type: String, required: false },
|
|
65
|
+
deletedAt: { type: Date, default: null },
|
|
66
|
+
}, {
|
|
67
|
+
timestamps: true,
|
|
68
|
+
versionKey: false,
|
|
69
|
+
virtuals: true,
|
|
70
|
+
});
|
|
71
|
+
const AmenityModel = mongoose_1.default.model('amenity', amenitySchema);
|
|
72
|
+
exports.default = AmenityModel;
|
|
@@ -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 targetSkillSchema = new mongoose_1.Schema({
|
|
39
|
+
skillId: { type: String, required: true },
|
|
40
|
+
ageGroupId: { type: String, required: false },
|
|
41
|
+
minValue: { type: Number, required: false },
|
|
42
|
+
}, { _id: false });
|
|
43
|
+
const assessmentTestSchema = new mongoose_1.Schema({
|
|
44
|
+
sportId: { type: String, required: false },
|
|
45
|
+
sportRoleId: { type: String, required: false },
|
|
46
|
+
// ageGroupId: { type: String, required: false },
|
|
47
|
+
name: { type: String, required: true },
|
|
48
|
+
code: { type: String, required: true },
|
|
49
|
+
description: { type: String, required: false },
|
|
50
|
+
passingRules: { type: String, required: false },
|
|
51
|
+
scoreFormula: { type: String, required: false },
|
|
52
|
+
documents: { type: [String], required: false, default: [] },
|
|
53
|
+
videos: { type: [String], required: false, default: [] },
|
|
54
|
+
targetSkills: { type: [targetSkillSchema], required: false, default: [] },
|
|
55
|
+
requiredEquipment: { type: [String], required: false, default: [] },
|
|
56
|
+
status: {
|
|
57
|
+
type: String,
|
|
58
|
+
enum: Object.values(app_1.ASSESSMENT_TEST_STATUS),
|
|
59
|
+
required: true,
|
|
60
|
+
default: app_1.ASSESSMENT_TEST_STATUS.ACTIVE,
|
|
61
|
+
},
|
|
62
|
+
createdBy: { type: String, required: false },
|
|
63
|
+
updatedBy: { type: String, required: false },
|
|
64
|
+
deletedBy: { type: String, required: false },
|
|
65
|
+
deletedAt: { type: Date, default: null },
|
|
66
|
+
}, {
|
|
67
|
+
timestamps: true,
|
|
68
|
+
versionKey: false,
|
|
69
|
+
virtuals: true,
|
|
70
|
+
});
|
|
71
|
+
const AssessmentTestModel = mongoose_1.default.model('assessmentTest', assessmentTestSchema);
|
|
72
|
+
exports.default = AssessmentTestModel;
|
|
@@ -79,3 +79,9 @@ export { default as UserFinalResultModel } from './userFinalResultModel';
|
|
|
79
79
|
export { default as KipiverseContactFormModel } from './kipiverseContactFormModel';
|
|
80
80
|
export { default as vendorCompanyMetaModel } from './vendorCompanyMetaModel';
|
|
81
81
|
export { default as productMetaModel } from './productMetaModel';
|
|
82
|
+
export { default as AssessmentTestModel } from './assessmentTestModel';
|
|
83
|
+
export { default as SportInfoModel } from './sportInfoModel';
|
|
84
|
+
export { default as StudentSportTestModel } from './studentSportTestModel';
|
|
85
|
+
export { default as SportsAcademyModel } from './sportsAcademyModel';
|
|
86
|
+
export { default as UserAmenityModel } from './userAmenityModel';
|
|
87
|
+
export { default as UserAcademyMetaModel } from './userAcademyMetaModel';
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.PollSelectionModel = exports.CreatePollModel = exports.SheetFieldMappingModel = exports.FileUploadUserDetails = exports.CompetitionUsersModel = exports.CompetitionGroupModel = exports.CompetitionModel = exports.CampusCarnivalModel = 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.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
|
-
exports.productMetaModel = exports.vendorCompanyMetaModel = exports.KipiverseContactFormModel = exports.UserFinalResultModel = exports.RmsDigitalResourceAccessModel = exports.RmsDigitalResourceModel = exports.RmsAmcContractModel = exports.RmsResourceDetailsModel = exports.RmsAuditLogModel = exports.OnlineLectureModel = exports.PastYearRecordTopperModel = exports.FeeSubmissionModel = exports.AdvertisementModel = exports.RoleHasPermissionModel = exports.CommunityMessageModel = exports.CommunityGroupMemberModel = exports.CommunityGroupModel = exports.OfferAndDiscountModel = exports.SubscriptionConfigurationModel = exports.ModulePriceModel = exports.PdcChequeConfigurationModel = exports.FinalMarkSheetModel = exports.MarkSheetConfigurationModel = exports.AppAnalyticsEventModel = exports.GrantAndDonationModel = exports.TicketRaiseModel = exports.EducationOfficerModel = exports.InstituteFeeModel = exports.SchoolFee1Model = exports.FeeConfigModel = exports.EventTemplatesModel = void 0;
|
|
7
|
+
exports.UserAcademyMetaModel = exports.UserAmenityModel = exports.SportsAcademyModel = exports.StudentSportTestModel = exports.SportInfoModel = exports.AssessmentTestModel = exports.productMetaModel = exports.vendorCompanyMetaModel = exports.KipiverseContactFormModel = exports.UserFinalResultModel = exports.RmsDigitalResourceAccessModel = exports.RmsDigitalResourceModel = exports.RmsAmcContractModel = exports.RmsResourceDetailsModel = exports.RmsAuditLogModel = exports.OnlineLectureModel = exports.PastYearRecordTopperModel = exports.FeeSubmissionModel = exports.AdvertisementModel = exports.RoleHasPermissionModel = exports.CommunityMessageModel = exports.CommunityGroupMemberModel = exports.CommunityGroupModel = exports.OfferAndDiscountModel = exports.SubscriptionConfigurationModel = exports.ModulePriceModel = exports.PdcChequeConfigurationModel = exports.FinalMarkSheetModel = exports.MarkSheetConfigurationModel = exports.AppAnalyticsEventModel = exports.GrantAndDonationModel = exports.TicketRaiseModel = exports.EducationOfficerModel = exports.InstituteFeeModel = exports.SchoolFee1Model = exports.FeeConfigModel = exports.EventTemplatesModel = void 0;
|
|
8
8
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
9
9
|
const env_1 = require("../../configs/env");
|
|
10
10
|
const transformIdInQueryPlugin_1 = __importDefault(require("./plugin/transformIdInQueryPlugin"));
|
|
@@ -185,3 +185,16 @@ var vendorCompanyMetaModel_1 = require("./vendorCompanyMetaModel");
|
|
|
185
185
|
Object.defineProperty(exports, "vendorCompanyMetaModel", { enumerable: true, get: function () { return __importDefault(vendorCompanyMetaModel_1).default; } });
|
|
186
186
|
var productMetaModel_1 = require("./productMetaModel");
|
|
187
187
|
Object.defineProperty(exports, "productMetaModel", { enumerable: true, get: function () { return __importDefault(productMetaModel_1).default; } });
|
|
188
|
+
// Arena Module
|
|
189
|
+
var assessmentTestModel_1 = require("./assessmentTestModel");
|
|
190
|
+
Object.defineProperty(exports, "AssessmentTestModel", { enumerable: true, get: function () { return __importDefault(assessmentTestModel_1).default; } });
|
|
191
|
+
var sportInfoModel_1 = require("./sportInfoModel");
|
|
192
|
+
Object.defineProperty(exports, "SportInfoModel", { enumerable: true, get: function () { return __importDefault(sportInfoModel_1).default; } });
|
|
193
|
+
var studentSportTestModel_1 = require("./studentSportTestModel");
|
|
194
|
+
Object.defineProperty(exports, "StudentSportTestModel", { enumerable: true, get: function () { return __importDefault(studentSportTestModel_1).default; } });
|
|
195
|
+
var sportsAcademyModel_1 = require("./sportsAcademyModel");
|
|
196
|
+
Object.defineProperty(exports, "SportsAcademyModel", { enumerable: true, get: function () { return __importDefault(sportsAcademyModel_1).default; } });
|
|
197
|
+
var userAmenityModel_1 = require("./userAmenityModel");
|
|
198
|
+
Object.defineProperty(exports, "UserAmenityModel", { enumerable: true, get: function () { return __importDefault(userAmenityModel_1).default; } });
|
|
199
|
+
var userAcademyMetaModel_1 = require("./userAcademyMetaModel");
|
|
200
|
+
Object.defineProperty(exports, "UserAcademyMetaModel", { enumerable: true, get: function () { return __importDefault(userAcademyMetaModel_1).default; } });
|
|
@@ -72,12 +72,16 @@ const PhotosGalleryModelSchema = new mongoose_1.Schema({
|
|
|
72
72
|
},
|
|
73
73
|
instituteId: {
|
|
74
74
|
type: String,
|
|
75
|
-
required:
|
|
75
|
+
required: false,
|
|
76
76
|
},
|
|
77
77
|
academicCalendarId: {
|
|
78
78
|
type: String,
|
|
79
79
|
required: false,
|
|
80
80
|
},
|
|
81
|
+
sportsAcademyId: {
|
|
82
|
+
type: String,
|
|
83
|
+
required: false,
|
|
84
|
+
},
|
|
81
85
|
}, { timestamps: true, versionKey: false });
|
|
82
86
|
PhotosGalleryModelSchema.index({
|
|
83
87
|
instituteId: 1,
|
|
@@ -42,7 +42,7 @@ const ProductMetaSchema = new mongoose_1.Schema({
|
|
|
42
42
|
},
|
|
43
43
|
categoryId: {
|
|
44
44
|
type: String,
|
|
45
|
-
required:
|
|
45
|
+
required: true,
|
|
46
46
|
},
|
|
47
47
|
subCategoryId: {
|
|
48
48
|
type: String,
|
|
@@ -83,14 +83,6 @@ const ProductMetaSchema = new mongoose_1.Schema({
|
|
|
83
83
|
enum: Object.values(constants_1.PRODUCT_META_STATUS),
|
|
84
84
|
default: constants_1.PRODUCT_META_STATUS.ACTIVE,
|
|
85
85
|
},
|
|
86
|
-
description: {
|
|
87
|
-
type: String,
|
|
88
|
-
required: false,
|
|
89
|
-
},
|
|
90
|
-
shortDescription: {
|
|
91
|
-
type: String,
|
|
92
|
-
required: false,
|
|
93
|
-
},
|
|
94
86
|
createdBy: {
|
|
95
87
|
type: String,
|
|
96
88
|
},
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
}, { _id: false });
|
|
44
|
+
const sportInfoSchema = new mongoose_1.Schema({
|
|
45
|
+
sportId: { type: String, required: true, index: true },
|
|
46
|
+
setupGuide: { type: String, required: false },
|
|
47
|
+
images: { type: [String], required: false, default: [] },
|
|
48
|
+
documents: { type: [String], required: false, default: [] },
|
|
49
|
+
categories: { type: [String], required: false, default: [] },
|
|
50
|
+
subCategories: { type: [String], required: false, default: [] },
|
|
51
|
+
equipments: { type: [String], required: false, default: [] },
|
|
52
|
+
amenitiesNeeded: { type: [String], required: false, default: [] },
|
|
53
|
+
infrastructure: { type: [String], required: false, default: [] },
|
|
54
|
+
specificTests: { type: [String], required: false, default: [] },
|
|
55
|
+
skills: { type: [sportInfoSkillSchema], required: false, default: [] },
|
|
56
|
+
status: {
|
|
57
|
+
type: String,
|
|
58
|
+
enum: Object.values(app_1.COMMAN_STATUS),
|
|
59
|
+
required: true,
|
|
60
|
+
default: app_1.COMMAN_STATUS.ACTIVE,
|
|
61
|
+
},
|
|
62
|
+
createdBy: { type: String, required: false },
|
|
63
|
+
updatedBy: { type: String, required: false },
|
|
64
|
+
deletedBy: { type: String, required: false },
|
|
65
|
+
deletedAt: { type: Date, default: null },
|
|
66
|
+
}, {
|
|
67
|
+
timestamps: true,
|
|
68
|
+
versionKey: false,
|
|
69
|
+
});
|
|
70
|
+
const SportInfoModel = mongoose_1.default.model('sportInfo', sportInfoSchema, 'sport_infos');
|
|
71
|
+
exports.default = SportInfoModel;
|