Skip to content

Commit

Permalink
Small changes to Asana Update Task and Google Sheets Add, Delete and …
Browse files Browse the repository at this point in the history
…Select Row functions

- update asana task has a new input/output for whether the task was completed
- google sheets' add row now includes the column values added in its outputs
- google sheets' delete row, select row and update row no longer require a 'cell value' input (but still accept it as input)

Co-authored-by: github-actions <[email protected]>
  • Loading branch information
github-actions[bot] and WilliamBergamin authored May 27, 2024
1 parent 6a11a48 commit c0e2965
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 18 deletions.
6 changes: 6 additions & 0 deletions src/connectors/asana/functions/update_task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export default DefineConnector({
description: "Enter text",
title: "New description",
},
completed: { type: Schema.types.boolean, title: "Mark complete" },
asana_access_token: {
type: Schema.slack.types.oauth2,
description: "Asana credential to use",
Expand Down Expand Up @@ -73,6 +74,11 @@ export default DefineConnector({
description: "The datetime the task was created at",
title: "Created at",
},
completed: {
type: Schema.types.boolean,
description: "Indicates task completion status",
title: "Is Task Completed",
},
permalink_url: {
type: Schema.types.string,
description: "Link for the created Task",
Expand Down
1 change: 1 addition & 0 deletions src/connectors/asana/functions/update_task_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ Deno.test("All outputs of Slack function UpdateTask should exist", () => {
assertExists(step.outputs.due_at);
assertExists(step.outputs.description);
assertExists(step.outputs.created_at);
assertExists(step.outputs.completed);
assertExists(step.outputs.permalink_url);
});
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export default DefineConnector({
description: "Time when step ended",
title: "Time when step ended",
},
column_values: { type: Schema.types.object, title: "Column values" },
},
required: [
"spreadsheet_url",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ Deno.test("All outputs of Slack function AddSpreadsheetRow should exist", () =>
assertExists(step.outputs.spreadsheet_id);
assertExists(step.outputs.timestamp_started);
assertExists(step.outputs.timestamp_completed);
assertExists(step.outputs.column_values);
});
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,7 @@ export default DefineConnector({
title: "Google Access Token",
},
},
required: [
"spreadsheet_id",
"sheet",
"column_name",
"cell_value",
"google_access_token",
],
required: ["spreadsheet_id", "sheet", "column_name", "google_access_token"],
},
output_parameters: { properties: {}, required: [] },
});
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Deno.test("DeleteSpreadsheetRow can be used as a Slack function in a workflow st
spreadsheet_id: "test",
sheet: "test",
column_name: "test",
cell_value: "test",
google_access_token: "test",
});
const actual = testWorkflow.steps[0].export();
Expand All @@ -26,7 +25,6 @@ Deno.test("DeleteSpreadsheetRow can be used as a Slack function in a workflow st
spreadsheet_id: "test",
sheet: "test",
column_name: "test",
cell_value: "test",
google_access_token: "test",
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export default DefineConnector({
"spreadsheet_id",
"sheet_title",
"column_name",
"cell_value",
"google_access_token",
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Deno.test("SelectSpreadsheetRow can be used as a Slack function in a workflow st
spreadsheet_id: "test",
sheet_title: "test",
column_name: "test",
cell_value: "test",
google_access_token: "test",
});
const actual = testWorkflow.steps[0].export();
Expand All @@ -26,7 +25,6 @@ Deno.test("SelectSpreadsheetRow can be used as a Slack function in a workflow st
spreadsheet_id: "test",
sheet_title: "test",
column_name: "test",
cell_value: "test",
google_access_token: "test",
});
});
Expand All @@ -41,7 +39,6 @@ Deno.test("All outputs of Slack function SelectSpreadsheetRow should exist", ()
spreadsheet_id: "test",
sheet_title: "test",
column_name: "test",
cell_value: "test",
google_access_token: "test",
});
assertExists(step.outputs.column_values);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export default DefineConnector({
"spreadsheet_id",
"sheet_title",
"column_name",
"cell_value",
"updated_values",
"google_access_token",
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Deno.test("UpdateSpreadsheetRow can be used as a Slack function in a workflow st
spreadsheet_id: "test",
sheet_title: "test",
column_name: "test",
cell_value: "test",
updated_values: "test",
google_access_token: "test",
});
Expand All @@ -27,7 +26,6 @@ Deno.test("UpdateSpreadsheetRow can be used as a Slack function in a workflow st
spreadsheet_id: "test",
sheet_title: "test",
column_name: "test",
cell_value: "test",
updated_values: "test",
google_access_token: "test",
});
Expand All @@ -43,7 +41,6 @@ Deno.test("All outputs of Slack function UpdateSpreadsheetRow should exist", ()
spreadsheet_id: "test",
sheet_title: "test",
column_name: "test",
cell_value: "test",
updated_values: "test",
google_access_token: "test",
});
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/mod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** This file was autogenerated on Mon May 13 2024. Follow the steps in src/schema/slack/functions/README.md to rebuild **/
/** This file was autogenerated on Mon May 27 2024. Follow the steps in src/schema/slack/functions/README.md to rebuild **/
import AdobeSign from "./adobe.sign/mod.ts";
import Airtable from "./airtable/mod.ts";
import Asana from "./asana/mod.ts";
Expand Down

0 comments on commit c0e2965

Please sign in to comment.