triage-types 1.0.61 → 1.0.63
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.
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/types/state_permits/AR/ARStatePermit.d.ts +0 -5
- package/dist/src/types/state_permits/AR/ARStatePermit.js +0 -15
- package/dist/src/types/state_permits/KY/KYStatePermit.d.ts +0 -5
- package/dist/src/types/state_permits/KY/KYStatePermit.js +0 -15
- package/dist/src/types/state_permits/NC/NCStatePermitSourcePollutant.d.ts +13 -0
- package/dist/src/types/state_permits/NC/NCStatePermitSourcePollutant.js +79 -0
- package/dist/src/types/state_permits/StatePermit.d.ts +5 -0
- package/dist/src/types/state_permits/StatePermit.js +15 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/types/state_permits/AR/ARStatePermit.ts +0 -20
- package/src/types/state_permits/KY/KYStatePermit.ts +0 -20
- package/src/types/state_permits/NC/NCStatePermitSourcePollutant.ts +95 -0
- package/src/types/state_permits/StatePermit.ts +20 -0
package/dist/src/index.d.ts
CHANGED
|
@@ -20,5 +20,6 @@ export * from "./types/state_permits/KY/KYStatePermitSourcePollutant.js";
|
|
|
20
20
|
export * from "./types/state_permits/NC/NCStateFacility.js";
|
|
21
21
|
export * from "./types/state_permits/NC/NCStatePermit.js";
|
|
22
22
|
export * from "./types/state_permits/NC/NCStatePermitSource.js";
|
|
23
|
+
export * from "./types/state_permits/NC/NCStatePermitSourcePollutant.js";
|
|
23
24
|
export * from "./types/state_permits/TN/TNStateFacility.js";
|
|
24
25
|
export * from "./types/state_permits/TN/TNStatePermit.js";
|
package/dist/src/index.js
CHANGED
|
@@ -20,5 +20,6 @@ export * from "./types/state_permits/KY/KYStatePermitSourcePollutant.js";
|
|
|
20
20
|
export * from "./types/state_permits/NC/NCStateFacility.js";
|
|
21
21
|
export * from "./types/state_permits/NC/NCStatePermit.js";
|
|
22
22
|
export * from "./types/state_permits/NC/NCStatePermitSource.js";
|
|
23
|
+
export * from "./types/state_permits/NC/NCStatePermitSourcePollutant.js";
|
|
23
24
|
export * from "./types/state_permits/TN/TNStateFacility.js";
|
|
24
25
|
export * from "./types/state_permits/TN/TNStatePermit.js";
|
|
@@ -6,8 +6,3 @@ export declare class ARStatePermit extends StatePermit {
|
|
|
6
6
|
constructor(state_permit: ARStatePermit);
|
|
7
7
|
static is(state_permit: any): state_permit is ARStatePermit;
|
|
8
8
|
}
|
|
9
|
-
export declare class ARStateWaterPermit extends ARStatePermit {
|
|
10
|
-
readonly freq_fish_tissue?: string;
|
|
11
|
-
constructor(state_permit: ARStateWaterPermit);
|
|
12
|
-
static is(state_permit: any): state_permit is ARStateWaterPermit;
|
|
13
|
-
}
|
|
@@ -16,18 +16,3 @@ export class ARStatePermit extends StatePermit {
|
|
|
16
16
|
(state_permit.void_date === undefined || typeof state_permit.void_date === "string"));
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
export class ARStateWaterPermit extends ARStatePermit {
|
|
20
|
-
freq_fish_tissue;
|
|
21
|
-
constructor(state_permit) {
|
|
22
|
-
if (!ARStateWaterPermit.is(state_permit)) {
|
|
23
|
-
throw Error("Invalid input.");
|
|
24
|
-
}
|
|
25
|
-
super(state_permit);
|
|
26
|
-
this.freq_fish_tissue = state_permit.freq_fish_tissue;
|
|
27
|
-
}
|
|
28
|
-
static is(state_permit) {
|
|
29
|
-
return (ARStatePermit.is(state_permit) &&
|
|
30
|
-
state_permit.type_id === "WATER-NPDES" &&
|
|
31
|
-
(state_permit.freq_fish_tissue === undefined || typeof state_permit.freq_fish_tissue === "string"));
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -6,8 +6,3 @@ export declare class KYStatePermit extends StatePermit {
|
|
|
6
6
|
constructor(state_permit: KYStatePermit);
|
|
7
7
|
static is(state_permit: any): state_permit is KYStatePermit;
|
|
8
8
|
}
|
|
9
|
-
export declare class KYStateWaterPermit extends KYStatePermit {
|
|
10
|
-
readonly freq_fish_tissue?: string;
|
|
11
|
-
constructor(state_permit: KYStateWaterPermit);
|
|
12
|
-
static is(state_permit: any): state_permit is KYStateWaterPermit;
|
|
13
|
-
}
|
|
@@ -16,18 +16,3 @@ export class KYStatePermit extends StatePermit {
|
|
|
16
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")));
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
export class KYStateWaterPermit extends KYStatePermit {
|
|
20
|
-
freq_fish_tissue;
|
|
21
|
-
constructor(state_permit) {
|
|
22
|
-
if (!KYStateWaterPermit.is(state_permit)) {
|
|
23
|
-
throw Error("Invalid input.");
|
|
24
|
-
}
|
|
25
|
-
super(state_permit);
|
|
26
|
-
this.freq_fish_tissue = state_permit.freq_fish_tissue;
|
|
27
|
-
}
|
|
28
|
-
static is(state_permit) {
|
|
29
|
-
return (KYStatePermit.is(state_permit) &&
|
|
30
|
-
state_permit.type_id === "WATER-NPDES" &&
|
|
31
|
-
(state_permit.freq_fish_tissue === undefined || typeof state_permit.freq_fish_tissue === "string"));
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StatePermitSourcePollutant } from "../StatePermitSourcePollutant.js";
|
|
2
|
+
export declare class NCStatePermitSourcePollutant extends StatePermitSourcePollutant {
|
|
3
|
+
readonly state_id: "NC";
|
|
4
|
+
readonly [x: string]: any;
|
|
5
|
+
constructor(state_permit_source_pollutant: NCStatePermitSourcePollutant);
|
|
6
|
+
static is(state_permit_source_pollutant: any): state_permit_source_pollutant is NCStatePermitSourcePollutant;
|
|
7
|
+
}
|
|
8
|
+
export declare class NCStateWaterPermitSourcePollutant extends NCStatePermitSourcePollutant {
|
|
9
|
+
readonly freq?: string;
|
|
10
|
+
readonly [x: string]: any;
|
|
11
|
+
constructor(state_permit_source_pollutant: NCStateWaterPermitSourcePollutant);
|
|
12
|
+
static is(state_permit_source_pollutant: any): state_permit_source_pollutant is NCStateWaterPermitSourcePollutant;
|
|
13
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { StatePermitSourcePollutant } from "../StatePermitSourcePollutant.js";
|
|
2
|
+
export class NCStatePermitSourcePollutant extends StatePermitSourcePollutant {
|
|
3
|
+
state_id;
|
|
4
|
+
constructor(state_permit_source_pollutant) {
|
|
5
|
+
if (!NCStatePermitSourcePollutant.is(state_permit_source_pollutant)) {
|
|
6
|
+
throw Error("Invalid input.");
|
|
7
|
+
}
|
|
8
|
+
super(state_permit_source_pollutant);
|
|
9
|
+
this.state_id = state_permit_source_pollutant.state_id;
|
|
10
|
+
}
|
|
11
|
+
static is(state_permit_source_pollutant) {
|
|
12
|
+
return (StatePermitSourcePollutant.is(state_permit_source_pollutant) &&
|
|
13
|
+
state_permit_source_pollutant.state_id === "NC");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
// export class NCStateAirPermitSourcePollutant extends NCStatePermitSourcePollutant {
|
|
17
|
+
// readonly TPY_text : string
|
|
18
|
+
// readonly TPY? : number
|
|
19
|
+
// readonly TPY_global_rank? : number
|
|
20
|
+
// readonly TPY_global_total? : number
|
|
21
|
+
// readonly TPY_local_rank? : number
|
|
22
|
+
// readonly TPY_local_total? : number
|
|
23
|
+
// readonly LBPH_text : string
|
|
24
|
+
// readonly LBPH? : number
|
|
25
|
+
// readonly LBPH_global_rank? : number
|
|
26
|
+
// readonly LBPH_global_total? : number
|
|
27
|
+
// readonly LBPH_local_rank? : number
|
|
28
|
+
// readonly LBPH_local_total? : number
|
|
29
|
+
// readonly [x : string] : any
|
|
30
|
+
// constructor(state_permit_source_pollutant : NCStateAirPermitSourcePollutant) {
|
|
31
|
+
// if (!NCStateAirPermitSourcePollutant.is(state_permit_source_pollutant)) {
|
|
32
|
+
// throw Error("Invalid input.")
|
|
33
|
+
// }
|
|
34
|
+
// super(state_permit_source_pollutant)
|
|
35
|
+
// this.TPY_text = state_permit_source_pollutant.TPY_text
|
|
36
|
+
// this.TPY = state_permit_source_pollutant.TPY
|
|
37
|
+
// this.TPY_global_rank = state_permit_source_pollutant.TPY_global_rank
|
|
38
|
+
// this.TPY_global_total = state_permit_source_pollutant.TPY_global_total
|
|
39
|
+
// this.TPY_local_rank = state_permit_source_pollutant.TPY_local_rank
|
|
40
|
+
// this.TPY_local_total = state_permit_source_pollutant.TPY_local_total
|
|
41
|
+
// this.LBPH_text = state_permit_source_pollutant.LBPH_text
|
|
42
|
+
// this.LBPH = state_permit_source_pollutant.LBPH
|
|
43
|
+
// this.LBPH_global_rank = state_permit_source_pollutant.LBPH_global_rank
|
|
44
|
+
// this.LBPH_global_total = state_permit_source_pollutant.LBPH_global_total
|
|
45
|
+
// this.LBPH_local_rank = state_permit_source_pollutant.LBPH_local_rank
|
|
46
|
+
// this.LBPH_local_total = state_permit_source_pollutant.LBPH_local_total
|
|
47
|
+
// }
|
|
48
|
+
// static is(state_permit_source_pollutant : any) : state_permit_source_pollutant is NCStateAirPermitSourcePollutant {
|
|
49
|
+
// return (
|
|
50
|
+
// NCStatePermitSourcePollutant.is(state_permit_source_pollutant) &&
|
|
51
|
+
// typeof state_permit_source_pollutant.TPY_text === "string" &&
|
|
52
|
+
// (state_permit_source_pollutant.TPY === undefined || typeof state_permit_source_pollutant.TPY === "number" && !isNaN(state_permit_source_pollutant.TPY)) &&
|
|
53
|
+
// (state_permit_source_pollutant.TPY_global_rank === undefined || typeof state_permit_source_pollutant.TPY_global_rank === "number" && !isNaN(state_permit_source_pollutant.TPY_global_rank)) &&
|
|
54
|
+
// (state_permit_source_pollutant.TPY_global_total === undefined || typeof state_permit_source_pollutant.TPY_global_total === "number" && !isNaN(state_permit_source_pollutant.TPY_global_total)) &&
|
|
55
|
+
// (state_permit_source_pollutant.TPY_local_rank === undefined || typeof state_permit_source_pollutant.TPY_local_rank === "number" && !isNaN(state_permit_source_pollutant.TPY_local_rank)) &&
|
|
56
|
+
// (state_permit_source_pollutant.TPY_local_total === undefined || typeof state_permit_source_pollutant.TPY_local_total === "number" && !isNaN(state_permit_source_pollutant.TPY_local_total)) &&
|
|
57
|
+
// typeof state_permit_source_pollutant.LBPH_text === "string" &&
|
|
58
|
+
// (state_permit_source_pollutant.LBPH === undefined || typeof state_permit_source_pollutant.LBPH === "number" && !isNaN(state_permit_source_pollutant.LBPH)) &&
|
|
59
|
+
// (state_permit_source_pollutant.LBPH_global_rank === undefined || typeof state_permit_source_pollutant.LBPH_global_rank === "number" && !isNaN(state_permit_source_pollutant.LBPH_global_rank)) &&
|
|
60
|
+
// (state_permit_source_pollutant.LBPH_global_total === undefined || typeof state_permit_source_pollutant.LBPH_global_total === "number" && !isNaN(state_permit_source_pollutant.LBPH_global_total)) &&
|
|
61
|
+
// (state_permit_source_pollutant.LBPH_local_rank === undefined || typeof state_permit_source_pollutant.LBPH_local_rank === "number" && !isNaN(state_permit_source_pollutant.LBPH_local_rank)) &&
|
|
62
|
+
// (state_permit_source_pollutant.LBPH_local_total === undefined || typeof state_permit_source_pollutant.LBPH_local_total === "number" && !isNaN(state_permit_source_pollutant.LBPH_local_total))
|
|
63
|
+
// )
|
|
64
|
+
// }
|
|
65
|
+
// }
|
|
66
|
+
export class NCStateWaterPermitSourcePollutant extends NCStatePermitSourcePollutant {
|
|
67
|
+
freq;
|
|
68
|
+
constructor(state_permit_source_pollutant) {
|
|
69
|
+
if (!NCStateWaterPermitSourcePollutant.is(state_permit_source_pollutant)) {
|
|
70
|
+
throw Error("Invalid input.");
|
|
71
|
+
}
|
|
72
|
+
super(state_permit_source_pollutant);
|
|
73
|
+
this.freq = state_permit_source_pollutant.freq;
|
|
74
|
+
}
|
|
75
|
+
static is(state_permit_source_pollutant) {
|
|
76
|
+
return (NCStatePermitSourcePollutant.is(state_permit_source_pollutant) &&
|
|
77
|
+
(state_permit_source_pollutant.freq === undefined || typeof state_permit_source_pollutant.freq === "string"));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -24,6 +24,11 @@ export declare class StatePermit {
|
|
|
24
24
|
constructor(state_permit: StatePermit);
|
|
25
25
|
static is(state_permit: any): state_permit is StatePermit;
|
|
26
26
|
}
|
|
27
|
+
export declare class StateWaterPermit extends StatePermit {
|
|
28
|
+
readonly freq_fish_tissue?: string;
|
|
29
|
+
constructor(state_permit: StateWaterPermit);
|
|
30
|
+
static is(state_permit: any): state_permit is StateWaterPermit;
|
|
31
|
+
}
|
|
27
32
|
export declare class StatePermitAux extends StatePermit {
|
|
28
33
|
readonly state_facility: StateFacility;
|
|
29
34
|
constructor(state_permit: StatePermitAux);
|
|
@@ -65,6 +65,21 @@ export class StatePermit {
|
|
|
65
65
|
(state_permit.comments === undefined || Array.isArray(state_permit.comments) && state_permit.comments.every(StatePermitComment.is)));
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
+
export class StateWaterPermit extends StatePermit {
|
|
69
|
+
freq_fish_tissue;
|
|
70
|
+
constructor(state_permit) {
|
|
71
|
+
if (!StateWaterPermit.is(state_permit)) {
|
|
72
|
+
throw Error("Invalid input.");
|
|
73
|
+
}
|
|
74
|
+
super(state_permit);
|
|
75
|
+
this.freq_fish_tissue = state_permit.freq_fish_tissue;
|
|
76
|
+
}
|
|
77
|
+
static is(state_permit) {
|
|
78
|
+
return (StatePermit.is(state_permit) &&
|
|
79
|
+
state_permit.type_id === "WATER-NPDES" &&
|
|
80
|
+
(state_permit.freq_fish_tissue === undefined || typeof state_permit.freq_fish_tissue === "string"));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
68
83
|
export class StatePermitAux extends StatePermit {
|
|
69
84
|
state_facility;
|
|
70
85
|
constructor(state_permit) {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * from "./types/state_permits/KY/KYStatePermitSourcePollutant"
|
|
|
25
25
|
export * from "./types/state_permits/NC/NCStateFacility"
|
|
26
26
|
export * from "./types/state_permits/NC/NCStatePermit"
|
|
27
27
|
export * from "./types/state_permits/NC/NCStatePermitSource"
|
|
28
|
+
export * from "./types/state_permits/NC/NCStatePermitSourcePollutant"
|
|
28
29
|
|
|
29
30
|
export * from "./types/state_permits/TN/TNStateFacility"
|
|
30
31
|
export * from "./types/state_permits/TN/TNStatePermit"
|
|
@@ -21,24 +21,4 @@ export class ARStatePermit extends StatePermit {
|
|
|
21
21
|
(state_permit.void_date === undefined || typeof state_permit.void_date === "string")
|
|
22
22
|
)
|
|
23
23
|
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export class ARStateWaterPermit extends ARStatePermit {
|
|
27
|
-
readonly freq_fish_tissue? : string
|
|
28
|
-
|
|
29
|
-
constructor(state_permit : ARStateWaterPermit) {
|
|
30
|
-
if (!ARStateWaterPermit.is(state_permit)) {
|
|
31
|
-
throw Error("Invalid input.")
|
|
32
|
-
}
|
|
33
|
-
super(state_permit)
|
|
34
|
-
this.freq_fish_tissue = state_permit.freq_fish_tissue
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
static is(state_permit : any) : state_permit is ARStateWaterPermit {
|
|
38
|
-
return (
|
|
39
|
-
ARStatePermit.is(state_permit) &&
|
|
40
|
-
state_permit.type_id === "WATER-NPDES" &&
|
|
41
|
-
(state_permit.freq_fish_tissue === undefined || typeof state_permit.freq_fish_tissue === "string")
|
|
42
|
-
)
|
|
43
|
-
}
|
|
44
24
|
}
|
|
@@ -22,24 +22,4 @@ export class KYStatePermit extends StatePermit {
|
|
|
22
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"))
|
|
23
23
|
)
|
|
24
24
|
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export class KYStateWaterPermit extends KYStatePermit {
|
|
28
|
-
readonly freq_fish_tissue? : string
|
|
29
|
-
|
|
30
|
-
constructor(state_permit : KYStateWaterPermit) {
|
|
31
|
-
if (!KYStateWaterPermit.is(state_permit)) {
|
|
32
|
-
throw Error("Invalid input.")
|
|
33
|
-
}
|
|
34
|
-
super(state_permit)
|
|
35
|
-
this.freq_fish_tissue = state_permit.freq_fish_tissue
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
static is(state_permit : any) : state_permit is KYStateWaterPermit {
|
|
39
|
-
return (
|
|
40
|
-
KYStatePermit.is(state_permit) &&
|
|
41
|
-
state_permit.type_id === "WATER-NPDES" &&
|
|
42
|
-
(state_permit.freq_fish_tissue === undefined || typeof state_permit.freq_fish_tissue === "string")
|
|
43
|
-
)
|
|
44
|
-
}
|
|
45
25
|
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { is_state_id, StateID } from "../../State"
|
|
2
|
+
import { StatePermitSourcePollutant } from "../StatePermitSourcePollutant"
|
|
3
|
+
|
|
4
|
+
export class NCStatePermitSourcePollutant extends StatePermitSourcePollutant {
|
|
5
|
+
readonly state_id : "NC"
|
|
6
|
+
readonly [x : string] : any
|
|
7
|
+
|
|
8
|
+
constructor(state_permit_source_pollutant : NCStatePermitSourcePollutant) {
|
|
9
|
+
if (!NCStatePermitSourcePollutant.is(state_permit_source_pollutant)) {
|
|
10
|
+
throw Error("Invalid input.")
|
|
11
|
+
}
|
|
12
|
+
super(state_permit_source_pollutant)
|
|
13
|
+
this.state_id = state_permit_source_pollutant.state_id
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
static is(state_permit_source_pollutant : any) : state_permit_source_pollutant is NCStatePermitSourcePollutant {
|
|
17
|
+
return (
|
|
18
|
+
StatePermitSourcePollutant.is(state_permit_source_pollutant) &&
|
|
19
|
+
state_permit_source_pollutant.state_id === "NC"
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// export class NCStateAirPermitSourcePollutant extends NCStatePermitSourcePollutant {
|
|
25
|
+
// readonly TPY_text : string
|
|
26
|
+
// readonly TPY? : number
|
|
27
|
+
// readonly TPY_global_rank? : number
|
|
28
|
+
// readonly TPY_global_total? : number
|
|
29
|
+
// readonly TPY_local_rank? : number
|
|
30
|
+
// readonly TPY_local_total? : number
|
|
31
|
+
// readonly LBPH_text : string
|
|
32
|
+
// readonly LBPH? : number
|
|
33
|
+
// readonly LBPH_global_rank? : number
|
|
34
|
+
// readonly LBPH_global_total? : number
|
|
35
|
+
// readonly LBPH_local_rank? : number
|
|
36
|
+
// readonly LBPH_local_total? : number
|
|
37
|
+
// readonly [x : string] : any
|
|
38
|
+
|
|
39
|
+
// constructor(state_permit_source_pollutant : NCStateAirPermitSourcePollutant) {
|
|
40
|
+
// if (!NCStateAirPermitSourcePollutant.is(state_permit_source_pollutant)) {
|
|
41
|
+
// throw Error("Invalid input.")
|
|
42
|
+
// }
|
|
43
|
+
// super(state_permit_source_pollutant)
|
|
44
|
+
// this.TPY_text = state_permit_source_pollutant.TPY_text
|
|
45
|
+
// this.TPY = state_permit_source_pollutant.TPY
|
|
46
|
+
// this.TPY_global_rank = state_permit_source_pollutant.TPY_global_rank
|
|
47
|
+
// this.TPY_global_total = state_permit_source_pollutant.TPY_global_total
|
|
48
|
+
// this.TPY_local_rank = state_permit_source_pollutant.TPY_local_rank
|
|
49
|
+
// this.TPY_local_total = state_permit_source_pollutant.TPY_local_total
|
|
50
|
+
// this.LBPH_text = state_permit_source_pollutant.LBPH_text
|
|
51
|
+
// this.LBPH = state_permit_source_pollutant.LBPH
|
|
52
|
+
// this.LBPH_global_rank = state_permit_source_pollutant.LBPH_global_rank
|
|
53
|
+
// this.LBPH_global_total = state_permit_source_pollutant.LBPH_global_total
|
|
54
|
+
// this.LBPH_local_rank = state_permit_source_pollutant.LBPH_local_rank
|
|
55
|
+
// this.LBPH_local_total = state_permit_source_pollutant.LBPH_local_total
|
|
56
|
+
// }
|
|
57
|
+
|
|
58
|
+
// static is(state_permit_source_pollutant : any) : state_permit_source_pollutant is NCStateAirPermitSourcePollutant {
|
|
59
|
+
// return (
|
|
60
|
+
// NCStatePermitSourcePollutant.is(state_permit_source_pollutant) &&
|
|
61
|
+
// typeof state_permit_source_pollutant.TPY_text === "string" &&
|
|
62
|
+
// (state_permit_source_pollutant.TPY === undefined || typeof state_permit_source_pollutant.TPY === "number" && !isNaN(state_permit_source_pollutant.TPY)) &&
|
|
63
|
+
// (state_permit_source_pollutant.TPY_global_rank === undefined || typeof state_permit_source_pollutant.TPY_global_rank === "number" && !isNaN(state_permit_source_pollutant.TPY_global_rank)) &&
|
|
64
|
+
// (state_permit_source_pollutant.TPY_global_total === undefined || typeof state_permit_source_pollutant.TPY_global_total === "number" && !isNaN(state_permit_source_pollutant.TPY_global_total)) &&
|
|
65
|
+
// (state_permit_source_pollutant.TPY_local_rank === undefined || typeof state_permit_source_pollutant.TPY_local_rank === "number" && !isNaN(state_permit_source_pollutant.TPY_local_rank)) &&
|
|
66
|
+
// (state_permit_source_pollutant.TPY_local_total === undefined || typeof state_permit_source_pollutant.TPY_local_total === "number" && !isNaN(state_permit_source_pollutant.TPY_local_total)) &&
|
|
67
|
+
// typeof state_permit_source_pollutant.LBPH_text === "string" &&
|
|
68
|
+
// (state_permit_source_pollutant.LBPH === undefined || typeof state_permit_source_pollutant.LBPH === "number" && !isNaN(state_permit_source_pollutant.LBPH)) &&
|
|
69
|
+
// (state_permit_source_pollutant.LBPH_global_rank === undefined || typeof state_permit_source_pollutant.LBPH_global_rank === "number" && !isNaN(state_permit_source_pollutant.LBPH_global_rank)) &&
|
|
70
|
+
// (state_permit_source_pollutant.LBPH_global_total === undefined || typeof state_permit_source_pollutant.LBPH_global_total === "number" && !isNaN(state_permit_source_pollutant.LBPH_global_total)) &&
|
|
71
|
+
// (state_permit_source_pollutant.LBPH_local_rank === undefined || typeof state_permit_source_pollutant.LBPH_local_rank === "number" && !isNaN(state_permit_source_pollutant.LBPH_local_rank)) &&
|
|
72
|
+
// (state_permit_source_pollutant.LBPH_local_total === undefined || typeof state_permit_source_pollutant.LBPH_local_total === "number" && !isNaN(state_permit_source_pollutant.LBPH_local_total))
|
|
73
|
+
// )
|
|
74
|
+
// }
|
|
75
|
+
// }
|
|
76
|
+
|
|
77
|
+
export class NCStateWaterPermitSourcePollutant extends NCStatePermitSourcePollutant {
|
|
78
|
+
readonly freq? : string
|
|
79
|
+
readonly [x : string] : any
|
|
80
|
+
|
|
81
|
+
constructor(state_permit_source_pollutant : NCStateWaterPermitSourcePollutant) {
|
|
82
|
+
if (!NCStateWaterPermitSourcePollutant.is(state_permit_source_pollutant)) {
|
|
83
|
+
throw Error("Invalid input.")
|
|
84
|
+
}
|
|
85
|
+
super(state_permit_source_pollutant)
|
|
86
|
+
this.freq = state_permit_source_pollutant.freq
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
static is(state_permit_source_pollutant : any) : state_permit_source_pollutant is NCStateWaterPermitSourcePollutant {
|
|
90
|
+
return (
|
|
91
|
+
NCStatePermitSourcePollutant.is(state_permit_source_pollutant) &&
|
|
92
|
+
(state_permit_source_pollutant.freq === undefined || typeof state_permit_source_pollutant.freq === "string")
|
|
93
|
+
)
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -78,6 +78,26 @@ export class StatePermit {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
export class StateWaterPermit extends StatePermit {
|
|
82
|
+
readonly freq_fish_tissue? : string
|
|
83
|
+
|
|
84
|
+
constructor(state_permit : StateWaterPermit) {
|
|
85
|
+
if (!StateWaterPermit.is(state_permit)) {
|
|
86
|
+
throw Error("Invalid input.")
|
|
87
|
+
}
|
|
88
|
+
super(state_permit)
|
|
89
|
+
this.freq_fish_tissue = state_permit.freq_fish_tissue
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
static is(state_permit : any) : state_permit is StateWaterPermit {
|
|
93
|
+
return (
|
|
94
|
+
StatePermit.is(state_permit) &&
|
|
95
|
+
state_permit.type_id === "WATER-NPDES" &&
|
|
96
|
+
(state_permit.freq_fish_tissue === undefined || typeof state_permit.freq_fish_tissue === "string")
|
|
97
|
+
)
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
81
101
|
export class StatePermitAux extends StatePermit {
|
|
82
102
|
readonly state_facility : StateFacility
|
|
83
103
|
|