triangle-types 1.0.134 → 1.0.135
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.
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { StateID } from "../regions/State.js";
|
|
2
1
|
export declare class TenantVoterTarget {
|
|
3
2
|
readonly tenant_voter_target_id: string;
|
|
4
3
|
readonly tenant_id: string;
|
|
5
4
|
readonly voter_id: string;
|
|
6
5
|
readonly target_id: string;
|
|
7
6
|
readonly value: number;
|
|
8
|
-
readonly
|
|
7
|
+
readonly user_id: string;
|
|
9
8
|
constructor(tenant_voter_target: any);
|
|
10
9
|
static is(tenant_voter_target: any): tenant_voter_target is TenantVoterTarget;
|
|
11
10
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { is_state_id } from "../regions/State.js";
|
|
2
1
|
export class TenantVoterTarget {
|
|
3
2
|
tenant_voter_target_id;
|
|
4
3
|
tenant_id;
|
|
5
4
|
voter_id;
|
|
6
5
|
target_id;
|
|
7
6
|
value;
|
|
8
|
-
|
|
7
|
+
user_id;
|
|
9
8
|
// readonly federal_congress_district_id? : string
|
|
10
9
|
// readonly state_legislature_house_district_id? : string
|
|
11
10
|
// readonly state_legislature_senate_district_id? : string
|
|
@@ -21,7 +20,7 @@ export class TenantVoterTarget {
|
|
|
21
20
|
this.voter_id = tenant_voter_target.voter_id;
|
|
22
21
|
this.target_id = tenant_voter_target.target_id;
|
|
23
22
|
this.value = tenant_voter_target.value;
|
|
24
|
-
this.
|
|
23
|
+
this.user_id = tenant_voter_target.user_id;
|
|
25
24
|
// this.federal_congress_district_id = tenant_voter_target.federal_congress_district_id
|
|
26
25
|
// this.state_legislature_house_district_id = tenant_voter_target.state_legislature_house_district_id
|
|
27
26
|
// this.state_legislature_senate_district_id = tenant_voter_target.state_legislature_senate_district_id
|
|
@@ -36,7 +35,7 @@ export class TenantVoterTarget {
|
|
|
36
35
|
typeof tenant_voter_target.voter_id === "string" &&
|
|
37
36
|
typeof tenant_voter_target.target_id === "string" &&
|
|
38
37
|
typeof tenant_voter_target.value === "number" &&
|
|
39
|
-
|
|
38
|
+
typeof tenant_voter_target.user_id === "string" // &&
|
|
40
39
|
// (tenant_voter_target.federal_congress_district_id === undefined || typeof tenant_voter_target.federal_congress_district_id === "string") &&
|
|
41
40
|
// (tenant_voter_target.state_legislature_house_district_id === undefined || typeof tenant_voter_target.state_legislature_house_district_id === "string") &&
|
|
42
41
|
// (tenant_voter_target.state_legislature_senate_district_id === undefined || typeof tenant_voter_target.state_legislature_senate_district_id === "string") &&
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ export class TenantVoterTarget {
|
|
|
6
6
|
readonly voter_id : string
|
|
7
7
|
readonly target_id : string
|
|
8
8
|
readonly value : number
|
|
9
|
-
readonly
|
|
9
|
+
readonly user_id : string
|
|
10
10
|
// readonly federal_congress_district_id? : string
|
|
11
11
|
// readonly state_legislature_house_district_id? : string
|
|
12
12
|
// readonly state_legislature_senate_district_id? : string
|
|
@@ -23,7 +23,7 @@ export class TenantVoterTarget {
|
|
|
23
23
|
this.voter_id = tenant_voter_target.voter_id
|
|
24
24
|
this.target_id = tenant_voter_target.target_id
|
|
25
25
|
this.value = tenant_voter_target.value
|
|
26
|
-
this.
|
|
26
|
+
this.user_id = tenant_voter_target.user_id
|
|
27
27
|
// this.federal_congress_district_id = tenant_voter_target.federal_congress_district_id
|
|
28
28
|
// this.state_legislature_house_district_id = tenant_voter_target.state_legislature_house_district_id
|
|
29
29
|
// this.state_legislature_senate_district_id = tenant_voter_target.state_legislature_senate_district_id
|
|
@@ -40,7 +40,7 @@ export class TenantVoterTarget {
|
|
|
40
40
|
typeof tenant_voter_target.voter_id === "string" &&
|
|
41
41
|
typeof tenant_voter_target.target_id === "string" &&
|
|
42
42
|
typeof tenant_voter_target.value === "number" &&
|
|
43
|
-
|
|
43
|
+
typeof tenant_voter_target.user_id === "string"// &&
|
|
44
44
|
// (tenant_voter_target.federal_congress_district_id === undefined || typeof tenant_voter_target.federal_congress_district_id === "string") &&
|
|
45
45
|
// (tenant_voter_target.state_legislature_house_district_id === undefined || typeof tenant_voter_target.state_legislature_house_district_id === "string") &&
|
|
46
46
|
// (tenant_voter_target.state_legislature_senate_district_id === undefined || typeof tenant_voter_target.state_legislature_senate_district_id === "string") &&
|