triage-types 1.0.7 → 1.0.8
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.
|
@@ -12,6 +12,8 @@ export declare class ARStatePermitSource {
|
|
|
12
12
|
readonly power_quantity?: number;
|
|
13
13
|
readonly power_unit?: string;
|
|
14
14
|
readonly power_kw?: number;
|
|
15
|
+
readonly fuel?: string;
|
|
16
|
+
readonly is_emergency?: boolean;
|
|
15
17
|
readonly [x: string]: any;
|
|
16
18
|
constructor(state_permit_source: ARStatePermitSource);
|
|
17
19
|
static is(state_permit_source: any): state_permit_source is ARStatePermitSource;
|
|
@@ -12,6 +12,8 @@ export class ARStatePermitSource {
|
|
|
12
12
|
power_quantity;
|
|
13
13
|
power_unit;
|
|
14
14
|
power_kw;
|
|
15
|
+
fuel;
|
|
16
|
+
is_emergency;
|
|
15
17
|
constructor(state_permit_source) {
|
|
16
18
|
if (!ARStatePermitSource.is(state_permit_source)) {
|
|
17
19
|
throw Error("Invalid input.");
|
|
@@ -27,6 +29,8 @@ export class ARStatePermitSource {
|
|
|
27
29
|
this.power_quantity = state_permit_source.power_quantity;
|
|
28
30
|
this.power_unit = state_permit_source.power_unit;
|
|
29
31
|
this.power_kw = state_permit_source.power_kw;
|
|
32
|
+
this.fuel = state_permit_source.fuel;
|
|
33
|
+
this.is_emergency = state_permit_source.is_emergency;
|
|
30
34
|
}
|
|
31
35
|
static is(state_permit_source) {
|
|
32
36
|
return (state_permit_source !== undefined &&
|
|
@@ -40,7 +44,9 @@ export class ARStatePermitSource {
|
|
|
40
44
|
(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
45
|
(state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
|
|
42
46
|
(state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
|
|
43
|
-
(state_permit_source.power_kw === undefined || typeof state_permit_source.power_kw === "number")
|
|
47
|
+
(state_permit_source.power_kw === undefined || typeof state_permit_source.power_kw === "number") &&
|
|
48
|
+
(state_permit_source.fuel === undefined || typeof state_permit_source.fuel === "string") &&
|
|
49
|
+
(state_permit_source.is_emergency === undefined || typeof state_permit_source.is_emergency === "string"));
|
|
44
50
|
}
|
|
45
51
|
}
|
|
46
52
|
export class ARStatePermitSourceAux extends ARStatePermitSource {
|
package/package.json
CHANGED
|
@@ -13,6 +13,8 @@ export class ARStatePermitSource {
|
|
|
13
13
|
readonly power_quantity? : number
|
|
14
14
|
readonly power_unit? : string
|
|
15
15
|
readonly power_kw? : number
|
|
16
|
+
readonly fuel? : string
|
|
17
|
+
readonly is_emergency? : boolean
|
|
16
18
|
readonly [x : string] : any
|
|
17
19
|
|
|
18
20
|
constructor(state_permit_source : ARStatePermitSource) {
|
|
@@ -30,6 +32,8 @@ export class ARStatePermitSource {
|
|
|
30
32
|
this.power_quantity = state_permit_source.power_quantity
|
|
31
33
|
this.power_unit = state_permit_source.power_unit
|
|
32
34
|
this.power_kw = state_permit_source.power_kw
|
|
35
|
+
this.fuel = state_permit_source.fuel
|
|
36
|
+
this.is_emergency = state_permit_source.is_emergency
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
static is(state_permit_source : any) : state_permit_source is ARStatePermitSource {
|
|
@@ -45,7 +49,9 @@ export class ARStatePermitSource {
|
|
|
45
49
|
(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
50
|
(state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
|
|
47
51
|
(state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
|
|
48
|
-
(state_permit_source.power_kw === undefined || typeof state_permit_source.power_kw === "number")
|
|
52
|
+
(state_permit_source.power_kw === undefined || typeof state_permit_source.power_kw === "number") &&
|
|
53
|
+
(state_permit_source.fuel === undefined || typeof state_permit_source.fuel === "string") &&
|
|
54
|
+
(state_permit_source.is_emergency === undefined || typeof state_permit_source.is_emergency === "string")
|
|
49
55
|
)
|
|
50
56
|
}
|
|
51
57
|
}
|