diff --git a/components/basecamp/actions/create-campfire-chatbot-message/create-campfire-chatbot-message.mjs b/components/basecamp/actions/create-campfire-chatbot-message/create-campfire-chatbot-message.mjs index 5d0a5033dd4dd..a6d2602132b18 100644 --- a/components/basecamp/actions/create-campfire-chatbot-message/create-campfire-chatbot-message.mjs +++ b/components/basecamp/actions/create-campfire-chatbot-message/create-campfire-chatbot-message.mjs @@ -1,28 +1,14 @@ import app from "../../basecamp.app.mjs"; +import common from "../../common/common.mjs"; export default { key: "basecamp-create-campfire-chatbot-message", name: "Create Campfire Chatbot Message", - description: "Creates a line in the Campfire for a Basecamp Chatbot. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/chatbots.md#create-a-line)", + description: "Creates a message in a Campfire for a Basecamp Chatbot. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/chatbots.md#create-a-line)", type: "action", - version: "0.0.3", + version: "0.0.4", props: { - app, - accountId: { - propDefinition: [ - app, - "accountId", - ], - }, - projectId: { - propDefinition: [ - app, - "projectId", - ({ accountId }) => ({ - accountId, - }), - ], - }, + ...common.props, campfireId: { propDefinition: [ app, @@ -54,7 +40,7 @@ export default { content: { type: "string", label: "Content", - description: "The plain text body for the Campfire line.", + description: "The plain text body for the Campfire message.", }, }, async run({ $ }) { @@ -84,7 +70,9 @@ export default { }, }); - $.export("$summary", "Successfully posted campfire chatbot message."); - return message; + $.export("$summary", "Successfully posted campfire chatbot message"); + return message ?? { + content, + }; }, }; diff --git a/components/basecamp/actions/create-campfire-message/create-campfire-message.mjs b/components/basecamp/actions/create-campfire-message/create-campfire-message.mjs index 8e7822858ad7f..7eaba8634f5a5 100644 --- a/components/basecamp/actions/create-campfire-message/create-campfire-message.mjs +++ b/components/basecamp/actions/create-campfire-message/create-campfire-message.mjs @@ -1,28 +1,14 @@ import app from "../../basecamp.app.mjs"; +import common from "../../common/common.mjs"; export default { key: "basecamp-create-campfire-message", name: "Create Campfire Message", - description: "Creates a line in the Campfire for the selected project. [See the docs here](https://github.com/basecamp/bc3-api/blob/master/sections/campfires.md#create-a-campfire-line)", + description: "Creates a message in a selected Campfire. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/campfires.md#create-a-campfire-line)", type: "action", - version: "0.0.7", + version: "0.0.8", props: { - app, - accountId: { - propDefinition: [ - app, - "accountId", - ], - }, - projectId: { - propDefinition: [ - app, - "projectId", - ({ accountId }) => ({ - accountId, - }), - ], - }, + ...common.props, campfireId: { propDefinition: [ app, @@ -39,7 +25,7 @@ export default { content: { type: "string", label: "Content", - description: "The plain text body for the Campfire line.", + description: "The plain text body for the Campfire message.", }, }, async run({ $ }) { @@ -60,7 +46,7 @@ export default { }, }); - $.export("$summary", `Successfully posted campfire message with ID ${message.id}`); + $.export("$summary", `Successfully created campfire message (ID: ${message.id})`); return message; }, }; diff --git a/components/basecamp/actions/create-card/create-card.mjs b/components/basecamp/actions/create-card/create-card.mjs index 5cd5933a136db..353e06e7a138d 100644 --- a/components/basecamp/actions/create-card/create-card.mjs +++ b/components/basecamp/actions/create-card/create-card.mjs @@ -1,28 +1,14 @@ import app from "../../basecamp.app.mjs"; +import common from "../../common/common.mjs"; export default { key: "basecamp-create-card", name: "Create a Card", - description: "Creates a card in the select column. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/card_table_cards.md#create-a-card)", + description: "Creates a card in a selected column. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/card_table_cards.md#create-a-card)", type: "action", - version: "0.1.0", + version: "0.1.1", props: { - app, - accountId: { - propDefinition: [ - app, - "accountId", - ], - }, - projectId: { - propDefinition: [ - app, - "projectId", - ({ accountId }) => ({ - accountId, - }), - ], - }, + ...common.props, cardTableId: { propDefinition: [ app, @@ -51,25 +37,26 @@ export default { title: { type: "string", label: "Title", - description: "Title of the card", + description: "The title of the new card.", }, content: { type: "string", label: "Content", - description: "Content of the card", + description: "The content of the card. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/card_table_cards.md#create-a-card) for information on using HTML tags.", optional: true, }, dueOn: { type: "string", - label: "Due on", - description: "Due date (ISO 8601) of the card, e.g.: `2023-12-12`", + label: "Due On", + description: "The due date of the card, in `YYYY-MM-DD` format.", optional: true, }, notify: { type: "boolean", - label: "Notify", - description: "Whether to notify assignees. Defaults to false", + label: "Notify Assignees", + description: "Whether to notify assignees.", optional: true, + default: false, }, }, async run({ $ }) { @@ -96,7 +83,7 @@ export default { }, }); - $.export("$summary", `Successfully created card with ID ${card.id}`); + $.export("$summary", `Successfully created card (ID: ${card.id})`); return card; }, }; diff --git a/components/basecamp/actions/create-comment/create-comment.mjs b/components/basecamp/actions/create-comment/create-comment.mjs index ffc7620b0a7bd..721ed21a1c789 100644 --- a/components/basecamp/actions/create-comment/create-comment.mjs +++ b/components/basecamp/actions/create-comment/create-comment.mjs @@ -1,60 +1,96 @@ import app from "../../basecamp.app.mjs"; +import common from "../../common/common.mjs"; export default { key: "basecamp-create-comment", name: "Create a Comment", - description: "Publishes a comment to the select recording. [See the docs here](https://github.com/basecamp/bc3-api/blob/master/sections/comments.md#create-a-comment)", + description: "Creates a comment in a selected recording. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/comments.md#create-a-comment)", type: "action", - version: "0.0.7", + version: "0.1.0", props: { - app, - accountId: { + ...common.props, + recordingTypeAlert: { + type: "alert", + alertType: "info", + content: `You can select either a **Recording** (by selecting the recording type) or a **Card** (by selecting the card table and column) to create the comment on. +\\ +If both are specified, the **Card** will take precedence.`, + }, + recordingType: { propDefinition: [ app, - "accountId", + "recordingType", ], + optional: true, }, - projectId: { + recordingId: { propDefinition: [ app, - "projectId", - ({ accountId }) => ({ + "recordingId", + ({ accountId, + projectId, + recordingType, + }) => ({ + accountId, + projectId, + recordingType, }), ], + optional: true, }, - recordingType: { + cardTableId: { propDefinition: [ app, - "recordingType", + "cardTableId", + ({ + accountId, projectId, + }) => ({ + accountId, + projectId, + }), ], + optional: true, }, - recordingId: { + columnId: { propDefinition: [ app, - "recordingId", + "columnId", ({ + accountId, projectId, cardTableId, + }) => ({ accountId, projectId, - recordingType, + cardTableId, + }), + ], + optional: true, + }, + cardId: { + propDefinition: [ + app, + "cardId", + ({ + accountId, projectId, cardTableId, columnId, }) => ({ accountId, projectId, - recordingType, + cardTableId, + columnId, }), ], + optional: true, }, content: { type: "string", label: "Content", - description: "The body of the comment. See [Rich text guide](https://github.com/basecamp/bc3-api/blob/master/sections/rich_text.md) for what HTML tags are allowed.", + description: "The body of the comment. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/comments.md#create-a-comment) for information on using HTML tags.", }, }, async run({ $ }) { const { accountId, projectId, - recordingId, content, } = this; @@ -62,13 +98,13 @@ export default { $, accountId, projectId, - recordingId, + recordingId: this.cardId ?? this.recordingId, data: { content, }, }); - $.export("$summary", `Successfully posted comment with ID ${comment.id}`); + $.export("$summary", `Successfully posted comment (ID: ${comment.id})`); return comment; }, }; diff --git a/components/basecamp/actions/create-message/create-message.mjs b/components/basecamp/actions/create-message/create-message.mjs index 2e900e75248bc..8032fec26a95c 100644 --- a/components/basecamp/actions/create-message/create-message.mjs +++ b/components/basecamp/actions/create-message/create-message.mjs @@ -1,28 +1,14 @@ import app from "../../basecamp.app.mjs"; +import common from "../../common/common.mjs"; export default { key: "basecamp-create-message", name: "Create Message", - description: "Publishes a message in the project and message board selected. [See the docs here](https://github.com/basecamp/bc3-api/blob/master/sections/messages.md#create-a-message)", + description: "Creates a message in a selected message board. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/messages.md#create-a-message)", type: "action", - version: "0.0.7", + version: "0.0.8", props: { - app, - accountId: { - propDefinition: [ - app, - "accountId", - ], - }, - projectId: { - propDefinition: [ - app, - "projectId", - ({ accountId }) => ({ - accountId, - }), - ], - }, + ...common.props, messageBoardId: { propDefinition: [ app, @@ -44,7 +30,7 @@ export default { content: { type: "string", label: "Content", - description: "The body of the message. See [Rich text guide](https://github.com/basecamp/bc3-api/blob/master/sections/rich_text.md) for what HTML tags are allowed.", + description: "The body of the message. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/messages.md#create-a-message) for information on using HTML tags.", optional: true, }, messageTypeId: { @@ -85,7 +71,7 @@ export default { }, }); - $.export("$summary", `Successfully posted message with ID ${message.id}`); + $.export("$summary", `Successfully posted message (ID: ${message.id})`); return message; }, }; diff --git a/components/basecamp/actions/create-todo-item/create-todo-item.mjs b/components/basecamp/actions/create-todo-item/create-todo-item.mjs index 48eb5e112d155..823298c52f24b 100644 --- a/components/basecamp/actions/create-todo-item/create-todo-item.mjs +++ b/components/basecamp/actions/create-todo-item/create-todo-item.mjs @@ -1,28 +1,14 @@ import app from "../../basecamp.app.mjs"; +import common from "../../common/common.mjs"; export default { key: "basecamp-create-todo-item", - name: "Create Todo Item", - description: "Creates a todo in the project and message board selected. [See the docs here](https://github.com/basecamp/bc3-api/blob/master/sections/todos.md#create-a-to-do)", + name: "Create To-do Item", + description: "Creates a to-do item in a selected to-do list. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/todos.md#create-a-to-do)", type: "action", - version: "0.0.7", + version: "0.0.8", props: { - app, - accountId: { - propDefinition: [ - app, - "accountId", - ], - }, - projectId: { - propDefinition: [ - app, - "projectId", - ({ accountId }) => ({ - accountId, - }), - ], - }, + ...common.props, todoSetId: { propDefinition: [ app, @@ -53,13 +39,13 @@ export default { }, content: { type: "string", - label: "Content", - description: "The title of the todo item.", + label: "Title (Content)", + description: "The title of the to-do item.", }, description: { type: "string", label: "Description", - description: "Containing information about the to-do. See [Rich text guide](https://github.com/basecamp/bc3-api/blob/master/sections/rich_text.md) for what HTML tags are allowed.", + description: "Description of the item. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/todos.md#create-a-to-do) for information on using HTML tags.", optional: true, }, assigneeIds: { @@ -75,19 +61,19 @@ export default { }), ], label: "Assignee", - description: "An array of people that will be assigned to this to-do.", + description: "One or more people to be assigned to this item.", optional: true, }, dueOn: { type: "string", - label: "Due on", - description: "A date when the to-do should be completed. format: `yyyy-mm-dd`.", + label: "Due On", + description: "The due date when the item should be completed, in `YYYY-MM-DD` format.`", optional: true, }, startsOn: { type: "string", - label: "Starts on", - description: "Allows the to-do to run from this date to the due date. format: `yyyy-mm-dd`.", + label: "Starts On", + description: "The start date, in `YYYY-MM-DD` format. Allows the item to run from this date to the `Due Date`.", optional: true, }, }, @@ -117,7 +103,7 @@ export default { }, }); - $.export("$summary", `Successfully created todo with ID ${todo.id}`); + $.export("$summary", `Successfully created to-do (ID: ${todo.id})`); return todo; }, }; diff --git a/components/basecamp/basecamp.app.mjs b/components/basecamp/basecamp.app.mjs index 8a8e69ffa5701..28b8a48392746 100644 --- a/components/basecamp/basecamp.app.mjs +++ b/components/basecamp/basecamp.app.mjs @@ -7,8 +7,8 @@ export default { propDefinitions: { accountId: { type: "string", - label: "Account Id", - description: "The ID of the account.", + label: "Account ID", + description: "Select an account or provide an account ID.", async options() { const accounts = await this.getAccounts({}); return accounts.map(({ @@ -22,8 +22,8 @@ export default { }, projectId: { type: "string", - label: "Project Id", - description: "The ID of the project.", + label: "Project ID", + description: "Select a project or provide a project ID.", async options({ accountId, page, }) { @@ -44,8 +44,8 @@ export default { }, messageBoardId: { type: "string", - label: "Message Board Id", - description: "The ID of the message board.", + label: "Message Board ID", + description: "Select a message board or provide a message board ID.", async options({ accountId, projectId, @@ -66,8 +66,8 @@ export default { }, recordingId: { type: "string", - label: "Recording Id", - description: "The ID of the recording.", + label: "Recording ID", + description: "Select a recording or provide a recording ID.", async options({ accountId, projectId, @@ -104,7 +104,7 @@ export default { peopleIds: { type: "string[]", label: "People", - description: "An array of all people visible to the current user.", + description: "One or more people visible to the current user.", async options({ accountId, projectId, @@ -129,8 +129,8 @@ export default { }, todoSetId: { type: "string", - label: "Todo Set Id", - description: "The ID of the todo set.", + label: "To-do Set Id", + description: "Select a to-do set or provide a to-do set ID.", async options({ accountId, projectId, @@ -151,8 +151,8 @@ export default { }, campfireId: { type: "string", - label: "Campfire Id", - description: "The ID of the campfire.", + label: "Campfire ID", + description: "Select a campfire or provide a campfire ID.", async options({ accountId, projectId, @@ -173,8 +173,8 @@ export default { }, todoListId: { type: "string", - label: "Todo List Id", - description: "The ID of the todo list.", + label: "To-do List Id", + description: "The ID of the to-do list.", async options({ accountId, projectId, @@ -201,7 +201,7 @@ export default { }, messageTypeId: { type: "string", - label: "Message Types", + label: "Message Type", description: "Select a type for the message.", async options({ accountId, @@ -222,8 +222,8 @@ export default { }, cardTableId: { type: "string", - label: "Card Table Id", - description: "The card table ID", + label: "Card Table ID", + description: "Select a card table or provide a card table ID.", async options({ accountId, projectId, }) { @@ -241,8 +241,8 @@ export default { }, columnId: { type: "string", - label: "Column ID", - description: "The column ID", + label: "Card Column ID", + description: "Select a card column or provide a column ID.", async options({ accountId, projectId, cardTableId, }) { @@ -259,10 +259,30 @@ export default { })); }, }, + cardId: { + type: "string", + label: "Card ID", + description: "Select a card or provide a card ID.", + async options({ + accountId, projectId, columnId, + }) { + const cards = await this.getCards({ + accountId, + projectId, + columnId, + }); + return cards.map(({ + id: value, title: label, + }) => ({ + value, + label, + })); + }, + }, botId: { type: "string", - label: "Chat Bot ID", - description: "The ID of the chatbot to send message from", + label: "Chatbot ID", + description: "Select a chatbot to send the message from.", async options({ accountId, projectId, campfireId, }) { @@ -319,50 +339,52 @@ export default { async getProjects(args = {}) { return this.makeRequest({ path: "/projects.json", - accountId: args.accountId, ...args, }); }, - async getPeople(args = {}) { + async getPeople({ + projectId, ...args + } = {}) { return this.makeRequest({ - path: `/projects/${args.projectId}/people.json`, - accountId: args.accountId, + path: `/projects/${projectId}/people.json`, ...args, }); }, - async getMessageTypes(args = {}) { + async getMessageTypes({ + projectId, ...args + } = {}) { return this.makeRequest({ - path: `/buckets/${args.projectId}/categories.json`, - accountId: args.accountId, + path: `/buckets/${projectId}/categories.json`, ...args, }); }, - async getProject(args = {}) { + async getProject({ + projectId, ...args + } = {}) { return this.makeRequest({ - path: `/projects/${args.projectId}.json`, - accountId: args.accountId, + path: `/projects/${projectId}.json`, ...args, }); }, async getRecordings(args = {}) { return this.makeRequest({ path: "/projects/recordings.json", - accountId: args.accountId, ...args, }); }, - async getTodoLists(args = {}) { + async getTodoLists({ + projectId, todoSetId, ...args + } = {}) { return this.makeRequest({ - path: `/buckets/${args.projectId}/todosets/${args.todoSetId}/todolists.json`, - accountId: args.accountId, + path: `/buckets/${projectId}/todosets/${todoSetId}/todolists.json`, ...args, }); }, - async createMessage(args = {}) { + async createMessage({ + projectId, messageBoardId, ...args + } = {}) { return this.makeRequest({ - $: args.$, - accountId: args.accountId, - path: `/buckets/${args.projectId}/message_boards/${args.messageBoardId}/messages.json`, + path: `/buckets/${projectId}/message_boards/${messageBoardId}/messages.json`, method: "post", ...args, }); @@ -376,55 +398,56 @@ export default { ...args, }); }, - async createCampfireMessage(args = {}) { + async createCampfireMessage({ + projectId, campfireId, ...args + } = {}) { return this.makeRequest({ - $: args.$, - accountId: args.accountId, - path: `/buckets/${args.projectId}/chats/${args.campfireId}/lines.json`, + path: `/buckets/${projectId}/chats/${campfireId}/lines.json`, method: "post", ...args, }); }, - async createComment(args = {}) { + async createComment({ + projectId, recordingId, ...args + } = {}) { return this.makeRequest({ - $: args.$, - accountId: args.accountId, - path: `/buckets/${args.projectId}/recordings/${args.recordingId}/comments.json`, + path: `/buckets/${projectId}/recordings/${recordingId}/comments.json`, method: "post", ...args, }); }, - async createTodoItem(args = {}) { + async createTodoItem({ + projectId, todoListId, ...args + } = {}) { return this.makeRequest({ - $: args.$, - accountId: args.accountId, - path: `/buckets/${args.projectId}/todolists/${args.todoListId}/todos.json`, + path: `/buckets/${projectId}/todolists/${todoListId}/todos.json`, method: "post", ...args, }); }, - async createWebhook(args = {}) { + async createWebhook({ + projectId, ...args + } = {}) { return this.makeRequest({ - path: `/buckets/${args.projectId}/webhooks.json`, - accountId: args.accountId, + path: `/buckets/${projectId}/webhooks.json`, method: "post", ...args, }); }, - async deleteWebhook(args = {}) { + async deleteWebhook({ + projectId, webhookId, ...args + } = {}) { return this.makeRequest({ - path: `/buckets/${args.projectId}/webhooks/${args.webhookId}.json`, - accountId: args.accountId, + path: `/buckets/${projectId}/webhooks/${webhookId}.json`, method: "delete", ...args, }); }, getCardTable({ - accountId, projectId, cardTableId, ...args + projectId, cardTableId, ...args }) { return this.makeRequest({ path: `/buckets/${projectId}/card_tables/${cardTableId}.json`, - accountId, ...args, }); }, @@ -438,31 +461,31 @@ export default { const cardTables = dock.filter(({ name }) => name === "kanban_board"); return cardTables; }, - async getColumns({ - accountId, projectId, cardTableId, + async getColumns(args) { + const { lists } = await this.getCardTable(args); + return lists; + }, + async getCards({ + projectId, columnId, ...args }) { - const { lists } = await this.getCardTable({ - accountId, - projectId, - cardTableId: cardTableId, + return this.makeRequest({ + path: `/buckets/${projectId}/card_tables/lists/${columnId}/cards.json`, + ...args, }); - return lists; }, getChatbot({ - accountId, projectId, campfireId, botId, ...args + projectId, campfireId, botId, ...args }) { return this.makeRequest({ path: `/buckets/${projectId}/chats/${campfireId}/integrations/${botId}.json`, - accountId, ...args, }); }, listChatbots({ - accountId, projectId, campfireId, ...args + projectId, campfireId, ...args }) { return this.makeRequest({ path: `/buckets/${projectId}/chats/${campfireId}/integrations.json`, - accountId, ...args, }); }, diff --git a/components/basecamp/common/common.mjs b/components/basecamp/common/common.mjs new file mode 100644 index 0000000000000..9f085539225bd --- /dev/null +++ b/components/basecamp/common/common.mjs @@ -0,0 +1,22 @@ +import app from "../basecamp.app.mjs"; + +export default { + props: { + app, + accountId: { + propDefinition: [ + app, + "accountId", + ], + }, + projectId: { + propDefinition: [ + app, + "projectId", + ({ accountId }) => ({ + accountId, + }), + ], + }, + }, +}; diff --git a/components/basecamp/package.json b/components/basecamp/package.json index cec010c0eeee5..8a26422c19622 100644 --- a/components/basecamp/package.json +++ b/components/basecamp/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/basecamp", - "version": "0.1.5", + "version": "0.2.0", "description": "Pipedream Basecamp Components", "main": "basecamp.app.js", "keywords": [ @@ -14,6 +14,6 @@ "access": "public" }, "dependencies": { - "@pipedream/platform": "^1.2.1" + "@pipedream/platform": "^3.0.3" } } diff --git a/components/basecamp/sources/common/base.mjs b/components/basecamp/sources/common/base.mjs index 32198290098a8..d918b070a45f1 100644 --- a/components/basecamp/sources/common/base.mjs +++ b/components/basecamp/sources/common/base.mjs @@ -1,24 +1,9 @@ -import app from "../../basecamp.app.mjs"; +import common from "../../common/common.mjs"; export default { props: { - app, + ...common.props, db: "$.service.db", - accountId: { - propDefinition: [ - app, - "accountId", - ], - }, - projectId: { - propDefinition: [ - app, - "projectId", - ({ accountId }) => ({ - accountId, - }), - ], - }, }, methods: { getWebhookTypes() { diff --git a/components/basecamp/sources/new-comment-created/new-comment-created.mjs b/components/basecamp/sources/new-comment-created/new-comment-created.mjs index 01c8ef97d68fb..f08766258c687 100644 --- a/components/basecamp/sources/new-comment-created/new-comment-created.mjs +++ b/components/basecamp/sources/new-comment-created/new-comment-created.mjs @@ -4,8 +4,8 @@ export default { ...common, key: "basecamp-new-comment-created", name: "New Comment Created (Instant)", - description: "Emit new event when a comment is created. [See the docs here](https://github.com/basecamp/bc3-api/blob/master/sections/webhooks.md#create-a-webhook)", - version: "0.0.7", + description: "Emit new event when a comment is created. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/webhooks.md#webhooks)", + version: "0.0.8", dedupe: "unique", type: "source", methods: { diff --git a/components/basecamp/sources/new-event-by-webhook-type/new-event-by-webhook-type.mjs b/components/basecamp/sources/new-event-by-webhook-type/new-event-by-webhook-type.mjs index 5629e6e535470..051152ac4862f 100644 --- a/components/basecamp/sources/new-event-by-webhook-type/new-event-by-webhook-type.mjs +++ b/components/basecamp/sources/new-event-by-webhook-type/new-event-by-webhook-type.mjs @@ -4,17 +4,17 @@ import common from "../common/webhook.mjs"; export default { ...common, key: "basecamp-new-event-by-webhook-type", - name: "New Event By Webhook Type (Instant)", - description: "Emit new event based on the selected webhook type. [See the docs here](https://github.com/basecamp/bc3-api/blob/master/sections/webhooks.md#create-a-webhook)", - version: "0.0.7", + name: "New Webhook Event (Instant)", + description: "Emit events of one or more selected types. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/webhooks.md#webhooks)", + version: "0.0.8", dedupe: "unique", type: "source", props: { ...common.props, webhookTypes: { type: "string[]", - label: "Webhook Types", - description: "Select types of webhook for listening.", + label: "Event Types", + description: "Select the types of events to be emitted. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/webhooks.md#webhooks) for more information.", options: constants.WEBHOOK_TYPE_OPTS, }, }, diff --git a/components/basecamp/sources/new-message-created/new-message-created.mjs b/components/basecamp/sources/new-message-created/new-message-created.mjs index 67a104dc9e323..d3dbab19d20f3 100644 --- a/components/basecamp/sources/new-message-created/new-message-created.mjs +++ b/components/basecamp/sources/new-message-created/new-message-created.mjs @@ -4,8 +4,8 @@ export default { ...common, key: "basecamp-new-message-created", name: "New Message Created (Instant)", - description: "Emit new event when a message is created. [See the docs here](https://github.com/basecamp/bc3-api/blob/master/sections/webhooks.md#create-a-webhook)", - version: "0.0.7", + description: "Emit new event when a message is created. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/webhooks.md#webhooks)", + version: "0.0.8", dedupe: "unique", type: "source", methods: { diff --git a/components/basecamp/sources/new-to-do-item-created/new-to-do-item-created.mjs b/components/basecamp/sources/new-to-do-item-created/new-to-do-item-created.mjs index 24e11bf18aea0..ad7d4c1754d99 100644 --- a/components/basecamp/sources/new-to-do-item-created/new-to-do-item-created.mjs +++ b/components/basecamp/sources/new-to-do-item-created/new-to-do-item-created.mjs @@ -4,8 +4,8 @@ export default { ...common, key: "basecamp-new-to-do-item-created", name: "New To-Do Item Created (Instant)", - description: "Emit new event when a to-do item is created. [See the docs here](https://github.com/basecamp/bc3-api/blob/master/sections/webhooks.md#create-a-webhook)", - version: "0.0.7", + description: "Emit new event when a to-do item is created. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/webhooks.md#webhooks)", + version: "0.0.8", dedupe: "unique", type: "source", methods: { diff --git a/components/basecamp/sources/new-to-do-item-status/new-to-do-item-status.mjs b/components/basecamp/sources/new-to-do-item-status/new-to-do-item-status.mjs index d37bc9304bbd0..390bb291f0b75 100644 --- a/components/basecamp/sources/new-to-do-item-status/new-to-do-item-status.mjs +++ b/components/basecamp/sources/new-to-do-item-status/new-to-do-item-status.mjs @@ -3,9 +3,9 @@ import common from "../common/webhook.mjs"; export default { ...common, key: "basecamp-new-to-do-item-status", - name: "New To-Do Item Status (Instant)", - description: "Emit new event when a to-do item status changes. [See the docs here](https://github.com/basecamp/bc3-api/blob/master/sections/webhooks.md#create-a-webhook)", - version: "0.0.7", + name: "To-Do Item Completed Or Uncompleted (Instant)", + description: "Emit new event when a to-do item's status changes. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/webhooks.md#webhooks)", + version: "0.0.8", dedupe: "unique", type: "source", methods: { diff --git a/components/basecamp/sources/new-to-do-list-created/new-to-do-list-created.mjs b/components/basecamp/sources/new-to-do-list-created/new-to-do-list-created.mjs index 392a32904b61d..2658c79e8d54a 100644 --- a/components/basecamp/sources/new-to-do-list-created/new-to-do-list-created.mjs +++ b/components/basecamp/sources/new-to-do-list-created/new-to-do-list-created.mjs @@ -4,8 +4,8 @@ export default { ...common, key: "basecamp-new-to-do-list-created", name: "New To-Do List Created (Instant)", - description: "Emit new event when a to-do list is created. [See the docs here](https://github.com/basecamp/bc3-api/blob/master/sections/webhooks.md#create-a-webhook)", - version: "0.0.7", + description: "Emit new event when a to-do list is created. [See the documentation](https://github.com/basecamp/bc3-api/blob/master/sections/webhooks.md#webhooks)", + version: "0.0.8", dedupe: "unique", type: "source", methods: { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 67ab77f9a8d34..ba71ead05668a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1048,8 +1048,8 @@ importers: components/basecamp: dependencies: '@pipedream/platform': - specifier: ^1.2.1 - version: 1.6.6 + specifier: ^3.0.3 + version: 3.0.3 components/baselinker: dependencies: @@ -24744,22 +24744,22 @@ packages: superagent@3.8.1: resolution: {integrity: sha512-VMBFLYgFuRdfeNQSMLbxGSLfmXL/xc+OO+BZp41Za/NRDBet/BNbkRJrYzCUu0u4GU0i/ml2dtT8b9qgkw9z6Q==} engines: {node: '>= 4.0'} - deprecated: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at . + 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 v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at . + 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 v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at . + 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 downgrade to v7.1.5 if you need IE/ActiveXObject support OR upgrade to v8.0.0 as we no longer support IE and published an incorrect patch version (see https://github.com/visionmedia/superagent/issues/1731) + 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==}