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.
Files changed (187) hide show
  1. package/dist/decorators/case-decorators.js +7 -12
  2. package/dist/exceptions/custom-exception/custom-rpc.exception.js +5 -9
  3. package/dist/exceptions/enums/error-codes.enum.js +1 -4
  4. package/dist/exceptions/error-logger/error-logger.js +2 -6
  5. package/dist/exceptions/filters/all-exceptions.filter.js +17 -20
  6. package/dist/exceptions/filters/http-exceptions.filter.js +10 -13
  7. package/dist/exceptions/index.js +7 -23
  8. package/dist/exceptions/interfaces/error-context.js +1 -2
  9. package/dist/exceptions/interfaces/error-response.js +1 -2
  10. package/dist/index.js +18 -34
  11. package/dist/interfaces/i-request-with-user.js +1 -2
  12. package/dist/interfaces/jwt-payload.js +1 -2
  13. package/dist/interfaces/server-message.js +1 -2
  14. package/dist/interfaces/validated-user.js +1 -2
  15. package/dist/kafka/dtos/otp/create-otp-payload.dto.js +25 -29
  16. package/dist/kafka/dtos/otp/otp-payload.dto.js +10 -14
  17. package/dist/kafka/dtos/password/password-reset-payload.dto.js +13 -17
  18. package/dist/kafka/dtos/user/create-user-created-payload.dto.js +27 -31
  19. package/dist/kafka/dtos/user/create-user-registered-payload.dto.js +14 -18
  20. package/dist/kafka/dtos/user/user-created-payload.dto.js +10 -14
  21. package/dist/kafka/dtos/user/user-registered-payload.dto.js +6 -10
  22. package/dist/kafka/index.js +8 -24
  23. package/dist/kafka/topics.js +1 -4
  24. package/dist/modules/auth/dtos/change-password.dto.js +17 -21
  25. package/dist/modules/auth/dtos/forgot-password.dto.js +4 -8
  26. package/dist/modules/auth/dtos/login.dto.js +9 -13
  27. package/dist/modules/auth/dtos/refresh-token.dto.js +4 -8
  28. package/dist/modules/auth/dtos/register.dto.js +43 -47
  29. package/dist/modules/auth/dtos/resend-otp.dto.js +7 -11
  30. package/dist/modules/auth/dtos/reset-password.dto.js +15 -19
  31. package/dist/modules/auth/dtos/verify-otp.dto.js +6 -10
  32. package/dist/modules/auth/enums/otp-action.js +2 -5
  33. package/dist/modules/auth/index.js +11 -27
  34. package/dist/modules/auth/interfaces/login-response.js +1 -2
  35. package/dist/modules/auth/interfaces/register-response.js +1 -2
  36. package/dist/modules/auth/validators/match.decorator.js +3 -6
  37. package/dist/modules/common/constants/password-regex.const.js +1 -5
  38. package/dist/modules/common/constants/service.const.js +1 -4
  39. package/dist/modules/common/dtos/contact-person.dto.js +12 -16
  40. package/dist/modules/common/dtos/map-address.dto.js +20 -24
  41. package/dist/modules/common/dtos/map-location.dto.js +10 -14
  42. package/dist/modules/common/index.js +7 -23
  43. package/dist/modules/common/interfaces/contact-person.js +1 -2
  44. package/dist/modules/common/interfaces/map-address.js +1 -2
  45. package/dist/modules/common/interfaces/map-location.js +1 -2
  46. package/dist/modules/control-centre/dtos/create-control-centre.dto.js +29 -33
  47. package/dist/modules/control-centre/dtos/update-control-centre.dto.js +3 -7
  48. package/dist/modules/control-centre/enums/control-centre.enum.js +2 -5
  49. package/dist/modules/control-centre/index.js +4 -20
  50. package/dist/modules/control-centre/interfaces/control-centre.js +1 -2
  51. package/dist/modules/email/index.js +1 -17
  52. package/dist/modules/email/interfaces/user-created.js +1 -2
  53. package/dist/modules/incident/dtos/action/create-incident-action.dto.js +13 -17
  54. package/dist/modules/incident/dtos/action/incident-action.dto.js +8 -12
  55. package/dist/modules/incident/dtos/action/update-inident-action.dto.js +3 -7
  56. package/dist/modules/incident/dtos/assignment/create-incident-assignment.dto.js +14 -18
  57. package/dist/modules/incident/dtos/assignment/incident-assignment.dto.js +8 -12
  58. package/dist/modules/incident/dtos/assignment/update-incident-assignment.dto.js +3 -7
  59. package/dist/modules/incident/dtos/attachment/create-incident-attachment.dto.js +12 -16
  60. package/dist/modules/incident/dtos/attachment/update-incident-attachment.dto.js +3 -7
  61. package/dist/modules/incident/dtos/category/create-incident-category.dto.js +10 -14
  62. package/dist/modules/incident/dtos/category/update-incident-category.dto.js +3 -7
  63. package/dist/modules/incident/dtos/incident/create-incident.dto.js +53 -57
  64. package/dist/modules/incident/dtos/incident/incident.dto.js +37 -41
  65. package/dist/modules/incident/dtos/incident/update-incident.dto.js +3 -7
  66. package/dist/modules/incident/dtos/reporter/create-incident-reporter.dto.js +12 -16
  67. package/dist/modules/incident/dtos/reporter/incident-reporter.dto.js +10 -14
  68. package/dist/modules/incident/dtos/reporter/update-incident-reporter.dto.js +3 -7
  69. package/dist/modules/incident/dtos/response-unit-assignment/create-incident-response-unit-assignment.dto.js +16 -20
  70. package/dist/modules/incident/dtos/response-unit-assignment/incident-response-unit-assignment.dto.js +3 -7
  71. package/dist/modules/incident/dtos/response-unit-assignment/update-incident-response-unit-assignment.dto.js +8 -12
  72. package/dist/modules/incident/dtos/type/create-incident-type.dto.js +12 -16
  73. package/dist/modules/incident/dtos/type/update-incident-type.dto.js +3 -7
  74. package/dist/modules/incident/enums/incident-actions.enum.js +2 -5
  75. package/dist/modules/incident/enums/incident-app-id.enum.js +2 -5
  76. package/dist/modules/incident/enums/incident-channel.enum.js +2 -5
  77. package/dist/modules/incident/enums/incident-class.enum.js +2 -5
  78. package/dist/modules/incident/enums/incident-priority.enum.js +2 -5
  79. package/dist/modules/incident/enums/incident-status.enum.js +2 -5
  80. package/dist/modules/incident/enums/incident-workflow-queue-name.enum.js +2 -5
  81. package/dist/modules/incident/index.js +37 -53
  82. package/dist/modules/incident/intefaces/incident-action.js +1 -2
  83. package/dist/modules/incident/intefaces/incident-assignment.js +1 -2
  84. package/dist/modules/incident/intefaces/incident-attachment.js +1 -2
  85. package/dist/modules/incident/intefaces/incident-category.js +1 -2
  86. package/dist/modules/incident/intefaces/incident-reporter.js +1 -2
  87. package/dist/modules/incident/intefaces/incident-response-unit-assignment.js +1 -2
  88. package/dist/modules/incident/intefaces/incident-type.js +1 -2
  89. package/dist/modules/incident/intefaces/incident.js +1 -2
  90. package/dist/modules/organization/dtos/create-organization.dto.js +41 -45
  91. package/dist/modules/organization/dtos/organization-sla.dto.js +12 -16
  92. package/dist/modules/organization/dtos/update-organization.dto.js +3 -7
  93. package/dist/modules/organization/enums/org-status.enum.js +2 -5
  94. package/dist/modules/organization/enums/org-type.enum.js +2 -5
  95. package/dist/modules/organization/index.js +7 -23
  96. package/dist/modules/organization/interfaces/organization-sla.js +1 -2
  97. package/dist/modules/organization/interfaces/organization.js +1 -2
  98. package/dist/modules/permission/data/permissions.data.js +28 -31
  99. package/dist/modules/permission/dtos/create-permission.dto.js +7 -11
  100. package/dist/modules/permission/dtos/update-permission.dto.js +3 -7
  101. package/dist/modules/permission/enums/permission-actions.enum.js +2 -5
  102. package/dist/modules/permission/enums/permissions-moudule.enum.js +2 -5
  103. package/dist/modules/permission/index.js +6 -22
  104. package/dist/modules/permission/interfaces/permission.js +1 -2
  105. package/dist/modules/response-unit/dtos/person-unit/base-person-unit.dto.js +15 -19
  106. package/dist/modules/response-unit/dtos/person-unit/create-person-unit.dto.js +3 -7
  107. package/dist/modules/response-unit/dtos/person-unit/person-unit.dto.js +2 -6
  108. package/dist/modules/response-unit/dtos/person-unit/update-person-unit.dto.js +3 -7
  109. package/dist/modules/response-unit/dtos/response-unit/base-response-unit.dto.js +25 -29
  110. package/dist/modules/response-unit/dtos/response-unit/create-response-unit.dto.js +3 -7
  111. package/dist/modules/response-unit/dtos/response-unit/response-unit.dto.js +2 -6
  112. package/dist/modules/response-unit/dtos/response-unit/station.dto.js +8 -12
  113. package/dist/modules/response-unit/dtos/response-unit/update-response-unit.dto.js +3 -7
  114. package/dist/modules/response-unit/dtos/team-unit/base-team-unit.dto.js +10 -14
  115. package/dist/modules/response-unit/dtos/team-unit/create-team-unit.dto.js +3 -7
  116. package/dist/modules/response-unit/dtos/team-unit/crew/create-team-unit-crew.dto.js +3 -7
  117. package/dist/modules/response-unit/dtos/team-unit/crew/team-unit-crew.dto.js +14 -18
  118. package/dist/modules/response-unit/dtos/team-unit/crew/update-team-unit-crew.dto.js +3 -7
  119. package/dist/modules/response-unit/dtos/team-unit/team-unit.dto.js +2 -6
  120. package/dist/modules/response-unit/dtos/team-unit/update-team-unit.dto.js +3 -7
  121. package/dist/modules/response-unit/dtos/vehicle-unit/base-vehicle-unit.dto.js +27 -31
  122. package/dist/modules/response-unit/dtos/vehicle-unit/create-vehicle-unit.dto.js +3 -7
  123. package/dist/modules/response-unit/dtos/vehicle-unit/crew/create-vehicle-unit-crew.dto.js +3 -7
  124. package/dist/modules/response-unit/dtos/vehicle-unit/crew/update-vehicle-unit-crew.dto.js +11 -15
  125. package/dist/modules/response-unit/dtos/vehicle-unit/crew/vehicle-unit-crew.dto.js +19 -23
  126. package/dist/modules/response-unit/dtos/vehicle-unit/device/create-vehicle-unit-device.dto.js +3 -7
  127. package/dist/modules/response-unit/dtos/vehicle-unit/device/update-vehicle-unit-device.dto.js +3 -7
  128. package/dist/modules/response-unit/dtos/vehicle-unit/device/vehicle-unit-device.dto.js +23 -27
  129. package/dist/modules/response-unit/dtos/vehicle-unit/update-vehicle-unit.dto.js +3 -7
  130. package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/ambulance-vehicle.dto.js +2 -6
  131. package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/base-ambulance-vehicle.dto.js +6 -10
  132. package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/create-ambulance-vehicle.dto.js +3 -7
  133. package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/update-ambulance-vehicle.dto.js +3 -7
  134. package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/base-fire-vehicle.dto.js +6 -10
  135. package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/create-fire-vehicle.dto.js +3 -7
  136. package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/fire-vehicle.dto.js +2 -6
  137. package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/update-fire-vehicle.dto.js +3 -7
  138. package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/base-road-rescue-vehicle.dto.js +5 -9
  139. package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/create-road-rescue-vehicle.dto.js +3 -7
  140. package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/road-rescue-vehicle.dto.js +2 -6
  141. package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/update-road-rescue-vehicle.dto.js +3 -7
  142. package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/base-security-vehicle.dto.js +5 -9
  143. package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/create-security-vehicle.dto.js +3 -7
  144. package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/security-vehicle.dto.js +2 -6
  145. package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/update-security-vehicle.dto.js +3 -7
  146. package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-unit.dto.js +2 -6
  147. package/dist/modules/response-unit/enums/person-unit/person-unit-category.enum.js +2 -5
  148. package/dist/modules/response-unit/enums/person-unit/person-unit-status.enum.js +2 -5
  149. package/dist/modules/response-unit/enums/response-unit/response-unit-type.enum.js +2 -5
  150. package/dist/modules/response-unit/enums/vehicle-unit/vehicle-crew/ambulance-vehicle-role.enum.js +2 -5
  151. package/dist/modules/response-unit/enums/vehicle-unit/vehicle-crew/fire-vehicle-role.enum.js +2 -5
  152. package/dist/modules/response-unit/enums/vehicle-unit/vehicle-crew/road-rescue-vehicle-role.enum.js +2 -5
  153. package/dist/modules/response-unit/enums/vehicle-unit/vehicle-crew/security-vehicle-role.enum.js +2 -5
  154. package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/ambulance-vehicle-type.enum.js +2 -5
  155. package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/fire-vehicle-type.enum.js +2 -5
  156. package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/road-rescue-vehicle-type.enum.js +2 -5
  157. package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/security-vehicle-type.enum.js +2 -5
  158. package/dist/modules/response-unit/enums/vehicle-unit/vehicle-unit-ownership.enum.js +2 -5
  159. package/dist/modules/response-unit/enums/vehicle-unit/vehicle-unit-status.enum.js +2 -5
  160. package/dist/modules/response-unit/enums/vehicle-unit/vehicle-unit-type.enum.js +2 -5
  161. package/dist/modules/response-unit/index.js +67 -83
  162. package/dist/modules/response-unit/interfaces/person-unit/person-unit.js +1 -2
  163. package/dist/modules/response-unit/interfaces/response-unit/response-unit.js +1 -2
  164. package/dist/modules/response-unit/interfaces/team-unit/team-unit-crew.js +1 -2
  165. package/dist/modules/response-unit/interfaces/team-unit/team-unit.js +1 -2
  166. package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/ambulance-vehicle.js +1 -2
  167. package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/fire-vehicle.js +1 -2
  168. package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/road-rescue-vehicle.js +1 -2
  169. package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/security-vehicle.js +1 -2
  170. package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-unit-crew.js +1 -2
  171. package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-unit-device.js +1 -2
  172. package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-unit.js +1 -2
  173. package/dist/modules/response-unit/validators/valid-vehicle-role.decorator.js +16 -19
  174. package/dist/modules/role/data/roles.data.js +62 -65
  175. package/dist/modules/role/dtos/create-role.dto.js +10 -14
  176. package/dist/modules/role/dtos/update-tole.dto.js +3 -7
  177. package/dist/modules/role/enums/role.enum.js +2 -5
  178. package/dist/modules/role/index.js +5 -21
  179. package/dist/modules/role/interfaces/role.js +1 -2
  180. package/dist/modules/user/dtos/create-user.dto.js +41 -45
  181. package/dist/modules/user/dtos/update-user.dto.js +3 -7
  182. package/dist/modules/user/enums/user-status.enum.js +2 -5
  183. package/dist/modules/user/index.js +4 -20
  184. package/dist/modules/user/interfaces/user.js +1 -2
  185. package/dist/modules/workflow/index.js +1 -17
  186. package/dist/modules/workflow/interfaces/workflow-query-info.js +1 -2
  187. 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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CreateUserRegisteredPayloadDto = void 0;
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
- (0, class_validator_1.IsNumber)(),
19
- (0, class_validator_1.IsNotEmpty)(),
14
+ IsNumber(),
15
+ IsNotEmpty(),
20
16
  __metadata("design:type", Number)
