@pipedream/twitter 1.0.0 → 1.1.1
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/README.md +1 -3
- package/dist/actions/add-user-to-list/add-user-to-list.d.ts +3 -189
- package/dist/actions/add-user-to-list/add-user-to-list.mjs +4 -2
- package/dist/actions/create-tweet/create-tweet.d.ts +1 -63
- package/dist/actions/create-tweet/create-tweet.mjs +2 -2
- package/dist/actions/delete-tweet/delete-tweet.d.ts +2 -126
- package/dist/actions/delete-tweet/delete-tweet.mjs +4 -3
- package/dist/actions/follow-user/follow-user.d.ts +2 -126
- package/dist/actions/follow-user/follow-user.mjs +2 -2
- package/dist/actions/get-tweet/get-tweet.d.ts +2 -876
- package/dist/actions/get-tweet/get-tweet.mjs +4 -5
- package/dist/actions/get-user/get-user.d.ts +2 -503
- package/dist/actions/get-user/get-user.mjs +10 -7
- package/dist/actions/like-tweet/like-tweet.d.ts +2 -126
- package/dist/actions/like-tweet/like-tweet.mjs +4 -3
- package/dist/actions/list-favorites/list-favorites.d.ts +46 -982
- package/dist/actions/list-favorites/list-favorites.mjs +1 -3
- package/dist/actions/list-followers/list-followers.d.ts +46 -609
- package/dist/actions/list-followers/list-followers.mjs +1 -3
- package/dist/actions/list-lists/list-lists.d.ts +46 -608
- package/dist/actions/list-lists/list-lists.mjs +1 -3
- package/dist/actions/list-mentions/list-mentions.d.ts +46 -982
- package/dist/actions/list-mentions/list-mentions.mjs +1 -3
- package/dist/actions/list-user-tweets/list-user-tweets.d.ts +46 -982
- package/dist/actions/list-user-tweets/list-user-tweets.mjs +1 -3
- package/dist/actions/retweet/retweet.d.ts +2 -126
- package/dist/actions/retweet/retweet.mjs +6 -3
- package/dist/actions/simple-search/simple-search.d.ts +46 -982
- package/dist/actions/simple-search/simple-search.mjs +2 -3
- package/dist/actions/simple-search-in-list/simple-search-in-list.d.ts +51 -987
- package/dist/actions/simple-search-in-list/simple-search-in-list.mjs +1 -3
- package/dist/actions/unfollow-user/unfollow-user.d.ts +2 -126
- package/dist/actions/unfollow-user/unfollow-user.mjs +1 -1
- package/dist/actions/unlike-tweet/unlike-tweet.d.ts +2 -126
- package/dist/actions/unlike-tweet/unlike-tweet.mjs +4 -3
- package/dist/app/twitter.app.d.ts +2 -64
- package/dist/app/twitter.app.mjs +19 -69
- package/dist/common/additionalProps.d.ts +0 -0
- package/dist/common/additionalProps.mjs +138 -0
- package/dist/common/methods.mjs +36 -15
- package/dist/common/types/requestParams.d.ts +3 -1
- package/dist/sources/common/base.d.ts +2 -64
- package/dist/sources/common/base.mjs +5 -7
- package/dist/sources/new-follower-of-user/new-follower-of-user.d.ts +4 -505
- package/dist/sources/new-follower-of-user/new-follower-of-user.mjs +4 -8
- package/dist/sources/new-list-followed/new-list-followed.d.ts +4 -504
- package/dist/sources/new-list-followed/new-list-followed.mjs +4 -8
- package/dist/sources/new-tweet-in-list/new-tweet-in-list.d.ts +4 -878
- package/dist/sources/new-tweet-in-list/new-tweet-in-list.mjs +4 -8
- package/dist/sources/new-tweet-liked-by-user/new-tweet-liked-by-user.d.ts +4 -878
- package/dist/sources/new-tweet-liked-by-user/new-tweet-liked-by-user.mjs +4 -8
- package/dist/sources/new-tweet-posted-by-user/new-tweet-posted-by-user.d.ts +4 -878
- package/dist/sources/new-tweet-posted-by-user/new-tweet-posted-by-user.mjs +4 -8
- package/dist/sources/new-tweet-posted-matching-query/new-tweet-posted-matching-query.d.ts +4 -878
- package/dist/sources/new-tweet-posted-matching-query/new-tweet-posted-matching-query.mjs +4 -11
- package/dist/sources/new-unfollower-of-user/new-unfollower-of-user.d.ts +2 -126
- package/dist/sources/new-unfollower-of-user/new-unfollower-of-user.mjs +1 -1
- package/dist/sources/new-user-followed/new-user-followed.d.ts +4 -505
- package/dist/sources/new-user-followed/new-user-followed.mjs +4 -8
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/common/propGroups.d.ts +0 -1509
- package/dist/common/propGroups.mjs +0 -82
|
@@ -14,6 +14,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
14
14
|
followUser(args: FollowUserParams): Promise<object>;
|
|
15
15
|
getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
16
16
|
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
17
|
+
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
17
18
|
getAuthenticatedUserId(): Promise<string>;
|
|
18
19
|
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
19
20
|
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
@@ -62,69 +63,6 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
62
63
|
label: string;
|
|
63
64
|
description: string;
|
|
64
65
|
};
|
|
65
|
-
listExpansions: {
|
|
66
|
-
type: string;
|
|
67
|
-
label: string;
|
|
68
|
-
optional: boolean;
|
|
69
|
-
description: string;
|
|
70
|
-
options: string[];
|
|
71
|
-
};
|
|
72
|
-
tweetExpansions: {
|
|
73
|
-
type: string;
|
|
74
|
-
label: string;
|
|
75
|
-
optional: boolean;
|
|
76
|
-
description: string;
|
|
77
|
-
options: string[];
|
|
78
|
-
};
|
|
79
|
-
userExpansions: {
|
|
80
|
-
type: string;
|
|
81
|
-
label: string;
|
|
82
|
-
optional: boolean;
|
|
83
|
-
description: string;
|
|
84
|
-
options: string[];
|
|
85
|
-
};
|
|
86
|
-
listFields: {
|
|
87
|
-
type: string;
|
|
88
|
-
label: string;
|
|
89
|
-
description: string;
|
|
90
|
-
optional: boolean;
|
|
91
|
-
options: string[];
|
|
92
|
-
};
|
|
93
|
-
mediaFields: {
|
|
94
|
-
type: string;
|
|
95
|
-
label: string;
|
|
96
|
-
description: string;
|
|
97
|
-
optional: boolean;
|
|
98
|
-
options: string[];
|
|
99
|
-
};
|
|
100
|
-
placeFields: {
|
|
101
|
-
type: string;
|
|
102
|
-
label: string;
|
|
103
|
-
description: string;
|
|
104
|
-
optional: boolean;
|
|
105
|
-
options: string[];
|
|
106
|
-
};
|
|
107
|
-
pollFields: {
|
|
108
|
-
type: string;
|
|
109
|
-
label: string;
|
|
110
|
-
description: string;
|
|
111
|
-
optional: boolean;
|
|
112
|
-
options: string[];
|
|
113
|
-
};
|
|
114
|
-
tweetFields: {
|
|
115
|
-
type: string;
|
|
116
|
-
label: string;
|
|
117
|
-
description: string;
|
|
118
|
-
optional: boolean;
|
|
119
|
-
options: string[];
|
|
120
|
-
};
|
|
121
|
-
userFields: {
|
|
122
|
-
type: string;
|
|
123
|
-
label: string;
|
|
124
|
-
description: string;
|
|
125
|
-
optional: boolean;
|
|
126
|
-
options: string[];
|
|
127
|
-
};
|
|
128
66
|
}>;
|
|
129
67
|
userNameOrId: {
|
|
130
68
|
propDefinition: (string | import("@pipedream/types").App<{
|
|
@@ -138,6 +76,7 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
138
76
|
followUser(args: FollowUserParams): Promise<object>;
|
|
139
77
|
getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
140
78
|
getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
79
|
+
getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
|
|
141
80
|
getAuthenticatedUserId(): Promise<string>;
|
|
142
81
|
getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
|
|
143
82
|
getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
|
|
@@ -186,69 +125,6 @@ declare const _default: import("@pipedream/types").Action<{
|
|
|
186
125
|
label: string;
|
|
187
126
|
description: string;
|
|
188
127
|
};
|
|
189
|
-
listExpansions: {
|
|
190
|
-
type: string;
|
|
191
|
-
label: string;
|
|
192
|
-
optional: boolean;
|
|
193
|
-
description: string;
|
|
194
|
-
options: string[];
|
|
195
|
-
};
|
|
196
|
-
tweetExpansions: {
|
|
197
|
-
type: string;
|
|
198
|
-
label: string;
|
|
199
|
-
optional: boolean;
|
|
200
|
-
description: string;
|
|
201
|
-
options: string[];
|
|
202
|
-
};
|
|
203
|
-
userExpansions: {
|
|
204
|
-
type: string;
|
|
205
|
-
label: string;
|
|
206
|
-
optional: boolean;
|
|
207
|
-
description: string;
|
|
208
|
-
options: string[];
|
|
209
|
-
};
|
|
210
|
-
listFields: {
|
|
211
|
-
type: string;
|
|
212
|
-
label: string;
|
|
213
|
-
description: string;
|
|
214
|
-
optional: boolean;
|
|
215
|
-
options: string[];
|
|
216
|
-
};
|
|
217
|
-
mediaFields: {
|
|
218
|
-
type: string;
|
|
219
|
-
label: string;
|
|
220
|
-
description: string;
|
|
221
|
-
optional: boolean;
|
|
222
|
-
options: string[];
|
|
223
|
-
};
|
|
224
|
-
placeFields: {
|
|
225
|
-
type: string;
|
|
226
|
-
label: string;
|
|
227
|
-
description: string;
|
|
228
|
-
optional: boolean;
|
|
229
|
-
options: string[];
|
|
230
|
-
};
|
|
231
|
-
pollFields: {
|
|
232
|
-
type: string;
|
|
233
|
-
label: string;
|
|
234
|
-
description: string;
|
|
235
|
-
optional: boolean;
|
|
236
|
-
options: string[];
|
|
237
|
-
};
|
|
238
|
-
tweetFields: {
|
|
239
|
-
type: string;
|
|
240
|
-
label: string;
|
|
241
|
-
description: string;
|
|
242
|
-
optional: boolean;
|
|
243
|
-
options: string[];
|
|
244
|
-
};
|
|
245
|
-
userFields: {
|
|
246
|
-
type: string;
|
|
247
|
-
label: string;
|
|
248
|
-
description: string;
|
|
249
|
-
optional: boolean;
|
|
250
|
-
options: string[];
|
|
251
|
-
};
|
|
252
128
|
}>)[];
|
|
253
129
|
};
|
|
254
130
|
}>;
|
|
@@ -6,7 +6,7 @@ export default defineAction({
|
|
|
6
6
|
key: "twitter-follow-user",
|
|
7
7
|
name: "Follow User",
|
|
8
8
|
description: `Follow a user. [See docs here](${DOCS_LINK})`,
|
|
9
|
-
version: "1.0.
|
|
9
|
+
version: "1.0.2",
|
|
10
10
|
type: "action",
|
|
11
11
|
props: {
|
|
12
12
|
app,
|
|
@@ -29,7 +29,7 @@ export default defineAction({
|
|
|
29
29
|
},
|
|
30
30
|
};
|
|
31
31
|
const response = await this.app.followUser(params);
|
|
32
|
-
$.export("$summary", `Successfully ${response.following
|
|
32
|
+
$.export("$summary", `Successfully ${response.data?.following
|
|
33
33
|
? "followed"
|
|
34
34
|
: "requested to follow"} user`);
|
|
35
35
|
return response;
|