@kipicore/dbcore 1.1.659 → 1.1.661

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 (134) hide show
  1. package/dist/commonValidator/commandValidator.d.ts +27 -0
  2. package/dist/commonValidator/commandValidator.js +225 -0
  3. package/dist/commonValidator/index.d.ts +2 -0
  4. package/dist/commonValidator/index.js +18 -0
  5. package/dist/commonValidator/joiCommonValidator.d.ts +12 -0
  6. package/dist/commonValidator/joiCommonValidator.js +47 -0
  7. package/dist/commonValidator/joiSchemaBuilder.d.ts +6 -0
  8. package/dist/commonValidator/joiSchemaBuilder.js +70 -0
  9. package/dist/constants/app.d.ts +15 -12
  10. package/dist/constants/app.js +20 -17
  11. package/dist/constants/errorMessages.d.ts +17 -0
  12. package/dist/constants/errorMessages.js +20 -1
  13. package/dist/constants/successMessages.d.ts +14 -0
  14. package/dist/constants/successMessages.js +17 -1
  15. package/dist/db/psql/migrations/20260714111425-change_status_enum_to_string_in_institutes.js +46 -0
  16. package/dist/db/psql/migrations/20260714131500-add_note_to_institutes.d.ts +2 -0
  17. package/dist/db/psql/migrations/20260714131500-add_note_to_institutes.js +20 -0
  18. package/dist/db/psql/migrations/20260715150000-create-ai-model-keys.d.ts +2 -0
  19. package/dist/db/psql/migrations/20260715150000-create-ai-model-keys.js +156 -0
  20. package/dist/db/psql/migrations/20260717071354-add_type_to_categories.d.ts +2 -0
  21. package/dist/db/psql/migrations/20260717071354-add_type_to_categories.js +19 -0
  22. package/dist/db/psql/migrations/20260717072745-add_type_to_sub_categories.d.ts +2 -0
  23. package/dist/db/psql/migrations/20260717072745-add_type_to_sub_categories.js +19 -0
  24. package/dist/db/psql/migrations/20260717095051-add_status_to_users.d.ts +2 -0
  25. package/dist/db/psql/migrations/20260717095051-add_status_to_users.js +19 -0
  26. package/dist/helpers/utils.d.ts +0 -3
  27. package/dist/helpers/utils.js +1 -28
  28. package/dist/index.d.ts +2 -0
  29. package/dist/index.js +2 -0
  30. package/dist/interfaces/aiModelKeysInterface.d.ts +15 -0
  31. package/dist/interfaces/categoriesInterface.d.ts +2 -1
  32. package/dist/interfaces/index.d.ts +1 -12
  33. package/dist/interfaces/index.js +1 -13
  34. package/dist/interfaces/instituteInterface.d.ts +1 -0
  35. package/dist/interfaces/subCategoriesInterface.d.ts +2 -1
  36. package/dist/interfaces/userInterface.d.ts +2 -1
  37. package/dist/interfaces/vendorCompanyMetaInterface.d.ts +1 -1
  38. package/dist/models/mongodb/index.d.ts +0 -2
  39. package/dist/models/mongodb/index.js +1 -6
  40. package/dist/models/mongodb/productMetaModel.js +8 -0
  41. package/dist/models/mongodb/vendorCompanyMetaModel.js +1 -1
  42. package/dist/models/psql/SubCategoriesModel.d.ts +2 -1
  43. package/dist/models/psql/SubCategoriesModel.js +5 -0
  44. package/dist/models/psql/aiModelKeysModel.d.ts +20 -0
  45. package/dist/models/psql/aiModelKeysModel.js +70 -0
  46. package/dist/models/psql/categoriesModel.d.ts +2 -1
  47. package/dist/models/psql/categoriesModel.js +5 -0
  48. package/dist/models/psql/index.d.ts +1 -10
  49. package/dist/models/psql/index.js +4 -23
  50. package/dist/models/psql/instituteModel.d.ts +1 -0
  51. package/dist/models/psql/instituteModel.js +5 -2
  52. package/dist/models/psql/userModel.d.ts +2 -1
  53. package/dist/models/psql/userModel.js +1 -0
  54. package/dist/types/aiModelKeysType.d.ts +3 -0
  55. package/dist/types/commonType.d.ts +20 -1
  56. package/dist/types/index.d.ts +1 -12
  57. package/dist/types/index.js +1 -13
  58. package/package.json +3 -2
  59. package/dist/db/psql/migrations/20260714095754-create-arena-models.js +0 -642
  60. package/dist/db/psql/migrations/20260720092201-replace-facility-sports-with-sport-group-data.d.ts +0 -2
  61. package/dist/db/psql/migrations/20260720092201-replace-facility-sports-with-sport-group-data.js +0 -138
  62. package/dist/interfaces/ageGroupInterface.d.ts +0 -12
  63. package/dist/interfaces/assessmentTestInterface.d.ts +0 -24
  64. package/dist/interfaces/equipmentInterface.d.ts +0 -10
  65. package/dist/interfaces/equipmentInterface.js +0 -2
  66. package/dist/interfaces/facilityMasterInterface.d.ts +0 -9
  67. package/dist/interfaces/facilityMasterInterface.js +0 -2
  68. package/dist/interfaces/skillInterface.d.ts +0 -15
  69. package/dist/interfaces/skillInterface.js +0 -2
  70. package/dist/interfaces/sportCategoryInterface.d.ts +0 -9
  71. package/dist/interfaces/sportCategoryInterface.js +0 -2
  72. package/dist/interfaces/sportGroupDataInterface.d.ts +0 -7
  73. package/dist/interfaces/sportGroupDataInterface.js +0 -2
  74. package/dist/interfaces/sportInfoInterface.d.ts +0 -23
  75. package/dist/interfaces/sportInfoInterface.js +0 -2
  76. package/dist/interfaces/sportInterface.d.ts +0 -10
  77. package/dist/interfaces/sportInterface.js +0 -2
  78. package/dist/interfaces/sportRoleInterface.d.ts +0 -11
  79. package/dist/interfaces/sportRoleInterface.js +0 -2
  80. package/dist/interfaces/sportSubCategoryInterface.d.ts +0 -10
  81. package/dist/interfaces/sportSubCategoryInterface.js +0 -2
  82. package/dist/interfaces/unitInterface.d.ts +0 -10
  83. package/dist/interfaces/unitInterface.js +0 -2
  84. package/dist/models/mongodb/assessmentTestModel.d.ts +0 -4
  85. package/dist/models/mongodb/assessmentTestModel.js +0 -72
  86. package/dist/models/mongodb/sportInfoModel.d.ts +0 -4
  87. package/dist/models/mongodb/sportInfoModel.js +0 -71
  88. package/dist/models/psql/ageGroupModel.d.ts +0 -22
  89. package/dist/models/psql/ageGroupModel.js +0 -76
  90. package/dist/models/psql/equipmentModel.d.ts +0 -20
  91. package/dist/models/psql/equipmentModel.js +0 -57
  92. package/dist/models/psql/facilityMasterModel.d.ts +0 -18
  93. package/dist/models/psql/facilityMasterModel.js +0 -64
  94. package/dist/models/psql/skillModel.d.ts +0 -25
  95. package/dist/models/psql/skillModel.js +0 -99
  96. package/dist/models/psql/sportCategoryModel.d.ts +0 -19
  97. package/dist/models/psql/sportCategoryModel.js +0 -53
  98. package/dist/models/psql/sportGroupDataModel.d.ts +0 -13
  99. package/dist/models/psql/sportGroupDataModel.js +0 -64
  100. package/dist/models/psql/sportModel.d.ts +0 -20
  101. package/dist/models/psql/sportModel.js +0 -58
  102. package/dist/models/psql/sportRoleModel.d.ts +0 -21
  103. package/dist/models/psql/sportRoleModel.js +0 -71
  104. package/dist/models/psql/sportSubCategoryModel.d.ts +0 -20
  105. package/dist/models/psql/sportSubCategoryModel.js +0 -75
  106. package/dist/models/psql/unitModel.d.ts +0 -20
  107. package/dist/models/psql/unitModel.js +0 -57
  108. package/dist/types/ageGroupType.d.ts +0 -2
  109. package/dist/types/ageGroupType.js +0 -2
  110. package/dist/types/assessmentTestType.d.ts +0 -2
  111. package/dist/types/assessmentTestType.js +0 -2
  112. package/dist/types/equipmentType.d.ts +0 -2
  113. package/dist/types/equipmentType.js +0 -2
  114. package/dist/types/facilityMasterType.d.ts +0 -3
  115. package/dist/types/facilityMasterType.js +0 -2
  116. package/dist/types/skillType.d.ts +0 -2
  117. package/dist/types/skillType.js +0 -2
  118. package/dist/types/sportCategoryType.d.ts +0 -2
  119. package/dist/types/sportCategoryType.js +0 -2
  120. package/dist/types/sportGroupDataType.d.ts +0 -3
  121. package/dist/types/sportGroupDataType.js +0 -2
  122. package/dist/types/sportInfoType.d.ts +0 -2
  123. package/dist/types/sportInfoType.js +0 -2
  124. package/dist/types/sportRoleType.d.ts +0 -2
  125. package/dist/types/sportRoleType.js +0 -2
  126. package/dist/types/sportSubCategoryType.d.ts +0 -2
  127. package/dist/types/sportSubCategoryType.js +0 -2
  128. package/dist/types/sportType.d.ts +0 -2
  129. package/dist/types/sportType.js +0 -2
  130. package/dist/types/unitType.d.ts +0 -2
  131. package/dist/types/unitType.js +0 -2
  132. /package/dist/db/psql/migrations/{20260714095754-create-arena-models.d.ts → 20260714111425-change_status_enum_to_string_in_institutes.d.ts} +0 -0
  133. /package/dist/interfaces/{ageGroupInterface.js → aiModelKeysInterface.js} +0 -0
  134. /package/dist/{interfaces/assessmentTestInterface.js → types/aiModelKeysType.js} +0 -0
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ANNOUCEMENT_SUCCESS_MESSAGES = exports.TYPE_MANAGEMENT_SUCCESS_MESSAGES = exports.PARENTS_SUCCESS_MESSAGES = exports.USER_INSTITUTE_META_SUCCESS_MESSAGES = exports.INSTITUTE_ENTITY_TYPE_SUCCESS_MESSAGES = exports.INSTITUTE_ENTITY_SUCCESS_MESSAGES = exports.WORKING_DAYS_SUCCESS_MESSAGES = exports.INSTITUTE_SUCCESS_MESSAGES = exports.MODULE_SUCCESS_MESSAGES = exports.ROLE_SUCCESS_MESSAGES = exports.CLASSROOM_SUCCESS_MESSAGES = exports.BATCH_SUCCESS_MESSAGES = exports.ACADEMIC_CALENDAR_SUCCESS_MESSAGES = exports.EVENT_SUCCESS_MESSAGES = exports.HOLIDAY_SUCCESS_MESSAGES = exports.USER_HAS_ROLL_NUMBER_SUCCESS_MESSAGES = exports.USER_HAS_OFFER_SUCCESS_MESSAGES = exports.FEE_REMINDER_SETTING_SUCCESS_MESSAGES = exports.FEEREMINDER_SUCCESS_MESSAGES = exports.FEESCOLLECTION_SUCCESS_MESSAGES = exports.OFFER_SUCCESS_MESSAGES = exports.CATEGORY_SUCCESS_MESSAGES = exports.INVENTORY_HISTORY_SUCCESS_MESSAGES = exports.INVENTORY_SUCCESS_MESSAGES = exports.USER_HAS_INVENTORY_HISTORY_SUCCESS_MESSAGES = exports.USER_HAS_INVENTORY_SUCCESS_MESSAGES = exports.SUBJECT_HAS_FEE_SUCCESS_MESSAGES = exports.FEE_HISTORY_SUCCESS_MESSAGES = exports.MASTER_LEAVE_SUCCESS_MESSAGES = exports.LEAVE_SUCCESS_MESSAGES = exports.PAYMENT_TERMS_SUCCESS_MESSAGES = exports.FACILITY_SUCCESS_MESSAGES = exports.FEE_REMINDER_SUCCESS_MESSAGES = exports.SCHOOL_SHIFT_SUCCESS_MESSAGES = exports.SUBSCRIPTION_SUCCESS_MESSAGES = exports.BANK_ACCOUNT_DETAILS_SUCCESS_MESSAGES = exports.ACCOUNT_RECEIPT_SUCCESS_MESSAGES = exports.FEE_TYPE_SUCCESS_MESSAGES = exports.FEEDBACK_SUCCESS_MESSAGES = exports.INFORMATION_SUPPORT_SUCCESS_MESSAGES = exports.INQUIRY_SUCCESS_MESSAGES = exports.FEE_SUCCESS_MESSAGES = exports.SCHOOL_FEES_COLLECTION_SUCCESS_MESSAGES = exports.USER_FEE_TYPE_SUCCESS_MESSAGES = exports.USER_FEE_TYPE_ACCOUNT_SUCCESS_MESSAGES = exports.ADMIN_SUCCESS_MESSAGES = exports.APPROVE_REQUEST_SUCCESS_MESSAGES = exports.BANNER_SUCCESS_MESSAGES = exports.USER_SUCCESS_MESSAGES = exports.SUCCESS_MESSAGES = void 0;
4
4
  exports.CERTIFICATES_HISTORY_SUCCESS_MESSAGES = exports.CERTIFICATES_MANAGEMENT_SUCCESS_MESSAGES = exports.DASHBOARD_MANAGEMENT_SUCCESS_MESSAGES = exports.PDC_HISTORY_SUCCESS_MESSAGES = exports.COLUMN_SUCCESS_MESSAGES = exports.INVOICE_SUCCESS_MESSAGES = exports.PRODUCT_SUCCESS_MESSAGES = exports.SUB_CATEGORY_SUCCESS_MESSAGES = exports.VENDOR_MANAGEMENT_SUCCESS_MESSAGES = exports.COIN_PURCHASE_OFFER_SUCCESS_MESSAGES = exports.SYLLABUS_SUCCESS_MESSAGES = exports.DAILY_BOOK_SUCCESS_MESSAGES = exports.USER_HAS_HOME_WORK_SUCCESS_MESSAGES = exports.HOME_WORK_SUCCESS_MESSAGES = exports.CLOUD_STORAGE_SUCCESS_MESSAGES = exports.SUBSCRIPTION_PLAN_SUCCESS_MESSAGES = exports.FLOOR_MANAGEMENT_SUCCESS_MESSAGES = exports.CAREER_SUCCESS_MESSAGES = exports.RULE_REGULATION_SUCCESS_MESSAGES = exports.CUSTOME_NOTIFICATION_SUCCESS_MESSAGES = exports.NOTIFICATION_SUCCESS_MESSAGES = exports.PHOTO_GALLERY_SUCCESS_MESSAGES = exports.CONTACT_FEED_BACK_SUCCESS_MESSAGES = exports.GENERATE_ID_CARD_SUCCESS_MESSAGES = exports.VEHICLE_SUCCESS_MESSAGES = exports.BATCH_SUBJECT_PROJECT_ASSESSMENT_SUCCESS_MESSAGES = exports.USER_BOOK_ASSESSMENT_SUCCESS_MESSAGES = exports.BATCH_SUBJECT_BOOK_ASSESSMENT_SUCCESS_MESSAGES = exports.TASK_MANAGEMENT_SUCCESS_MESSAGES = exports.EXAM_GROUP_SUCCESS_MESSAGES = exports.PLANNER_SUCCESS_MESSAGES = exports.USER_PAYOUT_HISTORY_SUCCESS_MESSAGES = exports.USER_PAYOUT_SUCCESS_MESSAGES = exports.SUBJECT_INDEX_SUCCESS_MESSAGES = exports.DRIVER_SUCCESS_MESSAGES = exports.BLOG_SUCCESS_MESSAGES = exports.VIDEO_ANALYST_SUCCESS_MESSAGES = exports.TESTIMONIAL_SUCCESS_MESSAGES = exports.PDC_CHEQUE_SUCCESS_MESSAGES = exports.GREETING_SUCCESS_MESSAGES = exports.USER_HAS_COURSE_SUCCESS_MESSAGES = exports.COURSE_SUCCESS_MESSAGES = exports.TO_DO_SUCCESS_MESSAGES = exports.SLOT_SUCCESS_MESSAGES = exports.TRIP_SUCCESS_MESSAGES = exports.LECTURE_SUCCESS_MESSAGES = exports.USER_SCHOOL_METADATA_SUCCESS_MESSAGES = exports.ATTENDANCE_SUCCESS_MESSAGES = exports.EXAM_HAS_ANSWER_SHEET_SUCCESS_MESSAGES = exports.EXAM_SUCCESS_MESSAGES = void 0;
