@kipicore/dbcore 1.1.642 → 1.1.644

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 (77) hide show
  1. package/dist/constants/app.d.ts +14 -2
  2. package/dist/constants/app.js +17 -2
  3. package/dist/interfaces/ageGroupInterface.d.ts +9 -0
  4. package/dist/interfaces/ageGroupInterface.js +2 -0
  5. package/dist/interfaces/assessmentTestInterface.d.ts +24 -0
  6. package/dist/interfaces/assessmentTestInterface.js +2 -0
  7. package/dist/interfaces/equipmentInterface.d.ts +10 -0
  8. package/dist/interfaces/equipmentInterface.js +2 -0
  9. package/dist/interfaces/facilityMasterInterface.d.ts +9 -0
  10. package/dist/interfaces/facilityMasterInterface.js +2 -0
  11. package/dist/interfaces/facilitySportInterface.d.ts +6 -0
  12. package/dist/interfaces/facilitySportInterface.js +2 -0
  13. package/dist/interfaces/index.d.ts +11 -0
  14. package/dist/interfaces/index.js +12 -0
  15. package/dist/interfaces/skillInterface.d.ts +15 -0
  16. package/dist/interfaces/skillInterface.js +2 -0
  17. package/dist/interfaces/sportCategoryInterface.d.ts +9 -0
  18. package/dist/interfaces/sportCategoryInterface.js +2 -0
  19. package/dist/interfaces/sportInterface.d.ts +10 -0
  20. package/dist/interfaces/sportInterface.js +2 -0
  21. package/dist/interfaces/sportRoleInterface.d.ts +11 -0
  22. package/dist/interfaces/sportRoleInterface.js +2 -0
  23. package/dist/interfaces/sportSubCategoryInterface.d.ts +10 -0
  24. package/dist/interfaces/sportSubCategoryInterface.js +2 -0
  25. package/dist/interfaces/unitInterface.d.ts +10 -0
  26. package/dist/interfaces/unitInterface.js +2 -0
  27. package/dist/models/mongodb/assessmentTestModel.d.ts +4 -0
  28. package/dist/models/mongodb/assessmentTestModel.js +72 -0
  29. package/dist/models/mongodb/index.d.ts +1 -0
  30. package/dist/models/mongodb/index.js +4 -1
  31. package/dist/models/psql/ageGroupModel.d.ts +19 -0
  32. package/dist/models/psql/ageGroupModel.js +53 -0
  33. package/dist/models/psql/equipmentModel.d.ts +20 -0
  34. package/dist/models/psql/equipmentModel.js +57 -0
  35. package/dist/models/psql/facilityMasterModel.d.ts +18 -0
  36. package/dist/models/psql/facilityMasterModel.js +64 -0
  37. package/dist/models/psql/facilitySportModel.d.ts +12 -0
  38. package/dist/models/psql/facilitySportModel.js +51 -0
  39. package/dist/models/psql/index.d.ts +10 -0
  40. package/dist/models/psql/index.js +22 -1
  41. package/dist/models/psql/skillModel.d.ts +25 -0
  42. package/dist/models/psql/skillModel.js +99 -0
  43. package/dist/models/psql/sportCategoryModel.d.ts +19 -0
  44. package/dist/models/psql/sportCategoryModel.js +53 -0
  45. package/dist/models/psql/sportModel.d.ts +20 -0
  46. package/dist/models/psql/sportModel.js +57 -0
  47. package/dist/models/psql/sportRoleModel.d.ts +21 -0
  48. package/dist/models/psql/sportRoleModel.js +70 -0
  49. package/dist/models/psql/sportSubCategoryModel.d.ts +20 -0
  50. package/dist/models/psql/sportSubCategoryModel.js +75 -0
  51. package/dist/models/psql/unitModel.d.ts +20 -0
  52. package/dist/models/psql/unitModel.js +57 -0
  53. package/dist/types/ageGroupType.d.ts +2 -0
  54. package/dist/types/ageGroupType.js +2 -0
  55. package/dist/types/assessmentTestType.d.ts +2 -0
  56. package/dist/types/assessmentTestType.js +2 -0
  57. package/dist/types/equipmentType.d.ts +2 -0
  58. package/dist/types/equipmentType.js +2 -0
  59. package/dist/types/facilityMasterType.d.ts +3 -0
  60. package/dist/types/facilityMasterType.js +2 -0
  61. package/dist/types/facilitySportType.d.ts +2 -0
  62. package/dist/types/facilitySportType.js +2 -0
  63. package/dist/types/index.d.ts +11 -0
  64. package/dist/types/index.js +12 -0
  65. package/dist/types/skillType.d.ts +2 -0
  66. package/dist/types/skillType.js +2 -0
  67. package/dist/types/sportCategoryType.d.ts +2 -0
  68. package/dist/types/sportCategoryType.js +2 -0
  69. package/dist/types/sportRoleType.d.ts +2 -0
  70. package/dist/types/sportRoleType.js +2 -0
  71. package/dist/types/sportSubCategoryType.d.ts +2 -0
  72. package/dist/types/sportSubCategoryType.js +2 -0
  73. package/dist/types/sportType.d.ts +2 -0
  74. package/dist/types/sportType.js +2 -0
  75. package/dist/types/unitType.d.ts +2 -0
  76. package/dist/types/unitType.js +2 -0
  77. package/package.json +2 -2
