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,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrganizationStatus = void 0;
|
|
4
|
-
var OrganizationStatus;
|
|
1
|
+
export var OrganizationStatus;
|
|
5
2
|
(function (OrganizationStatus) {
|
|
6
3
|
OrganizationStatus["ACTIVE"] = "Active";
|
|
7
4
|
OrganizationStatus["INACTIVE"] = "Inactive";
|
|
8
5
|
OrganizationStatus["PENDING"] = "Pending";
|
|
9
6
|
OrganizationStatus["SUSPENDED"] = "Suspended";
|
|
10
7
|
OrganizationStatus["REJECTED"] = "Rejected";
|
|
11
|
-
})(OrganizationStatus || (
|
|
8
|
+
})(OrganizationStatus || (OrganizationStatus = {}));
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrganizationType = void 0;
|
|
4
|
-
var OrganizationType;
|
|
1
|
+
export var OrganizationType;
|
|
5
2
|
(function (OrganizationType) {
|
|
6
3
|
OrganizationType["PUBLIC"] = "Public";
|
|
7
4
|
OrganizationType["PRIVATE"] = "Private";
|
|
8
5
|
OrganizationType["NGO"] = "NGO";
|
|
9
6
|
OrganizationType["OTHER"] = "Other";
|
|
10
|
-
})(OrganizationType || (
|
|
7
|
+
})(OrganizationType || (OrganizationType = {}));
|
|
@@ -1,26 +1,10 @@
|
|
|
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
|
-
|
|
2
|
+
export * from './dtos/create-organization.dto';
|
|
3
|
+
export * from './dtos/update-organization.dto';
|
|
4
|
+
export * from './dtos/organization-sla.dto';
|
|
21
5
|
// Interfaces
|
|
22
|
-
|
|
23
|
-
|
|
6
|
+
export * from './interfaces/organization';
|
|
7
|
+
export * from './interfaces/organization-sla';
|
|
24
8
|
// Enums
|
|
25
|
-
|
|
26
|
-
|
|
9
|
+
export * from './enums/org-status.enum';
|
|
10
|
+
export * from './enums/org-type.enum';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,52 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const permission_actions_enum_1 = require("../enums/permission-actions.enum");
|
|
5
|
-
const permissions_moudule_enum_1 = require("../enums/permissions-moudule.enum");
|
|
6
|
-
exports.PERMISSIONS_DATA = [
|
|
1
|
+
import { PermissionActions } from "../enums/permission-actions.enum";
|
|
2
|
+
import { PermissionsModule } from "../enums/permissions-moudule.enum";
|
|
3
|
+
export const PERMISSIONS_DATA = [
|
|
7
4
|
{
|
|
8
|
-
module:
|
|
5
|
+
module: PermissionsModule.ORGANIZATION,
|
|
9
6
|
actions: [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
PermissionActions.CREATE_ORGANIZATION,
|
|
8
|
+
PermissionActions.READ_ORGANIZATION,
|
|
9
|
+
PermissionActions.UPDATE_ORGANIZATION,
|
|
10
|
+
PermissionActions.DELETE_ORGANIZATION
|
|
14
11
|
]
|
|
15
12
|
},
|
|
16
13
|
{
|
|
17
|
-
module:
|
|
14
|
+
module: PermissionsModule.PARTNER,
|
|
18
15
|
actions: [
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
PermissionActions.CREATE_CONTROL_CENTRE,
|
|
17
|
+
PermissionActions.READ_CONTROL_CENTRE,
|
|
18
|
+
PermissionActions.UPDATE_CONTROL_CENTRE,
|
|
19
|
+
PermissionActions.DELETE_CONTROL_CENTRE
|
|
23
20
|
]
|
|
24
21
|
},
|
|
25
22
|
{
|
|
26
|
-
module:
|
|
23
|
+
module: PermissionsModule.USER,
|
|
27
24
|
actions: [
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
PermissionActions.CREATE_USER,
|
|
26
|
+
PermissionActions.READ_USER,
|
|
27
|
+
PermissionActions.UPDATE_USER,
|
|
28
|
+
PermissionActions.DELETE_USER
|
|
32
29
|
]
|
|
33
30
|
},
|
|
34
31
|
{
|
|
35
|
-
module:
|
|
32
|
+
module: PermissionsModule.ROLE,
|
|
36
33
|
actions: [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
PermissionActions.CREATE_ROLE,
|
|
35
|
+
PermissionActions.READ_ROLE,
|
|
36
|
+
PermissionActions.UPDATE_ROLE,
|
|
37
|
+
PermissionActions.DELETE_ROLE
|
|
41
38
|
]
|
|
42
39
|
},
|
|
43
40
|
{
|
|
44
|
-
module:
|
|
41
|
+
module: PermissionsModule.INCIDENT,
|
|
45
42
|
actions: [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
PermissionActions.CREATE_INCIDENT,
|
|
44
|
+
PermissionActions.READ_INCIDENT,
|
|
45
|
+
PermissionActions.UPDATE_INCIDENT,
|
|
46
|
+
PermissionActions.DELETE_INCIDENT
|
|
50
47
|
]
|
|
51
48
|
}
|
|
52
49
|
];
|
|
@@ -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
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class CreatePermissionDto {
|
|
10
|
+
import { IsArray, IsNotEmpty, IsString } from "class-validator";
|
|
11
|
+
export class CreatePermissionDto {
|
|
15
12
|
}
|
|
16
|
-
exports.CreatePermissionDto = CreatePermissionDto;
|
|
17
13
|
__decorate([
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
IsString(),
|
|
15
|
+
IsNotEmpty(),
|
|
20
16
|
__metadata("design:type", String)
|
|
21
17
|
], CreatePermissionDto.prototype, "module", void 0);
|
|
22
18
|
__decorate([
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
IsArray(),
|
|
20
|
+
IsString({ each: true }),
|
|
21
|
+
IsNotEmpty(),
|
|
26
22
|
__metadata("design:type", Array)
|
|
27
23
|
], CreatePermissionDto.prototype, "actions", void 0);
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
-
const create_permission_dto_1 = require("./create-permission.dto");
|
|
6
|
-
class UpdatePermissionDto extends (0, mapped_types_1.PartialType)(create_permission_dto_1.CreatePermissionDto) {
|
|
1
|
+
import { PartialType } from "@nestjs/mapped-types";
|
|
2
|
+
import { CreatePermissionDto } from "./create-permission.dto";
|
|
3
|
+
export class UpdatePermissionDto extends PartialType(CreatePermissionDto) {
|
|
7
4
|
}
|
|
8
|
-
exports.UpdatePermissionDto = UpdatePermissionDto;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PermissionActions = void 0;
|
|
4
|
-
var PermissionActions;
|
|
1
|
+
export var PermissionActions;
|
|
5
2
|
(function (PermissionActions) {
|
|
6
3
|
// Module: Organization
|
|
7
4
|
PermissionActions["CREATE_ORGANIZATION"] = "create:organization";
|
|
@@ -28,4 +25,4 @@ var PermissionActions;
|
|
|
28
25
|
PermissionActions["READ_INCIDENT"] = "read:incident";
|
|
29
26
|
PermissionActions["UPDATE_INCIDENT"] = "update:incident";
|
|
30
27
|
PermissionActions["DELETE_INCIDENT"] = "delete:incident";
|
|
31
|
-
})(PermissionActions || (
|
|
28
|
+
})(PermissionActions || (PermissionActions = {}));
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PermissionsModule = void 0;
|
|
4
|
-
var PermissionsModule;
|
|
1
|
+
export var PermissionsModule;
|
|
5
2
|
(function (PermissionsModule) {
|
|
6
3
|
PermissionsModule["ORGANIZATION"] = "Organization";
|
|
7
4
|
PermissionsModule["PARTNER"] = "Partner";
|
|
8
5
|
PermissionsModule["USER"] = "User";
|
|
9
6
|
PermissionsModule["ROLE"] = "Role";
|
|
10
7
|
PermissionsModule["INCIDENT"] = "Grievance";
|
|
11
|
-
})(PermissionsModule || (
|
|
8
|
+
})(PermissionsModule || (PermissionsModule = {}));
|
|
@@ -1,23 +1,7 @@
|
|
|
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
|
//Permission
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
export * from './data/permissions.data';
|
|
3
|
+
export * from './dtos/create-permission.dto';
|
|
4
|
+
export * from './dtos/update-permission.dto';
|
|
5
|
+
export * from './enums/permission-actions.enum';
|
|
6
|
+
export * from './enums/permissions-moudule.enum';
|
|
7
|
+
export * from './interfaces/permission';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
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,43 +7,40 @@ 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
|
-
const person_unit_status_enum_1 = require("../../enums/person-unit/person-unit-status.enum");
|
|
18
|
-
class BasePersonUnitDto extends base_response_unit_dto_1.BaseResponseUnitDto {
|
|
10
|
+
import { IsEmail, IsEnum, IsOptional, IsString } from "class-validator";
|
|
11
|
+
import { ResponseUnitType } from "../../enums/response-unit/response-unit-type.enum";
|
|
12
|
+
import { BaseResponseUnitDto } from "../response-unit/base-response-unit.dto";
|
|
13
|
+
import { PersonUnitCategory } from "../../enums/person-unit/person-unit-category.enum";
|
|
14
|
+
import { PersonUnitStatus } from "../../enums/person-unit/person-unit-status.enum";
|
|
15
|
+
export class BasePersonUnitDto extends BaseResponseUnitDto {
|
|
19
16
|
constructor() {
|
|
20
17
|
super();
|
|
21
|
-
this.type =
|
|
18
|
+
this.type = ResponseUnitType.PERSON_UNIT;
|
|
22
19
|
}
|
|
23
20
|
}
|
|
24
|
-
exports.BasePersonUnitDto = BasePersonUnitDto;
|
|
25
21
|
__decorate([
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
IsEmail(),
|
|
23
|
+
IsOptional(),
|
|
28
24
|
__metadata("design:type", String)
|
|
29
25
|
], BasePersonUnitDto.prototype, "email", void 0);
|
|
30
26
|
__decorate([
|
|
31
|
-
|
|
27
|
+
IsString(),
|
|
32
28
|
__metadata("design:type", String)
|
|
33
29
|
], BasePersonUnitDto.prototype, "phoneNumber", void 0);
|
|
34
30
|
__decorate([
|
|
35
|
-
|
|
31
|
+
IsEnum(PersonUnitCategory),
|
|
36
32
|
__metadata("design:type", String)
|
|
37
33
|
], BasePersonUnitDto.prototype, "category", void 0);
|
|
38
34
|
__decorate([
|
|
39
|
-
|
|
35
|
+
IsString(),
|
|
40
36
|
__metadata("design:type", String)
|
|
41
37
|
], BasePersonUnitDto.prototype, "designation", void 0);
|
|
42
38
|
__decorate([
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
IsEnum(PersonUnitStatus),
|
|
40
|
+
IsOptional(),
|
|
45
41
|
__metadata("design:type", String)
|
|
46
42
|
], BasePersonUnitDto.prototype, "personStatus", void 0);
|
|
47
43
|
__decorate([
|
|
48
|
-
|
|
44
|
+
IsOptional(),
|
|
49
45
|
__metadata("design:type", Object)
|
|
50
46
|
], BasePersonUnitDto.prototype, "attributes", void 0);
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
-
const base_person_unit_dto_1 = require("./base-person-unit.dto");
|
|
6
|
-
class CreatePersonUnitDto extends (0, mapped_types_1.OmitType)(base_person_unit_dto_1.BasePersonUnitDto, ['id', 'createdAt', 'updatedAt']) {
|
|
1
|
+
import { OmitType } from '@nestjs/mapped-types';
|
|
2
|
+
import { BasePersonUnitDto } from './base-person-unit.dto';
|
|
3
|
+
export class CreatePersonUnitDto extends OmitType(BasePersonUnitDto, ['id', 'createdAt', 'updatedAt']) {
|
|
7
4
|
}
|
|
8
|
-
exports.CreatePersonUnitDto = CreatePersonUnitDto;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.PersonUnitDto = void 0;
|
|
4
|
-
const base_person_unit_dto_1 = require("./base-person-unit.dto");
|
|
5
|
-
class PersonUnitDto extends base_person_unit_dto_1.BasePersonUnitDto {
|
|
1
|
+
import { BasePersonUnitDto } from './base-person-unit.dto';
|
|
2
|
+
export class PersonUnitDto extends BasePersonUnitDto {
|
|
6
3
|
}
|
|
7
|
-
exports.PersonUnitDto = PersonUnitDto;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
-
const create_person_unit_dto_1 = require("./create-person-unit.dto");
|
|
6
|
-
class UpdatePersonUnitDto extends (0, mapped_types_1.PartialType)(create_person_unit_dto_1.CreatePersonUnitDto) {
|
|
1
|
+
import { PartialType } from '@nestjs/mapped-types';
|
|
2
|
+
import { CreatePersonUnitDto } from './create-person-unit.dto';
|
|
3
|
+
export class UpdatePersonUnitDto extends PartialType(CreatePersonUnitDto) {
|
|
7
4
|
}
|
|
8
|
-
exports.UpdatePersonUnitDto = UpdatePersonUnitDto;
|
|
@@ -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,63 +7,60 @@ 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
|
-
const station_dto_1 = require("./station.dto");
|
|
18
|
-
class BaseResponseUnitDto {
|
|
10
|
+
import { IsBoolean, IsDate, IsEnum, IsNumber, IsOptional, IsString, ValidateNested } from "class-validator";
|
|
11
|
+
import { ResponseUnitType } from "../../enums/response-unit/response-unit-type.enum";
|
|
12
|
+
import { MapLocationDto } from "../../../common";
|
|
13
|
+
import { Type } from "class-transformer";
|
|
14
|
+
import { StationDto } from "./station.dto";
|
|
15
|
+
export class BaseResponseUnitDto {
|
|
19
16
|
}
|
|
20
|
-
exports.BaseResponseUnitDto = BaseResponseUnitDto;
|
|
21
17
|
__decorate([
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
IsNumber(),
|
|
19
|
+
IsOptional(),
|
|
24
20
|
__metadata("design:type", Number)
|
|
25
21
|
], BaseResponseUnitDto.prototype, "id", void 0);
|
|
26
22
|
__decorate([
|
|
27
|
-
|
|
23
|
+
IsString(),
|
|
28
24
|
__metadata("design:type", String)
|
|
29
25
|
], BaseResponseUnitDto.prototype, "name", void 0);
|
|
30
26
|
__decorate([
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
IsString(),
|
|
28
|
+
IsOptional(),
|
|
33
29
|
__metadata("design:type", String)
|
|
34
30
|
], BaseResponseUnitDto.prototype, "description", void 0);
|
|
35
31
|
__decorate([
|
|
36
|
-
|
|
32
|
+
IsEnum(ResponseUnitType),
|
|
37
33
|
__metadata("design:type", String)
|
|
38
34
|
], BaseResponseUnitDto.prototype, "type", void 0);
|
|
39
35
|
__decorate([
|
|
40
|
-
|
|
36
|
+
IsBoolean(),
|
|
41
37
|
__metadata("design:type", Boolean)
|
|
42
38
|
], BaseResponseUnitDto.prototype, "isActive", void 0);
|
|
43
39
|
__decorate([
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
__metadata("design:type",
|
|
40
|
+
ValidateNested(),
|
|
41
|
+
Type(() => MapLocationDto),
|
|
42
|
+
__metadata("design:type", MapLocationDto)
|
|
47
43
|
], BaseResponseUnitDto.prototype, "location", void 0);
|
|
48
44
|
__decorate([
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
__metadata("design:type",
|
|
45
|
+
ValidateNested(),
|
|
46
|
+
Type(() => StationDto),
|
|
47
|
+
__metadata("design:type", StationDto)
|
|
52
48
|
], BaseResponseUnitDto.prototype, "station", void 0);
|
|
53
49
|
__decorate([
|
|
54
|
-
|
|
50
|
+
IsNumber(),
|
|
55
51
|
__metadata("design:type", Number)
|
|
56
52
|
], BaseResponseUnitDto.prototype, "controlCenterId", void 0);
|
|
57
53
|
__decorate([
|
|
58
|
-
|
|
54
|
+
IsNumber(),
|
|
59
55
|
__metadata("design:type", Number)
|
|
60
56
|
], BaseResponseUnitDto.prototype, "organizationId", void 0);
|
|
61
57
|
__decorate([
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
IsDate(),
|
|
59
|
+
IsOptional(),
|
|
64
60
|
__metadata("design:type", Date)
|
|
65
61
|
], BaseResponseUnitDto.prototype, "createdAt", void 0);
|
|
66
62
|
__decorate([
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
IsDate(),
|
|
64
|
+
IsOptional(),
|
|
69
65
|
__metadata("design:type", Date)
|
|
70
66
|
], BaseResponseUnitDto.prototype, "updatedAt", void 0);
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
-
const base_response_unit_dto_1 = require("./base-response-unit.dto");
|
|
6
|
-
class CreateResponseUnitDto extends (0, mapped_types_1.OmitType)(base_response_unit_dto_1.BaseResponseUnitDto, ['id', 'createdAt', 'updatedAt']) {
|
|
1
|
+
import { OmitType } from '@nestjs/mapped-types';
|
|
2
|
+
import { BaseResponseUnitDto } from './base-response-unit.dto';
|
|
3
|
+
export class CreateResponseUnitDto extends OmitType(BaseResponseUnitDto, ['id', 'createdAt', 'updatedAt']) {
|
|
7
4
|
}
|
|
8
|
-
exports.CreateResponseUnitDto = CreateResponseUnitDto;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ResponseUnitDto = void 0;
|
|
4
|
-
const base_response_unit_dto_1 = require("./base-response-unit.dto");
|
|
5
|
-
class ResponseUnitDto extends base_response_unit_dto_1.BaseResponseUnitDto {
|
|
1
|
+
import { BaseResponseUnitDto } from './base-response-unit.dto';
|
|
2
|
+
export class ResponseUnitDto extends BaseResponseUnitDto {
|
|
6
3
|
}
|
|
7
|
-
exports.ResponseUnitDto = ResponseUnitDto;
|
|
@@ -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
|
-
|
|
15
|
-
const common_1 = require("../../../common");
|
|
16
|
-
class StationDto {
|
|
10
|
+
import { Type } from "class-transformer";
|
|
11
|
+
import { IsString, ValidateNested } from "class-validator";
|
|
12
|
+
import { MapAddressDto } from "../../../common";
|
|
13
|
+
export class StationDto {
|
|
17
14
|
}
|
|
18
|
-
exports.StationDto = StationDto;
|
|
19
15
|
__decorate([
|
|
20
|
-
|
|
16
|
+
IsString(),
|
|
21
17
|
__metadata("design:type", String)
|
|
22
18
|
], StationDto.prototype, "name", void 0);
|
|
23
19
|
__decorate([
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
__metadata("design:type",
|
|
20
|
+
ValidateNested(),
|
|
21
|
+
Type(() => MapAddressDto),
|
|
22
|
+
__metadata("design:type", MapAddressDto)
|
|
27
23
|
], StationDto.prototype, "address", void 0);
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
-
const create_response_unit_dto_1 = require("./create-response-unit.dto");
|
|
6
|
-
class UpdateResponseUnitDto extends (0, mapped_types_1.PartialType)(create_response_unit_dto_1.CreateResponseUnitDto) {
|
|
1
|
+
import { PartialType } from '@nestjs/mapped-types';
|
|
2
|
+
import { CreateResponseUnitDto } from './create-response-unit.dto';
|
|
3
|
+
export class UpdateResponseUnitDto extends PartialType(CreateResponseUnitDto) {
|
|
7
4
|
}
|
|
8
|
-
exports.UpdateResponseUnitDto = UpdateResponseUnitDto;
|
|
@@ -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,29 +7,26 @@ 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
|
-
const base_response_unit_dto_1 = require("../response-unit/base-response-unit.dto");
|
|
17
|
-
class BaseTeamUnitDto extends base_response_unit_dto_1.BaseResponseUnitDto {
|
|
10
|
+
import { IsArray, IsEnum, IsNumber, IsOptional } from "class-validator";
|
|
11
|
+
import { PersonUnitStatus } from "../../enums/person-unit/person-unit-status.enum";
|
|
12
|
+
import { ResponseUnitType } from "../../enums/response-unit/response-unit-type.enum";
|
|
13
|
+
import { BaseResponseUnitDto } from "../response-unit/base-response-unit.dto";
|
|
14
|
+
export class BaseTeamUnitDto extends BaseResponseUnitDto {
|
|
18
15
|
constructor() {
|
|
19
16
|
super();
|
|
20
|
-
this.type =
|
|
17
|
+
this.type = ResponseUnitType.TEAM_UNIT;
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
|
-
exports.BaseTeamUnitDto = BaseTeamUnitDto;
|
|
24
20
|
__decorate([
|
|
25
|
-
|
|
21
|
+
IsEnum(PersonUnitStatus),
|
|
26
22
|
__metadata("design:type", String)
|
|
27
23
|
], BaseTeamUnitDto.prototype, "teamStatus", void 0);
|
|
28
24
|
__decorate([
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
IsArray(),
|
|
26
|
+
IsNumber({}, { each: true }),
|
|
31
27
|
__metadata("design:type", Array)
|
|
32
28
|
], BaseTeamUnitDto.prototype, "crewIds", void 0);
|
|
33
29
|
__decorate([
|
|
34
|
-
|
|
30
|
+
IsOptional(),
|
|
35
31
|
__metadata("design:type", Object)
|
|
36
32
|
], BaseTeamUnitDto.prototype, "attributes", void 0);
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
-
const base_team_unit_dto_1 = require("./base-team-unit.dto");
|
|
6
|
-
class CreateTeamUnitDto extends (0, mapped_types_1.OmitType)(base_team_unit_dto_1.BaseTeamUnitDto, ['id', 'createdAt', 'updatedAt']) {
|
|
1
|
+
import { OmitType } from '@nestjs/mapped-types';
|
|
2
|
+
import { BaseTeamUnitDto } from './base-team-unit.dto';
|
|
3
|
+
export class CreateTeamUnitDto extends OmitType(BaseTeamUnitDto, ['id', 'createdAt', 'updatedAt']) {
|
|
7
4
|
}
|
|
8
|
-
exports.CreateTeamUnitDto = CreateTeamUnitDto;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
-
const team_unit_crew_dto_1 = require("./team-unit-crew.dto");
|
|
6
|
-
class CreateTeamUnitCrewDto extends (0, mapped_types_1.OmitType)(team_unit_crew_dto_1.TeamUnitCrewDto, ['id', 'createdAt', 'updatedAt']) {
|
|
1
|
+
import { OmitType } from "@nestjs/mapped-types";
|
|
2
|
+
import { TeamUnitCrewDto } from "./team-unit-crew.dto";
|
|
3
|
+
export class CreateTeamUnitCrewDto extends OmitType(TeamUnitCrewDto, ['id', 'createdAt', 'updatedAt']) {
|
|
7
4
|
}
|
|
8
|
-
exports.CreateTeamUnitCrewDto = CreateTeamUnitCrewDto;
|