@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.
- package/dist/commonValidator/commandValidator.d.ts +27 -0
- package/dist/commonValidator/commandValidator.js +225 -0
- package/dist/commonValidator/index.d.ts +2 -0
- package/dist/commonValidator/index.js +18 -0
- package/dist/commonValidator/joiCommonValidator.d.ts +12 -0
- package/dist/commonValidator/joiCommonValidator.js +47 -0
- package/dist/commonValidator/joiSchemaBuilder.d.ts +6 -0
- package/dist/commonValidator/joiSchemaBuilder.js +70 -0
- package/dist/constants/app.d.ts +15 -12
- package/dist/constants/app.js +20 -17
- package/dist/constants/errorMessages.d.ts +17 -0
- package/dist/constants/errorMessages.js +20 -1
- package/dist/constants/successMessages.d.ts +14 -0
- package/dist/constants/successMessages.js +17 -1
- package/dist/db/psql/migrations/20260714111425-change_status_enum_to_string_in_institutes.js +46 -0
- package/dist/db/psql/migrations/20260714131500-add_note_to_institutes.d.ts +2 -0
- package/dist/db/psql/migrations/20260714131500-add_note_to_institutes.js +20 -0
- package/dist/db/psql/migrations/20260715150000-create-ai-model-keys.d.ts +2 -0
- package/dist/db/psql/migrations/20260715150000-create-ai-model-keys.js +156 -0
- package/dist/db/psql/migrations/20260717071354-add_type_to_categories.d.ts +2 -0
- package/dist/db/psql/migrations/20260717071354-add_type_to_categories.js +19 -0
- package/dist/db/psql/migrations/20260717072745-add_type_to_sub_categories.d.ts +2 -0
- package/dist/db/psql/migrations/20260717072745-add_type_to_sub_categories.js +19 -0
- package/dist/db/psql/migrations/20260717095051-add_status_to_users.d.ts +2 -0
- package/dist/db/psql/migrations/20260717095051-add_status_to_users.js +19 -0
- package/dist/helpers/utils.d.ts +0 -3
- package/dist/helpers/utils.js +1 -28
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/interfaces/aiModelKeysInterface.d.ts +15 -0
- package/dist/interfaces/categoriesInterface.d.ts +2 -1
- package/dist/interfaces/index.d.ts +1 -12
- package/dist/interfaces/index.js +1 -13
- package/dist/interfaces/instituteInterface.d.ts +1 -0
- package/dist/interfaces/subCategoriesInterface.d.ts +2 -1
- package/dist/interfaces/userInterface.d.ts +2 -1
- package/dist/interfaces/vendorCompanyMetaInterface.d.ts +1 -1
- package/dist/models/mongodb/index.d.ts +0 -2
- package/dist/models/mongodb/index.js +1 -6
- package/dist/models/mongodb/productMetaModel.js +8 -0
- package/dist/models/mongodb/vendorCompanyMetaModel.js +1 -1
- package/dist/models/psql/SubCategoriesModel.d.ts +2 -1
- package/dist/models/psql/SubCategoriesModel.js +5 -0
- package/dist/models/psql/aiModelKeysModel.d.ts +20 -0
- package/dist/models/psql/aiModelKeysModel.js +70 -0
- package/dist/models/psql/categoriesModel.d.ts +2 -1
- package/dist/models/psql/categoriesModel.js +5 -0
- package/dist/models/psql/index.d.ts +1 -10
- package/dist/models/psql/index.js +4 -23
- package/dist/models/psql/instituteModel.d.ts +1 -0
- package/dist/models/psql/instituteModel.js +5 -2
- package/dist/models/psql/userModel.d.ts +2 -1
- package/dist/models/psql/userModel.js +1 -0
- package/dist/types/aiModelKeysType.d.ts +3 -0
- package/dist/types/commonType.d.ts +20 -1
- package/dist/types/index.d.ts +1 -12
- package/dist/types/index.js +1 -13
- package/package.json +3 -2
- package/dist/db/psql/migrations/20260714095754-create-arena-models.js +0 -642
- package/dist/db/psql/migrations/20260720092201-replace-facility-sports-with-sport-group-data.d.ts +0 -2
- package/dist/db/psql/migrations/20260720092201-replace-facility-sports-with-sport-group-data.js +0 -138
- package/dist/interfaces/ageGroupInterface.d.ts +0 -12
- package/dist/interfaces/assessmentTestInterface.d.ts +0 -24
- package/dist/interfaces/equipmentInterface.d.ts +0 -10
- package/dist/interfaces/equipmentInterface.js +0 -2
- package/dist/interfaces/facilityMasterInterface.d.ts +0 -9
- package/dist/interfaces/facilityMasterInterface.js +0 -2
- package/dist/interfaces/skillInterface.d.ts +0 -15
- package/dist/interfaces/skillInterface.js +0 -2
- package/dist/interfaces/sportCategoryInterface.d.ts +0 -9
- package/dist/interfaces/sportCategoryInterface.js +0 -2
- package/dist/interfaces/sportGroupDataInterface.d.ts +0 -7
- package/dist/interfaces/sportGroupDataInterface.js +0 -2
- package/dist/interfaces/sportInfoInterface.d.ts +0 -23
- package/dist/interfaces/sportInfoInterface.js +0 -2
- package/dist/interfaces/sportInterface.d.ts +0 -10
- package/dist/interfaces/sportInterface.js +0 -2
- package/dist/interfaces/sportRoleInterface.d.ts +0 -11
- package/dist/interfaces/sportRoleInterface.js +0 -2
- package/dist/interfaces/sportSubCategoryInterface.d.ts +0 -10
- package/dist/interfaces/sportSubCategoryInterface.js +0 -2
- package/dist/interfaces/unitInterface.d.ts +0 -10
- package/dist/interfaces/unitInterface.js +0 -2
- package/dist/models/mongodb/assessmentTestModel.d.ts +0 -4
- package/dist/models/mongodb/assessmentTestModel.js +0 -72
- package/dist/models/mongodb/sportInfoModel.d.ts +0 -4
- package/dist/models/mongodb/sportInfoModel.js +0 -71
- package/dist/models/psql/ageGroupModel.d.ts +0 -22
- package/dist/models/psql/ageGroupModel.js +0 -76
- package/dist/models/psql/equipmentModel.d.ts +0 -20
- package/dist/models/psql/equipmentModel.js +0 -57
- package/dist/models/psql/facilityMasterModel.d.ts +0 -18
- package/dist/models/psql/facilityMasterModel.js +0 -64
- package/dist/models/psql/skillModel.d.ts +0 -25
- package/dist/models/psql/skillModel.js +0 -99
- package/dist/models/psql/sportCategoryModel.d.ts +0 -19
- package/dist/models/psql/sportCategoryModel.js +0 -53
- package/dist/models/psql/sportGroupDataModel.d.ts +0 -13
- package/dist/models/psql/sportGroupDataModel.js +0 -64
- package/dist/models/psql/sportModel.d.ts +0 -20
- package/dist/models/psql/sportModel.js +0 -58
- package/dist/models/psql/sportRoleModel.d.ts +0 -21
- package/dist/models/psql/sportRoleModel.js +0 -71
- package/dist/models/psql/sportSubCategoryModel.d.ts +0 -20
- package/dist/models/psql/sportSubCategoryModel.js +0 -75
- package/dist/models/psql/unitModel.d.ts +0 -20
- package/dist/models/psql/unitModel.js +0 -57
- package/dist/types/ageGroupType.d.ts +0 -2
- package/dist/types/ageGroupType.js +0 -2
- package/dist/types/assessmentTestType.d.ts +0 -2
- package/dist/types/assessmentTestType.js +0 -2
- package/dist/types/equipmentType.d.ts +0 -2
- package/dist/types/equipmentType.js +0 -2
- package/dist/types/facilityMasterType.d.ts +0 -3
- package/dist/types/facilityMasterType.js +0 -2
- package/dist/types/skillType.d.ts +0 -2
- package/dist/types/skillType.js +0 -2
- package/dist/types/sportCategoryType.d.ts +0 -2
- package/dist/types/sportCategoryType.js +0 -2
- package/dist/types/sportGroupDataType.d.ts +0 -3
- package/dist/types/sportGroupDataType.js +0 -2
- package/dist/types/sportInfoType.d.ts +0 -2
- package/dist/types/sportInfoType.js +0 -2
- package/dist/types/sportRoleType.d.ts +0 -2
- package/dist/types/sportRoleType.js +0 -2
- package/dist/types/sportSubCategoryType.d.ts +0 -2
- package/dist/types/sportSubCategoryType.js +0 -2
- package/dist/types/sportType.d.ts +0 -2
- package/dist/types/sportType.js +0 -2
- package/dist/types/unitType.d.ts +0 -2
- package/dist/types/unitType.js +0 -2
- /package/dist/db/psql/migrations/{20260714095754-create-arena-models.d.ts → 20260714111425-change_status_enum_to_string_in_institutes.d.ts} +0 -0
- /package/dist/interfaces/{ageGroupInterface.js → aiModelKeysInterface.js} +0 -0
- /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,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,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,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,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,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
|
+
};
|
package/dist/helpers/utils.d.ts
CHANGED
|
@@ -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;
|
package/dist/helpers/utils.js
CHANGED
|
@@ -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.
|
|
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
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';
|
package/dist/interfaces/index.js
CHANGED
|
@@ -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);
|
|
@@ -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
|
}
|
|
@@ -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.
|
|
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
|
},
|
|
@@ -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',
|