21
17
  ], CreateUserRegisteredPayloadDto.prototype, "id", void 0);
22
18
  __decorate([
23
- (0, class_validator_1.IsString)(),
24
- (0, class_validator_1.IsNotEmpty)(),
19
+ IsString(),
20
+ IsNotEmpty(),
25
21
  __metadata("design:type", String)
26
22
  ], CreateUserRegisteredPayloadDto.prototype, "name", void 0);
27
23
  __decorate([
28
- (0, class_validator_1.IsEmail)(),
29
- (0, class_validator_1.IsNotEmpty)(),
24
+ IsEmail(),
25
+ IsNotEmpty(),
30
26
  __metadata("design:type", String)
31
27
  ], CreateUserRegisteredPayloadDto.prototype, "email", void 0);
32
28
  __decorate([
33
- (0, class_validator_1.IsPhoneNumber)(),
34
- (0, class_validator_1.IsOptional)(),
29
+ IsPhoneNumber(),
30
+ IsOptional(),
35
31
  __metadata("design:type", String)
36
32
  ], CreateUserRegisteredPayloadDto.prototype, "phoneNumber", void 0);
37
33
  __decorate([
38
- (0, class_validator_1.IsDate)(),
39
- (0, class_validator_1.IsNotEmpty)(),
34
+ IsDate(),
35
+ IsNotEmpty(),
40
36
  __metadata("design:type", Date)
41
37
  ], CreateUserRegisteredPayloadDto.prototype, "createdAt", void 0);
