docta-package 1.2.63 → 1.2.64
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,15 +1,14 @@
|
|
|
1
1
|
import { IDoctorDocument } from "../../models";
|
|
2
2
|
import { SpecialtyOutputDto } from "./specialty";
|
|
3
3
|
import { ExpertiseOutputDto } from "./expertise";
|
|
4
|
-
import { UserOutputDto } from "./user";
|
|
4
|
+
import { UserOutputDto, UserPublicOutputDto } from "./user";
|
|
5
5
|
import { EducationOutputDto } from "./education";
|
|
6
6
|
import { PositionOutputDto } from "./position";
|
|
7
7
|
import { LanguageOutputDto } from "./language";
|
|
8
8
|
import { FaqOutputDto } from "./faq";
|
|
9
9
|
import { LocationOutputDto } from "./location";
|
|
10
|
-
|
|
10
|
+
declare class OutputDto {
|
|
11
11
|
id: string;
|
|
12
|
-
user: UserOutputDto;
|
|
13
12
|
specialty: SpecialtyOutputDto;
|
|
14
13
|
name: string;
|
|
15
14
|
biography: string | null;
|
|
@@ -25,6 +24,14 @@ export declare class DoctorOutputDto {
|
|
|
25
24
|
faqs: FaqOutputDto[];
|
|
26
25
|
expertises: ExpertiseOutputDto[];
|
|
27
26
|
location: LocationOutputDto | null;
|
|
27
|
+
constructor(doctor: IDoctorDocument);
|
|
28
|
+
}
|
|
29
|
+
export declare class DoctorPublicOutputDto extends OutputDto {
|
|
30
|
+
user: UserPublicOutputDto;
|
|
31
|
+
constructor(doctor: IDoctorDocument);
|
|
32
|
+
}
|
|
33
|
+
export declare class DoctorOutputDto extends OutputDto {
|
|
34
|
+
user: UserOutputDto;
|
|
28
35
|
isDeleted: boolean;
|
|
29
36
|
createdAt: number;
|
|
30
37
|
updatedAt: number;
|
|
@@ -37,3 +44,4 @@ export declare class DoctorAdminOutputDto extends DoctorOutputDto {
|
|
|
37
44
|
deletedBy: UserOutputDto | null;
|
|
38
45
|
constructor(doctor: IDoctorDocument);
|
|
39
46
|
}
|
|
47
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DoctorAdminOutputDto = exports.DoctorOutputDto = void 0;
|
|
3
|
+
exports.DoctorAdminOutputDto = exports.DoctorOutputDto = exports.DoctorPublicOutputDto = void 0;
|
|
4
4
|
const specialty_1 = require("./specialty");
|
|
5
5
|
const expertise_1 = require("./expertise");
|
|
6
6
|
const user_1 = require("./user");
|
|
@@ -9,12 +9,10 @@ const position_1 = require("./position");
|
|
|
9
9
|
const language_1 = require("./language");
|
|
10
10
|
const faq_1 = require("./faq");
|
|
11
11
|
const location_1 = require("./location");
|
|
12
|
-
|
|
13
|
-
class DoctorOutputDto {
|
|
12
|
+
class OutputDto {
|
|
14
13
|
constructor(doctor) {
|
|
15
14
|
var _a, _b, _c;
|
|
16
15
|
this.id = (_b = ((_a = doctor.id) !== null && _a !== void 0 ? _a : doctor._id)) === null || _b === void 0 ? void 0 : _b.toString();
|
|
17
|
-
this.user = new user_1.UserOutputDto(doctor.user);
|
|
18
16
|
this.name = doctor.name;
|
|
19
17
|
this.specialty = new specialty_1.SpecialtyOutputDto(doctor.specialty);
|
|
20
18
|
this.slug = doctor.slug;
|
|
@@ -36,6 +34,19 @@ class DoctorOutputDto {
|
|
|
36
34
|
this.location = doctor.location
|
|
37
35
|
? new location_1.LocationOutputDto(doctor.location)
|
|
38
36
|
: null;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
class DoctorPublicOutputDto extends OutputDto {
|
|
40
|
+
constructor(doctor) {
|
|
41
|
+
super(doctor);
|
|
42
|
+
this.user = new user_1.UserPublicOutputDto(doctor.user);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.DoctorPublicOutputDto = DoctorPublicOutputDto;
|
|
46
|
+
class DoctorOutputDto extends OutputDto {
|
|
47
|
+
constructor(doctor) {
|
|
48
|
+
super(doctor);
|
|
49
|
+
this.user = new user_1.UserOutputDto(doctor.user);
|
|
39
50
|
this.isDeleted = doctor.isDeleted;
|
|
40
51
|
this.createdAt = doctor.createdAt;
|
|
41
52
|
this.updatedAt = doctor.updatedAt;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { Gender } from "../../enums";
|
|
2
2
|
import { IPatientDocument } from "../../models";
|
|
3
3
|
import { UserOutputDto, UserPublicOutputDto } from "./user";
|
|
4
|
-
declare class
|
|
4
|
+
declare class OutputDto {
|
|
5
5
|
id: string;
|
|
6
6
|
dob: number | null;
|
|
7
7
|
phoneNumber: string | null;
|
|
8
8
|
gender: Gender | null;
|
|
9
9
|
constructor(patient: IPatientDocument);
|
|
10
10
|
}
|
|
11
|
-
export declare class
|
|
11
|
+
export declare class PatientPublicOutputDto extends OutputDto {
|
|
12
|
+
user: UserPublicOutputDto;
|
|
13
|
+
constructor(patient: IPatientDocument);
|
|
14
|
+
}
|
|
15
|
+
export declare class PatientOutputDto extends OutputDto {
|
|
12
16
|
user: UserOutputDto;
|
|
13
17
|
isDeleted: boolean;
|
|
14
18
|
createdAt: number;
|
|
15
19
|
updatedAt: number;
|
|
16
20
|
constructor(patient: IPatientDocument);
|
|
17
21
|
}
|
|
18
|
-
export declare class PatientPublicOutputDto extends BasePatientOutputDto {
|
|
19
|
-
user: UserPublicOutputDto;
|
|
20
|
-
constructor(patient: IPatientDocument);
|
|
21
|
-
}
|
|
22
22
|
export declare class PatientAdminOutputDto extends PatientOutputDto {
|
|
23
23
|
createdBy: UserOutputDto | null;
|
|
24
24
|
updatedBy: UserOutputDto | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PatientAdminOutputDto = exports.
|
|
3
|
+
exports.PatientAdminOutputDto = exports.PatientOutputDto = exports.PatientPublicOutputDto = void 0;
|
|
4
4
|
const user_1 = require("./user");
|
|
5
|
-
class
|
|
5
|
+
class OutputDto {
|
|
6
6
|
constructor(patient) {
|
|
7
7
|
var _a, _b;
|
|
8
8
|
this.id = (_b = ((_a = patient.id) !== null && _a !== void 0 ? _a : patient._id)) === null || _b === void 0 ? void 0 : _b.toString();
|
|
@@ -11,8 +11,15 @@ class BasePatientOutputDto {
|
|
|
11
11
|
this.gender = patient.gender || null;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
+
class PatientPublicOutputDto extends OutputDto {
|
|
15
|
+
constructor(patient) {
|
|
16
|
+
super(patient);
|
|
17
|
+
this.user = new user_1.UserPublicOutputDto(patient.user);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.PatientPublicOutputDto = PatientPublicOutputDto;
|
|
14
21
|
// Base DTO for everyone
|
|
15
|
-
class PatientOutputDto extends
|
|
22
|
+
class PatientOutputDto extends OutputDto {
|
|
16
23
|
constructor(patient) {
|
|
17
24
|
super(patient);
|
|
18
25
|
this.user = new user_1.UserOutputDto(patient.user);
|
|
@@ -23,13 +30,6 @@ class PatientOutputDto extends BasePatientOutputDto {
|
|
|
23
30
|
}
|
|
24
31
|
exports.PatientOutputDto = PatientOutputDto;
|
|
25
32
|
// Public patient DTO
|
|
26
|
-
class PatientPublicOutputDto extends BasePatientOutputDto {
|
|
27
|
-
constructor(patient) {
|
|
28
|
-
super(patient);
|
|
29
|
-
this.user = new user_1.UserPublicOutputDto(patient.user);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.PatientPublicOutputDto = PatientPublicOutputDto;
|
|
33
33
|
// Extended DTO for admin responses
|
|
34
34
|
class PatientAdminOutputDto extends PatientOutputDto {
|
|
35
35
|
constructor(patient) {
|