Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest generated changes #55

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions src/connectors/asana/functions/add_task_to_section.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/
import { DefineConnector } from "../../../deps.ts";
import { Schema } from "../../../deps.ts";

export default DefineConnector({
callback_id: "A05KUFPF86S#/functions/add_task_to_section",
title: "Add task to a section",
input_parameters: {
properties: {
asana_access_token: {
type: Schema.slack.types.oauth2,
description: "Asana credential to use",
title: "Asana Access Token",
},
workspace_gid: { type: Schema.types.string, title: "Workspace" },
project: { type: Schema.types.string, title: "Project" },
section_gid: { type: Schema.types.string, title: "Section" },
task_gid: { type: Schema.types.string, title: "Task" },
},
required: [
"asana_access_token",
"workspace_gid",
"project",
"section_gid",
"task_gid",
],
},
output_parameters: {
properties: {
response_code: { type: Schema.types.string, title: "Response code" },
},
required: ["response_code"],
},
});
48 changes: 48 additions & 0 deletions src/connectors/asana/functions/add_task_to_section_test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/
import { assertEquals, assertExists } from "../../../dev_deps.ts";
import { DefineWorkflow } from "../../../dev_deps.ts";
import AddTaskToSection from "./add_task_to_section.ts";

Deno.test("AddTaskToSection can be used as a Slack function in a workflow step", () => {
const testWorkflow = DefineWorkflow({
callback_id: "test_AddTaskToSection_slack_function",
title: "Test AddTaskToSection",
description: "This is a generated test to test AddTaskToSection",
});
testWorkflow.addStep(AddTaskToSection, {
asana_access_token: "test",
workspace_gid: "test",
project: "test",
section_gid: "test",
task_gid: "test",
});
const actual = testWorkflow.steps[0].export();

assertEquals(
actual.function_id,
"A05KUFPF86S#/functions/add_task_to_section",
);
assertEquals(actual.inputs, {
asana_access_token: "test",
workspace_gid: "test",
project: "test",
section_gid: "test",
task_gid: "test",
});
});

Deno.test("All outputs of Slack function AddTaskToSection should exist", () => {
const testWorkflow = DefineWorkflow({
callback_id: "test_AddTaskToSection_slack_function",
title: "Test AddTaskToSection",
description: "This is a generated test to test AddTaskToSection",
});
const step = testWorkflow.addStep(AddTaskToSection, {
asana_access_token: "test",
workspace_gid: "test",
project: "test",
section_gid: "test",
task_gid: "test",
});
assertExists(step.outputs.response_code);
});
5 changes: 5 additions & 0 deletions src/connectors/asana/mod.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/
import AddTaskToSection from "./functions/add_task_to_section.ts";
import CreateComment from "./functions/create_comment.ts";
import CreateProject from "./functions/create_project.ts";
import CreateTask from "./functions/create_task.ts";
import UpdateTask from "./functions/update_task.ts";

const Asana = {
functions: {
/**
* @see The {@link https://api.slack.com/reference/connectors/asana/add_task_to_section AddTaskToSection} documentation.
*/
AddTaskToSection,
/**
* @see The {@link https://api.slack.com/reference/connectors/asana/create_comment CreateComment} documentation.
*/
Expand Down
6 changes: 6 additions & 0 deletions src/connectors/google.mail/functions/send_email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ export default DefineConnector({
description: "Enter text",
title: "Email body",
},
html: {
type: Schema.types.boolean,
description:
"Select this if your content looks like this: <b>This text is bold</b>",
title: "Email body contains HTML text formatting",
},
recipients: {
type: Schema.types.array,
description: "Search all people...",
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 Jul 15 2024. Follow the steps in src/schema/slack/functions/README.md to rebuild **/
/** This file was autogenerated on Mon Jul 29 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
1 change: 1 addition & 0 deletions src/connectors/monday/functions/archive_board.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default DefineConnector({
properties: {
board_id: { type: Schema.types.string, title: "Board ID" },
board_name: { type: Schema.types.string, title: "Board name" },
board_url: { type: Schema.types.string, title: "Board URL" },
},
required: [],
},
Expand Down
1 change: 1 addition & 0 deletions src/connectors/monday/functions/archive_board_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ Deno.test("All outputs of Slack function ArchiveBoard should exist", () => {
});
assertExists(step.outputs.board_id);
assertExists(step.outputs.board_name);
assertExists(step.outputs.board_url);
});
1 change: 1 addition & 0 deletions src/connectors/monday/functions/create_board.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export default DefineConnector({
properties: {
board_id: { type: Schema.types.string, title: "Board ID" },
board_name: { type: Schema.types.string, title: "Board name" },
board_url: { type: Schema.types.string, title: "Board URL" },
},
required: [],
},
Expand Down
1 change: 1 addition & 0 deletions src/connectors/monday/functions/create_board_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ Deno.test("All outputs of Slack function CreateBoard should exist", () => {
});
assertExists(step.outputs.board_id);
assertExists(step.outputs.board_name);
assertExists(step.outputs.board_url);
});
Loading