42
38
  __decorate([
43
- (0, class_validator_1.IsObject)(),
44
- (0, class_validator_1.IsOptional)(),
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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.UserCreatedPaylodDto = void 0;
13
- const mapped_types_1 = require("@nestjs/mapped-types");
14
- const create_user_created_payload_dto_1 = require("./create-user-created-payload.dto");
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
- (0, class_validator_1.IsString)(),
21
- (0, class_validator_1.IsNotEmpty)(),
16
+ IsString(),
17
+ IsNotEmpty(),
22
18
  __metadata("design:type", String)
23
19
  ], UserCreatedPaylodDto.prototype, "otpExpiresAt", void 0);
24
20
  __decorate([
25
- (0, class_validator_1.IsString)(),
26
- (0, class_validator_1.IsNotEmpty)(),
21
+ IsString(),
22
+ IsNotEmpty(),
27
23
  __metadata("design:type", String)
28
24
  ], UserCreatedPaylodDto.prototype, "verificationTokenExpiresAt", void 0);
29
25
  __decorate([
30
- (0, class_validator_1.IsString)(),
31
- (0, class_validator_1.IsNotEmpty)(),
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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.UserRegisteredPayloadDto = void 0;
13
- const mapped_types_1 = require("@nestjs/mapped-types");
14
- const create_user_registered_payload_dto_1 = require("./create-user-registered-payload.dto");
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
- (0, class_validator_1.IsString)(),
21
- (0, class_validator_1.IsNotEmpty)(),
16
+ IsString(),
17
+ IsNotEmpty(),
22
18
  __metadata("design:type", String)
23
19
  ], UserRegisteredPayloadDto.prototype, "createdAt", void 0);
