@pipedream/trello 1.1.0 → 1.3.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.
Files changed (45) hide show
  1. package/actions/add-attachment-to-card/add-attachment-to-card.mjs +1 -1
  2. package/actions/add-checklist/add-checklist.mjs +1 -1
  3. package/actions/add-comment/add-comment.mjs +1 -1
  4. package/actions/add-existing-label-to-card/add-existing-label-to-card.mjs +1 -1
  5. package/actions/add-member-to-card/add-member-to-card.mjs +1 -1
  6. package/actions/archive-card/archive-card.mjs +1 -1
  7. package/actions/complete-checklist-item/complete-checklist-item.mjs +1 -1
  8. package/actions/create-board/create-board.mjs +1 -1
  9. package/actions/create-card/create-card.mjs +1 -1
  10. package/actions/create-checklist-item/create-checklist-item.mjs +1 -1
  11. package/actions/create-label/create-label.mjs +1 -1
  12. package/actions/create-list/create-list.mjs +1 -1
  13. package/actions/delete-checklist/delete-checklist.mjs +1 -1
  14. package/actions/find-labels/find-labels.mjs +1 -1
  15. package/actions/find-list/find-list.mjs +1 -1
  16. package/actions/get-board/get-board.mjs +173 -0
  17. package/actions/get-card/get-card.mjs +1 -1
  18. package/actions/get-cards-in-list/get-cards-in-list.mjs +47 -0
  19. package/actions/get-cards-on-board/get-cards-on-board.mjs +34 -0
  20. package/actions/get-list/get-list.mjs +1 -1
  21. package/actions/move-card-to-list/move-card-to-list.mjs +1 -1
  22. package/actions/remove-label-from-card/remove-label-from-card.mjs +1 -1
  23. package/actions/rename-list/rename-list.mjs +1 -1
  24. package/actions/search-boards/search-boards.mjs +1 -1
  25. package/actions/search-cards/search-cards.mjs +1 -1
  26. package/actions/search-checklists/search-checklists.mjs +1 -1
  27. package/actions/search-members/search-members.mjs +1 -1
  28. package/actions/update-card/update-card.mjs +1 -1
  29. package/package.json +1 -1
  30. package/sources/card-archived/card-archived.mjs +1 -1
  31. package/sources/card-due-date-reminder/card-due-date-reminder.mjs +1 -1
  32. package/sources/card-moved/card-moved.mjs +1 -1
  33. package/sources/card-updates/card-updates.mjs +1 -1
  34. package/sources/custom-webhook-events/custom-webhook-events.mjs +1 -1
  35. package/sources/new-activity/new-activity.mjs +1 -1
  36. package/sources/new-attachment/new-attachment.mjs +1 -1
  37. package/sources/new-board/new-board.mjs +1 -1
  38. package/sources/new-card/new-card.mjs +1 -1
  39. package/sources/new-checklist/new-checklist.mjs +1 -1
  40. package/sources/new-comment-added-to-card/new-comment-added-to-card.mjs +1 -1
  41. package/sources/new-label/new-label.mjs +1 -1
  42. package/sources/new-label-added-to-card/new-label-added-to-card.mjs +1 -1
  43. package/sources/new-member-on-card/new-member-on-card.mjs +1 -1
  44. package/sources/new-notification/new-notification.mjs +1 -1
  45. 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.2",
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.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.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.2",
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.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.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.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-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.2",
8
+ version: "0.2.3",
9
9
  type: "action",
