@pipedream/trello 1.0.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions/add-attachment-to-card/add-attachment-to-card.mjs +1 -1
- package/actions/add-checklist/add-checklist.mjs +1 -1
- package/actions/add-comment/add-comment.mjs +1 -1
- package/actions/add-existing-label-to-card/add-existing-label-to-card.mjs +1 -1
- package/actions/add-member-to-card/add-member-to-card.mjs +1 -1
- package/actions/archive-card/archive-card.mjs +1 -1
- package/actions/complete-checklist-item/complete-checklist-item.mjs +1 -1
- package/actions/create-board/create-board.mjs +2 -2
- package/actions/create-card/create-card.mjs +3 -3
- package/actions/create-checklist-item/create-checklist-item.mjs +39 -1
- package/actions/create-label/create-label.mjs +2 -2
- package/actions/create-list/create-list.mjs +1 -1
- package/actions/delete-checklist/delete-checklist.mjs +1 -1
- package/actions/find-labels/find-labels.mjs +1 -1
- package/actions/find-list/find-list.mjs +1 -1
- package/actions/get-board/get-board.mjs +173 -0
- package/actions/get-card/get-card.mjs +1 -1
- package/actions/get-list/get-list.mjs +1 -1
- package/actions/move-card-to-list/move-card-to-list.mjs +1 -1
- package/actions/remove-label-from-card/remove-label-from-card.mjs +1 -1
- package/actions/rename-list/rename-list.mjs +1 -1
- package/actions/search-boards/search-boards.mjs +1 -1
- package/actions/search-cards/search-cards.mjs +1 -1
- package/actions/search-checklists/search-checklists.mjs +1 -1
- package/actions/search-members/search-members.mjs +1 -1
- package/actions/update-card/update-card.mjs +3 -3
- package/common/constants.mjs +40 -0
- package/package.json +1 -1
- package/sources/card-archived/card-archived.mjs +1 -1
- package/sources/card-due-date-reminder/card-due-date-reminder.mjs +3 -3
- package/sources/card-moved/card-moved.mjs +1 -1
- package/sources/card-updates/card-updates.mjs +1 -1
- package/sources/custom-webhook-events/custom-webhook-events.mjs +1 -1
- package/sources/new-activity/new-activity.mjs +2 -2
- package/sources/new-attachment/new-attachment.mjs +1 -1
- package/sources/new-board/new-board.mjs +1 -1
- package/sources/new-card/new-card.mjs +1 -1
- package/sources/new-checklist/new-checklist.mjs +1 -1
- package/sources/new-comment-added-to-card/new-comment-added-to-card.mjs +1 -1
- package/sources/new-label/new-label.mjs +1 -1
- package/sources/new-label-added-to-card/new-label-added-to-card.mjs +1 -1
- package/sources/new-member-on-card/new-member-on-card.mjs +1 -1
- package/sources/new-notification/new-notification.mjs +1 -1
- package/trello.app.mjs +23 -0
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "trello-add-attachment-to-card",
|
|
7
7
|
name: "Add Attachment To Card",
|
|
8
8
|
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.
|
|
9
|
+
version: "1.0.3",
|
|
10
10
|
type: "action",
|
|
11
11
|
props: {
|
|
12
12
|
app,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "trello-add-checklist",
|
|
5
5
|
name: "Add Checklist",
|
|
6
6
|
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.
|
|
7
|
+
version: "0.2.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
app,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "trello-add-comment",
|
|
5
5
|
name: "Add Comment",
|
|
6
6
|
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.
|
|
7
|
+
version: "0.2.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
app,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "trello-add-existing-label-to-card",
|
|
5
5
|
name: "Add Existing Label to Card",
|
|
6
6
|
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.
|
|
7
|
+
version: "0.1.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
app,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "trello-add-member-to-card",
|
|
5
5
|
name: "Add Member to Card",
|
|
6
6
|
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.
|
|
7
|
+
version: "0.2.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
app,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "trello-archive-card",
|
|
5
5
|
name: "Archive Card",
|
|
6
6
|
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.
|
|
7
|
+
version: "0.2.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
app,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "trello-complete-checklist-item",
|
|
5
5
|
name: "Complete a Checklist Item",
|
|
6
6
|
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.
|
|
7
|
+
version: "0.2.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
app,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import app from "../../trello.app.mjs";
|
|
2
1
|
import constants from "../../common/constants.mjs";
|
|
2
|
+
import app from "../../trello.app.mjs";
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
key: "trello-create-board",
|
|
6
6
|
name: "Create a Board",
|
|
7
7
|
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.
|
|
8
|
+
version: "0.2.3",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
app,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import app from "../../trello.app.mjs";
|
|
2
|
-
import FormData from "form-data";
|
|
3
1
|
import { getFileStreamAndMetadata } from "@pipedream/platform";
|
|
2
|
+
import FormData from "form-data";
|
|
4
3
|
import constants from "../../common/constants.mjs";
|
|
4
|
+
import app from "../../trello.app.mjs";
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
7
|
key: "trello-create-card",
|
|
8
8
|
name: "Create Card",
|
|
9
9
|
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.
|
|
10
|
+
version: "1.0.3",
|
|
11
11
|
type: "action",
|
|
12
12
|
props: {
|
|
13
13
|
app,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import constants from "../../common/constants.mjs";
|
|
1
2
|
import app from "../../trello.app.mjs";
|
|
2
3
|
|
|
3
4
|
export default {
|
|
4
5
|
key: "trello-create-checklist-item",
|
|
5
6
|
name: "Create a Checklist Item",
|
|
6
7
|
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.
|
|
8
|
+
version: "0.3.1",
|
|
8
9
|
type: "action",
|
|
9
10
|
props: {
|
|
10
11
|
app,
|
|
@@ -56,6 +57,35 @@ export default {
|
|
|
56
57
|
description: "Determines whether the check item is already checked when created.",
|
|
57
58
|
optional: true,
|
|
58
59
|
},
|
|
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
|
+
},
|
|
59
89
|
},
|
|
60
90
|
async run({ $ }) {
|
|
61
91
|
const {
|
|
@@ -63,6 +93,9 @@ export default {
|
|
|
63
93
|
name,
|
|
64
94
|
pos,
|
|
65
95
|
checked,
|
|
96
|
+
due,
|
|
97
|
+
dueReminder,
|
|
98
|
+
idMember,
|
|
66
99
|
} = this;
|
|
67
100
|
|
|
68
101
|
const response = await this.app.createChecklistItem({
|
|
@@ -72,6 +105,11 @@ export default {
|
|
|
72
105
|
name,
|
|
73
106
|
pos,
|
|
74
107
|
checked,
|
|
108
|
+
due,
|
|
109
|
+
dueReminder: dueReminder
|
|
110
|
+
? parseInt(dueReminder)
|
|
111
|
+
: undefined,
|
|
112
|
+
idMember,
|
|
75
113
|
},
|
|
76
114
|
});
|
|
77
115
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import app from "../../trello.app.mjs";
|
|
2
1
|
import constants from "../../common/constants.mjs";
|
|
2
|
+
import app from "../../trello.app.mjs";
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
key: "trello-create-label",
|
|
6
6
|
name: "Create Label",
|
|
7
7
|
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).",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.3",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
app,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "trello-create-list",
|
|
5
5
|
name: "Create a List",
|
|
6
6
|
description: "Creates a new list. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-lists/#api-lists-post).",
|
|
7
|
-
version: "0.2.
|
|
7
|
+
version: "0.2.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
app,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "trello-delete-checklist",
|
|
5
5
|
name: "Delete Checklist",
|
|
6
6
|
description: "Deletes the specified checklist. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-checklists/#api-checklists-id-delete).",
|
|
7
|
-
version: "0.2.
|
|
7
|
+
version: "0.2.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
app,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "trello-find-labels",
|
|
6
6
|
name: "Find a Label",
|
|
7
7
|
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)",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.3",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
...common.props,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "trello-find-list",
|
|
6
6
|
name: "Find a List",
|
|
7
7
|
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).",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.3",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
...common.props,
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import common from "../common/common.mjs";
|
|
2
|
+
import fields from "../../common/fields.mjs";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
...common,
|
|
6
|
+
key: "trello-get-board",
|
|
7
|
+
name: "Get Board",
|
|
8
|
+
description: "Request a single board. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-id-get).",
|
|
9
|
+
version: "0.0.1",
|
|
10
|
+
type: "action",
|
|
11
|
+
props: {
|
|
12
|
+
...common.props,
|
|
13
|
+
boardId: {
|
|
14
|
+
propDefinition: [
|
|
15
|
+
common.props.app,
|
|
16
|
+
"board",
|
|
17
|
+
],
|
|
18
|
+
label: "Board ID",
|
|
19
|
+
description: "The ID of the board to retrieve",
|
|
20
|
+
},
|
|
21
|
+
actions: {
|
|
22
|
+
propDefinition: [
|
|
23
|
+
common.props.app,
|
|
24
|
+
"actions",
|
|
25
|
+
],
|
|
26
|
+
},
|
|
27
|
+
boardStars: {
|
|
28
|
+
type: "string",
|
|
29
|
+
label: "Board Stars",
|
|
30
|
+
description: "Valid values are one of: `mine` or `none`. Default is `none`.",
|
|
31
|
+
options: [
|
|
32
|
+
"mine",
|
|
33
|
+
"none",
|
|
34
|
+
],
|
|
35
|
+
optional: true,
|
|
36
|
+
},
|
|
37
|
+
cardPluginData: {
|
|
38
|
+
type: "boolean",
|
|
39
|
+
label: "Card Plugin Data",
|
|
40
|
+
description: "Use with the cards param to include card pluginData with the response. Default is `none`.",
|
|
41
|
+
optional: true,
|
|
42
|
+
},
|
|
43
|
+
customFields: {
|
|
44
|
+
type: "boolean",
|
|
45
|
+
label: "Custom Fields",
|
|
46
|
+
description: "This is a nested resource. Include custom fields in the response.",
|
|
47
|
+
default: false,
|
|
48
|
+
optional: true,
|
|
49
|
+
},
|
|
50
|
+
fields: {
|
|
51
|
+
type: "string[]",
|
|
52
|
+
label: "Fields",
|
|
53
|
+
description: "The fields of the board to be included in the response. Valid values: all or a comma-separated list of specific fields.",
|
|
54
|
+
options: fields.board,
|
|
55
|
+
optional: true,
|
|
56
|
+
},
|
|
57
|
+
labels: {
|
|
58
|
+
type: "string",
|
|
59
|
+
label: "Labels",
|
|
60
|
+
description: "This is a nested resource. Specify what labels to include in the response. One of: `all` or `none`",
|
|
61
|
+
optional: true,
|
|
62
|
+
options: [
|
|
63
|
+
"all",
|
|
64
|
+
"none",
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
lists: {
|
|
68
|
+
type: "string",
|
|
69
|
+
label: "Lists",
|
|
70
|
+
description: "This is a nested resource. Specify what lists to include in the response.",
|
|
71
|
+
optional: true,
|
|
72
|
+
options: [
|
|
73
|
+
"all",
|
|
74
|
+
"closed",
|
|
75
|
+
"none",
|
|
76
|
+
"open",
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
members: {
|
|
80
|
+
type: "string",
|
|
81
|
+
label: "Members",
|
|
82
|
+
description: "This is a nested resource. Specify what members to include in the response.",
|
|
83
|
+
optional: true,
|
|
84
|
+
options: [
|
|
85
|
+
"none",
|
|
86
|
+
"normal",
|
|
87
|
+
"admins",
|
|
88
|
+
"owners",
|
|
89
|
+
"all",
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
pluginData: {
|
|
93
|
+
type: "boolean",
|
|
94
|
+
label: "Plugin Data",
|
|
95
|
+
description: "Determines whether the pluginData for this board should be returned.",
|
|
96
|
+
optional: true,
|
|
97
|
+
},
|
|
98
|
+
organization: {
|
|
99
|
+
type: "boolean",
|
|
100
|
+
label: "Organization",
|
|
101
|
+
description: "This is a nested resource. Include organization information in the response.",
|
|
102
|
+
optional: true,
|
|
103
|
+
},
|
|
104
|
+
organizationPluginData: {
|
|
105
|
+
type: "boolean",
|
|
106
|
+
label: "Organization Plugin Data",
|
|
107
|
+
description: "Use with the organization param to include organization pluginData with the response",
|
|
108
|
+
optional: true,
|
|
109
|
+
},
|
|
110
|
+
myPrefs: {
|
|
111
|
+
type: "boolean",
|
|
112
|
+
label: "My Preferences",
|
|
113
|
+
description: "Include the user's preferences for this board in the response.",
|
|
114
|
+
optional: true,
|
|
115
|
+
},
|
|
116
|
+
tags: {
|
|
117
|
+
type: "boolean",
|
|
118
|
+
label: "Tags",
|
|
119
|
+
description: "Also known as collections, tags, refer to the collection(s) that a Board belongs to.",
|
|
120
|
+
optional: true,
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
methods: {
|
|
124
|
+
getCommaSeparatedString(array) {
|
|
125
|
+
return Array.isArray(array)
|
|
126
|
+
? array.join(",")
|
|
127
|
+
: array;
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
async run({ $ }) {
|
|
131
|
+
const {
|
|
132
|
+
app,
|
|
133
|
+
getCommaSeparatedString,
|
|
134
|
+
boardId,
|
|
135
|
+
actions,
|
|
136
|
+
boardStars,
|
|
137
|
+
cardPluginData,
|
|
138
|
+
customFields,
|
|
139
|
+
fields,
|
|
140
|
+
labels,
|
|
141
|
+
lists,
|
|
142
|
+
members,
|
|
143
|
+
pluginData,
|
|
144
|
+
organization,
|
|
145
|
+
organizationPluginData,
|
|
146
|
+
myPrefs,
|
|
147
|
+
tags,
|
|
148
|
+
} = this;
|
|
149
|
+
|
|
150
|
+
const response = await app.getBoard({
|
|
151
|
+
$,
|
|
152
|
+
boardId,
|
|
153
|
+
params: {
|
|
154
|
+
actions: getCommaSeparatedString(actions),
|
|
155
|
+
boardStars,
|
|
156
|
+
card_pluginData: cardPluginData,
|
|
157
|
+
customFields,
|
|
158
|
+
fields: getCommaSeparatedString(fields),
|
|
159
|
+
labels: getCommaSeparatedString(labels),
|
|
160
|
+
lists,
|
|
161
|
+
members,
|
|
162
|
+
pluginData,
|
|
163
|
+
organization,
|
|
164
|
+
organizationPluginData,
|
|
165
|
+
myPrefs,
|
|
166
|
+
tags,
|
|
167
|
+
},
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
$.export("$summary", `Successfully retrieved board with ID \`${response.id}\``);
|
|
171
|
+
return response;
|
|
172
|
+
},
|
|
173
|
+
};
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "trello-get-card",
|
|
6
6
|
name: "Get Card",
|
|
7
7
|
description: "Gets a card by its ID. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-get).",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.3",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
...common.props,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "trello-get-list",
|
|
5
5
|
name: "Get List",
|
|
6
6
|
description: "Get information about a List. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-lists/#api-lists-id-get).",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
app,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "trello-move-card-to-list",
|
|
6
6
|
name: "Move Card to List",
|
|
7
7
|
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).",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.3",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
...common.props,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "trello-remove-label-from-card",
|
|
5
5
|
name: "Remove Card Label",
|
|
6
6
|
description: "Removes label from card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-idlabels-idlabel-delete).",
|
|
7
|
-
version: "0.2.
|
|
7
|
+
version: "0.2.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
app,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "trello-rename-list",
|
|
6
6
|
name: "Rename List",
|
|
7
7
|
description: "Renames an existing list. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-lists/#api-lists-id-put).",
|
|
8
|
-
version: "0.1.
|
|
8
|
+
version: "0.1.3",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
...common.props,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "trello-search-boards",
|
|
5
5
|
name: "Search Boards",
|
|
6
6
|
description: "Searches for boards matching the specified query. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-search/#api-search-get).",
|
|
7
|
-
version: "0.3.
|
|
7
|
+
version: "0.3.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
app,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "trello-search-cards",
|
|
5
5
|
name: "Search Cards",
|
|
6
6
|
description: "Searches for cards matching the specified query. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-search/#api-search-get).",
|
|
7
|
-
version: "0.2.
|
|
7
|
+
version: "0.2.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
app,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "trello-search-checklists",
|
|
5
5
|
name: "Search Checklists",
|
|
6
6
|
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).",
|
|
7
|
-
version: "0.2.
|
|
7
|
+
version: "0.2.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
app,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "trello-search-members",
|
|
5
5
|
name: "Search Members",
|
|
6
6
|
description: "Search for Trello members. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-search/#api-search-members-get).",
|
|
7
|
-
version: "0.2.
|
|
7
|
+
version: "0.2.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
app,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import app from "../../trello.app.mjs";
|
|
2
|
-
import pickBy from "lodash-es/pickBy.js";
|
|
3
1
|
import pick from "lodash-es/pick.js";
|
|
2
|
+
import pickBy from "lodash-es/pickBy.js";
|
|
3
|
+
import app from "../../trello.app.mjs";
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
key: "trello-update-card",
|
|
7
7
|
name: "Update Card",
|
|
8
8
|
description: "Updates a card. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-put).",
|
|
9
|
-
version: "0.2.
|
|
9
|
+
version: "0.2.3",
|
|
10
10
|
type: "action",
|
|
11
11
|
props: {
|
|
12
12
|
app,
|
package/common/constants.mjs
CHANGED
|
@@ -111,6 +111,45 @@ const CARD_KEEP_FROM_SOURCE_PROPERTIES = [
|
|
|
111
111
|
"stickers",
|
|
112
112
|
];
|
|
113
113
|
|
|
114
|
+
const DUE_REMINDER_OPTIONS = [
|
|
115
|
+
{
|
|
116
|
+
label: "no reminder",
|
|
117
|
+
value: "-1",
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
label: "At delivery time",
|
|
121
|
+
value: "0",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
label: "5 minutes before",
|
|
125
|
+
value: "5",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
label: "10 minutes before",
|
|
129
|
+
value: "10",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
label: "15 minutes before",
|
|
133
|
+
value: "15",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
label: "1 hour before",
|
|
137
|
+
value: "60",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
label: "2 hours before",
|
|
141
|
+
value: "120",
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
label: "1 day before",
|
|
145
|
+
value: "1440",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
label: "2 days before",
|
|
149
|
+
value: "2880",
|
|
150
|
+
},
|
|
151
|
+
];
|
|
152
|
+
|
|
114
153
|
export default {
|
|
115
154
|
POSITIONS,
|
|
116
155
|
CARD_FILTERS,
|
|
@@ -125,4 +164,5 @@ export default {
|
|
|
125
164
|
LABEL_COLORS,
|
|
126
165
|
NOTIFICATION_TIMES,
|
|
127
166
|
CARD_KEEP_FROM_SOURCE_PROPERTIES,
|
|
167
|
+
DUE_REMINDER_OPTIONS,
|
|
128
168
|
};
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "trello-card-archived",
|
|
7
7
|
name: "Card Archived (Instant)", /* eslint-disable-line pipedream/source-name */
|
|
8
8
|
description: "Emit new event for each card archived.",
|
|
9
|
-
version: "0.1.
|
|
9
|
+
version: "0.1.3",
|
|
10
10
|
type: "source",
|
|
11
11
|
props: {
|
|
12
12
|
...common.props,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import taskScheduler from "../../../pipedream/sources/new-scheduled-tasks/new-scheduled-tasks.mjs";
|
|
2
|
-
import trello from "../../trello.app.mjs";
|
|
3
1
|
import ms from "ms";
|
|
2
|
+
import taskScheduler from "../../../pipedream/sources/new-scheduled-tasks/new-scheduled-tasks.mjs";
|
|
4
3
|
import constants from "../../common/constants.mjs";
|
|
4
|
+
import trello from "../../trello.app.mjs";
|
|
5
5
|
import sampleEmit from "./test-event.mjs";
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
key: "trello-card-due-date-reminder",
|
|
9
9
|
name: "Card Due Date Reminder", /* eslint-disable-line pipedream/source-name */
|
|
10
10
|
description: "Emit new event at a specified time before a card is due.",
|
|
11
|
-
version: "0.1.
|
|
11
|
+
version: "0.1.3",
|
|
12
12
|
type: "source",
|
|
13
13
|
dedupe: "unique",
|
|
14
14
|
props: {
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "trello-card-moved",
|
|
7
7
|
name: "Card Moved (Instant)", /* eslint-disable-line pipedream/source-name */
|
|
8
8
|
description: "Emit new event each time a card is moved to a list.",
|
|
9
|
-
version: "0.1.
|
|
9
|
+
version: "0.1.3",
|
|
10
10
|
type: "source",
|
|
11
11
|
props: {
|
|
12
12
|
...common.props,
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "trello-card-updates",
|
|
7
7
|
name: "Card Updated (Instant)", /* eslint-disable-line pipedream/source-name */
|
|
8
8
|
description: "Emit new event for each update to a Trello card.",
|
|
9
|
-
version: "0.1.
|
|
9
|
+
version: "0.1.3",
|
|
10
10
|
type: "source",
|
|
11
11
|
props: {
|
|
12
12
|
...common.props,
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "trello-custom-webhook-events",
|
|
7
7
|
name: "Custom Webhook Events (Instant)", /* eslint-disable-line pipedream/source-name */
|
|
8
8
|
description: "Emit new events for activity matching a board, event types, lists and/or cards.",
|
|
9
|
-
version: "0.1.
|
|
9
|
+
version: "0.1.3",
|
|
10
10
|
type: "source",
|
|
11
11
|
props: {
|
|
12
12
|
...common.props,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import common from "../common/common-webhook.mjs";
|
|
2
1
|
import actions from "../common/actions.mjs";
|
|
2
|
+
import common from "../common/common-webhook.mjs";
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
...common,
|
|
6
6
|
key: "trello-new-activity",
|
|
7
7
|
name: "New Board Activity (Instant)",
|
|
8
8
|
description: "Emit new event for new activity on a board.",
|
|
9
|
-
version: "0.1.
|
|
9
|
+
version: "0.1.3",
|
|
10
10
|
type: "source",
|
|
11
11
|
props: {
|
|
12
12
|
...common.props,
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "trello-new-comment-added-to-card",
|
|
7
7
|
name: "New Comment Added to Card (Instant)",
|
|
8
8
|
description: "Emit new event for each new comment added to a card.",
|
|
9
|
-
version: "0.2.
|
|
9
|
+
version: "0.2.3",
|
|
10
10
|
type: "source",
|
|
11
11
|
dedupe: "unique",
|
|
12
12
|
props: {
|
package/trello.app.mjs
CHANGED
|
@@ -2,6 +2,7 @@ import { axios } from "@pipedream/platform";
|
|
|
2
2
|
import fields from "./common/fields.mjs";
|
|
3
3
|
import constants from "./common/constants.mjs";
|
|
4
4
|
import mime from "mime/types/standard.js";
|
|
5
|
+
import actions from "./sources/common/actions.mjs";
|
|
5
6
|
|
|
6
7
|
export default {
|
|
7
8
|
type: "app",
|
|
@@ -338,6 +339,28 @@ export default {
|
|
|
338
339
|
"url",
|
|
339
340
|
],
|
|
340
341
|
},
|
|
342
|
+
actions: {
|
|
343
|
+
type: "string[]",
|
|
344
|
+
label: "Actions",
|
|
345
|
+
description: "This is a nested resource. Specify what actions to include in the response. Default is `all`.",
|
|
346
|
+
optional: true,
|
|
347
|
+
options: actions,
|
|
348
|
+
},
|
|
349
|
+
labels: {
|
|
350
|
+
type: "string[]",
|
|
351
|
+
label: "Labels",
|
|
352
|
+
description: "This is a nested resource. Specify what labels to include in the response.",
|
|
353
|
+
optional: true,
|
|
354
|
+
async options({ boardId }) {
|
|
355
|
+
if (!boardId) {
|
|
356
|
+
return [];
|
|
357
|
+
}
|
|
358
|
+
const labels = await this.findLabel({
|
|
359
|
+
boardId,
|
|
360
|
+
});
|
|
361
|
+
return labels.map(({ name }) => name);
|
|
362
|
+
},
|
|
363
|
+
},
|
|
341
364
|
},
|
|
342
365
|
methods: {
|
|
343
366
|
getSignerUri() {
|