@kipicore/dbcore 1.1.658 → 1.1.659

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.
Files changed (122) hide show
  1. package/dist/constants/app.d.ts +12 -15
  2. package/dist/constants/app.js +17 -20
  3. package/dist/constants/errorMessages.d.ts +0 -17
  4. package/dist/constants/errorMessages.js +1 -20
  5. package/dist/constants/successMessages.d.ts +0 -14
  6. package/dist/constants/successMessages.js +1 -17
  7. package/dist/db/psql/migrations/20260714095754-create-arena-models.js +642 -0
  8. package/dist/db/psql/migrations/20260720092201-replace-facility-sports-with-sport-group-data.d.ts +2 -0
  9. package/dist/db/psql/migrations/20260720092201-replace-facility-sports-with-sport-group-data.js +138 -0
  10. package/dist/interfaces/ageGroupInterface.d.ts +12 -0
  11. package/dist/interfaces/assessmentTestInterface.d.ts +24 -0
  12. package/dist/interfaces/categoriesInterface.d.ts +1 -2
  13. package/dist/interfaces/equipmentInterface.d.ts +10 -0
  14. package/dist/interfaces/equipmentInterface.js +2 -0
  15. package/dist/interfaces/facilityMasterInterface.d.ts +9 -0
  16. package/dist/interfaces/facilityMasterInterface.js +2 -0
  17. package/dist/interfaces/index.d.ts +12 -1
  18. package/dist/interfaces/index.js +13 -1
  19. package/dist/interfaces/instituteInterface.d.ts +0 -1
  20. package/dist/interfaces/skillInterface.d.ts +15 -0
  21. package/dist/interfaces/skillInterface.js +2 -0
  22. package/dist/interfaces/sportCategoryInterface.d.ts +9 -0
  23. package/dist/interfaces/sportCategoryInterface.js +2 -0
  24. package/dist/interfaces/sportGroupDataInterface.d.ts +7 -0
  25. package/dist/interfaces/sportGroupDataInterface.js +2 -0
  26. package/dist/interfaces/sportInfoInterface.d.ts +23 -0
  27. package/dist/interfaces/sportInfoInterface.js +2 -0
  28. package/dist/interfaces/sportInterface.d.ts +10 -0
  29. package/dist/interfaces/sportInterface.js +2 -0
  30. package/dist/interfaces/sportRoleInterface.d.ts +11 -0
  31. package/dist/interfaces/sportRoleInterface.js +2 -0
  32. package/dist/interfaces/sportSubCategoryInterface.d.ts +10 -0
  33. package/dist/interfaces/sportSubCategoryInterface.js +2 -0
  34. package/dist/interfaces/subCategoriesInterface.d.ts +1 -2
  35. package/dist/interfaces/unitInterface.d.ts +10 -0
  36. package/dist/interfaces/unitInterface.js +2 -0
  37. package/dist/interfaces/userInterface.d.ts +1 -2
  38. package/dist/interfaces/vendorCompanyMetaInterface.d.ts +1 -1
  39. package/dist/models/mongodb/assessmentTestModel.d.ts +4 -0
  40. package/dist/models/mongodb/assessmentTestModel.js +72 -0
  41. package/dist/models/mongodb/index.d.ts +2 -0
  42. package/dist/models/mongodb/index.js +6 -1
  43. package/dist/models/mongodb/productMetaModel.js +0 -8
  44. package/dist/models/mongodb/sportInfoModel.d.ts +4 -0
  45. package/dist/models/mongodb/sportInfoModel.js +71 -0
  46. package/dist/models/mongodb/vendorCompanyMetaModel.js +1 -1
  47. package/dist/models/psql/SubCategoriesModel.d.ts +1 -2
  48. package/dist/models/psql/SubCategoriesModel.js +0 -5
  49. package/dist/models/psql/ageGroupModel.d.ts +22 -0
  50. package/dist/models/psql/ageGroupModel.js +76 -0
  51. package/dist/models/psql/categoriesModel.d.ts +1 -2
  52. package/dist/models/psql/categoriesModel.js +0 -5
  53. package/dist/models/psql/equipmentModel.d.ts +20 -0
  54. package/dist/models/psql/equipmentModel.js +57 -0
  55. package/dist/models/psql/facilityMasterModel.d.ts +18 -0
  56. package/dist/models/psql/facilityMasterModel.js +64 -0
  57. package/dist/models/psql/index.d.ts +10 -1
  58. package/dist/models/psql/index.js +23 -4
  59. package/dist/models/psql/instituteModel.d.ts +0 -1
  60. package/dist/models/psql/instituteModel.js +2 -5
  61. package/dist/models/psql/skillModel.d.ts +25 -0
  62. package/dist/models/psql/skillModel.js +99 -0
  63. package/dist/models/psql/sportCategoryModel.d.ts +19 -0
  64. package/dist/models/psql/sportCategoryModel.js +53 -0
  65. package/dist/models/psql/sportGroupDataModel.d.ts +13 -0
  66. package/dist/models/psql/sportGroupDataModel.js +64 -0
  67. package/dist/models/psql/sportModel.d.ts +20 -0
  68. package/dist/models/psql/sportModel.js +58 -0
  69. package/dist/models/psql/sportRoleModel.d.ts +21 -0
  70. package/dist/models/psql/sportRoleModel.js +71 -0
  71. package/dist/models/psql/sportSubCategoryModel.d.ts +20 -0
  72. package/dist/models/psql/sportSubCategoryModel.js +75 -0
  73. package/dist/models/psql/unitModel.d.ts +20 -0
  74. package/dist/models/psql/unitModel.js +57 -0
  75. package/dist/models/psql/userModel.d.ts +1 -2
  76. package/dist/models/psql/userModel.js +0 -1
  77. package/dist/types/ageGroupType.d.ts +2 -0
  78. package/dist/types/ageGroupType.js +2 -0
  79. package/dist/types/assessmentTestType.d.ts +2 -0
  80. package/dist/types/assessmentTestType.js +2 -0
  81. package/dist/types/commonType.d.ts +1 -1
  82. package/dist/types/equipmentType.d.ts +2 -0
  83. package/dist/types/equipmentType.js +2 -0
  84. package/dist/types/facilityMasterType.d.ts +3 -0
  85. package/dist/types/facilityMasterType.js +2 -0
  86. package/dist/types/index.d.ts +12 -1
  87. package/dist/types/index.js +13 -1
  88. package/dist/types/skillType.d.ts +2 -0
  89. package/dist/types/skillType.js +2 -0
  90. package/dist/types/sportCategoryType.d.ts +2 -0
  91. package/dist/types/sportCategoryType.js +2 -0
  92. package/dist/types/sportGroupDataType.d.ts +3 -0
  93. package/dist/types/sportGroupDataType.js +2 -0
  94. package/dist/types/sportInfoType.d.ts +2 -0
  95. package/dist/types/sportInfoType.js +2 -0
  96. package/dist/types/sportRoleType.d.ts +2 -0
  97. package/dist/types/sportRoleType.js +2 -0
  98. package/dist/types/sportSubCategoryType.d.ts +2 -0
  99. package/dist/types/sportSubCategoryType.js +2 -0
  100. package/dist/types/sportType.d.ts +2 -0
  101. package/dist/types/sportType.js +2 -0
  102. package/dist/types/unitType.d.ts +2 -0
  103. package/dist/types/unitType.js +2 -0
  104. package/package.json +1 -1
  105. package/dist/db/psql/migrations/20260714111425-change_status_enum_to_string_in_institutes.js +0 -46
  106. package/dist/db/psql/migrations/20260714131500-add_note_to_institutes.d.ts +0 -2
  107. package/dist/db/psql/migrations/20260714131500-add_note_to_institutes.js +0 -20
  108. package/dist/db/psql/migrations/20260715150000-create-ai-model-keys.d.ts +0 -2
  109. package/dist/db/psql/migrations/20260715150000-create-ai-model-keys.js +0 -156
  110. package/dist/db/psql/migrations/20260717071354-add_type_to_categories.d.ts +0 -2
  111. package/dist/db/psql/migrations/20260717071354-add_type_to_categories.js +0 -19
  112. package/dist/db/psql/migrations/20260717072745-add_type_to_sub_categories.d.ts +0 -2
  113. package/dist/db/psql/migrations/20260717072745-add_type_to_sub_categories.js +0 -19
  114. package/dist/db/psql/migrations/20260717095051-add_status_to_users.d.ts +0 -2
  115. package/dist/db/psql/migrations/20260717095051-add_status_to_users.js +0 -19
  116. package/dist/interfaces/aiModelKeysInterface.d.ts +0 -15
  117. package/dist/models/psql/aiModelKeysModel.d.ts +0 -20
  118. package/dist/models/psql/aiModelKeysModel.js +0 -70
  119. package/dist/types/aiModelKeysType.d.ts +0 -3
  120. /package/dist/db/psql/migrations/{20260714111425-change_status_enum_to_string_in_institutes.d.ts → 20260714095754-create-arena-models.d.ts} +0 -0
  121. /package/dist/interfaces/{aiModelKeysInterface.js → ageGroupInterface.js} +0 -0
  122. /package/dist/{types/aiModelKeysType.js → interfaces/assessmentTestInterface.js} +0 -0
