diff --git a/components/monday/actions/common/common-create-item.mjs b/components/monday/actions/common/common-create-item.mjs index 05b41c7f2a7c6..ae99103a97049 100644 --- a/components/monday/actions/common/common-create-item.mjs +++ b/components/monday/actions/common/common-create-item.mjs @@ -1,3 +1,6 @@ +import { + capitalizeWord, getColumnOptions, +} from "../../common/utils.mjs"; import monday from "../../monday.app.mjs"; export default { @@ -11,7 +14,7 @@ export default { }), ], type: "string[]", - description: "Select columns to fill", + description: "Select which item columns to set values for", reloadProps: true, }, }, @@ -20,26 +23,32 @@ export default { if (!this.columns) { return props; } + const columnData = await this.monday.listColumns({ + boardId: +this.boardId, + }); for (const column of this.columns) { - let description; - if (column === "status") { - description = "Value for status. [Status Index Value Map](https://view.monday.com/1073554546-ad9f20a427a16e67ded630108994c11b?r=use1)"; - } else if (column === "person") { - description = "The ID of the person/user to add to item"; + let description, options; + options = getColumnOptions(columnData, column); + if (column === "person") { + description = "The ID of a person/user"; } else if (column === "date4") { - description = "Enter date of item in YYYY-MM-DD format. Eg. `2022-09-02`"; + description = "A date string in `YYYY-MM-DD` format, e.g. `2022-09-02`"; + } else if (options) { + description = `Select a value from the list for column "${column}".`; } else { - description = `Value for column ${column}. See the [Column Type Reference](https://developer.monday.com/api-reference/docs/column-types-reference) to learn more about entering column type values.`; + description = `Value for column "${column}". See the [Column Type Reference](https://developer.monday.com/api-reference/reference/column-types-reference) to learn more about entering column type values.`; } props[column] = { type: "string", - label: column, + label: capitalizeWord(column), description, + options, }; } return props; }, methods: { + capitalizeWord, getEmailValue(value) { let email = value; if (typeof value === "string") { diff --git a/components/monday/actions/create-board/create-board.mjs b/components/monday/actions/create-board/create-board.mjs index 0265b5f7e985c..50a48b120e580 100644 --- a/components/monday/actions/create-board/create-board.mjs +++ b/components/monday/actions/create-board/create-board.mjs @@ -4,9 +4,9 @@ import monday from "../../monday.app.mjs"; export default { key: "monday-create-board", name: "Create Board", - description: "Creates a new board. [See the documentation](https://api.developer.monday.com/docs/boards#create-a-board)", + description: "Creates a new board. [See the documentation](https://developer.monday.com/api-reference/reference/boards#create-a-board)", type: "action", - version: "0.0.7", + version: "0.0.8", props: { monday, boardName: { diff --git a/components/monday/actions/create-column/create-column.mjs b/components/monday/actions/create-column/create-column.mjs index 33679372bc4db..9cd9b0d395d79 100644 --- a/components/monday/actions/create-column/create-column.mjs +++ b/components/monday/actions/create-column/create-column.mjs @@ -1,12 +1,13 @@ import constants from "../../common/constants.mjs"; import monday from "../../monday.app.mjs"; +import { ConfigurationError } from "@pipedream/platform"; export default { key: "monday-create-column", name: "Create Column", description: "Creates a column. [See the documentation](https://developer.monday.com/api-reference/reference/columns#create-a-column)", type: "action", - version: "0.0.8", + version: "0.1.0", props: { monday, boardId: { @@ -18,45 +19,63 @@ export default { title: { type: "string", label: "Title", - description: "The new column's title.", + description: "The title of the new column", }, columnType: { type: "string", label: "Column Type", - description: "The new column's title", + description: "The type of the new column", options: constants.COLUMN_TYPE_OPTIONS, reloadProps: true, }, description: { type: "string", label: "Description", - description: "The column's description.", + description: "The description of the new column", optional: true, }, }, async additionalProps() { const props = {}; - const defaults = { - type: "string", - label: "Defaults", - description: "The new column's defaults. For use with column types `status` or `dropdown`. [See the documentation](https://developer.monday.com/api-reference/reference/columns#create-a-status-or-dropdown-column-with-custom-labels) for additional information.", - optional: true, - }; - if (this.columnType === "status") { - props.defaults = { - ...defaults, - default: "{\"labels\":{\"1\":\"Option1\",\"2\":\"Option2\",\"3\":\"Option3\",\"4\": \"Option4\"}}", - }; - } - if (this.columnType === "dropdown") { + if ([ + "status", + "dropdown", + ].includes(this.columnType)) { props.defaults = { - ...defaults, - default: "{\"settings\":{\"labels\":[{\"id\":1,\"name\":\"Option1\"}, {\"id\":2,\"name\":\"Option2\"}, {\"id\":3,\"name\":\"Option3\"}]}}", + type: "string", + label: "Custom Labels (Defaults)", + description: "The new column's custom labels (defaults). For use with column types `status` or `dropdown`. Should be an object in the format `{ \"1\": \"Technology\", \"2\": \"Marketing\" }` where each key is the label ID and each value is the label text. [See the documentation](https://developer.monday.com/api-reference/reference/columns#create-a-status-or-dropdown-column-with-custom-labels) for more information.", + optional: true, }; } return props; }, async run({ $ }) { + let { defaults } = this; + if (defaults) { + try { + if (this.columnType === "status") { + defaults = JSON.stringify({ + labels: JSON.parse(defaults), + }); + } else if (this.columnType === "dropdown") { + const obj = JSON.parse(defaults); + defaults = JSON.stringify({ + settings: { + labels: Object.entries(obj).map(([ + id, + name, + ]) => ({ + id: Number(id), + name, + })), + }, + }); + } + } catch (err) { + throw new ConfigurationError(`Error parsing \`Custom Labels\` as JSON: "${err}"`); + } + } const { data, errors, @@ -66,11 +85,7 @@ export default { boardId: +this.boardId, title: this.title, columnType: this.columnType, - defaults: this.defaults - ? typeof this.defaults !== "string" - ? JSON.stringify(this.defaults) - : this.defaults - : undefined, + defaults, description: this.description, }); diff --git a/components/monday/actions/create-group/create-group.mjs b/components/monday/actions/create-group/create-group.mjs index 9f8eecef42c6e..f4a4d690fb29b 100644 --- a/components/monday/actions/create-group/create-group.mjs +++ b/components/monday/actions/create-group/create-group.mjs @@ -3,9 +3,9 @@ import monday from "../../monday.app.mjs"; export default { key: "monday-create-group", name: "Create Group", - description: "Creates a new group in a specific board. [See the documentation](https://api.developer.monday.com/docs/groups-queries#create-a-group)", + description: "Creates a new group in a specific board. [See the documentation](https://developer.monday.com/api-reference/reference/groups#create-a-group)", type: "action", - version: "0.0.8", + version: "0.0.9", props: { monday, boardId: { diff --git a/components/monday/actions/create-item/create-item.mjs b/components/monday/actions/create-item/create-item.mjs index 871e83caa77d9..057ae0ff8c54a 100644 --- a/components/monday/actions/create-item/create-item.mjs +++ b/components/monday/actions/create-item/create-item.mjs @@ -6,9 +6,9 @@ export default { ...commonCreateItem, key: "monday-create-item", name: "Create Item", - description: "Creates an item. [See the documentation](https://api.developer.monday.com/docs/items-queries#create-an-item)", + description: "Creates an item. [See the documentation](https://developer.monday.com/api-reference/reference/items#create-an-item)", type: "action", - version: "0.0.10", + version: "0.1.0", props: { monday, boardId: { diff --git a/components/monday/actions/create-subitem/create-subitem.mjs b/components/monday/actions/create-subitem/create-subitem.mjs index efce5aed79932..6f4d9e47c6690 100644 --- a/components/monday/actions/create-subitem/create-subitem.mjs +++ b/components/monday/actions/create-subitem/create-subitem.mjs @@ -8,7 +8,7 @@ export default { name: "Create Subitem", description: "Creates a subitem. [See the documentation](https://developer.monday.com/api-reference/reference/subitems#create-a-subitem)", type: "action", - version: "0.0.3", + version: "0.1.0", props: { monday, boardId: { @@ -26,7 +26,7 @@ export default { }), ], optional: false, - description: "The parent item's unique identifier", + description: "Select a parent item or provide an item ID", }, itemName: { propDefinition: [ diff --git a/components/monday/actions/create-update/create-update.mjs b/components/monday/actions/create-update/create-update.mjs index bd43cf9b438f5..ed2a7a6f372be 100644 --- a/components/monday/actions/create-update/create-update.mjs +++ b/components/monday/actions/create-update/create-update.mjs @@ -6,7 +6,7 @@ export default { name: "Create an Update", description: "Creates a new update. [See the documentation](https://developer.monday.com/api-reference/reference/updates#create-an-update)", type: "action", - version: "0.0.10", + version: "0.0.11", props: { monday, updateBody: { @@ -33,7 +33,7 @@ export default { }, parentId: { label: "Parent Update ID", - description: "The parent post identifier", + description: "Select a parent update or provide an update ID", propDefinition: [ monday, "updateId", diff --git a/components/monday/actions/get-column-values/get-column-values.mjs b/components/monday/actions/get-column-values/get-column-values.mjs index 2fcbf0e9e432f..287942c53eca2 100644 --- a/components/monday/actions/get-column-values/get-column-values.mjs +++ b/components/monday/actions/get-column-values/get-column-values.mjs @@ -4,8 +4,8 @@ export default { ...common, key: "monday-get-column-values", name: "Get Column Values", - description: "Return values of a specific column or columns for a board item. [See the documentation](https://developer.monday.com/api-reference/docs/column-values-v2)", - version: "0.0.5", + description: "Return values of specific column(s) for a board item. [See the documentation](https://developer.monday.com/api-reference/reference/column-values-v2)", + version: "0.0.6", type: "action", props: { ...common.props, @@ -29,7 +29,7 @@ export default { ], type: "string[]", label: "Columns", - description: "Return data from the specified column(s)", + description: "Select the column(s) to return data from", optional: true, }, }, @@ -49,7 +49,7 @@ export default { throw new Error(response.errors[0].message); } - $.export("$summary", `Successfully retrieved column values for item with ID ${this.itemId}.`); + $.export("$summary", `Successfully retrieved column values for item with ID ${this.itemId}`); return this.formatColumnValues(response.data.items); }, diff --git a/components/monday/actions/get-items-by-column-value/get-items-by-column-value.mjs b/components/monday/actions/get-items-by-column-value/get-items-by-column-value.mjs index 19a86e32780b8..10777b3195060 100644 --- a/components/monday/actions/get-items-by-column-value/get-items-by-column-value.mjs +++ b/components/monday/actions/get-items-by-column-value/get-items-by-column-value.mjs @@ -1,11 +1,12 @@ +import { getColumnOptions } from "../../common/utils.mjs"; import common from "../common/column-values.mjs"; export default { ...common, key: "monday-get-items-by-column-value", name: "Get Items By Column Value", - description: "Searches a column for items matching a value. [See the documentation](https://developer.monday.com/api-reference/docs/items-page-by-column-values)", - version: "0.0.5", + description: "Searches a column for items matching a value. [See the documentation](https://developer.monday.com/api-reference/reference/items-page-by-column-values)", + version: "0.1.0", type: "action", props: { ...common.props, @@ -18,12 +19,26 @@ export default { }), ], description: "The column to search", + reloadProps: true, }, - value: { - type: "string", - label: "Value", - description: "The value to serach for. [See documentation](https://developer.monday.com/api-reference/docs/items-by-column-values#supported-limited-support-and-unsupported-columns) for additional information about column values.", - }, + }, + async additionalProps() { + const columnData = await this.monday.listColumns({ + boardId: +this.boardId, + }); + + const options = getColumnOptions(columnData, this.columnId, true); + + return { + value: { + type: "string", + label: "Value", + description: `The value to search for.${options + ? "" + : " [See the documentation](https://developer.monday.com/api-reference/reference/items-page-by-column-values#supported-and-unsupported-columns) for additional information about column values"} `, + options, + }, + }; }, async run({ $ }) { const response = await this.monday.getItemsByColumnValue({ diff --git a/components/monday/actions/update-column-values/update-column-values.mjs b/components/monday/actions/update-column-values/update-column-values.mjs index 0983cc572a247..8c725ebc8f87c 100644 --- a/components/monday/actions/update-column-values/update-column-values.mjs +++ b/components/monday/actions/update-column-values/update-column-values.mjs @@ -2,19 +2,24 @@ import common from "../common/column-values.mjs"; import { axios } from "@pipedream/platform"; import fs from "fs"; import FormData from "form-data"; +import { getColumnOptions } from "../../common/utils.mjs"; export default { ...common, key: "monday-update-column-values", name: "Update Column Values", - description: "Update multiple column values of an item. [See the documentation](https://developer.monday.com/api-reference/docs/columns#change-multiple-column-values)", - version: "0.0.5", + description: "Update multiple column values of an item. [See the documentation](https://developer.monday.com/api-reference/reference/columns#change-multiple-column-values)", + version: "0.1.0", type: "action", props: { ...common.props, + updateInfoBox: { + type: "alert", + alertType: "info", + content: "See the [Column types reference](https://developer.monday.com/api-reference/reference/column-types-reference) to find the proper data structures for supported column types", + }, boardId: { ...common.props.boardId, - description: "The board's unique identifier. See the [Column types reference](https://developer.monday.com/api-reference/docs/column-types-reference) to find the proper data structures for supported column types.", reloadProps: true, }, itemId: { @@ -30,17 +35,22 @@ export default { }, async additionalProps() { const props = {}; - if (this.boardId) { - const columns = await this.getColumns(this.boardId); + const { boardId } = this; + if (boardId) { + const columns = await this.monday.listColumns({ + boardId: +boardId, + }); for (const column of columns) { - props[column.id] = { + const id = column.id; + props[id] = { type: "string", label: column.title, - description: `The value for column ${column.title}`, + description: `The value for the "${column.title}" column (\`${id}\`)`, optional: true, + options: getColumnOptions(columns, id), }; if (column.type === "file") { - props[column.id].description += ". The path to a file in the `/tmp` directory. [See the documentation on working with files](https://pipedream.com/docs/code/nodejs/working-with-files/#writing-a-file-to-tmp)."; + props[column.id].description += ". The path to a file in the `/tmp` directory. [See the documentation on working with files](https://pipedream.com/docs/code/nodejs/working-with-files/#writing-a-file-to-tmp)"; } } } diff --git a/components/monday/actions/update-item-name/update-item-name.mjs b/components/monday/actions/update-item-name/update-item-name.mjs index d9e5913bff44d..f0888f3bc06e2 100644 --- a/components/monday/actions/update-item-name/update-item-name.mjs +++ b/components/monday/actions/update-item-name/update-item-name.mjs @@ -3,9 +3,9 @@ import monday from "../../monday.app.mjs"; export default { key: "monday-update-item-name", name: "Update Item Name", - description: "Update an item's name. [See the documentation](https://api.developer.monday.com/docs/item-name)", + description: "Update an item's name. [See the documentation](https://developer.monday.com/api-reference/reference/columns#change-multiple-column-values)", type: "action", - version: "0.0.9", + version: "0.0.10", props: { monday, boardId: { diff --git a/components/monday/common/queries.mjs b/components/monday/common/queries.mjs index d335b1fd40e5f..0792bf8738012 100644 --- a/components/monday/common/queries.mjs +++ b/components/monday/common/queries.mjs @@ -98,12 +98,23 @@ export default { boards (ids: [$boardId]) { columns { id + settings_str title type } } } `, + listColumnOptions: ` + query listColumnOptions ($boardId: ID!) { + boards (ids: [$boardId]) { + columns { + id + title + } + } + } + `, listUsers: ` query { users ( diff --git a/components/monday/common/utils.mjs b/components/monday/common/utils.mjs index 77174847f66ff..eb8f0f2f2a168 100644 --- a/components/monday/common/utils.mjs +++ b/components/monday/common/utils.mjs @@ -1,12 +1,12 @@ function emptyStrToUndefined(value) { - const trimmed = typeof(value) === "string" && value.trim(); + const trimmed = typeof value === "string" && value.trim(); return trimmed === "" ? undefined : value; } function strinfied(value) { - return typeof(value) === "object" + return typeof value === "object" ? JSON.stringify(value) : emptyStrToUndefined(value); } @@ -18,11 +18,50 @@ function strNumber(value) { } function toNumber(value) { - return typeof(value) === "number" + return typeof value === "number" ? value : strNumber(value); } +export function capitalizeWord(str) { + return str.slice(0, 1).toUpperCase() + str.slice(1); +} + +export function getColumnOptions(allColumnData, columnId, useLabels = false) { + const columnOptions = allColumnData.find( + ({ id }) => id === columnId, + )?.settings_str; + if (columnOptions) { + try { + const labels = JSON.parse(columnOptions).labels; + return (Array.isArray(labels) + ? labels.map(({ + id, name, + }) => useLabels + ? name + : ({ + label: name, + value: id.toString(), + })) + : Object.entries(labels).map( + ([ + value, + label, + ]) => useLabels + ? label + : ({ + label: label !== "" + ? label + : value, + value, + }), + )).filter((str) => str); + } catch (err) { + console.log(`Error parsing options for column "${columnId}": ${err}`); + } + } +} + export default { emptyStrToUndefined, strinfied, diff --git a/components/monday/monday.app.mjs b/components/monday/monday.app.mjs index 51d66e26702e4..da43d4db51f6d 100644 --- a/components/monday/monday.app.mjs +++ b/components/monday/monday.app.mjs @@ -13,7 +13,7 @@ export default { boardId: { type: "string", label: "Board ID", - description: "The board's unique identifier", + description: "Select a board, or provide a board ID", async options({ page }) { return this.listBoardsOptions({ page: page + 1, @@ -23,18 +23,18 @@ export default { boardName: { type: "string", label: "Board Name", - description: "The board's name", + description: "The new board's name", }, boardKind: { type: "string", label: "Board Kind", - description: "The board's kind (`public` / `private` / `share`)", + description: "The new board's kind (`public` / `private` / `share`)", options: constants.BOARD_KIND_OPTIONS, }, folderId: { type: "integer", label: "Folder ID", - description: "Board folder ID", + description: "Optionally select a folder to create the board in, or provide a folder ID", optional: true, async options({ workspaceId }) { return this.listFolderOptions({ @@ -45,7 +45,7 @@ export default { workspaceId: { type: "integer", label: "Workspace ID", - description: "Board workspace ID. If you don't specify this field, the board will be created in the **Main Workspace**", + description: "Select a workspace to create the board in, or provide a workspace ID. If not specified, the **Main Workspace** will be used", optional: true, async options() { return this.listWorkspacesOptions(); @@ -54,7 +54,7 @@ export default { templateId: { type: "integer", label: "Board Template ID", - description: "Board ID saved as a custom template. The ID can be obteined from the url in browser selecting the corresponding board (e.g. `https://{subdomain}.monday.com/boards/2419687965`) where `2419687965` is the ID of the template", + description: "The board's template ID. You can obtain it from the URL when selecting the desired board (e.g. `https://{subdomain}.monday.com/boards/2419687965`) where `2419687965` is the template ID. [See the documentation](https://developer.monday.com/api-reference/reference/boards#create-a-board) for more information", optional: true, }, groupName: { @@ -65,7 +65,7 @@ export default { groupId: { type: "string", label: "Group ID", - description: "The group's unique identifier", + description: "Select a group or provide a group ID", optional: true, async options({ boardId }) { return this.listGroupsOptions({ @@ -76,7 +76,7 @@ export default { itemName: { type: "string", label: "Item Name", - description: "The item's name", + description: "The new item's name", }, itemColumnValues: { type: "object", @@ -98,7 +98,7 @@ export default { itemId: { type: "string", label: "Item ID", - description: "The item's unique identifier", + description: "Select an item or provide an item ID", optional: true, async options({ boardId, prevContext, @@ -112,7 +112,7 @@ export default { updateId: { type: "string", label: "Update ID", - description: "The update's unique identifier", + description: "Select an update or provide an update ID", optional: true, async options({ page, boardId, @@ -126,17 +126,17 @@ export default { column: { type: "string", label: "Column", - description: "Column to watch for changes", + description: "Select a column to watch for changes", async options({ boardId }) { - const columns = await this.listColumns({ + const columns = await this.listColumnOptions({ boardId: +boardId, }); return columns - .filter((column) => column.id !== "name") + ?.filter((column) => column.id !== "name") .map((column) => ({ label: column.title, value: column.id, - })); + })) ?? []; }, }, }, @@ -307,6 +307,15 @@ export default { }, }); }, + async listColumnOptions(variables) { + const { data } = await this.makeRequest({ + query: queries.listColumnOptions, + options: { + variables, + }, + }); + return data?.boards[0]?.columns; + }, async listColumns(variables) { const { data } = await this.makeRequest({ query: queries.listColumns, @@ -376,13 +385,13 @@ export default { const { boards } = data; return boards - .filter(({ type }) => type !== constants.BOARD_TYPE.SUB_ITEMS_BOARD) + ?.filter(({ type }) => type !== constants.BOARD_TYPE.SUB_ITEMS_BOARD) .map(({ id, name, }) => ({ label: name, value: id, - })); + })) ?? []; }, async listFolderOptions(variables) { const { diff --git a/components/monday/package.json b/components/monday/package.json index 61c57fb1fe045..ce48c1bb44f7c 100644 --- a/components/monday/package.json +++ b/components/monday/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/monday", - "version": "0.6.3", + "version": "0.7.0", "description": "Pipedream Monday Components", "main": "monday.app.mjs", "keywords": [ diff --git a/components/monday/sources/column-value-updated/column-value-updated.mjs b/components/monday/sources/column-value-updated/column-value-updated.mjs index 42f8c70507577..b9c24655cc029 100644 --- a/components/monday/sources/column-value-updated/column-value-updated.mjs +++ b/components/monday/sources/column-value-updated/column-value-updated.mjs @@ -3,10 +3,10 @@ import common from "../common/common-webhook.mjs"; export default { ...common, key: "monday-column-value-updated", - name: "New Column Value Updated (Instant)", - description: "Emit new event when a column value is updated on a board in Monday. For changes to Name, use the Name Updated Trigger.", + name: "Column Value Updated (Instant)", + description: "Emit new event when a column value is updated on a board. [See the documentation](https://developer.monday.com/api-reference/reference/webhooks#sample-payload-for-webhook-events)", type: "source", - version: "0.0.7", + version: "0.0.8", dedupe: "unique", hooks: { ...common.hooks, @@ -14,6 +14,14 @@ export default { await this.commonDeploy(); }, }, + props: { + ...common.props, + alertBox: { + type: "alert", + alertType: "warning", + content: "For changes to `Name`, use the **Name Updated** trigger", + }, + }, methods: { ...common.methods, getWebhookArgs() { diff --git a/components/monday/sources/name-updated/name-updated.mjs b/components/monday/sources/name-updated/name-updated.mjs index bc44566b3ecba..bf276e44f5172 100644 --- a/components/monday/sources/name-updated/name-updated.mjs +++ b/components/monday/sources/name-updated/name-updated.mjs @@ -3,10 +3,10 @@ import common from "../common/common-webhook.mjs"; export default { ...common, key: "monday-name-updated", - name: "New Name Updated (Instant)", - description: "Emit new event when an item's Name is updated on a board in Monday.", + name: "Name Updated (Instant)", + description: "Emit new event when an item's name is updated. [See the documentation](https://developer.monday.com/api-reference/reference/webhooks#sample-payload-for-webhook-events)", type: "source", - version: "0.0.7", + version: "0.0.8", dedupe: "unique", hooks: { ...common.hooks, diff --git a/components/monday/sources/new-board/new-board.mjs b/components/monday/sources/new-board/new-board.mjs index 45b0c92fc3518..1b6b6ffc9a904 100644 --- a/components/monday/sources/new-board/new-board.mjs +++ b/components/monday/sources/new-board/new-board.mjs @@ -3,10 +3,10 @@ import common from "../common/common-polling.mjs"; export default { ...common, key: "monday-new-board", - name: "New Board", - description: "Emit new event when a new board is created in Monday.", + name: "New Board Created", + description: "Emit new event when a board is created in Monday. [See the documentation](https://developer.monday.com/api-reference/reference/webhooks#sample-payload-for-webhook-events)", type: "source", - version: "0.0.8", + version: "0.0.9", dedupe: "unique", props: { ...common.props, @@ -14,7 +14,7 @@ export default { type: "integer", min: 1, label: "Max API Requests per Execution", - description: "The maximum number of API requests to make per execution (e.g., multiple requests are required to retrieve paginated results)", + description: "The maximum number of API requests to make per execution (multiple requests are required to retrieve paginated results)", optional: true, default: 1, }, diff --git a/components/monday/sources/new-item/new-item.mjs b/components/monday/sources/new-item/new-item.mjs index 1ab43010d4c0b..03e1b00613ca1 100644 --- a/components/monday/sources/new-item/new-item.mjs +++ b/components/monday/sources/new-item/new-item.mjs @@ -3,10 +3,10 @@ import common from "../common/common-webhook.mjs"; export default { ...common, key: "monday-new-item", - name: "New Item (Instant)", - description: "Emit new event when a new item is added to a board in Monday.", + name: "New Item Created (Instant)", + description: "Emit new event when a new item is added to a board. [See the documentation](https://developer.monday.com/api-reference/reference/webhooks#sample-payload-for-webhook-events)", type: "source", - version: "0.0.7", + version: "0.0.8", dedupe: "unique", hooks: { ...common.hooks, diff --git a/components/monday/sources/new-subitem-update/new-subitem-update.mjs b/components/monday/sources/new-subitem-update/new-subitem-update.mjs index fda7a097cce35..9fa17bc4c06c1 100644 --- a/components/monday/sources/new-subitem-update/new-subitem-update.mjs +++ b/components/monday/sources/new-subitem-update/new-subitem-update.mjs @@ -4,12 +4,17 @@ export default { ...common, key: "monday-new-subitem-update", name: "New Sub-Item Update (Instant)", - description: "Emit new event when an update is posted in sub-items. To create this trigger, you need to have at least one subitem previously created on your board.", + description: "Emit new event when an update is posted in sub-items. [See the documentation](https://developer.monday.com/api-reference/reference/webhooks#sample-payload-for-webhook-events)", type: "source", - version: "0.0.6", + version: "0.0.7", dedupe: "unique", props: { ...common.props, + alertBox: { + type: "alert", + alertType: "warning", + content: "To create this trigger, you need to have at least one subitem previously created on your board", + }, boardId: { propDefinition: [ common.props.monday, @@ -20,7 +25,7 @@ export default { methods: { ...common.methods, getWebhookCreationError() { - return "Failed to establish webhook. To create this trigger, you need to have at least one subitem previously created on your board."; + return "Failed to establish webhook. To create this trigger, you need to have at least one subitem previously created on your board"; }, getWebhookArgs() { return { diff --git a/components/monday/sources/new-subitem/new-subitem.mjs b/components/monday/sources/new-subitem/new-subitem.mjs index b8cdb1f9fdf92..26942653260b0 100644 --- a/components/monday/sources/new-subitem/new-subitem.mjs +++ b/components/monday/sources/new-subitem/new-subitem.mjs @@ -3,13 +3,18 @@ import common from "../common/common-webhook.mjs"; export default { ...common, key: "monday-new-subitem", - name: "New Sub-Item (Instant)", - description: "Emit new event when a sub-item is created. To create this trigger, you need to have at least one subitem previously created on your board.", + name: "New Sub-Item Created (Instant)", + description: "Emit new event when a sub-item is created. [See the documentation](https://developer.monday.com/api-reference/reference/webhooks#sample-payload-for-webhook-events)", type: "source", - version: "0.0.6", + version: "0.0.7", dedupe: "unique", props: { ...common.props, + alertBox: { + type: "alert", + alertType: "warning", + content: "To create this trigger, you need to have at least one subitem previously created on your board", + }, boardId: { propDefinition: [ common.props.monday, @@ -20,7 +25,7 @@ export default { methods: { ...common.methods, getWebhookCreationError() { - return "Failed to establish webhook. To create this trigger, you need to have at least one subitem previously created on your board."; + return "Failed to establish webhook. To create this trigger, you need to have at least one subitem previously created on your board"; }, getWebhookArgs() { return { diff --git a/components/monday/sources/new-user/new-user.mjs b/components/monday/sources/new-user/new-user.mjs index 140a44b960e97..146b70e3e112f 100644 --- a/components/monday/sources/new-user/new-user.mjs +++ b/components/monday/sources/new-user/new-user.mjs @@ -3,10 +3,10 @@ import common from "../common/common-polling.mjs"; export default { ...common, key: "monday-new-user", - name: "New User", - description: "Emit new event when a new user is created in Monday.", + name: "New User Created", + description: "Emit new event when a new user is created in Monday. [See the documentation](https://developer.monday.com/api-reference/reference/webhooks#sample-payload-for-webhook-events)", type: "source", - version: "0.0.8", + version: "0.0.9", dedupe: "unique", methods: { ...common.methods, diff --git a/components/monday/sources/specific-column-updated/specific-column-updated.mjs b/components/monday/sources/specific-column-updated/specific-column-updated.mjs index 9506bdec9d007..da0616a946429 100644 --- a/components/monday/sources/specific-column-updated/specific-column-updated.mjs +++ b/components/monday/sources/specific-column-updated/specific-column-updated.mjs @@ -3,10 +3,10 @@ import common from "../common/common-webhook.mjs"; export default { ...common, key: "monday-specific-column-updated", - name: "New Specific Column Updated (Instant)", - description: "Emit new event when a value in the specified column is updated on a board in Monday. For changes to Name, use the Name Updated Trigger.", + name: "Specific Column Updated (Instant)", + description: "Emit new event when a value in the specified column is updated. [See the documentation](https://developer.monday.com/api-reference/reference/webhooks#sample-payload-for-webhook-events)", type: "source", - version: "0.0.7", + version: "0.0.8", dedupe: "unique", hooks: { ...common.hooks, @@ -16,6 +16,11 @@ export default { }, props: { ...common.props, + alertBox: { + type: "alert", + alertType: "warning", + content: "For changes to `Name`, use the **Name Updated** trigger", + }, column: { propDefinition: [ common.props.monday, diff --git a/components/monday/sources/subitem-column-value-updated/subitem-column-value-updated.mjs b/components/monday/sources/subitem-column-value-updated/subitem-column-value-updated.mjs index 704346211c713..34c6191b80e34 100644 --- a/components/monday/sources/subitem-column-value-updated/subitem-column-value-updated.mjs +++ b/components/monday/sources/subitem-column-value-updated/subitem-column-value-updated.mjs @@ -3,13 +3,18 @@ import common from "../common/common-webhook.mjs"; export default { ...common, key: "monday-subitem-column-value-updated", - name: "New Sub-Item Column Value Updated (Instant)", - description: "Emit new event when any sub-item column changes. To create this trigger, you need to have at least one subitem previously created on your board.", + name: "Sub-Item Column Value Updated (Instant)", + description: "Emit new event when any sub-item column changes. [See the documentation](https://developer.monday.com/api-reference/reference/webhooks#sample-payload-for-webhook-events)", type: "source", - version: "0.0.7", + version: "0.0.8", dedupe: "unique", props: { ...common.props, + alertBox: { + type: "alert", + alertType: "warning", + content: "To create this trigger, you need to have at least one subitem previously created on your board", + }, boardId: { propDefinition: [ common.props.monday, @@ -20,7 +25,7 @@ export default { methods: { ...common.methods, getWebhookCreationError() { - return "Failed to establish webhook. To create this trigger, you need to have at least one subitem previously created on your board."; + return "Failed to establish webhook. To create this trigger, you need to have at least one subitem previously created on your board"; }, getWebhookArgs() { return { diff --git a/components/monday/sources/subitem-name-updated/subitem-name-updated.mjs b/components/monday/sources/subitem-name-updated/subitem-name-updated.mjs index eab81f1c5a8b7..39dc57d4ac159 100644 --- a/components/monday/sources/subitem-name-updated/subitem-name-updated.mjs +++ b/components/monday/sources/subitem-name-updated/subitem-name-updated.mjs @@ -3,13 +3,18 @@ import common from "../common/common-webhook.mjs"; export default { ...common, key: "monday-subitem-name-updated", - name: "New Sub-Item Name Updated (Instant)", - description: "Emit new event when a sub-item name changes. To create this trigger, you need to have at least one subitem previously created on your board.", + name: "Sub-Item Name Updated (Instant)", + description: "Emit new event when a sub-item name changes. [See the documentation](https://developer.monday.com/api-reference/reference/webhooks#sample-payload-for-webhook-events)", type: "source", - version: "0.0.6", + version: "0.0.7", dedupe: "unique", props: { ...common.props, + alertBox: { + type: "alert", + alertType: "warning", + content: "To create this trigger, you need to have at least one subitem previously created on your board", + }, boardId: { propDefinition: [ common.props.monday, @@ -20,7 +25,7 @@ export default { methods: { ...common.methods, getWebhookCreationError() { - return "Failed to establish webhook. To create this trigger, you need to have at least one subitem previously created on your board."; + return "Failed to establish webhook. To create this trigger, you need to have at least one subitem previously created on your board"; }, getWebhookArgs() { return { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 93987cddb5b1d..411fb290b0834 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -774,8 +774,7 @@ importers: specifier: ^2.3.3 version: 2.3.3 - components/applicantstack: - specifiers: {} + components/applicantstack: {} components/appointedd: dependencies: @@ -3613,8 +3612,7 @@ importers: specifier: ^1.2.0 version: 1.6.6 - components/felt: - specifiers: {} + components/felt: {} components/fibery: dependencies: @@ -7585,8 +7583,7 @@ importers: specifier: ^3.0.3 version: 3.0.3 - components/ory: - specifiers: {} + components/ory: {} components/osu: {} @@ -10368,8 +10365,7 @@ importers: specifier: ^4.17.20 version: 4.17.21 - components/stack_overflow_for_teams: - specifiers: {} + components/stack_overflow_for_teams: {} components/stackshare_api: {} @@ -12422,8 +12418,7 @@ importers: specifier: ^3.0.3 version: 3.0.3 - components/zep: - specifiers: {} + components/zep: {} components/zerobounce: dependencies: