triangle-types 1.0.86 → 1.0.88
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/types/prism/PrismSegment.d.ts +1 -1
- package/dist/src/types/prism/PrismSegment.js +3 -3
- package/dist/src/types/prism/Voter.d.ts +1 -1
- package/dist/src/types/prism/Voter.js +1 -1
- package/package.json +1 -1
- package/src/types/prism/PrismSegment.ts +3 -3
- package/src/types/prism/Voter.ts +2 -2
|
@@ -2,7 +2,7 @@ export declare class PrismSegment {
|
|
|
2
2
|
readonly prism_segment_id: string;
|
|
3
3
|
readonly prism_id: string;
|
|
4
4
|
readonly segment_id: string;
|
|
5
|
-
readonly
|
|
5
|
+
readonly is_unit: boolean;
|
|
6
6
|
readonly min_value: number;
|
|
7
7
|
readonly max_value: number;
|
|
8
8
|
readonly num_voters: number;
|
|
@@ -2,7 +2,7 @@ export class PrismSegment {
|
|
|
2
2
|
prism_segment_id;
|
|
3
3
|
prism_id;
|
|
4
4
|
segment_id;
|
|
5
|
-
|
|
5
|
+
is_unit;
|
|
6
6
|
min_value;
|
|
7
7
|
max_value;
|
|
8
8
|
num_voters;
|
|
@@ -13,7 +13,7 @@ export class PrismSegment {
|
|
|
13
13
|
this.prism_segment_id = prism_segment.prism_segment_id;
|
|
14
14
|
this.prism_id = prism_segment.prism_id;
|
|
15
15
|
this.segment_id = prism_segment.segment_id;
|
|
16
|
-
this.
|
|
16
|
+
this.is_unit = prism_segment.is_unit;
|
|
17
17
|
this.min_value = prism_segment.min_value;
|
|
18
18
|
this.max_value = prism_segment.max_value;
|
|
19
19
|
this.num_voters = prism_segment.num_voters;
|
|
@@ -23,7 +23,7 @@ export class PrismSegment {
|
|
|
23
23
|
typeof prism_segment.prism_segment_id === "string" &&
|
|
24
24
|
typeof prism_segment.prism_id === "string" &&
|
|
25
25
|
typeof prism_segment.segment_id === "string" &&
|
|
26
|
-
typeof prism_segment.
|
|
26
|
+
typeof prism_segment.is_unit === "boolean" &&
|
|
27
27
|
typeof prism_segment.min_value === "number" &&
|
|
28
28
|
typeof prism_segment.max_value === "number" &&
|
|
29
29
|
typeof prism_segment.num_voters === "number");
|
|
@@ -12,7 +12,7 @@ export declare class Voter {
|
|
|
12
12
|
readonly name_middle?: string;
|
|
13
13
|
readonly name_last: string;
|
|
14
14
|
readonly name_suffix?: string;
|
|
15
|
-
readonly gender_id
|
|
15
|
+
readonly gender_id?: string;
|
|
16
16
|
readonly age: number;
|
|
17
17
|
readonly birth_date?: string;
|
|
18
18
|
readonly address_residence_1: string;
|
|
@@ -96,7 +96,7 @@ export class Voter {
|
|
|
96
96
|
(voter.name_middle === undefined || typeof voter.name_middle === "string") &&
|
|
97
97
|
typeof voter.name_last === "string" &&
|
|
98
98
|
(voter.name_suffix === undefined || typeof voter.name_suffix === "string") &&
|
|
99
|
-
typeof voter.gender_id === "string" &&
|
|
99
|
+
(voter.gender_id === undefined || typeof voter.gender_id === "string") &&
|
|
100
100
|
typeof voter.age === "number" && !isNaN(voter.age) &&
|
|
101
101
|
(voter.birth_date === undefined || typeof voter.birth_date === "string") &&
|
|
102
102
|
typeof voter.address_residence_1 === "string" &&
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ export class PrismSegment {
|
|
|
2
2
|
readonly prism_segment_id : string
|
|
3
3
|
readonly prism_id : string
|
|
4
4
|
readonly segment_id : string
|
|
5
|
-
readonly
|
|
5
|
+
readonly is_unit : boolean
|
|
6
6
|
readonly min_value : number
|
|
7
7
|
readonly max_value : number
|
|
8
8
|
readonly num_voters : number
|
|
@@ -15,7 +15,7 @@ export class PrismSegment {
|
|
|
15
15
|
this.prism_segment_id = prism_segment.prism_segment_id
|
|
16
16
|
this.prism_id = prism_segment.prism_id
|
|
17
17
|
this.segment_id = prism_segment.segment_id
|
|
18
|
-
this.
|
|
18
|
+
this.is_unit = prism_segment.is_unit
|
|
19
19
|
this.min_value = prism_segment.min_value
|
|
20
20
|
this.max_value = prism_segment.max_value
|
|
21
21
|
this.num_voters = prism_segment.num_voters
|
|
@@ -27,7 +27,7 @@ export class PrismSegment {
|
|
|
27
27
|
typeof prism_segment.prism_segment_id === "string" &&
|
|
28
28
|
typeof prism_segment.prism_id === "string" &&
|
|
29
29
|
typeof prism_segment.segment_id === "string" &&
|
|
30
|
-
typeof prism_segment.
|
|
30
|
+
typeof prism_segment.is_unit === "boolean" &&
|
|
31
31
|
typeof prism_segment.min_value === "number" &&
|
|
32
32
|
typeof prism_segment.max_value === "number" &&
|
|
33
33
|
typeof prism_segment.num_voters === "number"
|
package/src/types/prism/Voter.ts
CHANGED
|
@@ -18,7 +18,7 @@ export class Voter {
|
|
|
18
18
|
readonly name_middle? : string
|
|
19
19
|
readonly name_last : string
|
|
20
20
|
readonly name_suffix? : string
|
|
21
|
-
readonly gender_id : string
|
|
21
|
+
readonly gender_id? : string
|
|
22
22
|
readonly age : number
|
|
23
23
|
readonly birth_date? : string
|
|
24
24
|
readonly address_residence_1 : string
|
|
@@ -105,7 +105,7 @@ export class Voter {
|
|
|
105
105
|
(voter.name_middle === undefined || typeof voter.name_middle === "string") &&
|
|
106
106
|
typeof voter.name_last === "string" &&
|
|
107
107
|
(voter.name_suffix === undefined || typeof voter.name_suffix === "string") &&
|
|
108
|
-
typeof voter.gender_id === "string" &&
|
|
108
|
+
(voter.gender_id === undefined || typeof voter.gender_id === "string") &&
|
|
109
109
|
typeof voter.age === "number" && !isNaN(voter.age) &&
|
|
110
110
|
(voter.birth_date === undefined || typeof voter.birth_date === "string") &&
|
|
111
111
|
typeof voter.address_residence_1 === "string" &&
|