@pipedream/twitter 2.3.3 → 2.3.4
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.
- package/dist/actions/add-user-to-list/add-user-to-list.mjs +545 -50
- package/dist/actions/create-tweet/create-tweet.mjs +542 -81
- package/dist/actions/delete-tweet/delete-tweet.mjs +513 -34
- package/dist/actions/follow-user/follow-user.mjs +538 -43
- package/dist/actions/get-tweet/get-tweet.mjs +622 -40
- package/dist/actions/get-user/get-user.mjs +596 -44
- package/dist/actions/like-tweet/like-tweet.mjs +515 -36
- package/dist/actions/list-favorites/list-favorites.mjs +657 -56
- package/dist/actions/list-followers/list-followers.mjs +614 -56
- package/dist/actions/list-lists/list-lists.mjs +597 -56
- package/dist/actions/list-mentions/list-mentions.mjs +657 -56
- package/dist/actions/list-user-tweets/list-user-tweets.mjs +657 -56
- package/dist/actions/retweet/retweet.mjs +519 -39
- package/dist/actions/send-dm/send-dm.mjs +546 -49
- package/dist/actions/simple-search/simple-search.mjs +646 -56
- package/dist/actions/simple-search-in-list/simple-search-in-list.mjs +656 -63
- package/dist/actions/unfollow-user/unfollow-user.mjs +533 -39
- package/dist/actions/unlike-tweet/unlike-tweet.mjs +513 -34
- package/dist/actions/upload-media/upload-media.mjs +549 -57
- package/dist/app/twitter.app.mjs +443 -342
- package/dist/common/addObjIncludes.mjs +89 -63
- package/dist/common/additionalProps.mjs +0 -138
- package/dist/common/appValidation.mjs +475 -24
- package/dist/common/constants.mjs +11 -7
- package/dist/common/dataFields.mjs +100 -89
- package/dist/common/errorMessage.mjs +32 -26
- package/dist/common/expansions.mjs +26 -19
- package/dist/common/methods.mjs +170 -81
- package/dist/common/types/fields.mjs +0 -1
- package/dist/common/types/includeMapping.mjs +0 -1
- package/dist/common/types/requestParams.mjs +0 -1
- package/dist/common/types/responseSchemas.mjs +0 -1
- package/dist/sources/common/base.mjs +546 -69
- package/dist/sources/common/cacheUserId.mjs +32 -15
- package/dist/sources/common/getItemSummary.mjs +13 -9
- package/dist/sources/new-follower-of-user/new-follower-of-user.mjs +799 -40
- package/dist/sources/new-list-followed/new-list-followed.mjs +722 -41
- package/dist/sources/new-mention-received-by-user/new-mention-received-by-user.mjs +860 -40
- package/dist/sources/new-message/new-message.mjs +738 -32
- package/dist/sources/new-tweet-in-list/new-tweet-in-list.mjs +839 -37
- package/dist/sources/new-tweet-liked-by-user/new-tweet-liked-by-user.mjs +860 -40
- package/dist/sources/new-tweet-metrics/new-tweet-metrics.mjs +629 -59
- package/dist/sources/new-tweet-posted-by-user/new-tweet-posted-by-user.mjs +860 -40
- package/dist/sources/new-tweet-posted-matching-query/new-tweet-posted-matching-query.mjs +830 -39
- package/dist/sources/new-unfollower-of-user/new-unfollower-of-user.mjs +829 -70
- package/dist/sources/new-user-followed/new-user-followed.mjs +737 -41
- package/package.json +2 -2
- package/dist/actions/add-user-to-list/add-user-to-list.d.ts +0 -6
- package/dist/actions/create-tweet/create-tweet.d.ts +0 -105
- package/dist/actions/delete-tweet/delete-tweet.d.ts +0 -4
- package/dist/actions/follow-user/follow-user.d.ts +0 -6
- package/dist/actions/get-tweet/get-tweet.d.ts +0 -6
- package/dist/actions/get-user/get-user.d.ts +0 -7
- package/dist/actions/like-tweet/like-tweet.d.ts +0 -4
- package/dist/actions/list-favorites/list-favorites.d.ts +0 -10
- package/dist/actions/list-followers/list-followers.d.ts +0 -10
- package/dist/actions/list-lists/list-lists.d.ts +0 -8
- package/dist/actions/list-mentions/list-mentions.d.ts +0 -10
- package/dist/actions/list-user-tweets/list-user-tweets.d.ts +0 -10
- package/dist/actions/retweet/retweet.d.ts +0 -4
- package/dist/actions/send-dm/send-dm.d.ts +0 -6
- package/dist/actions/simple-search/simple-search.d.ts +0 -9
- package/dist/actions/simple-search-in-list/simple-search-in-list.d.ts +0 -9
- package/dist/actions/unfollow-user/unfollow-user.d.ts +0 -6
- package/dist/actions/unlike-tweet/unlike-tweet.d.ts +0 -4
- package/dist/actions/upload-media/upload-media.d.ts +0 -4
- package/dist/app/twitter.app.d.ts +0 -69
- package/dist/common/addObjIncludes.d.ts +0 -9
- package/dist/common/additionalProps.d.ts +0 -0
- package/dist/common/appValidation.d.ts +0 -144
- package/dist/common/constants.d.ts +0 -7
- package/dist/common/dataFields.d.ts +0 -8
- package/dist/common/errorMessage.d.ts +0 -25
- package/dist/common/expansions.d.ts +0 -4
- package/dist/common/methods.d.ts +0 -27
- package/dist/common/types/fields.d.ts +0 -25
- package/dist/common/types/includeMapping.d.ts +0 -11
- package/dist/common/types/requestParams.d.ts +0 -126
- package/dist/common/types/responseSchemas.d.ts +0 -82
- package/dist/sources/common/base.d.ts +0 -163
- package/dist/sources/common/cacheUserId.d.ts +0 -7
- package/dist/sources/common/getItemSummary.d.ts +0 -4
- package/dist/sources/new-follower-of-user/new-follower-of-user.d.ts +0 -17
- package/dist/sources/new-list-followed/new-list-followed.d.ts +0 -17
- package/dist/sources/new-mention-received-by-user/new-mention-received-by-user.d.ts +0 -17
- package/dist/sources/new-message/new-message.d.ts +0 -15
- package/dist/sources/new-tweet-in-list/new-tweet-in-list.d.ts +0 -15
- package/dist/sources/new-tweet-liked-by-user/new-tweet-liked-by-user.d.ts +0 -17
- package/dist/sources/new-tweet-metrics/new-tweet-metrics.d.ts +0 -13
- package/dist/sources/new-tweet-posted-by-user/new-tweet-posted-by-user.d.ts +0 -17
- package/dist/sources/new-tweet-posted-matching-query/new-tweet-posted-matching-query.d.ts +0 -15
- package/dist/sources/new-unfollower-of-user/new-unfollower-of-user.d.ts +0 -17
- package/dist/sources/new-user-followed/new-user-followed.d.ts +0 -17
- package/dist/tsconfig.tsbuildinfo +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipedream/twitter",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.4",
|
|
4
4
|
"description": "Pipedream Twitter Components",
|
|
5
5
|
"main": "dist/app/twitter.app.mjs",
|
|
6
6
|
"keywords": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@pipedream/platform": "^3.1.
|
|
19
|
+
"@pipedream/platform": "^3.1.1",
|
|
20
20
|
"form-data": "^4.0.4",
|
|
21
21
|
"oauth-1.0a": "^2.2.6"
|
|
22
22
|
},
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { CreateTweetParams } from "../../common/types/requestParams.js";
|
|
2
|
-
declare const _default: import("@pipedream/types").Action<unknown, {
|
|
3
|
-
app: import("@pipedream/types").App<{
|
|
4
|
-
throwError(data: any): void;
|
|
5
|
-
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
6
|
-
_getBaseUrl(): "https://api.twitter.com/2";
|
|
7
|
-
_httpRequest({ $, headers, specialAuth, throwError, fallbackError, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").TwitterEntity>>;
|
|
8
|
-
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").TwitterEntity>>;
|
|
9
|
-
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
10
|
-
createTweet(args: CreateTweetParams): Promise<object>;
|
|
11
|
-
deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
|
|
12
|
-
followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
|
|
13
|
-
getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
14
|
-
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
15
|
-
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
16
|
-
getAuthenticatedUserId(): Promise<import("../../common/types/responseSchemas.js").User["id"]>;
|
|
17
|
-
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").DirectMessage>>;
|
|
18
|
-
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
19
|
-
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").List>>;
|
|
20
|
-
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").List>>;
|
|
21
|
-
getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
22
|
-
getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
23
|
-
getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
24
|
-
getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
25
|
-
likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
26
|
-
getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
27
|
-
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowingParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
28
|
-
retweet(args: import("../../common/types/requestParams.js").RetweetParams): Promise<object>;
|
|
29
|
-
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
30
|
-
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
31
|
-
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
32
|
-
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
33
|
-
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
34
|
-
}, {
|
|
35
|
-
maxResults: {
|
|
36
|
-
type: string;
|
|
37
|
-
label: string;
|
|
38
|
-
description: string;
|
|
39
|
-
optional: boolean;
|
|
40
|
-
};
|
|
41
|
-
listId: {
|
|
42
|
-
type: string;
|
|
43
|
-
label: string;
|
|
44
|
-
description: string;
|
|
45
|
-
options(): Promise<{
|
|
46
|
-
label: string;
|
|
47
|
-
value: string;
|
|
48
|
-
}[]>;
|
|
49
|
-
};
|
|
50
|
-
userNameOrId: {
|
|
51
|
-
type: string;
|
|
52
|
-
label: string;
|
|
53
|
-
description: string;
|
|
54
|
-
optional: boolean;
|
|
55
|
-
default: string;
|
|
56
|
-
};
|
|
57
|
-
tweetId: {
|
|
58
|
-
type: string;
|
|
59
|
-
label: string;
|
|
60
|
-
description: string;
|
|
61
|
-
};
|
|
62
|
-
query: {
|
|
63
|
-
type: string;
|
|
64
|
-
label: string;
|
|
65
|
-
description: string;
|
|
66
|
-
};
|
|
67
|
-
}>;
|
|
68
|
-
text: {
|
|
69
|
-
type: string;
|
|
70
|
-
label: string;
|
|
71
|
-
description: string;
|
|
72
|
-
optional: boolean;
|
|
73
|
-
};
|
|
74
|
-
inReplyToTweetId: {
|
|
75
|
-
type: string;
|
|
76
|
-
label: string;
|
|
77
|
-
description: string;
|
|
78
|
-
optional: boolean;
|
|
79
|
-
};
|
|
80
|
-
excludeReplyUserIds: {
|
|
81
|
-
type: string;
|
|
82
|
-
label: string;
|
|
83
|
-
description: string;
|
|
84
|
-
optional: boolean;
|
|
85
|
-
};
|
|
86
|
-
mediaIds: {
|
|
87
|
-
type: string;
|
|
88
|
-
label: string;
|
|
89
|
-
description: string;
|
|
90
|
-
optional: boolean;
|
|
91
|
-
};
|
|
92
|
-
taggedUserIds: {
|
|
93
|
-
type: string;
|
|
94
|
-
label: string;
|
|
95
|
-
description: string;
|
|
96
|
-
optional: boolean;
|
|
97
|
-
};
|
|
98
|
-
placeId: {
|
|
99
|
-
type: string;
|
|
100
|
-
label: string;
|
|
101
|
-
description: string;
|
|
102
|
-
optional: boolean;
|
|
103
|
-
};
|
|
104
|
-
}>;
|
|
105
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { getUserId, getUserFields } from "../../common/methods.js";
|
|
2
|
-
declare const _default: import("@pipedream/types").Action<{
|
|
3
|
-
getUserId: typeof getUserId;
|
|
4
|
-
getUserFields: typeof getUserFields;
|
|
5
|
-
getRecentTweets(args?: {}): any;
|
|
6
|
-
}, any>;
|
|
7
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { getMultiItemSummary, getUserId, getTweetFields } from "../../common/methods.js";
|
|
2
|
-
export declare const DOCS_LINK = "https://developer.twitter.com/en/docs/twitter-api/tweets/likes/api-reference/get-users-id-liked_tweets";
|
|
3
|
-
export declare const MAX_RESULTS_PER_PAGE = 100;
|
|
4
|
-
declare const _default: import("@pipedream/types").Action<{
|
|
5
|
-
getMultiItemSummary: typeof getMultiItemSummary;
|
|
6
|
-
getUserId: typeof getUserId;
|
|
7
|
-
getTweetFields: typeof getTweetFields;
|
|
8
|
-
getRecentTweets(args?: {}): any;
|
|
9
|
-
}, any>;
|
|
10
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { getMultiItemSummary, getUserId, getUserFields } from "../../common/methods.js";
|
|
2
|
-
export declare const DOCS_LINK = "https://developer.twitter.com/en/docs/twitter-api/users/follows/api-reference/get-users-id-followers";
|
|
3
|
-
export declare const MAX_RESULTS_PER_PAGE = 1000;
|
|
4
|
-
declare const _default: import("@pipedream/types").Action<{
|
|
5
|
-
getMultiItemSummary: typeof getMultiItemSummary;
|
|
6
|
-
getUserId: typeof getUserId;
|
|
7
|
-
getUserFields: typeof getUserFields;
|
|
8
|
-
getRecentTweets(args?: {}): any;
|
|
9
|
-
}, any>;
|
|
10
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { getMultiItemSummary, getUserId, getListFields } from "../../common/methods.js";
|
|
2
|
-
declare const _default: import("@pipedream/types").Action<{
|
|
3
|
-
getMultiItemSummary: typeof getMultiItemSummary;
|
|
4
|
-
getUserId: typeof getUserId;
|
|
5
|
-
getListFields: typeof getListFields;
|
|
6
|
-
getRecentTweets(args?: {}): any;
|
|
7
|
-
}, any>;
|
|
8
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { getMultiItemSummary, getUserId, getTweetFields } from "../../common/methods.js";
|
|
2
|
-
export declare const DOCS_LINK = "https://developer.twitter.com/en/docs/twitter-api/tweets/timelines/api-reference/get-users-id-mentions";
|
|
3
|
-
export declare const MAX_RESULTS_PER_PAGE = 100;
|
|
4
|
-
declare const _default: import("@pipedream/types").Action<{
|
|
5
|
-
getMultiItemSummary: typeof getMultiItemSummary;
|
|
6
|
-
getUserId: typeof getUserId;
|
|
7
|
-
getTweetFields: typeof getTweetFields;
|
|
8
|
-
getRecentTweets(args?: {}): any;
|
|
9
|
-
}, any>;
|
|
10
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { getMultiItemSummary, getUserId, getTweetFields } from "../../common/methods.js";
|
|
2
|
-
export declare const DOCS_LINK = "https://developer.twitter.com/en/docs/twitter-api/tweets/timelines/api-reference/get-users-id-tweets";
|
|
3
|
-
export declare const MAX_RESULTS_PER_PAGE = 100;
|
|
4
|
-
declare const _default: import("@pipedream/types").Action<{
|
|
5
|
-
getMultiItemSummary: typeof getMultiItemSummary;
|
|
6
|
-
getUserId: typeof getUserId;
|
|
7
|
-
getTweetFields: typeof getTweetFields;
|
|
8
|
-
getRecentTweets(args?: {}): any;
|
|
9
|
-
}, any>;
|
|
10
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { getMultiItemSummary, getTweetFields } from "../../common/methods.js";
|
|
2
|
-
export declare const DOCS_LINK = "https://developer.twitter.com/en/docs/twitter-api/tweets/search/api-reference/get-tweets-search-recent";
|
|
3
|
-
export declare const MAX_RESULTS_PER_PAGE = 100;
|
|
4
|
-
declare const _default: import("@pipedream/types").Action<{
|
|
5
|
-
getMultiItemSummary: typeof getMultiItemSummary;
|
|
6
|
-
getTweetFields: typeof getTweetFields;
|
|
7
|
-
getRecentTweets(args?: {}): any;
|
|
8
|
-
}, any>;
|
|
9
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { getMultiItemSummary, getTweetFields } from "../../common/methods.js";
|
|
2
|
-
export declare const DOCS_LINK = "https://developer.twitter.com/en/docs/twitter-api/lists/list-tweets/api-reference/get-lists-id-tweets";
|
|
3
|
-
export declare const MAX_RESULTS_PER_PAGE = 100;
|
|
4
|
-
declare const _default: import("@pipedream/types").Action<{
|
|
5
|
-
getMultiItemSummary: typeof getMultiItemSummary;
|
|
6
|
-
getTweetFields: typeof getTweetFields;
|
|
7
|
-
getRecentTweets(args?: {}): any;
|
|
8
|
-
}, any>;
|
|
9
|
-
export default _default;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import OAuth from "oauth-1.0a";
|
|
2
|
-
import { AddUserToListParams, CreateTweetParams, DeleteTweetParams, FollowUserParams, GetUserLikedTweetParams, GetUserOwnedListsParams, GetTweetParams, GetUserFollowedListsParams, GetUserMentionsParams, GetUserParams, GetUserTweetsParams, HttpRequestParams, LikeTweetParams, GetUserFollowersParams, GetUserFollowingParams, PaginatedRequestParams, RetweetParams, SearchTweetsParams, UnfollowUserParams, UnlikeTweetParams, GetListTweetsParams, GetAuthenticatedUserParams, SendMessageParams, GetDirectMessagesParams, UploadMediaParams } from "../common/types/requestParams.js";
|
|
3
|
-
import { DirectMessage, List, PaginatedResponseObject, ResponseObject, Tweet, TwitterEntity, User } from "../common/types/responseSchemas.js";
|
|
4
|
-
declare const _default: import("@pipedream/types").App<{
|
|
5
|
-
throwError(data: any): void;
|
|
6
|
-
_getAuthHeader(config: HttpRequestParams): OAuth.Header;
|
|
7
|
-
_getBaseUrl(): "https://api.twitter.com/2";
|
|
8
|
-
_httpRequest({ $, headers, specialAuth, throwError, fallbackError, ...args }: HttpRequestParams): Promise<ResponseObject<TwitterEntity>>;
|
|
9
|
-
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: PaginatedRequestParams): Promise<PaginatedResponseObject<TwitterEntity>>;
|
|
10
|
-
addUserToList({ listId, ...args }: AddUserToListParams): Promise<object>;
|
|
11
|
-
createTweet(args: CreateTweetParams): Promise<object>;
|
|
12
|
-
deleteTweet({ tweetId, ...args }: DeleteTweetParams): Promise<object>;
|
|
13
|
-
followUser(args: FollowUserParams): Promise<object>;
|
|
14
|
-
getListTweets({ listId, ...args }: GetListTweetsParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
15
|
-
getTweet({ tweetId, ...args }: GetTweetParams): Promise<ResponseObject<Tweet>>;
|
|
16
|
-
getAuthenticatedUser(args: GetAuthenticatedUserParams): Promise<ResponseObject<User>>;
|
|
17
|
-
getAuthenticatedUserId(): Promise<User["id"]>;
|
|
18
|
-
getDirectMessages(args: GetDirectMessagesParams): Promise<PaginatedResponseObject<DirectMessage>>;
|
|
19
|
-
getUserLikedTweets({ userId, ...args }: GetUserLikedTweetParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
20
|
-
getUserOwnedLists({ userId, ...args }: GetUserOwnedListsParams): Promise<PaginatedResponseObject<List>>;
|
|
21
|
-
getUserFollowedLists({ userId, ...args }: GetUserFollowedListsParams): Promise<PaginatedResponseObject<List>>;
|
|
22
|
-
getUserMentions({ userId, ...args }: GetUserMentionsParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
23
|
-
getUserTweets({ userId, ...args }: GetUserTweetsParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
24
|
-
getUserByUsername(username: string): Promise<ResponseObject<User>>;
|
|
25
|
-
getUser({ userId, ...args }: GetUserParams): Promise<ResponseObject<User>>;
|
|
26
|
-
likeTweet(args: LikeTweetParams): Promise<object>;
|
|
27
|
-
getUserFollowers({ userId, ...args }: GetUserFollowersParams): Promise<PaginatedResponseObject<User>>;
|
|
28
|
-
getUserFollowing({ userId, ...args }: GetUserFollowingParams): Promise<PaginatedResponseObject<User>>;
|
|
29
|
-
retweet(args: RetweetParams): Promise<object>;
|
|
30
|
-
searchTweets(args: SearchTweetsParams): Promise<PaginatedResponseObject<Tweet>>;
|
|
31
|
-
sendMessage({ userId, ...args }: SendMessageParams): Promise<object>;
|
|
32
|
-
unfollowUser({ userId, ...args }: UnfollowUserParams): Promise<object>;
|
|
33
|
-
unlikeTweet({ tweetId, ...args }: UnlikeTweetParams): Promise<object>;
|
|
34
|
-
uploadMedia(args: UploadMediaParams): Promise<object>;
|
|
35
|
-
}, {
|
|
36
|
-
maxResults: {
|
|
37
|
-
type: string;
|
|
38
|
-
label: string;
|
|
39
|
-
description: string;
|
|
40
|
-
optional: boolean;
|
|
41
|
-
};
|
|
42
|
-
listId: {
|
|
43
|
-
type: string;
|
|
44
|
-
label: string;
|
|
45
|
-
description: string;
|
|
46
|
-
options(): Promise<{
|
|
47
|
-
label: string;
|
|
48
|
-
value: string;
|
|
49
|
-
}[]>;
|
|
50
|
-
};
|
|
51
|
-
userNameOrId: {
|
|
52
|
-
type: string;
|
|
53
|
-
label: string;
|
|
54
|
-
description: string;
|
|
55
|
-
optional: boolean;
|
|
56
|
-
default: string;
|
|
57
|
-
};
|
|
58
|
-
tweetId: {
|
|
59
|
-
type: string;
|
|
60
|
-
label: string;
|
|
61
|
-
description: string;
|
|
62
|
-
};
|
|
63
|
-
query: {
|
|
64
|
-
type: string;
|
|
65
|
-
label: string;
|
|
66
|
-
description: string;
|
|
67
|
-
};
|
|
68
|
-
}>;
|
|
69
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IncludesIdCollectionFlattened } from "./types/includeMapping.js";
|
|
2
|
-
import { DirectMessage, List, ResponseIncludes, Tweet, TwitterEntity, User } from "./types/responseSchemas.js";
|
|
3
|
-
export declare function getDirectMessageIncludeIds(obj: DirectMessage): IncludesIdCollectionFlattened;
|
|
4
|
-
export declare function getListIncludeIds(obj: List): IncludesIdCollectionFlattened;
|
|
5
|
-
export declare function getUserIncludeIds(obj: User): IncludesIdCollectionFlattened;
|
|
6
|
-
export declare function getTweetIncludeIds(obj: Tweet): IncludesIdCollectionFlattened;
|
|
7
|
-
export declare function getObjIncludes(obj: TwitterEntity, includes: ResponseIncludes, getIncludeIds: (o: TwitterEntity) => IncludesIdCollectionFlattened): {
|
|
8
|
-
[k: string]: any;
|
|
9
|
-
};
|
|
File without changes
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
props: {
|
|
3
|
-
app: {
|
|
4
|
-
reloadProps: boolean;
|
|
5
|
-
type: "app";
|
|
6
|
-
app: string;
|
|
7
|
-
propDefinitions?: {
|
|
8
|
-
maxResults: {
|
|
9
|
-
type: string;
|
|
10
|
-
label: string;
|
|
11
|
-
description: string;
|
|
12
|
-
optional: boolean;
|
|
13
|
-
};
|
|
14
|
-
listId: {
|
|
15
|
-
type: string;
|
|
16
|
-
label: string;
|
|
17
|
-
description: string;
|
|
18
|
-
options(): Promise<{
|
|
19
|
-
label: string;
|
|
20
|
-
value: string;
|
|
21
|
-
}[]>;
|
|
22
|
-
};
|
|
23
|
-
userNameOrId: {
|
|
24
|
-
type: string;
|
|
25
|
-
label: string;
|
|
26
|
-
description: string;
|
|
27
|
-
optional: boolean;
|
|
28
|
-
default: string;
|
|
29
|
-
};
|
|
30
|
-
tweetId: {
|
|
31
|
-
type: string;
|
|
32
|
-
label: string;
|
|
33
|
-
description: string;
|
|
34
|
-
};
|
|
35
|
-
query: {
|
|
36
|
-
type: string;
|
|
37
|
-
label: string;
|
|
38
|
-
description: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
methods?: {
|
|
42
|
-
throwError(data: any): void;
|
|
43
|
-
_getAuthHeader(config: import("./types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
44
|
-
_getBaseUrl(): "https://api.twitter.com/2";
|
|
45
|
-
_httpRequest({ $, headers, specialAuth, throwError, fallbackError, ...args }: import("./types/requestParams.js").HttpRequestParams): Promise<import("./types/responseSchemas.js").ResponseObject<import("./types/responseSchemas.js").TwitterEntity>>;
|
|
46
|
-
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("./types/requestParams.js").PaginatedRequestParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").TwitterEntity>>;
|
|
47
|
-
addUserToList({ listId, ...args }: import("./types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
48
|
-
createTweet(args: import("./types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
49
|
-
deleteTweet({ tweetId, ...args }: import("./types/requestParams.js").DeleteTweetParams): Promise<object>;
|
|
50
|
-
followUser(args: import("./types/requestParams.js").FollowUserParams): Promise<object>;
|
|
51
|
-
getListTweets({ listId, ...args }: import("./types/requestParams.js").GetListTweetsParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").Tweet>>;
|
|
52
|
-
getTweet({ tweetId, ...args }: import("./types/requestParams.js").GetTweetParams): Promise<import("./types/responseSchemas.js").ResponseObject<import("./types/responseSchemas.js").Tweet>>;
|
|
53
|
-
getAuthenticatedUser(args: import("./types/requestParams.js").GetAuthenticatedUserParams): Promise<import("./types/responseSchemas.js").ResponseObject<import("./types/responseSchemas.js").User>>;
|
|
54
|
-
getAuthenticatedUserId(): Promise<import("./types/responseSchemas.js").User["id"]>;
|
|
55
|
-
getDirectMessages(args: import("./types/requestParams.js").GetDirectMessagesParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").DirectMessage>>;
|
|
56
|
-
getUserLikedTweets({ userId, ...args }: import("./types/requestParams.js").GetUserLikedTweetParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").Tweet>>;
|
|
57
|
-
getUserOwnedLists({ userId, ...args }: import("./types/requestParams.js").GetUserOwnedListsParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").List>>;
|
|
58
|
-
getUserFollowedLists({ userId, ...args }: import("./types/requestParams.js").GetUserFollowedListsParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").List>>;
|
|
59
|
-
getUserMentions({ userId, ...args }: import("./types/requestParams.js").GetUserMentionsParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").Tweet>>;
|
|
60
|
-
getUserTweets({ userId, ...args }: import("./types/requestParams.js").GetUserTweetsParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").Tweet>>;
|
|
61
|
-
getUserByUsername(username: string): Promise<import("./types/responseSchemas.js").ResponseObject<import("./types/responseSchemas.js").User>>;
|
|
62
|
-
getUser({ userId, ...args }: import("./types/requestParams.js").GetUserParams): Promise<import("./types/responseSchemas.js").ResponseObject<import("./types/responseSchemas.js").User>>;
|
|
63
|
-
likeTweet(args: import("./types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
64
|
-
getUserFollowers({ userId, ...args }: import("./types/requestParams.js").GetUserFollowersParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").User>>;
|
|
65
|
-
getUserFollowing({ userId, ...args }: import("./types/requestParams.js").GetUserFollowingParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").User>>;
|
|
66
|
-
retweet(args: import("./types/requestParams.js").RetweetParams): Promise<object>;
|
|
67
|
-
searchTweets(args: import("./types/requestParams.js").SearchTweetsParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").Tweet>>;
|
|
68
|
-
sendMessage({ userId, ...args }: import("./types/requestParams.js").SendMessageParams): Promise<object>;
|
|
69
|
-
unfollowUser({ userId, ...args }: import("./types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
70
|
-
unlikeTweet({ tweetId, ...args }: import("./types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
71
|
-
uploadMedia(args: import("./types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
72
|
-
} & ThisType<{
|
|
73
|
-
throwError(data: any): void;
|
|
74
|
-
_getAuthHeader(config: import("./types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
75
|
-
_getBaseUrl(): "https://api.twitter.com/2";
|
|
76
|
-
_httpRequest({ $, headers, specialAuth, throwError, fallbackError, ...args }: import("./types/requestParams.js").HttpRequestParams): Promise<import("./types/responseSchemas.js").ResponseObject<import("./types/responseSchemas.js").TwitterEntity>>;
|
|
77
|
-
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("./types/requestParams.js").PaginatedRequestParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").TwitterEntity>>;
|
|
78
|
-
addUserToList({ listId, ...args }: import("./types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
79
|
-
createTweet(args: import("./types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
80
|
-
deleteTweet({ tweetId, ...args }: import("./types/requestParams.js").DeleteTweetParams): Promise<object>;
|
|
81
|
-
followUser(args: import("./types/requestParams.js").FollowUserParams): Promise<object>;
|
|
82
|
-
getListTweets({ listId, ...args }: import("./types/requestParams.js").GetListTweetsParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").Tweet>>;
|
|
83
|
-
getTweet({ tweetId, ...args }: import("./types/requestParams.js").GetTweetParams): Promise<import("./types/responseSchemas.js").ResponseObject<import("./types/responseSchemas.js").Tweet>>;
|
|
84
|
-
getAuthenticatedUser(args: import("./types/requestParams.js").GetAuthenticatedUserParams): Promise<import("./types/responseSchemas.js").ResponseObject<import("./types/responseSchemas.js").User>>;
|
|
85
|
-
getAuthenticatedUserId(): Promise<import("./types/responseSchemas.js").User["id"]>;
|
|
86
|
-
getDirectMessages(args: import("./types/requestParams.js").GetDirectMessagesParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").DirectMessage>>;
|
|
87
|
-
getUserLikedTweets({ userId, ...args }: import("./types/requestParams.js").GetUserLikedTweetParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").Tweet>>;
|
|
88
|
-
getUserOwnedLists({ userId, ...args }: import("./types/requestParams.js").GetUserOwnedListsParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").List>>;
|
|
89
|
-
getUserFollowedLists({ userId, ...args }: import("./types/requestParams.js").GetUserFollowedListsParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").List>>;
|
|
90
|
-
getUserMentions({ userId, ...args }: import("./types/requestParams.js").GetUserMentionsParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").Tweet>>;
|
|
91
|
-
getUserTweets({ userId, ...args }: import("./types/requestParams.js").GetUserTweetsParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").Tweet>>;
|
|
92
|
-
getUserByUsername(username: string): Promise<import("./types/responseSchemas.js").ResponseObject<import("./types/responseSchemas.js").User>>;
|
|
93
|
-
getUser({ userId, ...args }: import("./types/requestParams.js").GetUserParams): Promise<import("./types/responseSchemas.js").ResponseObject<import("./types/responseSchemas.js").User>>;
|
|
94
|
-
likeTweet(args: import("./types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
95
|
-
getUserFollowers({ userId, ...args }: import("./types/requestParams.js").GetUserFollowersParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").User>>;
|
|
96
|
-
getUserFollowing({ userId, ...args }: import("./types/requestParams.js").GetUserFollowingParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").User>>;
|
|
97
|
-
retweet(args: import("./types/requestParams.js").RetweetParams): Promise<object>;
|
|
98
|
-
searchTweets(args: import("./types/requestParams.js").SearchTweetsParams): Promise<import("./types/responseSchemas.js").PaginatedResponseObject<import("./types/responseSchemas.js").Tweet>>;
|
|
99
|
-
sendMessage({ userId, ...args }: import("./types/requestParams.js").SendMessageParams): Promise<object>;
|
|
100
|
-
unfollowUser({ userId, ...args }: import("./types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
101
|
-
unlikeTweet({ tweetId, ...args }: import("./types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
102
|
-
uploadMedia(args: import("./types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
103
|
-
} & {
|
|
104
|
-
maxResults: {
|
|
105
|
-
type: string;
|
|
106
|
-
label: string;
|
|
107
|
-
description: string;
|
|
108
|
-
optional: boolean;
|
|
109
|
-
};
|
|
110
|
-
listId: {
|
|
111
|
-
type: string;
|
|
112
|
-
label: string;
|
|
113
|
-
description: string;
|
|
114
|
-
options(): Promise<{
|
|
115
|
-
label: string;
|
|
116
|
-
value: string;
|
|
117
|
-
}[]>;
|
|
118
|
-
};
|
|
119
|
-
userNameOrId: {
|
|
120
|
-
type: string;
|
|
121
|
-
label: string;
|
|
122
|
-
description: string;
|
|
123
|
-
optional: boolean;
|
|
124
|
-
default: string;
|
|
125
|
-
};
|
|
126
|
-
tweetId: {
|
|
127
|
-
type: string;
|
|
128
|
-
label: string;
|
|
129
|
-
description: string;
|
|
130
|
-
};
|
|
131
|
-
query: {
|
|
132
|
-
type: string;
|
|
133
|
-
label: string;
|
|
134
|
-
description: string;
|
|
135
|
-
};
|
|
136
|
-
}>;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
additionalProps(): Promise<any>;
|
|
140
|
-
methods: {
|
|
141
|
-
getRecentTweets(args?: {}): any;
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const LIST_FIELD_OPTIONS: string[];
|
|
2
|
-
export declare const MEDIA_FIELD_OPTIONS: string[];
|
|
3
|
-
export declare const MESSAGE_FIELD_OPTIONS: string[];
|
|
4
|
-
export declare const METRICS_FIELDS: string[];
|
|
5
|
-
export declare const PLACE_FIELD_OPTIONS: string[];
|
|
6
|
-
export declare const POLL_FIELD_OPTIONS: string[];
|
|
7
|
-
export declare const TWEET_FIELD_OPTIONS: string[];
|
|
8
|
-
export declare const USER_FIELD_OPTIONS: string[];
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export declare const ERROR_URL = "https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#item0";
|
|
2
|
-
export declare const ERROR_MESSAGE = "Check if your app is properly configured on the [Twitter Developer Portal](https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#item0), and if your plan has access to the endpoint used by this component.";
|
|
3
|
-
export declare const ACTION_ERROR_MESSAGE = "Check if your app is properly configured on the [Twitter Developer Portal](https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#item0), and if your plan has access to the endpoint used by this component. Additional debugging information has been exported from the step.";
|
|
4
|
-
export declare const ERROR_BY_TYPE: {
|
|
5
|
-
"https://api.twitter.com/2/problems/client-forbidden": string;
|
|
6
|
-
"about:blank": string;
|
|
7
|
-
"https://api.twitter.com/2/problems/invalid-request": string;
|
|
8
|
-
"https://api.twitter.com/2/problems/resource-not-found": string;
|
|
9
|
-
"https://api.twitter.com/2/problems/not-authorized-for-resource": string;
|
|
10
|
-
"https://api.twitter.com/2/problems/disallowed-resource": string;
|
|
11
|
-
"https://api.twitter.com/2/problems/unsupported-authentication": string;
|
|
12
|
-
"https://api.twitter.com/2/problems/usage-capped": string;
|
|
13
|
-
"https://api.twitter.com/2/problems/streaming-connection": string;
|
|
14
|
-
"https://api.twitter.com/2/problems/client-disconnected": string;
|
|
15
|
-
"https://api.twitter.com/2/problems/operational-disconnect": string;
|
|
16
|
-
"https://api.twitter.com/2/problems/rule-cap": string;
|
|
17
|
-
"https://api.twitter.com/2/problems/rule-length": string;
|
|
18
|
-
"https://api.twitter.com/2/problems/invalid-rules": string;
|
|
19
|
-
"https://api.twitter.com/2/problems/duplicate-rules": string;
|
|
20
|
-
"https://api.twitter.com/2/problems/conflict": string;
|
|
21
|
-
"https://api.twitter.com/2/problems/noncompliant-rules": string;
|
|
22
|
-
"https://api.twitter.com/2/problems/not-authorized-for-field": string;
|
|
23
|
-
"https://api.twitter.com/2/problems/oauth1-permissions": string;
|
|
24
|
-
"https://api.twitter.com/2/problems/resource-unavailable": string;
|
|
25
|
-
};
|
package/dist/common/methods.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare function getUserId(): Promise<string>;
|
|
2
|
-
export declare function getMultiItemSummary(name: string, length: number): string;
|
|
3
|
-
export declare function getListFields(): {
|
|
4
|
-
expansions: string;
|
|
5
|
-
"list.fields": string;
|
|
6
|
-
"user.fields": string;
|
|
7
|
-
};
|
|
8
|
-
export declare function getMessageFields(): {
|
|
9
|
-
"dm_event.fields": string;
|
|
10
|
-
expansions: string;
|
|
11
|
-
"media.fields": string;
|
|
12
|
-
"tweet.fields": string;
|
|
13
|
-
"user.fields": string;
|
|
14
|
-
};
|
|
15
|
-
export declare function getTweetFields(): {
|
|
16
|
-
expansions: string;
|
|
17
|
-
"media.fields": string;
|
|
18
|
-
"place.fields": string;
|
|
19
|
-
"poll.fields": string;
|
|
20
|
-
"tweet.fields": string;
|
|
21
|
-
"user.fields": string;
|
|
22
|
-
};
|
|
23
|
-
export declare function getUserFields(): {
|
|
24
|
-
expansions: string;
|
|
25
|
-
"tweet.fields": string;
|
|
26
|
-
"user.fields": string;
|
|
27
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface ListFields {
|
|
2
|
-
expansions?: string;
|
|
3
|
-
"list.fields"?: string;
|
|
4
|
-
"user.fields"?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface MessageFields {
|
|
7
|
-
expansions?: string;
|
|
8
|
-
"dm_event.fields"?: string;
|
|
9
|
-
"media.fields"?: string;
|
|
10
|
-
"tweet.fields"?: string;
|
|
11
|
-
"user.fields"?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface UserFields {
|
|
14
|
-
expansions?: string;
|
|
15
|
-
"tweet.fields"?: string;
|
|
16
|
-
"user.fields"?: string;
|
|
17
|
-
}
|
|
18
|
-
export interface TweetFields {
|
|
19
|
-
expansions?: string;
|
|
20
|
-
"media.fields"?: string;
|
|
21
|
-
"place.fields"?: string;
|
|
22
|
-
"poll.fields"?: string;
|
|
23
|
-
"tweet.fields"?: string;
|
|
24
|
-
"user.fields"?: string;
|
|
25
|
-
}
|