-
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 * Add deprication warning --------- Co-authored-by: github-actions <[email protected]> Co-authored-by: William Bergamin <[email protected]>
- Loading branch information
1 parent
556b3c2
commit 15a2b50
Showing
18 changed files
with
726 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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ | ||
import CreateIgnore from "./functions/create_ignore.ts"; | ||
|
||
const Synk = { | ||
const Snyk = { | ||
functions: { | ||
/** | ||
* @see The {@link https://api.slack.com/reference/connectors/synk/create_ignore CreateIgnore} documentation. | ||
* @see The {@link https://api.slack.com/reference/connectors/snyk/create_ignore CreateIgnore} documentation. | ||
*/ | ||
CreateIgnore, | ||
}, | ||
} as const; | ||
|
||
export default Synk; | ||
export default Snyk; |
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,49 @@ | ||
/** 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: "A05U1HZ9XGF#/functions/copy_survey", | ||
title: "Copy a survey", | ||
input_parameters: { | ||
properties: { | ||
surveymonkey_access_token: { | ||
type: Schema.slack.types.oauth2, | ||
description: "SurveyMonkey Credential to use", | ||
title: "SurveyMonkey Access Token", | ||
}, | ||
survey_id: { | ||
type: Schema.types.string, | ||
description: "Select a survey", | ||
title: "Existing surveys", | ||
}, | ||
title: { | ||
type: Schema.types.string, | ||
description: "Enter text", | ||
title: "Survey title", | ||
}, | ||
}, | ||
required: ["surveymonkey_access_token", "survey_id", "title"], | ||
}, | ||
output_parameters: { | ||
properties: { | ||
id: { | ||
type: Schema.types.string, | ||
description: "New survey ID", | ||
title: "Survey ID", | ||
}, | ||
title: { | ||
type: Schema.types.string, | ||
description: "New survey title", | ||
title: "Survey title", | ||
}, | ||
url: { | ||
type: Schema.types.string, | ||
description: | ||
"The URL where users can edit the new survey before sending", | ||
title: "Design survey URL", | ||
}, | ||
}, | ||
required: ["id", "title", "url"], | ||
}, | ||
}); |
49 changes: 49 additions & 0 deletions
49
src/connectors/surveymonkey/functions/copy_survey_from_template.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,49 @@ | ||
/** 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: "A05U1HZ9XGF#/functions/copy_survey_from_template", | ||
title: "Copy a survey from a template", | ||
input_parameters: { | ||
properties: { | ||
surveymonkey_access_token: { | ||
type: Schema.slack.types.oauth2, | ||
description: "SurveyMonkey Credential to use", | ||
title: "SurveyMonkey Access Token", | ||
}, | ||
template_id: { | ||
type: Schema.types.string, | ||
description: "Select a template", | ||
title: "Survey template", | ||
}, | ||
title: { | ||
type: Schema.types.string, | ||
description: "Enter text", | ||
title: "Survey title", | ||
}, | ||
}, | ||
required: ["surveymonkey_access_token", "template_id", "title"], | ||
}, | ||
output_parameters: { | ||
properties: { | ||
id: { | ||
type: Schema.types.string, | ||
description: "New survey ID", | ||
title: "Survey ID", | ||
}, | ||
title: { | ||
type: Schema.types.string, | ||
description: "New survey title", | ||
title: "Survey title", | ||
}, | ||
url: { | ||
type: Schema.types.string, | ||
description: | ||
"The URL where users can edit the new survey before sending", | ||
title: "Design survey URL", | ||
}, | ||
}, | ||
required: ["id", "title", "url"], | ||
}, | ||
}); |
44 changes: 44 additions & 0 deletions
44
src/connectors/surveymonkey/functions/copy_survey_from_template_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,44 @@ | ||
/** 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 CopySurveyFromTemplate from "./copy_survey_from_template.ts"; | ||
|
||
Deno.test("CopySurveyFromTemplate can be used as a Slack function in a workflow step", () => { | ||
const testWorkflow = DefineWorkflow({ | ||
callback_id: "test_CopySurveyFromTemplate_slack_function", | ||
title: "Test CopySurveyFromTemplate", | ||
description: "This is a generated test to test CopySurveyFromTemplate", | ||
}); | ||
testWorkflow.addStep(CopySurveyFromTemplate, { | ||
surveymonkey_access_token: "test", | ||
template_id: "test", | ||
title: "test", | ||
}); | ||
const actual = testWorkflow.steps[0].export(); | ||
|
||
assertEquals( | ||
actual.function_id, | ||
"A05U1HZ9XGF#/functions/copy_survey_from_template", | ||
); | ||
assertEquals(actual.inputs, { | ||
surveymonkey_access_token: "test", | ||
template_id: "test", | ||
title: "test", | ||
}); | ||
}); | ||
|
||
Deno.test("All outputs of Slack function CopySurveyFromTemplate should exist", () => { | ||
const testWorkflow = DefineWorkflow({ | ||
callback_id: "test_CopySurveyFromTemplate_slack_function", | ||
title: "Test CopySurveyFromTemplate", | ||
description: "This is a generated test to test CopySurveyFromTemplate", | ||
}); | ||
const step = testWorkflow.addStep(CopySurveyFromTemplate, { | ||
surveymonkey_access_token: "test", | ||
template_id: "test", | ||
title: "test", | ||
}); | ||
assertExists(step.outputs.id); | ||
assertExists(step.outputs.title); | ||
assertExists(step.outputs.url); | ||
}); |
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,41 @@ | ||
/** 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 CopySurvey from "./copy_survey.ts"; | ||
|
||
Deno.test("CopySurvey can be used as a Slack function in a workflow step", () => { | ||
const testWorkflow = DefineWorkflow({ | ||
callback_id: "test_CopySurvey_slack_function", | ||
title: "Test CopySurvey", | ||
description: "This is a generated test to test CopySurvey", | ||
}); | ||
testWorkflow.addStep(CopySurvey, { | ||
surveymonkey_access_token: "test", | ||
survey_id: "test", | ||
title: "test", | ||
}); | ||
const actual = testWorkflow.steps[0].export(); | ||
|
||
assertEquals(actual.function_id, "A05U1HZ9XGF#/functions/copy_survey"); | ||
assertEquals(actual.inputs, { | ||
surveymonkey_access_token: "test", | ||
survey_id: "test", | ||
title: "test", | ||
}); | ||
}); | ||
|
||
Deno.test("All outputs of Slack function CopySurvey should exist", () => { | ||
const testWorkflow = DefineWorkflow({ | ||
callback_id: "test_CopySurvey_slack_function", | ||
title: "Test CopySurvey", | ||
description: "This is a generated test to test CopySurvey", | ||
}); | ||
const step = testWorkflow.addStep(CopySurvey, { | ||
surveymonkey_access_token: "test", | ||
survey_id: "test", | ||
title: "test", | ||
}); | ||
assertExists(step.outputs.id); | ||
assertExists(step.outputs.title); | ||
assertExists(step.outputs.url); | ||
}); |
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,18 @@ | ||
/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ | ||
import CopySurvey from "./functions/copy_survey.ts"; | ||
import CopySurveyFromTemplate from "./functions/copy_survey_from_template.ts"; | ||
|
||
const Surveymonkey = { | ||
functions: { | ||
/** | ||
* @see The {@link https://api.slack.com/reference/connectors/surveymonkey/copy_survey CopySurvey} documentation. | ||
*/ | ||
CopySurvey, | ||
/** | ||
* @see The {@link https://api.slack.com/reference/connectors/surveymonkey/copy_survey_from_template CopySurveyFromTemplate} documentation. | ||
*/ | ||
CopySurveyFromTemplate, | ||
}, | ||
} as const; | ||
|
||
export default Surveymonkey; |
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,46 @@ | ||
/** 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: "A0660D0LBV3#/functions/add_tags", | ||
title: "Add tags", | ||
description: "Add tags on a ticket without affecting existing ones", | ||
input_parameters: { | ||
properties: { | ||
ticket_id: { | ||
type: Schema.types.integer, | ||
description: "Enter ticket ID", | ||
title: "Ticket ID", | ||
}, | ||
add_tags: { | ||
type: Schema.types.array, | ||
title: "Add tags", | ||
items: { type: Schema.types.string }, | ||
}, | ||
zendesk_access_token: { | ||
type: Schema.slack.types.oauth2, | ||
description: "Zendesk credential to use", | ||
title: "Zendesk Access Token", | ||
}, | ||
}, | ||
required: ["ticket_id", "zendesk_access_token"], | ||
}, | ||
output_parameters: { | ||
properties: { | ||
ticket_id: { type: Schema.types.integer, title: "Ticket ID" }, | ||
ticket_url: { | ||
type: Schema.types.string, | ||
description: "The ticket URL", | ||
title: "Ticket URL", | ||
}, | ||
status: { type: Schema.types.string, title: "Status" }, | ||
additional_tags: { | ||
type: Schema.types.array, | ||
title: "Added tags", | ||
items: { type: Schema.types.string }, | ||
}, | ||
}, | ||
required: ["ticket_id", "ticket_url", "status", "additional_tags"], | ||
}, | ||
}); |
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 { assertEquals, assertExists } from "../../../dev_deps.ts"; | ||
import { DefineWorkflow } from "../../../dev_deps.ts"; | ||
import AddTags from "./add_tags.ts"; | ||
|
||
Deno.test("AddTags can be used as a Slack function in a workflow step", () => { | ||
const testWorkflow = DefineWorkflow({ | ||
callback_id: "test_AddTags_slack_function", | ||
title: "Test AddTags", | ||
description: "This is a generated test to test AddTags", | ||
}); | ||
testWorkflow.addStep(AddTags, { | ||
ticket_id: "test", | ||
zendesk_access_token: "test", | ||
}); | ||
const actual = testWorkflow.steps[0].export(); | ||
|
||
assertEquals(actual.function_id, "A0660D0LBV3#/functions/add_tags"); | ||
assertEquals(actual.inputs, { | ||
ticket_id: "test", | ||
zendesk_access_token: "test", | ||
}); | ||
}); | ||
|
||
Deno.test("All outputs of Slack function AddTags should exist", () => { | ||
const testWorkflow = DefineWorkflow({ | ||
callback_id: "test_AddTags_slack_function", | ||
title: "Test AddTags", | ||
description: "This is a generated test to test AddTags", | ||
}); | ||
const step = testWorkflow.addStep(AddTags, { | ||
ticket_id: "test", | ||
zendesk_access_token: "test", | ||
}); | ||
assertExists(step.outputs.ticket_id); | ||
assertExists(step.outputs.ticket_url); | ||
assertExists(step.outputs.status); | ||
assertExists(step.outputs.additional_tags); | ||
}); |
Oops, something went wrong.