docta-package 1.2.42 → 1.2.43

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.
@@ -12,6 +12,9 @@ export declare class PeriodOutputDto {
12
12
  updatedAt: number;
13
13
  constructor(period: IPeriodDocument);
14
14
  }
15
+ export declare class PeriodDoctorOutputDto extends PeriodOutputDto {
16
+ constructor(period: IPeriodDocument);
17
+ }
15
18
  export declare class PeriodAdminOutputDto extends PeriodOutputDto {
16
19
  createdBy: UserOutputDto | null;
17
20
  updatedBy: UserOutputDto | null;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PeriodAdminOutputDto = exports.PeriodOutputDto = void 0;
3
+ exports.PeriodAdminOutputDto = exports.PeriodDoctorOutputDto = exports.PeriodOutputDto = void 0;
4
4
  const user_1 = require("./user");
5
5
  // Base DTO for everyone
6
6
  class PeriodOutputDto {
@@ -16,6 +16,17 @@ class PeriodOutputDto {
16
16
  }
17
17
  }
18
18
  exports.PeriodOutputDto = PeriodOutputDto;
19
+ // Extended DTO for doctor's responses
20
+ class PeriodDoctorOutputDto extends PeriodOutputDto {
21
+ // sessionInfo: SessionOutputDto | null;
22
+ constructor(period) {
23
+ super(period); // call base constructor
24
+ // this.createdBy = period.createdBy
25
+ // ? new UserOutputDto(period.createdBy)
26
+ // : null;
27
+ }
28
+ }
29
+ exports.PeriodDoctorOutputDto = PeriodDoctorOutputDto;
19
30
  // Extended DTO for admin responses
20
31
  class PeriodAdminOutputDto extends PeriodOutputDto {
21
32
  constructor(period) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docta-package",
3
- "version": "1.2.42",
3
+ "version": "1.2.43",
4
4
  "description": "This package will contail all the required files to run the docta micro-service app",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",