Skip to content

Commit

Permalink
Automated commit: Latest generated changes from schedule action (#36)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <[email protected]>
  • Loading branch information
github-actions[bot] and WilliamBergamin authored Mar 4, 2024
1 parent 15a2b50 commit 723d118
Show file tree
Hide file tree
Showing 14 changed files with 446 additions and 6 deletions.
56 changes: 56 additions & 0 deletions src/connectors/adobe.sign/functions/send_agreement.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/** 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: "A05S5D4750A#/functions/send_agreement",
title: "Send an agreement",
description:
"Send an Adobe Acrobat Sign agreement based on a document template",
input_parameters: {
properties: {
adobe_sign_access_token: {
type: Schema.slack.types.oauth2,
description: "Adobe Sign Credential to use",
title: "Adobe Sign Access Token",
},
template_id: {
type: Schema.types.string,
description: "Please select an option",
title: "Template",
},
recipient_name: {
type: Schema.types.string,
description: "Enter text",
title: "Recipient name",
},
recipient_email: {
type: Schema.types.string,
description: "Enter text",
title: "Recipient email",
},
agreement_name: {
type: Schema.types.string,
description: "Enter text",
title: "Agreement name",
},
},
required: [
"adobe_sign_access_token",
"template_id",
"recipient_name",
"recipient_email",
"agreement_name",
],
},
output_parameters: {
properties: {
agreement_id: {
type: Schema.types.string,
description: "New agreement ID",
title: "Agreement ID",
},
},
required: ["agreement_id"],
},
});
45 changes: 45 additions & 0 deletions src/connectors/adobe.sign/functions/send_agreement_test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/** 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 SendAgreement from "./send_agreement.ts";

Deno.test("SendAgreement can be used as a Slack function in a workflow step", () => {
const testWorkflow = DefineWorkflow({
callback_id: "test_SendAgreement_slack_function",
title: "Test SendAgreement",
description: "This is a generated test to test SendAgreement",
});
testWorkflow.addStep(SendAgreement, {
adobe_sign_access_token: "test",
template_id: "test",
recipient_name: "test",
recipient_email: "test",
agreement_name: "test",
});
const actual = testWorkflow.steps[0].export();

assertEquals(actual.function_id, "A05S5D4750A#/functions/send_agreement");
assertEquals(actual.inputs, {
adobe_sign_access_token: "test",
template_id: "test",
recipient_name: "test",
recipient_email: "test",
agreement_name: "test",
});
});

Deno.test("All outputs of Slack function SendAgreement should exist", () => {
const testWorkflow = DefineWorkflow({
callback_id: "test_SendAgreement_slack_function",
title: "Test SendAgreement",
description: "This is a generated test to test SendAgreement",
});
const step = testWorkflow.addStep(SendAgreement, {
adobe_sign_access_token: "test",
template_id: "test",
recipient_name: "test",
recipient_email: "test",
agreement_name: "test",
});
assertExists(step.outputs.agreement_id);
});
13 changes: 13 additions & 0 deletions src/connectors/adobe.sign/mod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/
import SendAgreement from "./functions/send_agreement.ts";

const AdobeSign = {
functions: {
/**
* @see The {@link https://api.slack.com/reference/connectors/adobe.sign/send_agreement SendAgreement} documentation.
*/
SendAgreement,
},
} as const;

