grm-shared-library 1.0.208 → 1.0.210
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/kafka/client-ids.d.ts +0 -2
- package/dist/kafka/client-ids.js +1 -3
- package/dist/kafka/dtos/user-registered-payload.dto.d.ts +1 -2
- package/dist/kafka/dtos/user-registered-payload.dto.js +1 -6
- package/dist/kafka/interfaces/otp-payload.d.ts +4 -6
- package/dist/kafka/topics.d.ts +1 -1
- package/dist/kafka/topics.js +1 -1
- package/package.json +1 -1
- package/dist/kafka/interfaces/password-reset-payload.d.ts +0 -7
- package/dist/kafka/interfaces/password-reset-payload.js +0 -2
- package/dist/kafka/interfaces/user-created-payload.d.ts +0 -13
- package/dist/kafka/interfaces/user-created-payload.js +0 -2
- package/dist/kafka/interfaces/user-registered-payload.d.ts +0 -9
- package/dist/kafka/interfaces/user-registered-payload.js +0 -2
- package/dist/kafka/topics/index.d.ts +0 -13
- package/dist/kafka/topics/index.js +0 -20
- package/dist/kafka/topics/topics.d.ts +0 -13
- package/dist/kafka/topics/topics.js +0 -20
- package/dist/modules/auth/dtos/set-password.dto.d.ts +0 -4
- package/dist/modules/auth/dtos/set-password.dto.js +0 -33
- package/dist/modules/common/constants/service_names.const.d.ts +0 -8
- package/dist/modules/common/constants/service_names.const.js +0 -11
- package/dist/modules/organization/dtos/contact-person.dto.d.ts +0 -6
- package/dist/modules/organization/dtos/contact-person.dto.js +0 -38
- package/dist/modules/organization/interfaces/partner.d.ts +0 -17
- package/dist/modules/organization/interfaces/partner.js +0 -2
- package/dist/modules/partner/dtos/create-partner.dto.d.ts +0 -16
- package/dist/modules/partner/dtos/create-partner.dto.js +0 -85
- package/dist/modules/partner/dtos/update-partner.dto.d.ts +0 -5
- package/dist/modules/partner/dtos/update-partner.dto.js +0 -8
- package/dist/modules/partner/enums/partner-status.enum.d.ts +0 -7
- package/dist/modules/partner/enums/partner-status.enum.js +0 -11
- package/dist/modules/partner/index.d.ts +0 -4
- package/dist/modules/partner/index.js +0 -20
- package/dist/modules/partner/interfaces/partner.d.ts +0 -20
- package/dist/modules/partner/interfaces/partner.js +0 -2
- package/dist/modules/response-unit/enums/ambulance-vehicle-type.enum.d.ts +0 -8
- package/dist/modules/response-unit/enums/ambulance-vehicle-type.enum.js +0 -12
- package/dist/modules/response-unit/enums/fire-vehicle-type.enum.d.ts +0 -8
- package/dist/modules/response-unit/enums/fire-vehicle-type.enum.js +0 -12
- package/dist/modules/response-unit/enums/person-unit-category.enum.d.ts +0 -10
- package/dist/modules/response-unit/enums/person-unit-category.enum.js +0 -14
- package/dist/modules/response-unit/enums/person-unit-status.enum.d.ts +0 -7
- package/dist/modules/response-unit/enums/person-unit-status.enum.js +0 -11
- package/dist/modules/response-unit/enums/response-unit-type.enum.d.ts +0 -5
- package/dist/modules/response-unit/enums/response-unit-type.enum.js +0 -9
- package/dist/modules/response-unit/enums/road-rescue-vehicle-type.enum.d.ts +0 -6
- package/dist/modules/response-unit/enums/road-rescue-vehicle-type.enum.js +0 -10
- package/dist/modules/response-unit/enums/security-vehicle-type.enum.d.ts +0 -7
- package/dist/modules/response-unit/enums/security-vehicle-type.enum.js +0 -11
- package/dist/modules/response-unit/enums/vehicle-unit-ownership.enum.d.ts +0 -7
- package/dist/modules/response-unit/enums/vehicle-unit-ownership.enum.js +0 -11
- package/dist/modules/response-unit/enums/vehicle-unit-status.enum.d.ts +0 -5
- package/dist/modules/response-unit/enums/vehicle-unit-status.enum.js +0 -9
- package/dist/modules/response-unit/enums/vehicle-unit-type.enum.d.ts +0 -6
- package/dist/modules/response-unit/enums/vehicle-unit-type.enum.js +0 -10
- package/dist/modules/response-unit/interfaces/ambulance-vehicle.d.ts +0 -5
- package/dist/modules/response-unit/interfaces/ambulance-vehicle.js +0 -2
- package/dist/modules/response-unit/interfaces/fire-vehicle.d.ts +0 -5
- package/dist/modules/response-unit/interfaces/fire-vehicle.js +0 -2
- package/dist/modules/response-unit/interfaces/person-unit.d.ts +0 -11
- package/dist/modules/response-unit/interfaces/person-unit.js +0 -2
- package/dist/modules/response-unit/interfaces/response-unit.d.ts +0 -16
- package/dist/modules/response-unit/interfaces/response-unit.js +0 -2
- package/dist/modules/response-unit/interfaces/road-rescue-vehicle.d.ts +0 -5
- package/dist/modules/response-unit/interfaces/road-rescue-vehicle.js +0 -2
- package/dist/modules/response-unit/interfaces/security-vehicle.d.ts +0 -5
- package/dist/modules/response-unit/interfaces/security-vehicle.js +0 -2
- package/dist/modules/response-unit/interfaces/team-unit.d.ts +0 -7
- package/dist/modules/response-unit/interfaces/team-unit.js +0 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit-crew.d.ts +0 -8
- package/dist/modules/response-unit/interfaces/vehicle-unit-crew.js +0 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit-device.d.ts +0 -15
- package/dist/modules/response-unit/interfaces/vehicle-unit-device.js +0 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit.d.ts +0 -22
- package/dist/modules/response-unit/interfaces/vehicle-unit.js +0 -2
- package/dist/modules/role/data/permissions.data.d.ts +0 -2
- package/dist/modules/role/data/permissions.data.js +0 -52
- package/dist/modules/role/dtos/create-permission.dto.d.ts +0 -4
- package/dist/modules/role/dtos/create-permission.dto.js +0 -27
- package/dist/modules/role/dtos/update-permission.dto.d.ts +0 -5
- package/dist/modules/role/dtos/update-permission.dto.js +0 -8
- package/dist/modules/role/dtos/update-role.dto.d.ts +0 -5
- package/dist/modules/role/dtos/update-role.dto.js +0 -8
- package/dist/modules/role/enums/permission-actions.enum.d.ts +0 -22
- package/dist/modules/role/enums/permission-actions.enum.js +0 -31
- package/dist/modules/role/enums/permissions-moudule.enum.d.ts +0 -7
- package/dist/modules/role/enums/permissions-moudule.enum.js +0 -11
- package/dist/modules/role/interfaces/permission.d.ts +0 -4
- package/dist/modules/role/interfaces/permission.js +0 -2
- package/dist/modules/role/permission/data/permissions.data.d.ts +0 -2
- package/dist/modules/role/permission/data/permissions.data.js +0 -52
- package/dist/modules/role/permission/dtos/create-permission.dto.d.ts +0 -4
- package/dist/modules/role/permission/dtos/create-permission.dto.js +0 -27
- package/dist/modules/role/permission/dtos/update-permission.dto.d.ts +0 -5
- package/dist/modules/role/permission/dtos/update-permission.dto.js +0 -8
- package/dist/modules/role/permission/enums/permission-actions.enum.d.ts +0 -22
- package/dist/modules/role/permission/enums/permission-actions.enum.js +0 -31
- package/dist/modules/role/permission/enums/permissions-moudule.enum.d.ts +0 -7
- package/dist/modules/role/permission/enums/permissions-moudule.enum.js +0 -11
- package/dist/modules/role/permission/interfaces/permission.d.ts +0 -5
- package/dist/modules/role/permission/interfaces/permission.js +0 -2
- package/dist/modules/user/dtos/user-response.dto.d.ts +0 -18
- package/dist/modules/user/dtos/user-response.dto.js +0 -76
- package/dist/modules/user/enums/user-role.enum.d.ts +0 -4
- package/dist/modules/user/enums/user-role.enum.js +0 -8
- package/dist/modules/workflow/interfaces/workflow-info.d.ts +0 -25
- package/dist/modules/workflow/interfaces/workflow-info.js +0 -2
- package/dist/modules/workflow/interfaces/workflow-resolution-expiration-info.d.ts +0 -16
- package/dist/modules/workflow/interfaces/workflow-resolution-expiration-info.js +0 -2
- package/dist/modules/workflow/interfaces/workflow-resolution-info.d.ts +0 -25
- package/dist/modules/workflow/interfaces/workflow-resolution-info.js +0 -2
package/dist/kafka/client-ids.js
CHANGED
|
@@ -5,7 +5,5 @@ exports.CLIENT_IDS = {
|
|
|
5
5
|
API_GATEWAY: 'api-gateway',
|
|
6
6
|
AUTH_SERVICE: 'auth-service',
|
|
7
7
|
ORGANIZATION_SERVICE: 'organization-service',
|
|
8
|
-
EMAIL_SERVICE: 'email-service'
|
|
9
|
-
INCIDENT_SERVICE: 'incident-service',
|
|
10
|
-
NOTIFICATION_SERVICE: 'notification-service',
|
|
8
|
+
EMAIL_SERVICE: 'email-service'
|
|
11
9
|
};
|
|
@@ -23,12 +23,7 @@ __decorate([
|
|
|
23
23
|
(0, class_validator_1.IsString)(),
|
|
24
24
|
(0, class_validator_1.IsNotEmpty)(),
|
|
25
25
|
__metadata("design:type", String)
|
|
26
|
-
], UserRegisteredPayloadDto.prototype, "
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsString)(),
|
|
29
|
-
(0, class_validator_1.IsOptional)(),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], UserRegisteredPayloadDto.prototype, "lastName", void 0);
|
|
26
|
+
], UserRegisteredPayloadDto.prototype, "name", void 0);
|
|
32
27
|
__decorate([
|
|
33
28
|
(0, class_validator_1.IsEmail)(),
|
|
34
29
|
(0, class_validator_1.IsNotEmpty)(),
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
export interface OTPPayload {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
email: string;
|
|
5
|
-
phoneNumber: string;
|
|
6
|
-
verificationToken: string;
|
|
7
|
-
verificationTokenExpiresAt: Date;
|
|
2
|
+
userId: number;
|
|
3
|
+
token: string;
|
|
8
4
|
otp: string;
|
|
9
5
|
otpExpiresAt: Date;
|
|
6
|
+
email: string;
|
|
7
|
+
phoneNumber: string;
|
|
10
8
|
attributes: Record<string, any>;
|
|
11
9
|
}
|
package/dist/kafka/topics.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const KAFKA_TOPICS: {
|
|
|
10
10
|
ORG_DELETED: string;
|
|
11
11
|
OTP_VARIFIED: string;
|
|
12
12
|
OTP_REQUESTED: string;
|
|
13
|
-
|
|
13
|
+
PASSWORD_RESET: string;
|
|
14
14
|
INCIDENT_CREATED: string;
|
|
15
15
|
INCIDENT_UPDATED: string;
|
|
16
16
|
INCIDENT_STATUS_CHANGED: string;
|
package/dist/kafka/topics.js
CHANGED
|
@@ -18,7 +18,7 @@ exports.KAFKA_TOPICS = {
|
|
|
18
18
|
OTP_VARIFIED: 'otp.validated',
|
|
19
19
|
OTP_REQUESTED: 'otp.requested',
|
|
20
20
|
// Password
|
|
21
|
-
|
|
21
|
+
PASSWORD_RESET: 'password.reset',
|
|
22
22
|
// Incident
|
|
23
23
|
INCIDENT_CREATED: 'incident.created',
|
|
24
24
|
INCIDENT_UPDATED: 'incident.updated',
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface UserCreatedPayload {
|
|
2
|
-
id: number;
|
|
3
|
-
firstName: string;
|
|
4
|
-
lastName: string;
|
|
5
|
-
email: string;
|
|
6
|
-
phoneNumber: string;
|
|
7
|
-
roles: string[];
|
|
8
|
-
otp: string;
|
|
9
|
-
otpExpiresAt: Date;
|
|
10
|
-
verificationToken: string;
|
|
11
|
-
createdAt: Date;
|
|
12
|
-
attributes: Record<string, any>;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const KAFKA_TOPICS: {
|
|
2
|
-
USER_REGISTERED: string;
|
|
3
|
-
USER_LOGGED_IN: string;
|
|
4
|
-
USER_LOGGED_OUT: string;
|
|
5
|
-
USER_CREATED: string;
|
|
6
|
-
USER_UPDATED: string;
|
|
7
|
-
USER_DELETED: string;
|
|
8
|
-
ORG_CREATED: string;
|
|
9
|
-
ORG_UPDATED: string;
|
|
10
|
-
ORG_DELETED: string;
|
|
11
|
-
OTP_VALIDATED: string;
|
|
12
|
-
OTP_REQUESTED: string;
|
|
13
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.KAFKA_TOPICS = void 0;
|
|
4
|
-
exports.KAFKA_TOPICS = {
|
|
5
|
-
// Auth
|
|
6
|
-
USER_REGISTERED: 'user.registered',
|
|
7
|
-
USER_LOGGED_IN: 'user.logged.in',
|
|
8
|
-
USER_LOGGED_OUT: 'user.logged.out',
|
|
9
|
-
// User
|
|
10
|
-
USER_CREATED: 'user.created',
|
|
11
|
-
USER_UPDATED: 'user.updated',
|
|
12
|
-
USER_DELETED: 'user.deleted',
|
|
13
|
-
// Org
|
|
14
|
-
ORG_CREATED: 'org.created',
|
|
15
|
-
ORG_UPDATED: 'org.updated',
|
|
16
|
-
ORG_DELETED: 'org.deleted',
|
|
17
|
-
// OTP
|
|
18
|
-
OTP_VALIDATED: 'otp.validated',
|
|
19
|
-
OTP_REQUESTED: 'otp.requested'
|
|
20
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const KAFKA_TOPICS: {
|
|
2
|
-
USER_REGISTERED: string;
|
|
3
|
-
USER_LOGGED_IN: string;
|
|
4
|
-
USER_LOGGED_OUT: string;
|
|
5
|
-
USER_CREATED: string;
|
|
6
|
-
USER_UPDATED: string;
|
|
7
|
-
USER_DELETED: string;
|
|
8
|
-
ORG_CREATED: string;
|
|
9
|
-
ORG_UPDATED: string;
|
|
10
|
-
ORG_DELETED: string;
|
|
11
|
-
OTP_VALIDATED: string;
|
|
12
|
-
OTP_REQUESTED: string;
|
|
13
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.KAFKA_TOPICS = void 0;
|
|
4
|
-
exports.KAFKA_TOPICS = {
|
|
5
|
-
// Auth
|
|
6
|
-
USER_REGISTERED: 'user.registered',
|
|
7
|
-
USER_LOGGED_IN: 'user.logged.in',
|
|
8
|
-
USER_LOGGED_OUT: 'user.logged.out',
|
|
9
|
-
// User
|
|
10
|
-
USER_CREATED: 'user.created',
|
|
11
|
-
USER_UPDATED: 'user.updated',
|
|
12
|
-
USER_DELETED: 'user.deleted',
|
|
13
|
-
// Org
|
|
14
|
-
ORG_CREATED: 'org.created',
|
|
15
|
-
ORG_UPDATED: 'org.updated',
|
|
16
|
-
ORG_DELETED: 'org.deleted',
|
|
17
|
-
// OTP
|
|
18
|
-
OTP_VALIDATED: 'otp.validated',
|
|
19
|
-
OTP_REQUESTED: 'otp.requested'
|
|
20
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.SetPasswordDto = 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 SetPasswordDto {
|
|
17
|
-
}
|
|
18
|
-
exports.SetPasswordDto = SetPasswordDto;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, class_validator_1.IsString)(),
|
|
21
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
-
(0, class_validator_1.MinLength)(8),
|
|
23
|
-
(0, class_validator_1.Matches)(password_regex_const_1.PASSWORD_REGEX, { message: password_regex_const_1.PASSWORD_ERROR_MESSAGE }),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], SetPasswordDto.prototype, "password", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, class_validator_1.IsString)(),
|
|
28
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
-
(0, class_validator_1.MinLength)(8),
|
|
30
|
-
(0, class_validator_1.Matches)(password_regex_const_1.PASSWORD_REGEX, { message: password_regex_const_1.PASSWORD_ERROR_MESSAGE }),
|
|
31
|
-
(0, match_decorator_1.Match)('password', { message: 'Passwords do not match' }),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], SetPasswordDto.prototype, "confirmPassword", void 0);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SERVICE_NAMES = void 0;
|
|
4
|
-
exports.SERVICE_NAMES = {
|
|
5
|
-
API_GATEWAY: 'api-gateway',
|
|
6
|
-
AUTH_SERVICE: 'auth-service',
|
|
7
|
-
ORGANIZATION_SERVICE: 'organization-service',
|
|
8
|
-
EMAIL_SERVICE: 'email-service',
|
|
9
|
-
INCIDENT_SERVICE: 'incident-service',
|
|
10
|
-
NOTIFICATION_SERVICE: 'notification-service',
|
|
11
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ContactPersonDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const case_decorators_1 = require("../../../decorators/case-decorators");
|
|
15
|
-
class ContactPersonDto {
|
|
16
|
-
}
|
|
17
|
-
exports.ContactPersonDto = ContactPersonDto;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, class_validator_1.IsString)(),
|
|
20
|
-
(0, case_decorators_1.SentenceCase)(),
|
|
21
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], ContactPersonDto.prototype, "name", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, class_validator_1.IsPhoneNumber)(),
|
|
26
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], ContactPersonDto.prototype, "phoneNumber", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsEmail)(),
|
|
31
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], ContactPersonDto.prototype, "email", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, class_validator_1.IsString)(),
|
|
36
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], ContactPersonDto.prototype, "designation", void 0);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { MapAddressDto } from "../../common";
|
|
2
|
-
import { Organization } from "./organization";
|
|
3
|
-
export interface Partner {
|
|
4
|
-
id?: number;
|
|
5
|
-
name: string;
|
|
6
|
-
phoneNumber?: string;
|
|
7
|
-
email?: string;
|
|
8
|
-
physicalAddress: MapAddressDto;
|
|
9
|
-
website: string;
|
|
10
|
-
type: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
status: string;
|
|
13
|
-
logo?: string;
|
|
14
|
-
organization: Organization;
|
|
15
|
-
createdAt?: Date;
|
|
16
|
-
updatedAt?: Date;
|
|
17
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { MapAddressDto } from "../../common/dtos/map-address.dto";
|
|
2
|
-
import { ContactPersonDto } from "../../common/dtos/contact-person.dto";
|
|
3
|
-
export declare class CreatePartnerDto {
|
|
4
|
-
organizationId: number;
|
|
5
|
-
name: string;
|
|
6
|
-
phoneNumber?: string;
|
|
7
|
-
email?: string;
|
|
8
|
-
physicalAddress: MapAddressDto;
|
|
9
|
-
website: string;
|
|
10
|
-
type: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
status: string;
|
|
13
|
-
logo?: string;
|
|
14
|
-
contactPerson: ContactPersonDto;
|
|
15
|
-
controlCentreIds?: number[];
|
|
16
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CreatePartnerDto = 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 partner_status_enum_1 = require("../enums/partner-status.enum");
|
|
17
|
-
const contact_person_dto_1 = require("../../common/dtos/contact-person.dto");
|
|
18
|
-
class CreatePartnerDto {
|
|
19
|
-
}
|
|
20
|
-
exports.CreatePartnerDto = CreatePartnerDto;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsNumber)(),
|
|
23
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
-
__metadata("design:type", Number)
|
|
25
|
-
], CreatePartnerDto.prototype, "organizationId", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, class_validator_1.IsString)(),
|
|
28
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
-
(0, class_validator_1.MaxLength)(50),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], CreatePartnerDto.prototype, "name", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, class_validator_1.IsPhoneNumber)(),
|
|
34
|
-
(0, class_validator_1.IsOptional)(),
|
|
35
|
-
(0, class_validator_1.MaxLength)(20),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], CreatePartnerDto.prototype, "phoneNumber", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, class_validator_1.IsEmail)(),
|
|
40
|
-
(0, class_validator_1.IsOptional)(),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], CreatePartnerDto.prototype, "email", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, class_validator_1.ValidateNested)(),
|
|
45
|
-
(0, class_transformer_1.Type)(() => map_address_dto_1.MapAddressDto),
|
|
46
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
47
|
-
__metadata("design:type", map_address_dto_1.MapAddressDto)
|
|
48
|
-
], CreatePartnerDto.prototype, "physicalAddress", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, class_validator_1.IsString)(),
|
|
51
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
52
|
-
__metadata("design:type", String)
|
|
53
|
-
], CreatePartnerDto.prototype, "website", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, class_validator_1.IsString)(),
|
|
56
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], CreatePartnerDto.prototype, "type", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, class_validator_1.IsString)(),
|
|
61
|
-
(0, class_validator_1.IsOptional)(),
|
|
62
|
-
__metadata("design:type", String)
|
|
63
|
-
], CreatePartnerDto.prototype, "description", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, class_validator_1.IsEnum)(partner_status_enum_1.PartnerStatus),
|
|
66
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
67
|
-
__metadata("design:type", String)
|
|
68
|
-
], CreatePartnerDto.prototype, "status", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, class_validator_1.IsUrl)(),
|
|
71
|
-
(0, class_validator_1.IsOptional)(),
|
|
72
|
-
__metadata("design:type", String)
|
|
73
|
-
], CreatePartnerDto.prototype, "logo", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
(0, class_validator_1.ValidateNested)(),
|
|
76
|
-
(0, class_transformer_1.Type)(() => contact_person_dto_1.ContactPersonDto),
|
|
77
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
78
|
-
__metadata("design:type", contact_person_dto_1.ContactPersonDto)
|
|
79
|
-
], CreatePartnerDto.prototype, "contactPerson", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, class_validator_1.IsArray)(),
|
|
82
|
-
(0, class_validator_1.IsNumber)({}, { each: true }),
|
|
83
|
-
(0, class_validator_1.IsOptional)(),
|
|
84
|
-
__metadata("design:type", Array)
|
|
85
|
-
], CreatePartnerDto.prototype, "controlCentreIds", void 0);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdatePartnerDto = void 0;
|
|
4
|
-
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
-
const create_partner_dto_1 = require("./create-partner.dto");
|
|
6
|
-
class UpdatePartnerDto extends (0, mapped_types_1.PartialType)(create_partner_dto_1.CreatePartnerDto) {
|
|
7
|
-
}
|
|
8
|
-
exports.UpdatePartnerDto = UpdatePartnerDto;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PartnerStatus = void 0;
|
|
4
|
-
var PartnerStatus;
|
|
5
|
-
(function (PartnerStatus) {
|
|
6
|
-
PartnerStatus["ACTIVE"] = "Active";
|
|
7
|
-
PartnerStatus["INACTIVE"] = "Inactive";
|
|
8
|
-
PartnerStatus["PENDING"] = "Pending";
|
|
9
|
-
PartnerStatus["SUSPENDED"] = "Suspended";
|
|
10
|
-
PartnerStatus["REJECTED"] = "Rejected";
|
|
11
|
-
})(PartnerStatus || (exports.PartnerStatus = PartnerStatus = {}));
|
|
@@ -1,20 +0,0 @@
|
|
|
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("./dtos/create-partner.dto"), exports);
|
|
18
|
-
__exportStar(require("./dtos/update-partner.dto"), exports);
|
|
19
|
-
__exportStar(require("./enums/partner-status.enum"), exports);
|
|
20
|
-
__exportStar(require("./interfaces/partner"), exports);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { MapAddressDto } from "../../common";
|
|
2
|
-
import { ContactPersonDto } from "../../common/dtos/contact-person.dto";
|
|
3
|
-
import { ControlCentre } from "../../control-centre";
|
|
4
|
-
export interface Partner {
|
|
5
|
-
id?: number;
|
|
6
|
-
organizationId: number;
|
|
7
|
-
name: string;
|
|
8
|
-
phoneNumber?: string;
|
|
9
|
-
email?: string;
|
|
10
|
-
physicalAddress: MapAddressDto;
|
|
11
|
-
website: string;
|
|
12
|
-
type: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
status: string;
|
|
15
|
-
logo?: string;
|
|
16
|
-
contactPerson: ContactPersonDto;
|
|
17
|
-
controlCentres?: ControlCentre[];
|
|
18
|
-
createdAt?: Date;
|
|
19
|
-
updatedAt?: Date;
|
|
20
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare enum AmbulanceVehicleType {
|
|
2
|
-
BASIC_LIFE_SUPPORT = "Basic Life Support (BLS)",
|
|
3
|
-
ADVANCED_LIFE_SUPPORT = "Advanced Life Support (ALS)",
|
|
4
|
-
CRITICAL_CARE_TRANSPORT = "Critical Care Transport (CCT)",
|
|
5
|
-
AIR_AMBULANCE_TRANSPORT = "Air Ambulance Transport (AAT)",
|
|
6
|
-
NEONATAL_TRANSPORT = "Neonatal Transport",
|
|
7
|
-
BARIATRIC_TRANSPORT = "Bariatric Transport"
|
|
8
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AmbulanceVehicleType = void 0;
|
|
4
|
-
var AmbulanceVehicleType;
|
|
5
|
-
(function (AmbulanceVehicleType) {
|
|
6
|
-
AmbulanceVehicleType["BASIC_LIFE_SUPPORT"] = "Basic Life Support (BLS)";
|
|
7
|
-
AmbulanceVehicleType["ADVANCED_LIFE_SUPPORT"] = "Advanced Life Support (ALS)";
|
|
8
|
-
AmbulanceVehicleType["CRITICAL_CARE_TRANSPORT"] = "Critical Care Transport (CCT)";
|
|
9
|
-
AmbulanceVehicleType["AIR_AMBULANCE_TRANSPORT"] = "Air Ambulance Transport (AAT)";
|
|
10
|
-
AmbulanceVehicleType["NEONATAL_TRANSPORT"] = "Neonatal Transport";
|
|
11
|
-
AmbulanceVehicleType["BARIATRIC_TRANSPORT"] = "Bariatric Transport";
|
|
12
|
-
})(AmbulanceVehicleType || (exports.AmbulanceVehicleType = AmbulanceVehicleType = {}));
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FireVehicleType = void 0;
|
|
4
|
-
var FireVehicleType;
|
|
5
|
-
(function (FireVehicleType) {
|
|
6
|
-
FireVehicleType["PUMPER"] = "Pumper";
|
|
7
|
-
FireVehicleType["AERIAL"] = "Aerial";
|
|
8
|
-
FireVehicleType["RESCUE"] = "Rescue";
|
|
9
|
-
FireVehicleType["TANKER"] = "Tanker";
|
|
10
|
-
FireVehicleType["WILDLAND"] = "Wildland";
|
|
11
|
-
FireVehicleType["COMMAND"] = "Command";
|
|
12
|
-
})(FireVehicleType || (exports.FireVehicleType = FireVehicleType = {}));
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare enum PersonUnitCategory {
|
|
2
|
-
GOVERNMENT_OFFICIAL = "Government Official",
|
|
3
|
-
POLICE_OFFICER = "Police Officer",
|
|
4
|
-
MEDICAL_OFFICER = "Medical Officer",
|
|
5
|
-
LEGAL_OFFICER = "Legal Officer",
|
|
6
|
-
VOLUNTEER = "Volunteer",
|
|
7
|
-
COMMUNITY_LEADER = "Community Leader",
|
|
8
|
-
FOCAL_CONTACT = "Focal Contact",
|
|
9
|
-
OTHER = "Other"
|
|
10
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PersonUnitCategory = void 0;
|
|
4
|
-
var PersonUnitCategory;
|
|
5
|
-
(function (PersonUnitCategory) {
|
|
6
|
-
PersonUnitCategory["GOVERNMENT_OFFICIAL"] = "Government Official";
|
|
7
|
-
PersonUnitCategory["POLICE_OFFICER"] = "Police Officer";
|
|
8
|
-
PersonUnitCategory["MEDICAL_OFFICER"] = "Medical Officer";
|
|
9
|
-
PersonUnitCategory["LEGAL_OFFICER"] = "Legal Officer";
|
|
10
|
-
PersonUnitCategory["VOLUNTEER"] = "Volunteer";
|
|
11
|
-
PersonUnitCategory["COMMUNITY_LEADER"] = "Community Leader";
|
|
12
|
-
PersonUnitCategory["FOCAL_CONTACT"] = "Focal Contact";
|
|
13
|
-
PersonUnitCategory["OTHER"] = "Other";
|
|
14
|
-
})(PersonUnitCategory || (exports.PersonUnitCategory = PersonUnitCategory = {}));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PersonUnitStatus = void 0;
|
|
4
|
-
var PersonUnitStatus;
|
|
5
|
-
(function (PersonUnitStatus) {
|
|
6
|
-
PersonUnitStatus["ON_DUTY"] = "On Duty";
|
|
7
|
-
PersonUnitStatus["OFF_DUTY"] = "Off Duty";
|
|
8
|
-
PersonUnitStatus["ON_LEAVE"] = "On Leave";
|
|
9
|
-
PersonUnitStatus["ON_MISSION"] = "On Mission";
|
|
10
|
-
PersonUnitStatus["ON_TRAINING"] = "On Training";
|
|
11
|
-
})(PersonUnitStatus || (exports.PersonUnitStatus = PersonUnitStatus = {}));
|