@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
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type IncludesIdMap<T> = {
|
|
2
|
-
mediaKeys?: T;
|
|
3
|
-
placeIds?: T;
|
|
4
|
-
pollIds?: T;
|
|
5
|
-
tweetIds?: T;
|
|
6
|
-
userIds?: T;
|
|
7
|
-
userNames?: T;
|
|
8
|
-
};
|
|
9
|
-
export type IncludesIdCollection = IncludesIdMap<(string | string[])[]>;
|
|
10
|
-
export type IncludesIdCollectionFlattened = IncludesIdMap<string[]>;
|
|
11
|
-
export {};
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { Pipedream } from "@pipedream/types";
|
|
2
|
-
import { ListFields, MessageFields, TweetFields, UserFields } from "./fields.js";
|
|
3
|
-
import FormData from "form-data";
|
|
4
|
-
interface FallbackError {
|
|
5
|
-
fallbackError?: string;
|
|
6
|
-
}
|
|
7
|
-
interface PdAxiosRequest {
|
|
8
|
-
$: Pipedream;
|
|
9
|
-
}
|
|
10
|
-
interface PaginationParams {
|
|
11
|
-
maxPerPage?: number;
|
|
12
|
-
maxResults?: number;
|
|
13
|
-
}
|
|
14
|
-
interface PaginatedRequest extends PdAxiosRequest, PaginationParams {
|
|
15
|
-
}
|
|
16
|
-
export interface HttpRequestParams extends PdAxiosRequest, FallbackError {
|
|
17
|
-
url: string;
|
|
18
|
-
method: string;
|
|
19
|
-
headers?: object;
|
|
20
|
-
data?: object | string;
|
|
21
|
-
params?: object;
|
|
22
|
-
baseURL?: string;
|
|
23
|
-
specialAuth?: boolean;
|
|
24
|
-
throwError?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export interface PaginatedRequestParams extends HttpRequestParams, PaginationParams {
|
|
27
|
-
}
|
|
28
|
-
export interface AddUserToListParams extends PdAxiosRequest, FallbackError {
|
|
29
|
-
listId: string;
|
|
30
|
-
data: {
|
|
31
|
-
user_id: string;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
export interface CreateTweetParams extends PdAxiosRequest, FallbackError {
|
|
35
|
-
data: {
|
|
36
|
-
text: string;
|
|
37
|
-
geo?: {
|
|
38
|
-
place_id: string;
|
|
39
|
-
};
|
|
40
|
-
media?: {
|
|
41
|
-
media_ids: string[];
|
|
42
|
-
tagged_user_ids: string[];
|
|
43
|
-
};
|
|
44
|
-
reply?: {
|
|
45
|
-
exclude_reply_user_ids: string[];
|
|
46
|
-
in_reply_to_tweet_id: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
interface ListId {
|
|
51
|
-
listId: string;
|
|
52
|
-
}
|
|
53
|
-
interface UserId {
|
|
54
|
-
userId: string;
|
|
55
|
-
}
|
|
56
|
-
interface TweetId {
|
|
57
|
-
tweetId: string;
|
|
58
|
-
}
|
|
59
|
-
export interface DeleteTweetParams extends PdAxiosRequest, TweetId, FallbackError {
|
|
60
|
-
}
|
|
61
|
-
export interface FollowUserParams extends PdAxiosRequest, FallbackError {
|
|
62
|
-
data: {
|
|
63
|
-
target_user_id: string;
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
export interface GetDirectMessagesParams extends PaginatedRequest, FallbackError {
|
|
67
|
-
params?: MessageFields & {
|
|
68
|
-
event_types: "MessageCreate";
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
export interface GetUserLikedTweetParams extends PaginatedRequest, UserId, FallbackError {
|
|
72
|
-
params?: TweetFields;
|
|
73
|
-
}
|
|
74
|
-
export interface GetListTweetsParams extends PaginatedRequest, ListId, FallbackError {
|
|
75
|
-
params?: TweetFields;
|
|
76
|
-
}
|
|
77
|
-
export interface GetUserOwnedListsParams extends PaginatedRequest, UserId, FallbackError {
|
|
78
|
-
params?: ListFields;
|
|
79
|
-
}
|
|
80
|
-
export interface GetUserMentionsParams extends PaginatedRequest, UserId, FallbackError {
|
|
81
|
-
params?: TweetFields;
|
|
82
|
-
}
|
|
83
|
-
export interface GetUserTweetsParams extends PaginatedRequest, UserId, FallbackError {
|
|
84
|
-
params?: TweetFields & {
|
|
85
|
-
since_id?: string;
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
export interface GetUserFollowedListsParams extends PaginatedRequest, UserId, FallbackError {
|
|
89
|
-
params?: ListFields;
|
|
90
|
-
}
|
|
91
|
-
export interface GetAuthenticatedUserParams extends PdAxiosRequest, FallbackError {
|
|
92
|
-
params?: UserFields;
|
|
93
|
-
}
|
|
94
|
-
export interface GetUserParams extends GetAuthenticatedUserParams, UserId, FallbackError {
|
|
95
|
-
}
|
|
96
|
-
export interface GetTweetParams extends PdAxiosRequest, TweetId, FallbackError {
|
|
97
|
-
params?: TweetFields;
|
|
98
|
-
}
|
|
99
|
-
export interface GetUserFollowersParams extends PaginatedRequest, UserId, FallbackError {
|
|
100
|
-
params?: UserFields;
|
|
101
|
-
}
|
|
102
|
-
export type GetUserFollowingParams = GetUserFollowersParams;
|
|
103
|
-
export interface LikeTweetParams extends PdAxiosRequest, FallbackError {
|
|
104
|
-
data: {
|
|
105
|
-
tweet_id: string;
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
export type RetweetParams = LikeTweetParams;
|
|
109
|
-
export interface SearchTweetsParams extends PaginatedRequest, FallbackError {
|
|
110
|
-
params: {
|
|
111
|
-
query: string;
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
export interface SendMessageParams extends PdAxiosRequest, UserId, FallbackError {
|
|
115
|
-
data: {
|
|
116
|
-
text: string;
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
export interface UnfollowUserParams extends PdAxiosRequest, UserId, FallbackError {
|
|
120
|
-
}
|
|
121
|
-
export interface UnlikeTweetParams extends PdAxiosRequest, TweetId, FallbackError {
|
|
122
|
-
}
|
|
123
|
-
export interface UploadMediaParams extends PdAxiosRequest, FallbackError {
|
|
124
|
-
data: FormData;
|
|
125
|
-
}
|
|
126
|
-
export {};
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
export interface TwitterEntity {
|
|
2
|
-
id: string;
|
|
3
|
-
}
|
|
4
|
-
export type TwitterEntityMap = Record<string, object>;
|
|
5
|
-
export interface DirectMessage extends TwitterEntity, HasMediaAttachments, HasReferencedTweets {
|
|
6
|
-
event_type: "MessageCreate";
|
|
7
|
-
text: string;
|
|
8
|
-
sender_id?: string;
|
|
9
|
-
participant_ids?: string[];
|
|
10
|
-
}
|
|
11
|
-
export interface List extends TwitterEntity {
|
|
12
|
-
name: string;
|
|
13
|
-
owner_id?: string;
|
|
14
|
-
}
|
|
15
|
-
interface MetricsFields {
|
|
16
|
-
public_metrics?: string;
|
|
17
|
-
non_public_metrics?: string;
|
|
18
|
-
organic_metrics?: string;
|
|
19
|
-
promoted_metrics?: string;
|
|
20
|
-
}
|
|
21
|
-
interface HasReferencedTweets {
|
|
22
|
-
referenced_tweets?: ReferencedTweet[];
|
|
23
|
-
}
|
|
24
|
-
interface HasMediaAttachments {
|
|
25
|
-
attachments?: {
|
|
26
|
-
media_keys?: string[];
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
export interface Tweet extends TwitterEntity, MetricsFields, HasReferencedTweets {
|
|
30
|
-
text: string;
|
|
31
|
-
author_id?: string;
|
|
32
|
-
edit_history_tweet_ids?: string[];
|
|
33
|
-
in_reply_to_user_id?: string;
|
|
34
|
-
attachments?: HasMediaAttachments["attachments"] & {
|
|
35
|
-
poll_ids: string[];
|
|
36
|
-
};
|
|
37
|
-
geo?: {
|
|
38
|
-
place_id: string;
|
|
39
|
-
};
|
|
40
|
-
entities?: {
|
|
41
|
-
mentions?: User[];
|
|
42
|
-
};
|
|
43
|
-
includes?: {
|
|
44
|
-
tweets?: Tweet[];
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
export interface ReferencedTweet {
|
|
48
|
-
id: string;
|
|
49
|
-
type: "retweeted" | "quoted" | "replied_to";
|
|
50
|
-
}
|
|
51
|
-
export interface User extends TwitterEntity {
|
|
52
|
-
name: string;
|
|
53
|
-
username: string;
|
|
54
|
-
pinned_tweet_id?: string;
|
|
55
|
-
}
|
|
56
|
-
type Poll = TwitterEntity;
|
|
57
|
-
type Place = TwitterEntity;
|
|
58
|
-
export interface ResponseIncludes {
|
|
59
|
-
places?: Place[];
|
|
60
|
-
polls?: Poll[];
|
|
61
|
-
users?: User[];
|
|
62
|
-
tweets?: Tweet[];
|
|
63
|
-
media?: MediaItem[];
|
|
64
|
-
}
|
|
65
|
-
interface ResponseBase {
|
|
66
|
-
includes?: ResponseIncludes;
|
|
67
|
-
errors?: object;
|
|
68
|
-
}
|
|
69
|
-
export type ResponseObject<T extends TwitterEntity> = ResponseBase & {
|
|
70
|
-
data?: T | T[];
|
|
71
|
-
};
|
|
72
|
-
export type PaginatedResponseObject<T extends TwitterEntity> = ResponseBase & {
|
|
73
|
-
data?: T[];
|
|
74
|
-
meta?: {
|
|
75
|
-
next_token?: string;
|
|
76
|
-
result_count: number;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
interface MediaItem {
|
|
80
|
-
media_key: string;
|
|
81
|
-
}
|
|
82
|
-
export {};
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { TwitterEntity } from "../../common/types/responseSchemas.js";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
props: {
|
|
4
|
-
db: string;
|
|
5
|
-
timer: {
|
|
6
|
-
type: string;
|
|
7
|
-
default: {
|
|
8
|
-
intervalSeconds: number;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
app: {
|
|
12
|
-
reloadProps: boolean;
|
|
13
|
-
type: "app";
|
|
14
|
-
app: string;
|
|
15
|
-
propDefinitions?: {
|
|
16
|
-
maxResults: {
|
|
17
|
-
type: string;
|
|
18
|
-
label: string;
|
|
19
|
-
description: string;
|
|
20
|
-
optional: boolean;
|
|
21
|
-
};
|
|
22
|
-
listId: {
|
|
23
|
-
type: string;
|
|
24
|
-
label: string;
|
|
25
|
-
description: string;
|
|
26
|
-
options(): Promise<{
|
|
27
|
-
label: string;
|
|
28
|
-
value: string;
|
|
29
|
-
}[]>;
|
|
30
|
-
};
|
|
31
|
-
userNameOrId: {
|
|
32
|
-
type: string;
|
|
33
|
-
label: string;
|
|
34
|
-
description: string;
|
|
35
|
-
optional: boolean;
|
|
36
|
-
default: string;
|
|
37
|
-
};
|
|
38
|
-
tweetId: {
|
|
39
|
-
type: string;
|
|
40
|
-
label: string;
|
|
41
|
-
description: string;
|
|
42
|
-
};
|
|
43
|
-
query: {
|
|
44
|
-
type: string;
|
|
45
|
-
label: string;
|
|
46
|
-
description: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
methods?: {
|
|
50
|
-
throwError(data: any): void;
|
|
51
|
-
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
52
|
-
_getBaseUrl(): "https://api.twitter.com/2";
|
|
53
|
-
_httpRequest({ $, headers, specialAuth, throwError, fallbackError, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<TwitterEntity>>;
|
|
54
|
-
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<TwitterEntity>>;
|
|
55
|
-
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
56
|
-
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
57
|
-
deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
|
|
58
|
-
followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
|
|
59
|
-
getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
60
|
-
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
61
|
-
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
62
|
-
getAuthenticatedUserId(): Promise<import("../../common/types/responseSchemas.js").User["id"]>;
|
|
63
|
-
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").DirectMessage>>;
|
|
64
|
-
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
65
|
-
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").List>>;
|
|
66
|
-
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").List>>;
|
|
67
|
-
getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
68
|
-
getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
69
|
-
getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
70
|
-
getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
71
|
-
likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
72
|
-
getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
73
|
-
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowingParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
74
|
-
retweet(args: import("../../common/types/requestParams.js").RetweetParams): Promise<object>;
|
|
75
|
-
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
76
|
-
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
77
|
-
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
78
|
-
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
79
|
-
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
80
|
-
} & ThisType<{
|
|
81
|
-
throwError(data: any): void;
|
|
82
|
-
_getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
|
|
83
|
-
_getBaseUrl(): "https://api.twitter.com/2";
|
|
84
|
-
_httpRequest({ $, headers, specialAuth, throwError, fallbackError, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<TwitterEntity>>;
|
|
85
|
-
_paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<TwitterEntity>>;
|
|
86
|
-
addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
|
|
87
|
-
createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
|
|
88
|
-
deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
|
|
89
|
-
followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
|
|
90
|
-
getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
91
|
-
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
92
|
-
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
93
|
-
getAuthenticatedUserId(): Promise<import("../../common/types/responseSchemas.js").User["id"]>;
|
|
94
|
-
getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").DirectMessage>>;
|
|
95
|
-
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
96
|
-
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").List>>;
|
|
97
|
-
getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").List>>;
|
|
98
|
-
getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
99
|
-
getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
100
|
-
getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
101
|
-
getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas.js").ResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
102
|
-
likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
|
|
103
|
-
getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
104
|
-
getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowingParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").User>>;
|
|
105
|
-
retweet(args: import("../../common/types/requestParams.js").RetweetParams): Promise<object>;
|
|
106
|
-
searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas.js").PaginatedResponseObject<import("../../common/types/responseSchemas.js").Tweet>>;
|
|
107
|
-
sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
|
|
108
|
-
unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
|
|
109
|
-
unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
|
|
110
|
-
uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
|
|
111
|
-
} & {
|
|
112
|
-
maxResults: {
|
|
113
|
-
type: string;
|
|
114
|
-
label: string;
|
|
115
|
-
description: string;
|
|
116
|
-
optional: boolean;
|
|
117
|
-
};
|
|
118
|
-
listId: {
|
|
119
|
-
type: string;
|
|
120
|
-
label: string;
|
|
121
|
-
description: string;
|
|
122
|
-
options(): Promise<{
|
|
123
|
-
label: string;
|
|
124
|
-
value: string;
|
|
125
|
-
}[]>;
|
|
126
|
-
};
|
|
127
|
-
userNameOrId: {
|
|
128
|
-
type: string;
|
|
129
|
-
label: string;
|
|
130
|
-
description: string;
|
|
131
|
-
optional: boolean;
|
|
132
|
-
default: string;
|
|
133
|
-
};
|
|
134
|
-
tweetId: {
|
|
135
|
-
type: string;
|
|
136
|
-
label: string;
|
|
137
|
-
description: string;
|
|
138
|
-
};
|
|
139
|
-
query: {
|
|
140
|
-
type: string;
|
|
141
|
-
label: string;
|
|
142
|
-
description: string;
|
|
143
|
-
};
|
|
144
|
-
}>;
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
hooks: {
|
|
148
|
-
deploy(): Promise<void>;
|
|
149
|
-
};
|
|
150
|
-
methods: {
|
|
151
|
-
getEntityName(): string;
|
|
152
|
-
getItemSummary(): string;
|
|
153
|
-
getResources(): Promise<TwitterEntity[]>;
|
|
154
|
-
getSavedIds(): string[];
|
|
155
|
-
setSavedIds(data: string[]): void;
|
|
156
|
-
getAndProcessData(maxResults?: number): Promise<void>;
|
|
157
|
-
emitEvent(data: TwitterEntity): void;
|
|
158
|
-
getRecentTweets(args?: {}): any;
|
|
159
|
-
};
|
|
160
|
-
run(): Promise<void>;
|
|
161
|
-
additionalProps(): Promise<any>;
|
|
162
|
-
};
|
|
163
|
-
export default _default;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DirectMessage, List, Tweet, User } from "../../common/types/responseSchemas.js";
|
|
2
|
-
export declare function getListSummary({ name }: List): string;
|
|
3
|
-
export declare function getTweetSummary({ text }: Tweet | DirectMessage): string;
|
|
4
|
-
export declare function getUserSummary({ username }: User): string;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { getUserSummary as getItemSummary } from "../common/getItemSummary.js";
|
|
2
|
-
import { getUserFields } from "../../common/methods.js";
|
|
3
|
-
import { User } from "../../common/types/responseSchemas.js";
|
|
4
|
-
declare const _default: import("@pipedream/types").Source<{
|
|
5
|
-
getUserFields: typeof getUserFields;
|
|
6
|
-
getItemSummary: typeof getItemSummary;
|
|
7
|
-
getEntityName(): "Follower";
|
|
8
|
-
getResources(maxResults?: number): Promise<User[]>;
|
|
9
|
-
getCachedUserId: () => Promise<string>;
|
|
10
|
-
getUserId: typeof import("../../common/methods.js").getUserId;
|
|
11
|
-
getSavedIds(): string[];
|
|
12
|
-
setSavedIds(data: string[]): void;
|
|
13
|
-
getAndProcessData(maxResults?: number): Promise<void>;
|
|
14
|
-
emitEvent(data: import("../../common/types/responseSchemas.js").TwitterEntity): void;
|
|
15
|
-
getRecentTweets(args?: {}): any;
|
|
16
|
-
}, any>;
|
|
17
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { getListSummary as getItemSummary } from "../common/getItemSummary.js";
|
|
2
|
-
import { List } from "../../common/types/responseSchemas.js";
|
|
3
|
-
import { getListFields } from "../../common/methods.js";
|
|
4
|
-
declare const _default: import("@pipedream/types").Source<{
|
|
5
|
-
getListFields: typeof getListFields;
|
|
6
|
-
getItemSummary: typeof getItemSummary;
|
|
7
|
-
getEntityName(): "List Followed";
|
|
8
|
-
getResources(maxResults?: number): Promise<List[]>;
|
|
9
|
-
getCachedUserId: () => Promise<string>;
|
|
10
|
-
getUserId: typeof import("../../common/methods.js").getUserId;
|
|
11
|
-
getSavedIds(): string[];
|
|
12
|
-
setSavedIds(data: string[]): void;
|
|
13
|
-
getAndProcessData(maxResults?: number): Promise<void>;
|
|
14
|
-
emitEvent(data: import("../../common/types/responseSchemas.js").TwitterEntity): void;
|
|
15
|
-
getRecentTweets(args?: {}): any;
|
|
16
|
-
}, any>;
|
|
17
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { getTweetSummary as getItemSummary } from "../common/getItemSummary.js";
|
|
2
|
-
import { getTweetFields } from "../../common/methods.js";
|
|
3
|
-
import { Tweet } from "../../common/types/responseSchemas.js";
|
|
4
|
-
declare const _default: import("@pipedream/types").Source<{
|
|
5
|
-
getTweetFields: typeof getTweetFields;
|
|
6
|
-
getItemSummary: typeof getItemSummary;
|
|
7
|
-
getEntityName(): "Mention Received";
|
|
8
|
-
getResources(maxResults?: number): Promise<Tweet[]>;
|
|
9
|
-
getCachedUserId: () => Promise<string>;
|
|
10
|
-
getUserId: typeof import("../../common/methods.js").getUserId;
|
|
11
|
-
getSavedIds(): string[];
|
|
12
|
-
setSavedIds(data: string[]): void;
|
|
13
|
-
getAndProcessData(maxResults?: number): Promise<void>;
|
|
14
|
-
emitEvent(data: import("../../common/types/responseSchemas.js").TwitterEntity): void;
|
|
15
|
-
getRecentTweets(args?: {}): any;
|
|
16
|
-
}, any>;
|
|
17
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { getTweetSummary as getItemSummary } from "../common/getItemSummary.js";
|
|
2
|
-
import { getMessageFields } from "../../common/methods.js";
|
|
3
|
-
import { DirectMessage } from "../../common/types/responseSchemas.js";
|
|
4
|
-
declare const _default: import("@pipedream/types").Source<{
|
|
5
|
-
getMessageFields: typeof getMessageFields;
|
|
6
|
-
getEntityName(): "DM Received";
|
|
7
|
-
getItemSummary: typeof getItemSummary;
|
|
8
|
-
getResources(maxResults?: number): Promise<DirectMessage[]>;
|
|
9
|
-
getSavedIds(): string[];
|
|
10
|
-
setSavedIds(data: string[]): void;
|
|
11
|
-
getAndProcessData(maxResults?: number): Promise<void>;
|
|
12
|
-
emitEvent(data: import("../../common/types/responseSchemas.js").TwitterEntity): void;
|
|
13
|
-
getRecentTweets(args?: {}): any;
|
|
14
|
-
}, any>;
|
|
15
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { getTweetSummary as getItemSummary } from "../common/getItemSummary.js";
|
|
2
|
-
import { getTweetFields } from "../../common/methods.js";
|
|
3
|
-
import { Tweet } from "../../common/types/responseSchemas.js";
|
|
4
|
-
declare const _default: import("@pipedream/types").Source<{
|
|
5
|
-
getTweetFields: typeof getTweetFields;
|
|
6
|
-
getEntityName(): "Tweet";
|
|
7
|
-
getItemSummary: typeof getItemSummary;
|
|
8
|
-
getResources(maxResults?: number): Promise<Tweet[]>;
|
|
9
|
-
getSavedIds(): string[];
|
|
10
|
-
setSavedIds(data: string[]): void;
|
|
11
|
-
getAndProcessData(maxResults?: number): Promise<void>;
|
|
12
|
-
emitEvent(data: import("../../common/types/responseSchemas.js").TwitterEntity): void;
|
|
13
|
-
getRecentTweets(args?: {}): any;
|
|
14
|
-
}, any>;
|
|
15
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { getTweetSummary as getItemSummary } from "../common/getItemSummary.js";
|
|
2
|
-
import { getTweetFields } from "../../common/methods.js";
|
|
3
|
-
import { Tweet } from "../../common/types/responseSchemas.js";
|
|
4
|
-
declare const _default: import("@pipedream/types").Source<{
|
|
5
|
-
getTweetFields: typeof getTweetFields;
|
|
6
|
-
getItemSummary: typeof getItemSummary;
|
|
7
|
-
getEntityName(): "Tweet Liked";
|
|
8
|
-
getResources(maxResults?: number): Promise<Tweet[]>;
|
|
9
|
-
getCachedUserId: () => Promise<string>;
|
|
10
|
-
getUserId: typeof import("../../common/methods.js").getUserId;
|
|
11
|
-
getSavedIds(): string[];
|
|
12
|
-
setSavedIds(data: string[]): void;
|
|
13
|
-
getAndProcessData(maxResults?: number): Promise<void>;
|
|
14
|
-
emitEvent(data: import("../../common/types/responseSchemas.js").TwitterEntity): void;
|
|
15
|
-
getRecentTweets(args?: {}): any;
|
|
16
|
-
}, any>;
|
|
17
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@pipedream/types").Source<{
|
|
2
|
-
getSavedMetrics(): string;
|
|
3
|
-
setSavedMetrics(data: string): void;
|
|
4
|
-
getAndProcessData(): Promise<void>;
|
|
5
|
-
getEntityName(): string;
|
|
6
|
-
getItemSummary(): string;
|
|
7
|
-
getResources(): Promise<import("../../common/types/responseSchemas.js").TwitterEntity[]>;
|
|
8
|
-
getSavedIds(): string[];
|
|
9
|
-
setSavedIds(data: string[]): void;
|
|
10
|
-
emitEvent(data: import("../../common/types/responseSchemas.js").TwitterEntity): void;
|
|
11
|
-
getRecentTweets(args?: {}): any;
|
|
12
|
-
}, any>;
|
|
13
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { getTweetSummary as getItemSummary } from "../common/getItemSummary.js";
|
|
2
|
-
import { Tweet } from "../../common/types/responseSchemas.js";
|
|
3
|
-
import { getTweetFields } from "../../common/methods.js";
|
|
4
|
-
declare const _default: import("@pipedream/types").Source<{
|
|
5
|
-
getTweetFields: typeof getTweetFields;
|
|
6
|
-
getItemSummary: typeof getItemSummary;
|
|
7
|
-
getEntityName(): "Tweet";
|
|
8
|
-
getResources(maxResults?: number): Promise<Tweet[]>;
|
|
9
|
-
getCachedUserId: () => Promise<string>;
|
|
10
|
-
getUserId: typeof import("../../common/methods.js").getUserId;
|
|
11
|
-
getSavedIds(): string[];
|
|
12
|
-
setSavedIds(data: string[]): void;
|
|
13
|
-
getAndProcessData(maxResults?: number): Promise<void>;
|
|
14
|
-
emitEvent(data: import("../../common/types/responseSchemas.js").TwitterEntity): void;
|
|
15
|
-
getRecentTweets(args?: {}): any;
|
|
16
|
-
}, any>;
|
|
17
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { getTweetSummary as getItemSummary } from "../common/getItemSummary.js";
|
|
2
|
-
import { getTweetFields } from "../../common/methods.js";
|
|
3
|
-
import { Tweet } from "../../common/types/responseSchemas.js";
|
|
4
|
-
declare const _default: import("@pipedream/types").Source<{
|
|
5
|
-
getTweetFields: typeof getTweetFields;
|
|
6
|
-
getEntityName(): "Tweet";
|
|
7
|
-
getItemSummary: typeof getItemSummary;
|
|
8
|
-
getResources(maxResults?: number): Promise<Tweet[]>;
|
|
9
|
-
getSavedIds(): string[];
|
|
10
|
-
setSavedIds(data: string[]): void;
|
|
11
|
-
getAndProcessData(maxResults?: number): Promise<void>;
|
|
12
|
-
emitEvent(data: import("../../common/types/responseSchemas.js").TwitterEntity): void;
|
|
13
|
-
getRecentTweets(args?: {}): any;
|
|
14
|
-
}, any>;
|
|
15
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { getUserSummary as getItemSummary } from "../common/getItemSummary.js";
|
|
2
|
-
import { User } from "../../common/types/responseSchemas.js";
|
|
3
|
-
declare const _default: import("@pipedream/types").Source<{
|
|
4
|
-
getItemSummary: typeof getItemSummary;
|
|
5
|
-
getEntityName(): "Unfollower";
|
|
6
|
-
getSavedUsers(): User[];
|
|
7
|
-
setSavedUsers(data: User[]): void;
|
|
8
|
-
getResources(): Promise<User[]>;
|
|
9
|
-
getAndProcessData(emit?: boolean): Promise<void>;
|
|
10
|
-
getCachedUserId: () => Promise<string>;
|
|
11
|
-
getUserId: typeof import("../../common/methods.js").getUserId;
|
|
12
|
-
getSavedIds(): string[];
|
|
13
|
-
setSavedIds(data: string[]): void;
|
|
14
|
-
emitEvent(data: import("../../common/types/responseSchemas.js").TwitterEntity): void;
|
|
15
|
-
getRecentTweets(args?: {}): any;
|
|
16
|
-
}, any>;
|
|
17
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { getUserSummary as getItemSummary } from "../common/getItemSummary.js";
|
|
2
|
-
import { getUserFields } from "../../common/methods.js";
|
|
3
|
-
import { User } from "../../common/types/responseSchemas.js";
|
|
4
|
-
declare const _default: import("@pipedream/types").Source<{
|
|
5
|
-
getUserFields: typeof getUserFields;
|
|
6
|
-
getEntityName(): "User Followed";
|
|
7
|
-
getItemSummary: typeof getItemSummary;
|
|
8
|
-
getResources(maxResults?: number): Promise<User[]>;
|
|
9
|
-
getCachedUserId: () => Promise<string>;
|
|
10
|
-
getUserId: typeof import("../../common/methods.js").getUserId;
|
|
11
|
-
getSavedIds(): string[];
|
|
12
|
-
setSavedIds(data: string[]): void;
|
|
13
|
-
getAndProcessData(maxResults?: number): Promise<void>;
|
|
14
|
-
emitEvent(data: import("../../common/types/responseSchemas.js").TwitterEntity): void;
|
|
15
|
-
getRecentTweets(args?: {}): any;
|
|
16
|
-
}, any>;
|
|
17
|
-
export default _default;
|