triage-types 1.0.75 → 1.0.77

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,7 +1,6 @@
1
1
  import { StatePermit } from "../StatePermit.js";
2
2
  export declare class KYStatePermit extends StatePermit {
3
3
  readonly state_id: "KY";
4
- readonly s3_raw_filenames?: string[];
5
4
  readonly [x: string]: any;
6
5
  constructor(state_permit: KYStatePermit);
7
6
  static is(state_permit: any): state_permit is KYStatePermit;
@@ -1,18 +1,15 @@
1
1
  import { StatePermit } from "../StatePermit.js";
2
2
  export class KYStatePermit extends StatePermit {
3
3
  state_id;
4
- s3_raw_filenames;
5
4
  constructor(state_permit) {
6
5
  if (!KYStatePermit.is(state_permit)) {
7
6
  throw Error("Invalid input.");
8
7
  }
9
8
  super(state_permit);
10
9
  this.state_id = state_permit.state_id;
11
- this.s3_raw_filenames = state_permit.s3_raw_filenames;
12
10
  }
13
11
  static is(state_permit) {
14
12
  return (StatePermit.is(state_permit) &&
15
- state_permit.state_id === "KY" &&
16
- (state_permit.s3_raw_filenames === undefined || Array.isArray(state_permit.s3_raw_filenames) && state_permit.s3_raw_filenames.every((s3_filename) => typeof s3_filename === "string")));
13
+ state_permit.state_id === "KY");
17
14
  }
18
15
  }
@@ -1,7 +1,6 @@
1
1
  import { StatePermit } from "../StatePermit.js";
2
2
  export declare class NCStatePermit extends StatePermit {
3
3
  readonly state_id: "NC";
4
- readonly s3_raw_filenames?: string[];
5
4
  readonly [x: string]: any;
6
5
  constructor(state_permit: NCStatePermit);
7
6
  static is(state_permit: any): state_permit is NCStatePermit;
@@ -1,18 +1,15 @@
1
1
  import { StatePermit } from "../StatePermit.js";
2
2
  export class NCStatePermit extends StatePermit {
3
3
  state_id;
4
- s3_raw_filenames;
5
4
  constructor(state_permit) {
6
5
  if (!NCStatePermit.is(state_permit)) {
7
6
  throw Error("Invalid input.");
8
7
  }
9
8
  super(state_permit);
10
9
  this.state_id = state_permit.state_id;
11
- this.s3_raw_filenames = state_permit.s3_raw_filenames;
12
10
  }
13
11
  static is(state_permit) {
14
12
  return (StatePermit.is(state_permit) &&
15
- state_permit.state_id === "NC" &&
16
- (state_permit.s3_raw_filenames === undefined || Array.isArray(state_permit.s3_raw_filenames) && state_permit.s3_raw_filenames.every((s3_filename) => typeof s3_filename === "string")));
13
+ state_permit.state_id === "NC");
17
14
  }
18
15
  }
