triangle-types 1.0.71 → 1.0.73

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,15 +1,12 @@
1
- import { FederalCongressBillTypeID } from "./FederalCongressBill.js";
2
1
  declare const federal_congress_bill_action_type_ids: readonly ["COMMITTEE", "CALENDARS", "FLOOR", "BECAMELAW", "INTROREFERRAL", "PRESIDENT", "RESOLVINGDIFFERENCES", "DISCHARGE", "NOTUSED", "VETO"];
3
2
  export type FederalCongressBillActionTypeID = typeof federal_congress_bill_action_type_ids[number];
4
3
  export declare function is_federal_congress_bill_action_type_id(federal_congress_bill_action_type_id: any): federal_congress_bill_action_type_id is FederalCongressBillActionTypeID;
5
4
  export declare class FederalCongressBillAction {
6
5
  readonly federal_congress_bill_action_id: string;
7
- readonly federal_congress_bill_id: string;
8
- readonly action_id: number;
9
6
  readonly federal_congress_id: number;
10
7
  readonly bill_id: string;
11
- readonly bill_type_id: FederalCongressBillTypeID;
12
- readonly number: number;
8
+ readonly action_id: number;
9
+ readonly federal_congress_bill_id: string;
13
10
  readonly bill_action_type_id: FederalCongressBillActionTypeID;
14
11
  readonly date: string;
15
12
  readonly description: string;
@@ -15,12 +15,10 @@ export function is_federal_congress_bill_action_type_id(federal_congress_bill_ac
15
15
  }
16
16
  export class FederalCongressBillAction {
17
17
  federal_congress_bill_action_id;
18
- federal_congress_bill_id;
19
- action_id;
20
18
  federal_congress_id;
21
19
  bill_id;
22
- bill_type_id;
23
- number;
20
+ action_id;
21
+ federal_congress_bill_id;
24
22
  bill_action_type_id;
25
23
  date;
26
24
  description;
@@ -31,12 +29,10 @@ export class FederalCongressBillAction {
31
29
  throw Error("Invalid input.");
32
30
  }
33
31
  this.federal_congress_bill_action_id = federal_congress_bill_action.federal_congress_bill_action_id;
34
- this.federal_congress_bill_id = federal_congress_bill_action.federal_congress_bill_id;
35
32
  this.federal_congress_id = federal_congress_bill_action.federal_congress_id;
36
33
  this.bill_id = federal_congress_bill_action.bill_id;
37
- this.bill_type_id = federal_congress_bill_action.bill_type_id;
38
- this.number = federal_congress_bill_action.number;
39
34
  this.action_id = federal_congress_bill_action.action_id;
35
+ this.federal_congress_bill_id = federal_congress_bill_action.federal_congress_bill_id;
40
36
  this.bill_action_type_id = federal_congress_bill_action.bill_action_type_id;
41
37
  this.date = federal_congress_bill_action.date;
42
38
  this.description = federal_congress_bill_action.description;
@@ -46,12 +42,10 @@ export class FederalCongressBillAction {
46
42
  static is(federal_congress_bill_action) {
47
43
  return (federal_congress_bill_action !== undefined &&
48
44
  typeof federal_congress_bill_action.federal_congress_bill_action_id === "string" &&
49
- typeof federal_congress_bill_action.federal_congress_bill_id === "string" &&
50
45
  typeof federal_congress_bill_action.federal_congress_id === "number" &&
51
46
  typeof federal_congress_bill_action.bill_id === "string" &&
52
- typeof federal_congress_bill_action.bill_type_id === "string" &&
53
- typeof federal_congress_bill_action.number === "number" &&
54
- typeof federal_congress_bill_action.action_id === "string" &&
47
+ typeof federal_congress_bill_action.action_id === "number" &&
48
+ typeof federal_congress_bill_action.federal_congress_bill_id === "string" &&
55
49
  is_federal_congress_bill_action_type_id(federal_congress_bill_action.bill_action_type_id) &&
56
50
  typeof federal_congress_bill_action.date === "string" &&
57
51
  typeof federal_congress_bill_action.description === "string" &&
@@ -4,7 +4,7 @@ export declare class FederalCongressVote {
4
4
  readonly session_id: number;
5
5
  readonly chamber_id: string;
6
6
  readonly number: number;
7
- readonly date: string;
7
+ readonly time: string;
8
8
  constructor(federal_congress_vote: any);
9
9
  static is(federal_congress_vote: any): federal_congress_vote is FederalCongressVote;
10
10
  }
@@ -4,7 +4,7 @@ export class FederalCongressVote {
4
4
  session_id;
5
5
  chamber_id;
6
6
  number;
7
- date;
7
+ time;
8
8
  constructor(federal_congress_vote) {
9
9
  if (!FederalCongressVote.is(federal_congress_vote)) {
10
10
  throw Error("Invalid input.");
@@ -14,7 +14,7 @@ export class FederalCongressVote {
14
14
  this.session_id = federal_congress_vote.session_id;
15
15
  this.chamber_id = federal_congress_vote.chamber_id;
16
16
  this.number = federal_congress_vote.number;
17
- this.date = federal_congress_vote.date;
17
+ this.time = federal_congress_vote.time;
18
18
  }
19
19
  static is(federal_congress_vote) {
20
20
  return (federal_congress_vote !== undefined &&
@@ -23,6 +23,6 @@ export class FederalCongressVote {
23
23
  typeof federal_congress_vote.session_id === "number" &&
24
24
  typeof federal_congress_vote.chamber_id === "string" &&
25
25
  typeof federal_congress_vote.number === "number" &&
26
- typeof federal_congress_vote.date === "string");
26
+ typeof federal_congress_vote.time === "string");
27
27
  }
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.71",
3
+ "version": "1.0.73",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -21,12 +21,10 @@ export function is_federal_congress_bill_action_type_id(federal_congress_bill_ac
21
21
 
22
22
  export class FederalCongressBillAction {
23
23
  readonly federal_congress_bill_action_id : string
24
- readonly federal_congress_bill_id : string
25
- readonly action_id : number
26
24
  readonly federal_congress_id : number
27
25
  readonly bill_id : string
28
- readonly bill_type_id : FederalCongressBillTypeID
29
- readonly number : number
26
+ readonly action_id : number
27
+ readonly federal_congress_bill_id : string
30
28
  readonly bill_action_type_id : FederalCongressBillActionTypeID
31
29
  readonly date : string
32
30
  readonly description : string
@@ -38,12 +36,10 @@ export class FederalCongressBillAction {
38
36
  throw Error("Invalid input.")
39
37
  }
40
38
  this.federal_congress_bill_action_id = federal_congress_bill_action.federal_congress_bill_action_id
41
- this.federal_congress_bill_id = federal_congress_bill_action.federal_congress_bill_id
42
39
  this.federal_congress_id = federal_congress_bill_action.federal_congress_id
43
40
  this.bill_id = federal_congress_bill_action.bill_id
44
- this.bill_type_id = federal_congress_bill_action.bill_type_id
45
- this.number = federal_congress_bill_action.number
46
41
  this.action_id = federal_congress_bill_action.action_id
42
+ this.federal_congress_bill_id = federal_congress_bill_action.federal_congress_bill_id
47
43
  this.bill_action_type_id = federal_congress_bill_action.bill_action_type_id
48
44
  this.date = federal_congress_bill_action.date
49
45
  this.description = federal_congress_bill_action.description
@@ -55,12 +51,10 @@ export class FederalCongressBillAction {
55
51
  return (
56
52
  federal_congress_bill_action !== undefined &&
57
53
  typeof federal_congress_bill_action.federal_congress_bill_action_id === "string" &&
58
- typeof federal_congress_bill_action.federal_congress_bill_id === "string" &&
59
54
  typeof federal_congress_bill_action.federal_congress_id === "number" &&
60
55
  typeof federal_congress_bill_action.bill_id === "string" &&
61
- typeof federal_congress_bill_action.bill_type_id === "string" &&
62
- typeof federal_congress_bill_action.number === "number" &&
63
- typeof federal_congress_bill_action.action_id === "string" &&
56
+ typeof federal_congress_bill_action.action_id === "number" &&
57
+ typeof federal_congress_bill_action.federal_congress_bill_id === "string" &&
64
58
  is_federal_congress_bill_action_type_id(federal_congress_bill_action.bill_action_type_id) &&
65
59
  typeof federal_congress_bill_action.date === "string" &&
66
60
  typeof federal_congress_bill_action.description === "string" &&
@@ -6,7 +6,7 @@ export class FederalCongressVote {
6
6
  readonly session_id : number
7
7
  readonly chamber_id : string
8
8
  readonly number : number
9
- readonly date : string
9
+ readonly time : string
10
10
 
11
11
  constructor(federal_congress_vote : any) {
12
12
  if (!FederalCongressVote.is(federal_congress_vote)) {
@@ -17,7 +17,7 @@ export class FederalCongressVote {
17
17
  this.session_id = federal_congress_vote.session_id
18
18
  this.chamber_id = federal_congress_vote.chamber_id
19
19
  this.number = federal_congress_vote.number
20
- this.date = federal_congress_vote.date
20
+ this.time = federal_congress_vote.time
21
21
  }
22
22
 
23
23
  static is(federal_congress_vote : any) : federal_congress_vote is FederalCongressVote {
@@ -28,7 +28,7 @@ export class FederalCongressVote {
28
28
  typeof federal_congress_vote.session_id === "number" &&
29
29
  typeof federal_congress_vote.chamber_id === "string" &&
30
30
  typeof federal_congress_vote.number === "number" &&
31
- typeof federal_congress_vote.date === "string"
31
+ typeof federal_congress_vote.time === "string"
32
32
  )
33
33
  }
34
34