-
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 (#47)
Co-authored-by: github-actions <[email protected]>
- Loading branch information
1 parent
44367f9
commit d74e85e
Showing
15 changed files
with
311 additions
and
5 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
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
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
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
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,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: "A05SEF35LQY#/functions/delete_row", | ||
title: "Delete a row from Smartsheet", | ||
input_parameters: { | ||
properties: { | ||
sheet: { | ||
type: Schema.types.object, | ||
description: "Select a Smartsheet", | ||
title: "Smartsheet", | ||
}, | ||
select_row: { type: Schema.types.string, title: "Select a row" }, | ||
smartsheet_access_token: { | ||
type: Schema.slack.types.oauth2, | ||
description: "Which account should we use to fetch Smartsheets?", | ||
title: "Smartsheet Access Token", | ||
}, | ||
}, | ||
required: ["sheet", "select_row", "smartsheet_access_token"], | ||
}, | ||
output_parameters: { | ||
properties: { | ||
smartsheet_url: { | ||
type: Schema.types.string, | ||
description: "Smartsheet URL", | ||
title: "Smartsheet URL", | ||
}, | ||
sheet_id: { | ||
type: Schema.types.string, | ||
description: "Smartsheet ID", | ||
title: "Smartsheet ID", | ||
}, | ||
}, | ||
required: ["smartsheet_url", "sheet_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,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 DeleteRow from "./delete_row.ts"; | ||
|
||
Deno.test("DeleteRow can be used as a Slack function in a workflow step", () => { | ||
const testWorkflow = DefineWorkflow({ | ||
callback_id: "test_DeleteRow_slack_function", | ||
title: "Test DeleteRow", | ||
description: "This is a generated test to test DeleteRow", | ||
}); | ||
testWorkflow.addStep(DeleteRow, { | ||
sheet: "test", | ||
select_row: "test", | ||
smartsheet_access_token: "test", | ||
}); | ||
const actual = testWorkflow.steps[0].export(); | ||
|
||
assertEquals(actual.function_id, "A05SEF35LQY#/functions/delete_row"); | ||
assertEquals(actual.inputs, { | ||
sheet: "test", | ||
select_row: "test", | ||
smartsheet_access_token: "test", | ||
}); | ||
}); | ||
|
||
Deno.test("All outputs of Slack function DeleteRow should exist", () => { | ||
const testWorkflow = DefineWorkflow({ | ||
callback_id: "test_DeleteRow_slack_function", | ||
title: "Test DeleteRow", | ||
description: "This is a generated test to test DeleteRow", | ||
}); | ||
const step = testWorkflow.addStep(DeleteRow, { | ||
sheet: "test", | ||
select_row: "test", | ||
smartsheet_access_token: "test", | ||
}); | ||
assertExists(step.outputs.smartsheet_url); | ||
assertExists(step.outputs.sheet_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,55 @@ | ||
/** 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: "A05SEF35LQY#/functions/select_row", | ||
title: "Select a Smartsheet row", | ||
input_parameters: { | ||
properties: { | ||
sheet: { | ||
type: Schema.types.object, | ||
description: "Select a Smartsheet", | ||
title: "Smartsheet", | ||
}, | ||
select_row: { | ||
type: Schema.types.string, | ||
description: "Search a row with cell value", | ||
title: "Select a row", | ||
}, | ||
smartsheet_access_token: { | ||
type: Schema.slack.types.oauth2, | ||
description: "Which account should we use to fetch Smartsheets?", | ||
title: "Smartsheet Access Token", | ||
}, | ||
}, | ||
required: ["sheet", "select_row", "smartsheet_access_token"], | ||
}, | ||
output_parameters: { | ||
properties: { | ||
smartsheet_url: { | ||
type: Schema.types.string, | ||
description: "Smartsheet URL", | ||
title: "Smartsheet URL", | ||
}, | ||
sheet_id: { | ||
type: Schema.types.string, | ||
description: "Smartsheet ID", | ||
title: "Smartsheet ID", | ||
}, | ||
row: { | ||
type: Schema.types.object, | ||
description: "Row", | ||
title: "Row", | ||
properties: { | ||
id: { type: Schema.types.integer, title: "Row ID" }, | ||
rowNumber: { type: Schema.types.integer, title: "Row number" }, | ||
}, | ||
additionalProperties: true, | ||
required: [], | ||
}, | ||
column_values: { type: Schema.types.object, title: "Column values" }, | ||
}, | ||
required: ["smartsheet_url", "sheet_id", "row", "column_values"], | ||
}, | ||
}); |
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,42 @@ | ||
/** 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 SelectRow from "./select_row.ts"; | ||
|
||
Deno.test("SelectRow can be used as a Slack function in a workflow step", () => { | ||
const testWorkflow = DefineWorkflow({ | ||
callback_id: "test_SelectRow_slack_function", | ||
title: "Test SelectRow", | ||
description: "This is a generated test to test SelectRow", | ||
}); | ||
testWorkflow.addStep(SelectRow, { | ||
sheet: "test", | ||
select_row: "test", | ||
smartsheet_access_token: "test", | ||
}); | ||
const actual = testWorkflow.steps[0].export(); | ||
|
||
assertEquals(actual.function_id, "A05SEF35LQY#/functions/select_row"); | ||
assertEquals(actual.inputs, { | ||
sheet: "test", | ||
select_row: "test", | ||
smartsheet_access_token: "test", | ||
}); | ||
}); | ||
|
||
Deno.test("All outputs of Slack function SelectRow should exist", () => { | ||
const testWorkflow = DefineWorkflow({ | ||
callback_id: "test_SelectRow_slack_function", | ||
title: "Test SelectRow", | ||
description: "This is a generated test to test SelectRow", | ||
}); | ||
const step = testWorkflow.addStep(SelectRow, { | ||
sheet: "test", | ||
select_row: "test", | ||
smartsheet_access_token: "test", | ||
}); | ||
assertExists(step.outputs.smartsheet_url); | ||
assertExists(step.outputs.sheet_id); | ||
assertExists(step.outputs.row); | ||
assertExists(step.outputs.column_values); | ||
}); |
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,64 @@ | ||
/** 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: "A05SEF35LQY#/functions/update_row", | ||
title: "Update a row to Smartsheet", | ||
input_parameters: { | ||
properties: { | ||
sheet: { | ||
type: Schema.types.object, | ||
description: "Select a Smartsheet", | ||
title: "Smartsheet", | ||
}, | ||
select_row: { | ||
type: Schema.types.string, | ||
description: "Search a row with cell value", | ||
title: "Select a row", | ||
}, | ||
updated_values: { type: Schema.types.object, title: "Updated values" }, | ||
smartsheet_access_token: { | ||
type: Schema.slack.types.oauth2, | ||
description: "Which account should we use to fetch Smartsheets?", | ||
title: "Smartsheet Access Token", | ||
}, | ||
}, | ||
required: [ | ||
"sheet", | ||
"select_row", | ||
"updated_values", | ||
"smartsheet_access_token", | ||
], | ||
}, | ||
output_parameters: { | ||
properties: { | ||
smartsheet_url: { | ||
type: Schema.types.string, | ||
description: "Smartsheet URL", | ||
title: "Smartsheet URL", | ||
}, | ||
sheet_id: { | ||
type: Schema.types.string, | ||
description: "Smartsheet ID", | ||
title: "Smartsheet ID", | ||
}, | ||
row: { | ||
type: Schema.types.object, | ||
description: "Row", | ||
title: "Row", | ||
properties: { | ||
id: { type: Schema.types.integer, title: "Row ID" }, | ||
rowNumber: { type: Schema.types.integer, title: "Row number" }, | ||
}, | ||
additionalProperties: true, | ||
required: [], | ||
}, | ||
updated_column_values: { | ||
type: Schema.types.object, | ||
title: "Updated column values", | ||
}, | ||
}, | ||
required: ["smartsheet_url", "sheet_id", "row", "updated_column_values"], | ||
}, | ||
}); |
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 UpdateRow from "./update_row.ts"; | ||
|
||
Deno.test("UpdateRow can be used as a Slack function in a workflow step", () => { | ||
const testWorkflow = DefineWorkflow({ | ||
callback_id: "test_UpdateRow_slack_function", | ||
title: "Test UpdateRow", | ||
description: "This is a generated test to test UpdateRow", | ||
}); | ||
testWorkflow.addStep(UpdateRow, { | ||
sheet: "test", | ||
select_row: "test", | ||
updated_values: "test", | ||
smartsheet_access_token: "test", | ||
}); | ||
const actual = testWorkflow.steps[0].export(); | ||
|
||
assertEquals(actual.function_id, "A05SEF35LQY#/functions/update_row"); | ||
assertEquals(actual.inputs, { | ||
sheet: "test", | ||
select_row: "test", | ||
updated_values: "test", | ||
smartsheet_access_token: "test", | ||
}); | ||
}); | ||
|
||
Deno.test("All outputs of Slack function UpdateRow should exist", () => { | ||
const testWorkflow = DefineWorkflow({ | ||
callback_id: "test_UpdateRow_slack_function", | ||
title: "Test UpdateRow", | ||
description: "This is a generated test to test UpdateRow", | ||
}); | ||
const step = testWorkflow.addStep(UpdateRow, { | ||
sheet: "test", | ||
select_row: "test", | ||
updated_values: "test", | ||
smartsheet_access_token: "test", | ||
}); | ||
assertExists(step.outputs.smartsheet_url); | ||
assertExists(step.outputs.sheet_id); | ||
assertExists(step.outputs.row); | ||
assertExists(step.outputs.updated_column_values); | ||
}); |
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