triage-types 1.0.6 → 1.0.7

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.
@@ -11,7 +11,7 @@ export declare class ARStatePermitSource {
11
11
  readonly pollutant_ids?: string[];
12
12
  readonly power_quantity?: number;
13
13
  readonly power_unit?: string;
14
- readonly power?: number;
14
+ readonly power_kw?: number;
15
15
  readonly [x: string]: any;
16
16
  constructor(state_permit_source: ARStatePermitSource);
17
17
  static is(state_permit_source: any): state_permit_source is ARStatePermitSource;
@@ -11,7 +11,7 @@ export class ARStatePermitSource {
11
11
  pollutant_ids;
12
12
  power_quantity;
13
13
  power_unit;
14
- power;
14
+ power_kw;
15
15
  constructor(state_permit_source) {
16
16
  if (!ARStatePermitSource.is(state_permit_source)) {
17
17
  throw Error("Invalid input.");
@@ -26,7 +26,7 @@ export class ARStatePermitSource {
26
26
  this.pollutant_ids = state_permit_source.pollutant_ids;
27
27
  this.power_quantity = state_permit_source.power_quantity;
28
28
  this.power_unit = state_permit_source.power_unit;
29
- this.power = state_permit_source.power;
29
+ this.power_kw = state_permit_source.power_kw;
30
30
  }
31
31
  static is(state_permit_source) {
32
32
  return (state_permit_source !== undefined &&
@@ -40,7 +40,7 @@ export class ARStatePermitSource {
40
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
41
  (state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
42
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"));
43
+ (state_permit_source.power_kw === undefined || typeof state_permit_source.power_kw === "number"));
44
44
  }
45
45
  }
46
46
  export class ARStatePermitSourceAux extends ARStatePermitSource {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triage-types",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -12,7 +12,7 @@ export class ARStatePermitSource {
12
12
  readonly pollutant_ids? : string[]
13
13
  readonly power_quantity? : number
14
14
  readonly power_unit? : string
15
- readonly power? : number
15
+ readonly power_kw? : number
16
16
  readonly [x : string] : any
17
17
 
18
18
  constructor(state_permit_source : ARStatePermitSource) {
@@ -29,7 +29,7 @@ export class ARStatePermitSource {
29
29
  this.pollutant_ids = state_permit_source.pollutant_ids
30
30
  this.power_quantity = state_permit_source.power_quantity
31
31
  this.power_unit = state_permit_source.power_unit
32
- this.power = state_permit_source.power
32
+ this.power_kw = state_permit_source.power_kw
33
33
  }
34
34
 
35
35
  static is(state_permit_source : any) : state_permit_source is ARStatePermitSource {
@@ -45,7 +45,7 @@ export class ARStatePermitSource {
45
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
46
  (state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
47
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")
48
+ (state_permit_source.power_kw === undefined || typeof state_permit_source.power_kw === "number")
49
49
  )
50
50
  }
51
51
  }