Skip to content

Commit 65d964b

Browse files
authored
17241 feature enhance trello create checklist item (#17348)
* Update Trello component versions and add new features - Bump package version for @pipedream/trello to 1.1.0. - Update action versions to 1.0.1 for 'Add Attachment To Card' and 1.0.1 for 'Create Card'. - Increment action versions for 'Add Checklist', 'Add Comment', 'Add Existing Label to Card', 'Add Member to Card', 'Archive Card', 'Complete Checklist Item', 'Create Checklist Item', 'Create Label', 'Create List', 'Delete Checklist', 'Find Labels', 'Find List', 'Get Card', 'Get List', 'Move Card to List', 'Remove Label from Card', 'Rename List', 'Search Boards', 'Search Cards', 'Search Checklists', 'Search Members', 'Update Card' to 0.2.2 or 0.3.0 as appropriate. - Introduce new due date and reminder options in 'Create Checklist Item'. - Update constants to include due reminder options. - Update source versions to 0.1.2 for various sources including 'Card Archived', 'Card Due Date Reminder', 'Card Moved', and others. * pnpm update * Refactor 'Create Checklist Item' action to use constants for due reminder options * Update add-attachment-to-card.mjs * Update create-card.mjs
1 parent 7224a54 commit 65d964b

File tree

42 files changed

+128
-50
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+128
-50
lines changed

components/trello/actions/add-attachment-to-card/add-attachment-to-card.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "trello-add-attachment-to-card",
77
name: "Add Attachment To Card",
88
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)",
9-
version: "1.0.1",
9+
version: "1.0.2",
1010
type: "action",
1111
props: {
1212
app,

components/trello/actions/add-checklist/add-checklist.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "trello-add-checklist",
55
name: "Add Checklist",
66
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).",
7-
version: "0.2.1",
7+
version: "0.2.2",
88
type: "action",
99
props: {
1010
app,

components/trello/actions/add-comment/add-comment.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "trello-add-comment",
55
name: "Add Comment",
66
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).",
7-
version: "0.2.1",
7+
version: "0.2.2",
88
type: "action",
99
props: {
1010
app,

components/trello/actions/add-existing-label-to-card/add-existing-label-to-card.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "trello-add-existing-label-to-card",
55
name: "Add Existing Label to Card",
66
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).",
7-
version: "0.1.1",
7+
version: "0.1.2",
88
type: "action",
99
props: {
1010
app,

components/trello/actions/add-member-to-card/add-member-to-card.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "trello-add-member-to-card",
55
name: "Add Member to Card",
66
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).",
7-
version: "0.2.1",
7+
version: "0.2.2",
88
type: "action",
99
props: {
1010
app,

components/trello/actions/archive-card/archive-card.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "trello-archive-card",
55
name: "Archive Card",
66
description: "Archives a card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-put).",
7-
version: "0.2.1",
7+
version: "0.2.2",
88
type: "action",
99
props: {
1010
app,

components/trello/actions/complete-checklist-item/complete-checklist-item.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "trello-complete-checklist-item",
55
name: "Complete a Checklist Item",
66
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).",
7-
version: "0.2.1",
7+
version: "0.2.2",
88
type: "action",
99
props: {
1010
app,

components/trello/actions/create-board/create-board.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import app from "../../trello.app.mjs";
21
import constants from "../../common/constants.mjs";
2+
import app from "../../trello.app.mjs";
33

44
export default {
55
key: "trello-create-board",
66
name: "Create a Board",
77
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).",
8-
version: "0.2.1",
8+
version: "0.2.2",
99
type: "action",
1010
props: {
1111
app,

components/trello/actions/create-card/create-card.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import app from "../../trello.app.mjs";
2-
import FormData from "form-data";
31
import { getFileStreamAndMetadata } from "@pipedream/platform";
2+
import FormData from "form-data";
43
import constants from "../../common/constants.mjs";
4+
import app from "../../trello.app.mjs";
55

66
export default {
77
key: "trello-create-card",
88
name: "Create Card",
99
description: "Creates a new card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-post).",
10-
version: "1.0.1",
10+
version: "1.0.2",
1111
type: "action",
1212
props: {
1313
app,

components/trello/actions/create-checklist-item/create-checklist-item.mjs

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
import constants from "../../common/constants.mjs";
12
import app from "../../trello.app.mjs";
23

34
export default {
45
key: "trello-create-checklist-item",
56
name: "Create a Checklist Item",
67
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).",
7-
version: "0.2.1",
8+
version: "0.3.0",
89
type: "action",
910
props: {
1011
app,
@@ -56,13 +57,45 @@ export default {
5657
description: "Determines whether the check item is already checked when created.",
5758
optional: true,
5859
},
60+
due: {
61+
type: "string",
62+
label: "Due Date",
63+
description: "A due date for the checkitem. **Format: YYYY-MM-DDThh:mm:ss.sssZ**",
64+
optional: true,
65+
},
66+
dueReminder: {
67+
type: "string",
68+
label: "Due Reminder",
69+
description: "A dueReminder for the due date on the checkitem",
70+
options: constants.DUE_REMINDER_OPTIONS,
71+
optional: true,
72+
},
73+
idMember: {
74+
propDefinition: [
75+
app,
76+
"member",
77+
({
78+
board, card,
79+
}) => ({
80+
board,
81+
card,
82+
excludeCardMembers: true,
83+
}),
84+
],
85+
label: "Id Member",
86+
description: "An ID of a member resource",
87+
optional: true,
88+
},
5989
},
6090
async run({ $ }) {
6191
const {
6292
checklistId,
6393
name,
6494
pos,
6595
checked,
96+
due,
97+
dueReminder,
98+
idMember,
6699
} = this;
67100

68101
const response = await this.app.createChecklistItem({
@@ -72,6 +105,11 @@ export default {
72105
name,
73106
pos,
74107
checked,
108+
due,
109+
dueReminder: dueReminder
110+
? parseInt(dueReminder)
111+
: undefined,
112+
idMember,
75113
},
76114
});
77115

0 commit comments

Comments
 (0)