-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated commit: Latest generated changes from schedule action (#36)
Co-authored-by: github-actions <[email protected]>
- Loading branch information
1 parent
15a2b50
commit 723d118
Showing
14 changed files
with
446 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
45
src/connectors/adobe.sign/functions/send_agreement_test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: [], | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: [], | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: [], | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
}); |
Oops, something went wrong.