triangle-types 1.0.46 → 1.0.48
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.
|
@@ -11,16 +11,16 @@ export declare class Voter {
|
|
|
11
11
|
readonly birth_date?: string;
|
|
12
12
|
readonly address_residence_1: string;
|
|
13
13
|
readonly address_residence_2?: string;
|
|
14
|
-
readonly address_residence_city
|
|
14
|
+
readonly address_residence_city?: string;
|
|
15
15
|
readonly address_residence_state_id: string;
|
|
16
|
-
readonly address_residence_zip
|
|
16
|
+
readonly address_residence_zip?: string;
|
|
17
17
|
readonly address_residence_latitude: number;
|
|
18
18
|
readonly address_residence_longitude: number;
|
|
19
19
|
readonly address_mail_1: string;
|
|
20
20
|
readonly address_mail_2?: string;
|
|
21
|
-
readonly address_mail_city
|
|
21
|
+
readonly address_mail_city?: string;
|
|
22
22
|
readonly address_mail_state_id: string;
|
|
23
|
-
readonly address_mail_zip
|
|
23
|
+
readonly address_mail_zip?: string;
|
|
24
24
|
readonly federal_house_district: number;
|
|
25
25
|
readonly state_house_district: number;
|
|
26
26
|
readonly state_senate_district: number;
|
|
@@ -92,19 +92,19 @@ export class Voter {
|
|
|
92
92
|
(voter.birth_date === undefined || typeof voter.birth_date === "string") &&
|
|
93
93
|
typeof voter.address_residence_1 === "string" &&
|
|
94
94
|
(voter.address_residence_2 === undefined || typeof voter.address_residence_2 === "string") &&
|
|
95
|
-
typeof voter.address_residence_city === "string" &&
|
|
95
|
+
(voter.address_residence_city === undefined || typeof voter.address_residence_city === "string") &&
|
|
96
96
|
typeof voter.address_residence_state_id === "string" &&
|
|
97
|
-
typeof voter.address_residence_zip === "string" &&
|
|
97
|
+
(voter.address_residence_zip === undefined || typeof voter.address_residence_zip === "string") &&
|
|
98
98
|
typeof voter.address_residence_latitude === "number" && !isNaN(voter.address_residence_latitude) &&
|
|
99
99
|
typeof voter.address_residence_longitude === "number" && !isNaN(voter.address_residence_longitude) &&
|
|
100
100
|
typeof voter.address_mail_1 === "string" &&
|
|
101
101
|
(voter.address_mail_2 === undefined || typeof voter.address_mail_2 === "string") &&
|
|
102
|
-
typeof voter.address_mail_city === "string" &&
|
|
102
|
+
(voter.address_mail_city === undefined || typeof voter.address_mail_city === "string") &&
|
|
103
103
|
typeof voter.address_mail_state_id === "string" &&
|
|
104
|
-
typeof voter.address_mail_zip === "string" &&
|
|
105
|
-
typeof voter.federal_house_district === "number" &&
|
|
106
|
-
typeof voter.state_house_district === "number" &&
|
|
107
|
-
typeof voter.state_senate_district === "number" &&
|
|
104
|
+
(voter.address_mail_zip === undefined || typeof voter.address_mail_zip === "string") &&
|
|
105
|
+
typeof voter.federal_house_district === "number" && !isNaN(voter.federal_house_district) &&
|
|
106
|
+
typeof voter.state_house_district === "number" && !isNaN(voter.state_house_district) &&
|
|
107
|
+
typeof voter.state_senate_district === "number" && !isNaN(voter.state_senate_district) &&
|
|
108
108
|
(voter.occupation_group === undefined || typeof voter.occupation_group === "string") &&
|
|
109
109
|
(voter.occupation_description === undefined || typeof voter.occupation_description === "string") &&
|
|
110
110
|
(voter.phone_home === undefined || typeof voter.phone_home === "string") &&
|
package/package.json
CHANGED
package/src/types/prism/Voter.ts
CHANGED
|
@@ -11,16 +11,16 @@ export class Voter {
|
|
|
11
11
|
readonly birth_date? : string
|
|
12
12
|
readonly address_residence_1 : string
|
|
13
13
|
readonly address_residence_2? : string
|
|
14
|
-
readonly address_residence_city : string
|
|
14
|
+
readonly address_residence_city? : string
|
|
15
15
|
readonly address_residence_state_id : string
|
|
16
|
-
readonly address_residence_zip : string
|
|
16
|
+
readonly address_residence_zip? : string
|
|
17
17
|
readonly address_residence_latitude : number
|
|
18
18
|
readonly address_residence_longitude : number
|
|
19
19
|
readonly address_mail_1 : string
|
|
20
20
|
readonly address_mail_2? : string
|
|
21
|
-
readonly address_mail_city : string
|
|
21
|
+
readonly address_mail_city? : string
|
|
22
22
|
readonly address_mail_state_id : string
|
|
23
|
-
readonly address_mail_zip : string
|
|
23
|
+
readonly address_mail_zip? : string
|
|
24
24
|
readonly federal_house_district : number
|
|
25
25
|
readonly state_house_district : number
|
|
26
26
|
readonly state_senate_district : number
|
|
@@ -96,19 +96,19 @@ export class Voter {
|
|
|
96
96
|
(voter.birth_date === undefined || typeof voter.birth_date === "string") &&
|
|
97
97
|
typeof voter.address_residence_1 === "string" &&
|
|
98
98
|
(voter.address_residence_2 === undefined || typeof voter.address_residence_2 === "string") &&
|
|
99
|
-
typeof voter.address_residence_city === "string" &&
|
|
99
|
+
(voter.address_residence_city === undefined || typeof voter.address_residence_city === "string") &&
|
|
100
100
|
typeof voter.address_residence_state_id === "string" &&
|
|
101
|
-
typeof voter.address_residence_zip === "string" &&
|
|
101
|
+
(voter.address_residence_zip === undefined || typeof voter.address_residence_zip === "string") &&
|
|
102
102
|
typeof voter.address_residence_latitude === "number" && !isNaN(voter.address_residence_latitude) &&
|
|
103
103
|
typeof voter.address_residence_longitude === "number" && !isNaN(voter.address_residence_longitude) &&
|
|
104
104
|
typeof voter.address_mail_1 === "string" &&
|
|
105
105
|
(voter.address_mail_2 === undefined || typeof voter.address_mail_2 === "string") &&
|
|
106
|
-
typeof voter.address_mail_city === "string" &&
|
|
106
|
+
(voter.address_mail_city === undefined || typeof voter.address_mail_city === "string") &&
|
|
107
107
|
typeof voter.address_mail_state_id === "string" &&
|
|
108
|
-
typeof voter.address_mail_zip === "string" &&
|
|
109
|
-
typeof voter.federal_house_district === "number" &&
|
|
110
|
-
typeof voter.state_house_district === "number" &&
|
|
111
|
-
typeof voter.state_senate_district === "number" &&
|
|
108
|
+
(voter.address_mail_zip === undefined || typeof voter.address_mail_zip === "string") &&
|
|
109
|
+
typeof voter.federal_house_district === "number" && !isNaN(voter.federal_house_district) &&
|
|
110
|
+
typeof voter.state_house_district === "number" && !isNaN(voter.state_house_district) &&
|
|
111
|
+
typeof voter.state_senate_district === "number" && !isNaN(voter.state_senate_district) &&
|
|
112
112
|
(voter.occupation_group === undefined || typeof voter.occupation_group === "string") &&
|
|
113
113
|
(voter.occupation_description === undefined || typeof voter.occupation_description === "string") &&
|
|
114
114
|
(voter.phone_home === undefined || typeof voter.phone_home === "string") &&
|