@@ -1,24 +1,8 @@
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
- __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';
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.KAFKA_TOPICS = void 0;
4
- exports.KAFKA_TOPICS = {
1
+ export const KAFKA_TOPICS = {
5
2
  // Auth
6
3
  USER_REGISTERED: 'user.registered',
7
4
  USER_LOGGED_IN: 'user.logged.in',
@@ -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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ChangePasswordDto = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const password_regex_const_1 = require("../../common/constants/password-regex.const");
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
- (0, class_validator_1.IsNumber)(),
21
- (0, class_validator_1.IsNotEmpty)(),
16
+ IsNumber(),
17
+ IsNotEmpty(),
22
18
  __metadata("design:type", Number)
23
19
  ], ChangePasswordDto.prototype, "userId", void 0);
24
20
  __decorate([
25
- (0, class_validator_1.IsString)(),
26
- (0, class_validator_1.IsNotEmpty)(),
21
+ IsString(),
22
+ IsNotEmpty(),
27
23
  __metadata("design:type", String)
28
24
  ], ChangePasswordDto.prototype, "oldPassword", void 0);
29
25
  __decorate([
30
- (0, class_validator_1.IsString)(),
31
- (0, class_validator_1.IsNotEmpty)(),
32
- (0, class_validator_1.MinLength)(8),
33
- (0, class_validator_1.Matches)(password_regex_const_1.PASSWORD_REGEX, { message: password_regex_const_1.PASSWORD_ERROR_MESSAGE }),
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
- (0, class_validator_1.IsString)(),
38
- (0, class_validator_1.IsNotEmpty)(),
39
- (0, class_validator_1.MinLength)(8),
40
- (0, class_validator_1.Matches)(password_regex_const_1.PASSWORD_REGEX, { message: password_regex_const_1.PASSWORD_ERROR_MESSAGE }),
41
- (0, match_decorator_1.Match)('newPassword', { message: 'Passwords do not match' }),
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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ForgotPasswordDto = void 0;
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
- (0, class_validator_1.IsEmail)(),
19
- (0, class_validator_1.IsNotEmpty)(),
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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.LoginDto = void 0;
13
- const class_validator_1 = require("class-validator");
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
- (0, class_validator_1.IsEmail)(),
20
- (0, class_validator_1.IsNotEmpty)(),
15
+ IsEmail(),
16
+ IsNotEmpty(),
21
17
  __metadata("design:type", String)
22
18
  ], LoginDto.prototype, "email", void 0);
