triage-types 1.0.27 → 1.0.28
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;
|
|
@@ -29,7 +30,6 @@ export declare class ARStatePermitAirSource extends ARStatePermitSource {
|
|
|
29
30
|
readonly page_nums: number[];
|
|
30
31
|
readonly description?: string;
|
|
31
32
|
readonly is_rice?: string;
|
|
32
|
-
readonly pollutant_ids?: string[];
|
|
33
33
|
readonly power_quantity?: number;
|
|
34
34
|
readonly power_unit?: string;
|
|
35
35
|
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 {
|
|
@@ -64,7 +67,6 @@ export class ARStatePermitAirSource extends ARStatePermitSource {
|
|
|
64
67
|
page_nums;
|
|
65
68
|
description;
|
|
66
69
|
is_rice;
|
|
67
|
-
pollutant_ids;
|
|
68
70
|
power_quantity;
|
|
69
71
|
power_unit;
|
|
70
72
|
power_kw;
|
|
@@ -80,7 +82,6 @@ export class ARStatePermitAirSource extends ARStatePermitSource {
|
|
|
80
82
|
this.page_nums = state_permit_source.page_nums;
|
|
81
83
|
this.description = state_permit_source.description;
|
|
82
84
|
this.is_rice = state_permit_source.is_rice;
|
|
83
|
-
this.pollutant_ids = state_permit_source.pollutant_ids;
|
|
84
85
|
this.power_quantity = state_permit_source.power_quantity;
|
|
85
86
|
this.power_unit = state_permit_source.power_unit;
|
|
86
87
|
this.power_kw = state_permit_source.power_kw;
|
|
@@ -95,7 +96,6 @@ export class ARStatePermitAirSource extends ARStatePermitSource {
|
|
|
95
96
|
Array.isArray(state_permit_source.page_nums) && state_permit_source.page_nums.every((page_num) => typeof page_num === "number") &&
|
|
96
97
|
(state_permit_source.description === undefined || typeof state_permit_source.description === "string") &&
|
|
97
98
|
(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
99
|
(state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
|
|
100
100
|
(state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
|
|
101
101
|
(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
|
}
|
|
@@ -77,7 +80,6 @@ export class ARStatePermitAirSource extends ARStatePermitSource {
|
|
|
77
80
|
readonly page_nums : number[]
|
|
78
81
|
readonly description? : string
|
|
79
82
|
readonly is_rice? : string
|
|
80
|
-
readonly pollutant_ids? : string[]
|
|
81
83
|
readonly power_quantity? : number
|
|
82
84
|
readonly power_unit? : string
|
|
83
85
|
readonly power_kw? : number
|
|
@@ -95,7 +97,6 @@ export class ARStatePermitAirSource extends ARStatePermitSource {
|
|
|
95
97
|
this.page_nums = state_permit_source.page_nums
|
|
96
98
|
this.description = state_permit_source.description
|
|
97
99
|
this.is_rice = state_permit_source.is_rice
|
|
98
|
-
this.pollutant_ids = state_permit_source.pollutant_ids
|
|
99
100
|
this.power_quantity = state_permit_source.power_quantity
|
|
100
101
|
this.power_unit = state_permit_source.power_unit
|
|
101
102
|
this.power_kw = state_permit_source.power_kw
|
|
@@ -112,7 +113,6 @@ export class ARStatePermitAirSource extends ARStatePermitSource {
|
|
|
112
113
|
Array.isArray(state_permit_source.page_nums) && state_permit_source.page_nums.every((page_num : any) => typeof page_num === "number") &&
|
|
113
114
|
(state_permit_source.description === undefined || typeof state_permit_source.description === "string") &&
|
|
114
115
|
(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
116
|
(state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
|
|
117
117
|
(state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
|
|
118
118
|
(state_permit_source.power_kw === undefined || typeof state_permit_source.power_kw === "number") &&
|