@pipedream/asana 0.9.0 → 0.10.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-task-to-section/add-task-to-section.mjs +1 -1
- 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/create-task-from-template/create-task-from-template.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/list-task-stories/list-task-stories.mjs +1 -1
- package/actions/list-teams/list-teams.mjs +80 -0
- package/actions/list-users/list-users.mjs +60 -0
- 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-tasks-premium/search-tasks-premium.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 +16 -0
- package/package.json +1 -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.13",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -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.10.
|
|
8
|
+
version: "0.10.7",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -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.4.
|
|
8
|
+
version: "0.4.6",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -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.4.
|
|
8
|
+
version: "0.4.6",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -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.13",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
name: "Create Task from Template",
|
|
5
5
|
key: "asana-create-task-from-template",
|
|
6
6
|
description: "Creates a new task from a task template. [See the documentation](https://developers.asana.com/reference/instantiatetask)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.8",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -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.14",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: true,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -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.13",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -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.11",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "asana-list-task-stories",
|
|
5
5
|
name: "List Task Stories",
|
|
6
6
|
description: "List stories (including comments) for a task. [See the documentation](https://developers.asana.com/reference/getstoriesfortask)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.4",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import asana from "../../asana.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "asana-list-teams",
|
|
5
|
+
name: "List Teams",
|
|
6
|
+
description: "Retrieves all teams in a specified Asana workspace. Use this action to discover available teams for creating projects, adding team members, or organizing work by department. Requires a workspace GID, which you can obtain from the **List Workspaces** action. The authenticated user must have access to the workspace; only teams visible to the user are returned. Results are paginated (default 25, max 100 per page); use the returned offset token to fetch additional pages. To include optional fields like description, visibility, or access levels, specify them in Opt Fields. Consider following up with **Create Project** to create a project under a team, or **List Users** to find team members. [See the documentation](https://developers.asana.com/reference/getteamsforworkspace)",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
13
|
+
type: "action",
|
|
14
|
+
props: {
|
|
15
|
+
asana,
|
|
16
|
+
workspace: {
|
|
17
|
+
propDefinition: [
|
|
18
|
+
asana,
|
|
19
|
+
"workspaces",
|
|
20
|
+
],
|
|
21
|
+
type: "string",
|
|
22
|
+
label: "Workspace",
|
|
23
|
+
description: "The workspace to list teams for. This field uses the workspace GID (e.g. \"120111222333444\").",
|
|
24
|
+
},
|
|
25
|
+
optFields: {
|
|
26
|
+
type: "string[]",
|
|
27
|
+
label: "Opt Fields",
|
|
28
|
+
description: "This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a list of the properties you wish to include (e.g. `[\"name\", \"description\", \"organization\"]`).",
|
|
29
|
+
optional: true,
|
|
30
|
+
options: [
|
|
31
|
+
"resource_type",
|
|
32
|
+
"name",
|
|
33
|
+
"description",
|
|
34
|
+
"html_description",
|
|
35
|
+
"organization",
|
|
36
|
+
"permalink_url",
|
|
37
|
+
"visibility",
|
|
38
|
+
"edit_team_name_or_description_access_level",
|
|
39
|
+
"edit_team_visibility_or_trash_team_access_level",
|
|
40
|
+
"member_invite_management_access_level",
|
|
41
|
+
"guest_invite_management_access_level",
|
|
42
|
+
"join_request_management_access_level",
|
|
43
|
+
"team_member_removal_access_level",
|
|
44
|
+
"team_content_management_access_level",
|
|
45
|
+
"endorsed",
|
|
46
|
+
"custom_field_settings",
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
limit: {
|
|
50
|
+
type: "integer",
|
|
51
|
+
label: "Limit",
|
|
52
|
+
description: "The number of teams to return per page. Defaults to 25. Maximum is 100.",
|
|
53
|
+
optional: true,
|
|
54
|
+
default: 25,
|
|
55
|
+
min: 1,
|
|
56
|
+
max: 100,
|
|
57
|
+
},
|
|
58
|
+
offset: {
|
|
59
|
+
type: "string",
|
|
60
|
+
label: "Offset",
|
|
61
|
+
description: "Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. Note: You can only pass in an offset that was returned to you via a previously paginated request (e.g. \"3:0:abcdef123456\").",
|
|
62
|
+
optional: true,
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
async run({ $ }) {
|
|
66
|
+
const response = await this.asana.getTeamsForWorkspace({
|
|
67
|
+
$,
|
|
68
|
+
workspace: this.workspace,
|
|
69
|
+
params: {
|
|
70
|
+
opt_fields: Array.isArray(this.optFields) && this.optFields.length
|
|
71
|
+
? this.optFields.join(",")
|
|
72
|
+
: undefined,
|
|
73
|
+
limit: this.limit,
|
|
74
|
+
offset: this.offset?.trim() || undefined,
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
$.export("$summary", `Successfully fetched ${response.data?.length} teams`);
|
|
78
|
+
return response;
|
|
79
|
+
},
|
|
80
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import asana from "../../asana.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "asana-list-users",
|
|
5
|
+
name: "List Users",
|
|
6
|
+
description: "Retrieves all users in a specified Asana workspace. Use this action to populate assignee choices for tasks, verify workspace membership, or audit user access. Requires a workspace GID, which you can obtain from the **List Workspaces** action. The authenticated user must have access to the workspace. Results are paginated; use the returned offset token to fetch additional pages. To include optional fields like email or photo, specify them in Opt Fields. Consider following up with **Create Task** or **Update Task** to assign work to the retrieved users. [See the documentation](https://developers.asana.com/reference/getusersforworkspace)",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
13
|
+
type: "action",
|
|
14
|
+
props: {
|
|
15
|
+
asana,
|
|
16
|
+
workspace: {
|
|
17
|
+
propDefinition: [
|
|
18
|
+
asana,
|
|
19
|
+
"workspaces",
|
|
20
|
+
],
|
|
21
|
+
type: "string",
|
|
22
|
+
label: "Workspace",
|
|
23
|
+
description: "The workspace to list users for. This field uses the workspace GID (e.g., \"1234567890123456\").",
|
|
24
|
+
},
|
|
25
|
+
optFields: {
|
|
26
|
+
type: "string[]",
|
|
27
|
+
label: "Opt Fields",
|
|
28
|
+
description: "This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a list of the properties you wish to include (e.g., `[\"name\", \"email\", \"photo\"]`).",
|
|
29
|
+
optional: true,
|
|
30
|
+
options: [
|
|
31
|
+
"resource_type",
|
|
32
|
+
"name",
|
|
33
|
+
"email",
|
|
34
|
+
"photo",
|
|
35
|
+
"workspaces",
|
|
36
|
+
"custom_fields",
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
offset: {
|
|
40
|
+
type: "string",
|
|
41
|
+
label: "Offset",
|
|
42
|
+
description: "Offset token. An offset to the next page returned by the API. A pagination request will return an offset token, which can be used as an input parameter to the next request. If an offset is not passed in, the API will return the first page of results. Note: You can only pass in an offset that was returned to you via a previously paginated request (e.g., \"5f4d3a2b\").",
|
|
43
|
+
optional: true,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
async run({ $ }) {
|
|
47
|
+
const response = await this.asana.getUsers({
|
|
48
|
+
$,
|
|
49
|
+
params: {
|
|
50
|
+
workspace: this.workspace,
|
|
51
|
+
opt_fields: Array.isArray(this.optFields) && this.optFields.length
|
|
52
|
+
? this.optFields.join(",")
|
|
53
|
+
: undefined,
|
|
54
|
+
offset: this.offset?.trim() || undefined,
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
$.export("$summary", `Successfully fetched ${response.data?.length} users`);
|
|
58
|
+
return response;
|
|
59
|
+
},
|
|
60
|
+
};
|
|
@@ -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.13",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -6,7 +6,7 @@ export default {
|
|
|
6
6
|
key: "asana-search-tasks",
|
|
7
7
|
name: "Search Tasks",
|
|
8
8
|
description: "Searches for a Task by name within a Project. [See the documentation](https://developers.asana.com/docs/get-multiple-tasks)",
|
|
9
|
-
version: "0.3.
|
|
9
|
+
version: "0.3.7",
|
|
10
10
|
annotations: {
|
|
11
11
|
destructiveHint: false,
|
|
12
12
|
openWorldHint: true,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "asana-search-tasks-premium",
|
|
6
6
|
name: "Search Tasks Premium",
|
|
7
7
|
description: "Searches for a task by name, assignee, section, project, completed since, and modified since. Requires a Premium Asana account. [See the documentation](https://developers.asana.com/reference/searchtasksforworkspace)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.2",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -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.5.
|
|
8
|
+
version: "0.5.6",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -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.4.
|
|
8
|
+
version: "0.4.6",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
package/asana.app.mjs
CHANGED
|
@@ -555,6 +555,22 @@ export default {
|
|
|
555
555
|
|
|
556
556
|
return teams;
|
|
557
557
|
},
|
|
558
|
+
/**
|
|
559
|
+
* Get an Asana Team list for a workspace.
|
|
560
|
+
*
|
|
561
|
+
* @param {string} workspace - A Workspace GID.
|
|
562
|
+
* @param {object} opts - The params to filter the teams.
|
|
563
|
+
*
|
|
564
|
+
* @returns {string} An Asana Team list.
|
|
565
|
+
*/
|
|
566
|
+
async getTeamsForWorkspace({
|
|
567
|
+
workspace, ...opts
|
|
568
|
+
}) {
|
|
569
|
+
return this._makeRequest({
|
|
570
|
+
path: `workspaces/${workspace}/teams`,
|
|
571
|
+
...opts,
|
|
572
|
+
});
|
|
573
|
+
},
|
|
558
574
|
/**
|
|
559
575
|
* Get an Asana Workspace Membership.
|
|
560
576
|
*
|
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.12",
|
|
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.12",
|
|
11
11
|
dedupe: "unique",
|
|
12
12
|
props: {
|
|
13
13
|
...common.props,
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
type: "source",
|
|
8
8
|
name: "New 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.11",
|
|
11
11
|
dedupe: "unique",
|
|
12
12
|
props: {
|
|
13
13
|
...common.props,
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
type: "source",
|
|
8
8
|
name: "New Task Assigned in Project (Instant)",
|
|
9
9
|
description: "Emit new event each time a task is assigned, reassigned or unassigned.",
|
|
10
|
-
version: "0.1.
|
|
10
|
+
version: "0.1.5",
|
|
11
11
|
dedupe: "unique",
|
|
12
12
|
props: {
|
|
13
13
|
...common.props,
|