23
19
  __decorate([
24
- (0, class_validator_1.IsString)(),
25
- (0, class_validator_1.IsNotEmpty)(),
26
- (0, class_validator_1.MinLength)(8),
27
- (0, class_validator_1.Matches)(password_regex_const_1.PASSWORD_REGEX, { message: password_regex_const_1.PASSWORD_ERROR_MESSAGE }),
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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.RefreshTokenDto = void 0;
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
- (0, class_validator_1.IsString)(),
19
- (0, class_validator_1.IsNotEmpty)(),
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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.RegisterDto = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const common_1 = require("../../common");
15
- const role_1 = require("../../role");
16
- const case_decorators_1 = require("../../../decorators/case-decorators");
17
- const password_regex_const_1 = require("../../common/constants/password-regex.const");
18
- const class_transformer_1 = require("class-transformer");
19
- const org_type_enum_1 = require("../../organization/enums/org-type.enum");
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
- (0, class_validator_1.IsEnum)(incident_1.IncidentClass),
26
- (0, class_validator_1.IsNotEmpty)(),
21
+ IsEnum(IncidentClass),
22
+ IsNotEmpty(),
27
23
  __metadata("design:type", String)
28
24
  ], RegisterDto.prototype, "incidentClass", void 0);
29
25
  __decorate([
30
- (0, class_validator_1.IsString)(),
31
- (0, class_validator_1.IsNotEmpty)(),
32
- (0, class_validator_1.MinLength)(2),
33
- (0, class_validator_1.MaxLength)(50),
34
- (0, case_decorators_1.SentenceCase)(),
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
- (0, class_validator_1.IsEmail)(),
39
- (0, class_validator_1.IsNotEmpty)(),
40
- (0, class_validator_1.MaxLength)(50),
34
+ IsEmail(),
35
+ IsNotEmpty(),
36
+ MaxLength(50),
41
37
  __metadata("design:type", String)
42
38
  ], RegisterDto.prototype, "email", void 0);