5
5
  exports.PDC_CHEQUE_CONFIGURATION_SUCCESS_MESSAGES = exports.MARK_SHEET_CONFIGURATION_SUCCESS_MESSAGES = exports.INTERNAL_MARK_SUCCESS_MESSAGES = exports.APP_ANALYTICS_EVENT_SUCCESS_MESSAGES = exports.GRANT_AND_DONATION_SUCCESS_MESSAGES = exports.TICKET_RAISE_SUCCESS_MESSAGES = exports.TERM_AND_CONDITION_SUCCESS_MESSAGES = exports.EDUCATION_OFFICER_SUCCESS_MESSAGES = exports.USER_HAS_PENALTY_SUCCESS_MESSAGES = exports.PENALTY_SUCCESS_MESSAGES = exports.CLASSROOM_COLLECTION_SUCCESS_MESSAGES = exports.CLASSROOM_EVENT_SUCCESS_MESSAGES = exports.INSTITUTE_FEE_SUCCESS_MESSAGES = exports.FEE_CONFIG_SUCCESS_MESSAGES = exports.USER_DIRECTORY_SUCCESS_MESSAGES = exports.STUDENT_LEAVE_REQUEST_SUCCESS_MESSAGES = exports.EVENT_TEMPLATES_SUCCESS_MESSAGES = exports.POLL_SELECTION_SUCCESS_MESSAGES = exports.POLL_CREATE_SUCCESS_MESSAGES = exports.SHEET_FIELD_SUCCESS_MESSAGES = exports.CLONE_LIST_SUCCESS_MESSAGES = exports.COMPETITION_USER_SUCCESS_MESSAGES = exports.COMPETITION_GROUP_SUCCESS_MESSAGES = exports.COMPETITION_SUCCESS_MESSAGES = exports.CAMPUS_CARNIVAL_SUCCESS_MESSAGES = exports.INCOME_EXPENSE_SUCCESS_MESSAGES = exports.APPOINTMENT_HISTORY_SUCCESS_MESSAGES = exports.APPOINTMENT_SUCCESS_MESSAGES = exports.MAINTENANCE_SUCCESS_MESSAGES = exports.SEATING_ARRANGEMENT_SUCCESS_MESSAGES = exports.ASSIGN_FILE_SUCCESS_MESSAGES = exports.THEME_SUCCESS_MESSAGES = exports.B_DAY_WISH_SUCCESS_MESSAGES = exports.ADDITIONAL_DETAIL_SUCCESS_MESSAGES = exports.ADVERTISEMENT_SUCCESS_MESSAGES = exports.WORK_OFF_DAYS_SUCCESS_MESSAGES = exports.ENTITY_WISE_CALENDAR_SUCCESS_MESSAGES = exports.CAMPUS_SUCCESS_MESSAGES = exports.CANTEEN_SUCCESS_MESSAGES = exports.LOST_FOUND_ITEM_SUCCESS_MESSAGES = exports.PAYMENT_TRANSACTION_SUCCESS_MESSAGES = exports.USER_REQUIRED_STEPS_SUCCESS_MESSAGES = exports.JOB_APPLY_SUCCESS_MESSAGES = exports.ENTITY_GROUP_SUCCESS_MESSAGES = exports.USER_HAS_STORAGE_SUCCESS_MESSAGES = exports.INSTITUTE_SUBSCRIPTION_PLAN_SUCCESS_MESSAGES = exports.WALLET_TRANSACTION_SUCCESS_MESSAGES = exports.WALLET_HISTORY_SUCCESS_MESSAGES = exports.WALLET_SUCCESS_MESSAGES = exports.REPLACE_TEACHER_SUCCESS_MESSAGES = void 0;
