elections-types 1.1.26 → 1.1.27

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.
@@ -3,7 +3,7 @@ export declare class TwitterTweet {
3
3
  readonly twitter_user_id: string;
4
4
  readonly supreme_twitter_tweet_id: string;
5
5
  readonly draft_twitter_tweet_ids: string[];
6
- readonly community_ids: string[];
6
+ readonly community_id: string;
7
7
  readonly is_sensitive: boolean;
8
8
  readonly is_sponsored: boolean;
9
9
  readonly lang_id: string;
@@ -3,7 +3,7 @@ export class TwitterTweet {
3
3
  twitter_user_id;
4
4
  supreme_twitter_tweet_id;
5
5
  draft_twitter_tweet_ids;
6
- community_ids;
6
+ community_id;
7
7
  is_sensitive;
8
8
  is_sponsored;
9
9
  lang_id;
@@ -23,7 +23,7 @@ export class TwitterTweet {
23
23
  this.twitter_user_id = twitter_tweet.twitter_user_id;
24
24
  this.supreme_twitter_tweet_id = twitter_tweet.supreme_twitter_tweet_id;
25
25
  this.draft_twitter_tweet_ids = twitter_tweet.draft_twitter_tweet_ids;
26
- this.community_ids = twitter_tweet.community_ids;
26
+ this.community_id = twitter_tweet.community_id;
27
27
  this.is_sensitive = twitter_tweet.is_sensitive;
28
28
  this.is_sponsored = twitter_tweet.is_sponsored;
29
29
  this.lang_id = twitter_tweet.lang_id;
@@ -42,7 +42,7 @@ export class TwitterTweet {
42
42
  typeof twitter_tweet.twitter_user_id === "string" &&
43
43
  typeof twitter_tweet.supreme_twitter_tweet_id === "string" &&
44
44
  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
- Array.isArray(twitter_tweet.community_ids) && twitter_tweet.community_id.every((community_id) => typeof community_id === "string") &&
45
+ typeof twitter_tweet.community_id === "string" &&
46
46
  typeof twitter_tweet.is_sensitive === "boolean" &&
47
47
  typeof twitter_tweet.is_sponsored === "boolean" &&
48
48
  typeof twitter_tweet.lang_id === "string" &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elections-types",
3
- "version": "1.1.26",
3
+ "version": "1.1.27",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -3,7 +3,7 @@ export class TwitterTweet {
3
3
  readonly twitter_user_id : string
4
4
  readonly supreme_twitter_tweet_id : string
5
5
  readonly draft_twitter_tweet_ids : string[]
6
- readonly community_ids : string[]
6
+ readonly community_id : string
7
7
  readonly is_sensitive : boolean
8
8
  readonly is_sponsored : boolean
9
9
  readonly lang_id : string
@@ -24,7 +24,7 @@ export class TwitterTweet {
24
24
  this.twitter_user_id = twitter_tweet.twitter_user_id
25
25
  this.supreme_twitter_tweet_id = twitter_tweet.supreme_twitter_tweet_id
26
26
  this.draft_twitter_tweet_ids = twitter_tweet.draft_twitter_tweet_ids
27
- this.community_ids = twitter_tweet.community_ids
27
+ this.community_id = twitter_tweet.community_id
28
28
  this.is_sensitive = twitter_tweet.is_sensitive
29
29
  this.is_sponsored = twitter_tweet.is_sponsored
30
30
  this.lang_id = twitter_tweet.lang_id
@@ -45,7 +45,7 @@ export class TwitterTweet {
45
45
  typeof twitter_tweet.twitter_user_id === "string" &&
46
46
  typeof twitter_tweet.supreme_twitter_tweet_id === "string" &&
47
47
  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
- Array.isArray(twitter_tweet.community_ids) && twitter_tweet.community_id.every((community_id : any) => typeof community_id === "string") &&
48
+ typeof twitter_tweet.community_id === "string" &&
49
49
  typeof twitter_tweet.is_sensitive === "boolean" &&
50
50
  typeof twitter_tweet.is_sponsored === "boolean" &&
51
51
  typeof twitter_tweet.lang_id === "string" &&