@kipicore/dbcore 1.1.495 → 1.1.497

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.
@@ -309,13 +309,16 @@ export declare enum FACILITY_TYPE {
309
309
  export declare enum FEED_BACK_TYPE {
310
310
  SUGGESTION = "SUGGESTION",
311
311
  COMPLAINT = "COMPLAINT",
312
- REQUEST = "REQUEST"
312
+ REQUEST = "REQUEST",
313
+ BEHAVIOR = "BEHAVIOR",
314
+ FEEDBACK = "FEEDBACK"
313
315
  }
314
316
  export declare enum FEED_BACK_STATUS {
315
317
  OPEN = "OPEN",
316
318
  CLOSED = "CLOSED",
317
319
  WORKING = "WORKING",
318
- POST_ON_FEED = "POST_ON_FEED"
320
+ POST_ON_FEED = "POST_ON_FEED",
321
+ NONE = "NONE"
319
322
  }
320
323
  export declare enum APP_TYPE {
321
324
  INSTITUTE_APP = "INSTITUTE_APP",
@@ -380,6 +380,8 @@ var FEED_BACK_TYPE;
380
380
  FEED_BACK_TYPE["SUGGESTION"] = "SUGGESTION";
381
381
  FEED_BACK_TYPE["COMPLAINT"] = "COMPLAINT";
382
382
  FEED_BACK_TYPE["REQUEST"] = "REQUEST";
383
+ FEED_BACK_TYPE["BEHAVIOR"] = "BEHAVIOR";
384
+ FEED_BACK_TYPE["FEEDBACK"] = "FEEDBACK";
383
385
  })(FEED_BACK_TYPE || (exports.FEED_BACK_TYPE = FEED_BACK_TYPE = {}));
384
386
  var FEED_BACK_STATUS;
385
387
  (function (FEED_BACK_STATUS) {
@@ -387,6 +389,7 @@ var FEED_BACK_STATUS;
387
389
  FEED_BACK_STATUS["CLOSED"] = "CLOSED";
388
390
  FEED_BACK_STATUS["WORKING"] = "WORKING";
389
391
  FEED_BACK_STATUS["POST_ON_FEED"] = "POST_ON_FEED";
392
+ FEED_BACK_STATUS["NONE"] = "NONE";
390
393
  })(FEED_BACK_STATUS || (exports.FEED_BACK_STATUS = FEED_BACK_STATUS = {}));
391
394
  var APP_TYPE;
392
395
  (function (APP_TYPE) {
@@ -11,7 +11,9 @@ export interface IFeeSubmissionAttributes extends IDefaultAttributes, Document {
11
11
  collectorId: string;
12
12
  amount: number;
13
13
  date: Date;
14
- submission: ISubmissionAttributes[];
15
- currentUserId: string;
14
+ submission?: ISubmissionAttributes[];
15
+ currentUserId?: string;
16
16
  status: FEE_SUBMISSION_STATUS;
17
+ instituteId?: string;
18
+ academicCalendarId?: string;
17
19
  }
@@ -17,4 +17,5 @@ export interface IFeedBackModelAttributes extends IDefaultAttributes, Document {
17
17
  description: string;
18
18
  instituteId: string;
19
19
  conversation: IConversation[];
20
+ userId: string;
20
21
  }
@@ -73,7 +73,15 @@ const FeeSubmissionSchema = new mongoose_1.Schema({
73
73
  type: [SubmissionSchema],
74
74
  required: false,
75
75
  default: [],
76
- }
76
+ },
77
+ instituteId: {
78
+ type: String,
79
+ required: false,
80
+ },
81
+ academicCalendarId: {
82
+ type: String,
83
+ required: false
84
+ },
77
85
  }, {
78
86
  timestamps: true,
79
87
  versionKey: false,
@@ -92,7 +92,11 @@ const FeedBackSchema = new mongoose_1.Schema({
92
92
  default: false,
93
93
  },
94
94
  rating: {
95
- type: Number
95
+ type: Number,
96
+ },
97
+ userId: {
98
+ type: String,
99
+ required: false,
96
100
  },
97
101
  createdBy: {
98
102
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.495",
3
+ "version": "1.1.497",
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",