10
10
  props: {
11
11
  app,
@@ -7,7 +7,7 @@ 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.2",
10
+ version: "1.0.3",
11
11
  type: "action",
12
12
  props: {
13
13
  app,
@@ -5,7 +5,7 @@ export default {
5
5
  key: "trello-create-checklist-item",
6
6
  name: "Create a Checklist Item",
7
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).",
8
- version: "0.3.0",
8
+ version: "0.3.1",
9
9
  type: "action",
10
10
  props: {
11
11
  app,
@@ -5,7 +5,7 @@ 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.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.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.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.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.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.2",
8
+ version: "0.2.3",
9
9
  type: "action",
10
10
  props: {
11
11
  ...common.props,
@@ -0,0 +1,47 @@
1
+ import app from "../../trello.app.mjs";
2
+
3
+ export default {
4
+ key: "trello-get-cards-in-list",
5
+ name: "Get Cards In A List",
6
+ description: "List the cards in a list. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-lists/#api-lists-id-cards-get).",
7
+ version: "0.0.1",
8
+ type: "action",
9
+ props: {
10
+ app,
11
+ board: {
12
+ propDefinition: [
13
+ app,
14
+ "board",
15
+ ],
16
+ label: "Board ID",
17
+ description: "The ID of the board containing the list",
18
+ },
19
+ listId: {
20
+ propDefinition: [
21
+ app,
22
+ "lists",
23
+ ({ board }) => ({
24
+ board,
25
+ }),
26
+ ],
27
+ type: "string",
28
+ label: "List ID",
29
+ description: "The ID of the list to get cards from",
30
+ optional: false,
31
+ },
32
+ },
33
+ async run({ $ }) {
34
+ const {
35
+ app,
36
+ listId,
37
+ } = this;
38
+
39
+ const response = await app.getCardsInList({
40
+ $,
41
+ listId,
42
+ });
43
+
44
+ $.export("$summary", `Successfully retrieved \`${response.length}\` card(s) from list`);
45
+ return response;
46
+ },
47
+ };
@@ -0,0 +1,34 @@
1
+ import app from "../../trello.app.mjs";
2
+
3
+ export default {
4
+ key: "trello-get-cards-on-board",
5
+ name: "Get Cards On A Board",
6
+ description: "Get all of the open Cards on a Board. [See the documentation](https://developer.atlassian.com/cloud/trello/rest/api-group-boards/#api-boards-id-cards-get).",
7
+ version: "0.0.1",
8
+ type: "action",
9
+ props: {
10
+ app,
11
+ boardId: {
12
+ propDefinition: [
13
+ app,
14
+ "board",
15
+ ],
16
+ label: "Board ID",
17
+ description: "The ID of the board to get cards from",
18
+ },
19
+ },
20
+ async run({ $ }) {
21
+ const {
22
+ app,
23
+ boardId,
24
+ } = this;
25
+
26
+ const response = await app.getCards({
27
+ $,
28
+ boardId,
29
+ });
30
+
31
+ $.export("$summary", `Successfully retrieved \`${response.length}\` card(s) from board`);
32
+ return response;
33
+ },
34
+ };
@@ -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.2",
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.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.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.2",
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.2",
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.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.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.2",
7
+ version: "0.2.3",
8
8
  type: "action",
9
9
  props: {
10
10
  app,
@@ -6,7 +6,7 @@ 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.2",
9
+ version: "0.2.3",
10
10
  type: "action",
11
11
  props: {
12
12
  app,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/trello",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "Pipedream Trello Components",
5
5
  "main": "trello.app.mjs",
6
6
  "keywords": [
@@ -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.2",
9
+ version: "0.1.3",
10
10
  type: "source",
11
11
  props: {
12
12
  ...common.props,
@@ -8,7 +8,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.2",
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.2",
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.2",
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.2",
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-activity",
7
7
  name: "New Board Activity (Instant)",
8
8
  description: "Emit new event for new activity on a board.",
9
- version: "0.1.2",
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-attachment",
7
7
  name: "New Attachment (Instant)",
8
8
  description: "Emit new event when a new attachment is added on a board.",
9
- version: "0.1.2",
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-board",
7
7
  name: "New Board (Instant)",
8
8
  description: "Emit new event for each new board added.",
9
- version: "0.1.2",
9
+ version: "0.1.3",
10
10
  type: "source",
11
11
  dedupe: "unique",
12
12
  methods: {
@@ -6,7 +6,7 @@ export default {
6
6
  key: "trello-new-card",
7
7
  name: "New Card (Instant)",
8
8
  description: "Emit new event for each new Trello card on a board.",
9
- version: "0.1.2",
9
+ version: "0.1.3",
10
10
  type: "source",
11
11
  dedupe: "unique",
12
12
  props: {
@@ -6,7 +6,7 @@ export default {
6
6
  key: "trello-new-checklist",
7
7
  name: "New Checklist (Instant)",
8
8
  description: "Emit new event for each new checklist added to a board.",
9
- version: "0.1.2",
9
+ version: "0.1.3",
10
10
  type: "source",
11
11
  dedupe: "unique",
12
12
  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.2",
9
+ version: "0.2.3",
10
10
  type: "source",
11
11
  dedupe: "unique",
12
12
  props: {
@@ -6,7 +6,7 @@ export default {
6
6
  key: "trello-new-label",
7
7
  name: "New Label Created (Instant)",
8
8
  description: "Emit new event for each new label added to a board.",
9
- version: "0.1.2",
9
+ version: "0.1.3",
10
10
  type: "source",
11
11
  dedupe: "unique",
12
12
  methods: {
@@ -6,7 +6,7 @@ export default {
6
6
  key: "trello-new-label-added-to-card",
7
7
  name: "New Label Added To Card (Instant)",
8
8
  description: "Emit new event for each label added to a card.",
9
- version: "0.1.2",
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-member-on-card",
7
7
  name: "New Member on Card (Instant)",
8
8
  description: "Emit new event for each member that join in a card.",
9
- version: "0.1.2",
9
+ version: "0.1.3",
10
10
  type: "source",
11
11
  dedupe: "unique",
12
12
  methods: {
@@ -5,7 +5,7 @@ export default {
5
5
  key: "trello-new-notification",
6
6
  name: "New Notification",
7
7
  description: "Emit new event for each new Trello notification for the authenticated user.",
8
- version: "0.1.2",
8
+ version: "0.1.3",
9
9
  type: "source",
10
10
  dedupe: "unique",
11
11
  methods: {
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() {