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
Original file line number Diff line number Diff line change
Expand Up @@ -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.0",
version: "1.0.1",
type: "action",
props: {
app,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/add-checklist/add-checklist.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.2.2",
type: "action",
props: {
app,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/add-comment/add-comment.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.2.2",
type: "action",
props: {
app,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.1.2",
type: "action",
props: {
app,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.2.2",
type: "action",
props: {
app,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/archive-card/archive-card.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.2.2",
type: "action",
props: {
app,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.2.2",
type: "action",
props: {
app,
Expand Down
4 changes: 2 additions & 2 deletions components/trello/actions/create-board/create-board.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import app from "../../trello.app.mjs";
import constants from "../../common/constants.mjs";
import app from "../../trello.app.mjs";

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.1",
version: "0.2.2",
type: "action",
props: {
app,
Expand Down
6 changes: 3 additions & 3 deletions components/trello/actions/create-card/create-card.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import app from "../../trello.app.mjs";
import FormData from "form-data";
import { getFileStreamAndMetadata } from "@pipedream/platform";
import FormData from "form-data";
import constants from "../../common/constants.mjs";
import app from "../../trello.app.mjs";

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.0",
version: "1.0.1",
type: "action",
props: {
app,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { DUE_REMINDER_OPTIONS } from "../../common/constants.mjs";
import app from "../../trello.app.mjs";

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.2.1",
version: "0.3.0",
type: "action",
props: {
app,
Expand Down Expand Up @@ -56,13 +57,45 @@ export default {
description: "Determines whether the check item is already checked when created.",
optional: true,
},
due: {
type: "string",
label: "Due Date",
description: "A due date for the checkitem. **Format: YYYY-MM-DDThh:mm:ss.sssZ**",
optional: true,
},
dueReminder: {
type: "string",
label: "Due Reminder",
description: "A dueReminder for the due date on the checkitem",
options: DUE_REMINDER_OPTIONS,
optional: true,
},
idMember: {
propDefinition: [
app,
"member",
({
board, card,
}) => ({
board,
card,
excludeCardMembers: true,
}),
],
label: "Id Member",
description: "An ID of a member resource",
optional: true,
},
},
async run({ $ }) {
const {
checklistId,
name,
pos,
checked,
due,
dueReminder,
idMember,
} = this;

const response = await this.app.createChecklistItem({
Expand All @@ -72,6 +105,11 @@ export default {
name,
pos,
checked,
due,
dueReminder: dueReminder
? parseInt(dueReminder)
: undefined,
idMember,
},
});

Expand Down
4 changes: 2 additions & 2 deletions components/trello/actions/create-label/create-label.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import app from "../../trello.app.mjs";
import constants from "../../common/constants.mjs";
import app from "../../trello.app.mjs";

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.1",
version: "0.2.2",
type: "action",
props: {
app,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/create-list/create-list.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.2.2",
type: "action",
props: {
app,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.2.2",
type: "action",
props: {
app,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/find-labels/find-labels.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.2.2",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/find-list/find-list.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.2.2",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/get-card/get-card.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.2.2",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/get-list/get-list.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.1.2",
type: "action",
props: {
app,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.2.2",
type: "action",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.2.2",
type: "action",
props: {
app,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/rename-list/rename-list.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.1.2",
type: "action",
props: {
...common.props,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/search-boards/search-boards.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.3.2",
type: "action",
props: {
app,
Expand Down
2 changes: 1 addition & 1 deletion components/trello/actions/search-cards/search-cards.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.2.2",
type: "action",
props: {
app,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.2.2",
type: "action",
props: {
app,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.2.2",
type: "action",
props: {
app,
Expand Down
6 changes: 3 additions & 3 deletions components/trello/actions/update-card/update-card.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import app from "../../trello.app.mjs";
import pickBy from "lodash-es/pickBy.js";
import pick from "lodash-es/pick.js";
import pickBy from "lodash-es/pickBy.js";
import app from "../../trello.app.mjs";

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.1",
version: "0.2.2",
type: "action",
props: {
app,
Expand Down
40 changes: 40 additions & 0 deletions components/trello/common/constants.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,45 @@ const CARD_KEEP_FROM_SOURCE_PROPERTIES = [
"stickers",
];

const DUE_REMINDER_OPTIONS = [
{
label: "no reminder",
value: "-1",
},
{
label: "At delivery time",
value: "0",
},
{
label: "5 minutes before",
value: "5",
},
{
label: "10 minutes before",
value: "10",
},
{
label: "15 minutes before",
value: "15",
},
{
label: "1 hour before",
value: "60",
},
{
label: "2 hours before",
value: "120",
},
{
label: "1 day before",
value: "1440",
},
{
label: "2 days before",
value: "2880",
},
];

export default {
POSITIONS,
CARD_FILTERS,
Expand All @@ -125,4 +164,5 @@ export default {
LABEL_COLORS,
NOTIFICATION_TIMES,
CARD_KEEP_FROM_SOURCE_PROPERTIES,
DUE_REMINDER_OPTIONS,
};
2 changes: 1 addition & 1 deletion components/trello/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/trello",
"version": "1.0.0",
"version": "1.1.0",
"description": "Pipedream Trello Components",
"main": "trello.app.mjs",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion components/trello/sources/card-archived/card-archived.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.1",
version: "0.1.2",
type: "source",
props: {
...common.props,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import taskScheduler from "../../../pipedream/sources/new-scheduled-tasks/new-scheduled-tasks.mjs";
import trello from "../../trello.app.mjs";
import ms from "ms";
import taskScheduler from "../../../pipedream/sources/new-scheduled-tasks/new-scheduled-tasks.mjs";
import constants from "../../common/constants.mjs";
import trello from "../../trello.app.mjs";
import sampleEmit from "./test-event.mjs";

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.1",
version: "0.1.2",
type: "source",
dedupe: "unique",
props: {
Expand Down
Loading
Loading