docta-package 1.2.35 → 1.2.37

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.
@@ -26,3 +26,12 @@ export declare class UpdateDoctorDto {
26
26
  expertises?: string[];
27
27
  location?: LocationInputDto;
28
28
  }
29
+ export declare class DoctorFilterDto {
30
+ name?: string;
31
+ specialtyId?: string;
32
+ minConsultationFee?: number;
33
+ maxConsultationFee?: number;
34
+ isVerified?: boolean;
35
+ expertises?: string[];
36
+ email?: string;
37
+ }
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.UpdateDoctorDto = exports.ActivateDoctorAccountDto = exports.CreateDoctorDto = void 0;
12
+ exports.DoctorFilterDto = exports.UpdateDoctorDto = exports.ActivateDoctorAccountDto = exports.CreateDoctorDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const education_1 = require("./education");
@@ -129,3 +129,46 @@ __decorate([
129
129
  (0, class_transformer_1.Type)(() => location_1.LocationInputDto),
130
130
  __metadata("design:type", location_1.LocationInputDto)
131
131
  ], UpdateDoctorDto.prototype, "location", void 0);
132
+ class DoctorFilterDto {
133
+ }
134
+ exports.DoctorFilterDto = DoctorFilterDto;
135
+ __decorate([
136
+ (0, class_validator_1.IsOptional)(),
137
+ (0, class_validator_1.IsString)(),
138
+ (0, class_validator_1.MinLength)(1),
139
+ (0, class_validator_1.MaxLength)(50),
140
+ __metadata("design:type", String)
141
+ ], DoctorFilterDto.prototype, "name", void 0);
142
+ __decorate([
143
+ (0, class_validator_1.IsOptional)(),
144
+ (0, class_validator_1.IsMongoId)(),
145
+ __metadata("design:type", String)
146
+ ], DoctorFilterDto.prototype, "specialtyId", void 0);
147
+ __decorate([
148
+ (0, class_validator_1.IsOptional)(),
149
+ (0, class_validator_1.IsNumber)(),
150
+ (0, class_validator_1.Min)(0),
151
+ __metadata("design:type", Number)
152
+ ], DoctorFilterDto.prototype, "minConsultationFee", void 0);
153
+ __decorate([
154
+ (0, class_validator_1.IsOptional)(),
155
+ (0, class_validator_1.IsNumber)(),
156
+ (0, class_validator_1.Min)(0),
157
+ __metadata("design:type", Number)
158
+ ], DoctorFilterDto.prototype, "maxConsultationFee", void 0);
159
+ __decorate([
160
+ (0, class_validator_1.IsOptional)(),
161
+ (0, class_validator_1.IsBoolean)(),
162
+ __metadata("design:type", Boolean)
163
+ ], DoctorFilterDto.prototype, "isVerified", void 0);
164
+ __decorate([
165
+ (0, class_validator_1.IsOptional)(),
166
+ (0, class_validator_1.IsArray)(),
167
+ (0, class_validator_1.IsString)({ each: true }),
168
+ __metadata("design:type", Array)
169
+ ], DoctorFilterDto.prototype, "expertises", void 0);
170
+ __decorate([
171
+ (0, class_validator_1.IsOptional)(),
172
+ (0, class_validator_1.IsEmail)(),
173
+ __metadata("design:type", String)
174
+ ], DoctorFilterDto.prototype, "email", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docta-package",
3
- "version": "1.2.35",
3
+ "version": "1.2.37",
4
4
  "description": "This package will contail all the required files to run the docta micro-service app",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",