triage-types 1.0.58 → 1.0.60
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/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/types/state_permits/NC/NCStatePermitSource.d.ts +19 -0
- package/dist/src/types/state_permits/NC/NCStatePermitSource.js +46 -0
- package/dist/src/types/state_permits/StatePermit.d.ts +0 -2
- package/dist/src/types/state_permits/StatePermit.js +1 -7
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/types/state_permits/NC/NCStatePermitSource.ts +58 -0
- package/src/types/state_permits/StatePermit.ts +1 -7
package/dist/src/index.d.ts
CHANGED
|
@@ -19,5 +19,6 @@ export * from "./types/state_permits/KY/KYStatePermitSource.js";
|
|
|
19
19
|
export * from "./types/state_permits/KY/KYStatePermitSourcePollutant.js";
|
|
20
20
|
export * from "./types/state_permits/NC/NCStateFacility.js";
|
|
21
21
|
export * from "./types/state_permits/NC/NCStatePermit.js";
|
|
22
|
+
export * from "./types/state_permits/NC/NCStatePermitSource.js";
|
|
22
23
|
export * from "./types/state_permits/TN/TNStateFacility.js";
|
|
23
24
|
export * from "./types/state_permits/TN/TNStatePermit.js";
|
package/dist/src/index.js
CHANGED
|
@@ -19,5 +19,6 @@ export * from "./types/state_permits/KY/KYStatePermitSource.js";
|
|
|
19
19
|
export * from "./types/state_permits/KY/KYStatePermitSourcePollutant.js";
|
|
20
20
|
export * from "./types/state_permits/NC/NCStateFacility.js";
|
|
21
21
|
export * from "./types/state_permits/NC/NCStatePermit.js";
|
|
22
|
+
export * from "./types/state_permits/NC/NCStatePermitSource.js";
|
|
22
23
|
export * from "./types/state_permits/TN/TNStateFacility.js";
|
|
23
24
|
export * from "./types/state_permits/TN/TNStatePermit.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { StatePermitSource } from "../StatePermitSource.js";
|
|
2
|
+
export declare class NCStatePermitSource extends StatePermitSource {
|
|
3
|
+
readonly state_id: "NC";
|
|
4
|
+
readonly [x: string]: any;
|
|
5
|
+
constructor(state_permit_source: NCStatePermitSource);
|
|
6
|
+
static is(state_permit_source: any): state_permit_source is NCStatePermitSource;
|
|
7
|
+
}
|
|
8
|
+
export declare class NCStateWaterPermitSource extends NCStatePermitSource {
|
|
9
|
+
readonly state_id: "NC";
|
|
10
|
+
readonly type_id: "WATER-NPDES";
|
|
11
|
+
readonly description?: string;
|
|
12
|
+
readonly stage?: string;
|
|
13
|
+
readonly freq_wet_pp?: string;
|
|
14
|
+
readonly freq_wet_cd?: string;
|
|
15
|
+
readonly freq_fish_tissue?: string;
|
|
16
|
+
readonly [x: string]: any;
|
|
17
|
+
constructor(state_permit_source: NCStateWaterPermitSource);
|
|
18
|
+
static is(state_permit_source: any): state_permit_source is NCStateWaterPermitSource;
|
|
19
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { StatePermitSource } from "../StatePermitSource.js";
|
|
2
|
+
export class NCStatePermitSource extends StatePermitSource {
|
|
3
|
+
state_id;
|
|
4
|
+
constructor(state_permit_source) {
|
|
5
|
+
if (!NCStatePermitSource.is(state_permit_source)) {
|
|
6
|
+
throw Error("Invalid input.");
|
|
7
|
+
}
|
|
8
|
+
super(state_permit_source);
|
|
9
|
+
this.state_id = state_permit_source.state_id;
|
|
10
|
+
}
|
|
11
|
+
static is(state_permit_source) {
|
|
12
|
+
return (StatePermitSource.is(state_permit_source) &&
|
|
13
|
+
state_permit_source.state_id === "NC");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class NCStateWaterPermitSource extends NCStatePermitSource {
|
|
17
|
+
state_id;
|
|
18
|
+
type_id;
|
|
19
|
+
description;
|
|
20
|
+
stage;
|
|
21
|
+
freq_wet_pp;
|
|
22
|
+
freq_wet_cd;
|
|
23
|
+
freq_fish_tissue;
|
|
24
|
+
constructor(state_permit_source) {
|
|
25
|
+
if (!NCStateWaterPermitSource.is(state_permit_source)) {
|
|
26
|
+
throw Error("Invalid input.");
|
|
27
|
+
}
|
|
28
|
+
super(state_permit_source);
|
|
29
|
+
this.state_id = state_permit_source.state_id;
|
|
30
|
+
this.type_id = state_permit_source.type_id;
|
|
31
|
+
this.description = state_permit_source.description;
|
|
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;
|
|
36
|
+
}
|
|
37
|
+
static is(state_permit_source) {
|
|
38
|
+
return (NCStatePermitSource.is(state_permit_source) &&
|
|
39
|
+
state_permit_source.type_id === "WATER-NPDES" &&
|
|
40
|
+
(state_permit_source.description === undefined || typeof state_permit_source.description === "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"));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -26,8 +26,6 @@ export declare class StatePermit {
|
|
|
26
26
|
}
|
|
27
27
|
export declare class StatePermitAux extends StatePermit {
|
|
28
28
|
readonly state_facility: StateFacility;
|
|
29
|
-
readonly s3_url?: string;
|
|
30
|
-
readonly s3_text_url?: string;
|
|
31
29
|
constructor(state_permit: StatePermitAux);
|
|
32
30
|
static is(state_permit: any): state_permit is StatePermitAux;
|
|
33
31
|
}
|
|
@@ -67,21 +67,15 @@ export class StatePermit {
|
|
|
67
67
|
}
|
|
68
68
|
export class StatePermitAux extends StatePermit {
|
|
69
69
|
state_facility;
|
|
70
|
-
s3_url;
|
|
71
|
-
s3_text_url;
|
|
72
70
|
constructor(state_permit) {
|
|
73
71
|
if (!StatePermitAux.is(state_permit)) {
|
|
74
72
|
throw Error("Invalid input.");
|
|
75
73
|
}
|
|
76
74
|
super(state_permit);
|
|
77
75
|
this.state_facility = state_permit.state_facility;
|
|
78
|
-
this.s3_url = state_permit.s3_url;
|
|
79
|
-
this.s3_text_url = state_permit.s3_text_url;
|
|
80
76
|
}
|
|
81
77
|
static is(state_permit) {
|
|
82
78
|
return (StatePermit.is(state_permit) &&
|
|
83
|
-
StateFacility.is(state_permit.state_facility)
|
|
84
|
-
(state_permit.s3_url === undefined || typeof state_permit.s3_url === "string") &&
|
|
85
|
-
(state_permit.s3_text_url === undefined || typeof state_permit.s3_text_url === "string"));
|
|
79
|
+
StateFacility.is(state_permit.state_facility));
|
|
86
80
|
}
|
|
87
81
|
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -24,6 +24,7 @@ export * from "./types/state_permits/KY/KYStatePermitSourcePollutant"
|
|
|
24
24
|
|
|
25
25
|
export * from "./types/state_permits/NC/NCStateFacility"
|
|
26
26
|
export * from "./types/state_permits/NC/NCStatePermit"
|
|
27
|
+
export * from "./types/state_permits/NC/NCStatePermitSource"
|
|
27
28
|
|
|
28
29
|
export * from "./types/state_permits/TN/TNStateFacility"
|
|
29
30
|
export * from "./types/state_permits/TN/TNStatePermit"
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { StatePermitSource } from "../StatePermitSource"
|
|
2
|
+
|
|
3
|
+
export class NCStatePermitSource extends StatePermitSource {
|
|
4
|
+
readonly state_id : "NC"
|
|
5
|
+
readonly [x : string] : any
|
|
6
|
+
|
|
7
|
+
constructor(state_permit_source : NCStatePermitSource) {
|
|
8
|
+
if (!NCStatePermitSource.is(state_permit_source)) {
|
|
9
|
+
throw Error("Invalid input.")
|
|
10
|
+
}
|
|
11
|
+
super(state_permit_source)
|
|
12
|
+
this.state_id = state_permit_source.state_id
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
static is(state_permit_source : any) : state_permit_source is NCStatePermitSource {
|
|
16
|
+
return (
|
|
17
|
+
StatePermitSource.is(state_permit_source) &&
|
|
18
|
+
state_permit_source.state_id === "NC"
|
|
19
|
+
)
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export class NCStateWaterPermitSource extends NCStatePermitSource {
|
|
24
|
+
readonly state_id : "NC"
|
|
25
|
+
readonly type_id : "WATER-NPDES"
|
|
26
|
+
readonly description? : string
|
|
27
|
+
readonly stage? : string
|
|
28
|
+
readonly freq_wet_pp? : string
|
|
29
|
+
readonly freq_wet_cd? : string
|
|
30
|
+
readonly freq_fish_tissue? : string
|
|
31
|
+
readonly [x : string] : any
|
|
32
|
+
|
|
33
|
+
constructor(state_permit_source : NCStateWaterPermitSource) {
|
|
34
|
+
if (!NCStateWaterPermitSource.is(state_permit_source)) {
|
|
35
|
+
throw Error("Invalid input.")
|
|
36
|
+
}
|
|
37
|
+
super(state_permit_source)
|
|
38
|
+
this.state_id = state_permit_source.state_id
|
|
39
|
+
this.type_id = state_permit_source.type_id
|
|
40
|
+
this.description = state_permit_source.description
|
|
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
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static is(state_permit_source : any) : state_permit_source is NCStateWaterPermitSource {
|
|
48
|
+
return (
|
|
49
|
+
NCStatePermitSource.is(state_permit_source) &&
|
|
50
|
+
state_permit_source.type_id === "WATER-NPDES" &&
|
|
51
|
+
(state_permit_source.description === undefined || typeof state_permit_source.description === "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")
|
|
56
|
+
)
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -80,8 +80,6 @@ export class StatePermit {
|
|
|
80
80
|
|
|
81
81
|
export class StatePermitAux extends StatePermit {
|
|
82
82
|
readonly state_facility : StateFacility
|
|
83
|
-
readonly s3_url? : string
|
|
84
|
-
readonly s3_text_url? : string
|
|
85
83
|
|
|
86
84
|
constructor(state_permit : StatePermitAux) {
|
|
87
85
|
if (!StatePermitAux.is(state_permit)) {
|
|
@@ -89,16 +87,12 @@ export class StatePermitAux extends StatePermit {
|
|
|
89
87
|
}
|
|
90
88
|
super(state_permit)
|
|
91
89
|
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
90
|
}
|
|
95
91
|
|
|
96
92
|
static is(state_permit : any) : state_permit is StatePermitAux {
|
|
97
93
|
return (
|
|
98
94
|
StatePermit.is(state_permit) &&
|
|
99
|
-
StateFacility.is(state_permit.state_facility)
|
|
100
|
-
(state_permit.s3_url === undefined || typeof state_permit.s3_url === "string") &&
|
|
101
|
-
(state_permit.s3_text_url === undefined || typeof state_permit.s3_text_url === "string")
|
|
95
|
+
StateFacility.is(state_permit.state_facility)
|
|
102
96
|
)
|
|
103
97
|
}
|
|
104
98
|
}
|