@pipedream/twitter 1.0.0 → 1.1.0

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