From a72cb9650e01910a07522b8e8c7e38bd75c6fdc2 Mon Sep 17 00:00:00 2001 From: Rishikant181 Date: Mon, 16 Sep 2024 11:06:22 +0530 Subject: [PATCH 1/3] Fixed an incorrect validation rule for media upload --- src/models/args/PostArgs.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/models/args/PostArgs.ts b/src/models/args/PostArgs.ts index e29db448..fc7c0511 100644 --- a/src/models/args/PostArgs.ts +++ b/src/models/args/PostArgs.ts @@ -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({ From c0bfec221e811763931ae13312b5b66d4dfee99e Mon Sep 17 00:00:00 2001 From: Rishikant181 Date: Mon, 16 Sep 2024 11:08:21 +0530 Subject: [PATCH 2/3] Bumped version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 702689ae..6ccfe045 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rettiwt-api", - "version": "4.1.0", + "version": "4.1.1", "main": "dist/index.js", "types": "dist/index.d.ts", "description": "An API for fetching data from TwitterAPI, without any rate limits!", From b2004a2df4e19489b215a39a5d86e72664cd8e46 Mon Sep 17 00:00:00 2001 From: Rishikant181 Date: Mon, 16 Sep 2024 11:08:58 +0530 Subject: [PATCH 3/3] Fixed rettiwt-core version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6ccfe045..9db8dc6e 100644 --- a/package.json +++ b/package.json @@ -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.3.0" }, "devDependencies": { "@types/node": "20.4.1",