docta-package 1.2.20 → 1.2.25
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.
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { IPeriodDocument } from "../../models";
|
|
2
|
-
import { DoctorOutputDto } from "./doctor";
|
|
3
2
|
import { UserOutputDto } from "./user";
|
|
4
3
|
import { PeriodStatus } from "../../enums/period.status";
|
|
5
4
|
export declare class PeriodOutputDto {
|
|
6
5
|
id: string;
|
|
7
|
-
|
|
6
|
+
doctorId: string;
|
|
8
7
|
startTime: number;
|
|
9
8
|
endTime: number;
|
|
10
9
|
status: PeriodStatus;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PeriodAdminOutputDto = exports.PeriodOutputDto = void 0;
|
|
4
|
-
const doctor_1 = require("./doctor");
|
|
5
4
|
const user_1 = require("./user");
|
|
6
5
|
// Base DTO for everyone
|
|
7
6
|
class PeriodOutputDto {
|
|
8
7
|
constructor(period) {
|
|
9
8
|
this.id = period.id.toString();
|
|
10
|
-
this.
|
|
9
|
+
this.doctorId = String(period.doctor._id);
|
|
11
10
|
this.startTime = period.startTime;
|
|
12
11
|
this.endTime = period.endTime;
|
|
13
12
|
this.status = period.status;
|