Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/monday/actions/create-board/create-board.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
name: "Create 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.10",
version: "0.0.11",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/monday/actions/create-column/create-column.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
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.1.2",
version: "0.1.3",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/monday/actions/create-group/create-group.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Create 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.11",
version: "0.0.12",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/monday/actions/create-item/create-item.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
name: "Create Item",
description: "Creates an item. [See the documentation](https://developer.monday.com/api-reference/reference/items#create-an-item)",
type: "action",
version: "0.1.2",
version: "0.1.3",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.1.2",
version: "0.1.3",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/monday/actions/create-update/create-update.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.13",
version: "0.0.14",
annotations: {
destructiveHint: true,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import common from "../common/column-values.mjs";

export default {
...common,
key: "monday-get-board-items-page",
name: "Get Board Items Page",
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.0.1",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: true,
},
type: "action",
props: {
...common.props,
},
async run({ $ }) {
const response = await this.monday.listBoardItemsPage({
boardId: +this.boardId,
});

if (response.errors) {
throw new Error(response.errors[0].message);
}

const {
data: {
boards: [
{ items_page: pageItems },
],
},
} = response;
const { items } = pageItems;
let cursor = pageItems?.cursor;
while (cursor) {
const {
data: {
boards: {
items_page: {
cursor: nextCursor, items: nextItems,
},
},
},
} = await this.monday.listBoardItemsPage({
boardId: +this.boardId,
cursor,
});
items.push(...nextItems);
cursor = nextCursor;
}

$.export("$summary", `Successfully retrieved ${items.length} item${items.length === 1
? ""
: "s"}.`);

return items;
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "monday-get-column-values",
name: "Get Column Values",
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.8",
version: "0.0.9",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
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/reference/items-page-by-column-values)",
version: "0.1.2",
version: "0.1.3",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
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/reference/columns#change-multiple-column-values)",
version: "0.2.3",
version: "0.2.4",
annotations: {
destructiveHint: true,
openWorldHint: true,
Expand All @@ -21,12 +21,12 @@
type: "action",
props: {
...common.props,
updateInfoBox: {

Check warning on line 24 in components/monday/actions/update-column-values/update-column-values.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop updateInfoBox must have a description. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 24 in components/monday/actions/update-column-values/update-column-values.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop updateInfoBox must have a label. See https://pipedream.com/docs/components/guidelines/#props
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: {

Check warning on line 29 in components/monday/actions/update-column-values/update-column-values.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop boardId must have a description. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 29 in components/monday/actions/update-column-values/update-column-values.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop boardId must have a label. See https://pipedream.com/docs/components/guidelines/#props
...common.props.boardId,
reloadProps: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
name: "Update 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.12",
version: "0.0.13",
annotations: {
destructiveHint: true,
openWorldHint: true,
Expand Down
13 changes: 13 additions & 0 deletions components/monday/common/queries.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,19 @@ export default {
}
}
`,
listBoardItemsPage: `
query listBoardItemsPage ($boardId: ID!, $cursor: String) {
boards (ids: [$boardId]){
items_page (cursor: $cursor) {
cursor
items {
id
name
}
}
}
}
`,
listColumnOptions: `
query listColumnOptions ($boardId: ID!) {
boards (ids: [$boardId]) {
Expand Down
8 changes: 8 additions & 0 deletions components/monday/monday.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,14 @@ export default {
});
return data?.boards[0]?.columns;
},
listBoardItemsPage(variables) {
return this.makeRequest({
query: queries.listBoardItemsPage,
options: {
variables,
},
});
},
async listUsers(variables) {
const { data } = await this.makeRequest({
query: queries.listUsers,
Expand Down
2 changes: 1 addition & 1 deletion components/monday/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/monday",
"version": "0.8.2",
"version": "0.9.0",
"description": "Pipedream Monday Components",
"main": "monday.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
export default {
...common,
key: "monday-column-value-updated",
name: "Column Value Updated (Instant)",

Check warning on line 6 in components/monday/sources/column-value-updated/column-value-updated.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Source names should start with "New". See https://pipedream.com/docs/components/guidelines/#source-name
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.9",
version: "0.0.10",
dedupe: "unique",
hooks: {
...common.hooks,
Expand All @@ -16,7 +16,7 @@
},
props: {
...common.props,
alertBox: {

Check warning on line 19 in components/monday/sources/column-value-updated/column-value-updated.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop alertBox must have a description. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 19 in components/monday/sources/column-value-updated/column-value-updated.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop alertBox must have a label. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "warning",
content: "For changes to `Name`, use the **Name Updated** trigger",
Expand Down
2 changes: 1 addition & 1 deletion components/monday/sources/name-updated/name-updated.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
export default {
...common,
key: "monday-name-updated",
name: "Name Updated (Instant)",

Check warning on line 6 in components/monday/sources/name-updated/name-updated.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Source names should start with "New". See https://pipedream.com/docs/components/guidelines/#source-name
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.9",
version: "0.0.10",
dedupe: "unique",
hooks: {
...common.hooks,
Expand Down
2 changes: 1 addition & 1 deletion components/monday/sources/new-board/new-board.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
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.10",
version: "0.0.11",
dedupe: "unique",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/monday/sources/new-item/new-item.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
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.9",
version: "0.0.10",
dedupe: "unique",
hooks: {
...common.hooks,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
name: "New Sub-Item Update (Instant)",
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.8",
version: "0.0.9",
dedupe: "unique",
props: {
...common.props,
alertBox: {

Check warning on line 13 in components/monday/sources/new-subitem-update/new-subitem-update.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop alertBox must have a description. See https://pipedream.com/docs/components/guidelines/#props

Check warning on line 13 in components/monday/sources/new-subitem-update/new-subitem-update.mjs

View workflow job for this annotation

GitHub Actions / Lint Code Base

Component prop alertBox must have a label. See https://pipedream.com/docs/components/guidelines/#props
type: "alert",
alertType: "warning",
content: "To create this trigger, you need to have at least one subitem previously created on your board",
Expand Down
2 changes: 1 addition & 1 deletion components/monday/sources/new-subitem/new-subitem.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
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.8",
version: "0.0.9",
dedupe: "unique",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/monday/sources/new-user/new-user.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
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.10",
version: "0.0.11",
dedupe: "unique",
methods: {
...common.methods,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
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.9",
version: "0.0.10",
dedupe: "unique",
hooks: {
...common.hooks,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
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.9",
version: "0.0.10",
dedupe: "unique",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
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.8",
version: "0.0.9",
dedupe: "unique",
props: {
...common.props,
Expand Down
Loading