triage-types 1.0.19 → 1.0.20

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 ARStatePermitWaterSource {
7
7
  readonly state_permit_id: string;
8
8
  readonly source_id: string;
9
9
  readonly type_id: string;
10
+ readonly description?: string;
10
11
  readonly [x: string]: any;
11
12
  constructor(state_permit_water_source: ARStatePermitWaterSource);
12
13
  static is(state_permit_water_source: any): state_permit_water_source is ARStatePermitWaterSource;
@@ -7,6 +7,7 @@ export class ARStatePermitWaterSource {
7
7
  state_permit_id;
8
8
  source_id;
9
9
  type_id;
10
+ description;
10
11
  constructor(state_permit_water_source) {
11
12
  if (!ARStatePermitWaterSource.is(state_permit_water_source)) {
12
13
  throw Error("Invalid input.");
@@ -16,6 +17,7 @@ export class ARStatePermitWaterSource {
16
17
  this.state_permit_id = state_permit_water_source.state_permit_id;
17
18
  this.source_id = state_permit_water_source.source_id;
18
19
  this.type_id = state_permit_water_source.type_id;
20
+ this.description = state_permit_water_source.description;
19
21
  }
20
22
  static is(state_permit_water_source) {
21
23
  return (state_permit_water_source !== undefined &&
@@ -23,7 +25,8 @@ export class ARStatePermitWaterSource {
23
25
  is_state_id(state_permit_water_source.state_id) &&
24
26
  typeof state_permit_water_source.state_permit_id === "string" &&
25
27
  typeof state_permit_water_source.source_id === "string" &&
26
- typeof state_permit_water_source.type_id === "string");
28
+ typeof state_permit_water_source.type_id === "string" &&
29
+ (state_permit_water_source.description === undefined || typeof state_permit_water_source.description === "string"));
27
30
  }
28
31
  }
29
32
  export class ARStatePermitSource {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triage-types",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -8,6 +8,7 @@ export class ARStatePermitWaterSource {
8
8
  readonly state_permit_id : string
9
9
  readonly source_id : string
10
10
  readonly type_id : string
11
+ readonly description? : string
11
12
  readonly [x : string] : any
12
13
 
13
14
  constructor(state_permit_water_source : ARStatePermitWaterSource) {
@@ -19,6 +20,7 @@ export class ARStatePermitWaterSource {
19
20
  this.state_permit_id = state_permit_water_source.state_permit_id
20
21
  this.source_id = state_permit_water_source.source_id
21
22
  this.type_id = state_permit_water_source.type_id
23
+ this.description = state_permit_water_source.description
22
24
  }
23
25
 
24
26
  static is(state_permit_water_source : any) : state_permit_water_source is ARStatePermitWaterSource {
@@ -28,7 +30,8 @@ export class ARStatePermitWaterSource {
28
30
  is_state_id(state_permit_water_source.state_id) &&
29
31
  typeof state_permit_water_source.state_permit_id === "string" &&
30
32
  typeof state_permit_water_source.source_id === "string" &&
31
- typeof state_permit_water_source.type_id === "string"
33
+ typeof state_permit_water_source.type_id === "string" &&
34
+ (state_permit_water_source.description === undefined || typeof state_permit_water_source.description === "string")
32
35
  )
33
36
  }
34
37
  }