triage-types 1.0.69 → 1.0.70

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.
@@ -1,6 +1,7 @@
1
1
  import { StatePermitDocument } from "../StatePermitDocument.js";
2
2
  export declare class TNStatePermitDocument extends StatePermitDocument {
3
3
  readonly state_id: "TN";
4
+ readonly type: string;
4
5
  readonly date: string;
5
6
  readonly [x: string]: any;
6
7
  constructor(state_permit: TNStatePermitDocument);
@@ -1,6 +1,7 @@
1
1
  import { StatePermitDocument } from "../StatePermitDocument.js";
2
2
  export class TNStatePermitDocument extends StatePermitDocument {
3
3
  state_id;
4
+ type;
4
5
  date;
5
6
  constructor(state_permit) {
6
7
  if (!TNStatePermitDocument.is(state_permit)) {
@@ -8,11 +9,13 @@ export class TNStatePermitDocument extends StatePermitDocument {
8
9
  }
9
10
  super(state_permit);
10
11
  this.state_id = state_permit.state_id;
12
+ this.type = state_permit.type;
11
13
  this.date = state_permit.date;
12
14
  }
13
15
  static is(state_permit) {
14
16
  return (StatePermitDocument.is(state_permit) &&
15
17
  state_permit.state_id === "TN" &&
18
+ typeof state_permit.type === "string" &&
16
19
  typeof state_permit.date === "string");
17
20
  }
18
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triage-types",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -3,6 +3,7 @@ import { StatePermitDocument } from "../StatePermitDocument"
3
3
 
4
4
  export class TNStatePermitDocument extends StatePermitDocument {
5
5
  readonly state_id : "TN"
6
+ readonly type : string
6
7
  readonly date : string
7
8
  readonly [x : string] : any
8
9
 
@@ -12,6 +13,7 @@ export class TNStatePermitDocument extends StatePermitDocument {
12
13
  }
13
14
  super(state_permit)
14
15
  this.state_id = state_permit.state_id
16
+ this.type = state_permit.type
15
17
  this.date = state_permit.date
16
18
  }
17
19
 
@@ -19,6 +21,7 @@ export class TNStatePermitDocument extends StatePermitDocument {
19
21
  return (
20
22
  StatePermitDocument.is(state_permit) &&
21
23
  state_permit.state_id === "TN" &&
24
+ typeof state_permit.type === "string" &&
22
25
  typeof state_permit.date === "string"
23
26
  )
24
27
  }