resurgence-data 1.1.50 → 1.1.51
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.
@@ -201,6 +201,11 @@ __decorate([
|
|
201
201
|
(0, class_validator_1.IsUUID)(4, { message: "Invalid UUID format for ticket ID" }),
|
202
202
|
__metadata("design:type", String)
|
203
203
|
], NoteDTO.prototype, "ticketId", void 0);
|
204
|
+
__decorate([
|
205
|
+
(0, swagger_1.ApiProperty)({ description: "User id of the note", required: true }),
|
206
|
+
(0, class_validator_1.IsUUID)(4, { message: "Invalid UUID format for user ID" }),
|
207
|
+
__metadata("design:type", String)
|
208
|
+
], NoteDTO.prototype, "userId", void 0);
|
204
209
|
__decorate([
|
205
210
|
(0, swagger_1.ApiProperty)({ description: "Content of the note" }),
|
206
211
|
(0, class_validator_1.IsString)({ message: "Note must be a string" }),
|
package/package.json
CHANGED
@@ -151,6 +151,10 @@ export class NoteDTO extends BaseDTO {
|
|
151
151
|
@IsUUID(4, { message: "Invalid UUID format for ticket ID" })
|
152
152
|
ticketId: string;
|
153
153
|
|
154
|
+
@ApiProperty({ description: "User id of the note", required: true })
|
155
|
+
@IsUUID(4, { message: "Invalid UUID format for user ID" })
|
156
|
+
userId: string;
|
157
|
+
|
154
158
|
@ApiProperty({ description: "Content of the note" })
|
155
159
|
@IsString({ message: "Note must be a string" })
|
156
160
|
note: string;
|