docta-package 1.2.60 → 1.2.61
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.
|
@@ -2,7 +2,6 @@ import { ISessionDocument } from "../../models";
|
|
|
2
2
|
import { PeriodOutputDto } from "./period";
|
|
3
3
|
import { PatientOutputDto } from "./patient";
|
|
4
4
|
import { UserOutputDto } from "./user";
|
|
5
|
-
import { DoctorOutputDto } from "./doctor";
|
|
6
5
|
interface ISessionConfigOutput {
|
|
7
6
|
originalDoctorConsultationFeePerHour: number;
|
|
8
7
|
platformPercentage: number;
|
|
@@ -19,7 +18,6 @@ export declare class SessionOutputDto {
|
|
|
19
18
|
constructor(session: ISessionDocument);
|
|
20
19
|
}
|
|
21
20
|
export declare class SessionPatientOutputDto extends SessionOutputDto {
|
|
22
|
-
doctor: DoctorOutputDto;
|
|
23
21
|
pricing: {
|
|
24
22
|
totalPrice: number;
|
|
25
23
|
paymentApiPrice: number;
|
|
@@ -4,7 +4,6 @@ exports.SessionAdminOutputDto = exports.SessionDoctorOutputDto = exports.Session
|
|
|
4
4
|
const period_1 = require("./period");
|
|
5
5
|
const patient_1 = require("./patient");
|
|
6
6
|
const user_1 = require("./user");
|
|
7
|
-
const doctor_1 = require("./doctor");
|
|
8
7
|
// Base DTO for everyone
|
|
9
8
|
class SessionOutputDto {
|
|
10
9
|
constructor(session) {
|
|
@@ -22,7 +21,6 @@ exports.SessionOutputDto = SessionOutputDto;
|
|
|
22
21
|
class SessionPatientOutputDto extends SessionOutputDto {
|
|
23
22
|
constructor(session) {
|
|
24
23
|
super(session); // call base constructor
|
|
25
|
-
this.doctor = new doctor_1.DoctorOutputDto(session.doctor);
|
|
26
24
|
this.pricing = {
|
|
27
25
|
totalPrice: session.pricing.totalPrice,
|
|
28
26
|
paymentApiPrice: session.pricing.paymentApiPrice,
|