resurgence-data 1.1.52 → 1.1.53
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.
@@ -56,8 +56,15 @@ __decorate([
|
|
56
56
|
(0, swagger_1.ApiProperty)({ description: "Transaction details", maxLength: 100 }),
|
57
57
|
(0, class_validator_1.IsString)(),
|
58
58
|
(0, class_validator_1.Length)(0, 100),
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
59
60
|
__metadata("design:type", String)
|
60
61
|
], CreateTicketDTO.prototype, "transaction", void 0);
|
62
|
+
__decorate([
|
63
|
+
(0, swagger_1.ApiProperty)({ description: "Priority of the ticket", enum: PRIORITY, default: PRIORITY.NORMAL }),
|
64
|
+
(0, class_validator_1.IsEnum)(PRIORITY),
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
66
|
+
__metadata("design:type", String)
|
67
|
+
], CreateTicketDTO.prototype, "priority", void 0);
|
61
68
|
__decorate([
|
62
69
|
(0, swagger_1.ApiProperty)({ description: "Subject of the ticket" }),
|
63
70
|
(0, class_validator_1.IsString)(),
|
package/package.json
CHANGED
@@ -39,8 +39,14 @@ export class CreateTicketDTO extends BaseDTO {
|
|
39
39
|
@ApiProperty({ description: "Transaction details", maxLength: 100 })
|
40
40
|
@IsString()
|
41
41
|
@Length(0, 100)
|
42
|
+
@IsOptional()
|
42
43
|
transaction: string;
|
43
44
|
|
45
|
+
@ApiProperty({ description: "Priority of the ticket", enum: PRIORITY, default: PRIORITY.NORMAL })
|
46
|
+
@IsEnum(PRIORITY)
|
47
|
+
@IsOptional()
|
48
|
+
priority?: PRIORITY;
|
49
|
+
|
44
50
|
@ApiProperty({ description: "Subject of the ticket" })
|
45
51
|
@IsString()
|
46
52
|
subject: string;
|