triage-types 1.0.10 → 1.0.12

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.
@@ -7,6 +7,7 @@ export declare class ARStateFacility {
7
7
  readonly name: string;
8
8
  readonly active: boolean;
9
9
  readonly type_id: string;
10
+ readonly site_address_city?: string;
10
11
  readonly [x: string]: any;
11
12
  constructor(state_facility: ARStateFacility);
12
13
  static is(state_facility: any): state_facility is ARStateFacility;
@@ -7,6 +7,7 @@ export class ARStateFacility {
7
7
  name;
8
8
  active;
9
9
  type_id;
10
+ site_address_city;
10
11
  constructor(state_facility) {
11
12
  if (!ARStateFacility.is(state_facility)) {
12
13
  throw Error("Invalid input.");
@@ -17,6 +18,7 @@ export class ARStateFacility {
17
18
  this.name = state_facility.name;
18
19
  this.active = state_facility.active;
19
20
  this.type_id = state_facility.type_id;
21
+ this.site_address_city = state_facility.site_address_city;
20
22
  }
21
23
  static is(state_facility) {
22
24
  return (state_facility !== undefined &&
@@ -25,7 +27,8 @@ export class ARStateFacility {
25
27
  typeof state_facility.facility_id === "string" &&
26
28
  typeof state_facility.name === "string" &&
27
29
  typeof state_facility.active === "boolean" &&
28
- typeof state_facility.type_id === "string");
30
+ typeof state_facility.type_id === "string" &&
31
+ (state_facility.site_address_city === undefined || typeof state_facility.site_address_city === "string"));
29
32
  }
30
33
  }
31
34
  export class ARStateFacilityAux extends ARStateFacility {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triage-types",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -8,6 +8,7 @@ export class ARStateFacility {
8
8
  readonly name : string
9
9
  readonly active : boolean
10
10
  readonly type_id : string
11
+ readonly site_address_city? : string
11
12
  readonly [x : string] : any
12
13
 
13
14
  constructor(state_facility : ARStateFacility) {
@@ -20,6 +21,7 @@ export class ARStateFacility {
20
21
  this.name = state_facility.name
21
22
  this.active = state_facility.active
22
23
  this.type_id = state_facility.type_id
24
+ this.site_address_city = state_facility.site_address_city
23
25
  }
24
26
 
25
27
  static is(state_facility : any) : state_facility is ARStateFacility {
@@ -30,7 +32,8 @@ export class ARStateFacility {
30
32
  typeof state_facility.facility_id === "string" &&
31
33
  typeof state_facility.name === "string" &&
32
34
  typeof state_facility.active === "boolean" &&
33
- typeof state_facility.type_id === "string"
35
+ typeof state_facility.type_id === "string" &&
36
+ (state_facility.site_address_city=== undefined || typeof state_facility.site_address_city === "string")
34
37
  )
35
38
  }
36
39
  }