6
- exports.VENDOR_COMPANY_META_SUCCESS_MESSAGES = exports.PRODUCT_META_SUCCESS_MESSAGES = exports.ACCOUNT_VOUCHER_TYPE_SUCCESS_MESSAGES = exports.ACCOUNT_COST_CENTER_SUCCESS_MESSAGES = exports.ACCOUNT_LEDGER_OPENING_SUCCESS_MESSAGES = exports.ACCOUNT_LEDGER_SUCCESS_MESSAGES = exports.ACCOUNT_GROUP_SUCCESS_MESSAGES = exports.ACCOUNT_NUMBER_SEQUENCE_SUCCESS_MESSAGES = exports.ACCOUNT_PERIOD_LOCK_SUCCESS_MESSAGES = exports.ACCOUNT_FINANCIAL_YEAR_SUCCESS_MESSAGES = exports.KIPIVERSE_CONTACT_FORM_SUCCESS_MESSAGES = exports.REFUND_SUCCESS_MESSAGES = exports.RMS_SUCCESS_MESSAGES = exports.ONLINE_LECTURE_SUCCESS_MESSAGES = exports.CERTIFICATE_REQUEST_SUCCESS_MESSAGE = exports.USER_HAS_FEE_SUBMISSION_SUCCESS_MESSAGES = exports.ASSIGN_SUBJECT_SUCCESS_MESSAGES = exports.FEE_SUBMISSION_SUCCESS_MESSAGES = exports.USER_HAS_PENALTY_HISTORY_SUCCESS_MESSAGES = exports.PAST_YEAR_RECORD_SUCCESS_MESSAGES = exports.NOTICEBOARD_SUCCESS_MESSAGES = exports.USER_HAS_PERMISSION_SUCCESS_MESSAGES = exports.ROLE_MANAGEMENT_SUCCESS_MESSAGES = exports.ROLE_HAS_PERMISSION_SUCCESS_MESSAGES = exports.PERMISSION_SUCCESS_MESSAGES = exports.COMMUNITY_MESSAGE_SUCCESS_MESSAGES = exports.COMMUNITY_GROUP_SUCCESS_MESSAGES = exports.MEMBER_ADDED_SUCCESS_MESSAGES = exports.DESIGNATION_SUCCESS_MESSAGES = exports.USER_HAS_OFFER_AND_DISCOUNT_SUCCESS_MESSAGES = exports.OFFER_AND_DISCOUNT_SUCCESS_MESSAGES = exports.POSTAL_DISPATCH_SUCCESS_MESSAGES = exports.CALL_REGISTER_SUCCESS_MESSAGES = exports.VISITOR_BOOK_SUCCESS_MESSAGES = void 0;
6
+ exports.AI_MODEL_KEYS_SUCCESS_MESSAGES = exports.VENDOR_COMPANY_META_SUCCESS_MESSAGES = exports.PRODUCT_META_SUCCESS_MESSAGES = exports.ACCOUNT_VOUCHER_TYPE_SUCCESS_MESSAGES = exports.ACCOUNT_COST_CENTER_SUCCESS_MESSAGES = exports.ACCOUNT_LEDGER_OPENING_SUCCESS_MESSAGES = exports.ACCOUNT_LEDGER_SUCCESS_MESSAGES = exports.ACCOUNT_GROUP_SUCCESS_MESSAGES = exports.ACCOUNT_NUMBER_SEQUENCE_SUCCESS_MESSAGES = exports.ACCOUNT_PERIOD_LOCK_SUCCESS_MESSAGES = exports.ACCOUNT_FINANCIAL_YEAR_SUCCESS_MESSAGES = exports.KIPIVERSE_CONTACT_FORM_SUCCESS_MESSAGES = exports.REFUND_SUCCESS_MESSAGES = exports.MODULE_DOCS_SUCCESS_MESSAGES = exports.RMS_SUCCESS_MESSAGES = exports.ONLINE_LECTURE_SUCCESS_MESSAGES = exports.CERTIFICATE_REQUEST_SUCCESS_MESSAGE = exports.USER_HAS_FEE_SUBMISSION_SUCCESS_MESSAGES = exports.ASSIGN_SUBJECT_SUCCESS_MESSAGES = exports.FEE_SUBMISSION_SUCCESS_MESSAGES = exports.USER_HAS_PENALTY_HISTORY_SUCCESS_MESSAGES = exports.PAST_YEAR_RECORD_SUCCESS_MESSAGES = exports.NOTICEBOARD_SUCCESS_MESSAGES = exports.USER_HAS_PERMISSION_SUCCESS_MESSAGES = exports.ROLE_MANAGEMENT_SUCCESS_MESSAGES = exports.ROLE_HAS_PERMISSION_SUCCESS_MESSAGES = exports.PERMISSION_SUCCESS_MESSAGES = exports.COMMUNITY_MESSAGE_SUCCESS_MESSAGES = exports.COMMUNITY_GROUP_SUCCESS_MESSAGES = exports.MEMBER_ADDED_SUCCESS_MESSAGES = exports.DESIGNATION_SUCCESS_MESSAGES = exports.USER_HAS_OFFER_AND_DISCOUNT_SUCCESS_MESSAGES = exports.OFFER_AND_DISCOUNT_SUCCESS_MESSAGES = exports.POSTAL_DISPATCH_SUCCESS_MESSAGES = exports.CALL_REGISTER_SUCCESS_MESSAGES = exports.VISITOR_BOOK_SUCCESS_MESSAGES = void 0;
7
7
  var SUCCESS_MESSAGES;
