triangle-types 1.0.184 → 1.0.186

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,7 +1,6 @@
1
1
  import { VoterPartyTypeID } from "../prism/Voter.js";
2
2
  import { StateID } from "../regions/State.js";
3
3
  export declare class LALFileVoter {
4
- readonly lal_file_voter_id: string;
5
4
  readonly lal_file_id: string;
6
5
  readonly lal_voter_id: string;
7
6
  readonly state_id: StateID;
@@ -1,7 +1,6 @@
1
1
  import { is_voter_party_type_id } from "../prism/Voter.js";
2
2
  import { is_state_id } from "../regions/State.js";
3
3
  export class LALFileVoter {
4
- lal_file_voter_id;
5
4
  lal_file_id;
6
5
  lal_voter_id;
7
6
  state_id;
@@ -45,7 +44,6 @@ export class LALFileVoter {
45
44
  if (!LALFileVoter.is(lal_file_voter)) {
46
45
  throw Error("Invalid input.");
47
46
  }
48
- this.lal_file_voter_id = lal_file_voter.lal_file_voter_id;
49
47
  this.lal_file_id = lal_file_voter.lal_file_id;
50
48
  this.lal_voter_id = lal_file_voter.lal_voter_id;
51
49
  this.state_id = lal_file_voter.state_id;
@@ -88,7 +86,6 @@ export class LALFileVoter {
88
86
  }
89
87
  static is(lal_file_voter) {
90
88
  return (lal_file_voter !== undefined &&
91
- typeof lal_file_voter.lal_file_voter_id === "string" &&
92
89
  typeof lal_file_voter.lal_file_id === "string" &&
93
90
  typeof lal_file_voter.lal_voter_id === "string" &&
94
91
  is_state_id(lal_file_voter.state_id) &&
@@ -4,7 +4,8 @@ import { StateVoterTarget } from "./StateVoterTarget.js";
4
4
  export declare class StateVoter {
5
5
  readonly state_id: StateID;
6
6
  readonly voter_id: string;
7
- readonly lal_file_voter_id: string;
7
+ readonly lal_file_id: string;
8
+ readonly lal_voter_id: string;
8
9
  readonly [x: string]: any;
9
10
  constructor(state_voter: any);
10
11
  static is(state_voter: any): state_voter is StateVoter;
@@ -4,20 +4,23 @@ import { StateVoterTarget } from "./StateVoterTarget.js";
4
4
  export class StateVoter {
5
5
  state_id;
6
6
  voter_id;
7
- lal_file_voter_id;
7
+ lal_file_id;
8
+ lal_voter_id;
8
9
  constructor(state_voter) {
9
10
  if (!StateVoter.is(state_voter)) {
10
11
  throw Error("Invalid input.");
11
12
  }
12
13
  this.state_id = state_voter.state_id;
13
14
  this.voter_id = state_voter.voter_id;
14
- this.lal_file_voter_id = state_voter.lal_file_voter_id;
15
+ this.lal_file_id = state_voter.lal_file_id;
16
+ this.lal_voter_id = state_voter.lal_voter_id;
15
17
  }
16
18
  static is(state_voter) {
17
19
  return (state_voter !== undefined &&
18
20
  is_state_id(state_voter.state_id) &&
19
21
  typeof state_voter.voter_id === "string" &&
20
- typeof state_voter.lal_file_voter_id === "string");
22
+ typeof state_voter.lal_file_id === "string" &&
23
+ typeof state_voter.lal_voter_id === "string");
21
24
  }
22
25
  }
23
26
  export class StateVoterAux extends StateVoter {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.184",
3
+ "version": "1.0.186",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -2,7 +2,6 @@ import { is_voter_party_type_id, VoterPartyTypeID } from "../prism/Voter"
2
2
  import { is_state_id, StateID } from "../regions/State"
3
3
 
4
4
  export class LALFileVoter {
5
- readonly lal_file_voter_id : string
6
5
  readonly lal_file_id : string
7
6
  readonly lal_voter_id : string
8
7
  readonly state_id : StateID
@@ -48,7 +47,6 @@ export class LALFileVoter {
48
47
  if (!LALFileVoter.is(lal_file_voter)) {
49
48
  throw Error("Invalid input.")
50
49
  }
51
- this.lal_file_voter_id = lal_file_voter.lal_file_voter_id
52
50
  this.lal_file_id = lal_file_voter.lal_file_id
53
51
  this.lal_voter_id = lal_file_voter.lal_voter_id
54
52
  this.state_id = lal_file_voter.state_id
@@ -93,7 +91,6 @@ export class LALFileVoter {
93
91
  static is(lal_file_voter : any) : lal_file_voter is LALFileVoter {
94
92
  return (
95
93
  lal_file_voter !== undefined &&
96
- typeof lal_file_voter.lal_file_voter_id === "string" &&
97
94
  typeof lal_file_voter.lal_file_id === "string" &&
98
95
  typeof lal_file_voter.lal_voter_id === "string" &&
99
96
  is_state_id(lal_file_voter.state_id) &&
@@ -5,7 +5,8 @@ import { StateVoterTarget } from "./StateVoterTarget"
5
5
  export class StateVoter {
6
6
  readonly state_id : StateID
7
7
  readonly voter_id : string
8
- readonly lal_file_voter_id : string
8
+ readonly lal_file_id : string
9
+ readonly lal_voter_id : string
9
10
  readonly [x : string] : any
10
11
 
11
12
  constructor(state_voter : any) {
@@ -14,7 +15,8 @@ export class StateVoter {
14
15
  }
15
16
  this.state_id = state_voter.state_id
16
17
  this.voter_id = state_voter.voter_id
17
- this.lal_file_voter_id = state_voter.lal_file_voter_id
18
+ this.lal_file_id = state_voter.lal_file_id
19
+ this.lal_voter_id = state_voter.lal_voter_id
18
20
  }
19
21
 
20
22
  static is(state_voter : any) : state_voter is StateVoter {
@@ -22,7 +24,8 @@ export class StateVoter {
22
24
  state_voter !== undefined &&
23
25
  is_state_id(state_voter.state_id) &&
24
26
  typeof state_voter.voter_id === "string" &&
25
- typeof state_voter.lal_file_voter_id === "string"
27
+ typeof state_voter.lal_file_id === "string" &&
28
+ typeof state_voter.lal_voter_id === "string"
26
29
  )
27
30
  }
28
31
  }