@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
package/README.md CHANGED
@@ -1,7 +1,5 @@
1
- # Overview
2
- In order to connect your Twitter account to Pipedream, you'll need to create a developer project and app.
3
-
4
1
  # Getting Started
2
+ In order to connect your Twitter account to Pipedream, you'll need to create a developer project and app.
5
3
  1. First, visit Twitter's [developer dashboard](https://developer.twitter.com/en/portal/dashboard) and sign in
6
4
  2. Next, [create a new project](https://developer.twitter.com/en/portal/projects/new) and give it a name, select a use case, and provide a description
7
5
 
@@ -14,6 +14,7 @@ declare const _default: import("@pipedream/types").Action<{
14
14
  followUser(args: import("../../common/types/requestParams.js").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
  listId: {
130
68
  propDefinition: (string | import("@pipedream/types").App<{
@@ -138,6 +76,7 @@ declare const _default: import("@pipedream/types").Action<{
138
76
  followUser(args: import("../../common/types/requestParams.js").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
  userNameOrId: {
@@ -263,6 +139,7 @@ declare const _default: import("@pipedream/types").Action<{
263
139
  followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
264
140
  getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
265
141
  getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
142
+ getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
266
143
  getAuthenticatedUserId(): Promise<string>;
267
144
  getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
268
145
  getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
@@ -311,69 +188,6 @@ declare const _default: import("@pipedream/types").Action<{
311
188
  label: string;
312
189
  description: string;
313
190
  };
314
- listExpansions: {
315
- type: string;
316
- label: string;
317
- optional: boolean;
318
- description: string;
319
- options: string[];
320
- };
321
- tweetExpansions: {
322
- type: string;
323
- label: string;
324
- optional: boolean;
325
- description: string;
326
- options: string[];
327
- };
328
- userExpansions: {
329
- type: string;
330
- label: string;
331
- optional: boolean;
332
- description: string;
333
- options: string[];
334
- };
335
- listFields: {
336
- type: string;
337
- label: string;
338
- description: string;
339
- optional: boolean;
340
- options: string[];
341
- };
342
- mediaFields: {
343
- type: string;
344
- label: string;
345
- description: string;
346
- optional: boolean;
347
- options: string[];
348
- };
349
- placeFields: {
350
- type: string;
351
- label: string;
352
- description: string;
353
- optional: boolean;
354
- options: string[];
355
- };
356
- pollFields: {
357
- type: string;
358
- label: string;
359
- description: string;
360
- optional: boolean;
361
- options: string[];
362
- };
363
- tweetFields: {
364
- type: string;
365
- label: string;
366
- description: string;
367
- optional: boolean;
368
- options: string[];
369
- };
370
- userFields: {
371
- type: string;
372
- label: string;
373
- description: string;
374
- optional: boolean;
375
- options: string[];
376
- };
377
191
  }>)[];
378
192
  };
379
193
  }>;
@@ -6,7 +6,7 @@ export default defineAction({
6
6
  key: "twitter-add-user-to-list",
7
7
  name: "Add User To List",
8
8
  description: `Add a member to a list owned by the user. [See docs here](${DOCS_LINK})`,
9
- version: "1.0.0",
9
+ version: "1.0.1",
10
10
  type: "action",
11
11
  props: {
12
12
  app,
@@ -36,7 +36,9 @@ export default defineAction({
36
36
  listId: this.listId,
37
37
  };
38
38
  const response = await this.app.addUserToList(params);
39
- $.export("$summary", "Successfully added user to list");
39
+ $.export("$summary", response.data?.is_member !== true
40
+ ? "User not added to list"
41
+ : "Successfully added user to list");
40
42
  return response;
41
43
  },
42
44
  });
@@ -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
  text: {
127
65
  type: string;
@@ -5,7 +5,7 @@ export default defineAction({
5
5
  key: "twitter-create-tweet",
6
6
  name: "Create Tweet",
7
7
  description: `Create a new tweet. [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,
@@ -72,7 +72,7 @@ export default defineAction({
72
72
  },
73
73
  };
74
74
  const response = await this.app.createTweet(params);
75
- $.export("$summary", "Successfully posted tweet");
75
+ $.export("$summary", `Successfully posted tweet (ID ${response.data?.id})`);
76
76
  return response;
77
77
  },
78
78
  });
@@ -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-delete-tweet",
6
6
  name: "Delete Tweet",
7
7
  description: `Remove a posted tweet. [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,12 +17,13 @@ export default defineAction({
17
17
  },
18
18
  },
19
19
  async run({ $ }) {
20
+ const { tweetId } = this;
20
21
  const params = {
21
22
  $,
22
- tweetId: this.tweetId,
23
+ tweetId,
23
24
  };
24
25
  const response = await this.app.deleteTweet(params);
25
- $.export("$summary", "Successfully deleted tweet");
26
+ $.export("$summary", `Successfully deleted tweet (ID ${tweetId})`);
26
27
  return response;
27
28
  },
28
29
  });