diff --git a/components/trello/actions/add-attachment-to-card/add-attachment-to-card.mjs b/components/trello/actions/add-attachment-to-card/add-attachment-to-card.mjs index b701e4f5cf203..58c961420c846 100644 --- a/components/trello/actions/add-attachment-to-card/add-attachment-to-card.mjs +++ b/components/trello/actions/add-attachment-to-card/add-attachment-to-card.mjs @@ -6,7 +6,7 @@ export default { key: "trello-add-attachment-to-card", name: "Add Attachment To Card", description: "Adds a file attachment on a card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-attachments-post)", - version: "1.0.2", + version: "1.0.3", type: "action", props: { app, diff --git a/components/trello/actions/add-checklist/add-checklist.mjs b/components/trello/actions/add-checklist/add-checklist.mjs index 0717e27558b93..36544285197e4 100644 --- a/components/trello/actions/add-checklist/add-checklist.mjs +++ b/components/trello/actions/add-checklist/add-checklist.mjs @@ -4,7 +4,7 @@ export default { key: "trello-add-checklist", name: "Add Checklist", description: "Adds a new checklist to a card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-checklists-post).", - version: "0.2.2", + version: "0.2.3", type: "action", props: { app, diff --git a/components/trello/actions/add-comment/add-comment.mjs b/components/trello/actions/add-comment/add-comment.mjs index ef02b9b19aca0..597c1956d8dcb 100644 --- a/components/trello/actions/add-comment/add-comment.mjs +++ b/components/trello/actions/add-comment/add-comment.mjs @@ -4,7 +4,7 @@ export default { key: "trello-add-comment", name: "Add Comment", description: "Create a new comment on a specific card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-actions-comments-post).", - version: "0.2.2", + version: "0.2.3", type: "action", props: { app, diff --git a/components/trello/actions/add-existing-label-to-card/add-existing-label-to-card.mjs b/components/trello/actions/add-existing-label-to-card/add-existing-label-to-card.mjs index 5db6e36ca2ee7..1dbd38647415a 100644 --- a/components/trello/actions/add-existing-label-to-card/add-existing-label-to-card.mjs +++ b/components/trello/actions/add-existing-label-to-card/add-existing-label-to-card.mjs @@ -4,7 +4,7 @@ export default { key: "trello-add-existing-label-to-card", name: "Add Existing Label to Card", description: "Adds an existing label to the specified card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-idlabels-post).", - version: "0.1.2", + version: "0.1.3", type: "action", props: { app, diff --git a/components/trello/actions/add-member-to-card/add-member-to-card.mjs b/components/trello/actions/add-member-to-card/add-member-to-card.mjs index c07a36bc4cca8..ee39f93dc58cb 100644 --- a/components/trello/actions/add-member-to-card/add-member-to-card.mjs +++ b/components/trello/actions/add-member-to-card/add-member-to-card.mjs @@ -4,7 +4,7 @@ export default { key: "trello-add-member-to-card", name: "Add Member to Card", description: "Adds a member to the specified card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-idmembers-post).", - version: "0.2.2", + version: "0.2.3", type: "action", props: { app, diff --git a/components/trello/actions/archive-card/archive-card.mjs b/components/trello/actions/archive-card/archive-card.mjs index 92ab878c61353..568d375b1d397 100644 --- a/components/trello/actions/archive-card/archive-card.mjs +++ b/components/trello/actions/archive-card/archive-card.mjs @@ -4,7 +4,7 @@ export default { key: "trello-archive-card", name: "Archive Card", description: "Archives a card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-put).", - version: "0.2.2", + version: "0.2.3", type: "action", props: { app, diff --git a/components/trello/actions/complete-checklist-item/complete-checklist-item.mjs b/components/trello/actions/complete-checklist-item/complete-checklist-item.mjs index fc29f3c8f1e66..0517a37bc31e4 100644 --- a/components/trello/actions/complete-checklist-item/complete-checklist-item.mjs +++ b/components/trello/actions/complete-checklist-item/complete-checklist-item.mjs @@ -4,7 +4,7 @@ export default { key: "trello-complete-checklist-item", name: "Complete a Checklist Item", description: "Completes an existing checklist item in a card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-checkitem-idcheckitem-put).", - version: "0.2.2", + version: "0.2.3", type: "action", props: { app, diff --git a/components/trello/actions/create-board/create-board.mjs b/components/trello/actions/create-board/create-board.mjs index ab7c5c21c15ef..ea03fb80d5af6 100644 --- a/components/trello/actions/create-board/create-board.mjs +++ b/components/trello/actions/create-board/create-board.mjs @@ -5,7 +5,7 @@ export default { key: "trello-create-board", name: "Create a Board", description: "Create a new Trello board or copy from an existing one. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-post).", - version: "0.2.2", + version: "0.2.3", type: "action", props: { app, diff --git a/components/trello/actions/create-card/create-card.mjs b/components/trello/actions/create-card/create-card.mjs index 7958055a9cdfc..5a85d7644ef25 100644 --- a/components/trello/actions/create-card/create-card.mjs +++ b/components/trello/actions/create-card/create-card.mjs @@ -7,7 +7,7 @@ export default { key: "trello-create-card", name: "Create Card", description: "Creates a new card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-post).", - version: "1.0.2", + version: "1.0.3", type: "action", props: { app, diff --git a/components/trello/actions/create-checklist-item/create-checklist-item.mjs b/components/trello/actions/create-checklist-item/create-checklist-item.mjs index ec41de4091a22..aa2b0102fafdf 100644 --- a/components/trello/actions/create-checklist-item/create-checklist-item.mjs +++ b/components/trello/actions/create-checklist-item/create-checklist-item.mjs @@ -5,7 +5,7 @@ export default { key: "trello-create-checklist-item", name: "Create a Checklist Item", description: "Creates a new checklist item in a card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-checklists/#api-checklists-id-checkitems-post).", - version: "0.3.0", + version: "0.3.1", type: "action", props: { app, diff --git a/components/trello/actions/create-label/create-label.mjs b/components/trello/actions/create-label/create-label.mjs index 3cbec94bad26d..b19b80da65918 100644 --- a/components/trello/actions/create-label/create-label.mjs +++ b/components/trello/actions/create-label/create-label.mjs @@ -5,7 +5,7 @@ export default { key: "trello-create-label", name: "Create Label", description: "Creates a new label on the specified board. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-labels/#api-labels-post).", - version: "0.2.2", + version: "0.2.3", type: "action", props: { app, diff --git a/components/trello/actions/create-list/create-list.mjs b/components/trello/actions/create-list/create-list.mjs index cd8326fabbeaa..40494000162f0 100644 --- a/components/trello/actions/create-list/create-list.mjs +++ b/components/trello/actions/create-list/create-list.mjs @@ -4,7 +4,7 @@ export default { key: "trello-create-list", name: "Create a List", description: "Creates a new list. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-lists/#api-lists-post).", - version: "0.2.2", + version: "0.2.3", type: "action", props: { app, diff --git a/components/trello/actions/delete-checklist/delete-checklist.mjs b/components/trello/actions/delete-checklist/delete-checklist.mjs index c305fa21516fa..5bcd34c1dbd2f 100644 --- a/components/trello/actions/delete-checklist/delete-checklist.mjs +++ b/components/trello/actions/delete-checklist/delete-checklist.mjs @@ -4,7 +4,7 @@ export default { key: "trello-delete-checklist", name: "Delete Checklist", description: "Deletes the specified checklist. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-checklists/#api-checklists-id-delete).", - version: "0.2.2", + version: "0.2.3", type: "action", props: { app, diff --git a/components/trello/actions/find-labels/find-labels.mjs b/components/trello/actions/find-labels/find-labels.mjs index a14f3e9353c65..23f0cb19e6c55 100644 --- a/components/trello/actions/find-labels/find-labels.mjs +++ b/components/trello/actions/find-labels/find-labels.mjs @@ -5,7 +5,7 @@ export default { key: "trello-find-labels", name: "Find a Label", description: "Finds a label on a specific board by name. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-id-labels-get)", - version: "0.2.2", + version: "0.2.3", type: "action", props: { ...common.props, diff --git a/components/trello/actions/find-list/find-list.mjs b/components/trello/actions/find-list/find-list.mjs index 6fc3b1c883682..59e00ad544349 100644 --- a/components/trello/actions/find-list/find-list.mjs +++ b/components/trello/actions/find-list/find-list.mjs @@ -5,7 +5,7 @@ export default { key: "trello-find-list", name: "Find a List", description: "Finds a list on a specific board by name. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-id-lists-get).", - version: "0.2.2", + version: "0.2.3", type: "action", props: { ...common.props, diff --git a/components/trello/actions/get-board/get-board.mjs b/components/trello/actions/get-board/get-board.mjs new file mode 100644 index 0000000000000..d8483c3c34afe --- /dev/null +++ b/components/trello/actions/get-board/get-board.mjs @@ -0,0 +1,173 @@ +import common from "../common/common.mjs"; +import fields from "../../common/fields.mjs"; + +export default { + ...common, + key: "trello-get-board", + name: "Get Board", + description: "Request a single board. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-id-get).", + version: "0.0.1", + type: "action", + props: { + ...common.props, + boardId: { + propDefinition: [ + common.props.app, + "board", + ], + label: "Board ID", + description: "The ID of the board to retrieve", + }, + actions: { + propDefinition: [ + common.props.app, + "actions", + ], + }, + boardStars: { + type: "string", + label: "Board Stars", + description: "Valid values are one of: `mine` or `none`. Default is `none`.", + options: [ + "mine", + "none", + ], + optional: true, + }, + cardPluginData: { + type: "boolean", + label: "Card Plugin Data", + description: "Use with the cards param to include card pluginData with the response. Default is `none`.", + optional: true, + }, + customFields: { + type: "boolean", + label: "Custom Fields", + description: "This is a nested resource. Include custom fields in the response.", + default: false, + optional: true, + }, + fields: { + type: "string[]", + label: "Fields", + description: "The fields of the board to be included in the response. Valid values: all or a comma-separated list of specific fields.", + options: fields.board, + optional: true, + }, + labels: { + type: "string", + label: "Labels", + description: "This is a nested resource. Specify what labels to include in the response. One of: `all` or `none`", + optional: true, + options: [ + "all", + "none", + ], + }, + lists: { + type: "string", + label: "Lists", + description: "This is a nested resource. Specify what lists to include in the response.", + optional: true, + options: [ + "all", + "closed", + "none", + "open", + ], + }, + members: { + type: "string", + label: "Members", + description: "This is a nested resource. Specify what members to include in the response.", + optional: true, + options: [ + "none", + "normal", + "admins", + "owners", + "all", + ], + }, + pluginData: { + type: "boolean", + label: "Plugin Data", + description: "Determines whether the pluginData for this board should be returned.", + optional: true, + }, + organization: { + type: "boolean", + label: "Organization", + description: "This is a nested resource. Include organization information in the response.", + optional: true, + }, + organizationPluginData: { + type: "boolean", + label: "Organization Plugin Data", + description: "Use with the organization param to include organization pluginData with the response", + optional: true, + }, + myPrefs: { + type: "boolean", + label: "My Preferences", + description: "Include the user's preferences for this board in the response.", + optional: true, + }, + tags: { + type: "boolean", + label: "Tags", + description: "Also known as collections, tags, refer to the collection(s) that a Board belongs to.", + optional: true, + }, + }, + methods: { + getCommaSeparatedString(array) { + return Array.isArray(array) + ? array.join(",") + : array; + }, + }, + async run({ $ }) { + const { + app, + getCommaSeparatedString, + boardId, + actions, + boardStars, + cardPluginData, + customFields, + fields, + labels, + lists, + members, + pluginData, + organization, + organizationPluginData, + myPrefs, + tags, + } = this; + + const response = await app.getBoard({ + $, + boardId, + params: { + actions: getCommaSeparatedString(actions), + boardStars, + card_pluginData: cardPluginData, + customFields, + fields: getCommaSeparatedString(fields), + labels: getCommaSeparatedString(labels), + lists, + members, + pluginData, + organization, + organizationPluginData, + myPrefs, + tags, + }, + }); + + $.export("$summary", `Successfully retrieved board with ID \`${response.id}\``); + return response; + }, +}; diff --git a/components/trello/actions/get-card/get-card.mjs b/components/trello/actions/get-card/get-card.mjs index e45ed15db7405..4eb0798d341e0 100644 --- a/components/trello/actions/get-card/get-card.mjs +++ b/components/trello/actions/get-card/get-card.mjs @@ -5,7 +5,7 @@ export default { key: "trello-get-card", name: "Get Card", description: "Gets a card by its ID. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-get).", - version: "0.2.2", + version: "0.2.3", type: "action", props: { ...common.props, diff --git a/components/trello/actions/get-list/get-list.mjs b/components/trello/actions/get-list/get-list.mjs index ea1baa8427955..e032dd85aba10 100644 --- a/components/trello/actions/get-list/get-list.mjs +++ b/components/trello/actions/get-list/get-list.mjs @@ -4,7 +4,7 @@ export default { key: "trello-get-list", name: "Get List", description: "Get information about a List. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-lists/#api-lists-id-get).", - version: "0.1.2", + version: "0.1.3", type: "action", props: { app, diff --git a/components/trello/actions/move-card-to-list/move-card-to-list.mjs b/components/trello/actions/move-card-to-list/move-card-to-list.mjs index e596f220fe5ff..c7f761551e3d6 100644 --- a/components/trello/actions/move-card-to-list/move-card-to-list.mjs +++ b/components/trello/actions/move-card-to-list/move-card-to-list.mjs @@ -5,7 +5,7 @@ export default { key: "trello-move-card-to-list", name: "Move Card to List", description: "Moves a card to the specified board/list pair. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-put).", - version: "0.2.2", + version: "0.2.3", type: "action", props: { ...common.props, diff --git a/components/trello/actions/remove-label-from-card/remove-label-from-card.mjs b/components/trello/actions/remove-label-from-card/remove-label-from-card.mjs index 58382a5e828b3..c6c12af318877 100644 --- a/components/trello/actions/remove-label-from-card/remove-label-from-card.mjs +++ b/components/trello/actions/remove-label-from-card/remove-label-from-card.mjs @@ -4,7 +4,7 @@ export default { key: "trello-remove-label-from-card", name: "Remove Card Label", description: "Removes label from card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-idlabels-idlabel-delete).", - version: "0.2.2", + version: "0.2.3", type: "action", props: { app, diff --git a/components/trello/actions/rename-list/rename-list.mjs b/components/trello/actions/rename-list/rename-list.mjs index 438ad497b0e63..19df65a4e6b65 100644 --- a/components/trello/actions/rename-list/rename-list.mjs +++ b/components/trello/actions/rename-list/rename-list.mjs @@ -5,7 +5,7 @@ export default { key: "trello-rename-list", name: "Rename List", description: "Renames an existing list. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-lists/#api-lists-id-put).", - version: "0.1.2", + version: "0.1.3", type: "action", props: { ...common.props, diff --git a/components/trello/actions/search-boards/search-boards.mjs b/components/trello/actions/search-boards/search-boards.mjs index ceec3ad352122..07f6d4efafee1 100644 --- a/components/trello/actions/search-boards/search-boards.mjs +++ b/components/trello/actions/search-boards/search-boards.mjs @@ -4,7 +4,7 @@ export default { key: "trello-search-boards", name: "Search Boards", description: "Searches for boards matching the specified query. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-search/#api-search-get).", - version: "0.3.2", + version: "0.3.3", type: "action", props: { app, diff --git a/components/trello/actions/search-cards/search-cards.mjs b/components/trello/actions/search-cards/search-cards.mjs index 52ff70d3c8a4e..260c96e4e15de 100644 --- a/components/trello/actions/search-cards/search-cards.mjs +++ b/components/trello/actions/search-cards/search-cards.mjs @@ -4,7 +4,7 @@ export default { key: "trello-search-cards", name: "Search Cards", description: "Searches for cards matching the specified query. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-search/#api-search-get).", - version: "0.2.2", + version: "0.2.3", type: "action", props: { app, diff --git a/components/trello/actions/search-checklists/search-checklists.mjs b/components/trello/actions/search-checklists/search-checklists.mjs index 300c34f8bf488..e77e4dc8ab700 100644 --- a/components/trello/actions/search-checklists/search-checklists.mjs +++ b/components/trello/actions/search-checklists/search-checklists.mjs @@ -4,7 +4,7 @@ export default { key: "trello-search-checklists", name: "Search Checklists", description: "Find a checklist on a particular board or card by name. [See the documentation here](https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-id-checklists-get) and [here](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-checklists-get).", - version: "0.2.2", + version: "0.2.3", type: "action", props: { app, diff --git a/components/trello/actions/search-members/search-members.mjs b/components/trello/actions/search-members/search-members.mjs index 0f04c1c56bd32..615ec47025949 100644 --- a/components/trello/actions/search-members/search-members.mjs +++ b/components/trello/actions/search-members/search-members.mjs @@ -4,7 +4,7 @@ export default { key: "trello-search-members", name: "Search Members", description: "Search for Trello members. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-search/#api-search-members-get).", - version: "0.2.2", + version: "0.2.3", type: "action", props: { app, diff --git a/components/trello/actions/update-card/update-card.mjs b/components/trello/actions/update-card/update-card.mjs index abb537e911612..8c88f1f4aa0b4 100644 --- a/components/trello/actions/update-card/update-card.mjs +++ b/components/trello/actions/update-card/update-card.mjs @@ -6,7 +6,7 @@ export default { key: "trello-update-card", name: "Update Card", description: "Updates a card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-put).", - version: "0.2.2", + version: "0.2.3", type: "action", props: { app, diff --git a/components/trello/package.json b/components/trello/package.json index 95c302d7923a9..4a8d7650e3949 100644 --- a/components/trello/package.json +++ b/components/trello/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/trello", - "version": "1.1.0", + "version": "1.2.0", "description": "Pipedream Trello Components", "main": "trello.app.mjs", "keywords": [ diff --git a/components/trello/sources/card-archived/card-archived.mjs b/components/trello/sources/card-archived/card-archived.mjs index 2eff193d7b4d6..567bba6d7d0a6 100644 --- a/components/trello/sources/card-archived/card-archived.mjs +++ b/components/trello/sources/card-archived/card-archived.mjs @@ -6,7 +6,7 @@ export default { key: "trello-card-archived", name: "Card Archived (Instant)", /* eslint-disable-line pipedream/source-name */ description: "Emit new event for each card archived.", - version: "0.1.2", + version: "0.1.3", type: "source", props: { ...common.props, diff --git a/components/trello/sources/card-due-date-reminder/card-due-date-reminder.mjs b/components/trello/sources/card-due-date-reminder/card-due-date-reminder.mjs index e49e6e1820e2d..9ae18d681c801 100644 --- a/components/trello/sources/card-due-date-reminder/card-due-date-reminder.mjs +++ b/components/trello/sources/card-due-date-reminder/card-due-date-reminder.mjs @@ -8,7 +8,7 @@ export default { key: "trello-card-due-date-reminder", name: "Card Due Date Reminder", /* eslint-disable-line pipedream/source-name */ description: "Emit new event at a specified time before a card is due.", - version: "0.1.2", + version: "0.1.3", type: "source", dedupe: "unique", props: { diff --git a/components/trello/sources/card-moved/card-moved.mjs b/components/trello/sources/card-moved/card-moved.mjs index 5a4edf4c8929a..78a281f23f721 100644 --- a/components/trello/sources/card-moved/card-moved.mjs +++ b/components/trello/sources/card-moved/card-moved.mjs @@ -6,7 +6,7 @@ export default { key: "trello-card-moved", name: "Card Moved (Instant)", /* eslint-disable-line pipedream/source-name */ description: "Emit new event each time a card is moved to a list.", - version: "0.1.2", + version: "0.1.3", type: "source", props: { ...common.props, diff --git a/components/trello/sources/card-updates/card-updates.mjs b/components/trello/sources/card-updates/card-updates.mjs index bb053d4f2088f..cda0612e91514 100644 --- a/components/trello/sources/card-updates/card-updates.mjs +++ b/components/trello/sources/card-updates/card-updates.mjs @@ -6,7 +6,7 @@ export default { key: "trello-card-updates", name: "Card Updated (Instant)", /* eslint-disable-line pipedream/source-name */ description: "Emit new event for each update to a Trello card.", - version: "0.1.2", + version: "0.1.3", type: "source", props: { ...common.props, diff --git a/components/trello/sources/custom-webhook-events/custom-webhook-events.mjs b/components/trello/sources/custom-webhook-events/custom-webhook-events.mjs index 6a61795381deb..4e8f5459918fc 100644 --- a/components/trello/sources/custom-webhook-events/custom-webhook-events.mjs +++ b/components/trello/sources/custom-webhook-events/custom-webhook-events.mjs @@ -6,7 +6,7 @@ export default { key: "trello-custom-webhook-events", name: "Custom Webhook Events (Instant)", /* eslint-disable-line pipedream/source-name */ description: "Emit new events for activity matching a board, event types, lists and/or cards.", - version: "0.1.2", + version: "0.1.3", type: "source", props: { ...common.props, diff --git a/components/trello/sources/new-activity/new-activity.mjs b/components/trello/sources/new-activity/new-activity.mjs index 8b30535d66b1f..ab876b9a60c7b 100644 --- a/components/trello/sources/new-activity/new-activity.mjs +++ b/components/trello/sources/new-activity/new-activity.mjs @@ -6,7 +6,7 @@ export default { key: "trello-new-activity", name: "New Board Activity (Instant)", description: "Emit new event for new activity on a board.", - version: "0.1.2", + version: "0.1.3", type: "source", props: { ...common.props, diff --git a/components/trello/sources/new-attachment/new-attachment.mjs b/components/trello/sources/new-attachment/new-attachment.mjs index 52a57a64cf60f..3c4aaae3b89eb 100644 --- a/components/trello/sources/new-attachment/new-attachment.mjs +++ b/components/trello/sources/new-attachment/new-attachment.mjs @@ -6,7 +6,7 @@ export default { key: "trello-new-attachment", name: "New Attachment (Instant)", description: "Emit new event when a new attachment is added on a board.", - version: "0.1.2", + version: "0.1.3", type: "source", props: { ...common.props, diff --git a/components/trello/sources/new-board/new-board.mjs b/components/trello/sources/new-board/new-board.mjs index 497c0a4a6b108..ec863ad6ed12e 100644 --- a/components/trello/sources/new-board/new-board.mjs +++ b/components/trello/sources/new-board/new-board.mjs @@ -6,7 +6,7 @@ export default { key: "trello-new-board", name: "New Board (Instant)", description: "Emit new event for each new board added.", - version: "0.1.2", + version: "0.1.3", type: "source", dedupe: "unique", methods: { diff --git a/components/trello/sources/new-card/new-card.mjs b/components/trello/sources/new-card/new-card.mjs index ec86190a1c7c8..3be6c2fb8da68 100644 --- a/components/trello/sources/new-card/new-card.mjs +++ b/components/trello/sources/new-card/new-card.mjs @@ -6,7 +6,7 @@ export default { key: "trello-new-card", name: "New Card (Instant)", description: "Emit new event for each new Trello card on a board.", - version: "0.1.2", + version: "0.1.3", type: "source", dedupe: "unique", props: { diff --git a/components/trello/sources/new-checklist/new-checklist.mjs b/components/trello/sources/new-checklist/new-checklist.mjs index d6c5ae95cc079..ea8ede9e3c3db 100644 --- a/components/trello/sources/new-checklist/new-checklist.mjs +++ b/components/trello/sources/new-checklist/new-checklist.mjs @@ -6,7 +6,7 @@ export default { key: "trello-new-checklist", name: "New Checklist (Instant)", description: "Emit new event for each new checklist added to a board.", - version: "0.1.2", + version: "0.1.3", type: "source", dedupe: "unique", props: { diff --git a/components/trello/sources/new-comment-added-to-card/new-comment-added-to-card.mjs b/components/trello/sources/new-comment-added-to-card/new-comment-added-to-card.mjs index 0f143a62d3575..49192170a0c9a 100644 --- a/components/trello/sources/new-comment-added-to-card/new-comment-added-to-card.mjs +++ b/components/trello/sources/new-comment-added-to-card/new-comment-added-to-card.mjs @@ -6,7 +6,7 @@ export default { key: "trello-new-comment-added-to-card", name: "New Comment Added to Card (Instant)", description: "Emit new event for each new comment added to a card.", - version: "0.2.2", + version: "0.2.3", type: "source", dedupe: "unique", props: { diff --git a/components/trello/sources/new-label-added-to-card/new-label-added-to-card.mjs b/components/trello/sources/new-label-added-to-card/new-label-added-to-card.mjs index 01a287b96bb94..a7002b25b5087 100644 --- a/components/trello/sources/new-label-added-to-card/new-label-added-to-card.mjs +++ b/components/trello/sources/new-label-added-to-card/new-label-added-to-card.mjs @@ -6,7 +6,7 @@ export default { key: "trello-new-label-added-to-card", name: "New Label Added To Card (Instant)", description: "Emit new event for each label added to a card.", - version: "0.1.2", + version: "0.1.3", type: "source", props: { ...common.props, diff --git a/components/trello/sources/new-label/new-label.mjs b/components/trello/sources/new-label/new-label.mjs index 751bc111b13d1..657ab037fba45 100644 --- a/components/trello/sources/new-label/new-label.mjs +++ b/components/trello/sources/new-label/new-label.mjs @@ -6,7 +6,7 @@ export default { key: "trello-new-label", name: "New Label Created (Instant)", description: "Emit new event for each new label added to a board.", - version: "0.1.2", + version: "0.1.3", type: "source", dedupe: "unique", methods: { diff --git a/components/trello/sources/new-member-on-card/new-member-on-card.mjs b/components/trello/sources/new-member-on-card/new-member-on-card.mjs index 7fec4ab41ae3e..be26326cf0749 100644 --- a/components/trello/sources/new-member-on-card/new-member-on-card.mjs +++ b/components/trello/sources/new-member-on-card/new-member-on-card.mjs @@ -6,7 +6,7 @@ export default { key: "trello-new-member-on-card", name: "New Member on Card (Instant)", description: "Emit new event for each member that join in a card.", - version: "0.1.2", + version: "0.1.3", type: "source", dedupe: "unique", methods: { diff --git a/components/trello/sources/new-notification/new-notification.mjs b/components/trello/sources/new-notification/new-notification.mjs index 9b4987faa31b7..20367e6d11d9b 100644 --- a/components/trello/sources/new-notification/new-notification.mjs +++ b/components/trello/sources/new-notification/new-notification.mjs @@ -5,7 +5,7 @@ export default { key: "trello-new-notification", name: "New Notification", description: "Emit new event for each new Trello notification for the authenticated user.", - version: "0.1.2", + version: "0.1.3", type: "source", dedupe: "unique", methods: { diff --git a/components/trello/trello.app.mjs b/components/trello/trello.app.mjs index 5be4e8d1edf2e..b9627633fc826 100644 --- a/components/trello/trello.app.mjs +++ b/components/trello/trello.app.mjs @@ -2,6 +2,7 @@ import { axios } from "@pipedream/platform"; import fields from "./common/fields.mjs"; import constants from "./common/constants.mjs"; import mime from "mime/types/standard.js"; +import actions from "./sources/common/actions.mjs"; export default { type: "app", @@ -338,6 +339,28 @@ export default { "url", ], }, + actions: { + type: "string[]", + label: "Actions", + description: "This is a nested resource. Specify what actions to include in the response. Default is `all`.", + optional: true, + options: actions, + }, + labels: { + type: "string[]", + label: "Labels", + description: "This is a nested resource. Specify what labels to include in the response.", + optional: true, + async options({ boardId }) { + if (!boardId) { + return []; + } + const labels = await this.findLabel({ + boardId, + }); + return labels.map(({ name }) => name); + }, + }, }, methods: { getSignerUri() { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f72e96fb68534..3d53b621aa87a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15275,8 +15275,7 @@ importers: specifier: ^1.1.1 version: 1.6.6 - components/workday: - specifiers: {} + components/workday: {} components/workflow_max: dependencies: @@ -16073,14 +16072,6 @@ importers: specifier: ^6.0.0 version: 6.2.0 - modelcontextprotocol/node_modules2/@modelcontextprotocol/sdk/dist/cjs: {} - - modelcontextprotocol/node_modules2/@modelcontextprotocol/sdk/dist/esm: {} - - modelcontextprotocol/node_modules2/zod-to-json-schema/dist/cjs: {} - - modelcontextprotocol/node_modules2/zod-to-json-schema/dist/esm: {} - packages/ai: dependencies: '@pipedream/sdk': @@ -17701,12 +17692,12 @@ packages: '@datadog/sketches-js@2.1.1': resolution: {integrity: sha512-d5RjycE+MObE/hU+8OM5Zp4VjTwiPLRa8299fj7muOmR16fb942z8byoMbCErnGh0lBevvgkGrLclQDvINbIyg==} - '@definitelytyped/header-parser@0.2.19': - resolution: {integrity: sha512-zu+RxQpUCgorYUQZoyyrRIn9CljL1CeM4qak3NDeMO1r7tjAkodfpAGnVzx/6JR2OUk0tAgwmZxNMSwd9LVgxw==} + '@definitelytyped/header-parser@0.2.20': + resolution: {integrity: sha512-97YPAlUo8XjWNtZ+6k+My+50/ljE2iX6KEPjOZ1Az1RsZdKwJ6taAX3F5g6SY1SJr50bzdm2RZzyQNdRmHcs4w==} engines: {node: '>=18.18.0'} - '@definitelytyped/typescript-versions@0.1.8': - resolution: {integrity: sha512-iz6q9aTwWW7CzN2g8jFQfZ955D63LA+wdIAKz4+2pCc/7kokmEHie1/jVWSczqLFOlmH+69bWQxIurryBP/sig==} + '@definitelytyped/typescript-versions@0.1.9': + resolution: {integrity: sha512-Qjalw9eNlcTjXhzx0Q6kHKuRCOUt/M5RGGRGKsiYlm/nveGvPX9liZSQlGXZVwyQ5I9qvq/GdaWiPchQ+ZXOrQ==} engines: {node: '>=18.18.0'} '@definitelytyped/utils@0.1.8': @@ -29697,6 +29688,7 @@ packages: source-map@0.8.0-beta.0: resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==} engines: {node: '>= 8'} + deprecated: The work that was done in this beta branch won't be included in future versions space-separated-tokens@2.0.2: resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==} @@ -30062,22 +30054,22 @@ packages: superagent@3.8.1: resolution: {integrity: sha512-VMBFLYgFuRdfeNQSMLbxGSLfmXL/xc+OO+BZp41Za/NRDBet/BNbkRJrYzCUu0u4GU0i/ml2dtT8b9qgkw9z6Q==} engines: {node: '>= 4.0'} - deprecated: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net + deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net superagent@4.1.0: resolution: {integrity: sha512-FT3QLMasz0YyCd4uIi5HNe+3t/onxMyEho7C3PSqmti3Twgy2rXT4fmkTz6wRL6bTF4uzPcfkUCa8u4JWHw8Ag==} engines: {node: '>= 6.0'} - deprecated: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net + deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net superagent@5.3.1: resolution: {integrity: sha512-wjJ/MoTid2/RuGCOFtlacyGNxN9QLMgcpYLDQlWFIhhdJ93kNscFonGvrpAHSCVjRVj++DGCglocF7Aej1KHvQ==} engines: {node: '>= 7.0.0'} - deprecated: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net + deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net superagent@7.1.6: resolution: {integrity: sha512-gZkVCQR1gy/oUXr+kxJMLDjla434KmSOKbx5iGD30Ql+AkJQ/YlPKECJy2nhqOsHLjGHzoDTXNSjhnvWhzKk7g==} engines: {node: '>=6.4.0 <13 || >=14'} - deprecated: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net + deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net supports-color@2.0.0: resolution: {integrity: sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==} @@ -34932,13 +34924,13 @@ snapshots: '@datadog/sketches-js@2.1.1': {} - '@definitelytyped/header-parser@0.2.19': + '@definitelytyped/header-parser@0.2.20': dependencies: - '@definitelytyped/typescript-versions': 0.1.8 + '@definitelytyped/typescript-versions': 0.1.9 '@definitelytyped/utils': 0.1.8 semver: 7.7.2 - '@definitelytyped/typescript-versions@0.1.8': {} + '@definitelytyped/typescript-versions@0.1.9': {} '@definitelytyped/utils@0.1.8': dependencies: @@ -37402,8 +37394,6 @@ snapshots: '@putout/operator-filesystem': 5.0.0(putout@36.13.1(eslint@8.57.1)(typescript@5.6.3)) '@putout/operator-json': 2.2.0 putout: 36.13.1(eslint@8.57.1)(typescript@5.6.3) - transitivePeerDependencies: - - supports-color '@putout/operator-regexp@1.0.0(putout@36.13.1(eslint@8.57.1)(typescript@5.6.3))': dependencies: @@ -42301,7 +42291,7 @@ snapshots: dts-critic@3.3.11(typescript@5.7.2): dependencies: - '@definitelytyped/header-parser': 0.2.19 + '@definitelytyped/header-parser': 0.2.20 command-exists: 1.2.9 rimraf: 3.0.2 semver: 6.3.1 @@ -42313,8 +42303,8 @@ snapshots: dtslint@4.2.1(typescript@5.7.2): dependencies: - '@definitelytyped/header-parser': 0.2.19 - '@definitelytyped/typescript-versions': 0.1.8 + '@definitelytyped/header-parser': 0.2.20 + '@definitelytyped/typescript-versions': 0.1.9 '@definitelytyped/utils': 0.1.8 dts-critic: 3.3.11(typescript@5.7.2) fs-extra: 6.0.1