@@ -0,0 +1,138 @@
1
+ 'use strict';
2
+ /** @type {import('sequelize-cli').Migration} */
3
+ module.exports = {
4
+ async up(queryInterface, Sequelize) {
5
+ await queryInterface.dropTable('facility_sports');
6
+ await queryInterface.createTable('sport_group_data', {
7
+ id: {
8
+ allowNull: false,
9
+ primaryKey: true,
10
+ type: Sequelize.UUID,
11
+ defaultValue: Sequelize.UUIDV4
12
+ },
13
+ sport_id: {
14
+ type: Sequelize.UUID,
15
+ allowNull: false,
16
+ references: {
17
+ model: 'sports',
18
+ key: 'id'
19
+ },
20
+ onUpdate: 'CASCADE',
21
+ onDelete: 'CASCADE'
22
+ },
23
+ facility_id: {
24
+ type: Sequelize.UUID,
25
+ allowNull: true,
26
+ references: {
27
+ model: 'facility_masters',
28
+ key: 'id'
29
+ },
30
+ onUpdate: 'CASCADE',
31
+ onDelete: 'CASCADE'
32
+ },
33
+ equipment_id: {
34
+ type: Sequelize.UUID,
35
+ allowNull: true,
36
+ references: {
37
+ model: 'equipments',
38
+ key: 'id'
39
+ },
40
+ onUpdate: 'CASCADE',
41
+ onDelete: 'CASCADE'
42
+ },
43
+ createdAt: {
44
+ allowNull: false,
45
+ type: Sequelize.DATE,
46
+ defaultValue: Sequelize.literal('CURRENT_TIMESTAMP'),
47
+ field: 'created_at',
48
+ },
49
+ updatedAt: {
50
+ allowNull: false,
51
+ type: Sequelize.DATE,
52
+ defaultValue: Sequelize.literal('CURRENT_TIMESTAMP'),
53
+ field: 'updated_at',
54
+ },
55
+ deletedAt: {
56
+ type: Sequelize.DATE,
57
+ field: 'deleted_at',
58
+ },
59
+ createdBy: {
60
+ type: Sequelize.UUID,
61
+ allowNull: true,
62
+ field: 'created_by',
63
+ },
64
+ updatedBy: {
65
+ type: Sequelize.UUID,
66
+ allowNull: true,
67
+ field: 'updated_by',
68
+ },
69
+ deletedBy: {
70
+ type: Sequelize.UUID,
71
+ allowNull: true,
72
+ field: 'deleted_by',
73
+ }
74
+ });
75
+ },
76
+ async down(queryInterface, Sequelize) {
77
+ await queryInterface.dropTable('sport_group_data');
78
+ await queryInterface.createTable('facility_sports', {
79
+ id: {
80
+ allowNull: false,
81
+ primaryKey: true,
82
+ type: Sequelize.UUID,
83
+ defaultValue: Sequelize.UUIDV4
84
+ },
85
+ facility_id: {
86
+ type: Sequelize.UUID,
87
+ allowNull: false,
88
+ references: {
89
+ model: 'facility_masters',
90
+ key: 'id'
91
+ },
92
+ onUpdate: 'CASCADE',
93
+ onDelete: 'CASCADE'
94
+ },
95
+ sport_id: {
96
+ type: Sequelize.UUID,
97
+ allowNull: false,
98
+ references: {
99
+ model: 'sports',
100
+ key: 'id'
101
+ },
102
+ onUpdate: 'CASCADE',
103
+ onDelete: 'CASCADE'
104
+ },
105
+ createdAt: {
106
+ allowNull: false,
107
+ type: Sequelize.DATE,
108
+ defaultValue: Sequelize.literal('CURRENT_TIMESTAMP'),
109
+ field: 'created_at',
110
+ },
111
+ updatedAt: {
112
+ allowNull: false,
113
+ type: Sequelize.DATE,
114
+ defaultValue: Sequelize.literal('CURRENT_TIMESTAMP'),
115
+ field: 'updated_at',
116
+ },
117
+ deletedAt: {
118
+ type: Sequelize.DATE,
119
+ field: 'deleted_at',
120
+ },
121
+ createdBy: {
122
+ type: Sequelize.UUID,
123
+ allowNull: true,
124
+ field: 'created_by',
125
+ },
126
+ updatedBy: {
127
+ type: Sequelize.UUID,
128
+ allowNull: true,
129
+ field: 'updated_by',
130
+ },
131
+ deletedBy: {
132
+ type: Sequelize.UUID,
133
+ allowNull: true,
134
+ field: 'deleted_by',
135
+ }
136
+ });
137
+ }
138
+ };
@@ -0,0 +1,12 @@
1
+ import { COMMAN_STATUS } from '../constants/app';
2
+ import { IDefaultAttributes } from './commonInterface';
3
+ export interface IAgeGroupModelAttributes extends IDefaultAttributes {
4
+ id: string;
5
+ sportId?: string;
6
+ name: string;
7
+ code: string;
8
+ minAge?: number;
9
+ maxAge?: number;
10
+ description?: string;
11
+ status: COMMAN_STATUS;
12
+ }
@@ -0,0 +1,24 @@
1
+ import { Document } from 'mongoose';
2
+ import { ASSESSMENT_TEST_STATUS } from '../constants/app';
3
+ import { IDefaultAttributes } from './commonInterface';
4
+ export interface IAssessmentTestTargetSkill {
5
+ skillId: string;
6
+ ageGroupId?: string;
7
+ minValue?: number;
8
+ }
9
+ export interface IAssessmentTestModelAttributes extends IDefaultAttributes, Document {
10
+ id: string;
11
+ sportId?: string;
12
+ sportRoleId?: string;
13
+ ageGroupId?: string;
14
+ name: string;
15
+ code: string;
16
+ description?: string;
17
+ passingRules?: string;
18
+ scoreFormula?: string;
19
+ documents?: string[];
20
+ videos?: string[];
21
+ targetSkills?: IAssessmentTestTargetSkill[];
22
+ requiredEquipment?: string[];
23
+ status: ASSESSMENT_TEST_STATUS;
24
+ }
@@ -1,9 +1,8 @@
1
1
  import { IDefaultAttributes } from './commonInterface';
