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,41 +7,38 @@ 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.CreateIncidentResponseUnitAssignmentDto = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class CreateIncidentResponseUnitAssignmentDto {
10
+ import { IsArray, IsDate, IsNotEmpty, IsNumber, IsOptional, IsString, MaxLength } from "class-validator";
11
+ export class CreateIncidentResponseUnitAssignmentDto {
15
12
  }
16
- exports.CreateIncidentResponseUnitAssignmentDto = CreateIncidentResponseUnitAssignmentDto;
17
13
  __decorate([
18
- (0, class_validator_1.IsNumber)(),
19
- (0, class_validator_1.IsOptional)(),
14
+ IsNumber(),
15
+ IsOptional(),
20
16
  __metadata("design:type", Number)
21
17
  ], CreateIncidentResponseUnitAssignmentDto.prototype, "id", void 0);
22
18
  __decorate([
23
- (0, class_validator_1.IsNumber)(),
24
- (0, class_validator_1.IsNotEmpty)(),
19
+ IsNumber(),
20
+ IsNotEmpty(),
25
21
  __metadata("design:type", Number)
26
22
  ], CreateIncidentResponseUnitAssignmentDto.prototype, "incidentId", void 0);
27
23
  __decorate([
28
- (0, class_validator_1.IsArray)(),
29
- (0, class_validator_1.IsNumber)({}, { each: true }),
30
- (0, class_validator_1.IsNotEmpty)(),
24
+ IsArray(),
25
+ IsNumber({}, { each: true }),
26
+ IsNotEmpty(),
31
27
  __metadata("design:type", Array)
32
28
  ], CreateIncidentResponseUnitAssignmentDto.prototype, "assignedResponseUnitIds", void 0);
33
29
  __decorate([
34
- (0, class_validator_1.IsNumber)(),
35
- (0, class_validator_1.IsNotEmpty)(),
30
+ IsNumber(),
31
+ IsNotEmpty(),
36
32
  __metadata("design:type", Number)
37
33
  ], CreateIncidentResponseUnitAssignmentDto.prototype, "assignerId", void 0);
38
34
  __decorate([
39
- (0, class_validator_1.IsString)(),
40
- (0, class_validator_1.IsOptional)(),
41
- (0, class_validator_1.MaxLength)(2000),
35
+ IsString(),
36
+ IsOptional(),
37
+ MaxLength(2000),
42
38
  __metadata("design:type", String)
43
39
  ], CreateIncidentResponseUnitAssignmentDto.prototype, "comments", void 0);
44
40
  __decorate([
45
- (0, class_validator_1.IsDate)(),
46
- (0, class_validator_1.IsNotEmpty)(),
41
+ IsDate(),
42
+ IsNotEmpty(),
47
43
  __metadata("design:type", Date)
48
44
  ], CreateIncidentResponseUnitAssignmentDto.prototype, "timestamp", void 0);
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateIncidentResponseUnitAssignmentDto = void 0;
4
- const mapped_types_1 = require("@nestjs/mapped-types");
5
- const create_incident_response_unit_assignment_dto_1 = require("./create-incident-response-unit-assignment.dto");
6
- class UpdateIncidentResponseUnitAssignmentDto extends (0, mapped_types_1.PartialType)(create_incident_response_unit_assignment_dto_1.CreateIncidentResponseUnitAssignmentDto) {
1
+ import { PartialType } from "@nestjs/mapped-types";
2
+ import { CreateIncidentResponseUnitAssignmentDto } from "./create-incident-response-unit-assignment.dto";
3
+ export class UpdateIncidentResponseUnitAssignmentDto extends PartialType(CreateIncidentResponseUnitAssignmentDto) {
7
4
  }
8
- exports.UpdateIncidentResponseUnitAssignmentDto = UpdateIncidentResponseUnitAssignmentDto;
@@ -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,21 +7,18 @@ 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.IncidentResponseUnitAssignmentDto = void 0;
13
- const mapped_types_1 = require("@nestjs/mapped-types");
14
- const create_incident_response_unit_assignment_dto_1 = require("./create-incident-response-unit-assignment.dto");
15
- const class_validator_1 = require("class-validator");
16
- class IncidentResponseUnitAssignmentDto extends (0, mapped_types_1.OmitType)(create_incident_response_unit_assignment_dto_1.CreateIncidentResponseUnitAssignmentDto, ['timestamp']) {
10
+ import { OmitType } from "@nestjs/mapped-types";
11
+ import { CreateIncidentResponseUnitAssignmentDto } from "./create-incident-response-unit-assignment.dto";
12
+ import { IsDateString, IsNotEmpty, IsNumber } from "class-validator";
13
+ export class IncidentResponseUnitAssignmentDto extends OmitType(CreateIncidentResponseUnitAssignmentDto, ['timestamp']) {
17
14
  }
18
- exports.IncidentResponseUnitAssignmentDto = IncidentResponseUnitAssignmentDto;
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
  ], IncidentResponseUnitAssignmentDto.prototype, "id", void 0);
24
20
  __decorate([
25
- (0, class_validator_1.IsDateString)(),
26
- (0, class_validator_1.IsNotEmpty)(),
21
+ IsDateString(),
22
+ IsNotEmpty(),
27
23
  __metadata("design:type", String)
28
24
  ], IncidentResponseUnitAssignmentDto.prototype, "timestamp", 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.CreateIncidentTypeDto = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class CreateIncidentTypeDto {
10
+ import { IsNotEmpty, IsNumber, IsOptional, IsString, MaxLength } from "class-validator";
11
+ export class CreateIncidentTypeDto {
15
12
  }
16
- exports.CreateIncidentTypeDto = CreateIncidentTypeDto;
17
13
  __decorate([
18
- (0, class_validator_1.IsString)(),
19
- (0, class_validator_1.IsNotEmpty)(),
20
- (0, class_validator_1.MaxLength)(50),
14
+ IsString(),
15
+ IsNotEmpty(),
16
+ MaxLength(50),
21
17
  __metadata("design:type", String)
22
18
  ], CreateIncidentTypeDto.prototype, "name", void 0);
23
19
  __decorate([
24
- (0, class_validator_1.IsString)(),
25
- (0, class_validator_1.IsOptional)(),
26
- (0, class_validator_1.MaxLength)(255),
20
+ IsString(),
21
+ IsOptional(),
22
+ MaxLength(255),
27
23
  __metadata("design:type", String)
28
24
  ], CreateIncidentTypeDto.prototype, "description", void 0);
29
25
  __decorate([
30
- (0, class_validator_1.IsNumber)(),
31
- (0, class_validator_1.IsOptional)(),
26
+ IsNumber(),
27
+ IsOptional(),
32
28
  __metadata("design:type", Number)
33
29
  ], CreateIncidentTypeDto.prototype, "categoryId", void 0);
34
30
  __decorate([
35
- (0, class_validator_1.IsNumber)(),
36
- (0, class_validator_1.IsNotEmpty)(),
31
+ IsNumber(),
32
+ IsNotEmpty(),
37
33
  __metadata("design:type", Number)
38
34
  ], CreateIncidentTypeDto.prototype, "organizationId", void 0);
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateIncidentTypeDto = void 0;
4
- const mapped_types_1 = require("@nestjs/mapped-types");
5
- const create_incident_type_dto_1 = require("./create-incident-type.dto");
6
- class UpdateIncidentTypeDto extends (0, mapped_types_1.PartialType)(create_incident_type_dto_1.CreateIncidentTypeDto) {
1
+ import { PartialType } from "@nestjs/mapped-types";
2
+ import { CreateIncidentTypeDto } from "./create-incident-type.dto";
3
+ export class UpdateIncidentTypeDto extends PartialType(CreateIncidentTypeDto) {
7
4
  }
8
- exports.UpdateIncidentTypeDto = UpdateIncidentTypeDto;
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IncidentActions = void 0;
4
- var IncidentActions;
1
+ export var IncidentActions;
5
2
  (function (IncidentActions) {
6
3
  IncidentActions["CREATED"] = "Created";
7
4
  IncidentActions["STATUS_CHANGED"] = "Status Changed";
@@ -15,4 +12,4 @@ var IncidentActions;
15
12
  IncidentActions["TYPE_CHANGED"] = "Type Changed";
16
13
  IncidentActions["REPORTER_ANONYMOUS"] = "Reporter Made Anonymous";
17
14
  IncidentActions["WITHDRAWN"] = "Withdrawn";
18
- })(IncidentActions || (exports.IncidentActions = IncidentActions = {}));
15
+ })(IncidentActions || (IncidentActions = {}));
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IncidentAppId = void 0;
4
- var IncidentAppId;
1
+ export var IncidentAppId;
5
2
  (function (IncidentAppId) {
6
3
  IncidentAppId["UPESY"] = "Upesy";
7
4
  IncidentAppId["GRM"] = "GRM";
8
5
  IncidentAppId["PASHA"] = "Pasha";
9
- })(IncidentAppId || (exports.IncidentAppId = IncidentAppId = {}));
6
+ })(IncidentAppId || (IncidentAppId = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IncidentChannel = void 0;
4
- var IncidentChannel;
1
+ export var IncidentChannel;
5
2
  (function (IncidentChannel) {
6
3
  IncidentChannel["APP"] = "App";
7
4
  IncidentChannel["WEB"] = "Web";
@@ -12,4 +9,4 @@ var IncidentChannel;
12
9
  IncidentChannel["SOCIAL_MEDIA"] = "Social Media";
13
10
  IncidentChannel["IN_PERSON"] = "In-Person";
14
11
  IncidentChannel["OTHER"] = "Other";
15
- })(IncidentChannel || (exports.IncidentChannel = IncidentChannel = {}));
12
+ })(IncidentChannel || (IncidentChannel = {}));
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IncidentClass = void 0;
4
- var IncidentClass;
1
+ export var IncidentClass;
5
2
  (function (IncidentClass) {
6
3
  IncidentClass["INCIDENT"] = "Incident";
7
4
  IncidentClass["GRIEVANCE"] = "Grievance";
8
- })(IncidentClass || (exports.IncidentClass = IncidentClass = {}));
5
+ })(IncidentClass || (IncidentClass = {}));
@@ -1,10 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IncidentPriority = void 0;
4
- var IncidentPriority;
1
+ export var IncidentPriority;
5
2
  (function (IncidentPriority) {
6
3
  IncidentPriority["LOW"] = "Low";
7
4
  IncidentPriority["MEDIUM"] = "Medium";
8
5
  IncidentPriority["HIGH"] = "High";
9
6
  IncidentPriority["CRITICAL"] = "Critical";
10
- })(IncidentPriority || (exports.IncidentPriority = IncidentPriority = {}));
7
+ })(IncidentPriority || (IncidentPriority = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IncidentStatus = void 0;
4
- var IncidentStatus;
1
+ export var IncidentStatus;
5
2
  (function (IncidentStatus) {
6
3
  //Stage 1
7
4
  IncidentStatus["RECEIVED"] = "Received";
@@ -15,7 +12,7 @@ var IncidentStatus;
15
12
  IncidentStatus["CLOSED"] = "Closed";
16
13
  IncidentStatus["UNRESOLVED"] = "Unresolved";
17
14
  IncidentStatus["ARCHIVED"] = "Archived";
18
- })(IncidentStatus || (exports.IncidentStatus = IncidentStatus = {}));
15
+ })(IncidentStatus || (IncidentStatus = {}));
19
16
  /**
20
17
  * When an incident is first created it will be created in the DB with the default status Received.
21
18
  * Thereafter it can be changed from status Received to any of the stage 1 statuses or Resolved or Escalated statuses in stage 2.
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IncidentWorkflowTaskQueueName = void 0;
4
- var IncidentWorkflowTaskQueueName;
1
+ export var IncidentWorkflowTaskQueueName;
5
2
  (function (IncidentWorkflowTaskQueueName) {
6
3
  IncidentWorkflowTaskQueueName["INCIDENT_QUEUE"] = "incident-task-queue";
7
4
  IncidentWorkflowTaskQueueName["GRIEVANCE_QUEUE"] = "grievance-task-queue";
8
- })(IncidentWorkflowTaskQueueName || (exports.IncidentWorkflowTaskQueueName = IncidentWorkflowTaskQueueName = {}));
5
+ })(IncidentWorkflowTaskQueueName || (IncidentWorkflowTaskQueueName = {}));
@@ -1,56 +1,40 @@
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/action/incident-action.dto"), exports);
19
- __exportStar(require("./dtos/action/create-incident-action.dto"), exports);
20
- __exportStar(require("./dtos/action/update-inident-action.dto"), exports);
21
- __exportStar(require("./dtos/attachment/create-incident-attachment.dto"), exports);
22
- __exportStar(require("./dtos/attachment/update-incident-attachment.dto"), exports);
23
- __exportStar(require("./dtos/category/create-incident-category.dto"), exports);
24
- __exportStar(require("./dtos/category/update-incident-category.dto"), exports);
25
- __exportStar(require("./dtos/incident/incident.dto"), exports);
26
- __exportStar(require("./dtos/incident/create-incident.dto"), exports);
27
- __exportStar(require("./dtos/incident/update-incident.dto"), exports);
28
- __exportStar(require("./dtos/reporter/incident-reporter.dto"), exports);
29
- __exportStar(require("./dtos/type/create-incident-type.dto"), exports);
30
- __exportStar(require("./dtos/type/update-incident-type.dto"), exports);
31
- __exportStar(require("./dtos/assignment/incident-assignment.dto"), exports);
32
- __exportStar(require("./dtos/assignment/create-incident-assignment.dto"), exports);
33
- __exportStar(require("./dtos/assignment/update-incident-assignment.dto"), exports);
34
- __exportStar(require("./dtos/response-unit-assignment/incident-response-unit-assignment.dto"), exports);
35
- __exportStar(require("./dtos/response-unit-assignment/create-incident-response-unit-assignment.dto"), exports);
36
- __exportStar(require("./dtos/response-unit-assignment/update-incident-response-unit-assignment.dto"), exports);
37
- __exportStar(require("./dtos/reporter/incident-reporter.dto"), exports);
38
- __exportStar(require("./dtos/reporter/create-incident-reporter.dto"), exports);
39
- __exportStar(require("./dtos/reporter/update-incident-reporter.dto"), exports);
2
+ export * from './dtos/action/incident-action.dto';
3
+ export * from './dtos/action/create-incident-action.dto';
4
+ export * from './dtos/action/update-inident-action.dto';
5
+ export * from './dtos/attachment/create-incident-attachment.dto';
6
+ export * from './dtos/attachment/update-incident-attachment.dto';
7
+ export * from './dtos/category/create-incident-category.dto';
8
+ export * from './dtos/category/update-incident-category.dto';
9
+ export * from './dtos/incident/incident.dto';
10
+ export * from './dtos/incident/create-incident.dto';
11
+ export * from './dtos/incident/update-incident.dto';
12
+ export * from './dtos/reporter/incident-reporter.dto';
13
+ export * from './dtos/type/create-incident-type.dto';
14
+ export * from './dtos/type/update-incident-type.dto';
15
+ export * from './dtos/assignment/incident-assignment.dto';
16
+ export * from './dtos/assignment/create-incident-assignment.dto';
17
+ export * from './dtos/assignment/update-incident-assignment.dto';
18
+ export * from './dtos/response-unit-assignment/incident-response-unit-assignment.dto';
19
+ export * from './dtos/response-unit-assignment/create-incident-response-unit-assignment.dto';
20
+ export * from './dtos/response-unit-assignment/update-incident-response-unit-assignment.dto';
21
+ export * from './dtos/reporter/incident-reporter.dto';
22
+ export * from './dtos/reporter/create-incident-reporter.dto';
23
+ export * from './dtos/reporter/update-incident-reporter.dto';
40
24
  //enums
41
- __exportStar(require("./enums/incident-app-id.enum"), exports);
42
- __exportStar(require("./enums/incident-channel.enum"), exports);
43
- __exportStar(require("./enums/incident-class.enum"), exports);
44
- __exportStar(require("./enums/incident-priority.enum"), exports);
45
- __exportStar(require("./enums/incident-status.enum"), exports);
46
- __exportStar(require("./enums/incident-actions.enum"), exports);
47
- __exportStar(require("./enums/incident-workflow-queue-name.enum"), exports);
25
+ export * from './enums/incident-app-id.enum';
26
+ export * from './enums/incident-channel.enum';
27
+ export * from './enums/incident-class.enum';
28
+ export * from './enums/incident-priority.enum';
29
+ export * from './enums/incident-status.enum';
30
+ export * from './enums/incident-actions.enum';
31
+ export * from './enums/incident-workflow-queue-name.enum';
48
32
  //Interfaces
49
- __exportStar(require("./intefaces/incident"), exports);
50
- __exportStar(require("./intefaces/incident-action"), exports);
51
- __exportStar(require("./intefaces/incident-attachment"), exports);
52
- __exportStar(require("./intefaces/incident-category"), exports);
53
- __exportStar(require("./intefaces/incident-reporter"), exports);
54
- __exportStar(require("./intefaces/incident-type"), exports);
55
- __exportStar(require("./intefaces/incident-assignment"), exports);
56
- __exportStar(require("./intefaces/incident-response-unit-assignment"), exports);
33
+ export * from './intefaces/incident';
34
+ export * from './intefaces/incident-action';
35
+ export * from './intefaces/incident-attachment';
36
+ export * from './intefaces/incident-category';
37
+ export * from './intefaces/incident-reporter';
38
+ export * from './intefaces/incident-type';
39
+ export * from './intefaces/incident-assignment';
40
+ export * from './intefaces/incident-response-unit-assignment';
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -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,81 +7,78 @@ 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.CreateOrganizationDto = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const map_address_dto_1 = require("../../common/dtos/map-address.dto");
16
- const org_status_enum_1 = require("../enums/org-status.enum");
17
- const contact_person_dto_1 = require("../../common/dtos/contact-person.dto");
18
- const org_type_enum_1 = require("../enums/org-type.enum");
19
- const incident_1 = require("../../incident");
20
- const organization_sla_dto_1 = require("./organization-sla.dto");
21
- class CreateOrganizationDto {
10
+ import { IsEmail, IsEnum, IsNotEmpty, IsOptional, IsPhoneNumber, IsString, IsUrl, MaxLength, ValidateNested } from "class-validator";
11
+ import { Type } from "class-transformer";
12
+ import { MapAddressDto } from "../../common/dtos/map-address.dto";
13
+ import { OrganizationStatus } from "../enums/org-status.enum";
14
+ import { ContactPersonDto } from "../../common/dtos/contact-person.dto";
15
+ import { OrganizationType } from "../enums/org-type.enum";
16
+ import { IncidentClass } from "../../incident";
17
+ import { OrganizationSLADto } from "./organization-sla.dto";
18
+ export class CreateOrganizationDto {
22
19
  }
23
- exports.CreateOrganizationDto = CreateOrganizationDto;
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
  ], CreateOrganizationDto.prototype, "incidentClass", void 0);
29
25
  __decorate([
30
- (0, class_validator_1.IsString)(),
31
- (0, class_validator_1.IsNotEmpty)(),
32
- (0, class_validator_1.MaxLength)(50),
26
+ IsString(),
27
+ IsNotEmpty(),
28
+ MaxLength(50),
33
29
  __metadata("design:type", String)
34
30
  ], CreateOrganizationDto.prototype, "name", void 0);
35
31
  __decorate([
36
- (0, class_validator_1.IsPhoneNumber)(),
37
- (0, class_validator_1.IsOptional)(),
38
- (0, class_validator_1.MaxLength)(20),
32
+ IsPhoneNumber(),
33
+ IsOptional(),
34
+ MaxLength(20),
39
35
  __metadata("design:type", String)
40
36
  ], CreateOrganizationDto.prototype, "phoneNumber", void 0);
41
37
  __decorate([
42
- (0, class_validator_1.IsEmail)(),
43
- (0, class_validator_1.IsOptional)(),
38
+ IsEmail(),
39
+ IsOptional(),
44
40
  __metadata("design:type", String)
45
41
  ], CreateOrganizationDto.prototype, "email", void 0);
46
42
  __decorate([
47
- (0, class_validator_1.ValidateNested)(),
48
- (0, class_transformer_1.Type)(() => map_address_dto_1.MapAddressDto),
49
- (0, class_validator_1.IsNotEmpty)(),
50
- __metadata("design:type", map_address_dto_1.MapAddressDto)
43
+ ValidateNested(),
44
+ Type(() => MapAddressDto),
45
+ IsNotEmpty(),
46
+ __metadata("design:type", MapAddressDto)
51
47
  ], CreateOrganizationDto.prototype, "physicalAddress", void 0);
52
48
  __decorate([
53
- (0, class_validator_1.IsUrl)({}, { message: 'Invalid URL. Format should be http://example.com' }),
54
- (0, class_validator_1.IsNotEmpty)(),
49
+ IsUrl({}, { message: 'Invalid URL. Format should be http://example.com' }),
50
+ IsNotEmpty(),
55
51
  __metadata("design:type", String)
56
52
  ], CreateOrganizationDto.prototype, "website", void 0);
57
53
  __decorate([
58
- (0, class_validator_1.IsEnum)(org_type_enum_1.OrganizationType),
59
- (0, class_validator_1.IsNotEmpty)(),
54
+ IsEnum(OrganizationType),
55
+ IsNotEmpty(),
60
56
  __metadata("design:type", String)
61
57
  ], CreateOrganizationDto.prototype, "type", void 0);
62
58
  __decorate([
63
- (0, class_validator_1.IsString)(),
64
- (0, class_validator_1.IsOptional)(),
59
+ IsString(),
60
+ IsOptional(),
65
61
  __metadata("design:type", String)
66
62
  ], CreateOrganizationDto.prototype, "description", void 0);
67
63
  __decorate([
68
- (0, class_validator_1.IsEnum)(org_status_enum_1.OrganizationStatus),
69
- (0, class_validator_1.IsOptional)(),
64
+ IsEnum(OrganizationStatus),
65
+ IsOptional(),
70
66
  __metadata("design:type", String)
71
67
  ], CreateOrganizationDto.prototype, "status", void 0);
72
68
  __decorate([
73
- (0, class_validator_1.IsUrl)(),
74
- (0, class_validator_1.IsOptional)(),
69
+ IsUrl(),
70
+ IsOptional(),
75
71
  __metadata("design:type", String)
76
72
  ], CreateOrganizationDto.prototype, "logo", void 0);
77
73
  __decorate([
78
- (0, class_validator_1.ValidateNested)(),
79
- (0, class_transformer_1.Type)(() => contact_person_dto_1.ContactPersonDto),
80
- (0, class_validator_1.IsNotEmpty)(),
81
- __metadata("design:type", contact_person_dto_1.ContactPersonDto)
74
+ ValidateNested(),
75
+ Type(() => ContactPersonDto),
76
+ IsNotEmpty(),
77
+ __metadata("design:type", ContactPersonDto)
82
78
  ], CreateOrganizationDto.prototype, "contactPerson", void 0);
83
79
  __decorate([
84
- (0, class_validator_1.IsOptional)(),
85
- (0, class_validator_1.ValidateNested)(),
86
- (0, class_transformer_1.Type)(() => organization_sla_dto_1.OrganizationSLADto),
87
- __metadata("design:type", organization_sla_dto_1.OrganizationSLADto)
80
+ IsOptional(),
81
+ ValidateNested(),
82
+ Type(() => OrganizationSLADto),
83
+ __metadata("design:type", OrganizationSLADto)
88
84
  ], CreateOrganizationDto.prototype, "sla", 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,34 +7,31 @@ 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.OrganizationSLADto = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class OrganizationSLADto {
10
+ import { IsNotEmpty, IsNumber, IsOptional, IsString } from "class-validator";
11
+ export class OrganizationSLADto {
15
12
  }
16
- exports.OrganizationSLADto = OrganizationSLADto;
17
13
  __decorate([
18
- (0, class_validator_1.IsNumber)(),
19
- (0, class_validator_1.IsOptional)(),
14
+ IsNumber(),
15
+ IsOptional(),
20
16
  __metadata("design:type", Number)
21
17
  ], OrganizationSLADto.prototype, "id", void 0);
22
18
  __decorate([
23
- (0, class_validator_1.IsString)(),
24
- (0, class_validator_1.IsOptional)(),
19
+ IsString(),
20
+ IsOptional(),
25
21
  __metadata("design:type", String)
26
22
  ], OrganizationSLADto.prototype, "acknowledgmentTime", void 0);
27
23
  __decorate([
28
- (0, class_validator_1.IsString)(),
29
- (0, class_validator_1.IsOptional)(),
24
+ IsString(),
25
+ IsOptional(),
30
26
  __metadata("design:type", String)
31
27
  ], OrganizationSLADto.prototype, "resolutionTime", void 0);
32
28
  __decorate([
33
- (0, class_validator_1.IsString)(),
34
- (0, class_validator_1.IsOptional)(),
29
+ IsString(),
30
+ IsOptional(),
35
31
  __metadata("design:type", String)
36
32
  ], OrganizationSLADto.prototype, "closureTime", void 0);
37
33
  __decorate([
38
- (0, class_validator_1.IsString)(),
39
- (0, class_validator_1.IsNotEmpty)(),
34
+ IsString(),
35
+ IsNotEmpty(),
40
36
  __metadata("design:type", Number)
41
37
  ], OrganizationSLADto.prototype, "organizationId", void 0);
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateOrganizationDto = void 0;
4
- const mapped_types_1 = require("@nestjs/mapped-types");
5
- const create_organization_dto_1 = require("./create-organization.dto");
6
- class UpdateOrganizationDto extends (0, mapped_types_1.PartialType)(create_organization_dto_1.CreateOrganizationDto) {
1
+ import { PartialType } from "@nestjs/mapped-types";
2
+ import { CreateOrganizationDto } from "./create-organization.dto";
3
+ export class UpdateOrganizationDto extends PartialType(CreateOrganizationDto) {
7
4
  }
8
- exports.UpdateOrganizationDto = UpdateOrganizationDto;