43
39
  __decorate([
44
- (0, class_validator_1.IsPhoneNumber)(),
45
- (0, class_validator_1.MaxLength)(20),
46
- (0, class_validator_1.IsNotEmpty)(),
40
+ IsPhoneNumber(),
41
+ MaxLength(20),
42
+ IsNotEmpty(),
47
43
  __metadata("design:type", String)
48
44
  ], RegisterDto.prototype, "phoneNumber", void 0);
49
45
  __decorate([
50
- (0, class_validator_1.IsArray)(),
51
- (0, class_validator_1.IsEnum)(role_1.Roles, { each: true }),
52
- (0, class_validator_1.IsOptional)(),
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
- (0, class_validator_1.IsString)(),
57
- (0, class_validator_1.IsNotEmpty)(),
58
- (0, class_validator_1.MaxLength)(50),
52
+ IsString(),
53
+ IsNotEmpty(),
54
+ MaxLength(50),
59
55
  __metadata("design:type", String)
60
56
  ], RegisterDto.prototype, "designation", void 0);
61
57
  __decorate([
62
- (0, class_validator_1.IsString)(),
63
- (0, class_validator_1.MinLength)(8),
64
- (0, class_validator_1.Matches)(password_regex_const_1.PASSWORD_REGEX, { message: password_regex_const_1.PASSWORD_ERROR_MESSAGE }),
65
- (0, class_validator_1.IsOptional)(),
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
- (0, class_validator_1.IsString)(),
70
- (0, class_validator_1.IsNotEmpty)(),
71
- (0, class_validator_1.MaxLength)(50),
65
+ IsString(),
66
+ IsNotEmpty(),
67
+ MaxLength(50),
72
68
  __metadata("design:type", String)
73
69
  ], RegisterDto.prototype, "orgName", void 0);
