triangle-types 1.0.228 → 1.0.230

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,3 +1,5 @@
1
+ import { FederalCongressMember } from "../federal_congress/FederalCongressMember.js";
2
+ import { FederalElectionCandidate } from "../federal_elections/FederalElectionCandidate.js";
1
3
  export declare class Scout {
2
4
  readonly scout_id: string;
3
5
  readonly name?: string;
@@ -9,8 +11,8 @@ export declare class Scout {
9
11
  static is(scout: any): scout is Scout;
10
12
  }
11
13
  export declare class ScoutAux extends Scout {
12
- readonly sub_scouts: Scout[];
13
- readonly s3_url_img?: string;
14
+ readonly federal_election_candidates: FederalElectionCandidate[];
15
+ readonly federal_congress_member?: FederalCongressMember;
14
16
  constructor(scout: any);
15
17
  static is(scout: any): scout is ScoutAux;
16
18
  }
@@ -1,3 +1,5 @@
1
+ import { FederalCongressMember } from "../federal_congress/FederalCongressMember.js";
2
+ import { FederalElectionCandidate } from "../federal_elections/FederalElectionCandidate.js";
1
3
  // const scout_type_ids = ["I", "O"] as const
2
4
  // export type ScoutTypeID = typeof scout_type_ids[number]
3
5
  // export function is_scout_type_id(scout_type_id : any) : scout_type_id is ScoutTypeID {
@@ -32,20 +34,20 @@ export class Scout {
32
34
  }
33
35
  }
34
36
  export class ScoutAux extends Scout {
35
- sub_scouts;
36
- s3_url_img;
37
+ federal_election_candidates;
38
+ federal_congress_member;
37
39
  constructor(scout) {
38
40
  if (!ScoutAux.is(scout)) {
39
41
  throw Error("Invalid input.");
40
42
  }
41
43
  super(scout);
42
- this.sub_scouts = scout.sub_scouts;
43
- this.s3_url_img = scout.s3_url_img;
44
+ this.federal_election_candidates = scout.federal_election_candidates;
45
+ this.federal_congress_member = scout.federal_congress_member;
44
46
  }
45
47
  static is(scout) {
46
48
  return (Scout.is(scout) &&
47
- Array.isArray(scout.sub_scouts) && scout.sub_scouts.every(Scout.is) &&
48
- (scout.s3_url_img === undefined || typeof scout.s3_url_img === "string"));
49
+ Array.isArray(scout.federal_election_candidates) && scout.federal_election_candidates.every(FederalElectionCandidate.is) &&
50
+ (scout.federal_congress_member === undefined || FederalCongressMember.is(scout.federal_congress_member)));
49
51
  }
50
52
  }
51
53
  // const scout_office_ids = ["USP", "USH", "USS", "STG", "STH", "STS"] as const
