@kipicore/dbcore 1.1.149 → 1.1.151

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.
@@ -749,7 +749,8 @@ export declare enum SOCKET_EVENTS {
749
749
  SEND_FROM_SERVER_EVENT = "TO_CLIENT",
750
750
  GET_FROM_CLIENT_EVENT = "FROM_CLIENT",
751
751
  SEND_NOTIFICATIONS = "SEND_NOTIFICATIONS",
752
- GET_NOTIFICATIONS = "GET_NOTIFICATIONS"
752
+ GET_NOTIFICATIONS = "GET_NOTIFICATIONS",
753
+ GET_NOTIFICATIONS_COUNT = "GET_NOTIFICATIONS_COUNT"
753
754
  }
754
755
  export declare enum HOME_WORK_STATUS {
755
756
  COMPLETED = "COMPLETED",
@@ -964,6 +964,7 @@ var SOCKET_EVENTS;
964
964
  SOCKET_EVENTS["GET_FROM_CLIENT_EVENT"] = "FROM_CLIENT";
965
965
  SOCKET_EVENTS["SEND_NOTIFICATIONS"] = "SEND_NOTIFICATIONS";
966
966
  SOCKET_EVENTS["GET_NOTIFICATIONS"] = "GET_NOTIFICATIONS";
967
+ SOCKET_EVENTS["GET_NOTIFICATIONS_COUNT"] = "GET_NOTIFICATIONS_COUNT";
967
968
  })(SOCKET_EVENTS || (exports.SOCKET_EVENTS = SOCKET_EVENTS = {}));
968
969
  var HOME_WORK_STATUS;
969
970
  (function (HOME_WORK_STATUS) {
@@ -115,10 +115,10 @@ const AddressSchema = new mongoose_1.Schema({
115
115
  }, { _id: false });
116
116
  const InquirySchema = new mongoose_1.Schema({
117
117
  instituteId: { type: String, required: false },
118
- basicInformation: { type: BasicInformationSchema, required: true },
119
- academicInformation: { type: AcademicInformationSchema, required: true },
120
- guardianInformation: { type: GuardianInformationSchema, required: true },
121
- lastSchoolInformation: { type: LastSchoolSchema, required: true },
118
+ basicInformation: { type: BasicInformationSchema, required: false },
119
+ academicInformation: { type: AcademicInformationSchema, required: false },
120
+ guardianInformation: { type: GuardianInformationSchema, required: false },
121
+ lastSchoolInformation: { type: LastSchoolSchema, required: false },
122
122
  address: { type: AddressSchema, required: false },
123
123
  referredBy: {
124
124
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.149",
3
+ "version": "1.1.151",
4
4
  "description": "Reusable DB core package with Postgres, MongoDB, models, services, interfaces, and types",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",