tychat-contracts 1.6.64 → 1.6.65

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.
@@ -20,5 +20,7 @@ export declare class CreatePatientDto {
20
20
  disabilityDescription?: string | null;
21
21
  initialObservation?: string | null;
22
22
  observation?: string | null;
23
+ avatarStorageId?: string | null;
24
+ avatarObjectKey?: string | null;
23
25
  }
24
26
  //# sourceMappingURL=create-patient.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-patient.dto.d.ts","sourceRoot":"","sources":["../../src/patients/create-patient.dto.ts"],"names":[],"mappings":"AAcA,qBAAa,gBAAgB;IAS3B,IAAI,EAAE,MAAM,CAAC;IAUb,GAAG,EAAE,MAAM,CAAC;IAOZ,SAAS,EAAE,MAAM,CAAC;IAUlB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAUtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAUtB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAUnB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAUvB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAUxB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAUjC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAQpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAQzB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAUzB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAS9B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAS/B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAS1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IASzB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAO1B,aAAa,EAAE,OAAO,CAA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AAI,CAAC;IAS5B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAShC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC"}
@@ -35,6 +35,8 @@ class CreatePatientDto {
35
35
  disabilityDescription;
36
36
  initialObservation;
37
37
  observation;
38
+ avatarStorageId;
39
+ avatarObjectKey;
38
40
  }
39
41
  exports.CreatePatientDto = CreatePatientDto;
40
42
  __decorate([
@@ -255,3 +257,23 @@ __decorate([
255
257
  (0, class_transformer_1.Transform)(({ value, obj }) => value ?? obj.notes ?? obj.observation),
256
258
  __metadata("design:type", Object)
257
259
  ], CreatePatientDto.prototype, "observation", void 0);
260
+ __decorate([
261
+ (0, swagger_1.ApiPropertyOptional)({
262
+ description: 'ID do objeto no storage da foto de perfil',
263
+ maxLength: 64,
264
+ }),
265
+ (0, class_validator_1.IsString)(),
266
+ (0, class_validator_1.IsOptional)(),
267
+ (0, class_validator_1.MaxLength)(64),
268
+ __metadata("design:type", Object)
269
+ ], CreatePatientDto.prototype, "avatarStorageId", void 0);
270
+ __decorate([
271
+ (0, swagger_1.ApiPropertyOptional)({
272
+ description: 'Chave do objeto no storage da foto de perfil',
273
+ maxLength: 1024,
274
+ }),
275
+ (0, class_validator_1.IsString)(),
276
+ (0, class_validator_1.IsOptional)(),
277
+ (0, class_validator_1.MaxLength)(1024),
278
+ __metadata("design:type", Object)
279
+ ], CreatePatientDto.prototype, "avatarObjectKey", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tychat-contracts",
3
- "version": "1.6.64",
3
+ "version": "1.6.65",
4
4
  "description": "DTOs compartilhados com class-validator (API e microserviços)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -211,5 +211,23 @@ export class CreatePatientDto {
211
211
  @MaxLength(2000)
212
212
  @Transform(({ value, obj }) => value ?? obj.notes ?? obj.observation)
213
213
  observation?: string | null;
214
+
215
+ @ApiPropertyOptional({
216
+ description: 'ID do objeto no storage da foto de perfil',
217
+ maxLength: 64,
218
+ })
219
+ @IsString()
220
+ @IsOptional()
221
+ @MaxLength(64)
222
+ avatarStorageId?: string | null;
223
+
224
+ @ApiPropertyOptional({
225
+ description: 'Chave do objeto no storage da foto de perfil',
226
+ maxLength: 1024,
227
+ })
228
+ @IsString()
229
+ @IsOptional()
230
+ @MaxLength(1024)
231
+ avatarObjectKey?: string | null;
214
232
  }
215
233