elections-types 1.1.28 → 1.1.29

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,6 +1,7 @@
1
1
  export declare class TwitterTweet {
2
2
  readonly twitter_tweet_id: string;
3
3
  readonly twitter_user_id: string;
4
+ readonly publish_time: string;
4
5
  readonly supreme_twitter_tweet_id: string;
5
6
  readonly draft_twitter_tweet_ids: string[];
6
7
  readonly community_id?: string;
@@ -1,6 +1,7 @@
1
1
  export class TwitterTweet {
2
2
  twitter_tweet_id;
3
3
  twitter_user_id;
4
+ publish_time;
4
5
  supreme_twitter_tweet_id;
5
6
  draft_twitter_tweet_ids;
6
7
  community_id;
@@ -21,6 +22,7 @@ export class TwitterTweet {
21
22
  }
22
23
  this.twitter_tweet_id = twitter_tweet.twitter_tweet_id;
23
24
  this.twitter_user_id = twitter_tweet.twitter_user_id;
25
+ this.publish_time = twitter_tweet.publish_time;
24
26
  this.supreme_twitter_tweet_id = twitter_tweet.supreme_twitter_tweet_id;
25
27
  this.draft_twitter_tweet_ids = twitter_tweet.draft_twitter_tweet_ids;
26
28
  this.community_id = twitter_tweet.community_id;
@@ -40,6 +42,7 @@ export class TwitterTweet {
40
42
  return (twitter_tweet !== undefined &&
41
43
  typeof twitter_tweet.twitter_tweet_id === "string" &&
42
44
  typeof twitter_tweet.twitter_user_id === "string" &&
45
+ typeof twitter_tweet.publish_time === "string" &&
43
46
  typeof twitter_tweet.supreme_twitter_tweet_id === "string" &&
44
47
  Array.isArray(twitter_tweet.draft_twitter_tweet_ids) && twitter_tweet.draft_twitter_tweet_ids.every((draft_twitter_tweet_id) => typeof draft_twitter_tweet_id === "string") &&
45
48
  (twitter_tweet.community_id === undefined || typeof twitter_tweet.community_id === "string") &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elections-types",
3
- "version": "1.1.28",
3
+ "version": "1.1.29",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -1,6 +1,7 @@
1
1
  export class TwitterTweet {
2
2
  readonly twitter_tweet_id : string
3
3
  readonly twitter_user_id : string
4
+ readonly publish_time : string
4
5
  readonly supreme_twitter_tweet_id : string
5
6
  readonly draft_twitter_tweet_ids : string[]
6
7
  readonly community_id? : string
@@ -22,6 +23,7 @@ export class TwitterTweet {
22
23
  }
23
24
  this.twitter_tweet_id = twitter_tweet.twitter_tweet_id
24
25
  this.twitter_user_id = twitter_tweet.twitter_user_id
26
+ this.publish_time = twitter_tweet.publish_time
25
27
  this.supreme_twitter_tweet_id = twitter_tweet.supreme_twitter_tweet_id
26
28
  this.draft_twitter_tweet_ids = twitter_tweet.draft_twitter_tweet_ids
27
29
  this.community_id = twitter_tweet.community_id
@@ -43,6 +45,7 @@ export class TwitterTweet {
43
45
  twitter_tweet !== undefined &&
44
46
  typeof twitter_tweet.twitter_tweet_id === "string" &&
45
47
  typeof twitter_tweet.twitter_user_id === "string" &&
48
+ typeof twitter_tweet.publish_time === "string" &&
46
49
  typeof twitter_tweet.supreme_twitter_tweet_id === "string" &&
47
50
  Array.isArray(twitter_tweet.draft_twitter_tweet_ids) && twitter_tweet.draft_twitter_tweet_ids.every((draft_twitter_tweet_id : any) => typeof draft_twitter_tweet_id === "string") &&
48
51
  (twitter_tweet.community_id === undefined || typeof twitter_tweet.community_id === "string") &&