export default AdobeSign;
10 changes: 5 additions & 5 deletions src/connectors/mod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/** This file was autogenerated on Mon Jan 15 2024. Follow the steps in src/schema/slack/functions/README.md to rebuild **/
/** This file was autogenerated on Mon Mar 04 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";
import AtlassianBitbucket from "./atlassian.bitbucket/mod.ts";
Expand Down Expand Up @@ -40,6 +41,7 @@ import MicrosoftOutlookCalendar from "./microsoft.outlook.calendar/mod.ts";
import MicrosoftOutlookEmail from "./microsoft.outlook.email/mod.ts";
import MicrosoftTeams from "./microsoft.teams/mod.ts";
import Miro from "./miro/mod.ts";
import Monday from "./monday/mod.ts";
import Notion from "./notion/mod.ts";
import Pagerduty from "./pagerduty/mod.ts";
import Ramp from "./ramp/mod.ts";
Expand All @@ -60,6 +62,7 @@ import Zendesk from "./zendesk/mod.ts";
import Zoom from "./zoom/mod.ts";

const Connectors = {
AdobeSign,
Airtable,
Asana,
AtlassianBitbucket,
Expand Down Expand Up @@ -101,6 +104,7 @@ const Connectors = {
MicrosoftOutlookEmail,
MicrosoftTeams,
Miro,
Monday,
Notion,
Pagerduty,
Ramp,
Expand All @@ -110,10 +114,6 @@ const Connectors = {
Smartrecruiters,
Smartsheet,
Snyk,
/**
* @deprecated Snyk should be used in favor of Synk (Synk will be removed in next release)
*/
Synk: Snyk,
Surveymonkey,
Travisci,
Twilio,
Expand Down
29 changes: 29 additions & 0 deletions src/connectors/monday/functions/archive_board.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/** 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: "A05U2T0F8PP#/functions/archive_board",
title: "Archive a board",
input_parameters: {
properties: {
monday_access_token: {
type: Schema.slack.types.oauth2,
title: "Monday Access Token",
},
board_id: {
type: Schema.types.string,
description: "Select a board",
title: "Board",
},
},
required: ["monday_access_token", "board_id"],
},
output_parameters: {
properties: {
board_id: { type: Schema.types.string, title: "Board ID" },
board_name: { type: Schema.types.string, title: "Board name" },
},
required: [],
},
});
37 changes: 37 additions & 0 deletions src/connectors/monday/functions/archive_board_test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/** 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 ArchiveBoard from "./archive_board.ts";

Deno.test("ArchiveBoard can be used as a Slack function in a workflow step", () => {
const testWorkflow = DefineWorkflow({
callback_id: "test_ArchiveBoard_slack_function",
title: "Test ArchiveBoard",
description: "This is a generated test to test ArchiveBoard",
});
testWorkflow.addStep(ArchiveBoard, {
monday_access_token: "test",
board_id: "test",
});
const actual = testWorkflow.steps[0].export();

assertEquals(actual.function_id, "A05U2T0F8PP#/functions/archive_board");
assertEquals(actual.inputs, {
monday_access_token: "test",
board_id: "test",
});
});

Deno.test("All outputs of Slack function ArchiveBoard should exist", () => {
const testWorkflow = DefineWorkflow({
callback_id: "test_ArchiveBoard_slack_function",
title: "Test ArchiveBoard",
description: "This is a generated test to test ArchiveBoard",
});
const step = testWorkflow.addStep(ArchiveBoard, {
monday_access_token: "test",
board_id: "test",
});
assertExists(step.outputs.board_id);
assertExists(step.outputs.board_name);
});
39 changes: 39 additions & 0 deletions src/connectors/monday/functions/create_board.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/** 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: "A05U2T0F8PP#/functions/create_board",
title: "Create a board",
input_parameters: {
properties: {
monday_access_token: {
type: Schema.slack.types.oauth2,
title: "Monday Access Token",
},
board_name: {
type: Schema.types.string,
description: "Enter text",
title: "Board name",
},
board_kind: {
type: Schema.types.string,
title: "Board type",
enum: ["public", "private", "share"],
},
description: {
type: Schema.types.string,
description: "Enter description...",
title: "Description",
},
},
required: ["monday_access_token", "board_name", "board_kind"],
},
output_parameters: {
properties: {
board_id: { type: Schema.types.string, title: "Board ID" },
board_name: { type: Schema.types.string, title: "Board name" },
},
required: [],
},
});
40 changes: 40 additions & 0 deletions src/connectors/monday/functions/create_board_test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/** 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 CreateBoard from "./create_board.ts";

Deno.test("CreateBoard can be used as a Slack function in a workflow step", () => {
const testWorkflow = DefineWorkflow({
callback_id: "test_CreateBoard_slack_function",
title: "Test CreateBoard",
description: "This is a generated test to test CreateBoard",
});
testWorkflow.addStep(CreateBoard, {
monday_access_token: "test",
board_name: "test",
board_kind: "test",
});
const actual = testWorkflow.steps[0].export();

assertEquals(actual.function_id, "A05U2T0F8PP#/functions/create_board");
assertEquals(actual.inputs, {
monday_access_token: "test",
board_name: "test",
board_kind: "test",
});
});

Deno.test("All outputs of Slack function CreateBoard should exist", () => {
const testWorkflow = DefineWorkflow({
callback_id: "test_CreateBoard_slack_function",
title: "Test CreateBoard",
description: "This is a generated test to test CreateBoard",
});
const step = testWorkflow.addStep(CreateBoard, {
monday_access_token: "test",
board_name: "test",
board_kind: "test",
});
assertExists(step.outputs.board_id);
assertExists(step.outputs.board_name);
});
34 changes: 34 additions & 0 deletions src/connectors/monday/functions/create_group.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: "A05U2T0F8PP#/functions/create_group",
title: "Create a group",
input_parameters: {
properties: {
monday_access_token: {
type: Schema.slack.types.oauth2,
title: "Monday Access Token",
},
board_id: {
type: Schema.types.string,
description: "Select a board",
title: "Board",
},
group_name: {
type: Schema.types.string,
description: "Enter text",
title: "Group name",
},
},
required: ["monday_access_token", "board_id", "group_name"],
},
output_parameters: {
properties: {
group_id: { type: Schema.types.string, title: "Group ID" },
group_name: { type: Schema.types.string, title: "Group name" },
},
required: [],
},
});
40 changes: 40 additions & 0 deletions src/connectors/monday/functions/create_group_test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/** 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 CreateGroup from "./create_group.ts";

Deno.test("CreateGroup can be used as a Slack function in a workflow step", () => {
const testWorkflow = DefineWorkflow({
callback_id: "test_CreateGroup_slack_function",
title: "Test CreateGroup",
description: "This is a generated test to test CreateGroup",
});
testWorkflow.addStep(CreateGroup, {
monday_access_token: "test",
board_id: "test",
group_name: "test",
});
const actual = testWorkflow.steps[0].export();

assertEquals(actual.function_id, "A05U2T0F8PP#/functions/create_group");
assertEquals(actual.inputs, {
monday_access_token: "test",
board_id: "test",
group_name: "test",
});
});

Deno.test("All outputs of Slack function CreateGroup should exist", () => {
const testWorkflow = DefineWorkflow({
callback_id: "test_CreateGroup_slack_function",
title: "Test CreateGroup",
description: "This is a generated test to test CreateGroup",
});
const step = testWorkflow.addStep(CreateGroup, {
monday_access_token: "test",
board_id: "test",
group_name: "test",
});
assertExists(step.outputs.group_id);
assertExists(step.outputs.group_name);
});
Loading

0 comments on commit 723d118

Please sign in to comment.