Skip to content

Commit

Permalink
Asana & GoogleSheets improvements (#495)
Browse files Browse the repository at this point in the history
* wip: add batchUpdateValues

* wip: refactor asana to use latest common http util

* wip: add sendRequest and createTaskStory

* update readme

* add jsdocs and request func

* wip: add getValues

* wip clean up

* improvements

* add changelog

* add changeset

* response without body

* rename commonRequest to requestHelper

* fix grammar

* improve createTaskStory

* bump version and update their changelog
  • Loading branch information
mtuchi authored Apr 3, 2024
1 parent 904e434 commit b7cdec6
Show file tree
Hide file tree
Showing 10 changed files with 482 additions and 184 deletions.
8 changes: 8 additions & 0 deletions packages/asana/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @openfn/language-asana

## 3.1.0

### Minor Changes

- 673e41e8: - Add `createTaskStory()` function
- Replaced common `http` with a more efficient implementation from
`common/util` http

## 3.0.1

### Patch Changes
Expand Down
1 change: 1 addition & 0 deletions packages/asana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ definition.
Using Asana's API requires having an API token. To generate that token, head to
the [Asana developer console](https://app.asana.com/0/developer-console) and
enter the **Personal access tokens** section.
[For API Reference docs](https://developers.asana.com/docs/api-explorer)

There you can click on **+New access token**. A prompt will be opened allowing
you to give the token a name and then create it.
Expand Down
10 changes: 5 additions & 5 deletions packages/asana/ast.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
{
"title": "example",
"description": "getTask(\"taskGid\",\n {\n opt_fields: \"name,notes,assignee\"\n })"
"description": "getTask(\"1206933955023739\", {\n opt_fields: \"name,notes,assignee\",\n});"
},
{
"title": "function",
Expand Down Expand Up @@ -80,7 +80,7 @@
},
{
"title": "example",
"description": "getTasks(\"projectGid\",\n {\n opt_fields: \"name,notes,assignee\"\n })"
"description": "getTasks(\"1206933955023739\", {\n opt_fields: \"name,notes,assignee\",\n});"
},
{
"title": "function",
Expand Down Expand Up @@ -143,7 +143,7 @@
},
{
"title": "example",
"description": "updateTask(\"taskGid\",\n {\n name: 'test', \"approval_status\": \"pending\", \"assignee\": \"12345\"\n }\n)"
"description": "updateTask(\"1206933955023739\", {\n name: \"test\",\n approval_status: \"pending\",\n assignee: \"12345\",\n});"
},
{
"title": "function",
Expand Down Expand Up @@ -205,7 +205,7 @@
},
{
"title": "example",
"description": "createTask(\n {\n name: 'test', \"approval_status\": \"pending\", \"assignee\": \"12345\"\n }\n)"
"description": "createTask({\n name: \"test\",\n approval_status: \"pending\",\n assignee: \"12345\",\n projects: [\"1206933955023739\"],\n});"
},
{
"title": "function",
Expand Down Expand Up @@ -259,7 +259,7 @@
},
{
"title": "example",
"description": "upsertTask(\n \"1201382240880\",\n {\n \"externalId\": \"name\",\n \"data\": {\n name: 'test', \"approval_status\": \"pending\", \"assignee\": \"12345\"\n }\n\n }\n)"
"description": "upsertTask(\"1201382240880\", {\n externalId: \"name\",\n data: {\n name: \"test\",\n approval_status: \"pending\",\n projects: [\"1201382240880\"],\n assignee: \"12345\",\n },\n});"
},
{
"title": "function",
Expand Down
2 changes: 1 addition & 1 deletion packages/asana/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openfn/language-asana",
"version": "3.0.1",
"version": "3.1.0",
"description": "An adaptor to access objects in Asana",
"homepage": "https://docs.openfn.org",
"repository": {
Expand Down
Loading

0 comments on commit b7cdec6

Please sign in to comment.