triangle-types 1.0.155 → 1.0.156
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.
|
@@ -4,7 +4,7 @@ export class LALFile {
|
|
|
4
4
|
state_id;
|
|
5
5
|
date;
|
|
6
6
|
s3_id_zip;
|
|
7
|
-
|
|
7
|
+
s3_id_prefix;
|
|
8
8
|
constructor(lal_file) {
|
|
9
9
|
if (!LALFile.is(lal_file)) {
|
|
10
10
|
throw Error("Invalid input.");
|
|
@@ -13,7 +13,7 @@ export class LALFile {
|
|
|
13
13
|
this.state_id = lal_file.state_id;
|
|
14
14
|
this.date = lal_file.date;
|
|
15
15
|
this.s3_id_zip = lal_file.s3_id_zip;
|
|
16
|
-
this.
|
|
16
|
+
this.s3_id_prefix = lal_file.s3_id_prefix;
|
|
17
17
|
}
|
|
18
18
|
static is(lal_file) {
|
|
19
19
|
return (lal_file !== undefined &&
|
|
@@ -21,6 +21,6 @@ export class LALFile {
|
|
|
21
21
|
is_state_id(lal_file.state_id) &&
|
|
22
22
|
typeof lal_file.date === "string" &&
|
|
23
23
|
typeof lal_file.s3_id_zip === "string" &&
|
|
24
|
-
(lal_file.
|
|
24
|
+
(lal_file.s3_id_prefix === undefined || typeof lal_file.s3_id_prefix === "string"));
|
|
25
25
|
}
|
|
26
26
|
}
|
package/package.json
CHANGED
package/src/types/lal/LALFile.ts
CHANGED
|
@@ -5,7 +5,7 @@ export class LALFile {
|
|
|
5
5
|
readonly state_id : StateID
|
|
6
6
|
readonly date : string
|
|
7
7
|
readonly s3_id_zip : string
|
|
8
|
-
readonly
|
|
8
|
+
readonly s3_id_prefix? : string
|
|
9
9
|
|
|
10
10
|
constructor(lal_file : any) {
|
|
11
11
|
if (!LALFile.is(lal_file)) {
|
|
@@ -15,7 +15,7 @@ export class LALFile {
|
|
|
15
15
|
this.state_id = lal_file.state_id
|
|
16
16
|
this.date = lal_file.date
|
|
17
17
|
this.s3_id_zip = lal_file.s3_id_zip
|
|
18
|
-
this.
|
|
18
|
+
this.s3_id_prefix = lal_file.s3_id_prefix
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
static is(lal_file : any) : lal_file is LALFile {
|
|
@@ -25,7 +25,7 @@ export class LALFile {
|
|
|
25
25
|
is_state_id(lal_file.state_id) &&
|
|
26
26
|
typeof lal_file.date === "string" &&
|
|
27
27
|
typeof lal_file.s3_id_zip === "string" &&
|
|
28
|
-
(lal_file.
|
|
28
|
+
(lal_file.s3_id_prefix === undefined || typeof lal_file.s3_id_prefix === "string")
|
|
29
29
|
)
|
|
30
30
|
}
|
|
31
31
|
}
|