grm-shared-library 1.0.230 → 1.0.231
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/decorators/case-decorators.js +7 -12
- package/dist/exceptions/custom-exception/custom-rpc.exception.js +5 -9
- package/dist/exceptions/enums/error-codes.enum.js +1 -4
- package/dist/exceptions/error-logger/error-logger.js +2 -6
- package/dist/exceptions/filters/all-exceptions.filter.js +17 -20
- package/dist/exceptions/filters/http-exceptions.filter.js +10 -13
- package/dist/exceptions/index.js +7 -23
- package/dist/exceptions/interfaces/error-context.js +1 -2
- package/dist/exceptions/interfaces/error-response.js +1 -2
- package/dist/index.js +18 -34
- package/dist/interfaces/i-request-with-user.js +1 -2
- package/dist/interfaces/jwt-payload.js +1 -2
- package/dist/interfaces/server-message.js +1 -2
- package/dist/interfaces/validated-user.js +1 -2
- package/dist/kafka/dtos/otp/create-otp-payload.dto.js +25 -29
- package/dist/kafka/dtos/otp/otp-payload.dto.js +10 -14
- package/dist/kafka/dtos/password/password-reset-payload.dto.js +13 -17
- package/dist/kafka/dtos/user/create-user-created-payload.dto.js +27 -31
- package/dist/kafka/dtos/user/create-user-registered-payload.dto.js +14 -18
- package/dist/kafka/dtos/user/user-created-payload.dto.js +10 -14
- package/dist/kafka/dtos/user/user-registered-payload.dto.js +6 -10
- package/dist/kafka/index.js +8 -24
- package/dist/kafka/topics.js +1 -4
- package/dist/modules/auth/dtos/change-password.dto.js +17 -21
- package/dist/modules/auth/dtos/forgot-password.dto.js +4 -8
- package/dist/modules/auth/dtos/login.dto.js +9 -13
- package/dist/modules/auth/dtos/refresh-token.dto.js +4 -8
- package/dist/modules/auth/dtos/register.dto.js +43 -47
- package/dist/modules/auth/dtos/resend-otp.dto.js +7 -11
- package/dist/modules/auth/dtos/reset-password.dto.js +15 -19
- package/dist/modules/auth/dtos/verify-otp.dto.js +6 -10
- package/dist/modules/auth/enums/otp-action.js +2 -5
- package/dist/modules/auth/index.js +11 -27
- package/dist/modules/auth/interfaces/login-response.js +1 -2
- package/dist/modules/auth/interfaces/register-response.js +1 -2
- package/dist/modules/auth/validators/match.decorator.js +3 -6
- package/dist/modules/common/constants/password-regex.const.js +1 -5
- package/dist/modules/common/constants/service.const.js +1 -4
- package/dist/modules/common/dtos/contact-person.dto.js +12 -16
- package/dist/modules/common/dtos/map-address.dto.js +20 -24
- package/dist/modules/common/dtos/map-location.dto.js +10 -14
- package/dist/modules/common/index.js +7 -23
- package/dist/modules/common/interfaces/contact-person.js +1 -2
- package/dist/modules/common/interfaces/map-address.js +1 -2
- package/dist/modules/common/interfaces/map-location.js +1 -2
- package/dist/modules/control-centre/dtos/create-control-centre.dto.js +29 -33
- package/dist/modules/control-centre/dtos/update-control-centre.dto.js +3 -7
- package/dist/modules/control-centre/enums/control-centre.enum.js +2 -5
- package/dist/modules/control-centre/index.js +4 -20
- package/dist/modules/control-centre/interfaces/control-centre.js +1 -2
- package/dist/modules/email/index.js +1 -17
- package/dist/modules/email/interfaces/user-created.js +1 -2
- package/dist/modules/incident/dtos/action/create-incident-action.dto.js +13 -17
- package/dist/modules/incident/dtos/action/incident-action.dto.js +8 -12
- package/dist/modules/incident/dtos/action/update-inident-action.dto.js +3 -7
- package/dist/modules/incident/dtos/assignment/create-incident-assignment.dto.js +14 -18
- package/dist/modules/incident/dtos/assignment/incident-assignment.dto.js +8 -12
- package/dist/modules/incident/dtos/assignment/update-incident-assignment.dto.js +3 -7
- package/dist/modules/incident/dtos/attachment/create-incident-attachment.dto.js +12 -16
- package/dist/modules/incident/dtos/attachment/update-incident-attachment.dto.js +3 -7
- package/dist/modules/incident/dtos/category/create-incident-category.dto.js +10 -14
- package/dist/modules/incident/dtos/category/update-incident-category.dto.js +3 -7
- package/dist/modules/incident/dtos/incident/create-incident.dto.js +53 -57
- package/dist/modules/incident/dtos/incident/incident.dto.js +37 -41
- package/dist/modules/incident/dtos/incident/update-incident.dto.js +3 -7
- package/dist/modules/incident/dtos/reporter/create-incident-reporter.dto.js +12 -16
- package/dist/modules/incident/dtos/reporter/incident-reporter.dto.js +10 -14
- package/dist/modules/incident/dtos/reporter/update-incident-reporter.dto.js +3 -7
- package/dist/modules/incident/dtos/response-unit-assignment/create-incident-response-unit-assignment.dto.js +16 -20
- package/dist/modules/incident/dtos/response-unit-assignment/incident-response-unit-assignment.dto.js +3 -7
- package/dist/modules/incident/dtos/response-unit-assignment/update-incident-response-unit-assignment.dto.js +8 -12
- package/dist/modules/incident/dtos/type/create-incident-type.dto.js +12 -16
- package/dist/modules/incident/dtos/type/update-incident-type.dto.js +3 -7
- package/dist/modules/incident/enums/incident-actions.enum.js +2 -5
- package/dist/modules/incident/enums/incident-app-id.enum.js +2 -5
- package/dist/modules/incident/enums/incident-channel.enum.js +2 -5
- package/dist/modules/incident/enums/incident-class.enum.js +2 -5
- package/dist/modules/incident/enums/incident-priority.enum.js +2 -5
- package/dist/modules/incident/enums/incident-status.enum.js +2 -5
- package/dist/modules/incident/enums/incident-workflow-queue-name.enum.js +2 -5
- package/dist/modules/incident/index.js +37 -53
- package/dist/modules/incident/intefaces/incident-action.js +1 -2
- package/dist/modules/incident/intefaces/incident-assignment.js +1 -2
- package/dist/modules/incident/intefaces/incident-attachment.js +1 -2
- package/dist/modules/incident/intefaces/incident-category.js +1 -2
- package/dist/modules/incident/intefaces/incident-reporter.js +1 -2
- package/dist/modules/incident/intefaces/incident-response-unit-assignment.js +1 -2
- package/dist/modules/incident/intefaces/incident-type.js +1 -2
- package/dist/modules/incident/intefaces/incident.js +1 -2
- package/dist/modules/organization/dtos/create-organization.dto.js +41 -45
- package/dist/modules/organization/dtos/organization-sla.dto.js +12 -16
- package/dist/modules/organization/dtos/update-organization.dto.js +3 -7
- package/dist/modules/organization/enums/org-status.enum.js +2 -5
- package/dist/modules/organization/enums/org-type.enum.js +2 -5
- package/dist/modules/organization/index.js +7 -23
- package/dist/modules/organization/interfaces/organization-sla.js +1 -2
- package/dist/modules/organization/interfaces/organization.js +1 -2
- package/dist/modules/permission/data/permissions.data.js +28 -31
- package/dist/modules/permission/dtos/create-permission.dto.js +7 -11
- package/dist/modules/permission/dtos/update-permission.dto.js +3 -7
- package/dist/modules/permission/enums/permission-actions.enum.js +2 -5
- package/dist/modules/permission/enums/permissions-moudule.enum.js +2 -5
- package/dist/modules/permission/index.js +6 -22
- package/dist/modules/permission/interfaces/permission.js +1 -2
- package/dist/modules/response-unit/dtos/person-unit/base-person-unit.dto.js +15 -19
- package/dist/modules/response-unit/dtos/person-unit/create-person-unit.dto.js +3 -7
- package/dist/modules/response-unit/dtos/person-unit/person-unit.dto.js +2 -6
- package/dist/modules/response-unit/dtos/person-unit/update-person-unit.dto.js +3 -7
- package/dist/modules/response-unit/dtos/response-unit/base-response-unit.dto.js +25 -29
- package/dist/modules/response-unit/dtos/response-unit/create-response-unit.dto.js +3 -7
- package/dist/modules/response-unit/dtos/response-unit/response-unit.dto.js +2 -6
- package/dist/modules/response-unit/dtos/response-unit/station.dto.js +8 -12
- package/dist/modules/response-unit/dtos/response-unit/update-response-unit.dto.js +3 -7
- package/dist/modules/response-unit/dtos/team-unit/base-team-unit.dto.js +10 -14
- package/dist/modules/response-unit/dtos/team-unit/create-team-unit.dto.js +3 -7
- package/dist/modules/response-unit/dtos/team-unit/crew/create-team-unit-crew.dto.js +3 -7
- package/dist/modules/response-unit/dtos/team-unit/crew/team-unit-crew.dto.js +14 -18
- package/dist/modules/response-unit/dtos/team-unit/crew/update-team-unit-crew.dto.js +3 -7
- package/dist/modules/response-unit/dtos/team-unit/team-unit.dto.js +2 -6
- package/dist/modules/response-unit/dtos/team-unit/update-team-unit.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/base-vehicle-unit.dto.js +27 -31
- package/dist/modules/response-unit/dtos/vehicle-unit/create-vehicle-unit.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/crew/create-vehicle-unit-crew.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/crew/update-vehicle-unit-crew.dto.js +11 -15
- package/dist/modules/response-unit/dtos/vehicle-unit/crew/vehicle-unit-crew.dto.js +19 -23
- package/dist/modules/response-unit/dtos/vehicle-unit/device/create-vehicle-unit-device.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/device/update-vehicle-unit-device.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/device/vehicle-unit-device.dto.js +23 -27
- package/dist/modules/response-unit/dtos/vehicle-unit/update-vehicle-unit.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/ambulance-vehicle.dto.js +2 -6
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/base-ambulance-vehicle.dto.js +6 -10
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/create-ambulance-vehicle.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/update-ambulance-vehicle.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/base-fire-vehicle.dto.js +6 -10
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/create-fire-vehicle.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/fire-vehicle.dto.js +2 -6
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/update-fire-vehicle.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/base-road-rescue-vehicle.dto.js +5 -9
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/create-road-rescue-vehicle.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/road-rescue-vehicle.dto.js +2 -6
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/update-road-rescue-vehicle.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/base-security-vehicle.dto.js +5 -9
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/create-security-vehicle.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/security-vehicle.dto.js +2 -6
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/update-security-vehicle.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-unit.dto.js +2 -6
- package/dist/modules/response-unit/enums/person-unit/person-unit-category.enum.js +2 -5
- package/dist/modules/response-unit/enums/person-unit/person-unit-status.enum.js +2 -5
- package/dist/modules/response-unit/enums/response-unit/response-unit-type.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-crew/ambulance-vehicle-role.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-crew/fire-vehicle-role.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-crew/road-rescue-vehicle-role.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-crew/security-vehicle-role.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/ambulance-vehicle-type.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/fire-vehicle-type.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/road-rescue-vehicle-type.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/security-vehicle-type.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-unit-ownership.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-unit-status.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-unit-type.enum.js +2 -5
- package/dist/modules/response-unit/index.js +67 -83
- package/dist/modules/response-unit/interfaces/person-unit/person-unit.js +1 -2
- package/dist/modules/response-unit/interfaces/response-unit/response-unit.js +1 -2
- package/dist/modules/response-unit/interfaces/team-unit/team-unit-crew.js +1 -2
- package/dist/modules/response-unit/interfaces/team-unit/team-unit.js +1 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/ambulance-vehicle.js +1 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/fire-vehicle.js +1 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/road-rescue-vehicle.js +1 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/security-vehicle.js +1 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-unit-crew.js +1 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-unit-device.js +1 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-unit.js +1 -2
- package/dist/modules/response-unit/validators/valid-vehicle-role.decorator.js +16 -19
- package/dist/modules/role/data/roles.data.js +62 -65
- package/dist/modules/role/dtos/create-role.dto.js +10 -14
- package/dist/modules/role/dtos/update-tole.dto.js +3 -7
- package/dist/modules/role/enums/role.enum.js +2 -5
- package/dist/modules/role/index.js +5 -21
- package/dist/modules/role/interfaces/role.js +1 -2
- package/dist/modules/user/dtos/create-user.dto.js +41 -45
- package/dist/modules/user/dtos/update-user.dto.js +3 -7
- package/dist/modules/user/enums/user-status.enum.js +2 -5
- package/dist/modules/user/index.js +4 -20
- package/dist/modules/user/interfaces/user.js +1 -2
- package/dist/modules/workflow/index.js +1 -17
- package/dist/modules/workflow/interfaces/workflow-query-info.js +1 -2
- package/package.json +3 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,39 +7,36 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class CreateUserRegisteredPayloadDto {
|
|
10
|
+
import { IsDate, IsEmail, IsNotEmpty, IsNumber, IsObject, IsOptional, IsPhoneNumber, IsString } from "class-validator";
|
|
11
|
+
export class CreateUserRegisteredPayloadDto {
|
|
15
12
|
}
|
|
16
|
-
exports.CreateUserRegisteredPayloadDto = CreateUserRegisteredPayloadDto;
|
|
17
13
|
__decorate([
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
IsNumber(),
|
|
15
|
+
IsNotEmpty(),
|
|
20
16
|
__metadata("design:type", Number)
|
|
21
17
|
], CreateUserRegisteredPayloadDto.prototype, "id", void 0);
|
|
22
18
|
__decorate([
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
IsString(),
|
|
20
|
+
IsNotEmpty(),
|
|
25
21
|
__metadata("design:type", String)
|
|
26
22
|
], CreateUserRegisteredPayloadDto.prototype, "name", void 0);
|
|
27
23
|
__decorate([
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
IsEmail(),
|
|
25
|
+
IsNotEmpty(),
|
|
30
26
|
__metadata("design:type", String)
|
|
31
27
|
], CreateUserRegisteredPayloadDto.prototype, "email", void 0);
|
|
32
28
|
__decorate([
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
IsPhoneNumber(),
|
|
30
|
+
IsOptional(),
|
|
35
31
|
__metadata("design:type", String)
|
|
36
32
|
], CreateUserRegisteredPayloadDto.prototype, "phoneNumber", void 0);
|
|
37
33
|
__decorate([
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
IsDate(),
|
|
35
|
+
IsNotEmpty(),
|
|
40
36
|
__metadata("design:type", Date)
|
|
41
37
|
], CreateUserRegisteredPayloadDto.prototype, "createdAt", void 0);
|
|
42
38
|
__decorate([
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
IsObject(),
|
|
40
|
+
IsOptional(),
|
|
45
41
|
__metadata("design:type", Object)
|
|
46
42
|
], CreateUserRegisteredPayloadDto.prototype, "attributes", void 0);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,26 +7,23 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const class_validator_1 = require("class-validator");
|
|
16
|
-
class UserCreatedPaylodDto extends (0, mapped_types_1.OmitType)(create_user_created_payload_dto_1.CreateUserCreatedPayloadDto, ['otpExpiresAt', 'verificationTokenExpiresAt', 'createdAt']) {
|
|
10
|
+
import { OmitType } from "@nestjs/mapped-types";
|
|
11
|
+
import { CreateUserCreatedPayloadDto } from "./create-user-created-payload.dto";
|
|
12
|
+
import { IsNotEmpty, IsString } from "class-validator";
|
|
13
|
+
export class UserCreatedPaylodDto extends OmitType(CreateUserCreatedPayloadDto, ['otpExpiresAt', 'verificationTokenExpiresAt', 'createdAt']) {
|
|
17
14
|
}
|
|
18
|
-
exports.UserCreatedPaylodDto = UserCreatedPaylodDto;
|
|
19
15
|
__decorate([
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
IsString(),
|
|
17
|
+
IsNotEmpty(),
|
|
22
18
|
__metadata("design:type", String)
|
|
23
19
|
], UserCreatedPaylodDto.prototype, "otpExpiresAt", void 0);
|
|
24
20
|
__decorate([
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
IsString(),
|
|
22
|
+
IsNotEmpty(),
|
|
27
23
|
__metadata("design:type", String)
|
|
28
24
|
], UserCreatedPaylodDto.prototype, "verificationTokenExpiresAt", void 0);
|
|
29
25
|
__decorate([
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
IsString(),
|
|
27
|
+
IsNotEmpty(),
|
|
32
28
|
__metadata("design:type", String)
|
|
33
29
|
], UserCreatedPaylodDto.prototype, "createdAt", void 0);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,16 +7,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const class_validator_1 = require("class-validator");
|
|
16
|
-
class UserRegisteredPayloadDto extends (0, mapped_types_1.OmitType)(create_user_registered_payload_dto_1.CreateUserRegisteredPayloadDto, ['createdAt']) {
|
|
10
|
+
import { OmitType } from "@nestjs/mapped-types";
|
|
11
|
+
import { CreateUserRegisteredPayloadDto } from "./create-user-registered-payload.dto";
|
|
12
|
+
import { IsNotEmpty, IsString } from "class-validator";
|
|
13
|
+
export class UserRegisteredPayloadDto extends OmitType(CreateUserRegisteredPayloadDto, ['createdAt']) {
|
|
17
14
|
}
|
|
18
|
-
exports.UserRegisteredPayloadDto = UserRegisteredPayloadDto;
|
|
19
15
|
__decorate([
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
IsString(),
|
|
17
|
+
IsNotEmpty(),
|
|
22
18
|
__metadata("design:type", String)
|
|
23
19
|
], UserRegisteredPayloadDto.prototype, "createdAt", void 0);
|
package/dist/kafka/index.js
CHANGED
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./topics"), exports);
|
|
18
|
-
__exportStar(require("./dtos/user/create-user-created-payload.dto"), exports);
|
|
19
|
-
__exportStar(require("./dtos/user/user-created-payload.dto"), exports);
|
|
20
|
-
__exportStar(require("./dtos/user/create-user-registered-payload.dto"), exports);
|
|
21
|
-
__exportStar(require("./dtos/user/user-registered-payload.dto"), exports);
|
|
22
|
-
__exportStar(require("./dtos/otp/create-otp-payload.dto"), exports);
|
|
23
|
-
__exportStar(require("./dtos/otp/otp-payload.dto"), exports);
|
|
24
|
-
__exportStar(require("./dtos/password/password-reset-payload.dto"), exports);
|
|
1
|
+
export * from './topics';
|
|
2
|
+
export * from './dtos/user/create-user-created-payload.dto';
|
|
3
|
+
export * from './dtos/user/user-created-payload.dto';
|
|
4
|
+
export * from './dtos/user/create-user-registered-payload.dto';
|
|
5
|
+
export * from './dtos/user/user-registered-payload.dto';
|
|
6
|
+
export * from './dtos/otp/create-otp-payload.dto';
|
|
7
|
+
export * from './dtos/otp/otp-payload.dto';
|
|
8
|
+
export * from './dtos/password/password-reset-payload.dto';
|
package/dist/kafka/topics.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,36 +7,33 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const match_decorator_1 = require("../validators/match.decorator");
|
|
16
|
-
class ChangePasswordDto {
|
|
10
|
+
import { IsNotEmpty, IsNumber, IsString, Matches, MinLength } from "class-validator";
|
|
11
|
+
import { PASSWORD_ERROR_MESSAGE, PASSWORD_REGEX } from "../../common/constants/password-regex.const";
|
|
12
|
+
import { Match } from "../validators/match.decorator";
|
|
13
|
+
export class ChangePasswordDto {
|
|
17
14
|
}
|
|
18
|
-
exports.ChangePasswordDto = ChangePasswordDto;
|
|
19
15
|
__decorate([
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
IsNumber(),
|
|
17
|
+
IsNotEmpty(),
|
|
22
18
|
__metadata("design:type", Number)
|
|
23
19
|
], ChangePasswordDto.prototype, "userId", void 0);
|
|
24
20
|
__decorate([
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
IsString(),
|
|
22
|
+
IsNotEmpty(),
|
|
27
23
|
__metadata("design:type", String)
|
|
28
24
|
], ChangePasswordDto.prototype, "oldPassword", void 0);
|
|
29
25
|
__decorate([
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
26
|
+
IsString(),
|
|
27
|
+
IsNotEmpty(),
|
|
28
|
+
MinLength(8),
|
|
29
|
+
Matches(PASSWORD_REGEX, { message: PASSWORD_ERROR_MESSAGE }),
|
|
34
30
|
__metadata("design:type", String)
|
|
35
31
|
], ChangePasswordDto.prototype, "newPassword", void 0);
|
|
36
32
|
__decorate([
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
IsString(),
|
|
34
|
+
IsNotEmpty(),
|
|
35
|
+
MinLength(8),
|
|
36
|
+
Matches(PASSWORD_REGEX, { message: PASSWORD_ERROR_MESSAGE }),
|
|
37
|
+
Match('newPassword', { message: 'Passwords do not match' }),
|
|
42
38
|
__metadata("design:type", String)
|
|
43
39
|
], ChangePasswordDto.prototype, "confirmNewPassword", void 0);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,14 +7,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class ForgotPasswordDto {
|
|
10
|
+
import { IsEmail, IsNotEmpty } from "class-validator";
|
|
11
|
+
export class ForgotPasswordDto {
|
|
15
12
|
}
|
|
16
|
-
exports.ForgotPasswordDto = ForgotPasswordDto;
|
|
17
13
|
__decorate([
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
IsEmail(),
|
|
15
|
+
IsNotEmpty(),
|
|
20
16
|
__metadata("design:type", String)
|
|
21
17
|
], ForgotPasswordDto.prototype, "email", void 0);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,22 +7,19 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const password_regex_const_1 = require("../../common/constants/password-regex.const");
|
|
15
|
-
class LoginDto {
|
|
10
|
+
import { IsEmail, IsNotEmpty, IsString, Matches, MinLength } from "class-validator";
|
|
11
|
+
import { PASSWORD_ERROR_MESSAGE, PASSWORD_REGEX } from "../../common/constants/password-regex.const";
|
|
12
|
+
export class LoginDto {
|
|
16
13
|
}
|
|
17
|
-
exports.LoginDto = LoginDto;
|
|
18
14
|
__decorate([
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
IsEmail(),
|
|
16
|
+
IsNotEmpty(),
|
|
21
17
|
__metadata("design:type", String)
|
|
22
18
|
], LoginDto.prototype, "email", void 0);
|
|
23
19
|
__decorate([
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
IsString(),
|
|
21
|
+
IsNotEmpty(),
|
|
22
|
+
MinLength(8),
|
|
23
|
+
Matches(PASSWORD_REGEX, { message: PASSWORD_ERROR_MESSAGE }),
|
|
28
24
|
__metadata("design:type", String)
|
|
29
25
|
], LoginDto.prototype, "password", void 0);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,14 +7,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class RefreshTokenDto {
|
|
10
|
+
import { IsNotEmpty, IsString } from "class-validator";
|
|
11
|
+
export class RefreshTokenDto {
|
|
15
12
|
}
|
|
16
|
-
exports.RefreshTokenDto = RefreshTokenDto;
|
|
17
13
|
__decorate([
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
IsString(),
|
|
15
|
+
IsNotEmpty(),
|
|
20
16
|
__metadata("design:type", String)
|
|
21
17
|
], RefreshTokenDto.prototype, "token", void 0);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,82 +7,79 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const incident_1 = require("../../incident");
|
|
21
|
-
class RegisterDto {
|
|
10
|
+
import { IsArray, IsEmail, IsEnum, IsNotEmpty, IsOptional, IsPhoneNumber, IsString, IsUrl, Matches, MaxLength, MinLength, ValidateNested } from "class-validator";
|
|
11
|
+
import { MapAddressDto } from "../../common";
|
|
12
|
+
import { Roles } from "../../role";
|
|
13
|
+
import { SentenceCase } from "../../../decorators/case-decorators";
|
|
14
|
+
import { PASSWORD_ERROR_MESSAGE, PASSWORD_REGEX } from "../../common/constants/password-regex.const";
|
|
15
|
+
import { Type } from "class-transformer";
|
|
16
|
+
import { OrganizationType } from "../../organization/enums/org-type.enum";
|
|
17
|
+
import { IncidentClass } from "../../incident";
|
|
18
|
+
export class RegisterDto {
|
|
22
19
|
}
|
|
23
|
-
exports.RegisterDto = RegisterDto;
|
|
24
20
|
__decorate([
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
IsEnum(IncidentClass),
|
|
22
|
+
IsNotEmpty(),
|
|
27
23
|
__metadata("design:type", String)
|
|
28
24
|
], RegisterDto.prototype, "incidentClass", void 0);
|
|
29
25
|
__decorate([
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
IsString(),
|
|
27
|
+
IsNotEmpty(),
|
|
28
|
+
MinLength(2),
|
|
29
|
+
MaxLength(50),
|
|
30
|
+
SentenceCase(),
|
|
35
31
|
__metadata("design:type", String)
|
|
36
32
|
], RegisterDto.prototype, "name", void 0);
|
|
37
33
|
__decorate([
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
IsEmail(),
|
|
35
|
+
IsNotEmpty(),
|
|
36
|
+
MaxLength(50),
|
|
41
37
|
__metadata("design:type", String)
|
|
42
38
|
], RegisterDto.prototype, "email", void 0);
|
|
43
39
|
__decorate([
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
IsPhoneNumber(),
|
|
41
|
+
MaxLength(20),
|
|
42
|
+
IsNotEmpty(),
|
|
47
43
|
__metadata("design:type", String)
|
|
48
44
|
], RegisterDto.prototype, "phoneNumber", void 0);
|
|
49
45
|
__decorate([
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
IsArray(),
|
|
47
|
+
IsEnum(Roles, { each: true }),
|
|
48
|
+
IsOptional(),
|
|
53
49
|
__metadata("design:type", Array)
|
|
54
50
|
], RegisterDto.prototype, "roles", void 0);
|
|
55
51
|
__decorate([
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
IsString(),
|
|
53
|
+
IsNotEmpty(),
|
|
54
|
+
MaxLength(50),
|
|
59
55
|
__metadata("design:type", String)
|
|
60
56
|
], RegisterDto.prototype, "designation", void 0);
|
|
61
57
|
__decorate([
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
IsString(),
|
|
59
|
+
MinLength(8),
|
|
60
|
+
Matches(PASSWORD_REGEX, { message: PASSWORD_ERROR_MESSAGE }),
|
|
61
|
+
IsOptional(),
|
|
66
62
|
__metadata("design:type", String)
|
|
67
63
|
], RegisterDto.prototype, "password", void 0);
|
|
68
64
|
__decorate([
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
65
|
+
IsString(),
|
|
66
|
+
IsNotEmpty(),
|
|
67
|
+
MaxLength(50),
|
|
72
68
|
__metadata("design:type", String)
|
|
73
69
|
], RegisterDto.prototype, "orgName", void 0);
|
|
74
70
|
__decorate([
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
__metadata("design:type",
|
|
71
|
+
ValidateNested(),
|
|
72
|
+
Type(() => MapAddressDto),
|
|
73
|
+
IsNotEmpty(),
|
|
74
|
+
__metadata("design:type", MapAddressDto)
|
|
79
75
|
], RegisterDto.prototype, "orgAddress", void 0);
|
|
80
76
|
__decorate([
|
|
81
|
-
|
|
82
|
-
|
|
77
|
+
IsUrl({}, { message: 'Invalid URL. Format should be http://www.example.com' }),
|
|
78
|
+
IsNotEmpty(),
|
|
83
79
|
__metadata("design:type", String)
|
|
84
80
|
], RegisterDto.prototype, "orgWebsite", void 0);
|
|
85
81
|
__decorate([
|
|
86
|
-
|
|
87
|
-
|
|
82
|
+
IsEnum(OrganizationType),
|
|
83
|
+
IsNotEmpty(),
|
|
88
84
|
__metadata("design:type", String)
|
|
89
85
|
], RegisterDto.prototype, "orgType", void 0);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,20 +7,17 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const otp_action_1 = require("../enums/otp-action");
|
|
15
|
-
class ResendOTPDto {
|
|
10
|
+
import { IsEnum, IsNotEmpty, IsString } from "class-validator";
|
|
11
|
+
import { OtpAction } from "../enums/otp-action";
|
|
12
|
+
export class ResendOTPDto {
|
|
16
13
|
}
|
|
17
|
-
exports.ResendOTPDto = ResendOTPDto;
|
|
18
14
|
__decorate([
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
IsEnum(OtpAction),
|
|
16
|
+
IsNotEmpty(),
|
|
21
17
|
__metadata("design:type", String)
|
|
22
18
|
], ResendOTPDto.prototype, "action", void 0);
|
|
23
19
|
__decorate([
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
IsString(),
|
|
21
|
+
IsNotEmpty(),
|
|
26
22
|
__metadata("design:type", String)
|
|
27
23
|
], ResendOTPDto.prototype, "verificationToken", void 0);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,31 +7,28 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const password_regex_const_1 = require("../../common/constants/password-regex.const");
|
|
16
|
-
class ResetPasswordDto {
|
|
10
|
+
import { IsNotEmpty, IsString, Matches, MinLength } from "class-validator";
|
|
11
|
+
import { Match } from "../validators/match.decorator";
|
|
12
|
+
import { PASSWORD_ERROR_MESSAGE, PASSWORD_REGEX } from "../../common/constants/password-regex.const";
|
|
13
|
+
export class ResetPasswordDto {
|
|
17
14
|
}
|
|
18
|
-
exports.ResetPasswordDto = ResetPasswordDto;
|
|
19
15
|
__decorate([
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
IsString(),
|
|
17
|
+
IsNotEmpty(),
|
|
22
18
|
__metadata("design:type", String)
|
|
23
19
|
], ResetPasswordDto.prototype, "verificationToken", void 0);
|
|
24
20
|
__decorate([
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
IsString(),
|
|
22
|
+
IsNotEmpty(),
|
|
23
|
+
MinLength(8),
|
|
24
|
+
Matches(PASSWORD_REGEX, { message: PASSWORD_ERROR_MESSAGE }),
|
|
29
25
|
__metadata("design:type", String)
|
|
30
26
|
], ResetPasswordDto.prototype, "password", void 0);
|
|
31
27
|
__decorate([
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
IsString(),
|
|
29
|
+
IsNotEmpty(),
|
|
30
|
+
MinLength(8),
|
|
31
|
+
Matches(PASSWORD_REGEX, { message: PASSWORD_ERROR_MESSAGE }),
|
|
32
|
+
Match('password', { message: 'Passwords do not match' }),
|
|
37
33
|
__metadata("design:type", String)
|
|
38
34
|
], ResetPasswordDto.prototype, "confirmPassword", void 0);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,19 +7,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class VerifyOTPDto {
|
|
10
|
+
import { IsNotEmpty, IsString } from "class-validator";
|
|
11
|
+
export class VerifyOTPDto {
|
|
15
12
|
}
|
|
16
|
-
exports.VerifyOTPDto = VerifyOTPDto;
|
|
17
13
|
__decorate([
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
IsString(),
|
|
15
|
+
IsNotEmpty(),
|
|
20
16
|
__metadata("design:type", String)
|
|
21
17
|
], VerifyOTPDto.prototype, "verificationToken", void 0);
|
|
22
18
|
__decorate([
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
IsString(),
|
|
20
|
+
IsNotEmpty(),
|
|
25
21
|
__metadata("design:type", String)
|
|
26
22
|
], VerifyOTPDto.prototype, "otp", void 0);
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OtpAction = void 0;
|
|
4
|
-
var OtpAction;
|
|
1
|
+
export var OtpAction;
|
|
5
2
|
(function (OtpAction) {
|
|
6
3
|
OtpAction["LOGIN"] = "login";
|
|
7
4
|
OtpAction["REGISTER"] = "register";
|
|
@@ -10,4 +7,4 @@ var OtpAction;
|
|
|
10
7
|
OtpAction["VERIFY_EMAIL"] = "verify_email";
|
|
11
8
|
OtpAction["VERIFY_PHONE"] = "verify_phone";
|
|
12
9
|
OtpAction["CREATE_USER"] = "create_user";
|
|
13
|
-
})(OtpAction || (
|
|
10
|
+
})(OtpAction || (OtpAction = {}));
|
|
@@ -1,30 +1,14 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
1
|
// dtos
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
2
|
+
export * from './dtos/register.dto';
|
|
3
|
+
export * from './dtos/login.dto';
|
|
4
|
+
export * from './dtos/reset-password.dto';
|
|
5
|
+
export * from './dtos/change-password.dto';
|
|
6
|
+
export * from './dtos/forgot-password.dto';
|
|
7
|
+
export * from './dtos/verify-otp.dto';
|
|
8
|
+
export * from './dtos/resend-otp.dto';
|
|
9
|
+
export * from './dtos/refresh-token.dto';
|
|
26
10
|
// Interfaces
|
|
27
|
-
|
|
28
|
-
|
|
11
|
+
export * from './interfaces/register-response';
|
|
12
|
+
export * from './interfaces/login-response';
|
|
29
13
|
// Enums
|
|
30
|
-
|
|
14
|
+
export * from './enums/otp-action';
|