docta-package 1.2.40 → 1.2.41
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/input/doctor.d.ts +2 -0
- package/build/dto/input/doctor.js +10 -0
- package/build/dto/input/user.d.ts +2 -0
- package/build/dto/input/user.js +10 -0
- package/build/dto/output/user.d.ts +1 -0
- package/build/dto/output/user.js +1 -0
- package/build/models/user.d.ts +1 -0
- package/build/models/user.js +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ export declare class CreateDoctorDto {
|
|
|
9
9
|
specialtyId: string;
|
|
10
10
|
biography?: string;
|
|
11
11
|
consultationFee?: number;
|
|
12
|
+
timezone: string;
|
|
12
13
|
}
|
|
13
14
|
export declare class ActivateDoctorAccountDto {
|
|
14
15
|
token: string;
|
|
@@ -25,6 +26,7 @@ export declare class UpdateDoctorDto {
|
|
|
25
26
|
faqs?: FaqInputDto[];
|
|
26
27
|
expertises?: string[];
|
|
27
28
|
location?: LocationInputDto;
|
|
29
|
+
timezone?: string;
|
|
28
30
|
}
|
|
29
31
|
export declare class DoctorFilterDto {
|
|
30
32
|
name?: string;
|
|
@@ -46,6 +46,11 @@ __decorate([
|
|
|
46
46
|
(0, class_validator_1.Min)(0),
|
|
47
47
|
__metadata("design:type", Number)
|
|
48
48
|
], CreateDoctorDto.prototype, "consultationFee", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsString)(),
|
|
51
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], CreateDoctorDto.prototype, "timezone", void 0);
|
|
49
54
|
class ActivateDoctorAccountDto {
|
|
50
55
|
}
|
|
51
56
|
exports.ActivateDoctorAccountDto = ActivateDoctorAccountDto;
|
|
@@ -129,6 +134,11 @@ __decorate([
|
|
|
129
134
|
(0, class_transformer_1.Type)(() => location_1.LocationInputDto),
|
|
130
135
|
__metadata("design:type", location_1.LocationInputDto)
|
|
131
136
|
], UpdateDoctorDto.prototype, "location", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, class_validator_1.IsOptional)(),
|
|
139
|
+
(0, class_validator_1.IsString)(),
|
|
140
|
+
__metadata("design:type", String)
|
|
141
|
+
], UpdateDoctorDto.prototype, "timezone", void 0);
|
|
132
142
|
class DoctorFilterDto {
|
|
133
143
|
}
|
|
134
144
|
exports.DoctorFilterDto = DoctorFilterDto;
|
|
@@ -2,6 +2,7 @@ export declare class CreateUserDto {
|
|
|
2
2
|
name: string;
|
|
3
3
|
email: string;
|
|
4
4
|
password: string;
|
|
5
|
+
timezone: string;
|
|
5
6
|
}
|
|
6
7
|
export declare class LoginDto {
|
|
7
8
|
email: string;
|
|
@@ -22,6 +23,7 @@ export declare class ResetPasswordDto {
|
|
|
22
23
|
}
|
|
23
24
|
export declare class UpdateUserDto {
|
|
24
25
|
name: string;
|
|
26
|
+
timezone?: string;
|
|
25
27
|
}
|
|
26
28
|
export declare class UpdatePasswordDto {
|
|
27
29
|
oldPassword: string;
|
package/build/dto/input/user.js
CHANGED
|
@@ -31,6 +31,11 @@ __decorate([
|
|
|
31
31
|
(0, class_validator_1.IsStrongPassword)(),
|
|
32
32
|
__metadata("design:type", String)
|
|
33
33
|
], CreateUserDto.prototype, "password", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CreateUserDto.prototype, "timezone", void 0);
|
|
34
39
|
class LoginDto {
|
|
35
40
|
}
|
|
36
41
|
exports.LoginDto = LoginDto;
|
|
@@ -93,6 +98,11 @@ __decorate([
|
|
|
93
98
|
(0, class_validator_1.MaxLength)(50),
|
|
94
99
|
__metadata("design:type", String)
|
|
95
100
|
], UpdateUserDto.prototype, "name", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, class_validator_1.IsOptional)(),
|
|
103
|
+
(0, class_validator_1.IsString)(),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], UpdateUserDto.prototype, "timezone", void 0);
|
|
96
106
|
class UpdatePasswordDto {
|
|
97
107
|
}
|
|
98
108
|
exports.UpdatePasswordDto = UpdatePasswordDto;
|
package/build/dto/output/user.js
CHANGED
package/build/models/user.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export interface IUser extends IBaseModel {
|
|
|
10
10
|
forgotPasswordToken?: string | null;
|
|
11
11
|
token?: string | null;
|
|
12
12
|
isActive: boolean;
|
|
13
|
+
timezone: string;
|
|
13
14
|
}
|
|
14
15
|
export interface IUserDocument extends IUser, Document {
|
|
15
16
|
comparePassword(candidatePassword: string): Promise<boolean>;
|
package/build/models/user.js
CHANGED
|
@@ -14,7 +14,7 @@ const mongoose_1 = require("mongoose");
|
|
|
14
14
|
const enums_1 = require("../enums");
|
|
15
15
|
const bcrypt = require("bcryptjs");
|
|
16
16
|
const base_1 = require("./base");
|
|
17
|
-
const UserSchema = new mongoose_1.Schema(Object.assign(Object.assign({}, base_1.BaseSchemaFields), { name: { type: String, required: true }, email: { type: String, required: true, unique: true, trim: true }, password: { type: String, required: false, default: null }, activationToken: { type: String, default: null }, forgotPasswordToken: { type: String, default: null }, token: { type: String, default: null }, isActive: { type: Boolean, default: false }, role: {
|
|
17
|
+
const UserSchema = new mongoose_1.Schema(Object.assign(Object.assign({}, base_1.BaseSchemaFields), { name: { type: String, required: true }, email: { type: String, required: true, unique: true, trim: true }, password: { type: String, required: false, default: null }, activationToken: { type: String, default: null }, forgotPasswordToken: { type: String, default: null }, token: { type: String, default: null }, isActive: { type: Boolean, default: false }, timezone: { type: String, required: true }, role: {
|
|
18
18
|
type: String,
|
|
19
19
|
enum: Object.values(enums_1.EnumUserRole),
|
|
20
20
|
default: enums_1.EnumUserRole.PATIENT,
|