tychat-contracts 1.0.19 → 1.0.20

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.
@@ -3,5 +3,8 @@ export declare class ListAppointmentsQueryDto {
3
3
  limit?: number;
4
4
  dateFrom?: string;
5
5
  dateTo?: string;
6
+ userId?: string;
7
+ checkinCompleted?: boolean;
8
+ patientId?: string;
6
9
  }
7
10
  //# sourceMappingURL=list-appointments-query.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-appointments-query.dto.d.ts","sourceRoot":"","sources":["../../src/appointments/list-appointments-query.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,wBAAwB;IAUnC,IAAI,CAAC,EAAE,MAAM,CAAC;IAad,KAAK,CAAC,EAAE,MAAM,CAAC;IAQf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAQlB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"list-appointments-query.dto.d.ts","sourceRoot":"","sources":["../../src/appointments/list-appointments-query.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,wBAAwB;IAUnC,IAAI,CAAC,EAAE,MAAM,CAAC;IAad,KAAK,CAAC,EAAE,MAAM,CAAC;IAQf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAQlB,MAAM,CAAC,EAAE,MAAM,CAAC;IAQhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAQhB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAQ3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -17,6 +17,9 @@ class ListAppointmentsQueryDto {
17
17
  limit;
18
18
  dateFrom;
19
19
  dateTo;
20
+ userId;
21
+ checkinCompleted;
22
+ patientId;
20
23
  }
21
24
  exports.ListAppointmentsQueryDto = ListAppointmentsQueryDto;
22
25
  __decorate([
@@ -63,3 +66,30 @@ __decorate([
63
66
  (0, class_validator_1.IsDateString)(),
64
67
  __metadata("design:type", String)
65
68
  ], ListAppointmentsQueryDto.prototype, "dateTo", void 0);
69
+ __decorate([
70
+ (0, swagger_1.ApiPropertyOptional)({
71
+ description: 'Filtrar por profissional (UUID)',
72
+ example: '550e8400-e29b-41d4-a716-446655440001',
73
+ }),
74
+ (0, class_validator_1.IsOptional)(),
75
+ (0, class_validator_1.IsUUID)('4'),
76
+ __metadata("design:type", String)
77
+ ], ListAppointmentsQueryDto.prototype, "userId", void 0);
78
+ __decorate([
79
+ (0, swagger_1.ApiPropertyOptional)({
80
+ description: 'Filtrar por status de check-in realizado',
81
+ example: true,
82
+ }),
83
+ (0, class_validator_1.IsOptional)(),
84
+ (0, class_validator_1.IsBoolean)(),
85
+ __metadata("design:type", Boolean)
86
+ ], ListAppointmentsQueryDto.prototype, "checkinCompleted", void 0);
87
+ __decorate([
88
+ (0, swagger_1.ApiPropertyOptional)({
89
+ description: 'Filtrar por paciente (UUID) - histórico de consultas',
90
+ example: '550e8400-e29b-41d4-a716-446655440000',
91
+ }),
92
+ (0, class_validator_1.IsOptional)(),
93
+ (0, class_validator_1.IsUUID)('4'),
94
+ __metadata("design:type", String)
95
+ ], ListAppointmentsQueryDto.prototype, "patientId", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tychat-contracts",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
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",
@@ -1,5 +1,5 @@
1
1
  import { ApiPropertyOptional } from '@nestjs/swagger';
2
- import { IsDateString, IsInt, IsOptional, Max, Min } from 'class-validator';
2
+ import { IsBoolean, IsDateString, IsInt, IsOptional, IsUUID, Max, Min } from 'class-validator';
3
3
 
4
4
  export class ListAppointmentsQueryDto {
5
5
  @ApiPropertyOptional({
@@ -41,4 +41,28 @@ export class ListAppointmentsQueryDto {
41
41
  @IsOptional()
42
42
  @IsDateString()
43
43
  dateTo?: string;
44
+
45
+ @ApiPropertyOptional({
46
+ description: 'Filtrar por profissional (UUID)',
47
+ example: '550e8400-e29b-41d4-a716-446655440001',
48
+ })
49
+ @IsOptional()
50
+ @IsUUID('4')
51
+ userId?: string;
52
+
53
+ @ApiPropertyOptional({
54
+ description: 'Filtrar por status de check-in realizado',
55
+ example: true,
56
+ })
57
+ @IsOptional()
58
+ @IsBoolean()
59
+ checkinCompleted?: boolean;
60
+
61
+ @ApiPropertyOptional({
62
+ description: 'Filtrar por paciente (UUID) - histórico de consultas',
63
+ example: '550e8400-e29b-41d4-a716-446655440000',
64
+ })
65
+ @IsOptional()
66
+ @IsUUID('4')
67
+ patientId?: string;
44
68
  }