docta-package 1.2.133 → 1.2.134
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.
- package/build/dto/output/doctor.d.ts +1 -1
- package/build/dto/output/doctor.js +4 -3
- package/build/dto/output/expertise.d.ts +1 -1
- package/build/dto/output/expertise.js +2 -2
- package/build/dto/output/patient.d.ts +1 -1
- package/build/dto/output/patient.js +2 -2
- package/build/dto/output/period.d.ts +1 -1
- package/build/dto/output/period.js +2 -2
- package/build/dto/output/specialty.d.ts +1 -1
- package/build/dto/output/specialty.js +2 -2
- package/build/dto/output/user.d.ts +1 -1
- package/build/dto/output/user.js +2 -2
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ import { LanguageOutputDto } from "./language";
|
|
|
8
8
|
import { FaqOutputDto } from "./faq";
|
|
9
9
|
import { LocationOutputDto } from "./location";
|
|
10
10
|
export declare class DoctorPublicOutputDto {
|
|
11
|
-
id: string;
|
|
11
|
+
id: string | null;
|
|
12
12
|
specialty: SpecialtyOutputDto;
|
|
13
13
|
title: string;
|
|
14
14
|
professionalEmail: string;
|
|
@@ -9,10 +9,11 @@ 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
|
+
const normalize_id_1 = require("../../utils/normalize.id");
|
|
12
13
|
class DoctorPublicOutputDto {
|
|
13
14
|
constructor(doctor) {
|
|
14
|
-
var _a
|
|
15
|
-
this.id = (
|
|
15
|
+
var _a;
|
|
16
|
+
this.id = (0, normalize_id_1.normalizeId)(doctor);
|
|
16
17
|
this.title = doctor.title;
|
|
17
18
|
this.professionalEmail = doctor.professionalEmail;
|
|
18
19
|
this.dontBookMeBeforeInMins = doctor.dontBookMeBeforeInMins;
|
|
@@ -20,7 +21,7 @@ class DoctorPublicOutputDto {
|
|
|
20
21
|
this.slug = doctor.slug;
|
|
21
22
|
this.biography = doctor.biography || null;
|
|
22
23
|
this.isActive = doctor.isActive;
|
|
23
|
-
this.consultationFeePerHour = (
|
|
24
|
+
this.consultationFeePerHour = (_a = doctor.consultationFeePerHour) !== null && _a !== void 0 ? _a : null;
|
|
24
25
|
this.isVerified = doctor.isVerified;
|
|
25
26
|
this.isVisible = doctor.isVisible;
|
|
26
27
|
this.photo = doctor.photo || null;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ExpertiseAdminOutputDto = exports.ExpertiseOutputDto = void 0;
|
|
4
4
|
const user_1 = require("./user");
|
|
5
|
+
const normalize_id_1 = require("../../utils/normalize.id");
|
|
5
6
|
// Base DTO for everyone
|
|
6
7
|
class ExpertiseOutputDto {
|
|
7
8
|
constructor(expertise) {
|
|
8
|
-
|
|
9
|
-
this.id = (_b = ((_a = expertise.id) !== null && _a !== void 0 ? _a : expertise._id)) === null || _b === void 0 ? void 0 : _b.toString();
|
|
9
|
+
this.id = (0, normalize_id_1.normalizeId)(expertise);
|
|
10
10
|
this.en = {
|
|
11
11
|
name: expertise.en.name,
|
|
12
12
|
description: expertise.en.description || null,
|
|
@@ -2,7 +2,7 @@ import { Gender } from "../../enums";
|
|
|
2
2
|
import { IPatientDocument } from "../../models";
|
|
3
3
|
import { UserOutputDto, UserPublicOutputDto } from "./user";
|
|
4
4
|
declare class OutputDto {
|
|
5
|
-
id: string;
|
|
5
|
+
id: string | null;
|
|
6
6
|
dob: number | null;
|
|
7
7
|
phoneNumber: string | null;
|
|
8
8
|
gender: Gender | null;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PatientAdminOutputDto = exports.PatientOutputDto = exports.PatientPublicOutputDto = void 0;
|
|
4
4
|
const user_1 = require("./user");
|
|
5
|
+
const normalize_id_1 = require("../../utils/normalize.id");
|
|
5
6
|
class OutputDto {
|
|
6
7
|
constructor(patient) {
|
|
7
|
-
|
|
8
|
-
this.id = (_b = ((_a = patient.id) !== null && _a !== void 0 ? _a : patient._id)) === null || _b === void 0 ? void 0 : _b.toString();
|
|
8
|
+
this.id = (0, normalize_id_1.normalizeId)(patient);
|
|
9
9
|
this.dob = patient.dob || null;
|
|
10
10
|
this.phoneNumber = patient.phoneNumber || null;
|
|
11
11
|
this.gender = patient.gender || null;
|
|
@@ -2,7 +2,7 @@ import { IPeriodDocument } from "../../models";
|
|
|
2
2
|
import { UserOutputDto } from "./user";
|
|
3
3
|
import { PeriodStatus } from "../../enums/period.status";
|
|
4
4
|
export declare class PeriodOutputDto {
|
|
5
|
-
id: string;
|
|
5
|
+
id: string | null;
|
|
6
6
|
doctorId: string;
|
|
7
7
|
startTime: number;
|
|
8
8
|
endTime: number;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PeriodAdminOutputDto = exports.PeriodDoctorOutputDto = exports.PeriodOutputDto = void 0;
|
|
4
4
|
const user_1 = require("./user");
|
|
5
|
+
const normalize_id_1 = require("../../utils/normalize.id");
|
|
5
6
|
// Base DTO for everyone
|
|
6
7
|
class PeriodOutputDto {
|
|
7
8
|
constructor(period) {
|
|
8
|
-
|
|
9
|
-
this.id = (_b = ((_a = period.id) !== null && _a !== void 0 ? _a : period._id)) === null || _b === void 0 ? void 0 : _b.toString();
|
|
9
|
+
this.id = (0, normalize_id_1.normalizeId)(period);
|
|
10
10
|
this.doctorId = String(period.doctor._id);
|
|
11
11
|
this.startTime = period.startTime;
|
|
12
12
|
this.endTime = period.endTime;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SpecialtyAdminOutputDto = exports.SpecialtyOutputDto = void 0;
|
|
4
4
|
const user_1 = require("./user");
|
|
5
|
+
const normalize_id_1 = require("../../utils/normalize.id");
|
|
5
6
|
// Base DTO for everyone
|
|
6
7
|
class SpecialtyOutputDto {
|
|
7
8
|
constructor(specialty) {
|
|
8
|
-
|
|
9
|
-
this.id = (_b = ((_a = specialty.id) !== null && _a !== void 0 ? _a : specialty._id)) === null || _b === void 0 ? void 0 : _b.toString();
|
|
9
|
+
this.id = (0, normalize_id_1.normalizeId)(specialty);
|
|
10
10
|
this.en = {
|
|
11
11
|
name: specialty.en.name,
|
|
12
12
|
description: specialty.en.description || null,
|
package/build/dto/output/user.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LoggedInUserOutputDto = exports.UserAdminOutputDto = exports.UserOutputDto = exports.UserPublicOutputDto = void 0;
|
|
4
|
+
const normalize_id_1 = require("../../utils/normalize.id");
|
|
4
5
|
class UserPublicOutputDto {
|
|
5
6
|
constructor(user) {
|
|
6
|
-
|
|
7
|
-
this.id = (_b = ((_a = user.id) !== null && _a !== void 0 ? _a : user._id)) === null || _b === void 0 ? void 0 : _b.toString();
|
|
7
|
+
this.id = (0, normalize_id_1.normalizeId)(user);
|
|
8
8
|
this.name = user.name;
|
|
9
9
|
this.email = user.email;
|
|
10
10
|
this.role = user.role;
|
package/package.json
CHANGED