8
8
  (function (SUCCESS_MESSAGES) {
9
9
  SUCCESS_MESSAGES["CREATE_SUCCESS"] = "Resource created successfully";
@@ -1271,6 +1271,14 @@ var RMS_SUCCESS_MESSAGES;
1271
1271
  RMS_SUCCESS_MESSAGES["PURCHASE_REQUEST_APPROVED"] = "Purchase request approved successfully";
1272
1272
  RMS_SUCCESS_MESSAGES["PURCHASE_REQUEST_REJECTED"] = "Purchase request rejected successfully";
1273
1273
  })(RMS_SUCCESS_MESSAGES || (exports.RMS_SUCCESS_MESSAGES = RMS_SUCCESS_MESSAGES = {}));
1274
+ var MODULE_DOCS_SUCCESS_MESSAGES;
1275
+ (function (MODULE_DOCS_SUCCESS_MESSAGES) {
1276
+ MODULE_DOCS_SUCCESS_MESSAGES["CREATE_SUCCESS"] = "Module document created successfully";
1277
+ MODULE_DOCS_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "Module document updated successfully";
1278
+ MODULE_DOCS_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "Module document deleted successfully";
1279
+ MODULE_DOCS_SUCCESS_MESSAGES["GET_SUCCESS"] = "Module document fetched successfully";
1280
+ MODULE_DOCS_SUCCESS_MESSAGES["GET_ALL_SUCCESS"] = "Module documents fetched successfully";
1281
+ })(MODULE_DOCS_SUCCESS_MESSAGES || (exports.MODULE_DOCS_SUCCESS_MESSAGES = MODULE_DOCS_SUCCESS_MESSAGES = {}));
1274
1282
  var REFUND_SUCCESS_MESSAGES;
