elections-types 1.0.5 → 1.0.6

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,6 +2,7 @@ import { StateID } from "./State.js";
2
2
  export declare class Donation {
3
3
  readonly committee_id: string;
4
4
  readonly donation_id: string;
5
+ readonly file_number: number;
5
6
  readonly image_number: string;
6
7
  readonly receipt_date: string;
7
8
  readonly amount: number;
@@ -1,6 +1,7 @@
1
1
  export class Donation {
2
2
  committee_id;
3
3
  donation_id;
4
+ file_number;
4
5
  image_number;
5
6
  receipt_date;
6
7
  amount;
@@ -26,6 +27,7 @@ export class Donation {
26
27
  }
27
28
  this.committee_id = donation.committee_id;
28
29
  this.donation_id = donation.donation_id;
30
+ this.file_number = donation.file_number;
29
31
  this.image_number = donation.image_number;
30
32
  this.receipt_date = donation.receipt_date;
31
33
  this.amount = donation.amount;
@@ -50,6 +52,7 @@ export class Donation {
50
52
  return (donation !== undefined &&
51
53
  typeof donation.committee_id === "string" &&
52
54
  typeof donation.donation_id === "string" &&
55
+ typeof donation.file_number === "number" &&
53
56
  typeof donation.image_number === "string" &&
54
57
  typeof donation.receipt_date === "string" &&
55
58
  typeof donation.amount === "number" &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elections-types",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -3,6 +3,7 @@ import { StateID } from "./State"
3
3
  export class Donation {
4
4
  readonly committee_id : string
5
5
  readonly donation_id : string
6
+ readonly file_number : number
6
7
  readonly image_number : string
7
8
  readonly receipt_date : string
8
9
  readonly amount : number
@@ -29,6 +30,7 @@ export class Donation {
29
30
  }
30
31
  this.committee_id = donation.committee_id
31
32
  this.donation_id = donation.donation_id
33
+ this.file_number = donation.file_number
32
34
  this.image_number = donation.image_number
33
35
  this.receipt_date = donation.receipt_date
34
36
  this.amount = donation.amount
@@ -55,6 +57,7 @@ export class Donation {
55
57
  donation !== undefined &&
56
58
  typeof donation.committee_id === "string" &&
57
59
  typeof donation.donation_id === "string" &&
60
+ typeof donation.file_number === "number" &&
58
61
  typeof donation.image_number === "string" &&
59
62
  typeof donation.receipt_date === "string" &&
60
63
  typeof donation.amount === "number" &&