@pipedream/asana 0.6.1 → 0.6.2
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-task-to-section/add-task-to-section.mjs +1 -1
- package/actions/common/common.mjs +0 -2
- package/actions/create-project/create-project.mjs +1 -1
- package/actions/create-subtask/create-subtask.mjs +1 -1
- package/actions/create-task/create-task.mjs +1 -1
- package/actions/create-task-comment/create-task-comment.mjs +1 -1
- package/actions/delete-task/delete-task.mjs +1 -1
- package/actions/find-task-by-id/find-task-by-id.mjs +1 -1
- package/actions/get-tasks-from-task-list/get-tasks-from-task-list.mjs +1 -1
- package/actions/search-projects/search-projects.mjs +1 -1
- package/actions/search-sections/search-sections.mjs +1 -1
- package/actions/search-tasks/search-tasks.mjs +1 -1
- package/actions/search-user-projects/search-user-projects.mjs +1 -1
- package/actions/update-task/update-task.mjs +1 -1
- package/asana.app.mjs +30 -25
- package/package.json +1 -1
- package/sources/common/common.mjs +0 -1
- package/sources/new-completed-task/new-completed-task.mjs +1 -1
- package/sources/new-project/new-project.mjs +1 -1
- package/sources/new-story/new-story.mjs +1 -1
- package/sources/new-subtask/new-subtask.mjs +1 -1
- package/sources/new-tag/new-tag.mjs +1 -1
- package/sources/new-task/new-task.mjs +1 -1
- package/sources/new-team/new-team.mjs +1 -1
- package/sources/new-user/new-user.mjs +1 -1
- package/sources/new-workspace/new-workspace.mjs +1 -1
- package/sources/tag-added-to-task/tag-added-to-task.mjs +1 -1
- package/sources/tags-added-to-any-task/tags-added-to-any-task.mjs +1 -1
- package/sources/task-assigned-in-project/task-assigned-in-project.mjs +1 -1
- package/sources/task-field-updated-in-project/task-field-updated-in-project.mjs +1 -1
- package/sources/task-updated-in-project/task-updated-in-project.mjs +1 -1
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
name: "Add Task To Section",
|
|
6
6
|
description: "Add a task to a specific, existing section. This will remove the task from other sections of the project. [See the documentation](https://developers.asana.com/docs/add-task-to-section)",
|
|
7
7
|
key: "asana-add-task-to-section",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.5",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
...common.props,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "asana-create-project",
|
|
6
6
|
name: "Create Project",
|
|
7
7
|
description: "Create a new project in a workspace or team. [See the documentation](https://developers.asana.com/docs/create-a-project)",
|
|
8
|
-
version: "0.9.
|
|
8
|
+
version: "0.9.5",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
asana,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "asana-create-subtask",
|
|
6
6
|
name: "Create Subtask",
|
|
7
7
|
description: "Creates a new subtask and adds it to the parent task. [See the documentation](https://developers.asana.com/docs/create-a-subtask)",
|
|
8
|
-
version: "0.3.
|
|
8
|
+
version: "0.3.5",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
...common.props,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "asana-create-task",
|
|
6
6
|
name: "Create Task",
|
|
7
7
|
description: "Creates a new task. [See the documentation](https://developers.asana.com/docs/create-a-task)",
|
|
8
|
-
version: "0.3.
|
|
8
|
+
version: "0.3.5",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
...common.props,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "asana-create-task-comment",
|
|
6
6
|
name: "Create Task Comment",
|
|
7
7
|
description: "Adds a comment to a task. [See the documentation](https://developers.asana.com/docs/create-a-story-on-a-task)",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.5",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
...common.props,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "asana-delete-task",
|
|
6
6
|
name: "Delete Task",
|
|
7
7
|
description: "Deletes a specific and existing task. [See the documentation](https://developers.asana.com/docs/delete-a-task)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.6",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
...common.props,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "asana-find-task-by-id",
|
|
6
6
|
name: "Find Task by ID",
|
|
7
7
|
description: "Searches for a task by id. Returns the complete task record for a single task. [See the documentation](https://developers.asana.com/docs/get-a-task)",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.5",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
...common.props,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "asana-get-tasks-from-task-list",
|
|
5
5
|
name: "Get Tasks From Task List",
|
|
6
6
|
description: "Returns the compact list of tasks in a user’s My Tasks list. [See the documentation](https://developers.asana.com/reference/gettasksforusertasklist)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
...common.props,
|
|
@@ -3,7 +3,7 @@ import asana from "../../asana.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
type: "action",
|
|
5
5
|
key: "asana-search-projects",
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.5",
|
|
7
7
|
name: "Search Projects",
|
|
8
8
|
description: "Finds an existing project. [See the documentation](https://developers.asana.com/docs/get-multiple-projects)",
|
|
9
9
|
props: {
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "asana-search-sections",
|
|
5
5
|
name: "Search Sections",
|
|
6
6
|
description: "Searches for a section by name within a particular project. [See the documentation](https://developers.asana.com/docs/get-sections-in-a-project)",
|
|
7
|
-
version: "0.2.
|
|
7
|
+
version: "0.2.5",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
...common.props,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "asana-search-tasks",
|
|
6
6
|
name: "Search Tasks",
|
|
7
7
|
description: "Searches for a Task by name within a Project. [See the documentation](https://developers.asana.com/docs/get-multiple-tasks)",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.5",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
...common.props,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "asana-search-user-projects",
|
|
6
6
|
name: "Get list of user projects",
|
|
7
7
|
description: "Return list of projects given the user and workspace gid. [See the documentation](https://developers.asana.com/docs/get-multiple-projects)",
|
|
8
|
-
version: "0.4.
|
|
8
|
+
version: "0.4.5",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
asana,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "asana-update-task",
|
|
6
6
|
name: "Update Task",
|
|
7
7
|
description: "Updates a specific and existing task. [See the documentation](https://developers.asana.com/docs/update-a-task)",
|
|
8
|
-
version: "0.3.
|
|
8
|
+
version: "0.3.5",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
...common.props,
|
package/asana.app.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { axios } from "@pipedream/platform";
|
|
2
|
+
const DEFAULT_LIMIT = 25;
|
|
2
3
|
|
|
3
4
|
export default {
|
|
4
5
|
type: "app",
|
|
@@ -21,11 +22,12 @@ export default {
|
|
|
21
22
|
description: "List of workspaces. This field uses the workspace GID.",
|
|
22
23
|
type: "string[]",
|
|
23
24
|
async options({ prevContext }) {
|
|
24
|
-
const params =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
const params = {
|
|
26
|
+
limit: DEFAULT_LIMIT,
|
|
27
|
+
};
|
|
28
|
+
if (prevContext?.offset) {
|
|
29
|
+
params.offset = prevContext.offset;
|
|
30
|
+
}
|
|
29
31
|
const {
|
|
30
32
|
data: workspaces, next_page: next,
|
|
31
33
|
} = await this.getWorkspaces({
|
|
@@ -62,11 +64,10 @@ export default {
|
|
|
62
64
|
async options({
|
|
63
65
|
workspace, prevContext,
|
|
64
66
|
}) {
|
|
65
|
-
const params =
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
: {};
|
|
67
|
+
const params = {
|
|
68
|
+
workspace,
|
|
69
|
+
limit: DEFAULT_LIMIT,
|
|
70
|
+
};
|
|
70
71
|
if (prevContext?.offset) {
|
|
71
72
|
params.offset = prevContext.offset;
|
|
72
73
|
}
|
|
@@ -92,11 +93,12 @@ export default {
|
|
|
92
93
|
description: "List of tags. This field uses the tag GID.",
|
|
93
94
|
type: "string[]",
|
|
94
95
|
async options({ prevContext }) {
|
|
95
|
-
const params =
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
const params = {
|
|
97
|
+
limit: DEFAULT_LIMIT,
|
|
98
|
+
};
|
|
99
|
+
if (prevContext?.offset) {
|
|
100
|
+
params.offset = prevContext.offset;
|
|
101
|
+
}
|
|
100
102
|
const {
|
|
101
103
|
data: tags, next_page: next,
|
|
102
104
|
} = await this.getTags({
|
|
@@ -119,11 +121,12 @@ export default {
|
|
|
119
121
|
description: "List of users. This field uses the user GID.",
|
|
120
122
|
type: "string[]",
|
|
121
123
|
async options({ prevContext }) {
|
|
122
|
-
const params =
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
const params = {
|
|
125
|
+
limit: DEFAULT_LIMIT,
|
|
126
|
+
};
|
|
127
|
+
if (prevContext?.offset) {
|
|
128
|
+
params.offset = prevContext.offset;
|
|
129
|
+
}
|
|
127
130
|
const {
|
|
128
131
|
data: users, next_page: next,
|
|
129
132
|
} = await this.getUsers({
|
|
@@ -153,6 +156,7 @@ export default {
|
|
|
153
156
|
}
|
|
154
157
|
const params = {
|
|
155
158
|
project,
|
|
159
|
+
limit: DEFAULT_LIMIT,
|
|
156
160
|
};
|
|
157
161
|
if (prevContext?.offset) {
|
|
158
162
|
params.offset = prevContext.offset;
|
|
@@ -186,11 +190,12 @@ export default {
|
|
|
186
190
|
if (!project) {
|
|
187
191
|
return [];
|
|
188
192
|
}
|
|
189
|
-
const params =
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
193
|
+
const params = {
|
|
194
|
+
limit: DEFAULT_LIMIT,
|
|
195
|
+
};
|
|
196
|
+
if (prevContext?.offset) {
|
|
197
|
+
params.offset = prevContext.offset;
|
|
198
|
+
}
|
|
194
199
|
const {
|
|
195
200
|
data: sections, next_page: next,
|
|
196
201
|
} = await this.getSections({
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "asana-new-project",
|
|
7
7
|
name: "New Project Added To Workspace (Instant)",
|
|
8
8
|
description: "Emit new event for each new project added to a workspace.",
|
|
9
|
-
version: "0.1.
|
|
9
|
+
version: "0.1.5",
|
|
10
10
|
dedupe: "unique",
|
|
11
11
|
props: {
|
|
12
12
|
...common.props,
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
type: "source",
|
|
8
8
|
name: "New Task (Instant)",
|
|
9
9
|
description: "Emit new event for each task added to a project. [See docs here](https://developers.asana.com/docs/establish-a-webhook)",
|
|
10
|
-
version: "0.1.
|
|
10
|
+
version: "0.1.5",
|
|
11
11
|
dedupe: "unique",
|
|
12
12
|
props: {
|
|
13
13
|
...common.props,
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
type: "source",
|
|
8
8
|
name: "Tags added to any task (Instant)",
|
|
9
9
|
description: "Emit new event each time a tag is added to any task, optionally filtering by a given set of tags.",
|
|
10
|
-
version: "0.0.
|
|
10
|
+
version: "0.0.4",
|
|
11
11
|
dedupe: "unique",
|
|
12
12
|
props: {
|
|
13
13
|
...common.props,
|