@@ -16,8 +16,6 @@ export declare class StatePermit {
16
16
  readonly status?: string;
17
17
  readonly type_id?: string;
18
18
  readonly subtype_id?: string;
19
- readonly s3_filename?: string;
20
- readonly s3_text_filename?: string;
21
19
  readonly source_ids?: string[];
22
20
  readonly comments?: StatePermitComment[];
23
21
  readonly [x: string]: any;
@@ -25,6 +23,7 @@ export declare class StatePermit {
25
23
  static is(state_permit: any): state_permit is StatePermit;
26
24
  }
27
25
  export declare class StateWaterPermit extends StatePermit {
26
+ readonly max_document_id?: string;
28
27
  readonly freq_fish_tissue?: string;
29
28
  constructor(state_permit: StateWaterPermit);
30
29
  static is(state_permit: any): state_permit is StateWaterPermit;
@@ -26,8 +26,6 @@ export class StatePermit {
26
26
  status;
27
27
  type_id;
28
28
  subtype_id;
29
- s3_filename;
30
- s3_text_filename;
31
29
  source_ids;
32
30
  comments;
33
31
  constructor(state_permit) {
@@ -43,8 +41,6 @@ export class StatePermit {
43
41
  this.status = state_permit.status;
44
42
  this.type_id = state_permit.type_id;
45
43
  this.subtype_id = state_permit.subtype_id;
46
- this.s3_filename = state_permit.s3_filename;
47
- this.s3_text_filename = state_permit.s3_text_filename;
48
44
  this.source_ids = state_permit.source_ids;
49
45
  this.comments = state_permit.comments;
50
46
  }
@@ -59,13 +55,12 @@ export class StatePermit {
59
55
  (state_permit.status === undefined || typeof state_permit.status === "string") &&
60
56
  (state_permit.type_id === undefined || typeof state_permit.type_id === "string") &&
61
57
  (state_permit.subtype_id === undefined || typeof state_permit.subtype_id === "string") &&
62
- (state_permit.s3_filename === undefined || typeof state_permit.s3_filename === "string") &&
63
- (state_permit.s3_text_filename === undefined || typeof state_permit.s3_text_filename === "string") &&
64
58
  (state_permit.source_ids === undefined || Array.isArray(state_permit.source_ids) && state_permit.source_ids.every((source_id) => typeof source_id === "string")) &&
65
59
  (state_permit.comments === undefined || Array.isArray(state_permit.comments) && state_permit.comments.every(StatePermitComment.is)));
66
60
  }
67
61
  }
68
62
  export class StateWaterPermit extends StatePermit {
63
+ max_document_id;
69
64
  freq_fish_tissue;
70
65
  constructor(state_permit) {
71
66
  if (!StateWaterPermit.is(state_permit)) {
@@ -73,11 +68,13 @@ export class StateWaterPermit extends StatePermit {
73
68
  }
74
69
  super(state_permit);
75
70
  this.freq_fish_tissue = state_permit.freq_fish_tissue;
71
+ this.max_document_id = state_permit.max_document_id;
76
72
  }
77
73
  static is(state_permit) {
78
74
  return (StatePermit.is(state_permit) &&
79
75
  state_permit.type_id === "WATER-NPDES" &&
80
- (state_permit.freq_fish_tissue === undefined || typeof state_permit.freq_fish_tissue === "string"));
76
+ (state_permit.freq_fish_tissue === undefined || typeof state_permit.freq_fish_tissue === "string") &&
77
+ (state_permit.max_document_id === undefined || typeof state_permit.max_document_id === "string"));
81
78
  }
82
79
  }
83
80
  export class StatePermitAux extends StatePermit {
@@ -6,6 +6,7 @@ export declare class StatePermitDocument {
6
6
  readonly document_id: string;
7
7
  readonly name: string;
8
8
  readonly s3_filename?: string;
9
+ readonly s3_text_filename?: string;
9
10
  readonly [x: string]: any;
10
11
  constructor(state_permit_document: StatePermitDocument);
11
12
  static is(state_permit_document: any): state_permit_document is StatePermitDocument;
@@ -6,6 +6,7 @@ export class StatePermitDocument {
6
6
  document_id;
7
7
  name;
8
8
  s3_filename;
9
+ s3_text_filename;
9
10
  constructor(state_permit_document) {
10
11
  if (!StatePermitDocument.is(state_permit_document)) {
11
12
  throw Error("Invalid input.");
@@ -16,6 +17,7 @@ export class StatePermitDocument {
16
17
  this.document_id = state_permit_document.document_id;
17
18
  this.name = state_permit_document.name;
18
19
  this.s3_filename = state_permit_document.s3_filename;
20
+ this.s3_text_filename = state_permit_document.s3_text_filename;
19
21
  }
20
22
  static is(state_permit_document) {
21
23
  return (state_permit_document !== undefined &&
@@ -24,6 +26,7 @@ export class StatePermitDocument {
24
26
  typeof state_permit_document.state_permit_id === "string" &&
25
27
  typeof state_permit_document.document_id === "string" &&
26
28
  typeof state_permit_document.name === "string" &&
27
- (state_permit_document.s3_filename === undefined || typeof state_permit_document.s3_filename == "string"));
29
+ (state_permit_document.s3_filename === undefined || typeof state_permit_document.s3_filename == "string") &&
30
+ (state_permit_document.s3_text_filename === undefined || typeof state_permit_document.s3_text_filename == "string"));
28
31
  }
29
32
  }
@@ -2,7 +2,6 @@ import { StatePermit } from "../StatePermit.js";
2
2
  export declare class TNStatePermit extends StatePermit {
3
3
  readonly state_id: "TN";
4
4
  readonly effective_date?: string;
5
- readonly s3_raw_filenames?: string[];
6
5
  readonly [x: string]: any;
7
6
  constructor(state_permit: TNStatePermit);
8
7
  static is(state_permit: any): state_permit is TNStatePermit;
@@ -2,7 +2,6 @@ import { StatePermit } from "../StatePermit.js";
2
2
  export class TNStatePermit extends StatePermit {
3
3
  state_id;
4
4
  effective_date;
5
- s3_raw_filenames;
6
5
  constructor(state_permit) {
7
6
  if (!TNStatePermit.is(state_permit)) {
8
7
  throw Error("Invalid input.");
@@ -10,12 +9,10 @@ export class TNStatePermit extends StatePermit {
10
9
  super(state_permit);
11
10
  this.state_id = state_permit.state_id;
12
11
  this.effective_date = state_permit.effective_date;
13
- this.s3_raw_filenames = state_permit.s3_raw_filenames;
14
12
  }
15
13
  static is(state_permit) {
16
14
  return (StatePermit.is(state_permit) &&
17
15
  state_permit.state_id === "TN" &&
18
- (state_permit.effective_date === undefined || typeof state_permit.effective_date === "string") &&
19
- (state_permit.s3_raw_filenames === undefined || Array.isArray(state_permit.s3_raw_filenames) && state_permit.s3_raw_filenames.every((s3_filename) => typeof s3_filename === "string")));
16
+ (state_permit.effective_date === undefined || typeof state_permit.effective_date === "string"));
20
17
  }
21
18
  }
@@ -2,7 +2,6 @@ import { StatePermit } from "../StatePermit.js";
2
2
  export declare class WIStatePermit extends StatePermit {
3
3
  readonly state_id: "WI";
4
4
  readonly seq_id: string;
5
- readonly s3_raw_filenames?: string[];
6
5
  readonly [x: string]: any;
7
6
  constructor(state_permit: WIStatePermit);
8
7
  static is(state_permit: any): state_permit is WIStatePermit;
@@ -2,7 +2,6 @@ import { StatePermit } from "../StatePermit.js";
2
2
  export class WIStatePermit extends StatePermit {
3
3
  state_id;
4
4
  seq_id;
5
- s3_raw_filenames;
6
5
  constructor(state_permit) {
7
6
  if (!WIStatePermit.is(state_permit)) {
8
7
  throw Error("Invalid input.");
@@ -10,12 +9,10 @@ export class WIStatePermit extends StatePermit {
10
9
  super(state_permit);
11
10
  this.state_id = state_permit.state_id;
12
11
  this.seq_id = state_permit.seq_id;
13
- this.s3_raw_filenames = state_permit.s3_raw_filenames;
14
12
  }
15
13
  static is(state_permit) {
16
14
  return (StatePermit.is(state_permit) &&
17
15
  state_permit.state_id === "WI" &&
18
- typeof state_permit.seq_id === "string" &&
19
- (state_permit.s3_raw_filenames === undefined || Array.isArray(state_permit.s3_raw_filenames) && state_permit.s3_raw_filenames.every((s3_filename) => typeof s3_filename === "string")));
16
+ typeof state_permit.seq_id === "string");
20
17
  }
21
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triage-types",
3
- "version": "1.0.75",
3
+ "version": "1.0.77",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -3,7 +3,6 @@ import { StatePermit } from "../StatePermit"
3
3
 
4
4
  export class KYStatePermit extends StatePermit {
5
5
  readonly state_id : "KY"
6
- readonly s3_raw_filenames? : string[]
7
6
  readonly [x : string] : any
8
7
 
9
8
  constructor(state_permit : KYStatePermit) {
@@ -12,14 +11,12 @@ export class KYStatePermit extends StatePermit {
12
11
  }
13
12
  super(state_permit)
14
13
  this.state_id = state_permit.state_id
15
- this.s3_raw_filenames = state_permit.s3_raw_filenames
16
14
  }
17
15
 
18
16
  static is(state_permit : any) : state_permit is KYStatePermit {
19
17
  return (
20
18
  StatePermit.is(state_permit) &&
21
- state_permit.state_id === "KY" &&
22
- (state_permit.s3_raw_filenames === undefined || Array.isArray(state_permit.s3_raw_filenames) && state_permit.s3_raw_filenames.every((s3_filename : any) => typeof s3_filename === "string"))
19
+ state_permit.state_id === "KY"
23
20
  )
24
21
  }
25
22
  }
@@ -4,7 +4,6 @@ import { StatePermit } from "../StatePermit"
4
4
 
5
5
  export class NCStatePermit extends StatePermit {
6
6
  readonly state_id : "NC"
7
- readonly s3_raw_filenames? : string[]
8
7
  readonly [x : string] : any
9
8
 
10
9
  constructor(state_permit : NCStatePermit) {
@@ -13,14 +12,12 @@ export class NCStatePermit extends StatePermit {
13
12
  }
14
13
  super(state_permit)
15
14
  this.state_id = state_permit.state_id
16
- this.s3_raw_filenames = state_permit.s3_raw_filenames
17
15
  }
18
16
 
19
17
  static is(state_permit : any) : state_permit is NCStatePermit {
20
18
  return (
21
19
  StatePermit.is(state_permit) &&
22
- state_permit.state_id === "NC" &&
23
- (state_permit.s3_raw_filenames === undefined || Array.isArray(state_permit.s3_raw_filenames) && state_permit.s3_raw_filenames.every((s3_filename : any) => typeof s3_filename === "string"))
20
+ state_permit.state_id === "NC"
24
21
  )
25
22
  }
26
23
  }
@@ -33,8 +33,6 @@ export class StatePermit {
33
33
  readonly status? : string
34
34
  readonly type_id? : string
35
35
  readonly subtype_id? : string
36
- readonly s3_filename? : string
37
- readonly s3_text_filename? : string
38
36
  readonly source_ids? : string[]
39
37
  readonly comments? : StatePermitComment[]
40
38
  readonly [x : string] : any
@@ -52,8 +50,6 @@ export class StatePermit {
52
50
  this.status = state_permit.status
53
51
  this.type_id = state_permit.type_id
54
52
  this.subtype_id = state_permit.subtype_id
55
- this.s3_filename = state_permit.s3_filename
56
- this.s3_text_filename = state_permit.s3_text_filename
57
53
  this.source_ids = state_permit.source_ids
58
54
  this.comments = state_permit.comments
59
55
  }
@@ -70,8 +66,6 @@ export class StatePermit {
70
66
  (state_permit.status === undefined || typeof state_permit.status === "string") &&
71
67
  (state_permit.type_id === undefined || typeof state_permit.type_id === "string") &&
72
68
  (state_permit.subtype_id === undefined || typeof state_permit.subtype_id === "string") &&
73
- (state_permit.s3_filename === undefined || typeof state_permit.s3_filename === "string") &&
74
- (state_permit.s3_text_filename === undefined || typeof state_permit.s3_text_filename === "string") &&
75
69
  (state_permit.source_ids === undefined || Array.isArray(state_permit.source_ids) && state_permit.source_ids.every((source_id : any) => typeof source_id === "string")) &&
76
70
  (state_permit.comments === undefined || Array.isArray(state_permit.comments) && state_permit.comments.every(StatePermitComment.is))
77
71
  )
@@ -79,6 +73,7 @@ export class StatePermit {
79
73
  }
80
74
 
81
75
  export class StateWaterPermit extends StatePermit {
76
+ readonly max_document_id? : string
82
77
  readonly freq_fish_tissue? : string
83
78
 
84
79
  constructor(state_permit : StateWaterPermit) {
@@ -87,13 +82,15 @@ export class StateWaterPermit extends StatePermit {
87
82
  }
88
83
  super(state_permit)
89
84
  this.freq_fish_tissue = state_permit.freq_fish_tissue
85
+ this.max_document_id = state_permit.max_document_id
90
86
  }
91
87
 
92
88
  static is(state_permit : any) : state_permit is StateWaterPermit {
93
89
  return (
94
90
  StatePermit.is(state_permit) &&
95
91
  state_permit.type_id === "WATER-NPDES" &&
96
- (state_permit.freq_fish_tissue === undefined || typeof state_permit.freq_fish_tissue === "string")
92
+ (state_permit.freq_fish_tissue === undefined || typeof state_permit.freq_fish_tissue === "string") &&
93
+ (state_permit.max_document_id === undefined || typeof state_permit.max_document_id === "string")
97
94
  )
98
95
  }
99
96
  }
@@ -8,6 +8,7 @@ export class StatePermitDocument {
8
8
  readonly document_id : string
9
9
  readonly name : string
10
10
  readonly s3_filename? : string
11
+ readonly s3_text_filename? : string
11
12
  readonly [x : string] : any
12
13
 
13
14
  constructor(state_permit_document : StatePermitDocument) {
@@ -20,6 +21,7 @@ export class StatePermitDocument {
20
21
  this.document_id = state_permit_document.document_id
21
22
  this.name = state_permit_document.name
22
23
  this.s3_filename = state_permit_document.s3_filename
24
+ this.s3_text_filename = state_permit_document.s3_text_filename
23
25
  }
24
26
 
25
27
  static is(state_permit_document : any) : state_permit_document is StatePermitDocument {
@@ -30,7 +32,8 @@ export class StatePermitDocument {
30
32
  typeof state_permit_document.state_permit_id === "string" &&
31
33
  typeof state_permit_document.document_id === "string" &&
32
34
  typeof state_permit_document.name === "string" &&
33
- (state_permit_document.s3_filename === undefined || typeof state_permit_document.s3_filename == "string")
35
+ (state_permit_document.s3_filename === undefined || typeof state_permit_document.s3_filename == "string") &&
36
+ (state_permit_document.s3_text_filename === undefined || typeof state_permit_document.s3_text_filename == "string")
34
37
  )
35
38
  }
36
39
  }
@@ -4,7 +4,6 @@ import { StatePermit } from "../StatePermit"
4
4
  export class TNStatePermit extends StatePermit {
5
5
  readonly state_id : "TN"
6
6
  readonly effective_date? : string
7
- readonly s3_raw_filenames? : string[]
8
7
  readonly [x : string] : any
9
8
 
10
9
  constructor(state_permit : TNStatePermit) {
@@ -14,15 +13,13 @@ export class TNStatePermit extends StatePermit {
14
13
  super(state_permit)
15
14
  this.state_id = state_permit.state_id
16
15
  this.effective_date = state_permit.effective_date
17
- this.s3_raw_filenames = state_permit.s3_raw_filenames
18
16
  }
19
17
 
20
18
  static is(state_permit : any) : state_permit is TNStatePermit {
21
19
  return (
22
20
  StatePermit.is(state_permit) &&
23
21
  state_permit.state_id === "TN" &&
24
- (state_permit.effective_date === undefined || typeof state_permit.effective_date === "string") &&
25
- (state_permit.s3_raw_filenames === undefined || Array.isArray(state_permit.s3_raw_filenames) && state_permit.s3_raw_filenames.every((s3_filename : any) => typeof s3_filename === "string"))
22
+ (state_permit.effective_date === undefined || typeof state_permit.effective_date === "string")
26
23
  )
27
24
  }
28
25
  }
@@ -4,7 +4,6 @@ import { StatePermit } from "../StatePermit"
4
4
  export class WIStatePermit extends StatePermit {
5
5
  readonly state_id : "WI"
6
6
  readonly seq_id : string
7
- readonly s3_raw_filenames? : string[]
8
7
  readonly [x : string] : any
9
8
 
10
9
  constructor(state_permit : WIStatePermit) {
@@ -14,15 +13,13 @@ export class WIStatePermit extends StatePermit {
14
13
  super(state_permit)
15
14
  this.state_id = state_permit.state_id
16
15
  this.seq_id = state_permit.seq_id
17
- this.s3_raw_filenames = state_permit.s3_raw_filenames
18
16
  }
19
17
 
20
18
  static is(state_permit : any) : state_permit is WIStatePermit {
21
19
  return (
22
20
  StatePermit.is(state_permit) &&
23
21
  state_permit.state_id === "WI" &&
24
- typeof state_permit.seq_id === "string" &&
25
- (state_permit.s3_raw_filenames === undefined || Array.isArray(state_permit.s3_raw_filenames) && state_permit.s3_raw_filenames.every((s3_filename : any) => typeof s3_filename === "string"))
22
+ typeof state_permit.seq_id === "string"
26
23
  )
27
24
  }
28
25
  }