1275
1283
  (function (REFUND_SUCCESS_MESSAGES) {
1276
1284
  REFUND_SUCCESS_MESSAGES["REFUND_SUCCESS"] = "Refund has been initiated";
@@ -1360,3 +1368,11 @@ var VENDOR_COMPANY_META_SUCCESS_MESSAGES;
1360
1368
  VENDOR_COMPANY_META_SUCCESS_MESSAGES["LEFT_SUCCESS"] = "Vendor has left the company successfully";
1361
1369
  VENDOR_COMPANY_META_SUCCESS_MESSAGES["SEND_EMAIL_SUCCESS"] = "Email sent successfully";
1362
1370
  })(VENDOR_COMPANY_META_SUCCESS_MESSAGES || (exports.VENDOR_COMPANY_META_SUCCESS_MESSAGES = VENDOR_COMPANY_META_SUCCESS_MESSAGES = {}));
1371
+ var AI_MODEL_KEYS_SUCCESS_MESSAGES;
1372
+ (function (AI_MODEL_KEYS_SUCCESS_MESSAGES) {
1373
+ AI_MODEL_KEYS_SUCCESS_MESSAGES["CREATE_SUCCESS"] = "AI model key created successfully";
1374
+ AI_MODEL_KEYS_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "AI model key updated successfully";
1375
+ AI_MODEL_KEYS_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "AI model key deleted successfully";
1376
+ AI_MODEL_KEYS_SUCCESS_MESSAGES["GET_SUCCESS"] = "AI model key fetched successfully";
1377
+ AI_MODEL_KEYS_SUCCESS_MESSAGES["GET_ALL_SUCCESS"] = "AI model keys fetched successfully";
1378
+ })(AI_MODEL_KEYS_SUCCESS_MESSAGES || (exports.AI_MODEL_KEYS_SUCCESS_MESSAGES = AI_MODEL_KEYS_SUCCESS_MESSAGES = {}));
@@ -0,0 +1,46 @@
1
+ 'use strict';
2
+ module.exports = {
3
+ up: async (queryInterface, Sequelize) => {
4
+ const table = await queryInterface.describeTable('institutes');
5
+ if (table.status) {
6
+ // In PostgreSQL, changing from ENUM to VARCHAR often requires a USING clause
7
+ try {
8
+ await queryInterface.sequelize.query('ALTER TABLE institutes ALTER COLUMN status TYPE VARCHAR(255) USING status::varchar;');
9
+ await queryInterface.changeColumn('institutes', 'status', {
10
+ type: Sequelize.STRING,
11
+ allowNull: false,
12
+ defaultValue: 'ACTIVE',
13
+ });
14
+ }
15
+ catch (error) {
16
+ // Fallback if the raw query fails
17
+ await queryInterface.changeColumn('institutes', 'status', {
18
+ type: Sequelize.STRING,
19
+ allowNull: false,
20
+ defaultValue: 'ACTIVE',
21
+ });
22
+ }
23
+ }
24
+ },
25
+ down: async (queryInterface, Sequelize) => {
26
+ const table = await queryInterface.describeTable('institutes');
27
+ if (table.status) {
28
+ try {
29
+ await queryInterface.sequelize.query('ALTER TABLE institutes ALTER COLUMN status TYPE "enum_institutes_status" USING status::text::"enum_institutes_status";');
30
+ await queryInterface.changeColumn('institutes', 'status', {
31
+ type: Sequelize.ENUM('ACTIVE', 'INACTIVE', 'PENDING', 'BLOCKED'), // Typical statuses, can adapt if needed
32
+ allowNull: false,
33
+ defaultValue: 'ACTIVE',
34
+ });
35
+ }
36
+ catch (error) {
37
+ // Fallback
38
+ await queryInterface.changeColumn('institutes', 'status', {
39
+ type: Sequelize.ENUM('ACTIVE', 'INACTIVE', 'PENDING', 'BLOCKED'),
40
+ allowNull: false,
41
+ defaultValue: 'ACTIVE',
42
+ });
43
+ }
44
+ }
45
+ }
46
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any): Promise<void>;
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const table = await queryInterface.describeTable('institutes');
4
+ if (!table.note) {
5
+ await queryInterface.addColumn('institutes', 'note', {
6
+ type: Sequelize.STRING,
7
+ allowNull: true,
8
+ });
9
+ }
10
+ };
11
+ const down = async (queryInterface) => {
12
+ const table = await queryInterface.describeTable('institutes');
13
+ if (table.note) {
14
+ await queryInterface.removeColumn('institutes', 'note');
15
+ }
16
+ };
17
+ module.exports = {
18
+ up,
19
+ down,
20
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any): Promise<void>;
@@ -0,0 +1,156 @@
1
+ "use strict";
2
+ const up = async (queryInterface, Sequelize) => {
3
+ const tableName = 'ai_model_keys';
4
+ const tableExists = await queryInterface
5
+ .describeTable(tableName)
6
+ .then(() => true)
7
+ .catch(() => false);
8
+ if (!tableExists) {
9
+ await queryInterface.createTable(tableName, {
10
+ id: {
11
+ type: Sequelize.UUID,
12
+ defaultValue: Sequelize.UUIDV4,
13
+ allowNull: false,
14
+ primaryKey: true,
15
+ },
16
+ key: {
17
+ type: Sequelize.STRING,
18
+ allowNull: false,
19
+ unique: true,
20
+ },
21
+ hasValue: {
22
+ type: Sequelize.STRING,
23
+ allowNull: false,
24
+ field: 'has_value',
25
+ },
26
+ type: {
27
+ type: Sequelize.STRING,
28
+ allowNull: false,
29
+ },
30
+ description: {
31
+ type: Sequelize.TEXT,
32
+ allowNull: false,
33
+ },
34
+ version: {
35
+ type: Sequelize.INTEGER,
36
+ allowNull: false,
37
+ defaultValue: 1,
38
+ },
39
+ createdBy: {
40
+ type: Sequelize.UUID,
41
+ allowNull: true,
42
+ field: 'created_by',
43
+ },
44
+ updatedBy: {
45
+ type: Sequelize.UUID,
46
+ allowNull: true,
47
+ field: 'updated_by',
48
+ },
49
+ deletedBy: {
50
+ type: Sequelize.UUID,
51
+ allowNull: true,
52
+ field: 'deleted_by',
53
+ },
54
+ createdAt: {
55
+ type: Sequelize.DATE,
56
+ allowNull: false,
57
+ field: 'created_at',
58
+ },
59
+ updatedAt: {
60
+ type: Sequelize.DATE,
61
+ allowNull: false,
62
+ field: 'updated_at',
63
+ },
64
+ deletedAt: {
65
+ type: Sequelize.DATE,
66
+ allowNull: true,
67
+ field: 'deleted_at',
68
+ },
69
+ });
70
+ }
71
+ else {
72
+ const tableDefinition = await queryInterface.describeTable(tableName);
73
+ const columnsToAdd = {
74
+ id: {
75
+ type: Sequelize.UUID,
76
+ defaultValue: Sequelize.UUIDV4,
77
+ allowNull: false,
78
+ primaryKey: true,
79
+ },
80
+ key: {
81
+ type: Sequelize.STRING,
82
+ allowNull: false,
83
+ unique: true,
84
+ },
85
+ hasValue: {
86
+ type: Sequelize.STRING,
87
+ allowNull: false,
88
+ field: 'has_value',
89
+ },
90
+ type: {
91
+ type: Sequelize.STRING,
92
+ allowNull: false,
93
+ },
94
+ description: {
95
+ type: Sequelize.TEXT,
96
+ allowNull: false,
97
+ },
98
+ version: {
99
+ type: Sequelize.INTEGER,
100
+ allowNull: false,
101
+ defaultValue: 1,
102
+ },
103
+ createdBy: {
104
+ type: Sequelize.UUID,
105
+ allowNull: true,
106
+ field: 'created_by',
107
+ },
108
+ updatedBy: {
109
+ type: Sequelize.UUID,
110
+ allowNull: true,
111
+ field: 'updated_by',
112
+ },
113
+ deletedBy: {
114
+ type: Sequelize.UUID,
115
+ allowNull: true,
116
+ field: 'deleted_by',
117
+ },
118
+ createdAt: {
119
+ type: Sequelize.DATE,
120
+ allowNull: false,
121
+ field: 'created_at',
122
+ },
123
+ updatedAt: {
124
+ type: Sequelize.DATE,
125
+ allowNull: false,
126
+ field: 'updated_at',
127
+ },
128
+ deletedAt: {
129
+ type: Sequelize.DATE,
130
+ allowNull: true,
131
+ field: 'deleted_at',
132
+ },
133
+ };
134
+ for (const column of Object.keys(columnsToAdd)) {
135
+ const columnToAdd = columnsToAdd[column];
136
+ const tableColumn = columnToAdd.field || column;
137
+ if (!tableDefinition[tableColumn]) {
138
+ await queryInterface.addColumn(tableName, tableColumn, columnToAdd);
139
+ }
140
+ }
141
+ }
142
+ };
143
+ const down = async (queryInterface) => {
144
+ const tableName = 'ai_model_keys';
145
+ const tableExists = await queryInterface
146
+ .describeTable(tableName)
147
+ .then(() => true)
148
+ .catch(() => false);
149
+ if (tableExists) {
150
+ await queryInterface.dropTable(tableName);
151
+ }
152
+ };
153
+ module.exports = {
154
+ up,
155
+ down,
156
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+ module.exports = {
3
+ up: async (queryInterface, Sequelize) => {
4
+ const table = await queryInterface.describeTable('categories');
5
+ if (!table.type) {
6
+ await queryInterface.addColumn('categories', 'type', {
7
+ type: Sequelize.STRING,
8
+ allowNull: true,
9
+ defaultValue: 'INVENTORY',
10
+ });
11
+ }
12
+ },
13
+ down: async (queryInterface, Sequelize) => {
14
+ const table = await queryInterface.describeTable('categories');
15
+ if (table.type) {
16
+ await queryInterface.removeColumn('categories', 'type');
17
+ }
18
+ }
19
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+ module.exports = {
3
+ up: async (queryInterface, Sequelize) => {
4
+ const table = await queryInterface.describeTable('sub_categories');
5
+ if (!table.type) {
6
+ await queryInterface.addColumn('sub_categories', 'type', {
7
+ type: Sequelize.STRING,
8
+ allowNull: true,
9
+ defaultValue: 'INVENTORY',
10
+ });
11
+ }
12
+ },
13
+ down: async (queryInterface, Sequelize) => {
14
+ const table = await queryInterface.describeTable('sub_categories');
15
+ if (table.type) {
16
+ await queryInterface.removeColumn('sub_categories', 'type');
17
+ }
18
+ }
19
+ };
@@ -0,0 +1,2 @@
1
+ export function up(queryInterface: any, Sequelize: any): Promise<void>;
2
+ export function down(queryInterface: any, Sequelize: any): Promise<void>;
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+ module.exports = {
3
+ up: async (queryInterface, Sequelize) => {
4
+ const table = await queryInterface.describeTable('users');
5
+ if (!table.status) {
6
+ await queryInterface.addColumn('users', 'status', {
7
+ type: Sequelize.STRING,
8
+ allowNull: true,
9
+ defaultValue: 'ACTIVE',
10
+ });
11
+ }
12
+ },
13
+ down: async (queryInterface, Sequelize) => {
14
+ const table = await queryInterface.describeTable('users');
15
+ if (table.status) {
16
+ await queryInterface.removeColumn('users', 'status');
17
+ }
18
+ }
19
+ };
@@ -156,9 +156,6 @@ export declare function extractFromObject(data: any[], config: {
156
156
  userdata: any[];
157
157
  columns: string[];
158
158
  };
159
- export declare const enumAlternatives: (enumObj: Record<string, string>, isRequired?: boolean, allowArray?: boolean) => Joi.StringSchema<string> | Joi.AlternativesSchema<any>;
160
- export declare const objectIdAlternatives: (isRequired?: boolean, allowArray?: boolean) => Joi.AlternativesSchema<any> | undefined;
161
- export declare const uuidIdAlternatives: (isRequired?: boolean, allowArray?: boolean) => Joi.AlternativesSchema<any> | undefined;
162
159
  export declare const customPagination: <T>(data: T[], page: number, limit: number, totalRecords: number) => Promise<{
163
160
  limit: number;
164
161
  totalRecords: number;
@@ -36,7 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
36
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.getOverallGrade = exports.calculateGrade = exports.getNextLetter = exports.getCityAreas = exports.generateVoucherCode = exports.verifyHmacSHA256 = exports.generateHmacSHA256 = exports.customPagination = exports.uuidIdAlternatives = exports.objectIdAlternatives = exports.enumAlternatives = exports.fromSnakeCaseToNormalText = exports.normalizeToArray = exports.capitalizeFirst = exports.parseOrderOptions = exports.isValidUUID = exports.removeFalsyValues = exports.flattenNestedStructure = exports.buildNestedStructure = exports.getParentsByChildrenId = exports.getChildrenByParentId = exports.sortArray = exports.groupByFields = exports.endOfDay = exports.generateUuidToNumber = exports.startOfDay = exports.isDateWithinRange = exports.isTimeWithinRange = exports.keyByFieldOrFields = exports.getUniqueArrayByFields = exports.generateTempPassword = exports.generateAlphaNumericCode = exports.generateOtp = exports.ensureDirectoryExists = exports.omit = exports.isValidMongoDbId = exports.pick = void 0;
39
+ exports.getOverallGrade = exports.calculateGrade = exports.getNextLetter = exports.getCityAreas = exports.generateVoucherCode = exports.verifyHmacSHA256 = exports.generateHmacSHA256 = exports.customPagination = exports.fromSnakeCaseToNormalText = exports.normalizeToArray = exports.capitalizeFirst = exports.parseOrderOptions = exports.isValidUUID = exports.removeFalsyValues = exports.flattenNestedStructure = exports.buildNestedStructure = exports.getParentsByChildrenId = exports.getChildrenByParentId = exports.sortArray = exports.groupByFields = exports.endOfDay = exports.generateUuidToNumber = exports.startOfDay = exports.isDateWithinRange = exports.isTimeWithinRange = exports.keyByFieldOrFields = exports.getUniqueArrayByFields = exports.generateTempPassword = exports.generateAlphaNumericCode = exports.generateOtp = exports.ensureDirectoryExists = exports.omit = exports.isValidMongoDbId = exports.pick = void 0;
40
40
  exports.groupByFieldOrFields = groupByFieldOrFields;
41
41
  exports.slugify = slugify;
42
42
  exports.assignNonNull = assignNonNull;
@@ -614,33 +614,6 @@ function extractFromObject(data, config) {
614
614
  });
615
615
  return { tableTitle: config.tableTitle, userdata, columns };
616
616
  }
617
- const enumAlternatives = (enumObj, isRequired = false, allowArray = true) => {
618
- const base = joi_1.default.string().valid(...Object.values(enumObj));
619
- if (allowArray) {
620
- const alt = joi_1.default.alternatives().try(base, joi_1.default.array().items(base));
621
- return isRequired ? alt.required() : alt.optional();
622
- }
623
- return isRequired ? base.required() : base.optional();
624
- };
625
- exports.enumAlternatives = enumAlternatives;
626
- const objectIdAlternatives = (isRequired = false, allowArray = true) => {
627
- const base = joi_1.default.string()
628
- .pattern(/^[0-9a-fA-F]{24}$/)
629
- .message('Invalid ObjectId format');
630
- if (allowArray) {
631
- const alt = joi_1.default.alternatives().try(base, joi_1.default.array().items(base));
632
- return isRequired ? alt.required() : alt.optional();
633
- }
634
- };
635
- exports.objectIdAlternatives = objectIdAlternatives;
636
- const uuidIdAlternatives = (isRequired = false, allowArray = true) => {
637
- const base = joi_1.default.string().uuid().message('Invalid Uuid format');
638
- if (allowArray) {
639
- const alt = joi_1.default.alternatives().try(base, joi_1.default.array().items(base));
640
- return isRequired ? alt.required() : alt.optional();
641
- }
642
- };
643
- exports.uuidIdAlternatives = uuidIdAlternatives;
644
617
  const customPagination = async (data, page, limit, totalRecords) => {
645
618
  page = Math.max(1, page || app_1.PAGINATION.PAGE);
646
619
  limit = Math.max(1, limit || app_1.PAGINATION.LIMIT);
package/dist/index.d.ts CHANGED
@@ -15,3 +15,5 @@ export * from './models/mongodb/index';
15
15
  export * from './models/psql/index';
16
16
  /************ types *************/
17
17
  export * from './types/index';
18
+ /************ validator ********** */
19
+ export * from './commonValidator';
package/dist/index.js CHANGED
@@ -31,3 +31,5 @@ __exportStar(require("./models/mongodb/index"), exports);
31
31
  __exportStar(require("./models/psql/index"), exports);
32
32
  /************ types *************/
33
33
  __exportStar(require("./types/index"), exports);
34
+ /************ validator ********** */
35
+ __exportStar(require("./commonValidator"), exports);
@@ -0,0 +1,15 @@
1
+ import { AI_MODEL_KEYS, AI_MODEL_KEY_TYPES } from "../constants";
2
+ export interface IAiModelKeyAttributes {
3
+ id: string;
4
+ key: AI_MODEL_KEYS;
5
+ hasValue: string;
6
+ type: AI_MODEL_KEY_TYPES;
7
+ description: string;
8
+ version: number;
9
+ createdBy?: string;
10
+ updatedBy?: string;
11
+ deletedBy?: string;
12
+ createdAt?: Date;
13
+ updatedAt?: Date;
14
+ deletedAt?: Date;
15
+ }
@@ -1,8 +1,9 @@
1
1
  import { IDefaultAttributes } from './commonInterface';
2
- import { COMMAN_STATUS } from '../constants/app';
2
+ import { CATEGORY_TYPE, 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;
8
9
  }
@@ -244,6 +244,7 @@ export * from './userFinalResultInterface';
244
244
  export * from './refundInterface';
245
245
  export * from './kipiverseContactFormInterface';
246
246
  export * from './moduleDocsInterface';
247
+ export * from './aiModelKeysInterface';
247
248
  export * from './accountFinancialYearInterface';
248
249
  export * from './accountPeriodLockInterface';
249
250
  export * from './accountNumberSequenceInterface';
@@ -254,15 +255,3 @@ export * from './accountCostCenterInterface';
254
255
  export * from './accountVoucherTypeInterface';
255
256
  export * from './vendorCompanyMetaInterface';
256
257
  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,6 +260,7 @@ __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);
263
264
  __exportStar(require("./accountFinancialYearInterface"), exports);
264
265
  __exportStar(require("./accountPeriodLockInterface"), exports);
265
266
  __exportStar(require("./accountNumberSequenceInterface"), exports);
@@ -270,16 +271,3 @@ __exportStar(require("./accountCostCenterInterface"), exports);
270
271
  __exportStar(require("./accountVoucherTypeInterface"), exports);
271
272
  __exportStar(require("./vendorCompanyMetaInterface"), exports);
272
273
  __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,4 +42,5 @@ export interface IInstituteAttributes extends IDefaultAttributes {
42
42
  trialPlanCount: number;
43
43
  partnersIds?: string[];
44
44
  isPlayHouse?: boolean;
45
+ note?: string;
45
46
  }
@@ -1,9 +1,10 @@
1
1
  import { IDefaultAttributes } from './commonInterface';
2
- import { COMMAN_STATUS } from '../constants/app';
2
+ import { CATEGORY_TYPE, 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;
9
10
  }
@@ -1,4 +1,4 @@
1
- import { APP_TYPE, EMAIL_VERIFICATION, MOBILE_VERIFICATION, USER_TYPES } from '../constants/app';
1
+ import { APP_TYPE, EMAIL_VERIFICATION, MOBILE_VERIFICATION, USER_STATUS, USER_TYPES } from '../constants/app';
2
2
  import { IDefaultAttributes } from './commonInterface';
3
3
  export interface IUserAttributes extends IDefaultAttributes {
4
4
  id: string;
@@ -42,4 +42,5 @@ export interface IUserAttributes extends IDefaultAttributes {
42
42
  district?: string;
43
43
  area?: string;
44
44
  taluka?: string;
45
+ status?: USER_STATUS;
45
46
  }
@@ -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;
@@ -79,5 +79,3 @@ 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.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;
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;
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,8 +185,3 @@ 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,6 +83,14 @@ 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
+ },
86
94
  createdBy: {
87
95
  type: String,
88
96
  },
@@ -137,7 +137,7 @@ const vendorCompanyMetaSchema = new mongoose_1.Schema({
137
137
  },
138
138
  address2: {
139
139
  type: String,
140
- required: true,
140
+ required: false,
141
141
  },
142
142
  area: {
143
143
  type: String,
@@ -1,12 +1,13 @@
1
1
  import { Model } from 'sequelize';
2
2
  import { ISubCategoriesModelAttributes } from '../../interfaces/subCategoriesInterface';
3
3
  import { TSubCategoriesModelCreationAttributes } from '../../types/subCategoryType';
4
- import { COMMAN_STATUS } from '../../constants/app';
4
+ import { CATEGORY_TYPE, COMMAN_STATUS } from '../../constants/app';
5
5
  declare class SubCategoriesModel extends Model<ISubCategoriesModelAttributes, TSubCategoriesModelCreationAttributes> {
6
6
  id: string;
7
7
  name: string;
8
8
  status: COMMAN_STATUS;
9
9
  instituteId?: string;
10
+ type?: CATEGORY_TYPE;
10
11
  createdBy: string;
11
12
  updatedBy: string;
12
13
  deletedBy: string;
@@ -90,6 +90,11 @@ SubCategoriesModel.init({
90
90
  allowNull: true,
91
91
  defaultValue: app_1.COMMAN_STATUS.ACTIVE,
92
92
  },
93
+ type: {
94
+ type: sequelize_1.DataTypes.STRING,
95
+ allowNull: true,
96
+ defaultValue: app_1.CATEGORY_TYPE.INVENTORY,
97
+ }
93
98
  }, {
94
99
  modelName: 'SubCategoriesModel',
95
100
  tableName: 'sub_categories',