resurgence-data 1.1.51 → 1.1.52
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/support/ticket.dto.d.ts +10 -10
- package/dist/support/ticket.dto.js +14 -14
- package/package.json +1 -1
- package/src/support/ticket.dto.ts +10 -10
@@ -1,19 +1,19 @@
|
|
1
1
|
import { BaseDTO } from "../types/dto.type";
|
2
2
|
declare enum TICKET_TYPE {
|
3
|
-
COMPLAINT =
|
4
|
-
ENQUIRY =
|
3
|
+
COMPLAINT = "COMPLAINT",
|
4
|
+
ENQUIRY = "ENQUIRY"
|
5
5
|
}
|
6
6
|
declare enum TICKET_STATUS {
|
7
|
-
PENDING =
|
8
|
-
ASSIGNED =
|
9
|
-
IN_PROGRESS =
|
10
|
-
RESOLVED =
|
7
|
+
PENDING = "PENDING",
|
8
|
+
ASSIGNED = "ASSIGNED",
|
9
|
+
IN_PROGRESS = "IN_PROGRESS",
|
10
|
+
RESOLVED = "RESOLVED"
|
11
11
|
}
|
12
12
|
declare enum PRIORITY {
|
13
|
-
LOW =
|
14
|
-
NORMAL =
|
15
|
-
HIGH =
|
16
|
-
URGENT =
|
13
|
+
LOW = "LOW",
|
14
|
+
NORMAL = "NORMAL",
|
15
|
+
HIGH = "HIGH",
|
16
|
+
URGENT = "URGENT"
|
17
17
|
}
|
18
18
|
export declare class CreateTicketDTO extends BaseDTO {
|
19
19
|
billerId?: string;
|
@@ -15,22 +15,22 @@ const class_validator_1 = require("class-validator");
|
|
15
15
|
const dto_type_1 = require("../types/dto.type");
|
16
16
|
var TICKET_TYPE;
|
17
17
|
(function (TICKET_TYPE) {
|
18
|
-
TICKET_TYPE[
|
19
|
-
TICKET_TYPE[
|
18
|
+
TICKET_TYPE["COMPLAINT"] = "COMPLAINT";
|
19
|
+
TICKET_TYPE["ENQUIRY"] = "ENQUIRY";
|
20
20
|
})(TICKET_TYPE || (TICKET_TYPE = {}));
|
21
21
|
var TICKET_STATUS;
|
22
22
|
(function (TICKET_STATUS) {
|
23
|
-
TICKET_STATUS[
|
24
|
-
TICKET_STATUS[
|
25
|
-
TICKET_STATUS[
|
26
|
-
TICKET_STATUS[
|
23
|
+
TICKET_STATUS["PENDING"] = "PENDING";
|
24
|
+
TICKET_STATUS["ASSIGNED"] = "ASSIGNED";
|
25
|
+
TICKET_STATUS["IN_PROGRESS"] = "IN_PROGRESS";
|
26
|
+
TICKET_STATUS["RESOLVED"] = "RESOLVED";
|
27
27
|
})(TICKET_STATUS || (TICKET_STATUS = {}));
|
28
28
|
var PRIORITY;
|
29
29
|
(function (PRIORITY) {
|
30
|
-
PRIORITY[
|
31
|
-
PRIORITY[
|
32
|
-
PRIORITY[
|
33
|
-
PRIORITY[
|
30
|
+
PRIORITY["LOW"] = "LOW";
|
31
|
+
PRIORITY["NORMAL"] = "NORMAL";
|
32
|
+
PRIORITY["HIGH"] = "HIGH";
|
33
|
+
PRIORITY["URGENT"] = "URGENT";
|
34
34
|
})(PRIORITY || (PRIORITY = {}));
|
35
35
|
class CreateTicketDTO extends dto_type_1.BaseDTO {
|
36
36
|
}
|
@@ -50,7 +50,7 @@ __decorate([
|
|
50
50
|
__decorate([
|
51
51
|
(0, swagger_1.ApiProperty)({ description: "Type of the ticket", enum: TICKET_TYPE, default: TICKET_TYPE.ENQUIRY }),
|
52
52
|
(0, class_validator_1.IsEnum)(TICKET_TYPE),
|
53
|
-
__metadata("design:type",
|
53
|
+
__metadata("design:type", String)
|
54
54
|
], CreateTicketDTO.prototype, "ticketType", void 0);
|
55
55
|
__decorate([
|
56
56
|
(0, swagger_1.ApiProperty)({ description: "Transaction details", maxLength: 100 }),
|
@@ -91,7 +91,7 @@ __decorate([
|
|
91
91
|
__decorate([
|
92
92
|
(0, swagger_1.ApiProperty)({ description: "Type of the ticket", enum: TICKET_TYPE, default: TICKET_TYPE.ENQUIRY }),
|
93
93
|
(0, class_validator_1.IsEnum)(TICKET_TYPE),
|
94
|
-
__metadata("design:type",
|
94
|
+
__metadata("design:type", String)
|
95
95
|
], UpdateTicketDTO.prototype, "ticketType", void 0);
|
96
96
|
__decorate([
|
97
97
|
(0, swagger_1.ApiProperty)({ description: "Transaction details", maxLength: 100 }),
|
@@ -115,7 +115,7 @@ exports.TicketStatusDTO = TicketStatusDTO;
|
|
115
115
|
__decorate([
|
116
116
|
(0, swagger_1.ApiProperty)({ description: "Status of the ticket", enum: TICKET_STATUS, default: TICKET_STATUS.PENDING }),
|
117
117
|
(0, class_validator_1.IsEnum)(TICKET_STATUS, { message: "Invalid status value" }),
|
118
|
-
__metadata("design:type",
|
118
|
+
__metadata("design:type", String)
|
119
119
|
], TicketStatusDTO.prototype, "status", void 0);
|
120
120
|
__decorate([
|
121
121
|
(0, swagger_1.ApiProperty)({ description: "ID of the ticket", required: true }),
|
@@ -235,7 +235,7 @@ exports.EscalationDTO = EscalationDTO;
|
|
235
235
|
__decorate([
|
236
236
|
(0, swagger_1.ApiProperty)({ description: "Priority of the escalation", enum: PRIORITY, default: PRIORITY.NORMAL }),
|
237
237
|
(0, class_validator_1.IsEnum)(PRIORITY, { message: "Invalid priority value" }),
|
238
|
-
__metadata("design:type",
|
238
|
+
__metadata("design:type", String)
|
239
239
|
], EscalationDTO.prototype, "priority", void 0);
|
240
240
|
__decorate([
|
241
241
|
(0, swagger_1.ApiProperty)({ description: "ID of the ticket", required: true }),
|
package/package.json
CHANGED
@@ -3,22 +3,22 @@ import { IsOptional, IsUUID, IsString, IsEnum, Length, IsNotEmpty } from "class-
|
|
3
3
|
import { BaseDTO } from "../types/dto.type";
|
4
4
|
|
5
5
|
enum TICKET_TYPE {
|
6
|
-
COMPLAINT,
|
7
|
-
ENQUIRY,
|
6
|
+
COMPLAINT = "COMPLAINT",
|
7
|
+
ENQUIRY = "ENQUIRY",
|
8
8
|
}
|
9
9
|
|
10
10
|
enum TICKET_STATUS {
|
11
|
-
PENDING,
|
12
|
-
ASSIGNED,
|
13
|
-
IN_PROGRESS,
|
14
|
-
RESOLVED,
|
11
|
+
PENDING = "PENDING",
|
12
|
+
ASSIGNED = "ASSIGNED",
|
13
|
+
IN_PROGRESS = "IN_PROGRESS",
|
14
|
+
RESOLVED = "RESOLVED",
|
15
15
|
}
|
16
16
|
|
17
17
|
enum PRIORITY {
|
18
|
-
LOW,
|
19
|
-
NORMAL,
|
20
|
-
HIGH,
|
21
|
-
URGENT,
|
18
|
+
LOW = "LOW",
|
19
|
+
NORMAL = "NORMAL",
|
20
|
+
HIGH = "HIGH",
|
21
|
+
URGENT = "URGENT",
|
22
22
|
}
|
23
23
|
|
24
24
|
export class CreateTicketDTO extends BaseDTO {
|