triage-types 1.0.58 → 1.0.59
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.
|
@@ -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
|
@@ -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
|
}
|