@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.
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
@@ -6,390 +6,14 @@ declare const _default: import("@pipedream/types").Source<{
6
6
  getListFields: typeof getListFields;
7
7
  getItemSummary: typeof getItemSummary;
8
8
  getEntityName(): "List Followed";
9
- getResources(customize: boolean): Promise<List[]>;
9
+ getResources(maxResults?: number): Promise<List[]>;
10
10
  getCachedUserId: () => Promise<string>;
11
11
  getUserId: typeof import("../../common/methods.js").getUserId;
12
12
  getSavedIds(): string[];
13
13
  setSavedIds(data: string[]): void;
14
- getAndProcessData(emit?: boolean): Promise<void>;
14
+ getAndProcessData(maxResults?: number): Promise<void>;
15
15
  emitEvent(data: import("../../common/types/responseSchemas.js").TwitterEntity): void;
16
16
  }, {
17
- expansions: {
18
- propDefinition: (string | import("@pipedream/types").App<{
19
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
20
- _getBaseUrl(): "https://api.twitter.com/2";
21
- _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
22
- _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
23
- addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
24
- createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
25
- deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
26
- followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
27
- getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
28
- getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
29
- getAuthenticatedUserId(): Promise<string>;
30
- getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
31
- getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<List>>;
32
- getUserFollowedLists({ userId, ...args }: GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<List>>;
33
- getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
34
- getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
35
- getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
36
- getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
37
- likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
38
- getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
39
- getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
40
- retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
41
- searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
42
- unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
43
- unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
44
- }, {
45
- maxResults: {
46
- type: string;
47
- label: string;
48
- description: string;
49
- optional: boolean;
50
- };
51
- listId: {
52
- type: string;
53
- label: string;
54
- description: string;
55
- options(): Promise<{
56
- label: string;
57
- value: string;
58
- }[]>;
59
- };
60
- userNameOrId: {
61
- type: string;
62
- label: string;
63
- description: string;
64
- optional: boolean;
65
- default: string;
66
- };
67
- tweetId: {
68
- type: string;
69
- label: string;
70
- description: string;
71
- };
72
- query: {
73
- type: string;
74
- label: string;
75
- description: string;
76
- };
77
- listExpansions: {
78
- type: string;
79
- label: string;
80
- optional: boolean;
81
- description: string;
82
- options: string[];
83
- };
84
- tweetExpansions: {
85
- type: string;
86
- label: string;
87
- optional: boolean;
88
- description: string;
89
- options: string[];
90
- };
91
- userExpansions: {
92
- type: string;
93
- label: string;
94
- optional: boolean;
95
- description: string;
96
- options: string[];
97
- };
98
- listFields: {
99
- type: string;
100
- label: string;
101
- description: string;
102
- optional: boolean;
103
- options: string[];
104
- };
105
- mediaFields: {
106
- type: string;
107
- label: string;
108
- description: string;
109
- optional: boolean;
110
- options: string[];
111
- };
112
- placeFields: {
113
- type: string;
114
- label: string;
115
- description: string;
116
- optional: boolean;
117
- options: string[];
118
- };
119
- pollFields: {
120
- type: string;
121
- label: string;
122
- description: string;
123
- optional: boolean;
124
- options: string[];
125
- };
126
- tweetFields: {
127
- type: string;
128
- label: string;
129
- description: string;
130
- optional: boolean;
131
- options: string[];
132
- };
133
- userFields: {
134
- type: string;
135
- label: string;
136
- description: string;
137
- optional: boolean;
138
- options: string[];
139
- };
140
- }>)[];
141
- };
142
- listFields: {
143
- propDefinition: (string | import("@pipedream/types").App<{
144
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
145
- _getBaseUrl(): "https://api.twitter.com/2";
146
- _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
147
- _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
148
- addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
149
- createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
150
- deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
151
- followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
152
- getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
153
- getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
154
- getAuthenticatedUserId(): Promise<string>;
155
- getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
156
- getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<List>>;
157
- getUserFollowedLists({ userId, ...args }: GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<List>>;
158
- getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
159
- getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
160
- getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
161
- getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
162
- likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
163
- getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
164
- getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
165
- retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
166
- searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
167
- unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
168
- unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
169
- }, {
170
- maxResults: {
171
- type: string;
172
- label: string;
173
- description: string;
174
- optional: boolean;
175
- };
176
- listId: {
177
- type: string;
178
- label: string;
179
- description: string;
180
- options(): Promise<{
181
- label: string;
182
- value: string;
183
- }[]>;
184
- };
185
- userNameOrId: {
186
- type: string;
187
- label: string;
188
- description: string;
189
- optional: boolean;
190
- default: string;
191
- };
192
- tweetId: {
193
- type: string;
194
- label: string;
195
- description: string;
196
- };
197
- query: {
198
- type: string;
199
- label: string;
200
- description: string;
201
- };
202
- listExpansions: {
203
- type: string;
204
- label: string;
205
- optional: boolean;
206
- description: string;
207
- options: string[];
208
- };
209
- tweetExpansions: {
210
- type: string;
211
- label: string;
212
- optional: boolean;
213
- description: string;
214
- options: string[];
215
- };
216
- userExpansions: {
217
- type: string;
218
- label: string;
219
- optional: boolean;
220
- description: string;
221
- options: string[];
222
- };
223
- listFields: {
224
- type: string;
225
- label: string;
226
- description: string;
227
- optional: boolean;
228
- options: string[];
229
- };
230
- mediaFields: {
231
- type: string;
232
- label: string;
233
- description: string;
234
- optional: boolean;
235
- options: string[];
236
- };
237
- placeFields: {
238
- type: string;
239
- label: string;
240
- description: string;
241
- optional: boolean;
242
- options: string[];
243
- };
244
- pollFields: {
245
- type: string;
246
- label: string;
247
- description: string;
248
- optional: boolean;
249
- options: string[];
250
- };
251
- tweetFields: {
252
- type: string;
253
- label: string;
254
- description: string;
255
- optional: boolean;
256
- options: string[];
257
- };
258
- userFields: {
259
- type: string;
260
- label: string;
261
- description: string;
262
- optional: boolean;
263
- options: string[];
264
- };
265
- }>)[];
266
- };
267
- userFields: {
268
- propDefinition: (string | import("@pipedream/types").App<{
269
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
270
- _getBaseUrl(): "https://api.twitter.com/2";
271
- _httpRequest({ $, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
272
- _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
273
- addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
274
- createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
275
- deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
276
- followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
277
- getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
278
- getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
279
- getAuthenticatedUserId(): Promise<string>;
280
- getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
281
- getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<List>>;
282
- getUserFollowedLists({ userId, ...args }: GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<List>>;
283
- getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
284
- getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
285
- getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
286
- getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
287
- likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
288
- getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
289
- getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
290
- retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
291
- searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
292
- unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
293
- unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
294
- }, {
295
- maxResults: {
296
- type: string;
297
- label: string;
298
- description: string;
299
- optional: boolean;
300
- };
301
- listId: {
302
- type: string;
303
- label: string;
304
- description: string;
305
- options(): Promise<{
306
- label: string;
307
- value: string;
308
- }[]>;
309
- };
310
- userNameOrId: {
311
- type: string;
312
- label: string;
313
- description: string;
314
- optional: boolean;
315
- default: string;
316
- };
317
- tweetId: {
318
- type: string;
319
- label: string;
320
- description: string;
321
- };
322
- query: {
323
- type: string;
324
- label: string;
325
- description: string;
326
- };
327
- listExpansions: {
328
- type: string;
329
- label: string;
330
- optional: boolean;
331
- description: string;
332
- options: string[];
333
- };
334
- tweetExpansions: {
335
- type: string;
336
- label: string;
337
- optional: boolean;
338
- description: string;
339
- options: string[];
340
- };
341
- userExpansions: {
342
- type: string;
343
- label: string;
344
- optional: boolean;
345
- description: string;
346
- options: string[];
347
- };
348
- listFields: {
349
- type: string;
350
- label: string;
351
- description: string;
352
- optional: boolean;
353
- options: string[];
354
- };
355
- mediaFields: {
356
- type: string;
357
- label: string;
358
- description: string;
359
- optional: boolean;
360
- options: string[];
361
- };
362
- placeFields: {
363
- type: string;
364
- label: string;
365
- description: string;
366
- optional: boolean;
367
- options: string[];
368
- };
369
- pollFields: {
370
- type: string;
371
- label: string;
372
- description: string;
373
- optional: boolean;
374
- options: string[];
375
- };
376
- tweetFields: {
377
- type: string;
378
- label: string;
379
- description: string;
380
- optional: boolean;
381
- options: string[];
382
- };
383
- userFields: {
384
- type: string;
385
- label: string;
386
- description: string;
387
- optional: boolean;
388
- options: string[];
389
- };
390
- }>)[];
391
- description: string;
392
- };
393
17
  userNameOrId: {
394
18
  propDefinition: (string | import("@pipedream/types").App<{
395
19
  _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("oauth-1.0a").Header>;
@@ -402,6 +26,7 @@ declare const _default: import("@pipedream/types").Source<{
402
26
  followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
403
27
  getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
404
28
  getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
29
+ getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
405
30
  getAuthenticatedUserId(): Promise<string>;
406
31
  getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
407
32
  getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<List>>;
@@ -450,69 +75,6 @@ declare const _default: import("@pipedream/types").Source<{
450
75
  label: string;
451
76
  description: string;
452
77
  };
453
- listExpansions: {
454
- type: string;
455
- label: string;
456
- optional: boolean;
457
- description: string;
458
- options: string[];
459
- };
460
- tweetExpansions: {
461
- type: string;
462
- label: string;
463
- optional: boolean;
464
- description: string;
465
- options: string[];
466
- };
467
- userExpansions: {
468
- type: string;
469
- label: string;
470
- optional: boolean;
471
- description: string;
472
- options: string[];
473
- };
474
- listFields: {
475
- type: string;
476
- label: string;
477
- description: string;
478
- optional: boolean;
479
- options: string[];
480
- };
481
- mediaFields: {
482
- type: string;
483
- label: string;
484
- description: string;
485
- optional: boolean;
486
- options: string[];
487
- };
488
- placeFields: {
489
- type: string;
490
- label: string;
491
- description: string;
492
- optional: boolean;
493
- options: string[];
494
- };
495
- pollFields: {
496
- type: string;
497
- label: string;
498
- description: string;
499
- optional: boolean;
500
- options: string[];
501
- };
502
- tweetFields: {
503
- type: string;
504
- label: string;
505
- description: string;
506
- optional: boolean;
507
- options: string[];
508
- };
509
- userFields: {
510
- type: string;
511
- label: string;
512
- description: string;
513
- optional: boolean;
514
- options: string[];
515
- };
516
78
  }>)[];
517
79
  };
518
80
  app: import("@pipedream/types").App<{
@@ -526,6 +88,7 @@ declare const _default: import("@pipedream/types").Source<{
526
88
  followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
527
89
  getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
528
90
  getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
91
+ getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
529
92
  getAuthenticatedUserId(): Promise<string>;
530
93
  getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
531
94
  getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<List>>;
@@ -574,69 +137,6 @@ declare const _default: import("@pipedream/types").Source<{
574
137
  label: string;
575
138
  description: string;
576
139
  };
577
- listExpansions: {
578
- type: string;
579
- label: string;
580
- optional: boolean;
581
- description: string;
582
- options: string[];
583
- };
584
- tweetExpansions: {
585
- type: string;
586
- label: string;
587
- optional: boolean;
588
- description: string;
589
- options: string[];
590
- };
591
- userExpansions: {
592
- type: string;
593
- label: string;
594
- optional: boolean;
595
- description: string;
596
- options: string[];
597
- };
598
- listFields: {
599
- type: string;
600
- label: string;
601
- description: string;
602
- optional: boolean;
603
- options: string[];
604
- };
605
- mediaFields: {
606
- type: string;
607
- label: string;
608
- description: string;
609
- optional: boolean;
610
- options: string[];
611
- };
612
- placeFields: {
613
- type: string;
614
- label: string;
615
- description: string;
616
- optional: boolean;
617
- options: string[];
618
- };
619
- pollFields: {
620
- type: string;
621
- label: string;
622
- description: string;
623
- optional: boolean;
624
- options: string[];
625
- };
626
- tweetFields: {
627
- type: string;
628
- label: string;
629
- description: string;
630
- optional: boolean;
631
- options: string[];
632
- };
633
- userFields: {
634
- type: string;
635
- label: string;
636
- description: string;
637
- optional: boolean;
638
- options: string[];
639
- };
640
140
  }>;
641
141
  db: string;
642
142
  timer: {
@@ -2,7 +2,6 @@ import app from "../../app/twitter.app.mjs";
2
2
  import { defineSource } from "@pipedream/types";
3
3
  import common from "../common/base.mjs";
4
4
  import { getListSummary as getItemSummary } from "../common/getItemSummary.mjs";
5
- import { listFieldProps } from "../../common/propGroups.mjs";
6
5
  import { getListFields } from "../../common/methods.mjs";
7
6
  import cacheUserId from "../common/cacheUserId.mjs";
8
7
  const DOCS_LINK = "https://developer.twitter.com/en/docs/twitter-api/lists/list-follows/api-reference/get-users-id-followed_lists";
@@ -12,7 +11,7 @@ export default defineSource({
12
11
  key: "twitter-new-list-followed",
13
12
  name: "New List Followed by User",
14
13
  description: `Emit new event when the specified User follows a List [See docs here](${DOCS_LINK})`,
15
- version: "1.0.0",
14
+ version: "1.1.1",
16
15
  type: "source",
17
16
  props: {
18
17
  ...common.props,
@@ -22,7 +21,6 @@ export default defineSource({
22
21
  "userNameOrId",
23
22
  ],
24
23
  },
25
- ...listFieldProps,
26
24
  },
27
25
  methods: {
28
26
  ...common.methods,
@@ -32,17 +30,15 @@ export default defineSource({
32
30
  getEntityName() {
33
31
  return "List Followed";
34
32
  },
35
- async getResources(customize) {
33
+ async getResources(maxResults) {
36
34
  const userId = await this.getCachedUserId();
37
35
  const params = {
38
36
  $: this,
39
37
  maxPerPage: MAX_RESULTS_PER_PAGE,
40
- maxResults: MAX_RESULTS_PER_PAGE,
38
+ maxResults: maxResults ?? MAX_RESULTS_PER_PAGE,
39
+ params: this.getListFields(),
41
40
  userId,
42
41
  };
43
- if (customize) {
44
- params.params = this.getListFields();
45
- }
46
42
  const { data } = await this.app.getUserFollowedLists(params);
47
43
  return data;
48
44
  },