ecrs-auth-core 1.0.57 → 1.0.58
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/dist/dtos/login.dto.js +8 -4
- package/package.json +1 -1
package/dist/dtos/login.dto.js
CHANGED
|
@@ -12,21 +12,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.LoginDto = void 0;
|
|
13
13
|
// src/dtos/login.dto.ts
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
15
16
|
class LoginDto {
|
|
16
17
|
}
|
|
17
18
|
exports.LoginDto = LoginDto;
|
|
18
19
|
__decorate([
|
|
19
20
|
(0, swagger_1.ApiProperty)({ example: 'user@example.com', description: 'User email address used for login' }),
|
|
21
|
+
(0, class_validator_1.IsEmail)(),
|
|
22
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
23
|
__metadata("design:type", String)
|
|
21
24
|
], LoginDto.prototype, "email", void 0);
|
|
22
25
|
__decorate([
|
|
23
26
|
(0, swagger_1.ApiProperty)({ example: 'StrongP@ssw0rd', description: 'Plain text password to authenticate' }),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
29
|
__metadata("design:type", String)
|
|
25
30
|
], LoginDto.prototype, "password", void 0);
|
|
26
31
|
__decorate([
|
|
27
|
-
(0, swagger_1.ApiProperty)({
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}),
|
|
32
|
+
(0, swagger_1.ApiProperty)({ description: 'Module Id', example: '1' }),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'moduleId is required' }),
|
|
31
35
|
__metadata("design:type", String)
|
|
32
36
|
], LoginDto.prototype, "moduleId", void 0);
|