triangle-types 1.0.249 → 1.0.250

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.
@@ -2,9 +2,7 @@ import { FederalCongressMember } from "../federal_congress/FederalCongressMember
2
2
  import { FederalElectionCandidate } from "../federal_elections/FederalElectionCandidate.js";
3
3
  export declare class Scout {
4
4
  readonly scout_id: string;
5
- readonly name?: string;
6
- readonly ballotpedia_article_id?: string;
7
- readonly wikipedia_article_id?: string;
5
+ readonly ballotpedia_person_id: number;
8
6
  readonly s3_id_img?: string;
9
7
  readonly [x: string]: any;
10
8
  constructor(scout: any);
@@ -8,9 +8,9 @@ import { FederalElectionCandidate } from "../federal_elections/FederalElectionCa
8
8
  export class Scout {
9
9
  scout_id;
10
10
  // readonly scout_type_id : ScoutTypeID
11
- name;
12
- ballotpedia_article_id;
13
- wikipedia_article_id;
11
+ // readonly name? : string
12
+ ballotpedia_person_id;
13
+ // readonly wikipedia_article_id? : string
14
14
  s3_id_img;
15
15
  constructor(scout) {
16
16
  if (!Scout.is(scout)) {
@@ -18,18 +18,18 @@ export class Scout {
18
18
  }
19
19
  this.scout_id = scout.scout_id;
20
20
  // this.scout_type_id = scout.scout_type_id
21
- this.name = scout.name;
22
- this.ballotpedia_article_id = scout.ballotpedia_article_id;
23
- this.wikipedia_article_id = scout.wikipedia_article_id;
21
+ // this.name = scout.name
22
+ this.ballotpedia_person_id = scout.ballotpedia_person_id;
23
+ // this.wikipedia_article_id = scout.wikipedia_article_id
24
24
  this.s3_id_img = scout.s3_id_img;
25
25
  }
26
26
  static is(scout) {
27
27
  return (scout !== undefined &&
28
28
  typeof scout.scout_id === "string" &&
29
29
  // is_scout_type_id(scout.scout_type_id) &&
30
- (scout.name === undefined || typeof scout.name === "string") &&
31
- (scout.ballotpedia_article_id === undefined || typeof scout.ballotpedia_article_id === "string") &&
32
- (scout.wikipedia_article_id === undefined || typeof scout.wikipedia_article_id === "string") &&
30
+ // (scout.name === undefined || typeof scout.name === "string") &&
31
+ typeof scout.ballotpedia_person_id === "string" &&
32
+ // (scout.wikipedia_article_id === undefined || typeof scout.wikipedia_article_id === "string") &&
33
33
  (scout.s3_id_img === undefined || typeof scout.s3_id_img === "string"));
34
34
  }
35
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.249",
3
+ "version": "1.0.250",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -14,9 +14,9 @@ import { StateID } from "../regions/State"
14
14
  export class Scout {
15
15
  readonly scout_id : string
16
16
  // readonly scout_type_id : ScoutTypeID
17
- readonly name? : string
18
- readonly ballotpedia_article_id? : string
19
- readonly wikipedia_article_id? : string
17
+ // readonly name? : string
18
+ readonly ballotpedia_person_id : number
19
+ // readonly wikipedia_article_id? : string
20
20
  readonly s3_id_img? : string
21
21
  readonly [x : string] : any
22
22
 
@@ -26,9 +26,9 @@ export class Scout {
26
26
  }
27
27
  this.scout_id = scout.scout_id
28
28
  // this.scout_type_id = scout.scout_type_id
29
- this.name = scout.name
30
- this.ballotpedia_article_id = scout.ballotpedia_article_id
31
- this.wikipedia_article_id = scout.wikipedia_article_id
29
+ // this.name = scout.name
30
+ this.ballotpedia_person_id = scout.ballotpedia_person_id
31
+ // this.wikipedia_article_id = scout.wikipedia_article_id
32
32
  this.s3_id_img = scout.s3_id_img
33
33
  }
34
34
 
@@ -37,9 +37,9 @@ export class Scout {
37
37
  scout !== undefined &&
38
38
  typeof scout.scout_id === "string" &&
39
39
  // is_scout_type_id(scout.scout_type_id) &&
40
- (scout.name === undefined || typeof scout.name === "string") &&
41
- (scout.ballotpedia_article_id === undefined || typeof scout.ballotpedia_article_id === "string") &&
42
- (scout.wikipedia_article_id === undefined || typeof scout.wikipedia_article_id === "string") &&
40
+ // (scout.name === undefined || typeof scout.name === "string") &&
41
+ typeof scout.ballotpedia_person_id === "string" &&
42
+ // (scout.wikipedia_article_id === undefined || typeof scout.wikipedia_article_id === "string") &&
43
43
  (scout.s3_id_img === undefined || typeof scout.s3_id_img === "string")
44
44
  )
45
45
  }