@pipedream/twitter 2.1.2 → 2.2.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 (71) hide show
  1. package/dist/actions/add-user-to-list/add-user-to-list.d.ts +2 -199
  2. package/dist/actions/add-user-to-list/add-user-to-list.mjs +21 -24
  3. package/dist/actions/create-tweet/create-tweet.d.ts +17 -16
  4. package/dist/actions/create-tweet/create-tweet.mjs +29 -34
  5. package/dist/actions/delete-tweet/delete-tweet.d.ts +3 -133
  6. package/dist/actions/delete-tweet/delete-tweet.mjs +14 -18
  7. package/dist/actions/follow-user/follow-user.d.ts +2 -133
  8. package/dist/actions/follow-user/follow-user.mjs +19 -22
  9. package/dist/actions/get-tweet/get-tweet.d.ts +2 -134
  10. package/dist/actions/get-tweet/get-tweet.mjs +16 -19
  11. package/dist/actions/get-user/get-user.d.ts +2 -134
  12. package/dist/actions/get-user/get-user.mjs +19 -22
  13. package/dist/actions/like-tweet/like-tweet.d.ts +3 -133
  14. package/dist/actions/like-tweet/like-tweet.mjs +16 -20
  15. package/dist/actions/list-favorites/list-favorites.d.ts +2 -203
  16. package/dist/actions/list-favorites/list-favorites.mjs +19 -22
  17. package/dist/actions/list-followers/list-followers.d.ts +2 -203
  18. package/dist/actions/list-followers/list-followers.mjs +19 -22
  19. package/dist/actions/list-lists/list-lists.d.ts +2 -203
  20. package/dist/actions/list-lists/list-lists.mjs +19 -22
  21. package/dist/actions/list-mentions/list-mentions.d.ts +4 -203
  22. package/dist/actions/list-mentions/list-mentions.mjs +21 -24
  23. package/dist/actions/list-user-tweets/list-user-tweets.d.ts +2 -203
  24. package/dist/actions/list-user-tweets/list-user-tweets.mjs +19 -22
  25. package/dist/actions/retweet/retweet.d.ts +3 -133
  26. package/dist/actions/retweet/retweet.mjs +18 -22
  27. package/dist/actions/send-dm/send-dm.d.ts +2 -140
  28. package/dist/actions/send-dm/send-dm.mjs +18 -21
  29. package/dist/actions/simple-search/simple-search.d.ts +2 -203
  30. package/dist/actions/simple-search/simple-search.mjs +20 -23
  31. package/dist/actions/simple-search-in-list/simple-search-in-list.d.ts +2 -208
  32. package/dist/actions/simple-search-in-list/simple-search-in-list.mjs +23 -26
  33. package/dist/actions/unfollow-user/unfollow-user.d.ts +2 -133
  34. package/dist/actions/unfollow-user/unfollow-user.mjs +15 -18
  35. package/dist/actions/unlike-tweet/unlike-tweet.d.ts +3 -133
  36. package/dist/actions/unlike-tweet/unlike-tweet.mjs +14 -18
  37. package/dist/actions/upload-media/upload-media.d.ts +3 -82
  38. package/dist/actions/upload-media/upload-media.mjs +24 -21
  39. package/dist/app/twitter.app.d.ts +2 -1
  40. package/dist/app/twitter.app.mjs +40 -29
  41. package/dist/common/appValidation.d.ts +144 -0
  42. package/dist/common/appValidation.mjs +24 -0
  43. package/dist/common/errorMessage.d.ts +24 -2
  44. package/dist/common/errorMessage.mjs +25 -1
  45. package/dist/common/types/requestParams.d.ts +26 -22
  46. package/dist/sources/common/base.d.ts +137 -64
  47. package/dist/sources/common/base.mjs +8 -2
  48. package/dist/sources/new-follower-of-user/new-follower-of-user.d.ts +2 -140
  49. package/dist/sources/new-follower-of-user/new-follower-of-user.mjs +2 -3
  50. package/dist/sources/new-list-followed/new-list-followed.d.ts +2 -140
  51. package/dist/sources/new-list-followed/new-list-followed.mjs +2 -3
  52. package/dist/sources/new-mention-received-by-user/new-mention-received-by-user.d.ts +17 -0
  53. package/dist/sources/new-mention-received-by-user/new-mention-received-by-user.mjs +44 -0
  54. package/dist/sources/new-message/new-message.d.ts +2 -74
  55. package/dist/sources/new-message/new-message.mjs +1 -1
  56. package/dist/sources/new-tweet-in-list/new-tweet-in-list.d.ts +2 -140
  57. package/dist/sources/new-tweet-in-list/new-tweet-in-list.mjs +2 -3
  58. package/dist/sources/new-tweet-liked-by-user/new-tweet-liked-by-user.d.ts +2 -140
  59. package/dist/sources/new-tweet-liked-by-user/new-tweet-liked-by-user.mjs +2 -3
  60. package/dist/sources/new-tweet-metrics/new-tweet-metrics.d.ts +3 -148
  61. package/dist/sources/new-tweet-metrics/new-tweet-metrics.mjs +2 -3
  62. package/dist/sources/new-tweet-posted-by-user/new-tweet-posted-by-user.d.ts +2 -140
  63. package/dist/sources/new-tweet-posted-by-user/new-tweet-posted-by-user.mjs +2 -3
  64. package/dist/sources/new-tweet-posted-matching-query/new-tweet-posted-matching-query.d.ts +2 -140
  65. package/dist/sources/new-tweet-posted-matching-query/new-tweet-posted-matching-query.mjs +2 -3
  66. package/dist/sources/new-unfollower-of-user/new-unfollower-of-user.d.ts +2 -140
  67. package/dist/sources/new-unfollower-of-user/new-unfollower-of-user.mjs +2 -3
  68. package/dist/sources/new-user-followed/new-user-followed.d.ts +2 -139
  69. package/dist/sources/new-user-followed/new-user-followed.mjs +2 -3
  70. package/dist/tsconfig.tsbuildinfo +1 -1
  71. package/package.json +1 -1
