@pipedream/trello 1.0.1 → 1.1.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 (42) 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 +2 -2
  9. package/actions/create-card/create-card.mjs +3 -3
  10. package/actions/create-checklist-item/create-checklist-item.mjs +39 -1
  11. package/actions/create-label/create-label.mjs +2 -2
  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-card/get-card.mjs +1 -1
  17. package/actions/get-list/get-list.mjs +1 -1
  18. package/actions/move-card-to-list/move-card-to-list.mjs +1 -1
  19. package/actions/remove-label-from-card/remove-label-from-card.mjs +1 -1
  20. package/actions/rename-list/rename-list.mjs +1 -1
  21. package/actions/search-boards/search-boards.mjs +1 -1
  22. package/actions/search-cards/search-cards.mjs +1 -1
  23. package/actions/search-checklists/search-checklists.mjs +1 -1
  24. package/actions/search-members/search-members.mjs +1 -1
  25. package/actions/update-card/update-card.mjs +3 -3
  26. package/common/constants.mjs +40 -0
  27. package/package.json +1 -1
  28. package/sources/card-archived/card-archived.mjs +1 -1
  29. package/sources/card-due-date-reminder/card-due-date-reminder.mjs +3 -3
  30. package/sources/card-moved/card-moved.mjs +1 -1
  31. package/sources/card-updates/card-updates.mjs +1 -1
  32. package/sources/custom-webhook-events/custom-webhook-events.mjs +1 -1
  33. package/sources/new-activity/new-activity.mjs +2 -2
  34. package/sources/new-attachment/new-attachment.mjs +1 -1
  35. package/sources/new-board/new-board.mjs +1 -1
  36. package/sources/new-card/new-card.mjs +1 -1
  37. package/sources/new-checklist/new-checklist.mjs +1 -1
  38. package/sources/new-comment-added-to-card/new-comment-added-to-card.mjs +1 -1
  39. package/sources/new-label/new-label.mjs +1 -1
  40. package/sources/new-label-added-to-card/new-label-added-to-card.mjs +1 -1
  41. package/sources/new-member-on-card/new-member-on-card.mjs +1 -1
  42. package/sources/new-notification/new-notification.mjs +1 -1
@@ -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.1",
9
+ version: "1.0.2",
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.1",
7
+ version: "0.2.2",
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.1",
7
+ version: "0.2.2",
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.1",
7
+ version: "0.1.2",
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.1",
7
+ version: "0.2.2",
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.1",
7
+ version: "0.2.2",
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.1",
7
+ version: "0.2.2",
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.1",
8
+ version: "0.2.2",
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.1",
10
+ version: "1.0.2",
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.2.1",
8
+ version: "0.3.0",
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.1",
8
+ version: "0.2.2",
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.1",
7
+ version: "0.2.2",
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.1",
7
+ version: "0.2.2",
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.1",
8
+ version: "0.2.2",
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.1",
8
+ version: "0.2.2",
9
9
  type: "action",
10
10
  props: {
11
11
  ...common.props,
@@ -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.1",
8
+ version: "0.2.2",
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.1",
7
+ version: "0.1.2",
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.1",
8
+ version: "0.2.2",
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.1",
7
+ version: "0.2.2",
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.1",
8
+ version: "0.1.2",
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.1",
7
+ version: "0.3.2",
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.1",
7
+ version: "0.2.2",
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.1",
7
+ version: "0.2.2",
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.1",
7
+ version: "0.2.2",
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.1",
9
+ version: "0.2.2",
10
10
  type: "action",
11
11
  props: {
12
12
  app,
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/trello",
3
- "version": "1.0.1",
3
+ "version": "1.1.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.1",
9
+ version: "0.1.2",
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.1",
11
+ version: "0.1.2",
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.1",
9
+ version: "0.1.2",
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.1",
9
+ version: "0.1.2",
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.1",
9
+ version: "0.1.2",
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.1",
9
+ version: "0.1.2",
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.1",
9
+ version: "0.1.2",
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.1",
9
+ version: "0.1.2",
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.1",
9
+ version: "0.1.2",
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.1",
9
+ version: "0.1.2",
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.1",
9
+ version: "0.2.2",
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.1",
9
+ version: "0.1.2",
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.1",
9
+ version: "0.1.2",
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.1",
9
+ version: "0.1.2",
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.1",
8
+ version: "0.1.2",
9
9
  type: "source",
10
10
  dedupe: "unique",
11
11
  methods: {