triangle-types 1.0.359 → 1.0.361
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.
|
@@ -8,7 +8,7 @@ export declare class StatePermitComment {
|
|
|
8
8
|
}
|
|
9
9
|
export declare class StatePermitDocument {
|
|
10
10
|
readonly state_id: StateID;
|
|
11
|
-
readonly
|
|
11
|
+
readonly permit_id: string;
|
|
12
12
|
readonly document_id: string;
|
|
13
13
|
readonly permit_type_id: string;
|
|
14
14
|
readonly document_type_name: string;
|
|
@@ -18,7 +18,7 @@ export class StatePermitComment {
|
|
|
18
18
|
}
|
|
19
19
|
export class StatePermitDocument {
|
|
20
20
|
state_id;
|
|
21
|
-
|
|
21
|
+
permit_id;
|
|
22
22
|
document_id;
|
|
23
23
|
permit_type_id;
|
|
24
24
|
document_type_name;
|
|
@@ -35,7 +35,7 @@ export class StatePermitDocument {
|
|
|
35
35
|
throw Error("Invalid input.");
|
|
36
36
|
}
|
|
37
37
|
this.state_id = state_permit_document.state_id;
|
|
38
|
-
this.
|
|
38
|
+
this.permit_id = state_permit_document.permit_id;
|
|
39
39
|
this.document_id = state_permit_document.document_id;
|
|
40
40
|
this.permit_type_id = state_permit_document.permit_type_id;
|
|
41
41
|
this.document_type_name = state_permit_document.document_type_name;
|
|
@@ -50,9 +50,8 @@ export class StatePermitDocument {
|
|
|
50
50
|
}
|
|
51
51
|
static is(state_permit_document) {
|
|
52
52
|
return (state_permit_document !== undefined &&
|
|
53
|
-
typeof state_permit_document.state_permit_document_id === "string" &&
|
|
54
53
|
is_state_id(state_permit_document.state_id) &&
|
|
55
|
-
typeof state_permit_document.
|
|
54
|
+
typeof state_permit_document.permit_id === "string" &&
|
|
56
55
|
typeof state_permit_document.document_id === "string" &&
|
|
57
56
|
typeof state_permit_document.permit_type_id === "string" &&
|
|
58
57
|
typeof state_permit_document.document_type_name === "string" &&
|
|
@@ -63,7 +62,7 @@ export class StatePermitDocument {
|
|
|
63
62
|
(state_permit_document.s3_id === undefined || typeof state_permit_document.s3_id == "string") &&
|
|
64
63
|
(state_permit_document.s3_id_txt === undefined || typeof state_permit_document.s3_id_txt == "string") &&
|
|
65
64
|
(state_permit_document.source_ids === undefined || Array.isArray(state_permit_document.source_ids) && state_permit_document.source_ids.every((source_id) => typeof source_id === "string")) &&
|
|
66
|
-
typeof state_permit_document.comments === "string");
|
|
65
|
+
(state_permit_document.comments === undefined || typeof state_permit_document.comments === "string"));
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
68
|
export class StateWaterPermitDocument extends StatePermitDocument {
|
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@ export class StatePermitComment {
|
|
|
25
25
|
|
|
26
26
|
export class StatePermitDocument {
|
|
27
27
|
readonly state_id : StateID
|
|
28
|
-
readonly
|
|
28
|
+
readonly permit_id : string
|
|
29
29
|
readonly document_id : string
|
|
30
30
|
readonly permit_type_id : string
|
|
31
31
|
readonly document_type_name : string
|
|
@@ -44,7 +44,7 @@ export class StatePermitDocument {
|
|
|
44
44
|
throw Error("Invalid input.")
|
|
45
45
|
}
|
|
46
46
|
this.state_id = state_permit_document.state_id
|
|
47
|
-
this.
|
|
47
|
+
this.permit_id = state_permit_document.permit_id
|
|
48
48
|
this.document_id = state_permit_document.document_id
|
|
49
49
|
this.permit_type_id = state_permit_document.permit_type_id
|
|
50
50
|
this.document_type_name = state_permit_document.document_type_name
|
|
@@ -61,9 +61,8 @@ export class StatePermitDocument {
|
|
|
61
61
|
static is(state_permit_document : any) : state_permit_document is StatePermitDocument {
|
|
62
62
|
return (
|
|
63
63
|
state_permit_document !== undefined &&
|
|
64
|
-
typeof state_permit_document.state_permit_document_id === "string" &&
|
|
65
64
|
is_state_id(state_permit_document.state_id) &&
|
|
66
|
-
typeof state_permit_document.
|
|
65
|
+
typeof state_permit_document.permit_id === "string" &&
|
|
67
66
|
typeof state_permit_document.document_id === "string" &&
|
|
68
67
|
typeof state_permit_document.permit_type_id === "string" &&
|
|
69
68
|
typeof state_permit_document.document_type_name === "string" &&
|
|
@@ -74,7 +73,7 @@ export class StatePermitDocument {
|
|
|
74
73
|
(state_permit_document.s3_id === undefined || typeof state_permit_document.s3_id == "string") &&
|
|
75
74
|
(state_permit_document.s3_id_txt === undefined || typeof state_permit_document.s3_id_txt == "string") &&
|
|
76
75
|
(state_permit_document.source_ids === undefined || Array.isArray(state_permit_document.source_ids) && state_permit_document.source_ids.every((source_id : any) => typeof source_id === "string")) &&
|
|
77
|
-
typeof state_permit_document.comments === "string"
|
|
76
|
+
(state_permit_document.comments === undefined || typeof state_permit_document.comments === "string")
|
|
78
77
|
)
|
|
79
78
|
}
|
|
80
79
|
}
|