@@ -1,4 +1,3 @@
1
- import app from "../../app/twitter.app.mjs";
2
1
  import { defineSource } from "@pipedream/types";
3
2
  import common from "../common/base.mjs";
4
3
  import { getListSummary as getItemSummary } from "../common/getItemSummary.mjs";
@@ -11,13 +10,13 @@ export default defineSource({
11
10
  key: "twitter-new-list-followed",
12
11
  name: "New List Followed by User",
13
12
  description: `Emit new event when the specified User follows a List [See the documentation](${DOCS_LINK})`,
14
- version: "2.0.3",
13
+ version: "2.0.4",
15
14
  type: "source",
16
15
  props: {
17
16
  ...common.props,
18
17
  userNameOrId: {
19
18
  propDefinition: [
20
- app,
19
+ common.props.app,
21
20
  "userNameOrId",
22
21
  ],
23
22
  },
@@ -0,0 +1,17 @@
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
+ getTweets(args?: {}): any;
16
+ }, any>;
17
+ export default _default;
@@ -0,0 +1,44 @@
1
+ import { defineSource } from "@pipedream/types";
2
+ import common from "../common/base.mjs";
3
+ import { getTweetSummary as getItemSummary } from "../common/getItemSummary.mjs";
4
+ import { getTweetFields } from "../../common/methods.mjs";
5
+ import { DOCS_LINK, MAX_RESULTS_PER_PAGE, } from "../../actions/list-mentions/list-mentions.mjs";
6
+ import cacheUserId from "../common/cacheUserId.mjs";
7
+ export default defineSource({
8
+ ...common,
9
+ key: "twitter-new-mention-received-by-user",
10
+ name: "New Mention Received by User",
11
+ description: `Emit new event when the specified User is mentioned in a Tweet [See the documentation](${DOCS_LINK})`,
12
+ version: "0.0.2",
13
+ type: "source",
14
+ props: {
15
+ ...common.props,
16
+ userNameOrId: {
17
+ propDefinition: [
18
+ common.props.app,
19
+ "userNameOrId",
20
+ ],
21
+ },
22
+ },
23
+ methods: {
24
+ ...common.methods,
25
+ ...cacheUserId,
26
+ getTweetFields,
27
+ getItemSummary,
28
+ getEntityName() {
29
+ return "Mention Received";
30
+ },
31
+ async getResources(maxResults) {
32
+ const userId = await this.getCachedUserId();
33
+ const params = {
34
+ $: this,
35
+ maxPerPage: MAX_RESULTS_PER_PAGE,
36
+ maxResults: maxResults ?? MAX_RESULTS_PER_PAGE,
37
+ params: this.getTweetFields(),
38
+ userId,
39
+ };
40
+ const { data } = await this.app.getUserMentions(params);
41
+ return data;
42
+ },
43
+ },
44
+ });
@@ -1,6 +1,5 @@
1
1
  import { getTweetSummary as getItemSummary } from "../common/getItemSummary.js";
2
2
  import { getMessageFields } from "../../common/methods.js";
3
- import { GetDirectMessagesParams } from "../../common/types/requestParams.js";
4
3
  import { DirectMessage } from "../../common/types/responseSchemas.js";
5
4
  declare const _default: import("@pipedream/types").Source<{
6
5
  getMessageFields: typeof getMessageFields;
@@ -11,77 +10,6 @@ declare const _default: import("@pipedream/types").Source<{
11
10
  setSavedIds(data: string[]): void;
12
11
  getAndProcessData(maxResults?: number): Promise<void>;
13
12
  emitEvent(data: import("../../common/types/responseSchemas.js").TwitterEntity): void;
14
- }, {
15
- app: import("@pipedream/types").App<{
16
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
17
- _getBaseUrl(): "https://api.twitter.com/2";
18
- _httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
19
- _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
20
- addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
21
- createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
22
- deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
23
- followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
24
- getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
25
- getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").Tweet>>;
26
- getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
27
- getAuthenticatedUserId(): Promise<string>;
28
- getDirectMessages(args: GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<DirectMessage>>;
29
- getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
30
- getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
31
- getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
32
- getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
33
- getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
34
- getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
35
- getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
36
- likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
37
- getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
38
- getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
39
- retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
40
- searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").Tweet>>;
41
- sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
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
- uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
45
- }, {
46
- maxResults: {
47
- type: string;
48
- label: string;
49
- description: string;
50
- optional: boolean;
51
- };
52
- listId: {
53
- type: string;
54
- label: string;
55
- description: string;
56
- options(): Promise<{
57
- label: string;
58
- value: string;
59
- }[]>;
60
- };
61
- userNameOrId: {
62
- type: string;
63
- label: string;
64
- description: string;
65
- optional: boolean;
66
- default: string;
67
- };
68
- tweetId: {
69
- type: string;
70
- label: string;
71
- description: string;
72
- };
73
- query: {
74
- type: string;
75
- label: string;
76
- description: string;
77
- };
78
- }>;
79
- db: string;
80
- timer: {
81
- type: string;
82
- default: {
83
- intervalSeconds: number;
84
- };
85
- };
86
- }>;
13
+ getTweets(args?: {}): any;
14
+ }, any>;
87
15
  export default _default;
@@ -9,7 +9,7 @@ export default defineSource({
9
9
  key: "twitter-new-message",
10
10
  name: "New Message Received",
11
11
  description: `Emit new event when a new Direct Message (DM) is received [See the documentation](${DOCS_LINK})`,
12
- version: "1.0.1",
12
+ version: "1.0.2",
13
13
  type: "source",
14
14
  methods: {
15
15
  ...common.methods,
@@ -1,6 +1,5 @@
1
1
  import { getTweetSummary as getItemSummary } from "../common/getItemSummary.js";
2
2
  import { getTweetFields } from "../../common/methods.js";
3
- import { GetListTweetsParams } from "../../common/types/requestParams.js";
4
3
  import { Tweet } from "../../common/types/responseSchemas.js";
5
4
  declare const _default: import("@pipedream/types").Source<{
6
5
  getTweetFields: typeof getTweetFields;
@@ -11,143 +10,6 @@ declare const _default: import("@pipedream/types").Source<{
11
10
  setSavedIds(data: string[]): void;
12
11
  getAndProcessData(maxResults?: number): Promise<void>;
13
12
  emitEvent(data: import("../../common/types/responseSchemas.js").TwitterEntity): void;
14
- }, {
15
- listId: {
16
- propDefinition: (string | import("@pipedream/types").App<{
17
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
18
- _getBaseUrl(): "https://api.twitter.com/2";
19
- _httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
20
- _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
21
- addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
22
- createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
23
- deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
24
- followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
25
- getListTweets({ listId, ...args }: GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<Tweet>>;
26
- getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<Tweet>>;
27
- getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
28
- getAuthenticatedUserId(): Promise<string>;
29
- getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
30
- getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<Tweet>>;
31
- getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
32
- getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
33
- getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<Tweet>>;
34
- getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<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<Tweet>>;
42
- sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
43
- unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
44
- unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
45
- uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
46
- }, {
47
- maxResults: {
48
- type: string;
49
- label: string;
50
- description: string;
51
- optional: boolean;
52
- };
53
- listId: {
54
- type: string;
55
- label: string;
56
- description: string;
57
- options(): Promise<{
58
- label: string;
59
- value: string;
60
- }[]>;
61
- };
62
- userNameOrId: {
63
- type: string;
64
- label: string;
65
- description: string;
66
- optional: boolean;
67
- default: string;
68
- };
69
- tweetId: {
70
- type: string;
71
- label: string;
72
- description: string;
73
- };
74
- query: {
75
- type: string;
76
- label: string;
77
- description: string;
78
- };
79
- }>)[];
80
- };
81
- app: import("@pipedream/types").App<{
82
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
83
- _getBaseUrl(): "https://api.twitter.com/2";
84
- _httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
85
- _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").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 }: GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<Tweet>>;
91
- getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<Tweet>>;
92
- getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
93
- getAuthenticatedUserId(): Promise<string>;
94
- getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
95
- getUserLikedTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<Tweet>>;
96
- getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
97
- getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
98
- getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<Tweet>>;
99
- getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<Tweet>>;
100
- getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
101
- getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").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").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
104
- getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
105
- retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
106
- searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<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
- db: string;
146
- timer: {
147
- type: string;
148
- default: {
149
- intervalSeconds: number;
150
- };
151
- };
152
- }>;
13
+ getTweets(args?: {}): any;
14
+ }, any>;
153
15
  export default _default;
@@ -1,4 +1,3 @@
1
- import app from "../../app/twitter.app.mjs";
2
1
  import { defineSource } from "@pipedream/types";
3
2
  import common from "../common/base.mjs";
4
3
  import { getTweetSummary as getItemSummary } from "../common/getItemSummary.mjs";
@@ -9,13 +8,13 @@ export default defineSource({
9
8
  key: "twitter-new-tweet-in-list",
10
9
  name: "New Tweet Posted in List",
11
10
  description: `Emit new event when a Tweet is posted in the specified list [See the documentation](${DOCS_LINK})`,
12
- version: "2.0.3",
11
+ version: "2.0.4",
13
12
  type: "source",
14
13
  props: {
15
14
  ...common.props,
16
15
  listId: {
17
16
  propDefinition: [
18
- app,
17
+ common.props.app,
19
18
  "listId",
20
19
  ],
21
20
  },
@@ -1,6 +1,5 @@
1
1
  import { getTweetSummary as getItemSummary } from "../common/getItemSummary.js";
2
2
  import { getTweetFields } from "../../common/methods.js";
3
- import { GetUserLikedTweetParams } from "../../common/types/requestParams.js";
4
3
  import { Tweet } from "../../common/types/responseSchemas.js";
5
4
  declare const _default: import("@pipedream/types").Source<{
6
5
  getTweetFields: typeof getTweetFields;
@@ -13,143 +12,6 @@ declare const _default: import("@pipedream/types").Source<{
13
12
  setSavedIds(data: string[]): void;
14
13
  getAndProcessData(maxResults?: number): Promise<void>;
15
14
  emitEvent(data: import("../../common/types/responseSchemas.js").TwitterEntity): void;
16
- }, {
17
- userNameOrId: {
18
- propDefinition: (string | import("@pipedream/types").App<{
19
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
20
- _getBaseUrl(): "https://api.twitter.com/2";
21
- _httpRequest({ $, specialAuth, ...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<Tweet>>;
28
- getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<Tweet>>;
29
- getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
30
- getAuthenticatedUserId(): Promise<string>;
31
- getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
32
- getUserLikedTweets({ userId, ...args }: GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<Tweet>>;
33
- getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
34
- getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
35
- getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<Tweet>>;
36
- getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<Tweet>>;
37
- getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
38
- getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
39
- likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
40
- getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
41
- getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
42
- retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
43
- searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<Tweet>>;
44
- sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
45
- unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
46
- unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
47
- uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
48
- }, {
49
- maxResults: {
50
- type: string;
51
- label: string;
52
- description: string;
53
- optional: boolean;
54
- };
55
- listId: {
56
- type: string;
57
- label: string;
58
- description: string;
59
- options(): Promise<{
60
- label: string;
61
- value: string;
62
- }[]>;
63
- };
64
- userNameOrId: {
65
- type: string;
66
- label: string;
67
- description: string;
68
- optional: boolean;
69
- default: string;
70
- };
71
- tweetId: {
72
- type: string;
73
- label: string;
74
- description: string;
75
- };
76
- query: {
77
- type: string;
78
- label: string;
79
- description: string;
80
- };
81
- }>)[];
82
- };
83
- app: import("@pipedream/types").App<{
84
- _getAuthHeader(config: import("../../common/types/requestParams.js").HttpRequestParams): import("oauth-1.0a").Header;
85
- _getBaseUrl(): "https://api.twitter.com/2";
86
- _httpRequest({ $, specialAuth, ...args }: import("../../common/types/requestParams.js").HttpRequestParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
87
- _paginatedRequest({ maxResults, maxPerPage, params, ...args }: import("../../common/types/requestParams.js").PaginatedRequestParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").TwitterEntity>>;
88
- addUserToList({ listId, ...args }: import("../../common/types/requestParams.js").AddUserToListParams): Promise<object>;
89
- createTweet(args: import("../../common/types/requestParams.js").CreateTweetParams): Promise<object>;
90
- deleteTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").DeleteTweetParams): Promise<object>;
91
- followUser(args: import("../../common/types/requestParams.js").FollowUserParams): Promise<object>;
92
- getListTweets({ listId, ...args }: import("../../common/types/requestParams.js").GetListTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<Tweet>>;
93
- getTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").GetTweetParams): Promise<import("../../common/types/responseSchemas").ResponseObject<Tweet>>;
94
- getAuthenticatedUser(args: import("../../common/types/requestParams.js").GetAuthenticatedUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
95
- getAuthenticatedUserId(): Promise<string>;
96
- getDirectMessages(args: import("../../common/types/requestParams.js").GetDirectMessagesParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").DirectMessage>>;
97
- getUserLikedTweets({ userId, ...args }: GetUserLikedTweetParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<Tweet>>;
98
- getUserOwnedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserOwnedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
99
- getUserFollowedLists({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowedListsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").List>>;
100
- getUserMentions({ userId, ...args }: import("../../common/types/requestParams.js").GetUserMentionsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<Tweet>>;
101
- getUserTweets({ userId, ...args }: import("../../common/types/requestParams.js").GetUserTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<Tweet>>;
102
- getUserByUsername(username: string): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
103
- getUser({ userId, ...args }: import("../../common/types/requestParams.js").GetUserParams): Promise<import("../../common/types/responseSchemas").ResponseObject<import("../../common/types/responseSchemas").User>>;
104
- likeTweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
105
- getUserFollowers({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
106
- getUserFollowing({ userId, ...args }: import("../../common/types/requestParams.js").GetUserFollowersParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<import("../../common/types/responseSchemas").User>>;
107
- retweet(args: import("../../common/types/requestParams.js").LikeTweetParams): Promise<object>;
108
- searchTweets(args: import("../../common/types/requestParams.js").SearchTweetsParams): Promise<import("../../common/types/responseSchemas").PaginatedResponseObject<Tweet>>;
109
- sendMessage({ userId, ...args }: import("../../common/types/requestParams.js").SendMessageParams): Promise<object>;
110
- unfollowUser({ userId, ...args }: import("../../common/types/requestParams.js").UnfollowUserParams): Promise<object>;
111
- unlikeTweet({ tweetId, ...args }: import("../../common/types/requestParams.js").UnlikeTweetParams): Promise<object>;
112
- uploadMedia(args: import("../../common/types/requestParams.js").UploadMediaParams): Promise<object>;
113
- }, {
114
- maxResults: {
115
- type: string;
116
- label: string;
117
- description: string;
118
- optional: boolean;
119
- };
120
- listId: {
121
- type: string;
122
- label: string;
123
- description: string;
124
- options(): Promise<{
125
- label: string;
126
- value: string;
127
- }[]>;
128
- };
129
- userNameOrId: {
130
- type: string;
131
- label: string;
132
- description: string;
133
- optional: boolean;
134
- default: string;
135
- };
136
- tweetId: {
137
- type: string;
138
- label: string;
139
- description: string;
140
- };
141
- query: {
142
- type: string;
143
- label: string;
144
- description: string;
145
- };
146
- }>;
147
- db: string;
148
- timer: {
149
- type: string;
150
- default: {
151
- intervalSeconds: number;
152
- };
153
- };
154
- }>;
15
+ getTweets(args?: {}): any;
16
+ }, any>;
155
17
  export default _default;
@@ -1,4 +1,3 @@
1
- import app from "../../app/twitter.app.mjs";
2
1
  import { defineSource } from "@pipedream/types";
3
2
  import common from "../common/base.mjs";
4
3
  import { getTweetSummary as getItemSummary } from "../common/getItemSummary.mjs";
@@ -10,13 +9,13 @@ export default defineSource({
10
9
  key: "twitter-new-tweet-liked-by-user",
11
10
  name: "New Tweet Liked by User",
12
11
  description: `Emit new event when a Tweet is liked by the specified User [See the documentation](${DOCS_LINK})`,
13
- version: "2.0.3",
12
+ version: "2.0.4",
14
13
  type: "source",
15
14
  props: {
16
15
  ...common.props,
17
16
  userNameOrId: {
18
17
  propDefinition: [
19
- app,
18
+ common.props.app,
20
19
  "userNameOrId",
21
20
  ],
22
21
  },