tychat-contracts 1.0.121 → 1.0.122

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.
@@ -16,6 +16,7 @@ export declare class CareQueueEntryDto {
16
16
  }
17
17
  export declare class CareQueueResponseDto {
18
18
  specialtyTicketPrefix: string;
19
+ scope?: 'professional' | 'clinic';
19
20
  items: CareQueueEntryDto[];
20
21
  }
21
22
  //# sourceMappingURL=care-queue.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"care-queue.dto.d.ts","sourceRoot":"","sources":["../../src/appointments/care-queue.dto.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC;AAElE,2FAA2F;AAC3F,qBAAa,iBAAiB;IAE5B,aAAa,EAAE,MAAM,CAAC;IAGtB,SAAS,EAAE,MAAM,CAAC;IAGlB,WAAW,EAAE,MAAM,CAAC;IAGpB,YAAY,EAAE,MAAM,CAAC;IAGrB,UAAU,EAAE,MAAM,CAAC;IAGnB,WAAW,EAAE,MAAM,CAAC;IAGpB,aAAa,EAAE,MAAM,CAAC;IAGtB,eAAe,EAAE,MAAM,CAAC;IAGxB,MAAM,EAAE,MAAM,CAAC;IAMf,UAAU,EAAE,MAAM,CAAC;IAGnB,aAAa,EAAE,MAAM,CAAC;IAMtB,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAED,qBAAa,oBAAoB;IAM/B,qBAAqB,EAAE,MAAM,CAAC;IAG9B,KAAK,EAAE,iBAAiB,EAAE,CAAC;CAC5B"}
1
+ {"version":3,"file":"care-queue.dto.d.ts","sourceRoot":"","sources":["../../src/appointments/care-queue.dto.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC;AAElE,2FAA2F;AAC3F,qBAAa,iBAAiB;IAE5B,aAAa,EAAE,MAAM,CAAC;IAGtB,SAAS,EAAE,MAAM,CAAC;IAGlB,WAAW,EAAE,MAAM,CAAC;IAGpB,YAAY,EAAE,MAAM,CAAC;IAGrB,UAAU,EAAE,MAAM,CAAC;IAGnB,WAAW,EAAE,MAAM,CAAC;IAGpB,aAAa,EAAE,MAAM,CAAC;IAGtB,eAAe,EAAE,MAAM,CAAC;IAGxB,MAAM,EAAE,MAAM,CAAC;IAMf,UAAU,EAAE,MAAM,CAAC;IAGnB,aAAa,EAAE,MAAM,CAAC;IAMtB,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAED,qBAAa,oBAAoB;IAM/B,qBAAqB,EAAE,MAAM,CAAC;IAQ9B,KAAK,CAAC,EAAE,cAAc,GAAG,QAAQ,CAAC;IAGlC,KAAK,EAAE,iBAAiB,EAAE,CAAC;CAC5B"}
@@ -83,6 +83,7 @@ __decorate([
83
83
  ], CareQueueEntryDto.prototype, "segment", void 0);
84
84
  class CareQueueResponseDto {
85
85
  specialtyTicketPrefix;
86
+ scope;
86
87
  items;
87
88
  }
88
89
  exports.CareQueueResponseDto = CareQueueResponseDto;
@@ -93,6 +94,14 @@ __decorate([
93
94
  }),
94
95
  __metadata("design:type", String)
95
96
  ], CareQueueResponseDto.prototype, "specialtyTicketPrefix", void 0);
97
+ __decorate([
98
+ (0, swagger_1.ApiProperty)({
99
+ enum: ['professional', 'clinic'],
100
+ description: 'professional = fila de um médico; clinic = painel da clínica (todos os profissionais, senhas SAL-*)',
101
+ required: false,
102
+ }),
103
+ __metadata("design:type", String)
104
+ ], CareQueueResponseDto.prototype, "scope", void 0);
96
105
  __decorate([
97
106
  (0, swagger_1.ApiProperty)({ type: [CareQueueEntryDto] }),
98
107
  __metadata("design:type", Array)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tychat-contracts",
3
- "version": "1.0.121",
3
+ "version": "1.0.122",
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",
@@ -55,6 +55,14 @@ export class CareQueueResponseDto {
55
55
  })
56
56
  specialtyTicketPrefix: string;
57
57
 
58
+ @ApiProperty({
59
+ enum: ['professional', 'clinic'],
60
+ description:
61
+ 'professional = fila de um médico; clinic = painel da clínica (todos os profissionais, senhas SAL-*)',
62
+ required: false,
63
+ })
64
+ scope?: 'professional' | 'clinic';
65
+
58
66
  @ApiProperty({ type: [CareQueueEntryDto] })
59
67
  items: CareQueueEntryDto[];
60
68
  }