@@ -5,7 +5,7 @@ export declare class TenantDocument {
5
5
  readonly file_suffix_id: string;
6
6
  readonly name: string;
7
7
  readonly fragment_type_id?: FragmentTypeID;
8
- readonly s3_id_zip?: string;
8
+ readonly time: string;
9
9
  readonly s3_id: string;
10
10
  readonly s3_id_json?: string;
11
11
  readonly s3_id_txt?: string;
@@ -5,7 +5,7 @@ export class TenantDocument {
5
5
  file_suffix_id;
6
6
  name;
7
7
  fragment_type_id;
8
- s3_id_zip;
8
+ time;
9
9
  s3_id;
10
10
  s3_id_json;
11
11
  s3_id_txt;
@@ -18,7 +18,7 @@ export class TenantDocument {
18
18
  this.file_suffix_id = tenant_document.file_suffix_id;
19
19
  this.name = tenant_document.name;
20
20
  this.fragment_type_id = tenant_document.fragment_type_id;
21
- this.s3_id_zip = tenant_document.s3_id_zip;
21
+ this.time = tenant_document.time;
22
22
  this.s3_id = tenant_document.s3_id;
23
23
  this.s3_id_json = tenant_document.s3_id_json;
24
24
  this.s3_id_txt = tenant_document.s3_id_txt;
@@ -30,7 +30,7 @@ export class TenantDocument {
30
30
  typeof tenant_document.file_suffix_id === "string" &&
31
31
  typeof tenant_document.name === "string" &&
32
32
  (tenant_document.fragment_type_id === undefined || is_fragment_type_id(tenant_document.fragment_type_id)) &&
33
- (tenant_document.s3_id_zip === undefined || typeof tenant_document.s3_id_zip === "string") &&
33
+ typeof tenant_document.time === "string" &&
34
34
  typeof tenant_document.s3_id === "string" &&
35
35
  (tenant_document.s3_id_json === undefined || typeof tenant_document.s3_id_json === "string") &&
36
36
  (tenant_document.s3_id_txt === undefined || typeof tenant_document.s3_id_txt === "string"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.228",
3
+ "version": "1.0.230",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -1,3 +1,5 @@
1
+ import { FederalCongressMember } from "../federal_congress/FederalCongressMember"
2
+ import { FederalElectionCandidate } from "../federal_elections/FederalElectionCandidate"
1
3
  import { DocumentTypeID, is_document_type_id } from "../fragments/Fragment"
2
4
  import { StateID } from "../regions/State"
3
5
 
@@ -44,23 +46,23 @@ export class Scout {
44
46
  }
45
47
 
46
48
  export class ScoutAux extends Scout {
47
- readonly sub_scouts : Scout[]
48
- readonly s3_url_img? : string
49
+ readonly federal_election_candidates : FederalElectionCandidate[]
50
+ readonly federal_congress_member? : FederalCongressMember
49
51
 
50
52
  constructor(scout : any) {
51
53
  if (!ScoutAux.is(scout)) {
52
54
  throw Error("Invalid input.")
53
55
  }
54
56
  super(scout)
55
- this.sub_scouts = scout.sub_scouts
56
- this.s3_url_img = scout.s3_url_img
57
+ this.federal_election_candidates = scout.federal_election_candidates
58
+ this.federal_congress_member = scout.federal_congress_member
57
59
  }
58
60
 
59
61
  static is(scout : any) : scout is ScoutAux {
60
62
  return (
61
63
  Scout.is(scout) &&
62
- Array.isArray(scout.sub_scouts) && scout.sub_scouts.every(Scout.is) &&
63
- (scout.s3_url_img === undefined || typeof scout.s3_url_img === "string")
64
+ Array.isArray(scout.federal_election_candidates) && scout.federal_election_candidates.every(FederalElectionCandidate.is) &&
65
+ (scout.federal_congress_member === undefined || FederalCongressMember.is(scout.federal_congress_member))
64
66
  )
65
67
  }
66
68
  }
@@ -6,7 +6,7 @@ export class TenantDocument {
6
6
  readonly file_suffix_id : string
7
7
  readonly name : string
8
8
  readonly fragment_type_id? : FragmentTypeID
9
- readonly s3_id_zip? : string
9
+ readonly time : string
10
10
  readonly s3_id : string
11
11
  readonly s3_id_json? : string
12
12
  readonly s3_id_txt? : string
@@ -21,7 +21,7 @@ export class TenantDocument {
21
21
  this.file_suffix_id = tenant_document.file_suffix_id
22
22
  this.name = tenant_document.name
23
23
  this.fragment_type_id = tenant_document.fragment_type_id
24
- this.s3_id_zip = tenant_document.s3_id_zip
24
+ this.time = tenant_document.time
25
25
  this.s3_id = tenant_document.s3_id
26
26
  this.s3_id_json = tenant_document.s3_id_json
27
27
  this.s3_id_txt = tenant_document.s3_id_txt
@@ -35,7 +35,7 @@ export class TenantDocument {
35
35
  typeof tenant_document.file_suffix_id === "string" &&
36
36
  typeof tenant_document.name === "string" &&
37
37
  (tenant_document.fragment_type_id === undefined || is_fragment_type_id(tenant_document.fragment_type_id)) &&
38
- (tenant_document.s3_id_zip === undefined || typeof tenant_document.s3_id_zip === "string") &&
38
+ typeof tenant_document.time === "string" &&
39
39
  typeof tenant_document.s3_id === "string" &&
40
40
  (tenant_document.s3_id_json === undefined || typeof tenant_document.s3_id_json === "string") &&
41
41
  (tenant_document.s3_id_txt === undefined || typeof tenant_document.s3_id_txt === "string")