triage-types 1.0.18 → 1.0.19
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.
|
@@ -6,6 +6,7 @@ export declare class ARStatePermitWaterSource {
|
|
|
6
6
|
readonly state_id: StateID;
|
|
7
7
|
readonly state_permit_id: string;
|
|
8
8
|
readonly source_id: string;
|
|
9
|
+
readonly type_id: string;
|
|
9
10
|
readonly [x: string]: any;
|
|
10
11
|
constructor(state_permit_water_source: ARStatePermitWaterSource);
|
|
11
12
|
static is(state_permit_water_source: any): state_permit_water_source is ARStatePermitWaterSource;
|
|
@@ -15,6 +16,7 @@ export declare class ARStatePermitSource {
|
|
|
15
16
|
readonly state_id: StateID;
|
|
16
17
|
readonly state_permit_id: string;
|
|
17
18
|
readonly source_id: string;
|
|
19
|
+
readonly type_id: string;
|
|
18
20
|
readonly page_nums: number[];
|
|
19
21
|
readonly description?: string;
|
|
20
22
|
readonly is_rice?: string;
|
|
@@ -6,6 +6,7 @@ export class ARStatePermitWaterSource {
|
|
|
6
6
|
state_id;
|
|
7
7
|
state_permit_id;
|
|
8
8
|
source_id;
|
|
9
|
+
type_id;
|
|
9
10
|
constructor(state_permit_water_source) {
|
|
10
11
|
if (!ARStatePermitWaterSource.is(state_permit_water_source)) {
|
|
11
12
|
throw Error("Invalid input.");
|
|
@@ -14,13 +15,15 @@ export class ARStatePermitWaterSource {
|
|
|
14
15
|
this.state_id = state_permit_water_source.state_id;
|
|
15
16
|
this.state_permit_id = state_permit_water_source.state_permit_id;
|
|
16
17
|
this.source_id = state_permit_water_source.source_id;
|
|
18
|
+
this.type_id = state_permit_water_source.type_id;
|
|
17
19
|
}
|
|
18
20
|
static is(state_permit_water_source) {
|
|
19
21
|
return (state_permit_water_source !== undefined &&
|
|
20
22
|
typeof state_permit_water_source.state_permit_source_id === "string" &&
|
|
21
23
|
is_state_id(state_permit_water_source.state_id) &&
|
|
22
24
|
typeof state_permit_water_source.state_permit_id === "string" &&
|
|
23
|
-
typeof state_permit_water_source.source_id === "string"
|
|
25
|
+
typeof state_permit_water_source.source_id === "string" &&
|
|
26
|
+
typeof state_permit_water_source.type_id === "string");
|
|
24
27
|
}
|
|
25
28
|
}
|
|
26
29
|
export class ARStatePermitSource {
|
|
@@ -28,6 +31,7 @@ export class ARStatePermitSource {
|
|
|
28
31
|
state_id;
|
|
29
32
|
state_permit_id;
|
|
30
33
|
source_id;
|
|
34
|
+
type_id;
|
|
31
35
|
page_nums;
|
|
32
36
|
description;
|
|
33
37
|
is_rice;
|
|
@@ -58,6 +62,7 @@ export class ARStatePermitSource {
|
|
|
58
62
|
this.fuel_type_id = state_permit_source.fuel_type_id;
|
|
59
63
|
this.is_emergency = state_permit_source.is_emergency;
|
|
60
64
|
this.local_state_permit_source_ids = state_permit_source.local_state_permit_source_ids;
|
|
65
|
+
this.type_id = state_permit_source.type_id;
|
|
61
66
|
}
|
|
62
67
|
static is(state_permit_source) {
|
|
63
68
|
return (state_permit_source !== undefined &&
|
|
@@ -65,6 +70,7 @@ export class ARStatePermitSource {
|
|
|
65
70
|
is_state_id(state_permit_source.state_id) &&
|
|
66
71
|
typeof state_permit_source.state_permit_id === "string" &&
|
|
67
72
|
typeof state_permit_source.source_id === "string" &&
|
|
73
|
+
typeof state_permit_source.type_id === "string" &&
|
|
68
74
|
Array.isArray(state_permit_source.page_nums) && state_permit_source.page_nums.every((page_num) => typeof page_num === "number") &&
|
|
69
75
|
(state_permit_source.description === undefined || typeof state_permit_source.description === "string") &&
|
|
70
76
|
(state_permit_source.is_rice === undefined || typeof state_permit_source.is_rice === "string") &&
|
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ export class ARStatePermitWaterSource {
|
|
|
7
7
|
readonly state_id : StateID
|
|
8
8
|
readonly state_permit_id : string
|
|
9
9
|
readonly source_id : string
|
|
10
|
+
readonly type_id : string
|
|
10
11
|
readonly [x : string] : any
|
|
11
12
|
|
|
12
13
|
constructor(state_permit_water_source : ARStatePermitWaterSource) {
|
|
@@ -17,6 +18,7 @@ export class ARStatePermitWaterSource {
|
|
|
17
18
|
this.state_id = state_permit_water_source.state_id
|
|
18
19
|
this.state_permit_id = state_permit_water_source.state_permit_id
|
|
19
20
|
this.source_id = state_permit_water_source.source_id
|
|
21
|
+
this.type_id = state_permit_water_source.type_id
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
static is(state_permit_water_source : any) : state_permit_water_source is ARStatePermitWaterSource {
|
|
@@ -25,7 +27,8 @@ export class ARStatePermitWaterSource {
|
|
|
25
27
|
typeof state_permit_water_source.state_permit_source_id === "string" &&
|
|
26
28
|
is_state_id(state_permit_water_source.state_id) &&
|
|
27
29
|
typeof state_permit_water_source.state_permit_id === "string" &&
|
|
28
|
-
typeof state_permit_water_source.source_id === "string"
|
|
30
|
+
typeof state_permit_water_source.source_id === "string" &&
|
|
31
|
+
typeof state_permit_water_source.type_id === "string"
|
|
29
32
|
)
|
|
30
33
|
}
|
|
31
34
|
}
|
|
@@ -35,6 +38,7 @@ export class ARStatePermitSource {
|
|
|
35
38
|
readonly state_id : StateID
|
|
36
39
|
readonly state_permit_id : string
|
|
37
40
|
readonly source_id : string
|
|
41
|
+
readonly type_id : string
|
|
38
42
|
readonly page_nums : number[]
|
|
39
43
|
readonly description? : string
|
|
40
44
|
readonly is_rice? : string
|
|
@@ -67,6 +71,7 @@ export class ARStatePermitSource {
|
|
|
67
71
|
this.fuel_type_id = state_permit_source.fuel_type_id
|
|
68
72
|
this.is_emergency = state_permit_source.is_emergency
|
|
69
73
|
this.local_state_permit_source_ids = state_permit_source.local_state_permit_source_ids
|
|
74
|
+
this.type_id = state_permit_source.type_id
|
|
70
75
|
}
|
|
71
76
|
|
|
72
77
|
static is(state_permit_source : any) : state_permit_source is ARStatePermitSource {
|
|
@@ -76,6 +81,7 @@ export class ARStatePermitSource {
|
|
|
76
81
|
is_state_id(state_permit_source.state_id) &&
|
|
77
82
|
typeof state_permit_source.state_permit_id === "string" &&
|
|
78
83
|
typeof state_permit_source.source_id === "string" &&
|
|
84
|
+
typeof state_permit_source.type_id === "string" &&
|
|
79
85
|
Array.isArray(state_permit_source.page_nums) && state_permit_source.page_nums.every((page_num : any) => typeof page_num === "number") &&
|
|
80
86
|
(state_permit_source.description === undefined || typeof state_permit_source.description === "string") &&
|
|
81
87
|
(state_permit_source.is_rice === undefined || typeof state_permit_source.is_rice === "string") &&
|