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 #47

Merged
merged 1 commit into from
Jun 10, 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
2 changes: 1 addition & 1 deletion src/connectors/linear/functions/create_issue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default DefineConnector({
title: "Linear access token",
},
},
required: ["team_id", "title", "description", "linear_access_token"],
required: ["team_id", "title", "linear_access_token"],
},
output_parameters: {
properties: {
Expand Down
3 changes: 0 additions & 3 deletions src/connectors/linear/functions/create_issue_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Deno.test("CreateIssue can be used as a Slack function in a workflow step", () =
testWorkflow.addStep(CreateIssue, {
team_id: "test",
title: "test",
description: "test",
linear_access_token: "test",
});
const actual = testWorkflow.steps[0].export();
Expand All @@ -21,7 +20,6 @@ Deno.test("CreateIssue can be used as a Slack function in a workflow step", () =
assertEquals(actual.inputs, {
team_id: "test",
title: "test",
description: "test",
linear_access_token: "test",
});
});
Expand All @@ -35,7 +33,6 @@ Deno.test("All outputs of Slack function CreateIssue should exist", () => {
const step = testWorkflow.addStep(CreateIssue, {
team_id: "test",
title: "test",
description: "test",
linear_access_token: "test",
});
assertExists(step.outputs.issue_id);
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 Jun 03 2024. Follow the steps in src/schema/slack/functions/README.md to rebuild **/
/** This file was autogenerated on Mon Jun 10 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
5 changes: 5 additions & 0 deletions src/connectors/pagerduty/functions/create_incident.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ export default DefineConnector({
description: "Enter incident details...",
title: "Incident details",
},
priority_id: {
type: Schema.types.string,
description: "Priority",
title: "Priority",
},
pagerduty_access_token: {
type: Schema.slack.types.oauth2,
description: "Pagerduty access token",
Expand Down
1 change: 1 addition & 0 deletions src/connectors/salesforce/functions/run_flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default DefineConnector({
properties: {
success: { type: Schema.types.boolean, title: "Response" },
flow_name: { type: Schema.types.string, title: "Flow name" },
result: { type: Schema.types.object, title: "Flow outputs" },
},
required: [],
},
Expand Down
1 change: 1 addition & 0 deletions src/connectors/salesforce/functions/run_flow_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 RunFlow should exist", () => {
});
assertExists(step.outputs.success);
assertExists(step.outputs.flow_name);
assertExists(step.outputs.result);
});
1 change: 1 addition & 0 deletions src/connectors/smartsheet/functions/add_row.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default DefineConnector({
description: "Smartsheet ID",
title: "Smartsheet ID",
},
row_id: { type: Schema.types.string, title: "Row ID" },
},
required: ["smartsheet_url", "sheet_id"],
},
Expand Down
1 change: 1 addition & 0 deletions src/connectors/smartsheet/functions/add_row_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 AddRow should exist", () => {
});
assertExists(step.outputs.smartsheet_url);
assertExists(step.outputs.sheet_id);
assertExists(step.outputs.row_id);
});
39 changes: 39 additions & 0 deletions src/connectors/smartsheet/functions/delete_row.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: "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"],
},
});
40 changes: 40 additions & 0 deletions src/connectors/smartsheet/functions/delete_row_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 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);
});
55 changes: 55 additions & 0 deletions src/connectors/smartsheet/functions/select_row.ts
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"],
},
});
42 changes: 42 additions & 0 deletions src/connectors/smartsheet/functions/select_row_test.ts
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);
});
64 changes: 64 additions & 0 deletions src/connectors/smartsheet/functions/update_row.ts
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"],
},
});
45 changes: 45 additions & 0 deletions src/connectors/smartsheet/functions/update_row_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 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);
});
15 changes: 15 additions & 0 deletions src/connectors/smartsheet/mod.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/
import AddRow from "./functions/add_row.ts";
import DeleteRow from "./functions/delete_row.ts";
import SelectRow from "./functions/select_row.ts";
import UpdateRow from "./functions/update_row.ts";

const Smartsheet = {
functions: {
/**
* @see The {@link https://api.slack.com/reference/connectors/smartsheet/add_row AddRow} documentation.
*/
AddRow,
/**
* @see The {@link https://api.slack.com/reference/connectors/smartsheet/delete_row DeleteRow} documentation.
*/
DeleteRow,
/**
* @see The {@link https://api.slack.com/reference/connectors/smartsheet/select_row SelectRow} documentation.
*/
SelectRow,
/**
* @see The {@link https://api.slack.com/reference/connectors/smartsheet/update_row UpdateRow} documentation.
*/
UpdateRow,
},
} as const;

Expand Down
Loading