2
- import { CATEGORY_TYPE, COMMAN_STATUS } from '../constants/app';
2
+ import { COMMAN_STATUS } from '../constants/app';
3
3
  export interface ICategoriesModelAttributes extends IDefaultAttributes {
4
4
  id: string;
5
5
  name: string;
6
6
  status: COMMAN_STATUS;
7
7
  instituteId?: string;
8
- type?: CATEGORY_TYPE;
9
8
  }
@@ -0,0 +1,10 @@
1
+ import { COMMAN_STATUS } from '../constants/app';
2
+ import { IDefaultAttributes } from './commonInterface';
3
+ export interface IEquipmentModelAttributes extends IDefaultAttributes {
4
+ id: string;
5
+ name: string;
6
+ code: string;
7
+ category?: string;
8
+ description?: string;
9
+ status: COMMAN_STATUS;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { COMMAN_STATUS, FACILITY_PLACE_TYPE } from '../constants/app';
2
+ import { IDefaultAttributes } from './commonInterface';
3
+ export interface IFacilityMasterModelAttributes extends IDefaultAttributes {
4
+ id: string;
5
+ name: string;
6
+ code: string;
7
+ type: FACILITY_PLACE_TYPE;
8
+ status: COMMAN_STATUS;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -244,7 +244,6 @@ export * from './userFinalResultInterface';
244
244
  export * from './refundInterface';
245
245
  export * from './kipiverseContactFormInterface';
246
246
  export * from './moduleDocsInterface';
247
- export * from './aiModelKeysInterface';
248
247
  export * from './accountFinancialYearInterface';
249
248
  export * from './accountPeriodLockInterface';
250
249
  export * from './accountNumberSequenceInterface';
@@ -255,3 +254,15 @@ export * from './accountCostCenterInterface';
255
254
  export * from './accountVoucherTypeInterface';
256
255
  export * from './vendorCompanyMetaInterface';
257
256
  export * from './productMetaInterface';
257
+ export * from './sportInterface';
258
+ export * from './sportCategoryInterface';
259
+ export * from './sportSubCategoryInterface';
260
+ export * from './sportRoleInterface';
261
+ export * from './equipmentInterface';
262
+ export * from './facilityMasterInterface';
263
+ export * from './sportGroupDataInterface';
264
+ export * from './unitInterface';
265
+ export * from './skillInterface';
266
+ export * from './ageGroupInterface';
267
+ export * from './assessmentTestInterface';
268
+ export * from './sportInfoInterface';
@@ -260,7 +260,6 @@ __exportStar(require("./userFinalResultInterface"), exports);
260
260
  __exportStar(require("./refundInterface"), exports);
261
261
  __exportStar(require("./kipiverseContactFormInterface"), exports);
262
262
  __exportStar(require("./moduleDocsInterface"), exports);
263
- __exportStar(require("./aiModelKeysInterface"), exports);
264
263
  __exportStar(require("./accountFinancialYearInterface"), exports);
265
264
  __exportStar(require("./accountPeriodLockInterface"), exports);
266
265
  __exportStar(require("./accountNumberSequenceInterface"), exports);
@@ -271,3 +270,16 @@ __exportStar(require("./accountCostCenterInterface"), exports);
271
270
  __exportStar(require("./accountVoucherTypeInterface"), exports);
272
271
  __exportStar(require("./vendorCompanyMetaInterface"), exports);
273
272
  __exportStar(require("./productMetaInterface"), exports);
273
+ // Arena Module
274
+ __exportStar(require("./sportInterface"), exports);
275
+ __exportStar(require("./sportCategoryInterface"), exports);
276
+ __exportStar(require("./sportSubCategoryInterface"), exports);
277
+ __exportStar(require("./sportRoleInterface"), exports);
278
+ __exportStar(require("./equipmentInterface"), exports);
279
+ __exportStar(require("./facilityMasterInterface"), exports);
280
+ __exportStar(require("./sportGroupDataInterface"), exports);
281
+ __exportStar(require("./unitInterface"), exports);
282
+ __exportStar(require("./skillInterface"), exports);
283
+ __exportStar(require("./ageGroupInterface"), exports);
284
+ __exportStar(require("./assessmentTestInterface"), exports);
285
+ __exportStar(require("./sportInfoInterface"), exports);
@@ -42,5 +42,4 @@ export interface IInstituteAttributes extends IDefaultAttributes {
42
42
  trialPlanCount: number;
43
43
  partnersIds?: string[];
44
44
  isPlayHouse?: boolean;
45
- note?: string;
46
45
  }
@@ -0,0 +1,15 @@
1
+ import { BETTER_VALUE_TYPE, COMMAN_STATUS } from '../constants/app';
2
+ import { IDefaultAttributes } from './commonInterface';
3
+ export interface ISkillModelAttributes extends IDefaultAttributes {
4
+ id: string;
5
+ sportId?: string;
6
+ unitId?: string;
7
+ name: string;
8
+ code: string;
9
+ description?: string;
10
+ minValue?: number;
11
+ maxValue?: number;
12
+ betterValueType?: BETTER_VALUE_TYPE;
13
+ valueSide?: string[];
14
+ status: COMMAN_STATUS;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { IDefaultAttributes } from "./commonInterface";
2
+ export interface ISportGroupDataModelAttributes extends IDefaultAttributes {
3
+ id: string;
4
+ sportId: string;
5
+ facilityId?: string | null;
6
+ equipmentId?: string | null;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,9 @@
1
1
  import { IDefaultAttributes } from './commonInterface';
2
- import { CATEGORY_TYPE, COMMAN_STATUS } from '../constants/app';
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
  }
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import { APP_TYPE, EMAIL_VERIFICATION, MOBILE_VERIFICATION, USER_STATUS, USER_TYPES } from '../constants/app';
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,5 +42,4 @@ export interface IUserAttributes extends IDefaultAttributes {
42
42
  district?: string;
43
43
  area?: string;
44
44
  taluka?: string;
45
- status?: USER_STATUS;
46
45
  }
@@ -28,7 +28,7 @@ export interface IVendorCompanyMetaAttributes extends IDefaultAttributes, Docume
28
28
  logo?: string;
29
29
  banner?: string;
30
30
  address1: string;
31
- address2?: string;
31
+ address2: string;
32
32
  area: string;
33
33
  district?: string;
34
34
  pinCode: string;
@@ -0,0 +1,4 @@
1
+ import { Model } from 'mongoose';
2
+ import { IAssessmentTestModelAttributes } from '../../interfaces/assessmentTestInterface';
3
+ declare const AssessmentTestModel: Model<IAssessmentTestModelAttributes>;
4
+ export default AssessmentTestModel;
@@ -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,5 @@ 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';
@@ -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.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,8 @@ 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; } });
@@ -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,4 @@
1
+ import { Model } from 'mongoose';
2
+ import { ISportInfoModelAttributes } from '../../interfaces/sportInfoInterface';
3
+ declare const SportInfoModel: Model<ISportInfoModelAttributes>;
4
+ export default SportInfoModel;