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.
@@ -56,6 +56,7 @@ export declare class UpdateResponseDTO extends BaseDTO {
56
56
  }
57
57
  export declare class NoteDTO extends BaseDTO {
58
58
  ticketId: string;
59
+ userId: string;
59
60
  note: string;
60
61
  }
61
62
  export declare class UpdateNoteDTO extends BaseDTO {
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resurgence-data",
3
- "version": "1.1.50",
3
+ "version": "1.1.51",
4
4
  "description": "DTOs and shareable resources",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
@@ -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;