triage-types 1.0.27 → 1.0.29
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 ARStatePermitSource {
|
|
|
7
7
|
readonly state_permit_id: string;
|
|
8
8
|
readonly source_id: string;
|
|
9
9
|
readonly type_id: string;
|
|
10
|
+
readonly pollutant_ids?: string[];
|
|
10
11
|
readonly [x: string]: any;
|
|
11
12
|
constructor(state_permit_source: ARStatePermitSource);
|
|
12
13
|
static is(state_permit_source: any): state_permit_source is ARStatePermitSource;
|
|
@@ -19,8 +20,9 @@ export declare class ARStatePermitWaterSource extends ARStatePermitSource {
|
|
|
19
20
|
readonly type_id: string;
|
|
20
21
|
readonly description?: string;
|
|
21
22
|
readonly stage?: string;
|
|
22
|
-
readonly
|
|
23
|
-
readonly
|
|
23
|
+
readonly freq_wet_pp?: string;
|
|
24
|
+
readonly freq_wet_cd?: string;
|
|
25
|
+
readonly freq_fish_tissue?: string;
|
|
24
26
|
readonly [x: string]: any;
|
|
25
27
|
constructor(state_permit_source: ARStatePermitWaterSource);
|
|
26
28
|
static is(state_permit_source: any): state_permit_source is ARStatePermitWaterSource;
|
|
@@ -29,7 +31,6 @@ export declare class ARStatePermitAirSource extends ARStatePermitSource {
|
|
|
29
31
|
readonly page_nums: number[];
|
|
30
32
|
readonly description?: string;
|
|
31
33
|
readonly is_rice?: string;
|
|
32
|
-
readonly pollutant_ids?: string[];
|
|
33
34
|
readonly power_quantity?: number;
|
|
34
35
|
readonly power_unit?: string;
|
|
35
36
|
readonly power_kw?: number;
|
|
@@ -7,6 +7,7 @@ export class ARStatePermitSource {
|
|
|
7
7
|
state_permit_id;
|
|
8
8
|
source_id;
|
|
9
9
|
type_id;
|
|
10
|
+
pollutant_ids;
|
|
10
11
|
constructor(state_permit_source) {
|
|
11
12
|
if (!ARStatePermitSource.is(state_permit_source)) {
|
|
12
13
|
throw Error("Invalid input.");
|
|
@@ -16,6 +17,7 @@ export class ARStatePermitSource {
|
|
|
16
17
|
this.state_permit_id = state_permit_source.state_permit_id;
|
|
17
18
|
this.source_id = state_permit_source.source_id;
|
|
18
19
|
this.type_id = state_permit_source.type_id;
|
|
20
|
+
this.pollutant_ids = state_permit_source.pollutant_ids;
|
|
19
21
|
}
|
|
20
22
|
static is(state_permit_source) {
|
|
21
23
|
return (state_permit_source !== undefined &&
|
|
@@ -23,7 +25,8 @@ export class ARStatePermitSource {
|
|
|
23
25
|
is_state_id(state_permit_source.state_id) &&
|
|
24
26
|
typeof state_permit_source.state_permit_id === "string" &&
|
|
25
27
|
typeof state_permit_source.source_id === "string" &&
|
|
26
|
-
typeof state_permit_source.type_id === "string"
|
|
28
|
+
typeof state_permit_source.type_id === "string" &&
|
|
29
|
+
(state_permit_source.pollutant_ids === undefined || Array.isArray(state_permit_source.pollutant_ids) && state_permit_source.pollutant_ids.every((pollutant_id) => typeof pollutant_id === "string")));
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
32
|
export class ARStatePermitWaterSource extends ARStatePermitSource {
|
|
@@ -34,8 +37,9 @@ export class ARStatePermitWaterSource extends ARStatePermitSource {
|
|
|
34
37
|
type_id;
|
|
35
38
|
description;
|
|
36
39
|
stage;
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
freq_wet_pp;
|
|
41
|
+
freq_wet_cd;
|
|
42
|
+
freq_fish_tissue;
|
|
39
43
|
constructor(state_permit_source) {
|
|
40
44
|
if (!ARStatePermitWaterSource.is(state_permit_source)) {
|
|
41
45
|
throw Error("Invalid input.");
|
|
@@ -48,23 +52,24 @@ export class ARStatePermitWaterSource extends ARStatePermitSource {
|
|
|
48
52
|
this.type_id = state_permit_source.type_id;
|
|
49
53
|
this.description = state_permit_source.description;
|
|
50
54
|
this.stage = state_permit_source.stage;
|
|
51
|
-
this.
|
|
52
|
-
this.
|
|
55
|
+
this.freq_wet_pp = state_permit_source.freq_wet_pp;
|
|
56
|
+
this.freq_wet_cd = state_permit_source.freq_wet_cd;
|
|
57
|
+
this.freq_fish_tissue = state_permit_source.freq_fish_tissue;
|
|
53
58
|
}
|
|
54
59
|
static is(state_permit_source) {
|
|
55
60
|
return (ARStatePermitSource.is(state_permit_source) &&
|
|
56
61
|
state_permit_source.type_id === "WATER-NPDES" &&
|
|
57
62
|
(state_permit_source.description === undefined || typeof state_permit_source.description === "string") &&
|
|
58
63
|
(state_permit_source.stage === undefined || typeof state_permit_source.stage === "string") &&
|
|
59
|
-
(state_permit_source.
|
|
60
|
-
(state_permit_source.
|
|
64
|
+
(state_permit_source.freq_wet_pp === undefined || typeof state_permit_source.freq_wet_pp === "string") &&
|
|
65
|
+
(state_permit_source.freq_wet_cd === undefined || typeof state_permit_source.freq_wet_cd === "string") &&
|
|
66
|
+
(state_permit_source.freq_fish_tissue === undefined || typeof state_permit_source.freq_fish_tissue === "string"));
|
|
61
67
|
}
|
|
62
68
|
}
|
|
63
69
|
export class ARStatePermitAirSource extends ARStatePermitSource {
|
|
64
70
|
page_nums;
|
|
65
71
|
description;
|
|
66
72
|
is_rice;
|
|
67
|
-
pollutant_ids;
|
|
68
73
|
power_quantity;
|
|
69
74
|
power_unit;
|
|
70
75
|
power_kw;
|
|
@@ -80,7 +85,6 @@ export class ARStatePermitAirSource extends ARStatePermitSource {
|
|
|
80
85
|
this.page_nums = state_permit_source.page_nums;
|
|
81
86
|
this.description = state_permit_source.description;
|
|
82
87
|
this.is_rice = state_permit_source.is_rice;
|
|
83
|
-
this.pollutant_ids = state_permit_source.pollutant_ids;
|
|
84
88
|
this.power_quantity = state_permit_source.power_quantity;
|
|
85
89
|
this.power_unit = state_permit_source.power_unit;
|
|
86
90
|
this.power_kw = state_permit_source.power_kw;
|
|
@@ -95,7 +99,6 @@ export class ARStatePermitAirSource extends ARStatePermitSource {
|
|
|
95
99
|
Array.isArray(state_permit_source.page_nums) && state_permit_source.page_nums.every((page_num) => typeof page_num === "number") &&
|
|
96
100
|
(state_permit_source.description === undefined || typeof state_permit_source.description === "string") &&
|
|
97
101
|
(state_permit_source.is_rice === undefined || typeof state_permit_source.is_rice === "string") &&
|
|
98
|
-
(state_permit_source.pollutant_ids === undefined || Array.isArray(state_permit_source.pollutant_ids) && state_permit_source.pollutant_ids.every((pollutant_id) => typeof pollutant_id === "string")) &&
|
|
99
102
|
(state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
|
|
100
103
|
(state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
|
|
101
104
|
(state_permit_source.power_kw === undefined || typeof state_permit_source.power_kw === "number") &&
|
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@ export class ARStatePermitSource {
|
|
|
8
8
|
readonly state_permit_id : string
|
|
9
9
|
readonly source_id : string
|
|
10
10
|
readonly type_id : string
|
|
11
|
+
readonly pollutant_ids? : string[]
|
|
11
12
|
readonly [x : string] : any
|
|
12
13
|
|
|
13
14
|
constructor(state_permit_source : ARStatePermitSource) {
|
|
@@ -19,6 +20,7 @@ export class ARStatePermitSource {
|
|
|
19
20
|
this.state_permit_id = state_permit_source.state_permit_id
|
|
20
21
|
this.source_id = state_permit_source.source_id
|
|
21
22
|
this.type_id = state_permit_source.type_id
|
|
23
|
+
this.pollutant_ids = state_permit_source.pollutant_ids
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
static is(state_permit_source : any) : state_permit_source is ARStatePermitSource {
|
|
@@ -28,7 +30,8 @@ export class ARStatePermitSource {
|
|
|
28
30
|
is_state_id(state_permit_source.state_id) &&
|
|
29
31
|
typeof state_permit_source.state_permit_id === "string" &&
|
|
30
32
|
typeof state_permit_source.source_id === "string" &&
|
|
31
|
-
typeof state_permit_source.type_id === "string"
|
|
33
|
+
typeof state_permit_source.type_id === "string" &&
|
|
34
|
+
(state_permit_source.pollutant_ids === undefined || Array.isArray(state_permit_source.pollutant_ids) && state_permit_source.pollutant_ids.every((pollutant_id : any) => typeof pollutant_id === "string"))
|
|
32
35
|
)
|
|
33
36
|
}
|
|
34
37
|
}
|
|
@@ -41,8 +44,9 @@ export class ARStatePermitWaterSource extends ARStatePermitSource {
|
|
|
41
44
|
readonly type_id : string
|
|
42
45
|
readonly description? : string
|
|
43
46
|
readonly stage? : string
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
47
|
+
readonly freq_wet_pp? : string
|
|
48
|
+
readonly freq_wet_cd? : string
|
|
49
|
+
readonly freq_fish_tissue? : string
|
|
46
50
|
readonly [x : string] : any
|
|
47
51
|
|
|
48
52
|
constructor(state_permit_source : ARStatePermitWaterSource) {
|
|
@@ -57,8 +61,9 @@ export class ARStatePermitWaterSource extends ARStatePermitSource {
|
|
|
57
61
|
this.type_id = state_permit_source.type_id
|
|
58
62
|
this.description = state_permit_source.description
|
|
59
63
|
this.stage = state_permit_source.stage
|
|
60
|
-
this.
|
|
61
|
-
this.
|
|
64
|
+
this.freq_wet_pp = state_permit_source.freq_wet_pp
|
|
65
|
+
this.freq_wet_cd = state_permit_source.freq_wet_cd
|
|
66
|
+
this.freq_fish_tissue = state_permit_source.freq_fish_tissue
|
|
62
67
|
}
|
|
63
68
|
|
|
64
69
|
static is(state_permit_source : any) : state_permit_source is ARStatePermitWaterSource {
|
|
@@ -67,8 +72,9 @@ export class ARStatePermitWaterSource extends ARStatePermitSource {
|
|
|
67
72
|
state_permit_source.type_id === "WATER-NPDES" &&
|
|
68
73
|
(state_permit_source.description === undefined || typeof state_permit_source.description === "string") &&
|
|
69
74
|
(state_permit_source.stage === undefined || typeof state_permit_source.stage === "string") &&
|
|
70
|
-
(state_permit_source.
|
|
71
|
-
(state_permit_source.
|
|
75
|
+
(state_permit_source.freq_wet_pp === undefined || typeof state_permit_source.freq_wet_pp === "string") &&
|
|
76
|
+
(state_permit_source.freq_wet_cd === undefined || typeof state_permit_source.freq_wet_cd === "string") &&
|
|
77
|
+
(state_permit_source.freq_fish_tissue === undefined || typeof state_permit_source.freq_fish_tissue === "string")
|
|
72
78
|
)
|
|
73
79
|
}
|
|
74
80
|
}
|
|
@@ -77,7 +83,6 @@ export class ARStatePermitAirSource extends ARStatePermitSource {
|
|
|
77
83
|
readonly page_nums : number[]
|
|
78
84
|
readonly description? : string
|
|
79
85
|
readonly is_rice? : string
|
|
80
|
-
readonly pollutant_ids? : string[]
|
|
81
86
|
readonly power_quantity? : number
|
|
82
87
|
readonly power_unit? : string
|
|
83
88
|
readonly power_kw? : number
|
|
@@ -95,7 +100,6 @@ export class ARStatePermitAirSource extends ARStatePermitSource {
|
|
|
95
100
|
this.page_nums = state_permit_source.page_nums
|
|
96
101
|
this.description = state_permit_source.description
|
|
97
102
|
this.is_rice = state_permit_source.is_rice
|
|
98
|
-
this.pollutant_ids = state_permit_source.pollutant_ids
|
|
99
103
|
this.power_quantity = state_permit_source.power_quantity
|
|
100
104
|
this.power_unit = state_permit_source.power_unit
|
|
101
105
|
this.power_kw = state_permit_source.power_kw
|
|
@@ -112,7 +116,6 @@ export class ARStatePermitAirSource extends ARStatePermitSource {
|
|
|
112
116
|
Array.isArray(state_permit_source.page_nums) && state_permit_source.page_nums.every((page_num : any) => typeof page_num === "number") &&
|
|
113
117
|
(state_permit_source.description === undefined || typeof state_permit_source.description === "string") &&
|
|
114
118
|
(state_permit_source.is_rice === undefined || typeof state_permit_source.is_rice === "string") &&
|
|
115
|
-
(state_permit_source.pollutant_ids === undefined || Array.isArray(state_permit_source.pollutant_ids) && state_permit_source.pollutant_ids.every((pollutant_id : any) => typeof pollutant_id === "string")) &&
|
|
116
119
|
(state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
|
|
117
120
|
(state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
|
|
118
121
|
(state_permit_source.power_kw === undefined || typeof state_permit_source.power_kw === "number") &&
|