@@ -223,8 +223,7 @@ export declare enum FEE_PAYMENT_STATUS {
223
223
  }
224
224
  export declare enum INSTITUTE_STATUS {
225
225
  ACTIVE = "ACTIVE",
226
- INACTIVE = "INACTIVE",
227
- BLOCK = "BLOCK"
226
+ INACTIVE = "INACTIVE"
228
227
  }
229
228
  export declare enum OFFER_TYPE {
230
229
  AMOUNT = "AMOUNT",
@@ -1837,3 +1836,16 @@ export declare enum APK_TYPE {
1837
1836
  STUDENT_DEMO = "STUDENT_DEMO",
1838
1837
  PLAYGROUP_DEMO = "PLAYGROUP_DEMO"
1839
1838
  }
1839
+ export declare enum FACILITY_PLACE_TYPE {
1840
+ INDOOR = "INDOOR",
1841
+ OUTDOOR = "OUTDOOR"
1842
+ }
1843
+ export declare enum BETTER_VALUE_TYPE {
1844
+ HIGHER = "HIGHER",
1845
+ LOWER = "LOWER"
1846
+ }
1847
+ export declare enum ASSESSMENT_TEST_STATUS {
1848
+ ACTIVE = "ACTIVE",
1849
+ INACTIVE = "INACTIVE",
1850
+ DRAFT = "DRAFT"
1851
+ }
@@ -5,7 +5,7 @@ exports.EXAM_ANSWER_SHEET_QUESTION_RESULT = exports.PAYMENT_TERMS_TYPE = exports
5
5
  exports.PROJECT_ASSESSMENT_OPTION_STATUS = exports.USER_BOOK_ASSESSMENT_STATUS = exports.BOOK_ASSESSMENT_DATE_STATUS = exports.TASK_MANAGEMENT_STATUS = exports.USER_DETAILS_FILED = exports.DEVICE_TYPE = exports.templateKeyWord = exports.bankAccountRegexMap = exports.EMAIL_SUBJECTS = exports.PDF_TEMPLATES = exports.EMAIL_TEMPLATES = exports.PINCODE_API_URL = exports.APPLE_AUTH = exports.META_AUTH = exports.GOOGLE_AUTH = exports.API_URL = exports.DEFAULT_USER_LOGO = exports.DEFAULT_INSTITUTED_LOGO = exports.UPLOAD_PATH = exports.SVG_URL_PATH = exports.TO_DO_STATUS = exports.LECTURE_TITLE = exports.LECTURE_STATUS = exports.SCHOOL_INFORMATION_STEP = exports.CASTE = exports.RELIGION_CASTE = exports.NATIONALITY = exports.CATEGORY = exports.IS_PRINCIPAL = exports.FEE_TYPE = exports.BOOLEAN_STATUS = exports.PROPERTY_STATUS = exports.DESIGNATION_OF_PERSON = exports.TRUST_REGISTERED_UNDER = exports.TRUST_TYPE = exports.SVA_NAME = exports.QDC_NAME = exports.USER_PAYOUT_TYPE = exports.PARENTS_CHILDREN_CURRENT = exports.CHAPTER_INDEX_FILE_TYPE = exports.FEE_HISTORY_STATUS = exports.USER_CHAPTER_INDEX_STATUS = exports.CHAPTER_INDEX_TYPE = exports.IMAGE__NAME = exports.INQUIRY_STATUS = exports.INQUIRY_REFERRED_BY = exports.EXAM_GROUP_STANDARD_RESULT = exports.EXAM_GROUP_STATUS = exports.SUBJECT_INDEX_TYPE = exports.LECTURE_SLOT_DURATION = void 0;
6
6
  exports.COMPETITION_EVENTS = exports.PAYMENT_STATUS = exports.INCOME_EXPENSE_SOURCE = exports.INCOME_EXPENSE_TYPE = exports.APPOINTMENT_STATUS = exports.MAINTENANCE_MODULE_NAME = exports.MAINTENANCE_TYPE = exports.MAINTENANCE_MODE = exports.ASSIGN_FILE_TYPE = exports.LOST_FOUND_ITEM_STATUS = exports.PAYMENT_PROCESSING_CALLBACK_URL = exports.PAYMENT_PROCESSING_PAGE_URL = exports.PAYMENT_PROCESSING_STATUS_URL = exports.WALLET_TRANSACTION_VALID_DATE_FOR_OTP_IN_MINUTES = exports.WALLET_TRANSACTION_VALID_DATE_IN_MINUTES = exports.PAYMENT_METHODS = exports.PAYMENT_GATEWAY_TYPES = exports.JOB_ACTION = exports.ONE_GB_BYTES = exports.CHARGE_PER_TRANSACTION_ITEM_UNIT = exports.INSTITUTE_SUBSCRIPTION_PLAN_STATUS = exports.WALLET_TRANSACTION_USERS_TYPE = exports.WALLET_HISTORY_STATUS = exports.WALLET_HISTORY_ACTION = exports.WALLET_HISTORY_ITEM_TYPE = exports.WALLET_HISTORY_TYPE = exports.REPLACE_TEACHER_STATUS = exports.TEACHER_TYPE = exports.INVOICE_TYPE = exports.PURCHASE_STATUS = exports.COLUMN_LIST_TITLE = exports.INVOICE_PAYMENT_TYPE = exports.PDF_CHEQUE_FREQUENCY = exports.PDF_CHEQUE_STATUS = exports.LANGUAGES = exports.HOME_WORK_STATUS = exports.SOCKET_EVENTS = exports.SUBSCRIPTION_PLAN_FILES_TYPE = exports.VALID_CURRENCY = exports.SUBSCRIPTION_PLAN_TYPE = exports.SUBSCRIPTION_PLAN_CHARGE_INTERVAL = exports.DISCOUNT_TYPE = exports.CONTACT_FEED_BACK_TYPE = exports.PLANNER_SYNC_STATUS = exports.RMS_NOTIFICATION_DAYS = exports.NOTIFICATION_ACTION = exports.ONLINE_EXAM_NOTIFICATION_TYPE = exports.NOTIFICATION_MODULE_TYPE = exports.NOTIFICATION_STATUS = exports.NOTIFICATION_TYPE = void 0;
7
7
  exports.RMS_PRIORITY = exports.RMS_APPROVAL_STATUS = exports.RMS_TRANSACTION_TYPE = exports.RMS_RESOURCE_UNIT = exports.RMS_RESOURCE_TYPE = exports.RMS_ASSET_CONDITION = exports.CERTIFICATE_REQUEST_TYPE = exports.CERTIFICATE_REQUEST_STATUS = exports.FEE_SUBMISSION_STATUS = exports.VIDEO_DIRECTION_TYPE = exports.VIDEO_EVENT_TYPE = exports.USER_HAS_PENALTY_TITLE = exports.USER_HAS_PENALTY_TYPE = exports.PAYOUT_STATUS = exports.NOTICEBOARD_STATUS = exports.NOTICEBOARD_TYPE = exports.PERMISSION_TYPE = exports.NOTIFICATION_SEND_STATUS = exports.MEMBERSHIP_STATUS = exports.COMMUNITY_TYPE = exports.DESIGNATION_TYPE = exports.ADDITIONAL_PAYOUT_TYPE = exports.POSTAL_DISPATCH_STATUS = exports.CALL_TYPE = exports.SEARCH_TYPE = exports.REPORT_TYPE = exports.DEVICE_TYPE_APP_ANALYTICS = exports.APP_ANALYTICS_EVENT_TYPE = exports.EXPORT_SHEET_TYPE = exports.GRANT_AND_DONATION_TYPE = exports.TICKET_RAISE_PRIORITY = exports.TICKET_RAISE_STATUS = exports.TERM_AND_CONDITION_STATUS = exports.EDUCATION_OFFICER_TYPE = exports.HOME_WORK_TYPE = exports.STUDENT_FEE_PROCESS_STATUS = exports.FEE_COLLECTION_TYPE = exports.BANK_ACCOUNT_TYPE = exports.STUDENT_LEAVE_TYPE = exports.STUDENT_LEAVE_STATUS = exports.CERTIFICATE_TYPE = exports.CERTIFICATE_FOR = exports.SHEET_TYPE = exports.COMPETITION_USER_ROLE = exports.RESULT_STATUS = exports.COMPETITION_STATUS = exports.STATUS_BY_PARENTS = exports.COMPETITION_TYPE = exports.CAMPUS_CARNIVAL_STATUS = exports.COMPETITION_TYPE_CATEGORY = void 0;
8
- exports.APK_TYPE = exports.AccountAuditAction = exports.AccountBudgetType = exports.AccountTaxDirection = exports.AccountFundType = exports.AccountSyncAction = exports.AccountIntegrationProvider = exports.AccountApprovalActionType = exports.AccountDepreciationMethod = exports.AccountMatchStatus = exports.AccountExpensePaymentStatus = exports.AccountPaymentMode = exports.AccountVoucherTypeCode = exports.AccountCostCenterRefType = exports.AccountCostCenterType = exports.AccountPartyMode = exports.AccountPartyType = exports.AccountSourceModule = exports.AccountPostingEventStatus = exports.AccountBalanceType = exports.AccountApprovalStatus = exports.AccountVoucherStatus = exports.AccountLedgerType = exports.AccountNormalBalance = exports.AccountNature = exports.CONTACT_INTEREST_STATUS = exports.CONTACT_INTEREST_TYPE = exports.RMS_EXPENSE_TYPE = exports.RMS_DIGITAL_STATUS = exports.RMS_BOOKING_STATUS = exports.RMS_TICKET_PRIORITY = exports.RMS_TICKET_STATUS = exports.REFUND_ENTITY_TYPE = exports.REFUND_STATUS = exports.FINAL_RESULT_TYPE = exports.FINAL_RESULT = exports.GRADE = exports.RMS_STOCK_SCOPE = exports.RMS_AUDIT_ACTION = exports.RMS_ASSET_LIFECYCLE = exports.RMS_PO_FULFILLMENT_STATUS = exports.RMS_GRN_ACTION_TYPE = void 0;
8
+ exports.ASSESSMENT_TEST_STATUS = exports.BETTER_VALUE_TYPE = exports.FACILITY_PLACE_TYPE = exports.APK_TYPE = exports.AccountAuditAction = exports.AccountBudgetType = exports.AccountTaxDirection = exports.AccountFundType = exports.AccountSyncAction = exports.AccountIntegrationProvider = exports.AccountApprovalActionType = exports.AccountDepreciationMethod = exports.AccountMatchStatus = exports.AccountExpensePaymentStatus = exports.AccountPaymentMode = exports.AccountVoucherTypeCode = exports.AccountCostCenterRefType = exports.AccountCostCenterType = exports.AccountPartyMode = exports.AccountPartyType = exports.AccountSourceModule = exports.AccountPostingEventStatus = exports.AccountBalanceType = exports.AccountApprovalStatus = exports.AccountVoucherStatus = exports.AccountLedgerType = exports.AccountNormalBalance = exports.AccountNature = exports.CONTACT_INTEREST_STATUS = exports.CONTACT_INTEREST_TYPE = exports.RMS_EXPENSE_TYPE = exports.RMS_DIGITAL_STATUS = exports.RMS_BOOKING_STATUS = exports.RMS_TICKET_PRIORITY = exports.RMS_TICKET_STATUS = exports.REFUND_ENTITY_TYPE = exports.REFUND_STATUS = exports.FINAL_RESULT_TYPE = exports.FINAL_RESULT = exports.GRADE = exports.RMS_STOCK_SCOPE = exports.RMS_AUDIT_ACTION = exports.RMS_ASSET_LIFECYCLE = exports.RMS_PO_FULFILLMENT_STATUS = exports.RMS_GRN_ACTION_TYPE = void 0;
9
9
  const env_1 = require("../configs/env");
10
10
  exports.SIXTY = 60;
11
11
  exports.ONE_HUNDRED = 100;
@@ -274,7 +274,6 @@ var INSTITUTE_STATUS;
274
274
  (function (INSTITUTE_STATUS) {
275
275
  INSTITUTE_STATUS["ACTIVE"] = "ACTIVE";
276
276
  INSTITUTE_STATUS["INACTIVE"] = "INACTIVE";
277
- INSTITUTE_STATUS["BLOCK"] = "BLOCK";
278
277
  })(INSTITUTE_STATUS || (exports.INSTITUTE_STATUS = INSTITUTE_STATUS = {}));
279
278
  var OFFER_TYPE;
280
279
  (function (OFFER_TYPE) {
@@ -2195,3 +2194,19 @@ var APK_TYPE;
2195
2194
  APK_TYPE["STUDENT_DEMO"] = "STUDENT_DEMO";
2196
2195
  APK_TYPE["PLAYGROUP_DEMO"] = "PLAYGROUP_DEMO";
2197
2196
  })(APK_TYPE || (exports.APK_TYPE = APK_TYPE = {}));
2197
+ var FACILITY_PLACE_TYPE;
2198
+ (function (FACILITY_PLACE_TYPE) {
2199
+ FACILITY_PLACE_TYPE["INDOOR"] = "INDOOR";
2200
+ FACILITY_PLACE_TYPE["OUTDOOR"] = "OUTDOOR";
2201
+ })(FACILITY_PLACE_TYPE || (exports.FACILITY_PLACE_TYPE = FACILITY_PLACE_TYPE = {}));
2202
+ var BETTER_VALUE_TYPE;
2203
+ (function (BETTER_VALUE_TYPE) {
2204
+ BETTER_VALUE_TYPE["HIGHER"] = "HIGHER";
2205
+ BETTER_VALUE_TYPE["LOWER"] = "LOWER";
2206
+ })(BETTER_VALUE_TYPE || (exports.BETTER_VALUE_TYPE = BETTER_VALUE_TYPE = {}));
2207
+ var ASSESSMENT_TEST_STATUS;
2208
+ (function (ASSESSMENT_TEST_STATUS) {
2209
+ ASSESSMENT_TEST_STATUS["ACTIVE"] = "ACTIVE";
2210
+ ASSESSMENT_TEST_STATUS["INACTIVE"] = "INACTIVE";
2211
+ ASSESSMENT_TEST_STATUS["DRAFT"] = "DRAFT";
2212
+ })(ASSESSMENT_TEST_STATUS || (exports.ASSESSMENT_TEST_STATUS = ASSESSMENT_TEST_STATUS = {}));
@@ -0,0 +1,9 @@
1
+ import { COMMAN_STATUS } from '../constants/app';
2
+ import { IDefaultAttributes } from './commonInterface';
3
+ export interface IAgeGroupModelAttributes 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,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
+ }
@@ -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 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 });
@@ -0,0 +1,6 @@
1
+ import { IDefaultAttributes } from "./commonInterface";
2
+ export interface IFacilitySportModelAttributes extends IDefaultAttributes {
3
+ id: string;
4
+ facilityId: string;
5
+ sportId: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -254,3 +254,14 @@ export * from './accountCostCenterInterface';
254
254
  export * from './accountVoucherTypeInterface';
255
255
  export * from './vendorCompanyMetaInterface';
256
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 './facilitySportInterface';
264
+ export * from './unitInterface';
265
+ export * from './skillInterface';
266
+ export * from './ageGroupInterface';
267
+ export * from './assessmentTestInterface';
@@ -270,3 +270,15 @@ __exportStar(require("./accountCostCenterInterface"), exports);
270
270
  __exportStar(require("./accountVoucherTypeInterface"), exports);
271
271
  __exportStar(require("./vendorCompanyMetaInterface"), exports);
272
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("./facilitySportInterface"), exports);
281
+ __exportStar(require("./unitInterface"), exports);
282
+ __exportStar(require("./skillInterface"), exports);
283
+ __exportStar(require("./ageGroupInterface"), exports);
284
+ __exportStar(require("./assessmentTestInterface"), exports);
@@ -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,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 });
@@ -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 });
@@ -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,4 @@ 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';
@@ -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.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,6 @@ 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; } });
@@ -0,0 +1,19 @@
1
+ import { Model } from 'sequelize';
2
+ import { IAgeGroupModelAttributes } from '../../interfaces/ageGroupInterface';
3
+ import { TAgeGroupModelCreationAttributes } from '../../types/ageGroupType';
4
+ import { COMMAN_STATUS } from '../../constants/app';
5
+ export declare class AgeGroupModel extends Model<IAgeGroupModelAttributes, TAgeGroupModelCreationAttributes> {
6
+ id: string;
7
+ name: string;
8
+ code: string;
9
+ description?: string;
10
+ status: COMMAN_STATUS;
11
+ createdBy?: string;
12
+ updatedBy?: string;
13
+ deletedBy?: string;
14
+ readonly createdAt: Date;
15
+ readonly updatedAt: Date;
16
+ readonly deletedAt?: string;
17
+ static associate(models: any): void;
18
+ }
19
+ export default AgeGroupModel;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgeGroupModel = void 0;
4
+ const sequelize_1 = require("sequelize");
5
+ const index_1 = require("./index");
6
+ class AgeGroupModel extends sequelize_1.Model {
7
+ static associate(models) {
8
+ const { UserModel } = models;
9
+ AgeGroupModel.belongsTo(UserModel, {
10
+ foreignKey: { name: 'createdBy', allowNull: true, field: 'created_by' },
11
+ as: 'createdByUser',
12
+ });
13
+ AgeGroupModel.belongsTo(UserModel, {
14
+ foreignKey: { name: 'updatedBy', allowNull: true, field: 'updated_by' },
15
+ as: 'updatedByUser',
16
+ });
17
+ AgeGroupModel.belongsTo(UserModel, {
18
+ foreignKey: { name: 'deletedBy', allowNull: true, field: 'deleted_by' },
19
+ as: 'deletedByUser',
20
+ });
21
+ }
22
+ }
23
+ exports.AgeGroupModel = AgeGroupModel;
24
+ AgeGroupModel.init({
25
+ id: {
26
+ type: sequelize_1.DataTypes.UUID,
27
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
28
+ allowNull: false,
29
+ primaryKey: true,
30
+ },
31
+ name: {
32
+ type: sequelize_1.DataTypes.STRING,
33
+ allowNull: true,
34
+ },
35
+ code: {
36
+ type: sequelize_1.DataTypes.STRING,
37
+ allowNull: true,
38
+ },
39
+ description: {
40
+ type: sequelize_1.DataTypes.TEXT,
41
+ allowNull: true,
42
+ },
43
+ status: {
44
+ type: sequelize_1.DataTypes.STRING,
45
+ allowNull: true,
46
+ },
47
+ }, {
48
+ modelName: 'AgeGroupModel',
49
+ tableName: 'age_groups',
50
+ timestamps: true,
51
+ sequelize: index_1.sequelize,
52
+ });
53
+ exports.default = AgeGroupModel;
@@ -0,0 +1,20 @@
1
+ import { Model } from 'sequelize';
2
+ import { IEquipmentModelAttributes } from '../../interfaces/equipmentInterface';
3
+ import { TEquipmentModelCreationAttributes } from '../../types/equipmentType';
4
+ import { COMMAN_STATUS } from '../../constants/app';
5
+ export declare class EquipmentModel extends Model<IEquipmentModelAttributes, TEquipmentModelCreationAttributes> {
6
+ id: string;
7
+ name: string;
8
+ code: string;
9
+ category?: string;
10
+ description?: string;
11
+ status: COMMAN_STATUS;
12
+ createdBy?: string;
13
+ updatedBy?: string;
14
+ deletedBy?: string;
15
+ readonly createdAt: Date;
16
+ readonly updatedAt: Date;
17
+ readonly deletedAt?: string;
18
+ static associate(models: any): void;
19
+ }
20
+ export default EquipmentModel;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EquipmentModel = void 0;
4
+ const sequelize_1 = require("sequelize");
5
+ const index_1 = require("./index");
6
+ class EquipmentModel extends sequelize_1.Model {
7
+ static associate(models) {
8
+ const { UserModel } = models;
9
+ EquipmentModel.belongsTo(UserModel, {
10
+ foreignKey: { name: 'createdBy', allowNull: true, field: 'created_by' },
11
+ as: 'createdByUser',
12
+ });
13
+ EquipmentModel.belongsTo(UserModel, {
14
+ foreignKey: { name: 'updatedBy', allowNull: true, field: 'updated_by' },
15
+ as: 'updatedByUser',
16
+ });
17
+ EquipmentModel.belongsTo(UserModel, {
18
+ foreignKey: { name: 'deletedBy', allowNull: true, field: 'deleted_by' },
19
+ as: 'deletedByUser',
20
+ });
21
+ }
22
+ }
23
+ exports.EquipmentModel = EquipmentModel;
24
+ EquipmentModel.init({
25
+ id: {
26
+ type: sequelize_1.DataTypes.UUID,
27
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
28
+ allowNull: false,
29
+ primaryKey: true,
30
+ },
31
+ name: {
32
+ type: sequelize_1.DataTypes.STRING,
33
+ allowNull: true,
34
+ },
35
+ code: {
36
+ type: sequelize_1.DataTypes.STRING,
37
+ allowNull: true,
38
+ },
39
+ category: {
40
+ type: sequelize_1.DataTypes.STRING,
41
+ allowNull: true,
42
+ },
43
+ description: {
44
+ type: sequelize_1.DataTypes.TEXT,
45
+ allowNull: true,
46
+ },
47
+ status: {
48
+ type: sequelize_1.DataTypes.STRING,
49
+ allowNull: true,
50
+ },
51
+ }, {
52
+ modelName: 'EquipmentModel',
53
+ tableName: 'equipments',
54
+ timestamps: true,
55
+ sequelize: index_1.sequelize,
56
+ });
57
+ exports.default = EquipmentModel;
@@ -0,0 +1,18 @@
1
+ import { Model } from 'sequelize';
2
+ import { IFacilityMasterModelAttributes } from '../../interfaces/facilityMasterInterface';
3
+ import { TFacilityMasterModelCreationAttributes } from '../../types/facilityMasterType';
4
+ import { COMMAN_STATUS, FACILITY_PLACE_TYPE } from '../../constants/app';
5
+ export default class FacilityMasterModel extends Model<IFacilityMasterModelAttributes, TFacilityMasterModelCreationAttributes> {
6
+ id: string;
7
+ name: string;
8
+ code: string;
9
+ type: FACILITY_PLACE_TYPE;
10
+ status: COMMAN_STATUS;
11
+ createdBy?: string;
12
+ updatedBy?: string;
13
+ deletedBy?: string;
14
+ readonly createdAt: Date;
15
+ readonly updatedAt: Date;
16
+ readonly deletedAt?: string;
17
+ static associate(models: any): void;
18
+ }
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const sequelize_1 = require("sequelize");
4
+ const index_1 = require("./index");
5
+ class FacilityMasterModel extends sequelize_1.Model {
6
+ static associate(models) {
7
+ const { UserModel } = models;
8
+ FacilityMasterModel.belongsTo(UserModel, {
9
+ foreignKey: { name: 'createdBy', allowNull: true, field: 'created_by' },
10
+ as: 'createdByUser',
11
+ });
12
+ FacilityMasterModel.belongsTo(UserModel, {
13
+ foreignKey: { name: 'updatedBy', allowNull: true, field: 'updated_by' },
14
+ as: 'updatedByUser',
15
+ });
16
+ FacilityMasterModel.belongsTo(UserModel, {
17
+ foreignKey: { name: 'deletedBy', allowNull: true, field: 'deleted_by' },
18
+ as: 'deletedByUser',
19
+ });
20
+ // FacilityMasterModel.belongsToMany(SportModel, {
21
+ // through: FacilitySportModel,
22
+ // foreignKey: 'facilityId',
23
+ // otherKey: 'sportId',
24
+ // as: 'facilitySportsList',
25
+ // });
26
+ // SportModel.belongsToMany(FacilityMasterModel, {
27
+ // through: FacilitySportModel,
28
+ // foreignKey: 'sportId',
29
+ // otherKey: 'facilityId',
30
+ // as: 'sportFacilitiesList',
31
+ // });
32
+ }
33
+ }
34
+ exports.default = FacilityMasterModel;
35
+ FacilityMasterModel.init({
36
+ id: {
37
+ type: sequelize_1.DataTypes.UUID,
38
+ defaultValue: sequelize_1.DataTypes.UUIDV4,
39
+ allowNull: false,
40
+ primaryKey: true,
41
+ },
42
+ name: {
43
+ type: sequelize_1.DataTypes.STRING,
44
+ allowNull: true,
45
+ },
46
+ code: {
47
+ type: sequelize_1.DataTypes.STRING,
48
+ allowNull: true,
49
+ },
50
+ type: {
51
+ type: sequelize_1.DataTypes.STRING,
52
+ allowNull: true,
53
+ },
54
+ status: {
55
+ type: sequelize_1.DataTypes.STRING,
56
+ allowNull: true,
57
+ },
58
+ }, {
59
+ sequelize: index_1.sequelize,
60
+ modelName: 'FacilityMasterModel',
61
+ tableName: 'facility_masters',
62
+ paranoid: true,
63
+ timestamps: true,
64
+ });