@kipicore/dbcore 1.1.145 → 1.1.147
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 +6 -11
- package/dist/constants/app.js +16 -22
- package/dist/interfaces/campusCarnivalInterface.d.ts +14 -0
- package/dist/interfaces/competitionInterface.d.ts +14 -4
- package/dist/interfaces/index.d.ts +1 -1
- package/dist/interfaces/index.js +1 -1
- package/dist/models/mongodb/campusCarnivalModel.d.ts +4 -0
- package/dist/models/mongodb/{competitionEventModel.js → campusCarnivalModel.js} +5 -27
- package/dist/models/mongodb/competitionModel.js +37 -3
- package/dist/models/mongodb/competitionUsersModel.js +1 -0
- package/dist/models/mongodb/index.d.ts +1 -1
- package/dist/models/mongodb/index.js +3 -3
- package/dist/types/campusCarnivalType.d.ts +2 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +1 -1
- package/dist/interfaces/competitionEventInterface.d.ts +0 -19
- package/dist/models/mongodb/competitionEventModel.d.ts +0 -4
- package/dist/types/competitionEventType.d.ts +0 -2
- /package/dist/interfaces/{competitionEventInterface.js → campusCarnivalInterface.js} +0 -0
- /package/dist/types/{competitionEventType.js → campusCarnivalType.js} +0 -0
package/dist/constants/app.d.ts
CHANGED
|
@@ -935,24 +935,19 @@ export declare enum INCOME_EXPENSE_SOURCE {
|
|
|
935
935
|
VENDOR = "VENDOR",
|
|
936
936
|
ASSETS = "ASSETS"
|
|
937
937
|
}
|
|
938
|
-
export declare enum
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
938
|
+
export declare enum COMPETITION_TYPE_CATEGORY {
|
|
939
|
+
CREATIVE_INTERESTS = "CREATIVE_INTERESTS",
|
|
940
|
+
SPORT = "SPORT",
|
|
941
|
+
CULTURAL = "CULTURAL",
|
|
942
|
+
ACADMIC = "ACADMIC"
|
|
943
943
|
}
|
|
944
|
-
export declare enum
|
|
944
|
+
export declare enum CAMPUS_CARNIVAL_STATUS {
|
|
945
945
|
PENDING = "PENDING",
|
|
946
946
|
PUBLISHED = "PUBLISHED",
|
|
947
947
|
IN_PROGRESS = "IN_PROGRESS",
|
|
948
948
|
COMPLETED = "COMPLETED",
|
|
949
949
|
CANCEL = "CANCEL"
|
|
950
950
|
}
|
|
951
|
-
export declare enum COMPETITION_FOR {
|
|
952
|
-
SCHOOL = "SCHOOL",
|
|
953
|
-
STANDARD = "STANDARD",
|
|
954
|
-
BATCH = "BATCH"
|
|
955
|
-
}
|
|
956
951
|
export declare enum COMPETITION_TYPE {
|
|
957
952
|
GROUP = "GROUP",
|
|
958
953
|
INDIVIDUAL = "INDIVIDUAL"
|
package/dist/constants/app.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.USER_DETAILS = exports.NO_TYPE = exports.ADMISSION_TYPE = exports.INSTITUTE_ENTITY_TYPE_SEQUENCE = exports.INSTITUTE_ENTITY_TYPE_STATUS = exports.INSTITUTE_ENTITY_STATUS = exports.SCHOOL_SHIFT = exports.WORKIN_DAY_STATUS = exports.LEAVE_STATUS = exports.LEAVE = exports.LEAVE_TYPE = exports.OFFER_NAME = exports.OFFER_TYPE = exports.INSTITUTE_STATUS = exports.FEE_PAYMENT_STATUS = exports.PAYMENT_TYPE = exports.FEE_TYPE_FREQUENCY = exports.FEE_REMINDER_SETTING_FREQUENCY = exports.FEE_REMINDER_SETTING_TYPE = exports.TERM_DURATION = exports.FEE_REMINDER_SETTING_STATUS = exports.GREETING_TYPE = exports.TRIP_TYPE = exports.USER_COURSE_STATUS = exports.COMMAN_STATUS = exports.TOKEN_TYPES = exports.USER_TYPES = exports.ACADEMIC_CALENDARS_TYPE = exports.RETURN_STATUS = exports.ASSIGN_TYPE = exports.GENDER = exports.SCHOOL_SUB_TYPE = exports.SCHOOL_TYPE = exports.ATTENDANCE_TYPE = exports.ATTENDANCE_STATUS = exports.USER_INVENTORY_ACTION = exports.INVENTORY_TYPE = exports.USER_STATUS = exports.PDF_MICRO_SERVICE_END_POINT = exports.MOBILE_VERIFICATION = exports.EMAIL_VERIFICATION = exports.PAGINATION_UPDATE_ORDER = exports.PAGINATION_ORDER = exports.DEFAULT_BATCH_TITLE = exports.DEFAULT_CLASS_ROOM_TITLE = exports.PAGINATION = exports.USER_INSTITUTE_META_STATUS_REJECTED_COUNT = exports.ONE_THOUSAND = exports.ONE_HUNDRED = exports.SIXTY = void 0;
|
|
4
4
|
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 = exports.EXAM_ANSWER_SHEET_QUESTION_RESULT = exports.PAYMENT_TERMS_TYPE = exports.PAYMENT_TERMS_STATUS = exports.EXAM_ANSWER_SHEET_RESULT_TYPE = exports.EXAM_ANSWER_SHEET_RESULT_STATUS = exports.EXAM_ANSWER_SHEET_STATUS = exports.EXAM_VALID_ANSWER_TYPE = exports.EXAM_ANSWER_SELECTION_TYPE = exports.EXAM_STATUS = exports.COURSE_STATUS = exports.EXAM_MODE = exports.GREETING_STATUS = exports.USER_HAS_ANNOUCEMENT_STATUS = exports.ANNOUCEMENT_STATUS = exports.TYPE_OF_USER = exports.ANNOUCEMENT_SCHEDULE_TYPE = exports.APPROVE_REQUEST_STATUS = exports.APPROVE_REQUEST_TYPE = exports.TYPE_MANAGEMENT_STATUS = exports.TYPE_MANAGEMENT_TYPE = exports.FILE_TYPE = exports.ACADEMIC_CALENDARS_STATUS = exports.BANNER_TYPE = exports.APP_TYPE = exports.FEED_BACK_STATUS = exports.FEED_BACK_TYPE = exports.FACILITY_TYPE = exports.EMPLOYMENT_TYPE = exports.USER_INSTITUTE_META_STATUS = exports.USER_HAS_PARENT_STATUS = exports.GUARDIANS_USER_META_MODEL_STATUS = exports.DISABILITY_TYPE = exports.WORK_CATEGORY = exports.BLOG_STATUS = exports.WORK_TYPE = void 0;
|
|
5
5
|
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_CHARGE_INTERVAL = exports.DISCOUNT_TYPE = exports.CONTACT_FEED_BACK_TYPE = exports.PLANNER_SYNC_STATUS = exports.NOTIFICATION_ACTION = exports.NOTIFICATION_MODULE_TYPE = exports.NOTIFICATION_STATUS = exports.NOTIFICATION_TYPE = 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_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 = void 0;
|
|
6
|
-
exports.SHEET_TYPE = exports.COMPETITION_USER_ROLE = exports.RESULT_STATUS = exports.COMPETITION_STATUS = exports.STATUS_BY_PARENTS = exports.COMPETITION_TYPE = exports.
|
|
6
|
+
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 = exports.INCOME_EXPENSE_SOURCE = exports.INCOME_EXPENSE_TYPE = exports.APPOINTMENT_STATUS = exports.MAINTENANCE_TYPE = exports.MAINTENANCE_MODE = exports.MAINTENANCE_MODULE_NAME = exports.ASSIGN_FILE_TYPE = exports.LOST_FOUND_ITEM_STATUS = exports.FREE_SUBSCRIPTION_SEQUENCE = exports.INITIAL_FREE_STORAGE_IN_GB = exports.INITIAL_FREE_COIN = exports.PAYMENT_PROCESSING_CALLBACK_URL = exports.PAYMENT_PROCESSING_PAGE_URL = exports.PAYMENT_PROCESSING_STATUS_URL = exports.COIN_PURCHASE_GST_PERCENTAGE = 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 = void 0;
|
|
7
7
|
const env_1 = require("../configs/env");
|
|
8
8
|
exports.SIXTY = 60;
|
|
9
9
|
exports.ONE_HUNDRED = 100;
|
|
@@ -1177,27 +1177,21 @@ var INCOME_EXPENSE_SOURCE;
|
|
|
1177
1177
|
INCOME_EXPENSE_SOURCE["VENDOR"] = "VENDOR";
|
|
1178
1178
|
INCOME_EXPENSE_SOURCE["ASSETS"] = "ASSETS";
|
|
1179
1179
|
})(INCOME_EXPENSE_SOURCE || (exports.INCOME_EXPENSE_SOURCE = INCOME_EXPENSE_SOURCE = {}));
|
|
1180
|
-
var
|
|
1181
|
-
(function (
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
})(
|
|
1187
|
-
var
|
|
1188
|
-
(function (
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
})(
|
|
1195
|
-
var COMPETITION_FOR;
|
|
1196
|
-
(function (COMPETITION_FOR) {
|
|
1197
|
-
COMPETITION_FOR["SCHOOL"] = "SCHOOL";
|
|
1198
|
-
COMPETITION_FOR["STANDARD"] = "STANDARD";
|
|
1199
|
-
COMPETITION_FOR["BATCH"] = "BATCH";
|
|
1200
|
-
})(COMPETITION_FOR || (exports.COMPETITION_FOR = COMPETITION_FOR = {}));
|
|
1180
|
+
var COMPETITION_TYPE_CATEGORY;
|
|
1181
|
+
(function (COMPETITION_TYPE_CATEGORY) {
|
|
1182
|
+
COMPETITION_TYPE_CATEGORY["CREATIVE_INTERESTS"] = "CREATIVE_INTERESTS";
|
|
1183
|
+
COMPETITION_TYPE_CATEGORY["SPORT"] = "SPORT";
|
|
1184
|
+
COMPETITION_TYPE_CATEGORY["CULTURAL"] = "CULTURAL";
|
|
1185
|
+
COMPETITION_TYPE_CATEGORY["ACADMIC"] = "ACADMIC";
|
|
1186
|
+
})(COMPETITION_TYPE_CATEGORY || (exports.COMPETITION_TYPE_CATEGORY = COMPETITION_TYPE_CATEGORY = {}));
|
|
1187
|
+
var CAMPUS_CARNIVAL_STATUS;
|
|
1188
|
+
(function (CAMPUS_CARNIVAL_STATUS) {
|
|
1189
|
+
CAMPUS_CARNIVAL_STATUS["PENDING"] = "PENDING";
|
|
1190
|
+
CAMPUS_CARNIVAL_STATUS["PUBLISHED"] = "PUBLISHED";
|
|
1191
|
+
CAMPUS_CARNIVAL_STATUS["IN_PROGRESS"] = "IN_PROGRESS";
|
|
1192
|
+
CAMPUS_CARNIVAL_STATUS["COMPLETED"] = "COMPLETED";
|
|
1193
|
+
CAMPUS_CARNIVAL_STATUS["CANCEL"] = "CANCEL";
|
|
1194
|
+
})(CAMPUS_CARNIVAL_STATUS || (exports.CAMPUS_CARNIVAL_STATUS = CAMPUS_CARNIVAL_STATUS = {}));
|
|
1201
1195
|
var COMPETITION_TYPE;
|
|
1202
1196
|
(function (COMPETITION_TYPE) {
|
|
1203
1197
|
COMPETITION_TYPE["GROUP"] = "GROUP";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Document } from 'mongoose';
|
|
2
|
+
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
+
import { CAMPUS_CARNIVAL_STATUS } from '../constants/app';
|
|
4
|
+
export interface ICampusCarnivalModelAttributes extends IDefaultAttributes, Document {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
competitionPoster: string[];
|
|
9
|
+
startDate: Date;
|
|
10
|
+
endDate: Date;
|
|
11
|
+
status: CAMPUS_CARNIVAL_STATUS;
|
|
12
|
+
academicCalendarId: string;
|
|
13
|
+
instituteId: string;
|
|
14
|
+
}
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import { Document } from 'mongoose';
|
|
2
2
|
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
-
import {
|
|
3
|
+
import { CAMPUS_CARNIVAL_STATUS, COMPETITION_TYPE_CATEGORY } from '../constants/app';
|
|
4
4
|
export interface IRoundsInformationAttributes {
|
|
5
5
|
id: string;
|
|
6
6
|
startTime: Date;
|
|
7
7
|
endTime: Date;
|
|
8
8
|
mark: number;
|
|
9
9
|
passingMark: number;
|
|
10
|
-
status:
|
|
10
|
+
status: CAMPUS_CARNIVAL_STATUS;
|
|
11
|
+
}
|
|
12
|
+
export interface IStandardsInformationAttributes {
|
|
13
|
+
standardId: string;
|
|
14
|
+
numberOfParticipants: number;
|
|
15
|
+
maxParticipants: number;
|
|
16
|
+
batchId: string[];
|
|
11
17
|
}
|
|
12
18
|
export interface ICompetitionAttributes extends IDefaultAttributes, Document {
|
|
13
19
|
id: string;
|
|
14
20
|
name: string;
|
|
15
21
|
description: string;
|
|
16
|
-
type:
|
|
22
|
+
type: COMPETITION_TYPE_CATEGORY;
|
|
23
|
+
subCategory: string;
|
|
17
24
|
rules: string;
|
|
18
25
|
maxGroupSize: number;
|
|
19
26
|
venue: string;
|
|
@@ -21,9 +28,12 @@ export interface ICompetitionAttributes extends IDefaultAttributes, Document {
|
|
|
21
28
|
competitionPoster: string[];
|
|
22
29
|
startTime: Date;
|
|
23
30
|
endTime: Date;
|
|
24
|
-
status:
|
|
31
|
+
status: CAMPUS_CARNIVAL_STATUS;
|
|
25
32
|
Judges: string[];
|
|
33
|
+
coordinator: string[];
|
|
34
|
+
standards: [IStandardsInformationAttributes];
|
|
26
35
|
academicCalendarId: string;
|
|
27
36
|
instituteId: string;
|
|
28
37
|
competitionEventId: string;
|
|
38
|
+
isNeedApproval: boolean;
|
|
29
39
|
}
|
|
@@ -150,7 +150,7 @@ export * from './maintenanceInterface';
|
|
|
150
150
|
export * from './appointmentInterface';
|
|
151
151
|
export * from './appointmentHistoryInterface';
|
|
152
152
|
export * from './incomeExpenseInterface';
|
|
153
|
-
export * from './
|
|
153
|
+
export * from './campusCarnivalInterface';
|
|
154
154
|
export * from './competitionInterface';
|
|
155
155
|
export * from './competitionGroupInterface';
|
|
156
156
|
export * from './competitionUsersInterface';
|
package/dist/interfaces/index.js
CHANGED
|
@@ -166,7 +166,7 @@ __exportStar(require("./maintenanceInterface"), exports);
|
|
|
166
166
|
__exportStar(require("./appointmentInterface"), exports);
|
|
167
167
|
__exportStar(require("./appointmentHistoryInterface"), exports);
|
|
168
168
|
__exportStar(require("./incomeExpenseInterface"), exports);
|
|
169
|
-
__exportStar(require("./
|
|
169
|
+
__exportStar(require("./campusCarnivalInterface"), exports);
|
|
170
170
|
__exportStar(require("./competitionInterface"), exports);
|
|
171
171
|
__exportStar(require("./competitionGroupInterface"), exports);
|
|
172
172
|
__exportStar(require("./competitionUsersInterface"), exports);
|
|
@@ -35,7 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
const mongoose_1 = __importStar(require("mongoose"));
|
|
37
37
|
const app_1 = require("../../constants/app");
|
|
38
|
-
const
|
|
38
|
+
const CampusCarnivalSchema = new mongoose_1.Schema({
|
|
39
39
|
name: {
|
|
40
40
|
type: String,
|
|
41
41
|
required: false,
|
|
@@ -44,11 +44,6 @@ const CompetitionEventSchema = new mongoose_1.Schema({
|
|
|
44
44
|
type: String,
|
|
45
45
|
required: false,
|
|
46
46
|
},
|
|
47
|
-
type: {
|
|
48
|
-
type: String,
|
|
49
|
-
enum: Object.values(app_1.COMPETITION_EVENTS),
|
|
50
|
-
required: false,
|
|
51
|
-
},
|
|
52
47
|
competitionPoster: {
|
|
53
48
|
type: [String],
|
|
54
49
|
required: false,
|
|
@@ -63,25 +58,8 @@ const CompetitionEventSchema = new mongoose_1.Schema({
|
|
|
63
58
|
},
|
|
64
59
|
status: {
|
|
65
60
|
type: String,
|
|
66
|
-
enum: Object.values(app_1.
|
|
67
|
-
default: app_1.
|
|
68
|
-
},
|
|
69
|
-
coordinator: {
|
|
70
|
-
type: [String],
|
|
71
|
-
default: [],
|
|
72
|
-
},
|
|
73
|
-
standards: {
|
|
74
|
-
type: [String],
|
|
75
|
-
default: [],
|
|
76
|
-
},
|
|
77
|
-
batches: {
|
|
78
|
-
type: [String],
|
|
79
|
-
default: [],
|
|
80
|
-
},
|
|
81
|
-
competitionFor: {
|
|
82
|
-
type: String,
|
|
83
|
-
enum: Object.values(app_1.COMPETITION_FOR),
|
|
84
|
-
required: true,
|
|
61
|
+
enum: Object.values(app_1.CAMPUS_CARNIVAL_STATUS),
|
|
62
|
+
default: app_1.CAMPUS_CARNIVAL_STATUS.PENDING,
|
|
85
63
|
},
|
|
86
64
|
academicCalendarId: {
|
|
87
65
|
type: String,
|
|
@@ -104,5 +82,5 @@ const CompetitionEventSchema = new mongoose_1.Schema({
|
|
|
104
82
|
timestamps: true,
|
|
105
83
|
versionKey: false,
|
|
106
84
|
});
|
|
107
|
-
const
|
|
108
|
-
exports.default =
|
|
85
|
+
const CampusCarnivalModel = mongoose_1.default.model("campus_carnival", CampusCarnivalSchema);
|
|
86
|
+
exports.default = CampusCarnivalModel;
|
|
@@ -58,7 +58,25 @@ const RoundsInformationSchema = new mongoose_1.Schema({
|
|
|
58
58
|
},
|
|
59
59
|
status: {
|
|
60
60
|
type: String,
|
|
61
|
-
enum: Object.values(app_1.
|
|
61
|
+
enum: Object.values(app_1.CAMPUS_CARNIVAL_STATUS),
|
|
62
|
+
required: true,
|
|
63
|
+
},
|
|
64
|
+
}, { _id: false });
|
|
65
|
+
const StandardsInformationSchema = new mongoose_1.Schema({
|
|
66
|
+
standardId: {
|
|
67
|
+
type: String,
|
|
68
|
+
required: true,
|
|
69
|
+
},
|
|
70
|
+
numberOfParticipants: {
|
|
71
|
+
type: Number,
|
|
72
|
+
required: true,
|
|
73
|
+
},
|
|
74
|
+
maxParticipants: {
|
|
75
|
+
type: Number,
|
|
76
|
+
required: true,
|
|
77
|
+
},
|
|
78
|
+
batchId: {
|
|
79
|
+
type: [String],
|
|
62
80
|
required: true,
|
|
63
81
|
},
|
|
64
82
|
}, { _id: false });
|
|
@@ -73,7 +91,7 @@ const CompetitionSchema = new mongoose_1.Schema({
|
|
|
73
91
|
},
|
|
74
92
|
type: {
|
|
75
93
|
type: String,
|
|
76
|
-
enum: Object.values(app_1.
|
|
94
|
+
enum: Object.values(app_1.COMPETITION_TYPE_CATEGORY),
|
|
77
95
|
required: true,
|
|
78
96
|
},
|
|
79
97
|
rules: {
|
|
@@ -106,13 +124,29 @@ const CompetitionSchema = new mongoose_1.Schema({
|
|
|
106
124
|
},
|
|
107
125
|
status: {
|
|
108
126
|
type: String,
|
|
109
|
-
enum: Object.values(app_1.
|
|
127
|
+
enum: Object.values(app_1.CAMPUS_CARNIVAL_STATUS),
|
|
110
128
|
required: true,
|
|
111
129
|
},
|
|
112
130
|
Judges: {
|
|
113
131
|
type: [String],
|
|
114
132
|
required: true,
|
|
115
133
|
},
|
|
134
|
+
coordinator: {
|
|
135
|
+
type: [String],
|
|
136
|
+
required: true,
|
|
137
|
+
},
|
|
138
|
+
standards: {
|
|
139
|
+
type: [StandardsInformationSchema],
|
|
140
|
+
required: true,
|
|
141
|
+
},
|
|
142
|
+
isNeedApproval: {
|
|
143
|
+
type: Boolean,
|
|
144
|
+
required: true,
|
|
145
|
+
},
|
|
146
|
+
subCategory: {
|
|
147
|
+
type: String,
|
|
148
|
+
required: true,
|
|
149
|
+
},
|
|
116
150
|
academicCalendarId: {
|
|
117
151
|
type: String,
|
|
118
152
|
required: true,
|
|
@@ -41,7 +41,7 @@ export { default as AssignFileModel } from './assignFileModel';
|
|
|
41
41
|
export { default as SeatingArrangementModel } from './seatingArrangementModel';
|
|
42
42
|
export { default as AppointmentModel } from './appointmentModel';
|
|
43
43
|
export { default as AppointmentHistoryModel } from './appointmentHistoryModel';
|
|
44
|
-
export { default as
|
|
44
|
+
export { default as CampusCarnivalModel } from './campusCarnivalModel';
|
|
45
45
|
export { default as CompetitionModel } from './competitionModel';
|
|
46
46
|
export { default as CompetitionGroupModel } from './competitionGroupModel';
|
|
47
47
|
export { default as CompetitionUsersModel } from './competitionUsersModel';
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CreatePollModel = exports.SheetFieldMappingModel = exports.FileUploadUserDetails = exports.CompetitionUsersModel = exports.CompetitionGroupModel = exports.CompetitionModel = exports.
|
|
6
|
+
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.SchoolFeeModel = 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
7
|
exports.PollSelectionModel = void 0;
|
|
8
8
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
9
9
|
const env_1 = require("../../configs/env");
|
|
@@ -108,8 +108,8 @@ var appointmentModel_1 = require("./appointmentModel");
|
|
|
108
108
|
Object.defineProperty(exports, "AppointmentModel", { enumerable: true, get: function () { return __importDefault(appointmentModel_1).default; } });
|
|
109
109
|
var appointmentHistoryModel_1 = require("./appointmentHistoryModel");
|
|
110
110
|
Object.defineProperty(exports, "AppointmentHistoryModel", { enumerable: true, get: function () { return __importDefault(appointmentHistoryModel_1).default; } });
|
|
111
|
-
var
|
|
112
|
-
Object.defineProperty(exports, "
|
|
111
|
+
var campusCarnivalModel_1 = require("./campusCarnivalModel");
|
|
112
|
+
Object.defineProperty(exports, "CampusCarnivalModel", { enumerable: true, get: function () { return __importDefault(campusCarnivalModel_1).default; } });
|
|
113
113
|
var competitionModel_1 = require("./competitionModel");
|
|
114
114
|
Object.defineProperty(exports, "CompetitionModel", { enumerable: true, get: function () { return __importDefault(competitionModel_1).default; } });
|
|
115
115
|
var competitionGroupModel_1 = require("./competitionGroupModel");
|
package/dist/types/index.d.ts
CHANGED
|
@@ -141,7 +141,6 @@ export * from './maintenanceType';
|
|
|
141
141
|
export * from './appointmentType';
|
|
142
142
|
export * from './appointmentHistoryType';
|
|
143
143
|
export * from './incomeExpenseType';
|
|
144
|
-
export * from './competitionEventType';
|
|
145
144
|
export * from './competitionType';
|
|
146
145
|
export * from './competitionGroupType';
|
|
147
146
|
export * from './competitionUsersType';
|
|
@@ -150,3 +149,4 @@ export * from './fileUploadUserDetailsType';
|
|
|
150
149
|
export * from './sheetFieldType';
|
|
151
150
|
export * from './pollCreateType';
|
|
152
151
|
export * from './pollSelectionType';
|
|
152
|
+
export * from './campusCarnivalType';
|
package/dist/types/index.js
CHANGED
|
@@ -157,7 +157,6 @@ __exportStar(require("./maintenanceType"), exports);
|
|
|
157
157
|
__exportStar(require("./appointmentType"), exports);
|
|
158
158
|
__exportStar(require("./appointmentHistoryType"), exports);
|
|
159
159
|
__exportStar(require("./incomeExpenseType"), exports);
|
|
160
|
-
__exportStar(require("./competitionEventType"), exports);
|
|
161
160
|
__exportStar(require("./competitionType"), exports);
|
|
162
161
|
__exportStar(require("./competitionGroupType"), exports);
|
|
163
162
|
__exportStar(require("./competitionUsersType"), exports);
|
|
@@ -166,3 +165,4 @@ __exportStar(require("./fileUploadUserDetailsType"), exports);
|
|
|
166
165
|
__exportStar(require("./sheetFieldType"), exports);
|
|
167
166
|
__exportStar(require("./pollCreateType"), exports);
|
|
168
167
|
__exportStar(require("./pollSelectionType"), exports);
|
|
168
|
+
__exportStar(require("./campusCarnivalType"), exports);
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Document } from 'mongoose';
|
|
2
|
-
import { IDefaultAttributes } from './commonInterface';
|
|
3
|
-
import { COMPETITION_EVENTS, COMPETITION_EVENT_STATUS, COMPETITION_FOR } from '../constants/app';
|
|
4
|
-
export interface ICompetitionEventModelAttributes extends IDefaultAttributes, Document {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
type: COMPETITION_EVENTS;
|
|
9
|
-
competitionPoster: string[];
|
|
10
|
-
startDate: Date;
|
|
11
|
-
endDate: Date;
|
|
12
|
-
status: COMPETITION_EVENT_STATUS;
|
|
13
|
-
coordinator: string[];
|
|
14
|
-
standards: string[];
|
|
15
|
-
batches: string[];
|
|
16
|
-
competitionFor: COMPETITION_FOR;
|
|
17
|
-
academicCalendarId: string;
|
|
18
|
-
instituteId: string;
|
|
19
|
-
}
|
|
File without changes
|
|
File without changes
|