docta-package 1.2.55 → 1.2.57
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.
|
@@ -11,7 +11,6 @@ interface ISessionConfigOutput {
|
|
|
11
11
|
export declare class SessionOutputDto {
|
|
12
12
|
id: string;
|
|
13
13
|
period: PeriodOutputDto;
|
|
14
|
-
patient: PatientOutputDto;
|
|
15
14
|
status: string;
|
|
16
15
|
isDeleted: boolean;
|
|
17
16
|
createdAt: number;
|
|
@@ -27,9 +26,11 @@ export declare class SessionPatientOutputDto extends SessionOutputDto {
|
|
|
27
26
|
}
|
|
28
27
|
export declare class SessionDoctorOutputDto extends SessionOutputDto {
|
|
29
28
|
price: number;
|
|
29
|
+
patient: PatientOutputDto;
|
|
30
30
|
constructor(session: ISessionDocument);
|
|
31
31
|
}
|
|
32
32
|
export declare class SessionAdminOutputDto extends SessionOutputDto {
|
|
33
|
+
patient: PatientOutputDto;
|
|
33
34
|
pricing: {
|
|
34
35
|
totalPrice: number;
|
|
35
36
|
doctorPrice: number;
|
|
@@ -7,9 +7,9 @@ const user_1 = require("./user");
|
|
|
7
7
|
// Base DTO for everyone
|
|
8
8
|
class SessionOutputDto {
|
|
9
9
|
constructor(session) {
|
|
10
|
-
|
|
10
|
+
var _a, _b;
|
|
11
|
+
this.id = (_b = ((_a = session.id) !== null && _a !== void 0 ? _a : session._id)) === null || _b === void 0 ? void 0 : _b.toString();
|
|
11
12
|
this.period = new period_1.PeriodOutputDto(session.period);
|
|
12
|
-
this.patient = new patient_1.PatientOutputDto(session.patient);
|
|
13
13
|
this.status = session.status;
|
|
14
14
|
this.isDeleted = session.isDeleted;
|
|
15
15
|
this.createdAt = session.createdAt;
|
|
@@ -32,6 +32,7 @@ exports.SessionPatientOutputDto = SessionPatientOutputDto;
|
|
|
32
32
|
class SessionDoctorOutputDto extends SessionOutputDto {
|
|
33
33
|
constructor(session) {
|
|
34
34
|
super(session); // call base constructor
|
|
35
|
+
this.patient = new patient_1.PatientOutputDto(session.patient);
|
|
35
36
|
this.price = session.pricing.doctorPrice;
|
|
36
37
|
}
|
|
37
38
|
}
|
|
@@ -40,6 +41,7 @@ exports.SessionDoctorOutputDto = SessionDoctorOutputDto;
|
|
|
40
41
|
class SessionAdminOutputDto extends SessionOutputDto {
|
|
41
42
|
constructor(session) {
|
|
42
43
|
super(session); // call base constructor
|
|
44
|
+
this.patient = new patient_1.PatientOutputDto(session.patient);
|
|
43
45
|
this.pricing = {
|
|
44
46
|
totalPrice: session.pricing.totalPrice,
|
|
45
47
|
doctorPrice: session.pricing.doctorPrice,
|