grm-shared-library 1.0.139 → 1.0.141

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.
@@ -2,7 +2,9 @@ import { MapAddressDto } from "../../common/dtos/map-address.dto";
2
2
  import { OrganizationStatus } from "../enums/org-status.enum";
3
3
  import { ContactPersonDto } from "../../common/dtos/contact-person.dto";
4
4
  import { OrganizationType } from "../enums/org-type.enum";
5
+ import { IncidentClass } from "../../incident";
5
6
  export declare class CreateOrganizationDto {
7
+ incidentClass: IncidentClass;
6
8
  name: string;
7
9
  phoneNumber?: string;
8
10
  email?: string;
@@ -16,9 +16,15 @@ const map_address_dto_1 = require("../../common/dtos/map-address.dto");
16
16
  const org_status_enum_1 = require("../enums/org-status.enum");
17
17
  const contact_person_dto_1 = require("../../common/dtos/contact-person.dto");
18
18
  const org_type_enum_1 = require("../enums/org-type.enum");
19
+ const incident_1 = require("../../incident");
19
20
  class CreateOrganizationDto {
20
21
  }
21
22
  exports.CreateOrganizationDto = CreateOrganizationDto;
23
+ __decorate([
24
+ (0, class_validator_1.IsEnum)(incident_1.IncidentClass),
25
+ (0, class_validator_1.IsNotEmpty)(),
26
+ __metadata("design:type", String)
27
+ ], CreateOrganizationDto.prototype, "incidentClass", void 0);
22
28
  __decorate([
23
29
  (0, class_validator_1.IsString)(),
24
30
  (0, class_validator_1.IsNotEmpty)(),
@@ -1,7 +1,9 @@
1
1
  import { ContactPerson, MapAddress } from "../../common";
2
+ import { IncidentClass } from "../../incident";
2
3
  import { OrganizationType } from "../enums/org-type.enum";
3
4
  export interface Organization {
4
5
  id?: number;
6
+ incidentClass: IncidentClass;
5
7
  name: string;
6
8
  phoneNumber?: string;
7
9
  email?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grm-shared-library",
3
- "version": "1.0.139",
3
+ "version": "1.0.141",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [