triage-types 1.0.42 → 1.0.44
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 +2 -0
- package/dist/src/index.js +2 -0
- package/dist/src/types/state_permits/KY/KYStatePermit.d.ts +1 -1
- package/dist/src/types/state_permits/KY/KYStatePermit.js +3 -3
- package/dist/src/types/state_permits/NC/NCStatePermit.d.ts +1 -1
- package/dist/src/types/state_permits/NC/NCStatePermit.js +3 -3
- package/dist/src/types/state_permits/TN/TNStateFacility.d.ts +12 -0
- package/dist/src/types/state_permits/TN/TNStateFacility.js +29 -0
- package/dist/src/types/state_permits/TN/TNStatePermit.d.ts +20 -0
- package/dist/src/types/state_permits/TN/TNStatePermit.js +53 -0
- package/package.json +1 -1
- package/src/index.ts +4 -1
- package/src/types/state_permits/KY/KYStatePermit.ts +3 -3
- package/src/types/state_permits/NC/NCStatePermit.ts +3 -3
- package/src/types/state_permits/TN/TNStateFacility.ts +35 -0
- package/src/types/state_permits/TN/TNStatePermit.ts +59 -0
package/dist/src/index.d.ts
CHANGED
|
@@ -13,3 +13,5 @@ export * from "./types/state_permits/KY/KYStateFacility.js";
|
|
|
13
13
|
export * from "./types/state_permits/KY/KYStatePermit.js";
|
|
14
14
|
export * from "./types/state_permits/NC/NCStateFacility.js";
|
|
15
15
|
export * from "./types/state_permits/NC/NCStatePermit.js";
|
|
16
|
+
export * from "./types/state_permits/TN/TNStateFacility.js";
|
|
17
|
+
export * from "./types/state_permits/TN/TNStatePermit.js";
|
package/dist/src/index.js
CHANGED
|
@@ -13,3 +13,5 @@ export * from "./types/state_permits/KY/KYStateFacility.js";
|
|
|
13
13
|
export * from "./types/state_permits/KY/KYStatePermit.js";
|
|
14
14
|
export * from "./types/state_permits/NC/NCStateFacility.js";
|
|
15
15
|
export * from "./types/state_permits/NC/NCStatePermit.js";
|
|
16
|
+
export * from "./types/state_permits/TN/TNStateFacility.js";
|
|
17
|
+
export * from "./types/state_permits/TN/TNStatePermit.js";
|
|
@@ -7,7 +7,7 @@ export declare class KYStatePermit {
|
|
|
7
7
|
readonly issue_date?: string;
|
|
8
8
|
readonly type_id?: string;
|
|
9
9
|
readonly subtype_id?: string;
|
|
10
|
-
readonly
|
|
10
|
+
readonly s3_raw_filenames?: string[];
|
|
11
11
|
readonly s3_text_filename?: string;
|
|
12
12
|
readonly source_ids?: string[];
|
|
13
13
|
readonly [x: string]: any;
|
|
@@ -10,7 +10,7 @@ export class KYStatePermit {
|
|
|
10
10
|
// readonly status? : string
|
|
11
11
|
type_id;
|
|
12
12
|
subtype_id;
|
|
13
|
-
|
|
13
|
+
s3_raw_filenames;
|
|
14
14
|
s3_text_filename;
|
|
15
15
|
source_ids;
|
|
16
16
|
constructor(state_permit) {
|
|
@@ -27,7 +27,7 @@ export class KYStatePermit {
|
|
|
27
27
|
// this.status = state_permit.status
|
|
28
28
|
this.type_id = state_permit.type_id;
|
|
29
29
|
this.subtype_id = state_permit.subtype_id;
|
|
30
|
-
this.
|
|
30
|
+
this.s3_raw_filenames = state_permit.s3_raw_filenames;
|
|
31
31
|
this.s3_text_filename = state_permit.s3_text_filename;
|
|
32
32
|
this.source_ids = state_permit.source_ids;
|
|
33
33
|
}
|
|
@@ -43,7 +43,7 @@ export class KYStatePermit {
|
|
|
43
43
|
// (state_permit.status === undefined || typeof state_permit.status === "string") &&
|
|
44
44
|
(state_permit.type_id === undefined || typeof state_permit.type_id === "string") &&
|
|
45
45
|
(state_permit.subtype_id === undefined || typeof state_permit.subtype_id === "string") &&
|
|
46
|
-
(state_permit.
|
|
46
|
+
(state_permit.s3_raw_filenames === undefined || Array.isArray(state_permit.s3_raw_filenames) && state_permit.s3_raw_filenames.map((s3_filename) => typeof s3_filename === "string")) &&
|
|
47
47
|
(state_permit.s3_text_filename === undefined || typeof state_permit.s3_text_filename === "string") &&
|
|
48
48
|
(state_permit.source_ids === undefined || Array.isArray(state_permit.source_ids) && state_permit.source_ids.map((source_id) => typeof source_id === "string")));
|
|
49
49
|
}
|
|
@@ -9,7 +9,7 @@ export declare class NCStatePermit {
|
|
|
9
9
|
readonly status?: string;
|
|
10
10
|
readonly type_id?: string;
|
|
11
11
|
readonly subtype_id?: string;
|
|
12
|
-
readonly
|
|
12
|
+
readonly s3_raw_filenames?: string[];
|
|
13
13
|
readonly s3_text_filename?: string;
|
|
14
14
|
readonly source_ids?: string[];
|
|
15
15
|
readonly [x: string]: any;
|
|
@@ -9,7 +9,7 @@ export class NCStatePermit {
|
|
|
9
9
|
status;
|
|
10
10
|
type_id;
|
|
11
11
|
subtype_id;
|
|
12
|
-
|
|
12
|
+
s3_raw_filenames;
|
|
13
13
|
s3_text_filename;
|
|
14
14
|
source_ids;
|
|
15
15
|
constructor(state_permit) {
|
|
@@ -25,7 +25,7 @@ export class NCStatePermit {
|
|
|
25
25
|
this.status = state_permit.status;
|
|
26
26
|
this.type_id = state_permit.type_id;
|
|
27
27
|
this.subtype_id = state_permit.subtype_id;
|
|
28
|
-
this.
|
|
28
|
+
this.s3_raw_filenames = state_permit.s3_raw_filenames;
|
|
29
29
|
this.s3_text_filename = state_permit.s3_text_filename;
|
|
30
30
|
this.source_ids = state_permit.source_ids;
|
|
31
31
|
}
|
|
@@ -40,7 +40,7 @@ export class NCStatePermit {
|
|
|
40
40
|
(state_permit.status === undefined || typeof state_permit.status === "string") &&
|
|
41
41
|
(state_permit.type_id === undefined || typeof state_permit.type_id === "string") &&
|
|
42
42
|
(state_permit.subtype_id === undefined || typeof state_permit.subtype_id === "string") &&
|
|
43
|
-
(state_permit.
|
|
43
|
+
(state_permit.s3_raw_filenames === undefined || Array.isArray(state_permit.s3_raw_filenames) && state_permit.s3_raw_filenames.map((s3_filename) => typeof s3_filename === "string")) &&
|
|
44
44
|
(state_permit.s3_text_filename === undefined || typeof state_permit.s3_text_filename === "string") &&
|
|
45
45
|
(state_permit.source_ids === undefined || Array.isArray(state_permit.source_ids) && state_permit.source_ids.map((source_id) => typeof source_id === "string")));
|
|
46
46
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StateID } from "../../State.js";
|
|
2
|
+
export declare class TNStateFacility {
|
|
3
|
+
readonly state_facility_id: string;
|
|
4
|
+
readonly state_id: StateID;
|
|
5
|
+
readonly facility_id: string;
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly site_address_city: string;
|
|
8
|
+
readonly site_address_county: string;
|
|
9
|
+
readonly [x: string]: any;
|
|
10
|
+
constructor(state_facility: TNStateFacility);
|
|
11
|
+
static is(state_facility: any): state_facility is TNStateFacility;
|
|
12
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { is_state_id } from "../../State.js";
|
|
2
|
+
export class TNStateFacility {
|
|
3
|
+
state_facility_id;
|
|
4
|
+
state_id;
|
|
5
|
+
facility_id;
|
|
6
|
+
name;
|
|
7
|
+
site_address_city;
|
|
8
|
+
site_address_county;
|
|
9
|
+
constructor(state_facility) {
|
|
10
|
+
if (!TNStateFacility.is(state_facility)) {
|
|
11
|
+
throw Error("Invalid input.");
|
|
12
|
+
}
|
|
13
|
+
this.state_facility_id = state_facility.state_facility_id;
|
|
14
|
+
this.state_id = state_facility.state_id;
|
|
15
|
+
this.facility_id = state_facility.facility_id;
|
|
16
|
+
this.name = state_facility.name;
|
|
17
|
+
this.site_address_city = state_facility.site_address_city;
|
|
18
|
+
this.site_address_county = state_facility.site_address_county;
|
|
19
|
+
}
|
|
20
|
+
static is(state_facility) {
|
|
21
|
+
return (state_facility !== undefined &&
|
|
22
|
+
is_state_id(state_facility.state_id) && state_facility.state_id === "TN" &&
|
|
23
|
+
typeof state_facility.state_facility_id === "string" &&
|
|
24
|
+
typeof state_facility.facility_id === "string" &&
|
|
25
|
+
typeof state_facility.name === "string" &&
|
|
26
|
+
(state_facility.site_address_city === undefined || typeof state_facility.site_address_city === "string") &&
|
|
27
|
+
(state_facility.site_address_county === undefined || typeof state_facility.site_address_county === "string"));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { StateID } from "../../State.js";
|
|
2
|
+
export declare class TNStatePermit {
|
|
3
|
+
readonly state_permit_id: string;
|
|
4
|
+
readonly state_id: StateID;
|
|
5
|
+
readonly permit_id: string;
|
|
6
|
+
readonly state_facility_id: string;
|
|
7
|
+
readonly issue_date?: string;
|
|
8
|
+
readonly effective_date?: string;
|
|
9
|
+
readonly expiration_date?: string;
|
|
10
|
+
readonly status?: string;
|
|
11
|
+
readonly type_id?: string;
|
|
12
|
+
readonly subtype_id?: string;
|
|
13
|
+
readonly s3_raw_filenames?: string;
|
|
14
|
+
readonly s3_filename?: string;
|
|
15
|
+
readonly s3_text_filename?: string;
|
|
16
|
+
readonly source_ids?: string[];
|
|
17
|
+
readonly [x: string]: any;
|
|
18
|
+
constructor(state_permit: TNStatePermit);
|
|
19
|
+
static is(state_permit: any): state_permit is TNStatePermit;
|
|
20
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { is_state_id } from "../../State.js";
|
|
2
|
+
export class TNStatePermit {
|
|
3
|
+
state_permit_id;
|
|
4
|
+
state_id;
|
|
5
|
+
permit_id;
|
|
6
|
+
state_facility_id;
|
|
7
|
+
issue_date;
|
|
8
|
+
effective_date;
|
|
9
|
+
expiration_date;
|
|
10
|
+
status;
|
|
11
|
+
type_id;
|
|
12
|
+
subtype_id;
|
|
13
|
+
s3_raw_filenames;
|
|
14
|
+
s3_filename;
|
|
15
|
+
s3_text_filename;
|
|
16
|
+
source_ids;
|
|
17
|
+
constructor(state_permit) {
|
|
18
|
+
if (!TNStatePermit.is(state_permit)) {
|
|
19
|
+
throw Error("Invalid input.");
|
|
20
|
+
}
|
|
21
|
+
this.state_permit_id = state_permit.state_permit_id;
|
|
22
|
+
this.state_id = state_permit.state_id;
|
|
23
|
+
this.permit_id = state_permit.permit_id;
|
|
24
|
+
this.state_facility_id = state_permit.state_facility_id;
|
|
25
|
+
this.issue_date = state_permit.issue_date;
|
|
26
|
+
this.expiration_date = state_permit.expiration_date;
|
|
27
|
+
this.effective_date = state_permit.effective_date;
|
|
28
|
+
this.status = state_permit.status;
|
|
29
|
+
this.type_id = state_permit.type_id;
|
|
30
|
+
this.subtype_id = state_permit.subtype_id;
|
|
31
|
+
this.s3_filename = state_permit.s3_filename;
|
|
32
|
+
this.s3_raw_filenames = state_permit.s3_raw_filenames;
|
|
33
|
+
this.s3_text_filename = state_permit.s3_text_filename;
|
|
34
|
+
this.source_ids = state_permit.source_ids;
|
|
35
|
+
}
|
|
36
|
+
static is(state_permit) {
|
|
37
|
+
return (state_permit !== undefined &&
|
|
38
|
+
typeof state_permit.state_permit_id === "string" &&
|
|
39
|
+
is_state_id(state_permit.state_id) && state_permit.state_id === "TN" &&
|
|
40
|
+
typeof state_permit.permit_id === "string" &&
|
|
41
|
+
typeof state_permit.state_facility_id === "string" &&
|
|
42
|
+
(state_permit.issue_date === undefined || typeof state_permit.issue_date === "string") &&
|
|
43
|
+
(state_permit.expiration_date === undefined || typeof state_permit.expiration_date === "string") &&
|
|
44
|
+
(state_permit.effective_date === undefined || typeof state_permit.effective_date === "string") &&
|
|
45
|
+
(state_permit.status === undefined || typeof state_permit.status === "string") &&
|
|
46
|
+
(state_permit.type_id === undefined || typeof state_permit.type_id === "string") &&
|
|
47
|
+
(state_permit.subtype_id === undefined || typeof state_permit.subtype_id === "string") &&
|
|
48
|
+
(state_permit.s3_filename === undefined || typeof state_permit.s3_filename === "string") &&
|
|
49
|
+
(state_permit.s3_raw_filenames === undefined || Array.isArray(state_permit.s3_raw_filenames) && state_permit.s3_raw_filenames.map((s3_filename) => typeof s3_filename === "string")) &&
|
|
50
|
+
(state_permit.s3_text_filename === undefined || typeof state_permit.s3_text_filename === "string") &&
|
|
51
|
+
(state_permit.source_ids === undefined || Array.isArray(state_permit.source_ids) && state_permit.source_ids.map((source_id) => typeof source_id === "string")));
|
|
52
|
+
}
|
|
53
|
+
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -16,4 +16,7 @@ export * from "./types/state_permits/KY/KYStateFacility"
|
|
|
16
16
|
export * from "./types/state_permits/KY/KYStatePermit"
|
|
17
17
|
|
|
18
18
|
export * from "./types/state_permits/NC/NCStateFacility"
|
|
19
|
-
export * from "./types/state_permits/NC/NCStatePermit"
|
|
19
|
+
export * from "./types/state_permits/NC/NCStatePermit"
|
|
20
|
+
|
|
21
|
+
export * from "./types/state_permits/TN/TNStateFacility"
|
|
22
|
+
export * from "./types/state_permits/TN/TNStatePermit"
|
|
@@ -11,7 +11,7 @@ export class KYStatePermit {
|
|
|
11
11
|
// readonly status? : string
|
|
12
12
|
readonly type_id? : string
|
|
13
13
|
readonly subtype_id? : string
|
|
14
|
-
readonly
|
|
14
|
+
readonly s3_raw_filenames? : string[]
|
|
15
15
|
readonly s3_text_filename? : string
|
|
16
16
|
readonly source_ids? : string[]
|
|
17
17
|
readonly [x : string] : any
|
|
@@ -30,7 +30,7 @@ export class KYStatePermit {
|
|
|
30
30
|
// this.status = state_permit.status
|
|
31
31
|
this.type_id = state_permit.type_id
|
|
32
32
|
this.subtype_id = state_permit.subtype_id
|
|
33
|
-
this.
|
|
33
|
+
this.s3_raw_filenames = state_permit.s3_raw_filenames
|
|
34
34
|
this.s3_text_filename = state_permit.s3_text_filename
|
|
35
35
|
this.source_ids = state_permit.source_ids
|
|
36
36
|
}
|
|
@@ -48,7 +48,7 @@ export class KYStatePermit {
|
|
|
48
48
|
// (state_permit.status === undefined || typeof state_permit.status === "string") &&
|
|
49
49
|
(state_permit.type_id === undefined || typeof state_permit.type_id === "string") &&
|
|
50
50
|
(state_permit.subtype_id === undefined || typeof state_permit.subtype_id === "string") &&
|
|
51
|
-
(state_permit.
|
|
51
|
+
(state_permit.s3_raw_filenames === undefined || Array.isArray(state_permit.s3_raw_filenames) && state_permit.s3_raw_filenames.map((s3_filename : any) => typeof s3_filename === "string")) &&
|
|
52
52
|
(state_permit.s3_text_filename === undefined || typeof state_permit.s3_text_filename === "string") &&
|
|
53
53
|
(state_permit.source_ids === undefined || Array.isArray(state_permit.source_ids) && state_permit.source_ids.map((source_id : any) => typeof source_id === "string"))
|
|
54
54
|
)
|
|
@@ -11,7 +11,7 @@ export class NCStatePermit {
|
|
|
11
11
|
readonly status? : string
|
|
12
12
|
readonly type_id? : string
|
|
13
13
|
readonly subtype_id? : string
|
|
14
|
-
readonly
|
|
14
|
+
readonly s3_raw_filenames? : string[]
|
|
15
15
|
readonly s3_text_filename? : string
|
|
16
16
|
readonly source_ids? : string[]
|
|
17
17
|
readonly [x : string] : any
|
|
@@ -29,7 +29,7 @@ export class NCStatePermit {
|
|
|
29
29
|
this.status = state_permit.status
|
|
30
30
|
this.type_id = state_permit.type_id
|
|
31
31
|
this.subtype_id = state_permit.subtype_id
|
|
32
|
-
this.
|
|
32
|
+
this.s3_raw_filenames = state_permit.s3_raw_filenames
|
|
33
33
|
this.s3_text_filename = state_permit.s3_text_filename
|
|
34
34
|
this.source_ids = state_permit.source_ids
|
|
35
35
|
}
|
|
@@ -46,7 +46,7 @@ export class NCStatePermit {
|
|
|
46
46
|
(state_permit.status === undefined || typeof state_permit.status === "string") &&
|
|
47
47
|
(state_permit.type_id === undefined || typeof state_permit.type_id === "string") &&
|
|
48
48
|
(state_permit.subtype_id === undefined || typeof state_permit.subtype_id === "string") &&
|
|
49
|
-
(state_permit.
|
|
49
|
+
(state_permit.s3_raw_filenames === undefined || Array.isArray(state_permit.s3_raw_filenames) && state_permit.s3_raw_filenames.map((s3_filename : any) => typeof s3_filename === "string")) &&
|
|
50
50
|
(state_permit.s3_text_filename === undefined || typeof state_permit.s3_text_filename === "string") &&
|
|
51
51
|
(state_permit.source_ids === undefined || Array.isArray(state_permit.source_ids) && state_permit.source_ids.map((source_id : any) => typeof source_id === "string"))
|
|
52
52
|
)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { is_state_id, StateID } from "../../State"
|
|
2
|
+
|
|
3
|
+
export class TNStateFacility {
|
|
4
|
+
readonly state_facility_id : string
|
|
5
|
+
readonly state_id : StateID
|
|
6
|
+
readonly facility_id : string
|
|
7
|
+
readonly name : string
|
|
8
|
+
readonly site_address_city : string
|
|
9
|
+
readonly site_address_county : string
|
|
10
|
+
readonly [x : string] : any
|
|
11
|
+
|
|
12
|
+
constructor(state_facility : TNStateFacility) {
|
|
13
|
+
if (!TNStateFacility.is(state_facility)) {
|
|
14
|
+
throw Error("Invalid input.")
|
|
15
|
+
}
|
|
16
|
+
this.state_facility_id = state_facility.state_facility_id
|
|
17
|
+
this.state_id = state_facility.state_id
|
|
18
|
+
this.facility_id = state_facility.facility_id
|
|
19
|
+
this.name = state_facility.name
|
|
20
|
+
this.site_address_city = state_facility.site_address_city
|
|
21
|
+
this.site_address_county = state_facility.site_address_county
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
static is(state_facility : any) : state_facility is TNStateFacility {
|
|
25
|
+
return (
|
|
26
|
+
state_facility !== undefined &&
|
|
27
|
+
is_state_id(state_facility.state_id) && state_facility.state_id === "TN" &&
|
|
28
|
+
typeof state_facility.state_facility_id === "string" &&
|
|
29
|
+
typeof state_facility.facility_id === "string" &&
|
|
30
|
+
typeof state_facility.name === "string" &&
|
|
31
|
+
(state_facility.site_address_city === undefined || typeof state_facility.site_address_city === "string") &&
|
|
32
|
+
(state_facility.site_address_county === undefined || typeof state_facility.site_address_county === "string")
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { is_state_id, StateID } from "../../State"
|
|
2
|
+
|
|
3
|
+
export class TNStatePermit {
|
|
4
|
+
readonly state_permit_id : string
|
|
5
|
+
readonly state_id : StateID
|
|
6
|
+
readonly permit_id : string
|
|
7
|
+
readonly state_facility_id : string
|
|
8
|
+
readonly issue_date? : string
|
|
9
|
+
readonly effective_date? : string
|
|
10
|
+
readonly expiration_date? : string
|
|
11
|
+
readonly status? : string
|
|
12
|
+
readonly type_id? : string
|
|
13
|
+
readonly subtype_id? : string
|
|
14
|
+
readonly s3_raw_filenames? : string
|
|
15
|
+
readonly s3_filename? : string
|
|
16
|
+
readonly s3_text_filename? : string
|
|
17
|
+
readonly source_ids? : string[]
|
|
18
|
+
readonly [x : string] : any
|
|
19
|
+
|
|
20
|
+
constructor(state_permit : TNStatePermit) {
|
|
21
|
+
if (!TNStatePermit.is(state_permit)) {
|
|
22
|
+
throw Error("Invalid input.")
|
|
23
|
+
}
|
|
24
|
+
this.state_permit_id = state_permit.state_permit_id
|
|
25
|
+
this.state_id = state_permit.state_id
|
|
26
|
+
this.permit_id = state_permit.permit_id
|
|
27
|
+
this.state_facility_id = state_permit.state_facility_id
|
|
28
|
+
this.issue_date = state_permit.issue_date
|
|
29
|
+
this.expiration_date = state_permit.expiration_date
|
|
30
|
+
this.effective_date = state_permit.effective_date
|
|
31
|
+
this.status = state_permit.status
|
|
32
|
+
this.type_id = state_permit.type_id
|
|
33
|
+
this.subtype_id = state_permit.subtype_id
|
|
34
|
+
this.s3_filename = state_permit.s3_filename
|
|
35
|
+
this.s3_raw_filenames = state_permit.s3_raw_filenames
|
|
36
|
+
this.s3_text_filename = state_permit.s3_text_filename
|
|
37
|
+
this.source_ids = state_permit.source_ids
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
static is(state_permit : any) : state_permit is TNStatePermit {
|
|
41
|
+
return (
|
|
42
|
+
state_permit !== undefined &&
|
|
43
|
+
typeof state_permit.state_permit_id === "string" &&
|
|
44
|
+
is_state_id(state_permit.state_id) && state_permit.state_id === "TN" &&
|
|
45
|
+
typeof state_permit.permit_id === "string" &&
|
|
46
|
+
typeof state_permit.state_facility_id === "string" &&
|
|
47
|
+
(state_permit.issue_date === undefined || typeof state_permit.issue_date === "string") &&
|
|
48
|
+
(state_permit.expiration_date === undefined || typeof state_permit.expiration_date === "string") &&
|
|
49
|
+
(state_permit.effective_date === undefined || typeof state_permit.effective_date === "string") &&
|
|
50
|
+
(state_permit.status === undefined || typeof state_permit.status === "string") &&
|
|
51
|
+
(state_permit.type_id === undefined || typeof state_permit.type_id === "string") &&
|
|
52
|
+
(state_permit.subtype_id === undefined || typeof state_permit.subtype_id === "string") &&
|
|
53
|
+
(state_permit.s3_filename === undefined || typeof state_permit.s3_filename === "string") &&
|
|
54
|
+
(state_permit.s3_raw_filenames === undefined || Array.isArray(state_permit.s3_raw_filenames) && state_permit.s3_raw_filenames.map((s3_filename : any) => typeof s3_filename === "string")) &&
|
|
55
|
+
(state_permit.s3_text_filename === undefined || typeof state_permit.s3_text_filename === "string") &&
|
|
56
|
+
(state_permit.source_ids === undefined || Array.isArray(state_permit.source_ids) && state_permit.source_ids.map((source_id : any) => typeof source_id === "string"))
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
}
|