triage-types 1.0.5 → 1.0.6
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.
|
@@ -9,6 +9,9 @@ export declare class ARStatePermitSource {
|
|
|
9
9
|
readonly description?: string;
|
|
10
10
|
readonly is_rice?: string;
|
|
11
11
|
readonly pollutant_ids?: string[];
|
|
12
|
+
readonly power_quantity?: number;
|
|
13
|
+
readonly power_unit?: string;
|
|
14
|
+
readonly power?: number;
|
|
12
15
|
readonly [x: string]: any;
|
|
13
16
|
constructor(state_permit_source: ARStatePermitSource);
|
|
14
17
|
static is(state_permit_source: any): state_permit_source is ARStatePermitSource;
|
|
@@ -9,6 +9,9 @@ export class ARStatePermitSource {
|
|
|
9
9
|
description;
|
|
10
10
|
is_rice;
|
|
11
11
|
pollutant_ids;
|
|
12
|
+
power_quantity;
|
|
13
|
+
power_unit;
|
|
14
|
+
power;
|
|
12
15
|
constructor(state_permit_source) {
|
|
13
16
|
if (!ARStatePermitSource.is(state_permit_source)) {
|
|
14
17
|
throw Error("Invalid input.");
|
|
@@ -21,6 +24,9 @@ export class ARStatePermitSource {
|
|
|
21
24
|
this.description = state_permit_source.description;
|
|
22
25
|
this.is_rice = state_permit_source.is_rice;
|
|
23
26
|
this.pollutant_ids = state_permit_source.pollutant_ids;
|
|
27
|
+
this.power_quantity = state_permit_source.power_quantity;
|
|
28
|
+
this.power_unit = state_permit_source.power_unit;
|
|
29
|
+
this.power = state_permit_source.power;
|
|
24
30
|
}
|
|
25
31
|
static is(state_permit_source) {
|
|
26
32
|
return (state_permit_source !== undefined &&
|
|
@@ -31,7 +37,10 @@ export class ARStatePermitSource {
|
|
|
31
37
|
Array.isArray(state_permit_source.page_nums) && state_permit_source.page_nums.every((page_num) => typeof page_num === "number") &&
|
|
32
38
|
(state_permit_source.description === undefined || typeof state_permit_source.description === "string") &&
|
|
33
39
|
(state_permit_source.is_rice === undefined || typeof state_permit_source.is_rice === "string") &&
|
|
34
|
-
(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"))
|
|
40
|
+
(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")) &&
|
|
41
|
+
(state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
|
|
42
|
+
(state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
|
|
43
|
+
(state_permit_source.power === undefined || typeof state_permit_source.power === "number"));
|
|
35
44
|
}
|
|
36
45
|
}
|
|
37
46
|
export class ARStatePermitSourceAux extends ARStatePermitSource {
|
package/package.json
CHANGED
|
@@ -10,6 +10,9 @@ export class ARStatePermitSource {
|
|
|
10
10
|
readonly description? : string
|
|
11
11
|
readonly is_rice? : string
|
|
12
12
|
readonly pollutant_ids? : string[]
|
|
13
|
+
readonly power_quantity? : number
|
|
14
|
+
readonly power_unit? : string
|
|
15
|
+
readonly power? : number
|
|
13
16
|
readonly [x : string] : any
|
|
14
17
|
|
|
15
18
|
constructor(state_permit_source : ARStatePermitSource) {
|
|
@@ -24,6 +27,9 @@ export class ARStatePermitSource {
|
|
|
24
27
|
this.description = state_permit_source.description
|
|
25
28
|
this.is_rice = state_permit_source.is_rice
|
|
26
29
|
this.pollutant_ids = state_permit_source.pollutant_ids
|
|
30
|
+
this.power_quantity = state_permit_source.power_quantity
|
|
31
|
+
this.power_unit = state_permit_source.power_unit
|
|
32
|
+
this.power = state_permit_source.power
|
|
27
33
|
}
|
|
28
34
|
|
|
29
35
|
static is(state_permit_source : any) : state_permit_source is ARStatePermitSource {
|
|
@@ -36,7 +42,10 @@ export class ARStatePermitSource {
|
|
|
36
42
|
Array.isArray(state_permit_source.page_nums) && state_permit_source.page_nums.every((page_num : any) => typeof page_num === "number") &&
|
|
37
43
|
(state_permit_source.description === undefined || typeof state_permit_source.description === "string") &&
|
|
38
44
|
(state_permit_source.is_rice === undefined || typeof state_permit_source.is_rice === "string") &&
|
|
39
|
-
(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"))
|
|
45
|
+
(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")) &&
|
|
46
|
+
(state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
|
|
47
|
+
(state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
|
|
48
|
+
(state_permit_source.power === undefined || typeof state_permit_source.power === "number")
|
|
40
49
|
)
|
|
41
50
|
}
|
|
42
51
|
}
|