@kipicore/dbcore 1.1.644 → 1.1.645
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/constants/app.d.ts +2 -14
- package/dist/constants/app.js +2 -17
- package/dist/interfaces/index.d.ts +0 -11
- package/dist/interfaces/index.js +0 -12
- package/dist/models/mongodb/index.d.ts +0 -1
- package/dist/models/mongodb/index.js +1 -4
- package/dist/models/psql/index.d.ts +0 -10
- package/dist/models/psql/index.js +1 -22
- package/dist/types/index.d.ts +0 -11
- package/dist/types/index.js +0 -12
- package/package.json +1 -1
- package/dist/interfaces/ageGroupInterface.d.ts +0 -9
- package/dist/interfaces/ageGroupInterface.js +0 -2
- package/dist/interfaces/assessmentTestInterface.d.ts +0 -24
- package/dist/interfaces/assessmentTestInterface.js +0 -2
- 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/facilitySportInterface.d.ts +0 -6
- package/dist/interfaces/facilitySportInterface.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/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/psql/ageGroupModel.d.ts +0 -19
- package/dist/models/psql/ageGroupModel.js +0 -53
- 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/facilitySportModel.d.ts +0 -12
- package/dist/models/psql/facilitySportModel.js +0 -51
- 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/sportModel.d.ts +0 -20
- package/dist/models/psql/sportModel.js +0 -57
- package/dist/models/psql/sportRoleModel.d.ts +0 -21
- package/dist/models/psql/sportRoleModel.js +0 -70
- 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/facilitySportType.d.ts +0 -2
- package/dist/types/facilitySportType.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/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/constants/app.d.ts
CHANGED
|
@@ -223,7 +223,8 @@ export declare enum FEE_PAYMENT_STATUS {
|
|
|
223
223
|
}
|
|
224
224
|
export declare enum INSTITUTE_STATUS {
|
|
225
225
|
ACTIVE = "ACTIVE",
|
|
226
|
-
INACTIVE = "INACTIVE"
|
|
226
|
+
INACTIVE = "INACTIVE",
|
|
227
|
+
BLOCK = "BLOCK"
|
|
227
228
|
}
|
|
228
229
|
export declare enum OFFER_TYPE {
|
|
229
230
|
AMOUNT = "AMOUNT",
|
|
@@ -1836,16 +1837,3 @@ export declare enum APK_TYPE {
|
|
|
1836
1837
|
STUDENT_DEMO = "STUDENT_DEMO",
|
|
1837
1838
|
PLAYGROUP_DEMO = "PLAYGROUP_DEMO"
|
|
1838
1839
|
}
|
|
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
|
-
}
|
package/dist/constants/app.js
CHANGED
|
@@ -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.
|
|
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;
|
|
9
9
|
const env_1 = require("../configs/env");
|
|
10
10
|
exports.SIXTY = 60;
|
|
11
11
|
exports.ONE_HUNDRED = 100;
|
|
@@ -274,6 +274,7 @@ 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";
|
|
277
278
|
})(INSTITUTE_STATUS || (exports.INSTITUTE_STATUS = INSTITUTE_STATUS = {}));
|
|
278
279
|
var OFFER_TYPE;
|
|
279
280
|
(function (OFFER_TYPE) {
|
|
@@ -2194,19 +2195,3 @@ var APK_TYPE;
|
|
|
2194
2195
|
APK_TYPE["STUDENT_DEMO"] = "STUDENT_DEMO";
|
|
2195
2196
|
APK_TYPE["PLAYGROUP_DEMO"] = "PLAYGROUP_DEMO";
|
|
2196
2197
|
})(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 = {}));
|
|
@@ -254,14 +254,3 @@ 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';
|
package/dist/interfaces/index.js
CHANGED
|
@@ -270,15 +270,3 @@ __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);
|
|
@@ -79,4 +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';
|
|
@@ -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,6 +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; } });
|
|
@@ -175,13 +175,3 @@ export { default as AccountLedgerModel } from './accountLedgerModel';
|
|
|
175
175
|
export { default as AccountLedgerOpeningModel } from './accountLedgerOpeningModel';
|
|
176
176
|
export { default as AccountCostCenterModel } from './accountCostCenterModel';
|
|
177
177
|
export { default as AccountVoucherTypeModel } from './accountVoucherTypeModel';
|
|
178
|
-
export { default as SportModel } from './sportModel';
|
|
179
|
-
export { default as SportCategoryModel } from './sportCategoryModel';
|
|
180
|
-
export { default as SportSubCategoryModel } from './sportSubCategoryModel';
|
|
181
|
-
export { default as SportRoleModel } from './sportRoleModel';
|
|
182
|
-
export { default as EquipmentModel } from './equipmentModel';
|
|
183
|
-
export { default as FacilityMasterModel } from './facilityMasterModel';
|
|
184
|
-
export { default as FacilitySportModel } from './facilitySportModel';
|
|
185
|
-
export { default as UnitModel } from './unitModel';
|
|
186
|
-
export { default as SkillModel } from './skillModel';
|
|
187
|
-
export { default as AgeGroupModel } from './ageGroupModel';
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ProjectAssessmentOptionModel = exports.ProductModel = exports.PincodeModel = exports.PdcHistoryModel = exports.PdcChequeModel = exports.OfferModel = exports.ModuleModel = exports.ModuleFeatureModel = exports.MasterLeaveModel = exports.LectureModel = exports.LectureHistoryModel = exports.InventoryModel = exports.InventoryHistoryModel = exports.InstituteSubscriptionPlanModel = exports.InstituteModel = exports.InstituteEntityTypeModel = exports.InstituteEntityModel = exports.HomeWorkModel = exports.GreetingsModel = exports.FloorManagementModel = exports.FileStorageModel = exports.FeeReminderSettingModel = exports.FeeReminderModel = exports.FeatureActionModel = exports.FacilityModel = exports.EntityGroupModel = exports.DriverModel = exports.CourseModel = exports.CourseHasVisitorsModel = exports.CountryModel = exports.ContactFeedBackModel = exports.CoinPurchaseOfferModel = exports.CloudStorageModel = exports.ClassRoomModel = exports.CityModel = exports.CategoriesModel = exports.BookAssessmentDateModel = exports.BatchSubjectProjectAssessmentModel = exports.BatchSubjectBookAssessmentModel = exports.BatchModel = exports.BannerModel = exports.BankAccountDetailsModel = exports.AreaModel = exports.AnnouncementModel = exports.AccountHasReceiptDetailsModel = exports.AcademicCalendarModel = exports.SubCategoriesModel = exports.Sequelize = exports.db = exports.sequelize = void 0;
|
|
7
7
|
exports.StudentLeaveRequestModel = exports.CloneListModel = exports.IncomeExpenseModel = exports.MaintenanceModel = exports.WorkOffDaysModel = exports.EntityWiseCalendarModel = exports.CampusModel = exports.LostFoundItemModel = exports.WorkingShiftModel = exports.WorkingDayModel = exports.WalletModel = exports.WalletHistoryModel = exports.VendorManagementModel = exports.VehicleModel = exports.UserRequiredStepsModel = exports.UserProjectAssessmentOptionModel = exports.UserPayoutModel = exports.UserModel = exports.UserLeaveRequestModel = exports.UserHasSubjectFeeModel = exports.UserHasStorageModel = exports.UserHasRollNumberModel = exports.UserHasRoleModel = exports.UserHasParentModel = exports.UserHasOfferModel = exports.UserHasLeaveModel = exports.UserHasLeaveHistoryModel = exports.UserHasInventoryModel = exports.UserHasInventoryHistoryModel = exports.UserHasHomeWorkModel = exports.UserHasFileModel = exports.UserHasDeviceModel = exports.UserHasCourseModel = exports.UserHasBatchModel = exports.UserHasAnnouncementModel = exports.UserBookAssessmentModel = exports.TypeManagementModel = exports.TripModel = exports.TokenModel = exports.ToDoModel = exports.TestimonialModel = exports.SyllabusModel = exports.SubjectHasPayFeeHistoryModel = exports.SubjectHasFeeModel = exports.StateModel = exports.SlotModel = exports.SendNotificationModel = exports.SchoolOfferModel = exports.RulesRegulationModel = exports.RoleModel = void 0;
|
|
8
8
|
exports.RmsPurchaseOrderModel = exports.RmsPurchaseRequestItemModel = exports.RmsPurchaseRequestModel = exports.RmsVendorDocumentModel = exports.RmsVendorModel = exports.RmsStockTransactionModel = exports.RmsStockModel = exports.RmsResourceModel = exports.RmsLocationModel = exports.RmsDepartmentModel = exports.ModuleDocsModel = exports.DynamicVariableLabelModel = exports.DynamicVariableModel = exports.CertificateRequestModel = exports.FeeSubmissionTrackModel = exports.UserHasFeeSubmissionModel = exports.AssignSubjectModel = exports.InstitutePartnersModel = exports.InstituteOwnershipHistoryModel = exports.UserHasPenaltyHistoryModel = exports.PastYearRecordModel = exports.PayoutTransactionHistoryModel = exports.AdditionalPayoutModel = exports.LoanEmiModel = exports.UserLoanModel = exports.NoticeboardModel = exports.UserPermissionModel = exports.RoleManagementModel = exports.PermissionModel = exports.DesignationModel = exports.AdditionalPayoutTypeModel = exports.VisitorBookModel = exports.PostalDispatchModel = exports.CallRegisterModel = exports.UserHasOfferAndDiscountModel = exports.UserAcceptedTermsAndCondition = exports.SubjectInternalMarkModel = exports.InternalMarkModel = exports.TermsAndConditionModel = exports.FeeType1Model = exports.StudentFeeTermsModel = exports.UserHasPenaltyModel = exports.PenaltyModel = exports.ClassRoomCollectionModel = exports.ClassRoomEventModel = exports.StudentFeeTypeCollectionModel = exports.SchoolFeeTermsModel = exports.StudentFeeHistoryModel = exports.StudentFeeCollectionModel = exports.UserDirectoryModel = void 0;
|
|
9
|
-
exports.
|
|
9
|
+
exports.AccountVoucherTypeModel = exports.AccountCostCenterModel = exports.AccountLedgerOpeningModel = exports.AccountLedgerModel = exports.AccountGroupModel = exports.AccountNumberSequenceModel = exports.AccountPeriodLockModel = exports.AccountFinancialYearModel = exports.RmsExpenseEntryModel = exports.RmsBudgetModel = exports.RmsFacilityBookingModel = exports.RmsFacilityModel = exports.RmsMaintenanceActivityModel = exports.RmsMaintenanceTicketModel = exports.RefundCollectionModule = exports.RmsAssetTransactionModel = exports.RmsStorageSlotModel = exports.RmsStorageRackModel = exports.UserHasGraceMarksModel = exports.GraceMarksModel = exports.RmsAssetModel = exports.RmsGrnItemTransactionModel = exports.RmsGrnItemModel = exports.RmsGrnModel = exports.RmsPurchaseOrderItemModel = void 0;
|
|
10
10
|
const sequelize_1 = require("sequelize");
|
|
11
11
|
Object.defineProperty(exports, "Sequelize", { enumerable: true, get: function () { return sequelize_1.Sequelize; } });
|
|
12
12
|
const postgresConfig = require('../../configs/postgresConfig');
|
|
@@ -446,24 +446,3 @@ var accountCostCenterModel_1 = require("./accountCostCenterModel");
|
|
|
446
446
|
Object.defineProperty(exports, "AccountCostCenterModel", { enumerable: true, get: function () { return __importDefault(accountCostCenterModel_1).default; } });
|
|
447
447
|
var accountVoucherTypeModel_1 = require("./accountVoucherTypeModel");
|
|
448
448
|
Object.defineProperty(exports, "AccountVoucherTypeModel", { enumerable: true, get: function () { return __importDefault(accountVoucherTypeModel_1).default; } });
|
|
449
|
-
// Arena Module
|
|
450
|
-
var sportModel_1 = require("./sportModel");
|
|
451
|
-
Object.defineProperty(exports, "SportModel", { enumerable: true, get: function () { return __importDefault(sportModel_1).default; } });
|
|
452
|
-
var sportCategoryModel_1 = require("./sportCategoryModel");
|
|
453
|
-
Object.defineProperty(exports, "SportCategoryModel", { enumerable: true, get: function () { return __importDefault(sportCategoryModel_1).default; } });
|
|
454
|
-
var sportSubCategoryModel_1 = require("./sportSubCategoryModel");
|
|
455
|
-
Object.defineProperty(exports, "SportSubCategoryModel", { enumerable: true, get: function () { return __importDefault(sportSubCategoryModel_1).default; } });
|
|
456
|
-
var sportRoleModel_1 = require("./sportRoleModel");
|
|
457
|
-
Object.defineProperty(exports, "SportRoleModel", { enumerable: true, get: function () { return __importDefault(sportRoleModel_1).default; } });
|
|
458
|
-
var equipmentModel_1 = require("./equipmentModel");
|
|
459
|
-
Object.defineProperty(exports, "EquipmentModel", { enumerable: true, get: function () { return __importDefault(equipmentModel_1).default; } });
|
|
460
|
-
var facilityMasterModel_1 = require("./facilityMasterModel");
|
|
461
|
-
Object.defineProperty(exports, "FacilityMasterModel", { enumerable: true, get: function () { return __importDefault(facilityMasterModel_1).default; } });
|
|
462
|
-
var facilitySportModel_1 = require("./facilitySportModel");
|
|
463
|
-
Object.defineProperty(exports, "FacilitySportModel", { enumerable: true, get: function () { return __importDefault(facilitySportModel_1).default; } });
|
|
464
|
-
var unitModel_1 = require("./unitModel");
|
|
465
|
-
Object.defineProperty(exports, "UnitModel", { enumerable: true, get: function () { return __importDefault(unitModel_1).default; } });
|
|
466
|
-
var skillModel_1 = require("./skillModel");
|
|
467
|
-
Object.defineProperty(exports, "SkillModel", { enumerable: true, get: function () { return __importDefault(skillModel_1).default; } });
|
|
468
|
-
var ageGroupModel_1 = require("./ageGroupModel");
|
|
469
|
-
Object.defineProperty(exports, "AgeGroupModel", { enumerable: true, get: function () { return __importDefault(ageGroupModel_1).default; } });
|
package/dist/types/index.d.ts
CHANGED
|
@@ -243,14 +243,3 @@ export * from './accountCostCenterType';
|
|
|
243
243
|
export * from './accountVoucherTypeType';
|
|
244
244
|
export * from './vendorCompanyMetaType';
|
|
245
245
|
export * from './productMetaType';
|
|
246
|
-
export * from './sportType';
|
|
247
|
-
export * from './sportCategoryType';
|
|
248
|
-
export * from './sportSubCategoryType';
|
|
249
|
-
export * from './sportRoleType';
|
|
250
|
-
export * from './equipmentType';
|
|
251
|
-
export * from './facilityMasterType';
|
|
252
|
-
export * from './facilitySportType';
|
|
253
|
-
export * from './unitType';
|
|
254
|
-
export * from './skillType';
|
|
255
|
-
export * from './ageGroupType';
|
|
256
|
-
export * from './assessmentTestType';
|
package/dist/types/index.js
CHANGED
|
@@ -259,15 +259,3 @@ __exportStar(require("./accountCostCenterType"), exports);
|
|
|
259
259
|
__exportStar(require("./accountVoucherTypeType"), exports);
|
|
260
260
|
__exportStar(require("./vendorCompanyMetaType"), exports);
|
|
261
261
|
__exportStar(require("./productMetaType"), exports);
|
|
262
|
-
// Arena Module
|
|
263
|
-
__exportStar(require("./sportType"), exports);
|
|
264
|
-
__exportStar(require("./sportCategoryType"), exports);
|
|
265
|
-
__exportStar(require("./sportSubCategoryType"), exports);
|
|
266
|
-
__exportStar(require("./sportRoleType"), exports);
|
|
267
|
-
__exportStar(require("./equipmentType"), exports);
|
|
268
|
-
__exportStar(require("./facilityMasterType"), exports);
|
|
269
|
-
__exportStar(require("./facilitySportType"), exports);
|
|
270
|
-
__exportStar(require("./unitType"), exports);
|
|
271
|
-
__exportStar(require("./skillType"), exports);
|
|
272
|
-
__exportStar(require("./ageGroupType"), exports);
|
|
273
|
-
__exportStar(require("./assessmentTestType"), exports);
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Document } from 'mongoose';
|
|
2
|
-
import { ASSESSMENT_TEST_STATUS } from '../constants/app';
|
|
3
|
-
import { IDefaultAttributes } from './commonInterface';
|
|
4
|
-
export interface IAssessmentTestTargetSkill {
|
|
5
|
-
skillId: string;
|
|
6
|
-
ageGroupId?: string;
|
|
7
|
-
minValue?: number;
|
|
8
|
-
}
|
|
9
|
-
export interface IAssessmentTestModelAttributes extends IDefaultAttributes, Document {
|
|
10
|
-
id: string;
|
|
11
|
-
sportId?: string;
|
|
12
|
-
sportRoleId?: string;
|
|
13
|
-
ageGroupId?: string;
|
|
14
|
-
name: string;
|
|
15
|
-
code: string;
|
|
16
|
-
description?: string;
|
|
17
|
-
passingRules?: string;
|
|
18
|
-
scoreFormula?: string;
|
|
19
|
-
documents?: string[];
|
|
20
|
-
videos?: string[];
|
|
21
|
-
targetSkills?: IAssessmentTestTargetSkill[];
|
|
22
|
-
requiredEquipment?: string[];
|
|
23
|
-
status: ASSESSMENT_TEST_STATUS;
|
|
24
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
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;
|
|
@@ -1,19 +0,0 @@
|
|
|
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;
|
|
@@ -1,53 +0,0 @@
|
|
|
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;
|
|
@@ -1,20 +0,0 @@
|
|
|
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;
|