@pipedream/trello 1.2.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.
@@ -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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/trello",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Pipedream Trello Components",
5
5
  "main": "trello.app.mjs",
6
6
  "keywords": [