74
70
  __decorate([
75
- (0, class_validator_1.ValidateNested)(),
76
- (0, class_transformer_1.Type)(() => common_1.MapAddressDto),
77
- (0, class_validator_1.IsNotEmpty)(),
78
- __metadata("design:type", common_1.MapAddressDto)
71
+ ValidateNested(),
72
+ Type(() => MapAddressDto),
73
+ IsNotEmpty(),
74
+ __metadata("design:type", MapAddressDto)
79
75
  ], RegisterDto.prototype, "orgAddress", void 0);
80
76
  __decorate([
81
- (0, class_validator_1.IsUrl)({}, { message: 'Invalid URL. Format should be http://www.example.com' }),
82
- (0, class_validator_1.IsNotEmpty)(),
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
- (0, class_validator_1.IsEnum)(org_type_enum_1.OrganizationType),
87
- (0, class_validator_1.IsNotEmpty)(),
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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ResendOTPDto = void 0;
13
- const class_validator_1 = require("class-validator");
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
- (0, class_validator_1.IsEnum)(otp_action_1.OtpAction),
20
- (0, class_validator_1.IsNotEmpty)(),
15
+ IsEnum(OtpAction),
16
+ IsNotEmpty(),
21
17
  __metadata("design:type", String)
22
18
  ], ResendOTPDto.prototype, "action", void 0);
23
19
  __decorate([
24
- (0, class_validator_1.IsString)(),
25
- (0, class_validator_1.IsNotEmpty)(),
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
- 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 {
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
- (0, class_validator_1.IsString)(),
21
- (0, class_validator_1.IsNotEmpty)(),
16
+ IsString(),
17
+ IsNotEmpty(),
22
18
  __metadata("design:type", String)
23
19
  ], ResetPasswordDto.prototype, "verificationToken", void 0);
24
20
  __decorate([
25
- (0, class_validator_1.IsString)(),
26
- (0, class_validator_1.IsNotEmpty)(),
27
- (0, class_validator_1.MinLength)(8),
28
- (0, class_validator_1.Matches)(password_regex_const_1.PASSWORD_REGEX, { message: password_regex_const_1.PASSWORD_ERROR_MESSAGE }),
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
- (0, class_validator_1.IsString)(),
33
- (0, class_validator_1.IsNotEmpty)(),
34
- (0, class_validator_1.MinLength)(8),
35
- (0, class_validator_1.Matches)(password_regex_const_1.PASSWORD_REGEX, { message: password_regex_const_1.PASSWORD_ERROR_MESSAGE }),
36
- (0, match_decorator_1.Match)('password', { message: 'Passwords do not match' }),
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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.VerifyOTPDto = void 0;
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
- (0, class_validator_1.IsString)(),
19
- (0, class_validator_1.IsNotEmpty)(),
14
+ IsString(),
15
+ IsNotEmpty(),
20
16
  __metadata("design:type", String)
21
17
  ], VerifyOTPDto.prototype, "verificationToken", void 0);
22
18
  __decorate([
23
- (0, class_validator_1.IsString)(),
24
- (0, class_validator_1.IsNotEmpty)(),
19
+ IsString(),
20
+ IsNotEmpty(),
25
21
  __metadata("design:type", String)
26
22
  ], VerifyOTPDto.prototype, "otp", void 0);
@@ -1,7 +1,4 @@
1
- "use strict";
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 || (exports.OtpAction = 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
- __exportStar(require("./dtos/register.dto"), exports);
19
- __exportStar(require("./dtos/login.dto"), exports);
20
- __exportStar(require("./dtos/reset-password.dto"), exports);
21
- __exportStar(require("./dtos/change-password.dto"), exports);
22
- __exportStar(require("./dtos/forgot-password.dto"), exports);
23
- __exportStar(require("./dtos/verify-otp.dto"), exports);
24
- __exportStar(require("./dtos/resend-otp.dto"), exports);
25
- __exportStar(require("./dtos/refresh-token.dto"), exports);
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
- __exportStar(require("./interfaces/register-response"), exports);
28
- __exportStar(require("./interfaces/login-response"), exports);
11
+ export * from './interfaces/register-response';
12
+ export * from './interfaces/login-response';
29
13
  // Enums
30
- __exportStar(require("./enums/otp-action"), exports);
14
+ export * from './enums/otp-action';