triangle-types 1.0.171 → 1.0.172
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 +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/types/federal_census/FederalCensus.d.ts +1 -0
- package/dist/src/types/federal_census/FederalCensus.js +6 -0
- package/dist/src/types/lal/LALFileVoter.d.ts +47 -0
- package/dist/src/types/lal/LALFileVoter.js +172 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/types/federal_census/FederalCensus.ts +7 -0
- package/src/types/lal/LALFileVoter.ts +179 -0
- package/start.sh +1 -0
package/dist/src/index.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export * from "./types/federal_rules/FederalRuleSection.js";
|
|
|
53
53
|
export * from "./types/fragments/Fragment.js";
|
|
54
54
|
export * from "./types/fragments/FragmentVector.js";
|
|
55
55
|
export * from "./types/lal/LALFile.js";
|
|
56
|
+
export * from "./types/lal/LALFileVoter.js";
|
|
56
57
|
export * from "./types/legistar/LegistarAgency.js";
|
|
57
58
|
export * from "./types/legistar/LegistarDocument.js";
|
|
58
59
|
export * from "./types/prism/Prism.js";
|
package/dist/src/index.js
CHANGED
|
@@ -53,6 +53,7 @@ export * from "./types/federal_rules/FederalRuleSection.js";
|
|
|
53
53
|
export * from "./types/fragments/Fragment.js";
|
|
54
54
|
export * from "./types/fragments/FragmentVector.js";
|
|
55
55
|
export * from "./types/lal/LALFile.js";
|
|
56
|
+
export * from "./types/lal/LALFileVoter.js";
|
|
56
57
|
export * from "./types/legistar/LegistarAgency.js";
|
|
57
58
|
export * from "./types/legistar/LegistarDocument.js";
|
|
58
59
|
export * from "./types/prism/Prism.js";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { VoterPartyTypeID } from "../prism/Voter.js";
|
|
2
|
+
import { StateID } from "../regions/State.js";
|
|
3
|
+
export declare class LALFileVoter {
|
|
4
|
+
readonly lal_file_voter_id: string;
|
|
5
|
+
readonly lal_file_id: string;
|
|
6
|
+
readonly lal_voter_id: string;
|
|
7
|
+
readonly state_id: StateID;
|
|
8
|
+
readonly voter_id: string;
|
|
9
|
+
readonly name_first: string;
|
|
10
|
+
readonly name_middle?: string;
|
|
11
|
+
readonly name_last: string;
|
|
12
|
+
readonly name_suffix?: string;
|
|
13
|
+
readonly gender_id?: string;
|
|
14
|
+
readonly birth_date?: string;
|
|
15
|
+
readonly address_residence_1: string;
|
|
16
|
+
readonly address_residence_2?: string;
|
|
17
|
+
readonly address_residence_city?: string;
|
|
18
|
+
readonly address_residence_state_id: StateID;
|
|
19
|
+
readonly address_residence_zip?: string;
|
|
20
|
+
readonly address_residence_latitude: number;
|
|
21
|
+
readonly address_residence_longitude: number;
|
|
22
|
+
readonly address_residence_coordinates_type_id: string;
|
|
23
|
+
readonly address_residence_property_sqft?: number;
|
|
24
|
+
readonly address_residence_property_type_id: string;
|
|
25
|
+
readonly address_mail_1: string;
|
|
26
|
+
readonly address_mail_2?: string;
|
|
27
|
+
readonly address_mail_city?: string;
|
|
28
|
+
readonly address_mail_state_id: StateID;
|
|
29
|
+
readonly address_mail_zip?: string;
|
|
30
|
+
readonly party_type_id: VoterPartyTypeID;
|
|
31
|
+
readonly lal_occupation_group_id?: string;
|
|
32
|
+
readonly lal_occupation_id?: string;
|
|
33
|
+
readonly lal_ethnicity_group_id?: string;
|
|
34
|
+
readonly lal_ethnicity_id?: string;
|
|
35
|
+
readonly lal_religion_id?: string;
|
|
36
|
+
readonly lal_language_id?: string;
|
|
37
|
+
readonly lal_maritality_id?: string;
|
|
38
|
+
readonly lal_education_id?: string;
|
|
39
|
+
readonly lal_income?: string;
|
|
40
|
+
readonly lal_credit_range_id?: string;
|
|
41
|
+
readonly phone_home?: string;
|
|
42
|
+
readonly phone_mobile?: string;
|
|
43
|
+
readonly [x: string]: any;
|
|
44
|
+
constructor(lal_file_voter: any);
|
|
45
|
+
static is(lal_file_voter: any): lal_file_voter is LALFileVoter;
|
|
46
|
+
static keys(): string[];
|
|
47
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { is_voter_party_type_id } from "../prism/Voter.js";
|
|
2
|
+
import { is_state_id } from "../regions/State.js";
|
|
3
|
+
export class LALFileVoter {
|
|
4
|
+
lal_file_voter_id;
|
|
5
|
+
lal_file_id;
|
|
6
|
+
lal_voter_id;
|
|
7
|
+
state_id;
|
|
8
|
+
voter_id;
|
|
9
|
+
name_first;
|
|
10
|
+
name_middle;
|
|
11
|
+
name_last;
|
|
12
|
+
name_suffix;
|
|
13
|
+
gender_id;
|
|
14
|
+
birth_date;
|
|
15
|
+
address_residence_1;
|
|
16
|
+
address_residence_2;
|
|
17
|
+
address_residence_city;
|
|
18
|
+
address_residence_state_id;
|
|
19
|
+
address_residence_zip;
|
|
20
|
+
address_residence_latitude;
|
|
21
|
+
address_residence_longitude;
|
|
22
|
+
address_residence_coordinates_type_id;
|
|
23
|
+
address_residence_property_sqft;
|
|
24
|
+
address_residence_property_type_id;
|
|
25
|
+
address_mail_1;
|
|
26
|
+
address_mail_2;
|
|
27
|
+
address_mail_city;
|
|
28
|
+
address_mail_state_id;
|
|
29
|
+
address_mail_zip;
|
|
30
|
+
party_type_id;
|
|
31
|
+
lal_occupation_group_id;
|
|
32
|
+
lal_occupation_id;
|
|
33
|
+
lal_ethnicity_group_id;
|
|
34
|
+
lal_ethnicity_id;
|
|
35
|
+
lal_religion_id;
|
|
36
|
+
lal_language_id;
|
|
37
|
+
lal_maritality_id;
|
|
38
|
+
lal_education_id;
|
|
39
|
+
lal_income;
|
|
40
|
+
lal_credit_range_id;
|
|
41
|
+
phone_home;
|
|
42
|
+
phone_mobile;
|
|
43
|
+
constructor(lal_file_voter) {
|
|
44
|
+
if (!LALFileVoter.is(lal_file_voter)) {
|
|
45
|
+
throw Error("Invalid input.");
|
|
46
|
+
}
|
|
47
|
+
this.lal_file_voter_id = lal_file_voter.lal_file_voter_id;
|
|
48
|
+
this.lal_file_id = lal_file_voter.lal_file_id;
|
|
49
|
+
this.lal_voter_id = lal_file_voter.lal_voter_id;
|
|
50
|
+
this.state_id = lal_file_voter.state_id;
|
|
51
|
+
this.voter_id = lal_file_voter.voter_id;
|
|
52
|
+
this.name_first = lal_file_voter.name_first;
|
|
53
|
+
this.name_middle = lal_file_voter.name_middle;
|
|
54
|
+
this.name_last = lal_file_voter.name_last;
|
|
55
|
+
this.name_suffix = lal_file_voter.name_suffix;
|
|
56
|
+
this.gender_id = lal_file_voter.gender_id;
|
|
57
|
+
this.birth_date = lal_file_voter.birth_date;
|
|
58
|
+
this.address_residence_1 = lal_file_voter.address_residence_1;
|
|
59
|
+
this.address_residence_2 = lal_file_voter.address_residence_2;
|
|
60
|
+
this.address_residence_city = lal_file_voter.address_residence_city;
|
|
61
|
+
this.address_residence_state_id = lal_file_voter.address_residence_state_id;
|
|
62
|
+
this.address_residence_zip = lal_file_voter.address_residence_zip;
|
|
63
|
+
this.address_residence_latitude = lal_file_voter.address_residence_latitude;
|
|
64
|
+
this.address_residence_longitude = lal_file_voter.address_residence_longitude;
|
|
65
|
+
this.address_residence_coordinates_type_id = lal_file_voter.address_residence_coordinates_type_id;
|
|
66
|
+
this.address_residence_property_sqft = lal_file_voter.address_residence_property_sqft;
|
|
67
|
+
this.address_residence_property_type_id = lal_file_voter.address_residence_property_type_id;
|
|
68
|
+
this.address_mail_1 = lal_file_voter.address_mail_1;
|
|
69
|
+
this.address_mail_2 = lal_file_voter.address_mail_2;
|
|
70
|
+
this.address_mail_city = lal_file_voter.address_mail_city;
|
|
71
|
+
this.address_mail_state_id = lal_file_voter.address_mail_state_id;
|
|
72
|
+
this.address_mail_zip = lal_file_voter.address_mail_zip;
|
|
73
|
+
this.party_type_id = lal_file_voter.party_type_id;
|
|
74
|
+
this.lal_occupation_group_id = lal_file_voter.lal_occupation_group_id;
|
|
75
|
+
this.lal_occupation_id = lal_file_voter.lal_occupation_id;
|
|
76
|
+
this.lal_ethnicity_group_id = lal_file_voter.lal_ethnicity_group_id;
|
|
77
|
+
this.lal_ethnicity_id = lal_file_voter.lal_ethnicity_id;
|
|
78
|
+
this.lal_religion_id = lal_file_voter.lal_religion_id;
|
|
79
|
+
this.lal_language_id = lal_file_voter.lal_language_id;
|
|
80
|
+
this.lal_maritality_id = lal_file_voter.lal_maritality_id;
|
|
81
|
+
this.lal_education_id = lal_file_voter.lal_education_id;
|
|
82
|
+
this.lal_income = lal_file_voter.lal_income;
|
|
83
|
+
this.lal_credit_range_id = lal_file_voter.lal_credit_range_id;
|
|
84
|
+
this.phone_home = lal_file_voter.phone_home;
|
|
85
|
+
this.phone_mobile = lal_file_voter.phone_mobile;
|
|
86
|
+
}
|
|
87
|
+
static is(lal_file_voter) {
|
|
88
|
+
return (lal_file_voter !== undefined &&
|
|
89
|
+
typeof lal_file_voter.lal_file_voter_id === "string" &&
|
|
90
|
+
typeof lal_file_voter.lal_file_id === "string" &&
|
|
91
|
+
typeof lal_file_voter.lal_voter_id === "string" &&
|
|
92
|
+
is_state_id(lal_file_voter.state_id) &&
|
|
93
|
+
typeof lal_file_voter.voter_id === "string" &&
|
|
94
|
+
typeof lal_file_voter.name_first === "string" &&
|
|
95
|
+
(lal_file_voter.name_middle === undefined || typeof lal_file_voter.name_middle === "string") &&
|
|
96
|
+
typeof lal_file_voter.name_last === "string" &&
|
|
97
|
+
(lal_file_voter.name_suffix === undefined || typeof lal_file_voter.name_suffix === "string") &&
|
|
98
|
+
(lal_file_voter.gender_id === undefined || typeof lal_file_voter.gender_id === "string") &&
|
|
99
|
+
(lal_file_voter.birth_date === undefined || typeof lal_file_voter.birth_date === "string") &&
|
|
100
|
+
typeof lal_file_voter.address_residence_1 === "string" &&
|
|
101
|
+
(lal_file_voter.address_residence_2 === undefined || typeof lal_file_voter.address_residence_2 === "string") &&
|
|
102
|
+
(lal_file_voter.address_residence_city === undefined || typeof lal_file_voter.address_residence_city === "string") &&
|
|
103
|
+
is_state_id(lal_file_voter.address_residence_state_id) &&
|
|
104
|
+
(lal_file_voter.address_residence_zip_id === undefined || typeof lal_file_voter.address_residence_zip_id === "string") &&
|
|
105
|
+
typeof lal_file_voter.address_residence_latitude === "number" &&
|
|
106
|
+
typeof lal_file_voter.address_residence_longitude === "number" &&
|
|
107
|
+
typeof lal_file_voter.address_residence_coordinates_type_id === "string" &&
|
|
108
|
+
(lal_file_voter.address_residence_property_sqft === undefined || typeof lal_file_voter.address_residence_property_sqft === "number") &&
|
|
109
|
+
(lal_file_voter.address_residence_property_type_id === undefined || typeof lal_file_voter.address_residence_property_type_id === "string") &&
|
|
110
|
+
typeof lal_file_voter.address_mail_1 === "string" &&
|
|
111
|
+
(lal_file_voter.address_mail_2 === undefined || typeof lal_file_voter.address_mail_2 === "string") &&
|
|
112
|
+
(lal_file_voter.address_mail_city === undefined || typeof lal_file_voter.address_mail_city === "string") &&
|
|
113
|
+
is_state_id(lal_file_voter.address_mail_state_id) &&
|
|
114
|
+
(lal_file_voter.address_mail_zip_id === undefined || typeof lal_file_voter.address_mail_zip_id === "string") &&
|
|
115
|
+
is_voter_party_type_id(lal_file_voter.party_type_id) &&
|
|
116
|
+
(lal_file_voter.lal_occupation_group_id === undefined || typeof lal_file_voter.lal_occupation_group_id === "string") &&
|
|
117
|
+
(lal_file_voter.lal_occupation_id === undefined || typeof lal_file_voter.lal_occupation_id === "string") &&
|
|
118
|
+
(lal_file_voter.lal_ethnicity_group_id === undefined || typeof lal_file_voter.lal_ethnicity_group_id === "string") &&
|
|
119
|
+
(lal_file_voter.lal_ethnicity_id === undefined || typeof lal_file_voter.lal_ethnicity_id === "string") &&
|
|
120
|
+
(lal_file_voter.lal_religion_id === undefined || typeof lal_file_voter.lal_religion_id === "string") &&
|
|
121
|
+
(lal_file_voter.lal_language_id === undefined || typeof lal_file_voter.lal_language_id === "string") &&
|
|
122
|
+
(lal_file_voter.lal_maritality_id === undefined || typeof lal_file_voter.lal_maritality_id === "string") &&
|
|
123
|
+
(lal_file_voter.lal_education_id === undefined || typeof lal_file_voter.lal_education_id === "string") &&
|
|
124
|
+
(lal_file_voter.lal_income === undefined || typeof lal_file_voter.lal_income === "string") &&
|
|
125
|
+
(lal_file_voter.lal_credit_range_id === undefined || typeof lal_file_voter.lal_credit_range_id === "string") &&
|
|
126
|
+
(lal_file_voter.phone_home === undefined || typeof lal_file_voter.phone_home === "string") &&
|
|
127
|
+
(lal_file_voter.phone_mobile === undefined || typeof lal_file_voter.phone_mobile === "string"));
|
|
128
|
+
}
|
|
129
|
+
static keys() {
|
|
130
|
+
return [
|
|
131
|
+
"lal_file_voter_id",
|
|
132
|
+
"lal_file_id",
|
|
133
|
+
"lal_voter_id",
|
|
134
|
+
"state_id",
|
|
135
|
+
"voter_id",
|
|
136
|
+
"name_first",
|
|
137
|
+
"name_middle",
|
|
138
|
+
"name_last",
|
|
139
|
+
"name_suffix",
|
|
140
|
+
"gender_id",
|
|
141
|
+
"birth_date",
|
|
142
|
+
"address_residence_1",
|
|
143
|
+
"address_residence_2",
|
|
144
|
+
"address_residence_city",
|
|
145
|
+
"address_residence_state_id",
|
|
146
|
+
"address_residence_zip",
|
|
147
|
+
"address_residence_latitude",
|
|
148
|
+
"address_residence_longitude",
|
|
149
|
+
"address_residence_coordinates_type_id",
|
|
150
|
+
"address_residence_property_sqft",
|
|
151
|
+
"address_residence_property_type_id",
|
|
152
|
+
"address_mail_1",
|
|
153
|
+
"address_mail_2",
|
|
154
|
+
"address_mail_city",
|
|
155
|
+
"address_mail_state_id",
|
|
156
|
+
"address_mail_zip",
|
|
157
|
+
"party_type_id",
|
|
158
|
+
"lal_occupation_group_id",
|
|
159
|
+
"lal_occupation_id",
|
|
160
|
+
"lal_ethnicity_group_id",
|
|
161
|
+
"lal_ethnicity_id",
|
|
162
|
+
"lal_religion_id",
|
|
163
|
+
"lal_language_id",
|
|
164
|
+
"lal_maritality_id",
|
|
165
|
+
"lal_education_id",
|
|
166
|
+
"lal_income",
|
|
167
|
+
"lal_credit_range_id",
|
|
168
|
+
"phone_home",
|
|
169
|
+
"phone_mobile"
|
|
170
|
+
];
|
|
171
|
+
}
|
|
172
|
+
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -64,6 +64,7 @@ export * from "./types/fragments/Fragment"
|
|
|
64
64
|
export * from "./types/fragments/FragmentVector"
|
|
65
65
|
|
|
66
66
|
export * from "./types/lal/LALFile"
|
|
67
|
+
export * from "./types/lal/LALFileVoter"
|
|
67
68
|
|
|
68
69
|
export * from "./types/legistar/LegistarAgency"
|
|
69
70
|
export * from "./types/legistar/LegistarDocument"
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { is_voter_party_type_id, VoterPartyTypeID } from "../prism/Voter"
|
|
2
|
+
import { is_state_id, StateID } from "../regions/State"
|
|
3
|
+
|
|
4
|
+
export class LALFileVoter {
|
|
5
|
+
readonly lal_file_voter_id : string
|
|
6
|
+
readonly lal_file_id : string
|
|
7
|
+
readonly lal_voter_id : string
|
|
8
|
+
readonly state_id : StateID
|
|
9
|
+
readonly voter_id : string
|
|
10
|
+
readonly name_first : string
|
|
11
|
+
readonly name_middle? : string
|
|
12
|
+
readonly name_last : string
|
|
13
|
+
readonly name_suffix? : string
|
|
14
|
+
readonly gender_id? : string
|
|
15
|
+
readonly birth_date? : string
|
|
16
|
+
readonly address_residence_1 : string
|
|
17
|
+
readonly address_residence_2? : string
|
|
18
|
+
readonly address_residence_city? : string
|
|
19
|
+
readonly address_residence_state_id : StateID
|
|
20
|
+
readonly address_residence_zip? : string
|
|
21
|
+
readonly address_residence_latitude : number
|
|
22
|
+
readonly address_residence_longitude : number
|
|
23
|
+
readonly address_residence_coordinates_type_id : string
|
|
24
|
+
readonly address_residence_property_sqft? : number
|
|
25
|
+
readonly address_residence_property_type_id : string
|
|
26
|
+
readonly address_mail_1 : string
|
|
27
|
+
readonly address_mail_2? : string
|
|
28
|
+
readonly address_mail_city? : string
|
|
29
|
+
readonly address_mail_state_id : StateID
|
|
30
|
+
readonly address_mail_zip? : string
|
|
31
|
+
readonly party_type_id : VoterPartyTypeID
|
|
32
|
+
readonly lal_occupation_group_id? : string
|
|
33
|
+
readonly lal_occupation_id? : string
|
|
34
|
+
readonly lal_ethnicity_group_id? : string
|
|
35
|
+
readonly lal_ethnicity_id? : string
|
|
36
|
+
readonly lal_religion_id? : string
|
|
37
|
+
readonly lal_language_id? : string
|
|
38
|
+
readonly lal_maritality_id? : string
|
|
39
|
+
readonly lal_education_id? : string
|
|
40
|
+
readonly lal_income? : string
|
|
41
|
+
readonly lal_credit_range_id? : string
|
|
42
|
+
readonly phone_home? : string
|
|
43
|
+
readonly phone_mobile? : string
|
|
44
|
+
readonly [x : string] : any
|
|
45
|
+
|
|
46
|
+
constructor(lal_file_voter : any) {
|
|
47
|
+
if (!LALFileVoter.is(lal_file_voter)) {
|
|
48
|
+
throw Error("Invalid input.")
|
|
49
|
+
}
|
|
50
|
+
this.lal_file_voter_id = lal_file_voter.lal_file_voter_id
|
|
51
|
+
this.lal_file_id = lal_file_voter.lal_file_id
|
|
52
|
+
this.lal_voter_id = lal_file_voter.lal_voter_id
|
|
53
|
+
this.state_id = lal_file_voter.state_id
|
|
54
|
+
this.voter_id = lal_file_voter.voter_id
|
|
55
|
+
this.name_first = lal_file_voter.name_first
|
|
56
|
+
this.name_middle = lal_file_voter.name_middle
|
|
57
|
+
this.name_last = lal_file_voter.name_last
|
|
58
|
+
this.name_suffix = lal_file_voter.name_suffix
|
|
59
|
+
this.gender_id = lal_file_voter.gender_id
|
|
60
|
+
this.birth_date = lal_file_voter.birth_date
|
|
61
|
+
this.address_residence_1 = lal_file_voter.address_residence_1
|
|
62
|
+
this.address_residence_2 = lal_file_voter.address_residence_2
|
|
63
|
+
this.address_residence_city = lal_file_voter.address_residence_city
|
|
64
|
+
this.address_residence_state_id = lal_file_voter.address_residence_state_id
|
|
65
|
+
this.address_residence_zip = lal_file_voter.address_residence_zip
|
|
66
|
+
this.address_residence_latitude = lal_file_voter.address_residence_latitude
|
|
67
|
+
this.address_residence_longitude = lal_file_voter.address_residence_longitude
|
|
68
|
+
this.address_residence_coordinates_type_id = lal_file_voter.address_residence_coordinates_type_id
|
|
69
|
+
this.address_residence_property_sqft = lal_file_voter.address_residence_property_sqft
|
|
70
|
+
this.address_residence_property_type_id = lal_file_voter.address_residence_property_type_id
|
|
71
|
+
this.address_mail_1 = lal_file_voter.address_mail_1
|
|
72
|
+
this.address_mail_2 = lal_file_voter.address_mail_2
|
|
73
|
+
this.address_mail_city = lal_file_voter.address_mail_city
|
|
74
|
+
this.address_mail_state_id = lal_file_voter.address_mail_state_id
|
|
75
|
+
this.address_mail_zip = lal_file_voter.address_mail_zip
|
|
76
|
+
this.party_type_id = lal_file_voter.party_type_id
|
|
77
|
+
this.lal_occupation_group_id = lal_file_voter.lal_occupation_group_id
|
|
78
|
+
this.lal_occupation_id = lal_file_voter.lal_occupation_id
|
|
79
|
+
this.lal_ethnicity_group_id = lal_file_voter.lal_ethnicity_group_id
|
|
80
|
+
this.lal_ethnicity_id = lal_file_voter.lal_ethnicity_id
|
|
81
|
+
this.lal_religion_id = lal_file_voter.lal_religion_id
|
|
82
|
+
this.lal_language_id = lal_file_voter.lal_language_id
|
|
83
|
+
this.lal_maritality_id = lal_file_voter.lal_maritality_id
|
|
84
|
+
this.lal_education_id = lal_file_voter.lal_education_id
|
|
85
|
+
this.lal_income = lal_file_voter.lal_income
|
|
86
|
+
this.lal_credit_range_id = lal_file_voter.lal_credit_range_id
|
|
87
|
+
this.phone_home = lal_file_voter.phone_home
|
|
88
|
+
this.phone_mobile = lal_file_voter.phone_mobile
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
static is(lal_file_voter : any) : lal_file_voter is LALFileVoter {
|
|
92
|
+
return (
|
|
93
|
+
lal_file_voter !== undefined &&
|
|
94
|
+
typeof lal_file_voter.lal_file_voter_id === "string" &&
|
|
95
|
+
typeof lal_file_voter.lal_file_id === "string" &&
|
|
96
|
+
typeof lal_file_voter.lal_voter_id === "string" &&
|
|
97
|
+
is_state_id(lal_file_voter.state_id) &&
|
|
98
|
+
typeof lal_file_voter.voter_id === "string" &&
|
|
99
|
+
typeof lal_file_voter.name_first === "string" &&
|
|
100
|
+
(lal_file_voter.name_middle === undefined || typeof lal_file_voter.name_middle === "string") &&
|
|
101
|
+
typeof lal_file_voter.name_last === "string" &&
|
|
102
|
+
(lal_file_voter.name_suffix === undefined || typeof lal_file_voter.name_suffix === "string") &&
|
|
103
|
+
(lal_file_voter.gender_id === undefined || typeof lal_file_voter.gender_id === "string") &&
|
|
104
|
+
(lal_file_voter.birth_date === undefined || typeof lal_file_voter.birth_date === "string") &&
|
|
105
|
+
typeof lal_file_voter.address_residence_1 === "string" &&
|
|
106
|
+
(lal_file_voter.address_residence_2 === undefined || typeof lal_file_voter.address_residence_2 === "string") &&
|
|
107
|
+
(lal_file_voter.address_residence_city === undefined || typeof lal_file_voter.address_residence_city === "string") &&
|
|
108
|
+
is_state_id(lal_file_voter.address_residence_state_id) &&
|
|
109
|
+
(lal_file_voter.address_residence_zip_id === undefined || typeof lal_file_voter.address_residence_zip_id === "string") &&
|
|
110
|
+
typeof lal_file_voter.address_residence_latitude === "number" &&
|
|
111
|
+
typeof lal_file_voter.address_residence_longitude === "number" &&
|
|
112
|
+
typeof lal_file_voter.address_residence_coordinates_type_id === "string" &&
|
|
113
|
+
(lal_file_voter.address_residence_property_sqft === undefined || typeof lal_file_voter.address_residence_property_sqft === "number") &&
|
|
114
|
+
(lal_file_voter.address_residence_property_type_id === undefined || typeof lal_file_voter.address_residence_property_type_id === "string") &&
|
|
115
|
+
typeof lal_file_voter.address_mail_1 === "string" &&
|
|
116
|
+
(lal_file_voter.address_mail_2 === undefined || typeof lal_file_voter.address_mail_2 === "string") &&
|
|
117
|
+
(lal_file_voter.address_mail_city === undefined || typeof lal_file_voter.address_mail_city === "string") &&
|
|
118
|
+
is_state_id(lal_file_voter.address_mail_state_id) &&
|
|
119
|
+
(lal_file_voter.address_mail_zip_id === undefined || typeof lal_file_voter.address_mail_zip_id === "string") &&
|
|
120
|
+
is_voter_party_type_id(lal_file_voter.party_type_id) &&
|
|
121
|
+
(lal_file_voter.lal_occupation_group_id === undefined || typeof lal_file_voter.lal_occupation_group_id === "string") &&
|
|
122
|
+
(lal_file_voter.lal_occupation_id === undefined || typeof lal_file_voter.lal_occupation_id === "string") &&
|
|
123
|
+
(lal_file_voter.lal_ethnicity_group_id === undefined || typeof lal_file_voter.lal_ethnicity_group_id === "string") &&
|
|
124
|
+
(lal_file_voter.lal_ethnicity_id === undefined || typeof lal_file_voter.lal_ethnicity_id === "string") &&
|
|
125
|
+
(lal_file_voter.lal_religion_id === undefined || typeof lal_file_voter.lal_religion_id === "string") &&
|
|
126
|
+
(lal_file_voter.lal_language_id === undefined || typeof lal_file_voter.lal_language_id === "string") &&
|
|
127
|
+
(lal_file_voter.lal_maritality_id === undefined || typeof lal_file_voter.lal_maritality_id === "string") &&
|
|
128
|
+
(lal_file_voter.lal_education_id === undefined || typeof lal_file_voter.lal_education_id === "string") &&
|
|
129
|
+
(lal_file_voter.lal_income === undefined || typeof lal_file_voter.lal_income === "string") &&
|
|
130
|
+
(lal_file_voter.lal_credit_range_id === undefined || typeof lal_file_voter.lal_credit_range_id === "string") &&
|
|
131
|
+
(lal_file_voter.phone_home === undefined || typeof lal_file_voter.phone_home === "string") &&
|
|
132
|
+
(lal_file_voter.phone_mobile === undefined || typeof lal_file_voter.phone_mobile === "string")
|
|
133
|
+
)
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
static keys() : string[] {
|
|
137
|
+
return [
|
|
138
|
+
"lal_file_voter_id",
|
|
139
|
+
"lal_file_id",
|
|
140
|
+
"lal_voter_id",
|
|
141
|
+
"state_id",
|
|
142
|
+
"voter_id",
|
|
143
|
+
"name_first",
|
|
144
|
+
"name_middle",
|
|
145
|
+
"name_last",
|
|
146
|
+
"name_suffix",
|
|
147
|
+
"gender_id",
|
|
148
|
+
"birth_date",
|
|
149
|
+
"address_residence_1",
|
|
150
|
+
"address_residence_2",
|
|
151
|
+
"address_residence_city",
|
|
152
|
+
"address_residence_state_id",
|
|
153
|
+
"address_residence_zip",
|
|
154
|
+
"address_residence_latitude",
|
|
155
|
+
"address_residence_longitude",
|
|
156
|
+
"address_residence_coordinates_type_id",
|
|
157
|
+
"address_residence_property_sqft",
|
|
158
|
+
"address_residence_property_type_id",
|
|
159
|
+
"address_mail_1",
|
|
160
|
+
"address_mail_2",
|
|
161
|
+
"address_mail_city",
|
|
162
|
+
"address_mail_state_id",
|
|
163
|
+
"address_mail_zip",
|
|
164
|
+
"party_type_id",
|
|
165
|
+
"lal_occupation_group_id",
|
|
166
|
+
"lal_occupation_id",
|
|
167
|
+
"lal_ethnicity_group_id",
|
|
168
|
+
"lal_ethnicity_id",
|
|
169
|
+
"lal_religion_id",
|
|
170
|
+
"lal_language_id",
|
|
171
|
+
"lal_maritality_id",
|
|
172
|
+
"lal_education_id",
|
|
173
|
+
"lal_income",
|
|
174
|
+
"lal_credit_range_id",
|
|
175
|
+
"phone_home",
|
|
176
|
+
"phone_mobile"
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
}
|
package/start.sh
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
aws rds-data execute-statement --resource-arn "arn:aws:rds:us-east-1:675045717295:cluster:triangle" --secret-arn "arn:aws:secretsmanager:us-east-1:675045717295:secret:rds!cluster-589d31ef-3299-424d-9e2e-e6c0944182fa-HsMrI1" --database "postgres" --sql "SELECT version();" --region us-east-1
|