Skip to content

Commit d12f4e6

Browse files
committed
Conflict
2 parents 240c714 + aa6fd81 commit d12f4e6

File tree

231 files changed

+8245
-603
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+8245
-603
lines changed

components/asana/actions/add-task-to-section/add-task-to-section.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "Add Task To Section",
66
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)",
77
key: "asana-add-task-to-section",
8-
version: "0.2.9",
8+
version: "0.2.10",
99
type: "action",
1010
props: {
1111
...common.props,

components/asana/actions/create-project/create-project.mjs

Lines changed: 76 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,33 @@ export default {
55
key: "asana-create-project",
66
name: "Create Project",
77
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.2",
8+
version: "0.10.3",
99
type: "action",
1010
props: {
1111
asana,
1212
workspace: {
1313
label: "Workspace",
14-
description: "Gid of a workspace.",
14+
description: "GID of a workspace.",
1515
type: "string",
1616
propDefinition: [
1717
asana,
1818
"workspaces",
1919
],
2020
},
21+
team: {
22+
propDefinition: [
23+
asana,
24+
"teams",
25+
({ workspace }) => ({
26+
workspaces: [
27+
workspace,
28+
],
29+
}),
30+
],
31+
type: "string",
32+
label: "Team",
33+
description: "The team that this project is shared with. If the workspace for your project is an organization, you must supply a team to share the project with",
34+
},
2135
name: {
2236
label: "Name",
2337
description: "Name of the project. This is generally a short sentence fragment that fits on a line in the UI for maximum readability. However, it can be longer.",
@@ -28,14 +42,9 @@ export default {
2842
description: "Free-form textual information associated with the project (ie., its description).",
2943
type: "string",
3044
},
31-
text: {
32-
label: "Text",
33-
description: "The text content of the status update.",
34-
type: "string",
35-
},
3645
color: {
3746
label: "Color",
38-
description: "The color associated with the status update.",
47+
description: "The color associated with the status update",
3948
type: "string",
4049
options: constants.COLORS,
4150
optional: true,
@@ -46,9 +55,9 @@ export default {
4655
type: "string",
4756
optional: true,
4857
},
49-
default_view: {
58+
defaultView: {
5059
label: "Default View",
51-
description: "The default view (list, board, calendar, or timeline) of a project.",
60+
description: "The default view (list, board, calendar, or timeline) of a project",
5261
type: "string",
5362
options: [
5463
"list",
@@ -59,27 +68,31 @@ export default {
5968
default: "calendar",
6069
optional: true,
6170
},
62-
public: {
63-
label: "Public",
64-
description: "True if the project is public to its team.",
65-
type: "boolean",
71+
privacySetting: {
72+
label: "Privacy Setting",
73+
description: "The privacy setting of the project. Note: Administrators in your organization may restrict the values of `privacy_setting`.",
74+
type: "string",
6675
optional: true,
67-
default: false,
76+
options: [
77+
"public_to_workspace",
78+
"private_to_team",
79+
"private",
80+
],
6881
},
6982
archived: {
7083
label: "Archived",
71-
description: "Archived projects do not show in the UI by default and may be treated differently for queries.",
84+
description: "Archived projects do not show in the UI by default and may be treated differently for queries",
7285
type: "boolean",
7386
optional: true,
7487
default: false,
7588
},
76-
due_on: {
89+
dueOn: {
7790
label: "Due On",
7891
description: "The day on which this project is due. This takes a date with format YYYY-MM-DD.",
7992
type: "string",
8093
optional: true,
8194
},
82-
start_on: {
95+
startOn: {
8396
label: "Start On",
8497
description: "The day on which work for this project begins. This takes a date with format YYYY-MM-DD. `Due On` must be present in the request when setting or unsetting the `Start On` parameter. Additionally, `Start On` and `Due On` cannot be the same date.",
8598
type: "string",
@@ -98,15 +111,15 @@ export default {
98111
}),
99112
],
100113
},
101-
html_notes: {
114+
htmlNotes: {
102115
label: "HTML Notes",
103-
description: "The notes of the project with formatting as HTML.",
116+
description: "The notes of the project with formatting as HTML",
104117
type: "string",
105118
optional: true,
106119
},
107120
owner: {
108121
label: "Owner",
109-
description: "The current owner of the project.",
122+
description: "The current owner of the project",
110123
type: "string",
111124
optional: true,
112125
propDefinition: [
@@ -117,6 +130,38 @@ export default {
117130
}),
118131
],
119132
},
133+
defaultAccessLevel: {
134+
type: "string",
135+
label: "Default Access Level",
136+
description: "The default access for users or teams who join or are added as members to the project",
137+
optional: true,
138+
options: [
139+
"admin",
140+
"editor",
141+
"commenter",
142+
"viewer",
143+
],
144+
},
145+
minimumAccessLevelForCustomization: {
146+
type: "string",
147+
label: "Minimum Access Level for Customization",
148+
description: "The minimum access level needed for project members to modify this project's workflow and appearance",
149+
optional: true,
150+
options: [
151+
"admin",
152+
"editor",
153+
],
154+
},
155+
minimumAccessLevelForSharing: {
156+
type: "string",
157+
label: "Minimum Access Level for Sharing",
158+
description: "The minimum access level needed for project members to share the project with others",
159+
optional: true,
160+
options: [
161+
"admin",
162+
"editor",
163+
],
164+
},
120165
},
121166
async run({ $ }) {
122167
const response = await this.asana._makeRequest({
@@ -126,24 +171,27 @@ export default {
126171
data: {
127172
name: this.name,
128173
notes: this.notes,
129-
text: this.text,
174+
team: this.team,
130175
color: this.color,
131176
workspace: this.workspace,
132-
default_view: this.default_view,
177+
default_view: this.defaultView,
133178
title: this.title,
134-
public: this.public,
179+
privacy_setting: this.privacySetting,
135180
archived: this.archived,
136-
due_on: this.due_on,
137-
start_on: this.start_on,
181+
due_on: this.dueOn,
182+
start_on: this.startOn,
138183
followers: this.followers,
139-
html_notes: this.html_notes,
184+
html_notes: this.htmlNotes,
140185
owner: this.owner,
186+
default_access_level: this.defaultAccessLevel,
187+
minimum_access_level_for_customization: this.minimumAccessLevelForCustomization,
188+
minimum_access_level_for_sharing: this.minimumAccessLevelForSharing,
141189
},
142190
},
143191
$,
144192
});
145193

146-
$.export("$summary", "Successfully created project");
194+
$.export("$summary", `Successfully created project with GID: ${response.data.gid}`);
147195

148196
return response;
149197
},

components/asana/actions/create-subtask/create-subtask.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "asana-create-subtask",
66
name: "Create Subtask",
77
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.2",
8+
version: "0.4.3",
99
type: "action",
1010
props: {
1111
...common.props,

components/asana/actions/create-task-comment/create-task-comment.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "asana-create-task-comment",
66
name: "Create Task Comment",
77
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.9",
8+
version: "0.2.10",
99
type: "action",
1010
props: {
1111
...common.props,

components/asana/actions/create-task-from-template/create-task-from-template.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
name: "Create Task from Template",
55
key: "asana-create-task-from-template",
66
description: "Creates a new task from a task template. [See the documentation](https://developers.asana.com/reference/instantiatetask)",
7-
version: "0.0.4",
7+
version: "0.0.5",
88
type: "action",
99
props: {
1010
...common.props,

components/asana/actions/create-task/create-task.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "asana-create-task",
66
name: "Create Task",
77
description: "Creates a new task. [See the documentation](https://developers.asana.com/docs/create-a-task)",
8-
version: "0.4.2",
8+
version: "0.4.3",
99
type: "action",
1010
props: {
1111
...common.props,

components/asana/actions/delete-task/delete-task.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "asana-delete-task",
66
name: "Delete Task",
77
description: "Deletes a specific and existing task. [See the documentation](https://developers.asana.com/docs/delete-a-task)",
8-
version: "0.0.10",
8+
version: "0.0.11",
99
type: "action",
1010
props: {
1111
...common.props,

components/asana/actions/find-task-by-id/find-task-by-id.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "asana-find-task-by-id",
66
name: "Find Task by ID",
77
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.9",
8+
version: "0.2.10",
99
type: "action",
1010
props: {
1111
...common.props,

components/asana/actions/get-tasks-from-task-list/get-tasks-from-task-list.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "asana-get-tasks-from-task-list",
55
name: "Get Tasks From Task List",
66
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",
7+
version: "0.0.8",
88
type: "action",
99
props: {
1010
...common.props,

components/asana/actions/search-projects/search-projects.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import asana from "../../asana.app.mjs";
33
export default {
44
type: "action",
55
key: "asana-search-projects",
6-
version: "0.2.9",
6+
version: "0.2.10",
77
name: "Search Projects",
88
description: "Finds an existing project. [See the documentation](https://developers.asana.com/docs/get-multiple-projects)",
99
props: {

0 commit comments

Comments
 (0)