@kipicore/dbcore 1.1.260 → 1.1.261

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.
@@ -1314,5 +1314,6 @@ export declare enum TICKET_RAISE_ERROR_MESSAGES {
1314
1314
  CREATE_FAIL = "Unable to save ticket",
1315
1315
  GET_FAIL = "Unable to retrieve ticket",
1316
1316
  UPDATE_FAIL = "Unable to update ticket",
1317
- DELETE_FAIL = "Unable to delete ticket"
1317
+ DELETE_FAIL = "Unable to delete ticket",
1318
+ COMMENT_DELETED = "Comment deleted!"
1318
1319
  }
@@ -1460,4 +1460,5 @@ var TICKET_RAISE_ERROR_MESSAGES;
1460
1460
  TICKET_RAISE_ERROR_MESSAGES["GET_FAIL"] = "Unable to retrieve ticket";
1461
1461
  TICKET_RAISE_ERROR_MESSAGES["UPDATE_FAIL"] = "Unable to update ticket";
1462
1462
  TICKET_RAISE_ERROR_MESSAGES["DELETE_FAIL"] = "Unable to delete ticket";
1463
+ TICKET_RAISE_ERROR_MESSAGES["COMMENT_DELETED"] = "Comment deleted!";
1463
1464
  })(TICKET_RAISE_ERROR_MESSAGES || (exports.TICKET_RAISE_ERROR_MESSAGES = TICKET_RAISE_ERROR_MESSAGES = {}));
@@ -913,5 +913,6 @@ export declare enum TICKET_RAISE_SUCCESS_MESSAGES {
913
913
  CREATE_SUCCESS = "Ticket created successfully",
914
914
  GET_SUCCESS = "Ticket retrieved successfully",
915
915
  UPDATE_SUCCESS = "Ticket updated successfully",
916
- DELETE_SUCCESS = "Ticket deleted successfully"
916
+ DELETE_SUCCESS = "Ticket deleted successfully",
917
+ COMMENT_ADDED = "Comment added"
917
918
  }
@@ -1063,4 +1063,5 @@ var TICKET_RAISE_SUCCESS_MESSAGES;
1063
1063
  TICKET_RAISE_SUCCESS_MESSAGES["GET_SUCCESS"] = "Ticket retrieved successfully";
1064
1064
  TICKET_RAISE_SUCCESS_MESSAGES["UPDATE_SUCCESS"] = "Ticket updated successfully";
1065
1065
  TICKET_RAISE_SUCCESS_MESSAGES["DELETE_SUCCESS"] = "Ticket deleted successfully";
1066
+ TICKET_RAISE_SUCCESS_MESSAGES["COMMENT_ADDED"] = "Comment added";
1066
1067
  })(TICKET_RAISE_SUCCESS_MESSAGES || (exports.TICKET_RAISE_SUCCESS_MESSAGES = TICKET_RAISE_SUCCESS_MESSAGES = {}));
@@ -4,15 +4,13 @@ import { IDefaultAttributes } from "./commonInterface";
4
4
  export interface ITicketRaiseConversationAttributes {
5
5
  text: string;
6
6
  senderId: string;
7
- parentId: string;
8
- id: string;
7
+ parentId?: string;
8
+ conversationId: string;
9
9
  }
10
10
  export interface ITicketRaiseAttributes extends IDefaultAttributes, Document {
11
11
  id: string;
12
12
  title: string;
13
13
  description: string;
14
- startDate: Date;
15
- deadLine: Date;
16
14
  status: TICKET_RAISE_STATUS;
17
15
  priority: TICKET_RAISE_PRIORITY;
18
16
  assignTo: string;
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  const mongoose_1 = __importStar(require("mongoose"));
37
- const TaskConversationsSchema = new mongoose_1.Schema({
37
+ const TicketConversationsSchema = new mongoose_1.Schema({
38
38
  text: {
39
39
  type: String,
40
40
  required: true,
@@ -43,7 +43,7 @@ const TaskConversationsSchema = new mongoose_1.Schema({
43
43
  type: String,
44
44
  required: true,
45
45
  },
46
- id: {
46
+ conversationId: {
47
47
  type: String,
48
48
  required: true,
49
49
  },
@@ -78,7 +78,7 @@ const TicketRaiseSchema = new mongoose_1.Schema({
78
78
  required: false,
79
79
  },
80
80
  conversation: {
81
- type: [TaskConversationsSchema],
81
+ type: [TicketConversationsSchema],
82
82
  required: false
83
83
  },
84
84
  academicCalendarId: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.260",
3
+ "version": "1.1.261",
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",