triage-types 1.0.59 → 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/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/types/state_permits/NC/NCStatePermitSource.ts +58 -0
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
|
+
}
|
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
|
+
}
|