Skip to content

Commit

Permalink
Merge pull request #623 from Rishikant181/dev
Browse files Browse the repository at this point in the history
v4.2.0-alpha.0
  • Loading branch information
Rishikant181 authored Oct 4, 2024
2 parents 2377a59 + 1d251e6 commit efe598b
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 10 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Rettiwt-API can be used with or without logging in to Twitter. As such, the two
- User Highlights
- User Likes
- User Media
- User Notification
- User Recommended Feed
- User Replies Timeline
- User Subscriptions
Expand Down Expand Up @@ -381,6 +382,7 @@ So far, the following operations are supported:
- [Getting the list of highlighted tweets of the given user](https://rishikant181.github.io/Rettiwt-API/classes/UserService.html#highlights)
- [Getting the list of tweets liked by the logged-in user](https://rishikant181.github.io/Rettiwt-API/classes/UserService.html#likes)
- [Getting the media timeline of the given user](https://rishikant181.github.io/Rettiwt-API/classes/UserService.html#media)
- [Streaming notifications of the logged-in user in pseudo-realtime](https://rishikant181.github.io/Rettiwt-API/classes/UserService.html#notifications)
- [Getting the recommended feed of the logged-in user](https://rishikant181.github.io/Rettiwt-API/classes/UserService.html#recommended)
- [Getting the replies timeline of the given user](https://rishikant181.github.io/Rettiwt-API/classes/UserService.html#replies)
- [Getting the list of subscriptions of the given user](https://rishikant181.github.io/Rettiwt-API/classes/UserService.html#subscriptions)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rettiwt-api",
"version": "4.1.0-alpha.2",
"version": "4.2.0-alpha.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"description": "An API for fetching data from TwitterAPI, without any rate limits!",
Expand Down Expand Up @@ -36,7 +36,7 @@
"commander": "11.1.0",
"https-proxy-agent": "7.0.2",
"rettiwt-auth": "2.1.0",
"rettiwt-core": "4.3.0-alpha.0"
"rettiwt-core": "4.4.0-alpha.1"
},
"devDependencies": {
"@types/node": "20.4.1",
Expand Down
4 changes: 4 additions & 0 deletions src/commands/Tweet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ function createTweetCommand(rettiwt: Rettiwt): Command {
'Matches the tweets that do not contain any of the give comma-separated list of words',
)
.option('-h, --hashtags <string>', 'Matches the tweets containing the given comma-separated list of hashtags')
.option('--list <string>', 'Matches the tweets from the list with the given id')
.option(
'-m, --mentions <string>',
'Matches the tweets that mention the given comma-separated list of usernames',
Expand Down Expand Up @@ -284,6 +285,7 @@ class TweetSearchOptions {
public from?: string;
public hashtags?: string;
public interval?: number;
public list?: string;
public mentions?: string;
public minLikes?: number;
public minReplies?: number;
Expand All @@ -309,6 +311,7 @@ class TweetSearchOptions {
this.optionalWords = options?.optionalWords;
this.excludeWords = options?.excludeWords;
this.hashtags = options?.hashtags;
this.list = options?.list;
this.mentions = options?.mentions;
this.minReplies = options?.minReplies;
this.minLikes = options?.minLikes;
Expand Down Expand Up @@ -336,6 +339,7 @@ class TweetSearchOptions {
optionalWords: this.optionalWords ? this.optionalWords.split(',') : undefined,
excludeWords: this.excludeWords ? this.excludeWords.split(',') : undefined,
hashtags: this.hashtags ? this.hashtags.split(',') : undefined,
list: this.list,
mentions: this.mentions ? this.mentions.split(',') : undefined,
minReplies: this.minReplies,
minLikes: this.minLikes,
Expand Down
5 changes: 5 additions & 0 deletions src/models/args/FetchArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,11 @@ export class TweetFilter extends TweetFilterCore {
@IsBoolean()
public links?: boolean;

/** The list from which tweets are to be searched. */
@IsOptional()
@IsNumberString()
public list?: string;

/** The id of the tweet, before which the tweets are to be searched. */
@IsOptional()
@IsNumberString()
Expand Down
13 changes: 10 additions & 3 deletions src/models/args/PostArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,16 @@ export class PostArgs {
*/
@IsEmpty({
groups: [
EResourceType.MEDIA_UPLOAD_APPEND,
EResourceType.MEDIA_UPLOAD_FINALIZE,
EResourceType.MEDIA_UPLOAD_INITIALIZE,
EResourceType.TWEET_LIKE,
EResourceType.TWEET_POST,
EResourceType.TWEET_RETWEET,
EResourceType.TWEET_SCHEDULE,
EResourceType.TWEET_UNLIKE,
EResourceType.TWEET_UNPOST,
EResourceType.TWEET_UNRETWEET,
EResourceType.TWEET_UNSCHEDULE,
EResourceType.USER_FOLLOW,
EResourceType.USER_UNFOLLOW,
],
})
@IsNotEmpty({
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2743,7 +2743,7 @@ __metadata:
nodemon: "npm:2.0.20"
prettier: "npm:3.0.0"
rettiwt-auth: "npm:2.1.0"
rettiwt-core: "npm:4.3.0-alpha.0"
rettiwt-core: "npm:4.4.0-alpha.1"
typedoc: "npm:0.24.8"
typescript: "npm:5.1.6"
bin:
Expand All @@ -2765,13 +2765,13 @@ __metadata:
languageName: node
linkType: hard

"rettiwt-core@npm:4.3.0-alpha.0":
version: 4.3.0-alpha.0
resolution: "rettiwt-core@npm:4.3.0-alpha.0"
"rettiwt-core@npm:4.4.0-alpha.1":
version: 4.4.0-alpha.1
resolution: "rettiwt-core@npm:4.4.0-alpha.1"
dependencies:
axios: "npm:1.6.3"
form-data: "npm:4.0.0"
checksum: 10c0/fd4d30b5c1e2582d05acb09a406004c76e3cb0ff9f600fed169b6d462755572d1196e662c170b9f4546a15d9be1f2e5e503a63bdd56830f9b431d832e9c64bc8
checksum: 10c0/108c4e254c43aeae8258dc4c02df37e2b9fb9305d8cf7c3aa1e849a441485c1a09e1b6d3d80a158a9f3c6aec0ec44e3283c358974c3cf778041542e69e55548c
languageName: node
linkType: hard

Expand Down

0 comments on commit efe598b

Please sign in to comment.