grm-shared-library 1.0.54 → 1.0.55
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.
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ResetPasswordDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const match_decorator_1 = require("../validators/match.decorator");
|
|
15
|
+
const password_regex_const_1 = require("../../common/constants/password-regex.const");
|
|
16
|
+
class ResetPasswordDto {
|
|
17
|
+
}
|
|
18
|
+
exports.ResetPasswordDto = ResetPasswordDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
(0, class_validator_1.MinLength)(8),
|
|
23
|
+
(0, class_validator_1.Matches)(password_regex_const_1.PASSWORD_REGEX, { message: password_regex_const_1.PASSWORD_ERROR_MESSAGE }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], ResetPasswordDto.prototype, "password", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
(0, class_validator_1.MinLength)(8),
|
|
30
|
+
(0, class_validator_1.Matches)(password_regex_const_1.PASSWORD_REGEX, { message: password_regex_const_1.PASSWORD_ERROR_MESSAGE }),
|
|
31
|
+
(0, match_decorator_1.Match)('password', { message: 'Passwords do not match' }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], ResetPasswordDto.prototype, "confirmPassword", void 0);
|
|
@@ -16,5 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./dtos/register.dto"), exports);
|
|
18
18
|
__exportStar(require("./dtos/login.dto"), exports);
|
|
19
|
-
__exportStar(require("./dtos/
|
|
19
|
+
__exportStar(require("./dtos/reset-password.dto"), exports);
|
|
20
20
|
__exportStar(require("./dtos/change-password.dto"), exports);
|