triage-types 1.0.48 → 1.0.50
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { is_state_id } from "../State.js";
|
|
2
|
+
import { StateFacility } from "./StateFacility.js";
|
|
2
3
|
export class StatePermit {
|
|
3
4
|
state_permit_id;
|
|
4
5
|
state_id;
|
|
@@ -60,7 +61,7 @@ export class StatePermitAux extends StatePermit {
|
|
|
60
61
|
}
|
|
61
62
|
static is(state_permit) {
|
|
62
63
|
return (StatePermit.is(state_permit) &&
|
|
63
|
-
|
|
64
|
+
StateFacility.is(state_permit.state_facility) &&
|
|
64
65
|
(state_permit.s3_url === undefined || typeof state_permit.s3_url === "string") &&
|
|
65
66
|
(state_permit.s3_text_url === undefined || typeof state_permit.s3_text_url === "string"));
|
|
66
67
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { is_state_id, StateID } from "../State"
|
|
2
|
-
import { StateFacility } from "./StateFacility"
|
|
2
|
+
import { StateFacility, StateFacilityAux } from "./StateFacility"
|
|
3
3
|
|
|
4
4
|
export class StatePermit {
|
|
5
5
|
readonly state_permit_id : string
|
|
@@ -71,7 +71,7 @@ export class StatePermitAux extends StatePermit {
|
|
|
71
71
|
static is(state_permit : any) : state_permit is StatePermitAux {
|
|
72
72
|
return (
|
|
73
73
|
StatePermit.is(state_permit) &&
|
|
74
|
-
|
|
74
|
+
StateFacility.is(state_permit.state_facility) &&
|
|
75
75
|
(state_permit.s3_url === undefined || typeof state_permit.s3_url === "string") &&
|
|
76
76
|
(state_permit.s3_text_url === undefined || typeof state_permit.s3_text_url === "string")
|
|
77
77
|
)
|