triage-types 1.0.53 → 1.0.55
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.
- package/dist/src/types/state_permits/KY/KYStatePermitSource.d.ts +3 -0
- package/dist/src/types/state_permits/KY/KYStatePermitSource.js +10 -1
- package/package.json +1 -1
- package/src/types/state_permits/KY/KYStatePermitSource.ts +10 -1
- package/dist/src/types/AR/ARStateFacility.d.ts +0 -19
- package/dist/src/types/AR/ARStateFacility.js +0 -48
- package/dist/src/types/AR/ARStatePermit.d.ts +0 -37
- package/dist/src/types/AR/ARStatePermit.js +0 -101
- package/dist/src/types/AR/ARStatePermitSource.d.ts +0 -50
- package/dist/src/types/AR/ARStatePermitSource.js +0 -128
- package/dist/src/types/AR/ARStatePermitSourcePollutant.d.ts +0 -34
- package/dist/src/types/AR/ARStatePermitSourcePollutant.js +0 -100
- package/dist/src/types/KY/KYStateFacility.d.ts +0 -14
- package/dist/src/types/KY/KYStateFacility.js +0 -35
- package/dist/src/types/KY/KYStatePermit.d.ts +0 -16
- package/dist/src/types/KY/KYStatePermit.js +0 -50
- package/dist/src/types/NC/NCStateFacility.d.ts +0 -14
- package/dist/src/types/NC/NCStateFacility.js +0 -35
- package/dist/src/types/NC/NCStatePermit.d.ts +0 -18
- package/dist/src/types/NC/NCStatePermit.js +0 -47
|
@@ -10,6 +10,9 @@ export declare class KYStateWaterPermitSource extends KYStatePermitSource {
|
|
|
10
10
|
readonly type_id: "WATER-NPDES";
|
|
11
11
|
readonly description?: string;
|
|
12
12
|
readonly stage?: string;
|
|
13
|
+
readonly freq_wet_pp?: string;
|
|
14
|
+
readonly freq_wet_cd?: string;
|
|
15
|
+
readonly freq_fish_tissue?: string;
|
|
13
16
|
readonly [x: string]: any;
|
|
14
17
|
constructor(state_permit_source: KYStateWaterPermitSource);
|
|
15
18
|
static is(state_permit_source: any): state_permit_source is KYStateWaterPermitSource;
|
|
@@ -18,6 +18,9 @@ export class KYStateWaterPermitSource extends KYStatePermitSource {
|
|
|
18
18
|
type_id;
|
|
19
19
|
description;
|
|
20
20
|
stage;
|
|
21
|
+
freq_wet_pp;
|
|
22
|
+
freq_wet_cd;
|
|
23
|
+
freq_fish_tissue;
|
|
21
24
|
constructor(state_permit_source) {
|
|
22
25
|
if (!KYStateWaterPermitSource.is(state_permit_source)) {
|
|
23
26
|
throw Error("Invalid input.");
|
|
@@ -27,11 +30,17 @@ export class KYStateWaterPermitSource extends KYStatePermitSource {
|
|
|
27
30
|
this.type_id = state_permit_source.type_id;
|
|
28
31
|
this.description = state_permit_source.description;
|
|
29
32
|
this.stage = state_permit_source.stage;
|
|
33
|
+
this.freq_wet_pp = state_permit_source.freq_wet_pp;
|
|
34
|
+
this.freq_wet_cd = state_permit_source.freq_wet_cd;
|
|
35
|
+
this.freq_fish_tissue = state_permit_source.freq_fish_tissue;
|
|
30
36
|
}
|
|
31
37
|
static is(state_permit_source) {
|
|
32
38
|
return (KYStatePermitSource.is(state_permit_source) &&
|
|
33
39
|
state_permit_source.type_id === "WATER-NPDES" &&
|
|
34
40
|
(state_permit_source.description === undefined || typeof state_permit_source.description === "string") &&
|
|
35
|
-
(state_permit_source.stage === undefined || typeof state_permit_source.stage === "string")
|
|
41
|
+
(state_permit_source.stage === undefined || typeof state_permit_source.stage === "string") &&
|
|
42
|
+
(state_permit_source.freq_wet_pp === undefined || typeof state_permit_source.freq_wet_pp === "string") &&
|
|
43
|
+
(state_permit_source.freq_wet_cd === undefined || typeof state_permit_source.freq_wet_cd === "string") &&
|
|
44
|
+
(state_permit_source.freq_fish_tissue === undefined || typeof state_permit_source.freq_fish_tissue === "string"));
|
|
36
45
|
}
|
|
37
46
|
}
|
package/package.json
CHANGED
|
@@ -25,6 +25,9 @@ export class KYStateWaterPermitSource extends KYStatePermitSource {
|
|
|
25
25
|
readonly type_id : "WATER-NPDES"
|
|
26
26
|
readonly description? : string
|
|
27
27
|
readonly stage? : string
|
|
28
|
+
readonly freq_wet_pp? : string
|
|
29
|
+
readonly freq_wet_cd? : string
|
|
30
|
+
readonly freq_fish_tissue? : string
|
|
28
31
|
readonly [x : string] : any
|
|
29
32
|
|
|
30
33
|
constructor(state_permit_source : KYStateWaterPermitSource) {
|
|
@@ -36,6 +39,9 @@ export class KYStateWaterPermitSource extends KYStatePermitSource {
|
|
|
36
39
|
this.type_id = state_permit_source.type_id
|
|
37
40
|
this.description = state_permit_source.description
|
|
38
41
|
this.stage = state_permit_source.stage
|
|
42
|
+
this.freq_wet_pp = state_permit_source.freq_wet_pp
|
|
43
|
+
this.freq_wet_cd = state_permit_source.freq_wet_cd
|
|
44
|
+
this.freq_fish_tissue = state_permit_source.freq_fish_tissue
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
static is(state_permit_source : any) : state_permit_source is KYStateWaterPermitSource {
|
|
@@ -43,7 +49,10 @@ export class KYStateWaterPermitSource extends KYStatePermitSource {
|
|
|
43
49
|
KYStatePermitSource.is(state_permit_source) &&
|
|
44
50
|
state_permit_source.type_id === "WATER-NPDES" &&
|
|
45
51
|
(state_permit_source.description === undefined || typeof state_permit_source.description === "string") &&
|
|
46
|
-
(state_permit_source.stage === undefined || typeof state_permit_source.stage === "string")
|
|
52
|
+
(state_permit_source.stage === undefined || typeof state_permit_source.stage === "string") &&
|
|
53
|
+
(state_permit_source.freq_wet_pp === undefined || typeof state_permit_source.freq_wet_pp === "string") &&
|
|
54
|
+
(state_permit_source.freq_wet_cd === undefined || typeof state_permit_source.freq_wet_cd === "string") &&
|
|
55
|
+
(state_permit_source.freq_fish_tissue === undefined || typeof state_permit_source.freq_fish_tissue === "string")
|
|
47
56
|
)
|
|
48
57
|
}
|
|
49
58
|
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { StateID } from "../State.js";
|
|
2
|
-
import { ARStatePermitAux } from "./ARStatePermit.js";
|
|
3
|
-
export declare class ARStateFacility {
|
|
4
|
-
readonly state_facility_id: string;
|
|
5
|
-
readonly state_id: StateID;
|
|
6
|
-
readonly facility_id: string;
|
|
7
|
-
readonly name: string;
|
|
8
|
-
readonly is_active: boolean;
|
|
9
|
-
readonly type_id: string;
|
|
10
|
-
readonly site_address_city?: string;
|
|
11
|
-
readonly [x: string]: any;
|
|
12
|
-
constructor(state_facility: ARStateFacility);
|
|
13
|
-
static is(state_facility: any): state_facility is ARStateFacility;
|
|
14
|
-
}
|
|
15
|
-
export declare class ARStateFacilityAux extends ARStateFacility {
|
|
16
|
-
readonly state_permits: ARStatePermitAux[];
|
|
17
|
-
constructor(state_facility: ARStateFacilityAux);
|
|
18
|
-
static is(state_facility: any): state_facility is ARStateFacilityAux;
|
|
19
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { is_state_id } from "../State.js";
|
|
2
|
-
import { ARStatePermitAux } from "./ARStatePermit.js";
|
|
3
|
-
export class ARStateFacility {
|
|
4
|
-
state_facility_id;
|
|
5
|
-
state_id;
|
|
6
|
-
facility_id;
|
|
7
|
-
name;
|
|
8
|
-
is_active;
|
|
9
|
-
type_id;
|
|
10
|
-
site_address_city;
|
|
11
|
-
constructor(state_facility) {
|
|
12
|
-
if (!ARStateFacility.is(state_facility)) {
|
|
13
|
-
throw Error("Invalid input.");
|
|
14
|
-
}
|
|
15
|
-
this.state_facility_id = state_facility.state_facility_id;
|
|
16
|
-
this.state_id = state_facility.state_id;
|
|
17
|
-
this.facility_id = state_facility.facility_id;
|
|
18
|
-
this.name = state_facility.name;
|
|
19
|
-
this.is_active = state_facility.is_active;
|
|
20
|
-
this.type_id = state_facility.type_id;
|
|
21
|
-
this.site_address_city = state_facility.site_address_city;
|
|
22
|
-
}
|
|
23
|
-
static is(state_facility) {
|
|
24
|
-
return (state_facility !== undefined &&
|
|
25
|
-
is_state_id(state_facility.state_id) && state_facility.state_id === "AR" &&
|
|
26
|
-
typeof state_facility.state_facility_id === "string" &&
|
|
27
|
-
typeof state_facility.facility_id === "string" &&
|
|
28
|
-
typeof state_facility.name === "string" &&
|
|
29
|
-
typeof state_facility.is_active === "boolean" &&
|
|
30
|
-
typeof state_facility.type_id === "string" &&
|
|
31
|
-
(state_facility.site_address_city === undefined || typeof state_facility.site_address_city === "string"));
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
export class ARStateFacilityAux extends ARStateFacility {
|
|
35
|
-
state_permits;
|
|
36
|
-
constructor(state_facility) {
|
|
37
|
-
if (!ARStateFacilityAux.is(state_facility)) {
|
|
38
|
-
throw Error("Invalid input.");
|
|
39
|
-
}
|
|
40
|
-
super(state_facility);
|
|
41
|
-
this.state_permits = state_facility.state_permits.map(state_permit => state_permit);
|
|
42
|
-
}
|
|
43
|
-
static is(state_facility) {
|
|
44
|
-
return (ARStateFacility.is(state_facility) &&
|
|
45
|
-
Array.isArray(state_facility.state_permits) &&
|
|
46
|
-
state_facility.state_permits.every(ARStatePermitAux.is));
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { StateID } from "../State.js";
|
|
2
|
-
import { ARStateFacility } from "./ARStateFacility.js";
|
|
3
|
-
export declare class ARStatePermit {
|
|
4
|
-
readonly state_permit_id: string;
|
|
5
|
-
readonly state_id: StateID;
|
|
6
|
-
readonly permit_id: string;
|
|
7
|
-
readonly state_facility_id: string;
|
|
8
|
-
readonly issue_date?: string;
|
|
9
|
-
readonly expiration_date?: string;
|
|
10
|
-
readonly void_date?: string;
|
|
11
|
-
readonly status?: string;
|
|
12
|
-
readonly type_id?: string;
|
|
13
|
-
readonly subtype_id?: string;
|
|
14
|
-
readonly s3_filename?: string;
|
|
15
|
-
readonly s3_text_filename?: string;
|
|
16
|
-
readonly source_ids?: string[];
|
|
17
|
-
readonly [x: string]: any;
|
|
18
|
-
constructor(state_permit: ARStatePermit);
|
|
19
|
-
static is(state_permit: any): state_permit is ARStatePermit;
|
|
20
|
-
}
|
|
21
|
-
export declare class ARStateAirPermit extends ARStatePermit {
|
|
22
|
-
readonly freq_fish_tissue?: string;
|
|
23
|
-
constructor(state_permit: ARStateAirPermit);
|
|
24
|
-
static is(state_permit: any): state_permit is ARStateAirPermit;
|
|
25
|
-
}
|
|
26
|
-
export declare class ARStateWaterPermit extends ARStatePermit {
|
|
27
|
-
readonly freq_fish_tissue?: string;
|
|
28
|
-
constructor(state_permit: ARStateWaterPermit);
|
|
29
|
-
static is(state_permit: any): state_permit is ARStateWaterPermit;
|
|
30
|
-
}
|
|
31
|
-
export declare class ARStatePermitAux extends ARStatePermit {
|
|
32
|
-
readonly state_facility: ARStateFacility;
|
|
33
|
-
readonly s3_url?: string;
|
|
34
|
-
readonly s3_text_url?: string;
|
|
35
|
-
constructor(state_permit: ARStatePermitAux);
|
|
36
|
-
static is(state_permit: any): state_permit is ARStatePermitAux;
|
|
37
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { is_state_id } from "../State.js";
|
|
2
|
-
import { ARStateFacility } from "./ARStateFacility.js";
|
|
3
|
-
export class ARStatePermit {
|
|
4
|
-
state_permit_id;
|
|
5
|
-
state_id;
|
|
6
|
-
permit_id;
|
|
7
|
-
state_facility_id;
|
|
8
|
-
issue_date;
|
|
9
|
-
expiration_date;
|
|
10
|
-
void_date;
|
|
11
|
-
status;
|
|
12
|
-
type_id;
|
|
13
|
-
subtype_id;
|
|
14
|
-
s3_filename;
|
|
15
|
-
s3_text_filename;
|
|
16
|
-
source_ids;
|
|
17
|
-
constructor(state_permit) {
|
|
18
|
-
if (!ARStatePermit.is(state_permit)) {
|
|
19
|
-
throw Error("Invalid input.");
|
|
20
|
-
}
|
|
21
|
-
this.state_permit_id = state_permit.state_permit_id;
|
|
22
|
-
this.state_id = state_permit.state_id;
|
|
23
|
-
this.permit_id = state_permit.permit_id;
|
|
24
|
-
this.state_facility_id = state_permit.state_facility_id;
|
|
25
|
-
this.issue_date = state_permit.issue_date;
|
|
26
|
-
this.expiration_date = state_permit.expiration_date;
|
|
27
|
-
this.void_date = state_permit.void_date;
|
|
28
|
-
this.status = state_permit.status;
|
|
29
|
-
this.type_id = state_permit.type_id;
|
|
30
|
-
this.subtype_id = state_permit.subtype_id;
|
|
31
|
-
this.s3_filename = state_permit.s3_filename;
|
|
32
|
-
this.s3_text_filename = state_permit.s3_text_filename;
|
|
33
|
-
this.source_ids = state_permit.source_ids;
|
|
34
|
-
}
|
|
35
|
-
static is(state_permit) {
|
|
36
|
-
return (state_permit !== undefined &&
|
|
37
|
-
typeof state_permit.state_permit_id === "string" &&
|
|
38
|
-
is_state_id(state_permit.state_id) && state_permit.state_id === "AR" &&
|
|
39
|
-
typeof state_permit.permit_id === "string" &&
|
|
40
|
-
typeof state_permit.state_facility_id === "string" &&
|
|
41
|
-
(state_permit.issue_date === undefined || typeof state_permit.issue_date === "string") &&
|
|
42
|
-
(state_permit.expiration_date === undefined || typeof state_permit.expiration_date === "string") &&
|
|
43
|
-
(state_permit.void_date === undefined || typeof state_permit.void_date === "string") &&
|
|
44
|
-
(state_permit.status === undefined || typeof state_permit.status === "string") &&
|
|
45
|
-
(state_permit.type_id === undefined || typeof state_permit.type_id === "string") &&
|
|
46
|
-
(state_permit.subtype_id === undefined || typeof state_permit.subtype_id === "string") &&
|
|
47
|
-
(state_permit.s3_filename === undefined || typeof state_permit.s3_filename === "string") &&
|
|
48
|
-
(state_permit.s3_text_filename === undefined || typeof state_permit.s3_text_filename === "string") &&
|
|
49
|
-
(state_permit.source_ids === undefined || Array.isArray(state_permit.source_ids) && state_permit.source_ids.map((source_id) => typeof source_id === "string")));
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
export class ARStateAirPermit extends ARStatePermit {
|
|
53
|
-
freq_fish_tissue;
|
|
54
|
-
constructor(state_permit) {
|
|
55
|
-
if (!ARStateAirPermit.is(state_permit)) {
|
|
56
|
-
throw Error("Invalid input.");
|
|
57
|
-
}
|
|
58
|
-
super(state_permit);
|
|
59
|
-
this.freq_fish_tissue = state_permit.freq_fish_tissue;
|
|
60
|
-
}
|
|
61
|
-
static is(state_permit) {
|
|
62
|
-
return (ARStatePermit.is(state_permit) &&
|
|
63
|
-
state_permit.type_id === "AIR" &&
|
|
64
|
-
(state_permit.freq_fish_tissue === undefined || typeof state_permit.freq_fish_tissue === "string"));
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
export class ARStateWaterPermit extends ARStatePermit {
|
|
68
|
-
freq_fish_tissue;
|
|
69
|
-
constructor(state_permit) {
|
|
70
|
-
if (!ARStateWaterPermit.is(state_permit)) {
|
|
71
|
-
throw Error("Invalid input.");
|
|
72
|
-
}
|
|
73
|
-
super(state_permit);
|
|
74
|
-
this.freq_fish_tissue = state_permit.freq_fish_tissue;
|
|
75
|
-
}
|
|
76
|
-
static is(state_permit) {
|
|
77
|
-
return (ARStatePermit.is(state_permit) &&
|
|
78
|
-
state_permit.type_id === "WATER-NPDES" &&
|
|
79
|
-
(state_permit.freq_fish_tissue === undefined || typeof state_permit.freq_fish_tissue === "string"));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
export class ARStatePermitAux extends ARStatePermit {
|
|
83
|
-
state_facility;
|
|
84
|
-
s3_url;
|
|
85
|
-
s3_text_url;
|
|
86
|
-
constructor(state_permit) {
|
|
87
|
-
if (!ARStatePermitAux.is(state_permit)) {
|
|
88
|
-
throw Error("Invalid input.");
|
|
89
|
-
}
|
|
90
|
-
super(state_permit);
|
|
91
|
-
this.state_facility = state_permit.state_facility;
|
|
92
|
-
this.s3_url = state_permit.s3_url;
|
|
93
|
-
this.s3_text_url = state_permit.s3_text_url;
|
|
94
|
-
}
|
|
95
|
-
static is(state_permit) {
|
|
96
|
-
return (ARStatePermit.is(state_permit) &&
|
|
97
|
-
ARStateFacility.is(state_permit.state_facility) &&
|
|
98
|
-
(state_permit.s3_url === undefined || typeof state_permit.s3_url === "string") &&
|
|
99
|
-
(state_permit.s3_text_url === undefined || typeof state_permit.s3_text_url === "string"));
|
|
100
|
-
}
|
|
101
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { StateID } from "../State.js";
|
|
2
|
-
import { ARStatePermitAux } from "./ARStatePermit.js";
|
|
3
|
-
import { ARStatePermitSourcePollutant } from "./ARStatePermitSourcePollutant.js";
|
|
4
|
-
export declare class ARStatePermitSource {
|
|
5
|
-
readonly state_permit_source_id: string;
|
|
6
|
-
readonly state_id: StateID;
|
|
7
|
-
readonly state_permit_id: string;
|
|
8
|
-
readonly source_id: string;
|
|
9
|
-
readonly type_id: string;
|
|
10
|
-
readonly pollutant_ids?: string[];
|
|
11
|
-
readonly [x: string]: any;
|
|
12
|
-
constructor(state_permit_source: ARStatePermitSource);
|
|
13
|
-
static is(state_permit_source: any): state_permit_source is ARStatePermitSource;
|
|
14
|
-
}
|
|
15
|
-
export declare class ARStateWaterPermitSource extends ARStatePermitSource {
|
|
16
|
-
readonly state_permit_source_id: string;
|
|
17
|
-
readonly state_id: StateID;
|
|
18
|
-
readonly state_permit_id: string;
|
|
19
|
-
readonly source_id: string;
|
|
20
|
-
readonly type_id: string;
|
|
21
|
-
readonly description?: string;
|
|
22
|
-
readonly stage?: string;
|
|
23
|
-
readonly freq_wet_pp?: string;
|
|
24
|
-
readonly freq_wet_cd?: string;
|
|
25
|
-
readonly freq_fish_tissue?: string;
|
|
26
|
-
readonly [x: string]: any;
|
|
27
|
-
constructor(state_permit_source: ARStateWaterPermitSource);
|
|
28
|
-
static is(state_permit_source: any): state_permit_source is ARStateWaterPermitSource;
|
|
29
|
-
}
|
|
30
|
-
export declare class ARStateAirPermitSource extends ARStatePermitSource {
|
|
31
|
-
readonly page_nums: number[];
|
|
32
|
-
readonly description?: string;
|
|
33
|
-
readonly is_rice?: string;
|
|
34
|
-
readonly power_quantity?: number;
|
|
35
|
-
readonly power_unit?: string;
|
|
36
|
-
readonly power_kw?: number;
|
|
37
|
-
readonly fuel_type_text?: string;
|
|
38
|
-
readonly fuel_type_id?: string;
|
|
39
|
-
readonly is_emergency?: string;
|
|
40
|
-
readonly local_state_permit_source_ids?: string[];
|
|
41
|
-
readonly [x: string]: any;
|
|
42
|
-
constructor(state_permit_source: ARStateAirPermitSource);
|
|
43
|
-
static is(state_permit_source: any): state_permit_source is ARStateAirPermitSource;
|
|
44
|
-
}
|
|
45
|
-
export declare class ARStatePermitSourceAux extends ARStatePermitSource {
|
|
46
|
-
readonly state_permit: ARStatePermitAux;
|
|
47
|
-
readonly state_permit_source_pollutants: ARStatePermitSourcePollutant[];
|
|
48
|
-
constructor(state_permit_source: ARStatePermitSourceAux);
|
|
49
|
-
static is(state_permit_source: any): state_permit_source is ARStatePermitSourceAux;
|
|
50
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { is_state_id } from "../State.js";
|
|
2
|
-
import { ARStatePermitAux } from "./ARStatePermit.js";
|
|
3
|
-
import { ARStatePermitSourcePollutant } from "./ARStatePermitSourcePollutant.js";
|
|
4
|
-
export class ARStatePermitSource {
|
|
5
|
-
state_permit_source_id;
|
|
6
|
-
state_id;
|
|
7
|
-
state_permit_id;
|
|
8
|
-
source_id;
|
|
9
|
-
type_id;
|
|
10
|
-
pollutant_ids;
|
|
11
|
-
constructor(state_permit_source) {
|
|
12
|
-
if (!ARStatePermitSource.is(state_permit_source)) {
|
|
13
|
-
throw Error("Invalid input.");
|
|
14
|
-
}
|
|
15
|
-
this.state_permit_source_id = state_permit_source.state_permit_source_id;
|
|
16
|
-
this.state_id = state_permit_source.state_id;
|
|
17
|
-
this.state_permit_id = state_permit_source.state_permit_id;
|
|
18
|
-
this.source_id = state_permit_source.source_id;
|
|
19
|
-
this.type_id = state_permit_source.type_id;
|
|
20
|
-
this.pollutant_ids = state_permit_source.pollutant_ids;
|
|
21
|
-
}
|
|
22
|
-
static is(state_permit_source) {
|
|
23
|
-
return (state_permit_source !== undefined &&
|
|
24
|
-
typeof state_permit_source.state_permit_source_id === "string" &&
|
|
25
|
-
is_state_id(state_permit_source.state_id) && state_permit_source.state_id === "AR" &&
|
|
26
|
-
typeof state_permit_source.state_permit_id === "string" &&
|
|
27
|
-
typeof state_permit_source.source_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")));
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
export class ARStateWaterPermitSource extends ARStatePermitSource {
|
|
33
|
-
state_permit_source_id;
|
|
34
|
-
state_id;
|
|
35
|
-
state_permit_id;
|
|
36
|
-
source_id;
|
|
37
|
-
type_id;
|
|
38
|
-
description;
|
|
39
|
-
stage;
|
|
40
|
-
freq_wet_pp;
|
|
41
|
-
freq_wet_cd;
|
|
42
|
-
freq_fish_tissue;
|
|
43
|
-
constructor(state_permit_source) {
|
|
44
|
-
if (!ARStateWaterPermitSource.is(state_permit_source)) {
|
|
45
|
-
throw Error("Invalid input.");
|
|
46
|
-
}
|
|
47
|
-
super(state_permit_source);
|
|
48
|
-
this.state_permit_source_id = state_permit_source.state_permit_source_id;
|
|
49
|
-
this.state_id = state_permit_source.state_id;
|
|
50
|
-
this.state_permit_id = state_permit_source.state_permit_id;
|
|
51
|
-
this.source_id = state_permit_source.source_id;
|
|
52
|
-
this.type_id = state_permit_source.type_id;
|
|
53
|
-
this.description = state_permit_source.description;
|
|
54
|
-
this.stage = state_permit_source.stage;
|
|
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;
|
|
58
|
-
}
|
|
59
|
-
static is(state_permit_source) {
|
|
60
|
-
return (ARStatePermitSource.is(state_permit_source) &&
|
|
61
|
-
state_permit_source.type_id === "WATER-NPDES" &&
|
|
62
|
-
(state_permit_source.description === undefined || typeof state_permit_source.description === "string") &&
|
|
63
|
-
(state_permit_source.stage === undefined || typeof state_permit_source.stage === "string") &&
|
|
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"));
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
export class ARStateAirPermitSource extends ARStatePermitSource {
|
|
70
|
-
page_nums;
|
|
71
|
-
description;
|
|
72
|
-
is_rice;
|
|
73
|
-
power_quantity;
|
|
74
|
-
power_unit;
|
|
75
|
-
power_kw;
|
|
76
|
-
fuel_type_text;
|
|
77
|
-
fuel_type_id;
|
|
78
|
-
is_emergency;
|
|
79
|
-
local_state_permit_source_ids;
|
|
80
|
-
constructor(state_permit_source) {
|
|
81
|
-
if (!ARStateAirPermitSource.is(state_permit_source)) {
|
|
82
|
-
throw Error("Invalid input.");
|
|
83
|
-
}
|
|
84
|
-
super(state_permit_source);
|
|
85
|
-
this.page_nums = state_permit_source.page_nums;
|
|
86
|
-
this.description = state_permit_source.description;
|
|
87
|
-
this.is_rice = state_permit_source.is_rice;
|
|
88
|
-
this.power_quantity = state_permit_source.power_quantity;
|
|
89
|
-
this.power_unit = state_permit_source.power_unit;
|
|
90
|
-
this.power_kw = state_permit_source.power_kw;
|
|
91
|
-
this.fuel_type_text = state_permit_source.fuel_type_text;
|
|
92
|
-
this.fuel_type_id = state_permit_source.fuel_type_id;
|
|
93
|
-
this.is_emergency = state_permit_source.is_emergency;
|
|
94
|
-
this.local_state_permit_source_ids = state_permit_source.local_state_permit_source_ids;
|
|
95
|
-
}
|
|
96
|
-
static is(state_permit_source) {
|
|
97
|
-
return (ARStatePermitSource.is(state_permit_source) &&
|
|
98
|
-
state_permit_source.type_id === "AIR" &&
|
|
99
|
-
Array.isArray(state_permit_source.page_nums) && state_permit_source.page_nums.every((page_num) => typeof page_num === "number") &&
|
|
100
|
-
(state_permit_source.description === undefined || typeof state_permit_source.description === "string") &&
|
|
101
|
-
(state_permit_source.is_rice === undefined || typeof state_permit_source.is_rice === "string") &&
|
|
102
|
-
(state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
|
|
103
|
-
(state_permit_source.power_quantity === undefined || typeof state_permit_source.power_quantity === "number") &&
|
|
104
|
-
(state_permit_source.power_kw === undefined || typeof state_permit_source.power_kw === "number") &&
|
|
105
|
-
(state_permit_source.fuel_type_text === undefined || typeof state_permit_source.fuel_type_text === "string") &&
|
|
106
|
-
(state_permit_source.fuel_type_id === undefined || typeof state_permit_source.fuel_type_id === "string") &&
|
|
107
|
-
(state_permit_source.is_emergency === undefined || typeof state_permit_source.is_emergency === "string") &&
|
|
108
|
-
(state_permit_source.local_state_permit_source_ids === undefined || Array.isArray(state_permit_source.local_state_permit_source_ids) && state_permit_source.local_state_permit_source_ids.every((local_state_permit_source_id) => typeof local_state_permit_source_id === "string")));
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
export class ARStatePermitSourceAux extends ARStatePermitSource {
|
|
112
|
-
state_permit;
|
|
113
|
-
state_permit_source_pollutants;
|
|
114
|
-
constructor(state_permit_source) {
|
|
115
|
-
if (!ARStatePermitSourceAux.is(state_permit_source)) {
|
|
116
|
-
throw Error("Invalid input.");
|
|
117
|
-
}
|
|
118
|
-
super(state_permit_source);
|
|
119
|
-
this.state_permit = state_permit_source.state_permit;
|
|
120
|
-
this.state_permit_source_pollutants = state_permit_source.state_permit_source_pollutants;
|
|
121
|
-
}
|
|
122
|
-
static is(state_permit_source) {
|
|
123
|
-
return (ARStatePermitSource.is(state_permit_source) &&
|
|
124
|
-
ARStatePermitAux.is(state_permit_source.state_permit) &&
|
|
125
|
-
Array.isArray(state_permit_source.state_permit_source_pollutants) &&
|
|
126
|
-
state_permit_source.state_permit_source_pollutants.every(ARStatePermitSourcePollutant.is));
|
|
127
|
-
}
|
|
128
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { StateID } from "../State.js";
|
|
2
|
-
export declare class ARStatePermitSourcePollutant {
|
|
3
|
-
readonly state_permit_source_pollutant_id: string;
|
|
4
|
-
readonly state_id: StateID;
|
|
5
|
-
readonly state_permit_id: string;
|
|
6
|
-
readonly state_permit_source_id: string;
|
|
7
|
-
readonly pollutant_id: string;
|
|
8
|
-
readonly [x: string]: any;
|
|
9
|
-
constructor(state_permit_source_pollutant: ARStatePermitSourcePollutant);
|
|
10
|
-
static is(state_permit_source_pollutant: any): state_permit_source_pollutant is ARStatePermitSourcePollutant;
|
|
11
|
-
}
|
|
12
|
-
export declare class ARStateAirPermitSourcePollutant extends ARStatePermitSourcePollutant {
|
|
13
|
-
readonly TPY_text: string;
|
|
14
|
-
readonly TPY?: number;
|
|
15
|
-
readonly TPY_global_rank?: number;
|
|
16
|
-
readonly TPY_global_total?: number;
|
|
17
|
-
readonly TPY_local_rank?: number;
|
|
18
|
-
readonly TPY_local_total?: number;
|
|
19
|
-
readonly LBPH_text: string;
|
|
20
|
-
readonly LBPH?: number;
|
|
21
|
-
readonly LBPH_global_rank?: number;
|
|
22
|
-
readonly LBPH_global_total?: number;
|
|
23
|
-
readonly LBPH_local_rank?: number;
|
|
24
|
-
readonly LBPH_local_total?: number;
|
|
25
|
-
readonly [x: string]: any;
|
|
26
|
-
constructor(state_permit_source_pollutant: ARStateAirPermitSourcePollutant);
|
|
27
|
-
static is(state_permit_source_pollutant: any): state_permit_source_pollutant is ARStateAirPermitSourcePollutant;
|
|
28
|
-
}
|
|
29
|
-
export declare class ARStateWaterPermitSourcePollutant extends ARStatePermitSourcePollutant {
|
|
30
|
-
readonly freq?: string;
|
|
31
|
-
readonly [x: string]: any;
|
|
32
|
-
constructor(state_permit_source_pollutant: ARStateWaterPermitSourcePollutant);
|
|
33
|
-
static is(state_permit_source_pollutant: any): state_permit_source_pollutant is ARStateWaterPermitSourcePollutant;
|
|
34
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { is_state_id } from "../State.js";
|
|
2
|
-
export class ARStatePermitSourcePollutant {
|
|
3
|
-
state_permit_source_pollutant_id;
|
|
4
|
-
state_id;
|
|
5
|
-
state_permit_id;
|
|
6
|
-
state_permit_source_id;
|
|
7
|
-
pollutant_id;
|
|
8
|
-
constructor(state_permit_source_pollutant) {
|
|
9
|
-
if (!ARStatePermitSourcePollutant.is(state_permit_source_pollutant)) {
|
|
10
|
-
throw Error("Invalid input.");
|
|
11
|
-
}
|
|
12
|
-
this.state_permit_source_pollutant_id = state_permit_source_pollutant.state_permit_source_pollutant_id;
|
|
13
|
-
this.state_id = state_permit_source_pollutant.state_id;
|
|
14
|
-
this.state_permit_id = state_permit_source_pollutant.state_permit_id;
|
|
15
|
-
this.state_permit_source_id = state_permit_source_pollutant.state_permit_source_id;
|
|
16
|
-
this.pollutant_id = state_permit_source_pollutant.pollutant_id;
|
|
17
|
-
}
|
|
18
|
-
static is(state_permit_source_pollutant) {
|
|
19
|
-
return (state_permit_source_pollutant !== undefined &&
|
|
20
|
-
typeof state_permit_source_pollutant.state_permit_source_pollutant_id === "string" &&
|
|
21
|
-
is_state_id(state_permit_source_pollutant.state_id) && state_permit_source_pollutant.state_id === "AR" &&
|
|
22
|
-
typeof state_permit_source_pollutant.state_permit_id === "string" &&
|
|
23
|
-
typeof state_permit_source_pollutant.state_permit_source_id === "string" &&
|
|
24
|
-
typeof state_permit_source_pollutant.pollutant_id === "string");
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
export class ARStateAirPermitSourcePollutant extends ARStatePermitSourcePollutant {
|
|
28
|
-
TPY_text;
|
|
29
|
-
TPY;
|
|
30
|
-
TPY_global_rank;
|
|
31
|
-
TPY_global_total;
|
|
32
|
-
TPY_local_rank;
|
|
33
|
-
TPY_local_total;
|
|
34
|
-
LBPH_text;
|
|
35
|
-
LBPH;
|
|
36
|
-
LBPH_global_rank;
|
|
37
|
-
LBPH_global_total;
|
|
38
|
-
LBPH_local_rank;
|
|
39
|
-
LBPH_local_total;
|
|
40
|
-
constructor(state_permit_source_pollutant) {
|
|
41
|
-
if (!ARStateAirPermitSourcePollutant.is(state_permit_source_pollutant)) {
|
|
42
|
-
throw Error("Invalid input.");
|
|
43
|
-
}
|
|
44
|
-
super(state_permit_source_pollutant);
|
|
45
|
-
this.TPY_text = state_permit_source_pollutant.TPY_text;
|
|
46
|
-
this.TPY = state_permit_source_pollutant.TPY;
|
|
47
|
-
this.TPY_global_rank = state_permit_source_pollutant.TPY_global_rank;
|
|
48
|
-
this.TPY_global_total = state_permit_source_pollutant.TPY_global_total;
|
|
49
|
-
this.TPY_local_rank = state_permit_source_pollutant.TPY_local_rank;
|
|
50
|
-
this.TPY_local_total = state_permit_source_pollutant.TPY_local_total;
|
|
51
|
-
this.LBPH_text = state_permit_source_pollutant.LBPH_text;
|
|
52
|
-
this.LBPH = state_permit_source_pollutant.LBPH;
|
|
53
|
-
this.LBPH_global_rank = state_permit_source_pollutant.LBPH_global_rank;
|
|
54
|
-
this.LBPH_global_total = state_permit_source_pollutant.LBPH_global_total;
|
|
55
|
-
this.LBPH_local_rank = state_permit_source_pollutant.LBPH_local_rank;
|
|
56
|
-
this.LBPH_local_total = state_permit_source_pollutant.LBPH_local_total;
|
|
57
|
-
}
|
|
58
|
-
static is(state_permit_source_pollutant) {
|
|
59
|
-
return (ARStatePermitSourcePollutant.is(state_permit_source_pollutant) &&
|
|
60
|
-
typeof state_permit_source_pollutant.TPY_text === "string" &&
|
|
61
|
-
(state_permit_source_pollutant.TPY === undefined || typeof state_permit_source_pollutant.TPY === "number" && !isNaN(state_permit_source_pollutant.TPY)) &&
|
|
62
|
-
(state_permit_source_pollutant.TPY_global_rank === undefined || typeof state_permit_source_pollutant.TPY_global_rank === "number" && !isNaN(state_permit_source_pollutant.TPY_global_rank)) &&
|
|
63
|
-
(state_permit_source_pollutant.TPY_global_total === undefined || typeof state_permit_source_pollutant.TPY_global_total === "number" && !isNaN(state_permit_source_pollutant.TPY_global_total)) &&
|
|
64
|
-
(state_permit_source_pollutant.TPY_local_rank === undefined || typeof state_permit_source_pollutant.TPY_local_rank === "number" && !isNaN(state_permit_source_pollutant.TPY_local_rank)) &&
|
|
65
|
-
(state_permit_source_pollutant.TPY_local_total === undefined || typeof state_permit_source_pollutant.TPY_local_total === "number" && !isNaN(state_permit_source_pollutant.TPY_local_total)) &&
|
|
66
|
-
typeof state_permit_source_pollutant.LBPH_text === "string" &&
|
|
67
|
-
(state_permit_source_pollutant.LBPH === undefined || typeof state_permit_source_pollutant.LBPH === "number" && !isNaN(state_permit_source_pollutant.LBPH)) &&
|
|
68
|
-
(state_permit_source_pollutant.LBPH_global_rank === undefined || typeof state_permit_source_pollutant.LBPH_global_rank === "number" && !isNaN(state_permit_source_pollutant.LBPH_global_rank)) &&
|
|
69
|
-
(state_permit_source_pollutant.LBPH_global_total === undefined || typeof state_permit_source_pollutant.LBPH_global_total === "number" && !isNaN(state_permit_source_pollutant.LBPH_global_total)) &&
|
|
70
|
-
(state_permit_source_pollutant.LBPH_local_rank === undefined || typeof state_permit_source_pollutant.LBPH_local_rank === "number" && !isNaN(state_permit_source_pollutant.LBPH_local_rank)) &&
|
|
71
|
-
(state_permit_source_pollutant.LBPH_local_total === undefined || typeof state_permit_source_pollutant.LBPH_local_total === "number" && !isNaN(state_permit_source_pollutant.LBPH_local_total)));
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
export class ARStateWaterPermitSourcePollutant extends ARStatePermitSourcePollutant {
|
|
75
|
-
freq;
|
|
76
|
-
constructor(state_permit_source_pollutant) {
|
|
77
|
-
if (!ARStateWaterPermitSourcePollutant.is(state_permit_source_pollutant)) {
|
|
78
|
-
throw Error("Invalid input.");
|
|
79
|
-
}
|
|
80
|
-
super(state_permit_source_pollutant);
|
|
81
|
-
this.freq = state_permit_source_pollutant.freq;
|
|
82
|
-
}
|
|
83
|
-
static is(state_permit_source_pollutant) {
|
|
84
|
-
return (ARStatePermitSourcePollutant.is(state_permit_source_pollutant) &&
|
|
85
|
-
(state_permit_source_pollutant.freq === undefined || typeof state_permit_source_pollutant.freq === "string"));
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
// export class ARStatePermitSourcePollutantAux extends ARStatePermitSourcePollutant {
|
|
89
|
-
// constructor(state_permit_source_pollutant : ARStatePermitSourcePollutantAux) {
|
|
90
|
-
// if (!ARStatePermitSourcePollutantAux.is(state_permit_source_pollutant)) {
|
|
91
|
-
// throw Error("Invalid input.")
|
|
92
|
-
// }
|
|
93
|
-
// super(state_permit_source_pollutant)
|
|
94
|
-
// }
|
|
95
|
-
// static is(state_permit_source_pollutant : any) : state_permit_source_pollutant is ARStatePermitSourcePollutantAux {
|
|
96
|
-
// return (
|
|
97
|
-
// ARStatePermitSourcePollutant.is(state_permit_source_pollutant)
|
|
98
|
-
// )
|
|
99
|
-
// }
|
|
100
|
-
// }
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { StateID } from "../State.js";
|
|
2
|
-
export declare class KYStateFacility {
|
|
3
|
-
readonly state_facility_id: string;
|
|
4
|
-
readonly state_id: StateID;
|
|
5
|
-
readonly facility_id: string;
|
|
6
|
-
readonly name: string;
|
|
7
|
-
readonly is_active: boolean;
|
|
8
|
-
readonly type_id: string;
|
|
9
|
-
readonly site_address_city: string;
|
|
10
|
-
readonly site_address_county: string;
|
|
11
|
-
readonly [x: string]: any;
|
|
12
|
-
constructor(state_facility: KYStateFacility);
|
|
13
|
-
static is(state_facility: any): state_facility is KYStateFacility;
|
|
14
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { is_state_id } from "../State.js";
|
|
2
|
-
export class KYStateFacility {
|
|
3
|
-
state_facility_id;
|
|
4
|
-
state_id;
|
|
5
|
-
facility_id;
|
|
6
|
-
name;
|
|
7
|
-
is_active;
|
|
8
|
-
type_id;
|
|
9
|
-
site_address_city;
|
|
10
|
-
site_address_county;
|
|
11
|
-
constructor(state_facility) {
|
|
12
|
-
if (!KYStateFacility.is(state_facility)) {
|
|
13
|
-
throw Error("Invalid input.");
|
|
14
|
-
}
|
|
15
|
-
this.state_facility_id = state_facility.state_facility_id;
|
|
16
|
-
this.state_id = state_facility.state_id;
|
|
17
|
-
this.facility_id = state_facility.facility_id;
|
|
18
|
-
this.name = state_facility.name;
|
|
19
|
-
this.is_active = state_facility.is_active;
|
|
20
|
-
this.type_id = state_facility.type_id;
|
|
21
|
-
this.site_address_city = state_facility.site_address_city;
|
|
22
|
-
this.site_address_county = state_facility.site_address_county;
|
|
23
|
-
}
|
|
24
|
-
static is(state_facility) {
|
|
25
|
-
return (state_facility !== undefined &&
|
|
26
|
-
is_state_id(state_facility.state_id) && state_facility.state_id === "KY" &&
|
|
27
|
-
typeof state_facility.state_facility_id === "string" &&
|
|
28
|
-
typeof state_facility.facility_id === "string" &&
|
|
29
|
-
typeof state_facility.name === "string" &&
|
|
30
|
-
typeof state_facility.is_active === "boolean" &&
|
|
31
|
-
typeof state_facility.type_id === "string" &&
|
|
32
|
-
(state_facility.site_address_city === undefined || typeof state_facility.site_address_city === "string") &&
|
|
33
|
-
(state_facility.site_address_county === undefined || typeof state_facility.site_address_county === "string"));
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { StateID } from "../State.js";
|
|
2
|
-
export declare class KYStatePermit {
|
|
3
|
-
readonly state_permit_id: string;
|
|
4
|
-
readonly state_id: StateID;
|
|
5
|
-
readonly permit_id: string;
|
|
6
|
-
readonly state_facility_id: string;
|
|
7
|
-
readonly issue_date?: string;
|
|
8
|
-
readonly type_id?: string;
|
|
9
|
-
readonly subtype_id?: string;
|
|
10
|
-
readonly s3_filenames?: string[];
|
|
11
|
-
readonly s3_text_filename?: string;
|
|
12
|
-
readonly source_ids?: string[];
|
|
13
|
-
readonly [x: string]: any;
|
|
14
|
-
constructor(state_permit: KYStatePermit);
|
|
15
|
-
static is(state_permit: any): state_permit is KYStatePermit;
|
|
16
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { is_state_id } from "../State.js";
|
|
2
|
-
export class KYStatePermit {
|
|
3
|
-
state_permit_id;
|
|
4
|
-
state_id;
|
|
5
|
-
permit_id;
|
|
6
|
-
state_facility_id;
|
|
7
|
-
issue_date;
|
|
8
|
-
// readonly expiration_date? : string
|
|
9
|
-
// readonly void_date? : string
|
|
10
|
-
// readonly status? : string
|
|
11
|
-
type_id;
|
|
12
|
-
subtype_id;
|
|
13
|
-
s3_filenames;
|
|
14
|
-
s3_text_filename;
|
|
15
|
-
source_ids;
|
|
16
|
-
constructor(state_permit) {
|
|
17
|
-
if (!KYStatePermit.is(state_permit)) {
|
|
18
|
-
throw Error("Invalid input.");
|
|
19
|
-
}
|
|
20
|
-
this.state_permit_id = state_permit.state_permit_id;
|
|
21
|
-
this.state_id = state_permit.state_id;
|
|
22
|
-
this.permit_id = state_permit.permit_id;
|
|
23
|
-
this.state_facility_id = state_permit.state_facility_id;
|
|
24
|
-
this.issue_date = state_permit.issue_date;
|
|
25
|
-
// this.expiration_date = state_permit.expiration_date
|
|
26
|
-
// this.void_date = state_permit.void_date
|
|
27
|
-
// this.status = state_permit.status
|
|
28
|
-
this.type_id = state_permit.type_id;
|
|
29
|
-
this.subtype_id = state_permit.subtype_id;
|
|
30
|
-
this.s3_filenames = state_permit.s3_filenames;
|
|
31
|
-
this.s3_text_filename = state_permit.s3_text_filename;
|
|
32
|
-
this.source_ids = state_permit.source_ids;
|
|
33
|
-
}
|
|
34
|
-
static is(state_permit) {
|
|
35
|
-
return (state_permit !== undefined &&
|
|
36
|
-
typeof state_permit.state_permit_id === "string" &&
|
|
37
|
-
is_state_id(state_permit.state_id) && state_permit.state_id === "KY" &&
|
|
38
|
-
typeof state_permit.permit_id === "string" &&
|
|
39
|
-
typeof state_permit.state_facility_id === "string" &&
|
|
40
|
-
(state_permit.issue_date === undefined || typeof state_permit.issue_date === "string") &&
|
|
41
|
-
// (state_permit.expiration_date === undefined || typeof state_permit.expiration_date === "string") &&
|
|
42
|
-
// (state_permit.void_date === undefined || typeof state_permit.void_date === "string") &&
|
|
43
|
-
// (state_permit.status === undefined || typeof state_permit.status === "string") &&
|
|
44
|
-
(state_permit.type_id === undefined || typeof state_permit.type_id === "string") &&
|
|
45
|
-
(state_permit.subtype_id === undefined || typeof state_permit.subtype_id === "string") &&
|
|
46
|
-
(state_permit.s3_filenames === undefined || Array.isArray(state_permit.s3_filenames) && state_permit.s3_filenames.map((s3_filename) => typeof s3_filename === "string")) &&
|
|
47
|
-
(state_permit.s3_text_filename === undefined || typeof state_permit.s3_text_filename === "string") &&
|
|
48
|
-
(state_permit.source_ids === undefined || Array.isArray(state_permit.source_ids) && state_permit.source_ids.map((source_id) => typeof source_id === "string")));
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { StateID } from "../State.js";
|
|
2
|
-
export declare class NCStateFacility {
|
|
3
|
-
readonly state_facility_id: string;
|
|
4
|
-
readonly state_id: StateID;
|
|
5
|
-
readonly facility_id: string;
|
|
6
|
-
readonly name: string;
|
|
7
|
-
readonly owner: string;
|
|
8
|
-
readonly is_active: boolean;
|
|
9
|
-
readonly type_id: string;
|
|
10
|
-
readonly site_address_county?: string;
|
|
11
|
-
readonly [x: string]: any;
|
|
12
|
-
constructor(state_facility: NCStateFacility);
|
|
13
|
-
static is(state_facility: any): state_facility is NCStateFacility;
|
|
14
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { is_state_id } from "../State.js";
|
|
2
|
-
export class NCStateFacility {
|
|
3
|
-
state_facility_id;
|
|
4
|
-
state_id;
|
|
5
|
-
facility_id;
|
|
6
|
-
name;
|
|
7
|
-
owner;
|
|
8
|
-
is_active;
|
|
9
|
-
type_id;
|
|
10
|
-
site_address_county;
|
|
11
|
-
constructor(state_facility) {
|
|
12
|
-
if (!NCStateFacility.is(state_facility)) {
|
|
13
|
-
throw Error("Invalid input.");
|
|
14
|
-
}
|
|
15
|
-
this.state_facility_id = state_facility.state_facility_id;
|
|
16
|
-
this.state_id = state_facility.state_id;
|
|
17
|
-
this.facility_id = state_facility.facility_id;
|
|
18
|
-
this.name = state_facility.name;
|
|
19
|
-
this.owner = state_facility.owner;
|
|
20
|
-
this.is_active = state_facility.is_active;
|
|
21
|
-
this.type_id = state_facility.type_id;
|
|
22
|
-
this.site_address_county = state_facility.site_address_county;
|
|
23
|
-
}
|
|
24
|
-
static is(state_facility) {
|
|
25
|
-
return (state_facility !== undefined &&
|
|
26
|
-
is_state_id(state_facility.state_id) && state_facility.state_id === "NC" &&
|
|
27
|
-
typeof state_facility.state_facility_id === "string" &&
|
|
28
|
-
typeof state_facility.facility_id === "string" &&
|
|
29
|
-
typeof state_facility.name === "string" &&
|
|
30
|
-
typeof state_facility.owner === "string" &&
|
|
31
|
-
typeof state_facility.is_active === "boolean" &&
|
|
32
|
-
typeof state_facility.type_id === "string" &&
|
|
33
|
-
(state_facility.site_address_county === undefined || typeof state_facility.site_address_county === "string"));
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { StateID } from "../State.js";
|
|
2
|
-
export declare class NCStatePermit {
|
|
3
|
-
readonly state_permit_id: string;
|
|
4
|
-
readonly state_id: StateID;
|
|
5
|
-
readonly permit_id: string;
|
|
6
|
-
readonly state_facility_id: string;
|
|
7
|
-
readonly issue_date?: string;
|
|
8
|
-
readonly expiration_date?: string;
|
|
9
|
-
readonly status?: string;
|
|
10
|
-
readonly type_id?: string;
|
|
11
|
-
readonly subtype_id?: string;
|
|
12
|
-
readonly s3_filenames?: string[];
|
|
13
|
-
readonly s3_text_filename?: string;
|
|
14
|
-
readonly source_ids?: string[];
|
|
15
|
-
readonly [x: string]: any;
|
|
16
|
-
constructor(state_permit: NCStatePermit);
|
|
17
|
-
static is(state_permit: any): state_permit is NCStatePermit;
|
|
18
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { is_state_id } from "../State.js";
|
|
2
|
-
export class NCStatePermit {
|
|
3
|
-
state_permit_id;
|
|
4
|
-
state_id;
|
|
5
|
-
permit_id;
|
|
6
|
-
state_facility_id;
|
|
7
|
-
issue_date;
|
|
8
|
-
expiration_date;
|
|
9
|
-
status;
|
|
10
|
-
type_id;
|
|
11
|
-
subtype_id;
|
|
12
|
-
s3_filenames;
|
|
13
|
-
s3_text_filename;
|
|
14
|
-
source_ids;
|
|
15
|
-
constructor(state_permit) {
|
|
16
|
-
if (!NCStatePermit.is(state_permit)) {
|
|
17
|
-
throw Error("Invalid input.");
|
|
18
|
-
}
|
|
19
|
-
this.state_permit_id = state_permit.state_permit_id;
|
|
20
|
-
this.state_id = state_permit.state_id;
|
|
21
|
-
this.permit_id = state_permit.permit_id;
|
|
22
|
-
this.state_facility_id = state_permit.state_facility_id;
|
|
23
|
-
this.issue_date = state_permit.issue_date;
|
|
24
|
-
this.expiration_date = state_permit.expiration_date;
|
|
25
|
-
this.status = state_permit.status;
|
|
26
|
-
this.type_id = state_permit.type_id;
|
|
27
|
-
this.subtype_id = state_permit.subtype_id;
|
|
28
|
-
this.s3_filenames = state_permit.s3_filenames;
|
|
29
|
-
this.s3_text_filename = state_permit.s3_text_filename;
|
|
30
|
-
this.source_ids = state_permit.source_ids;
|
|
31
|
-
}
|
|
32
|
-
static is(state_permit) {
|
|
33
|
-
return (state_permit !== undefined &&
|
|
34
|
-
typeof state_permit.state_permit_id === "string" &&
|
|
35
|
-
is_state_id(state_permit.state_id) && state_permit.state_id === "NC" &&
|
|
36
|
-
typeof state_permit.permit_id === "string" &&
|
|
37
|
-
typeof state_permit.state_facility_id === "string" &&
|
|
38
|
-
(state_permit.issue_date === undefined || typeof state_permit.issue_date === "string") &&
|
|
39
|
-
(state_permit.expiration_date === undefined || typeof state_permit.expiration_date === "string") &&
|
|
40
|
-
(state_permit.status === undefined || typeof state_permit.status === "string") &&
|
|
41
|
-
(state_permit.type_id === undefined || typeof state_permit.type_id === "string") &&
|
|
42
|
-
(state_permit.subtype_id === undefined || typeof state_permit.subtype_id === "string") &&
|
|
43
|
-
(state_permit.s3_filenames === undefined || Array.isArray(state_permit.s3_filenames) && state_permit.s3_filenames.map((s3_filename) => typeof s3_filename === "string")) &&
|
|
44
|
-
(state_permit.s3_text_filename === undefined || typeof state_permit.s3_text_filename === "string") &&
|
|
45
|
-
(state_permit.source_ids === undefined || Array.isArray(state_permit.source_ids) && state_permit.source_ids.map((source_id) => typeof source_id === "string")));
|
|
46
|
-
}
|
|
47
|
-
}
|