diff --git a/src/connectors/clickup/functions/create_task.ts b/src/connectors/clickup/functions/create_task.ts new file mode 100644 index 0000000..a6653fc --- /dev/null +++ b/src/connectors/clickup/functions/create_task.ts @@ -0,0 +1,96 @@ +/** 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: "A05S54578AE#/functions/create_task", + title: "Create a task", + input_parameters: { + properties: { + team_id: { type: Schema.types.string, title: "Team" }, + space_id: { type: Schema.types.string, title: "Space" }, + folder_id: { type: Schema.types.string, title: "Folder" }, + list_id: { type: Schema.types.string, title: "List" }, + name: { + type: Schema.types.string, + description: "Enter text", + title: "Task name", + }, + description: { + type: Schema.types.string, + description: "Enter text", + title: "Description", + }, + status: { + type: Schema.types.string, + description: "Select Status", + title: "Status", + }, + assignees: { + type: Schema.types.array, + title: "Assignee", + items: { type: Schema.types.string }, + }, + start_date: { type: Schema.slack.types.timestamp, title: "Start at" }, + due_date: { type: Schema.slack.types.timestamp, title: "Due at" }, + tags: { + type: Schema.types.array, + title: "Tags", + items: { type: Schema.types.string }, + }, + clickup_access_token: { + type: Schema.slack.types.oauth2, + description: "Clickup credential to use", + title: "Clickup Access Token", + }, + }, + required: [ + "team_id", + "space_id", + "folder_id", + "list_id", + "name", + "clickup_access_token", + ], + }, + output_parameters: { + properties: { + task_id: { + type: Schema.types.string, + description: "The ID of the task", + title: "Task ID", + }, + task_name: { + type: Schema.types.string, + description: "The name of the task", + title: "Task name", + }, + start_date: { + type: Schema.types.string, + description: "The datetime the task is to be started on", + title: "Start at", + }, + due_date: { + type: Schema.types.string, + description: "The datetime the task is due at", + title: "Due at", + }, + description: { + type: Schema.types.string, + description: "The description for the task", + title: "Description", + }, + date_created: { + type: Schema.types.string, + description: "The datetime the task was created at", + title: "Created at", + }, + url: { + type: Schema.types.string, + description: "Link for the created task", + title: "Link to task", + }, + }, + required: ["task_name", "url"], + }, +}); diff --git a/src/connectors/clickup/functions/create_task_test.ts b/src/connectors/clickup/functions/create_task_test.ts new file mode 100644 index 0000000..fb03960 --- /dev/null +++ b/src/connectors/clickup/functions/create_task_test.ts @@ -0,0 +1,54 @@ +/** 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 CreateTask from "./create_task.ts"; + +Deno.test("CreateTask can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_CreateTask_slack_function", + title: "Test CreateTask", + description: "This is a generated test to test CreateTask", + }); + testWorkflow.addStep(CreateTask, { + team_id: "test", + space_id: "test", + folder_id: "test", + list_id: "test", + name: "test", + clickup_access_token: "test", + }); + const actual = testWorkflow.steps[0].export(); + + assertEquals(actual.function_id, "A05S54578AE#/functions/create_task"); + assertEquals(actual.inputs, { + team_id: "test", + space_id: "test", + folder_id: "test", + list_id: "test", + name: "test", + clickup_access_token: "test", + }); +}); + +Deno.test("All outputs of Slack function CreateTask should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_CreateTask_slack_function", + title: "Test CreateTask", + description: "This is a generated test to test CreateTask", + }); + const step = testWorkflow.addStep(CreateTask, { + team_id: "test", + space_id: "test", + folder_id: "test", + list_id: "test", + name: "test", + clickup_access_token: "test", + }); + assertExists(step.outputs.task_id); + assertExists(step.outputs.task_name); + assertExists(step.outputs.start_date); + assertExists(step.outputs.due_date); + assertExists(step.outputs.description); + assertExists(step.outputs.date_created); + assertExists(step.outputs.url); +}); diff --git a/src/connectors/clickup/mod.ts b/src/connectors/clickup/mod.ts new file mode 100644 index 0000000..4aa5e41 --- /dev/null +++ b/src/connectors/clickup/mod.ts @@ -0,0 +1,13 @@ +/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ +import CreateTask from "./functions/create_task.ts"; + +const Clickup = { + functions: { + /** + * @see The {@link https://api.slack.com/reference/connectors/clickup/create_task CreateTask} documentation. + */ + CreateTask, + }, +} as const; + +export default Clickup; diff --git a/src/connectors/google.calendar/functions/add_to_event.ts b/src/connectors/google.calendar/functions/add_to_event.ts new file mode 100644 index 0000000..4b18522 --- /dev/null +++ b/src/connectors/google.calendar/functions/add_to_event.ts @@ -0,0 +1,48 @@ +/** 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: "A050C90PUF5#/functions/add_to_event", + title: "Add attendee to an event", + input_parameters: { + properties: { + google_access_token: { + type: Schema.slack.types.oauth2, + description: "Google Credential to use", + title: "Google Access Token", + }, + calendar_id: { + type: Schema.types.string, + description: "Select a Google Calendar", + title: "Calendar", + }, + event_id: { + type: Schema.types.string, + description: "Select an event from the chosen calendar", + title: "Event", + }, + attendee_email: { + type: Schema.types.string, + description: "Email address of attendee", + title: "Attendee Email", + }, + }, + required: ["calendar_id", "event_id", "attendee_email"], + }, + output_parameters: { + properties: { + event_summary: { + type: Schema.types.string, + description: "Summary of the event", + title: "Event Summary", + }, + event_url: { + type: Schema.types.string, + description: "URL of the event", + title: "Event URL", + }, + }, + required: [], + }, +}); diff --git a/src/connectors/google.calendar/functions/add_to_event_test.ts b/src/connectors/google.calendar/functions/add_to_event_test.ts new file mode 100644 index 0000000..4fa529a --- /dev/null +++ b/src/connectors/google.calendar/functions/add_to_event_test.ts @@ -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 AddToEvent from "./add_to_event.ts"; + +Deno.test("AddToEvent can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_AddToEvent_slack_function", + title: "Test AddToEvent", + description: "This is a generated test to test AddToEvent", + }); + testWorkflow.addStep(AddToEvent, { + calendar_id: "test", + event_id: "test", + attendee_email: "test", + }); + const actual = testWorkflow.steps[0].export(); + + assertEquals(actual.function_id, "A050C90PUF5#/functions/add_to_event"); + assertEquals(actual.inputs, { + calendar_id: "test", + event_id: "test", + attendee_email: "test", + }); +}); + +Deno.test("All outputs of Slack function AddToEvent should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_AddToEvent_slack_function", + title: "Test AddToEvent", + description: "This is a generated test to test AddToEvent", + }); + const step = testWorkflow.addStep(AddToEvent, { + calendar_id: "test", + event_id: "test", + attendee_email: "test", + }); + assertExists(step.outputs.event_summary); + assertExists(step.outputs.event_url); +}); diff --git a/src/connectors/google.calendar/functions/create_event.ts b/src/connectors/google.calendar/functions/create_event.ts new file mode 100644 index 0000000..d946db9 --- /dev/null +++ b/src/connectors/google.calendar/functions/create_event.ts @@ -0,0 +1,65 @@ +/** 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: "A050C90PUF5#/functions/create_event", + title: "Create a calendar event", + input_parameters: { + properties: { + google_access_token: { + type: Schema.slack.types.oauth2, + description: "Google credential to use", + title: "Google access token", + }, + start_time: { + type: Schema.slack.types.timestamp, + description: "Start time for event", + title: "Start time", + }, + end_time: { + type: Schema.slack.types.timestamp, + description: "End time for event", + title: "End time", + }, + attendees: { + type: Schema.types.array, + description: "Search all people...", + title: "Attendees", + items: { type: Schema.slack.types.user_id }, + }, + additional_attendees: { + type: Schema.types.array, + description: "Enter email addresses", + title: "Additional attendees", + items: { type: Schema.types.string }, + }, + summary: { + type: Schema.types.string, + description: "Summary of event", + title: "Summary", + }, + location: { + type: Schema.types.string, + description: "Location of event", + title: "Location", + }, + description: { + type: Schema.types.string, + description: "Description of event", + title: "Description", + }, + }, + required: ["start_time", "end_time"], + }, + output_parameters: { + properties: { + event_link: { + type: Schema.types.string, + description: "Calendar event link", + title: "Event link", + }, + }, + required: [], + }, +}); diff --git a/src/connectors/google.calendar/functions/create_event_test.ts b/src/connectors/google.calendar/functions/create_event_test.ts new file mode 100644 index 0000000..8082e61 --- /dev/null +++ b/src/connectors/google.calendar/functions/create_event_test.ts @@ -0,0 +1,30 @@ +/** 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 CreateEvent from "./create_event.ts"; + +Deno.test("CreateEvent can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_CreateEvent_slack_function", + title: "Test CreateEvent", + description: "This is a generated test to test CreateEvent", + }); + testWorkflow.addStep(CreateEvent, { start_time: "test", end_time: "test" }); + const actual = testWorkflow.steps[0].export(); + + assertEquals(actual.function_id, "A050C90PUF5#/functions/create_event"); + assertEquals(actual.inputs, { start_time: "test", end_time: "test" }); +}); + +Deno.test("All outputs of Slack function CreateEvent should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_CreateEvent_slack_function", + title: "Test CreateEvent", + description: "This is a generated test to test CreateEvent", + }); + const step = testWorkflow.addStep(CreateEvent, { + start_time: "test", + end_time: "test", + }); + assertExists(step.outputs.event_link); +}); diff --git a/src/connectors/google.calendar/mod.ts b/src/connectors/google.calendar/mod.ts new file mode 100644 index 0000000..f52e67a --- /dev/null +++ b/src/connectors/google.calendar/mod.ts @@ -0,0 +1,18 @@ +/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ +import AddToEvent from "./functions/add_to_event.ts"; +import CreateEvent from "./functions/create_event.ts"; + +const GoogleCalendar = { + functions: { + /** + * @see The {@link https://api.slack.com/reference/connectors/google.calendar/add_to_event AddToEvent} documentation. + */ + AddToEvent, + /** + * @see The {@link https://api.slack.com/reference/connectors/google.calendar/create_event CreateEvent} documentation. + */ + CreateEvent, + }, +} as const; + +export default GoogleCalendar; diff --git a/src/connectors/google.meet/functions/start_meeting.ts b/src/connectors/google.meet/functions/start_meeting.ts new file mode 100644 index 0000000..fc12ec0 --- /dev/null +++ b/src/connectors/google.meet/functions/start_meeting.ts @@ -0,0 +1,33 @@ +/** 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: "A05A1NP97K6#/functions/start_meeting", + title: "Start a meeting - BETA", + description: "Creates a Google Meet link instantly", + input_parameters: { + properties: { + google_access_token: { + type: Schema.slack.types.oauth2, + title: "Google Access Token", + }, + }, + required: ["google_access_token"], + }, + output_parameters: { + properties: { + name: { + type: Schema.types.string, + description: "A unique server-generated ID for the meeting space", + title: "Name", + }, + meeting_link: { + type: Schema.types.string, + description: "A URL to identify and access the meeting space", + title: "Meeting link", + }, + }, + required: ["name", "meeting_link"], + }, +}); diff --git a/src/connectors/google.meet/functions/start_meeting_test.ts b/src/connectors/google.meet/functions/start_meeting_test.ts new file mode 100644 index 0000000..7617094 --- /dev/null +++ b/src/connectors/google.meet/functions/start_meeting_test.ts @@ -0,0 +1,30 @@ +/** 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 StartMeeting from "./start_meeting.ts"; + +Deno.test("StartMeeting can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_StartMeeting_slack_function", + title: "Test StartMeeting", + description: "This is a generated test to test StartMeeting", + }); + testWorkflow.addStep(StartMeeting, { google_access_token: "test" }); + const actual = testWorkflow.steps[0].export(); + + assertEquals(actual.function_id, "A05A1NP97K6#/functions/start_meeting"); + assertEquals(actual.inputs, { google_access_token: "test" }); +}); + +Deno.test("All outputs of Slack function StartMeeting should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_StartMeeting_slack_function", + title: "Test StartMeeting", + description: "This is a generated test to test StartMeeting", + }); + const step = testWorkflow.addStep(StartMeeting, { + google_access_token: "test", + }); + assertExists(step.outputs.name); + assertExists(step.outputs.meeting_link); +}); diff --git a/src/connectors/google.meet/mod.ts b/src/connectors/google.meet/mod.ts new file mode 100644 index 0000000..612c14f --- /dev/null +++ b/src/connectors/google.meet/mod.ts @@ -0,0 +1,13 @@ +/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ +import StartMeeting from "./functions/start_meeting.ts"; + +const GoogleMeet = { + functions: { + /** + * @see The {@link https://api.slack.com/reference/connectors/google.meet/start_meeting StartMeeting} documentation. + */ + StartMeeting, + }, +} as const; + +export default GoogleMeet; diff --git a/src/connectors/google.tasks/functions/create_tasklist.ts b/src/connectors/google.tasks/functions/create_tasklist.ts new file mode 100644 index 0000000..aad8abb --- /dev/null +++ b/src/connectors/google.tasks/functions/create_tasklist.ts @@ -0,0 +1,31 @@ +/** 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: "A05RZA1NU7L#/functions/create_tasklist", + title: "Create a task list", + description: "Creates an empty list", + input_parameters: { + properties: { + title: { + type: Schema.types.string, + description: "Enter a name", + title: "List name", + }, + google_access_token: { + type: Schema.slack.types.oauth2, + description: "Whose account should be used to create the tasks?", + title: "Google access token", + }, + }, + required: ["title", "google_access_token"], + }, + output_parameters: { + properties: { + title: { type: Schema.types.string, title: "Task title" }, + tasklist_id: { type: Schema.types.string, title: "Tasklist ID" }, + }, + required: ["title", "tasklist_id"], + }, +}); diff --git a/src/connectors/google.tasks/functions/create_tasklist_test.ts b/src/connectors/google.tasks/functions/create_tasklist_test.ts new file mode 100644 index 0000000..4388207 --- /dev/null +++ b/src/connectors/google.tasks/functions/create_tasklist_test.ts @@ -0,0 +1,34 @@ +/** 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 CreateTasklist from "./create_tasklist.ts"; + +Deno.test("CreateTasklist can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_CreateTasklist_slack_function", + title: "Test CreateTasklist", + description: "This is a generated test to test CreateTasklist", + }); + testWorkflow.addStep(CreateTasklist, { + title: "test", + google_access_token: "test", + }); + const actual = testWorkflow.steps[0].export(); + + assertEquals(actual.function_id, "A05RZA1NU7L#/functions/create_tasklist"); + assertEquals(actual.inputs, { title: "test", google_access_token: "test" }); +}); + +Deno.test("All outputs of Slack function CreateTasklist should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_CreateTasklist_slack_function", + title: "Test CreateTasklist", + description: "This is a generated test to test CreateTasklist", + }); + const step = testWorkflow.addStep(CreateTasklist, { + title: "test", + google_access_token: "test", + }); + assertExists(step.outputs.title); + assertExists(step.outputs.tasklist_id); +}); diff --git a/src/connectors/google.tasks/functions/insert_task.ts b/src/connectors/google.tasks/functions/insert_task.ts new file mode 100644 index 0000000..433a2ff --- /dev/null +++ b/src/connectors/google.tasks/functions/insert_task.ts @@ -0,0 +1,47 @@ +/** 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: "A05RZA1NU7L#/functions/insert_task", + title: "Insert a task", + input_parameters: { + properties: { + tasklist_id: { + type: Schema.types.string, + description: "Select a list", + title: "List", + }, + title: { + type: Schema.types.string, + description: "Enter task name", + title: "Task", + }, + notes: { + type: Schema.types.string, + description: "Add details", + title: "Details", + }, + due: { + type: Schema.slack.types.timestamp, + description: "Due date for the task", + title: "Due on", + }, + google_access_token: { + type: Schema.slack.types.oauth2, + description: "Whose account should be creating the tasks?", + title: "Google access token", + }, + }, + required: ["tasklist_id", "title", "notes", "due", "google_access_token"], + }, + output_parameters: { + properties: { + title: { type: Schema.types.string, title: "Task title" }, + task_id: { type: Schema.types.string, title: "Task ID" }, + notes: { type: Schema.types.string, title: "Notes" }, + status: { type: Schema.types.string, title: "Status" }, + }, + required: ["title", "task_id", "notes", "status"], + }, +}); diff --git a/src/connectors/google.tasks/functions/insert_task_test.ts b/src/connectors/google.tasks/functions/insert_task_test.ts new file mode 100644 index 0000000..7af906d --- /dev/null +++ b/src/connectors/google.tasks/functions/insert_task_test.ts @@ -0,0 +1,48 @@ +/** 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 InsertTask from "./insert_task.ts"; + +Deno.test("InsertTask can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_InsertTask_slack_function", + title: "Test InsertTask", + description: "This is a generated test to test InsertTask", + }); + testWorkflow.addStep(InsertTask, { + tasklist_id: "test", + title: "test", + notes: "test", + due: "test", + google_access_token: "test", + }); + const actual = testWorkflow.steps[0].export(); + + assertEquals(actual.function_id, "A05RZA1NU7L#/functions/insert_task"); + assertEquals(actual.inputs, { + tasklist_id: "test", + title: "test", + notes: "test", + due: "test", + google_access_token: "test", + }); +}); + +Deno.test("All outputs of Slack function InsertTask should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_InsertTask_slack_function", + title: "Test InsertTask", + description: "This is a generated test to test InsertTask", + }); + const step = testWorkflow.addStep(InsertTask, { + tasklist_id: "test", + title: "test", + notes: "test", + due: "test", + google_access_token: "test", + }); + assertExists(step.outputs.title); + assertExists(step.outputs.task_id); + assertExists(step.outputs.notes); + assertExists(step.outputs.status); +}); diff --git a/src/connectors/google.tasks/mod.ts b/src/connectors/google.tasks/mod.ts new file mode 100644 index 0000000..55020c9 --- /dev/null +++ b/src/connectors/google.tasks/mod.ts @@ -0,0 +1,18 @@ +/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ +import CreateTasklist from "./functions/create_tasklist.ts"; +import InsertTask from "./functions/insert_task.ts"; + +const GoogleTasks = { + functions: { + /** + * @see The {@link https://api.slack.com/reference/connectors/google.tasks/create_tasklist CreateTasklist} documentation. + */ + CreateTasklist, + /** + * @see The {@link https://api.slack.com/reference/connectors/google.tasks/insert_task InsertTask} documentation. + */ + InsertTask, + }, +} as const; + +export default GoogleTasks; diff --git a/src/connectors/greenhouse.recruiting/functions/hire_application.ts b/src/connectors/greenhouse.recruiting/functions/hire_application.ts new file mode 100644 index 0000000..5963cbc --- /dev/null +++ b/src/connectors/greenhouse.recruiting/functions/hire_application.ts @@ -0,0 +1,24 @@ +/** 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: "A05QS03T4MB#/functions/hire_application", + title: "Hire Application", + input_parameters: { + properties: { + candidate_id: { type: Schema.types.string, title: "Candidate email" }, + application_id: { type: Schema.types.string, title: "Application" }, + close_reason_id: { type: Schema.types.string, title: "Close reason" }, + }, + required: ["candidate_id", "application_id", "close_reason_id"], + }, + output_parameters: { + properties: { + id: { type: Schema.types.string, title: "Application ID" }, + status: { type: Schema.types.string, title: "Status" }, + candidate_id: { type: Schema.types.string, title: "Candidate ID" }, + }, + required: [], + }, +}); diff --git a/src/connectors/greenhouse.recruiting/functions/hire_application_test.ts b/src/connectors/greenhouse.recruiting/functions/hire_application_test.ts new file mode 100644 index 0000000..2052e95 --- /dev/null +++ b/src/connectors/greenhouse.recruiting/functions/hire_application_test.ts @@ -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 HireApplication from "./hire_application.ts"; + +Deno.test("HireApplication can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_HireApplication_slack_function", + title: "Test HireApplication", + description: "This is a generated test to test HireApplication", + }); + testWorkflow.addStep(HireApplication, { + candidate_id: "test", + application_id: "test", + close_reason_id: "test", + }); + const actual = testWorkflow.steps[0].export(); + + assertEquals(actual.function_id, "A05QS03T4MB#/functions/hire_application"); + assertEquals(actual.inputs, { + candidate_id: "test", + application_id: "test", + close_reason_id: "test", + }); +}); + +Deno.test("All outputs of Slack function HireApplication should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_HireApplication_slack_function", + title: "Test HireApplication", + description: "This is a generated test to test HireApplication", + }); + const step = testWorkflow.addStep(HireApplication, { + candidate_id: "test", + application_id: "test", + close_reason_id: "test", + }); + assertExists(step.outputs.id); + assertExists(step.outputs.status); + assertExists(step.outputs.candidate_id); +}); diff --git a/src/connectors/greenhouse.recruiting/functions/list_candidate_activity.ts b/src/connectors/greenhouse.recruiting/functions/list_candidate_activity.ts new file mode 100644 index 0000000..a1adf14 --- /dev/null +++ b/src/connectors/greenhouse.recruiting/functions/list_candidate_activity.ts @@ -0,0 +1,30 @@ +/** 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: "A05QS03T4MB#/functions/list_candidate_activity", + title: "Candidate activity", + description: "Retrieve a candidate activity feed", + input_parameters: { + properties: { + candidate_id: { type: Schema.types.string, title: "Candidate email" }, + }, + required: ["candidate_id"], + }, + output_parameters: { + properties: { + notes: { + type: Schema.types.array, + title: "Notes", + items: { type: Schema.types.string }, + }, + activities: { + type: Schema.types.array, + title: "Activities", + items: { type: Schema.types.string }, + }, + }, + required: [], + }, +}); diff --git a/src/connectors/greenhouse.recruiting/functions/list_candidate_activity_test.ts b/src/connectors/greenhouse.recruiting/functions/list_candidate_activity_test.ts new file mode 100644 index 0000000..39f3676 --- /dev/null +++ b/src/connectors/greenhouse.recruiting/functions/list_candidate_activity_test.ts @@ -0,0 +1,33 @@ +/** 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 ListCandidateActivity from "./list_candidate_activity.ts"; + +Deno.test("ListCandidateActivity can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_ListCandidateActivity_slack_function", + title: "Test ListCandidateActivity", + description: "This is a generated test to test ListCandidateActivity", + }); + testWorkflow.addStep(ListCandidateActivity, { candidate_id: "test" }); + const actual = testWorkflow.steps[0].export(); + + assertEquals( + actual.function_id, + "A05QS03T4MB#/functions/list_candidate_activity", + ); + assertEquals(actual.inputs, { candidate_id: "test" }); +}); + +Deno.test("All outputs of Slack function ListCandidateActivity should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_ListCandidateActivity_slack_function", + title: "Test ListCandidateActivity", + description: "This is a generated test to test ListCandidateActivity", + }); + const step = testWorkflow.addStep(ListCandidateActivity, { + candidate_id: "test", + }); + assertExists(step.outputs.notes); + assertExists(step.outputs.activities); +}); diff --git a/src/connectors/greenhouse.recruiting/functions/list_job_candidates.ts b/src/connectors/greenhouse.recruiting/functions/list_job_candidates.ts new file mode 100644 index 0000000..aaac4df --- /dev/null +++ b/src/connectors/greenhouse.recruiting/functions/list_job_candidates.ts @@ -0,0 +1,28 @@ +/** 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: "A05QS03T4MB#/functions/list_job_candidates", + title: "List job candidates", + description: "List all candidates for a job request", + input_parameters: { + properties: { job_id: { type: Schema.types.string, title: "Job" } }, + required: ["job_id"], + }, + output_parameters: { + properties: { + candidate_emails: { + type: Schema.types.array, + title: "Candidate emails", + items: { type: Schema.types.string }, + }, + candidate_names: { + type: Schema.types.array, + title: "Candidates names", + items: { type: Schema.types.string }, + }, + }, + required: [], + }, +}); diff --git a/src/connectors/greenhouse.recruiting/functions/list_job_candidates_test.ts b/src/connectors/greenhouse.recruiting/functions/list_job_candidates_test.ts new file mode 100644 index 0000000..c17e92b --- /dev/null +++ b/src/connectors/greenhouse.recruiting/functions/list_job_candidates_test.ts @@ -0,0 +1,31 @@ +/** 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 ListJobCandidates from "./list_job_candidates.ts"; + +Deno.test("ListJobCandidates can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_ListJobCandidates_slack_function", + title: "Test ListJobCandidates", + description: "This is a generated test to test ListJobCandidates", + }); + testWorkflow.addStep(ListJobCandidates, { job_id: "test" }); + const actual = testWorkflow.steps[0].export(); + + assertEquals( + actual.function_id, + "A05QS03T4MB#/functions/list_job_candidates", + ); + assertEquals(actual.inputs, { job_id: "test" }); +}); + +Deno.test("All outputs of Slack function ListJobCandidates should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_ListJobCandidates_slack_function", + title: "Test ListJobCandidates", + description: "This is a generated test to test ListJobCandidates", + }); + const step = testWorkflow.addStep(ListJobCandidates, { job_id: "test" }); + assertExists(step.outputs.candidate_emails); + assertExists(step.outputs.candidate_names); +}); diff --git a/src/connectors/greenhouse.recruiting/functions/reject_application.ts b/src/connectors/greenhouse.recruiting/functions/reject_application.ts new file mode 100644 index 0000000..86fc373 --- /dev/null +++ b/src/connectors/greenhouse.recruiting/functions/reject_application.ts @@ -0,0 +1,28 @@ +/** 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: "A05QS03T4MB#/functions/reject_application", + title: "Reject Application", + input_parameters: { + properties: { + candidate_id: { type: Schema.types.string, title: "Candidate email" }, + application_id: { type: Schema.types.string, title: "Application" }, + rejection_reason_id: { + type: Schema.types.string, + title: "Rejection reason", + }, + notes: { type: Schema.types.string, title: "Notes" }, + }, + required: ["candidate_id", "application_id"], + }, + output_parameters: { + properties: { + id: { type: Schema.types.string, title: "Application ID" }, + status: { type: Schema.types.string, title: "Status" }, + candidate_id: { type: Schema.types.string, title: "Candidate ID" }, + }, + required: [], + }, +}); diff --git a/src/connectors/greenhouse.recruiting/functions/reject_application_test.ts b/src/connectors/greenhouse.recruiting/functions/reject_application_test.ts new file mode 100644 index 0000000..9e6b9a7 --- /dev/null +++ b/src/connectors/greenhouse.recruiting/functions/reject_application_test.ts @@ -0,0 +1,35 @@ +/** 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 RejectApplication from "./reject_application.ts"; + +Deno.test("RejectApplication can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_RejectApplication_slack_function", + title: "Test RejectApplication", + description: "This is a generated test to test RejectApplication", + }); + testWorkflow.addStep(RejectApplication, { + candidate_id: "test", + application_id: "test", + }); + const actual = testWorkflow.steps[0].export(); + + assertEquals(actual.function_id, "A05QS03T4MB#/functions/reject_application"); + assertEquals(actual.inputs, { candidate_id: "test", application_id: "test" }); +}); + +Deno.test("All outputs of Slack function RejectApplication should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_RejectApplication_slack_function", + title: "Test RejectApplication", + description: "This is a generated test to test RejectApplication", + }); + const step = testWorkflow.addStep(RejectApplication, { + candidate_id: "test", + application_id: "test", + }); + assertExists(step.outputs.id); + assertExists(step.outputs.status); + assertExists(step.outputs.candidate_id); +}); diff --git a/src/connectors/greenhouse.recruiting/mod.ts b/src/connectors/greenhouse.recruiting/mod.ts new file mode 100644 index 0000000..6cc4d62 --- /dev/null +++ b/src/connectors/greenhouse.recruiting/mod.ts @@ -0,0 +1,28 @@ +/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ +import HireApplication from "./functions/hire_application.ts"; +import ListCandidateActivity from "./functions/list_candidate_activity.ts"; +import ListJobCandidates from "./functions/list_job_candidates.ts"; +import RejectApplication from "./functions/reject_application.ts"; + +const GreenhouseRecruiting = { + functions: { + /** + * @see The {@link https://api.slack.com/reference/connectors/greenhouse.recruiting/hire_application HireApplication} documentation. + */ + HireApplication, + /** + * @see The {@link https://api.slack.com/reference/connectors/greenhouse.recruiting/list_candidate_activity ListCandidateActivity} documentation. + */ + ListCandidateActivity, + /** + * @see The {@link https://api.slack.com/reference/connectors/greenhouse.recruiting/list_job_candidates ListJobCandidates} documentation. + */ + ListJobCandidates, + /** + * @see The {@link https://api.slack.com/reference/connectors/greenhouse.recruiting/reject_application RejectApplication} documentation. + */ + RejectApplication, + }, +} as const; + +export default GreenhouseRecruiting; diff --git a/src/connectors/guru/functions/add_comment.ts b/src/connectors/guru/functions/add_comment.ts new file mode 100644 index 0000000..f1dc9d8 --- /dev/null +++ b/src/connectors/guru/functions/add_comment.ts @@ -0,0 +1,35 @@ +/** 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: "A05RT1HSRRU#/functions/add_comment", + title: "Add a comment", + input_parameters: { + properties: { + card_id: { + type: Schema.types.string, + description: "Select a card", + title: "Card", + }, + comment: { + type: Schema.types.string, + description: "Enter text", + title: "Comment", + }, + guru_access_token: { + type: Schema.slack.types.oauth2, + description: "Whose account should be used?", + title: "Guru Access Token", + }, + }, + required: ["card_id", "comment", "guru_access_token"], + }, + output_parameters: { + properties: { + comment: { type: Schema.types.string, title: "Comment" }, + comment_id: { type: Schema.types.string, title: "Comment ID" }, + }, + required: ["comment", "comment_id"], + }, +}); diff --git a/src/connectors/guru/functions/add_comment_test.ts b/src/connectors/guru/functions/add_comment_test.ts new file mode 100644 index 0000000..9f5fa19 --- /dev/null +++ b/src/connectors/guru/functions/add_comment_test.ts @@ -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 AddComment from "./add_comment.ts"; + +Deno.test("AddComment can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_AddComment_slack_function", + title: "Test AddComment", + description: "This is a generated test to test AddComment", + }); + testWorkflow.addStep(AddComment, { + card_id: "test", + comment: "test", + guru_access_token: "test", + }); + const actual = testWorkflow.steps[0].export(); + + assertEquals(actual.function_id, "A05RT1HSRRU#/functions/add_comment"); + assertEquals(actual.inputs, { + card_id: "test", + comment: "test", + guru_access_token: "test", + }); +}); + +Deno.test("All outputs of Slack function AddComment should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_AddComment_slack_function", + title: "Test AddComment", + description: "This is a generated test to test AddComment", + }); + const step = testWorkflow.addStep(AddComment, { + card_id: "test", + comment: "test", + guru_access_token: "test", + }); + assertExists(step.outputs.comment); + assertExists(step.outputs.comment_id); +}); diff --git a/src/connectors/guru/functions/create_card.ts b/src/connectors/guru/functions/create_card.ts new file mode 100644 index 0000000..06a3162 --- /dev/null +++ b/src/connectors/guru/functions/create_card.ts @@ -0,0 +1,65 @@ +/** 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: "A05RT1HSRRU#/functions/create_card", + title: "Create a card", + input_parameters: { + properties: { + collection_id: { + type: Schema.types.string, + description: "Select a collection", + title: "Collection", + }, + card_title: { + type: Schema.types.string, + description: "Enter text", + title: "Title", + }, + share_status: { + type: Schema.types.string, + description: "Please select an option", + title: "Access", + enum: ["TEAM", "PRIVATE"], + }, + content: { + type: Schema.types.string, + description: "Enter text", + title: "Content", + }, + guru_access_token: { + type: Schema.slack.types.oauth2, + description: "Whose account should be used?", + title: "Guru Access Token", + }, + }, + required: [ + "collection_id", + "card_title", + "share_status", + "guru_access_token", + ], + }, + output_parameters: { + properties: { + card_id: { type: Schema.types.string, title: "Card ID" }, + card_title: { + type: Schema.types.string, + description: "Title of the card", + title: "Card title", + }, + card_url: { + type: Schema.types.string, + description: "URL of the card", + title: "Card URL", + }, + verification_state: { + type: Schema.types.string, + description: "Verification state of the card", + title: "Verification state", + }, + }, + required: ["card_id", "card_title", "card_url"], + }, +}); diff --git a/src/connectors/guru/functions/create_card_test.ts b/src/connectors/guru/functions/create_card_test.ts new file mode 100644 index 0000000..2d37ecf --- /dev/null +++ b/src/connectors/guru/functions/create_card_test.ts @@ -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 CreateCard from "./create_card.ts"; + +Deno.test("CreateCard can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_CreateCard_slack_function", + title: "Test CreateCard", + description: "This is a generated test to test CreateCard", + }); + testWorkflow.addStep(CreateCard, { + collection_id: "test", + card_title: "test", + share_status: "test", + guru_access_token: "test", + }); + const actual = testWorkflow.steps[0].export(); + + assertEquals(actual.function_id, "A05RT1HSRRU#/functions/create_card"); + assertEquals(actual.inputs, { + collection_id: "test", + card_title: "test", + share_status: "test", + guru_access_token: "test", + }); +}); + +Deno.test("All outputs of Slack function CreateCard should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_CreateCard_slack_function", + title: "Test CreateCard", + description: "This is a generated test to test CreateCard", + }); + const step = testWorkflow.addStep(CreateCard, { + collection_id: "test", + card_title: "test", + share_status: "test", + guru_access_token: "test", + }); + assertExists(step.outputs.card_id); + assertExists(step.outputs.card_title); + assertExists(step.outputs.card_url); + assertExists(step.outputs.verification_state); +}); diff --git a/src/connectors/guru/functions/delete_card.ts b/src/connectors/guru/functions/delete_card.ts new file mode 100644 index 0000000..859c08e --- /dev/null +++ b/src/connectors/guru/functions/delete_card.ts @@ -0,0 +1,27 @@ +/** 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: "A05RT1HSRRU#/functions/delete_card", + title: "Delete a card", + input_parameters: { + properties: { + card_id: { + type: Schema.types.string, + description: "Select a card", + title: "Card", + }, + guru_access_token: { + type: Schema.slack.types.oauth2, + description: "Whose account should be used?", + title: "Guru Access Token", + }, + }, + required: ["card_id", "guru_access_token"], + }, + output_parameters: { + properties: { card_id: { type: Schema.types.string, title: "Card ID" } }, + required: ["card_id"], + }, +}); diff --git a/src/connectors/guru/functions/delete_card_test.ts b/src/connectors/guru/functions/delete_card_test.ts new file mode 100644 index 0000000..3b2b28f --- /dev/null +++ b/src/connectors/guru/functions/delete_card_test.ts @@ -0,0 +1,33 @@ +/** 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 DeleteCard from "./delete_card.ts"; + +Deno.test("DeleteCard can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_DeleteCard_slack_function", + title: "Test DeleteCard", + description: "This is a generated test to test DeleteCard", + }); + testWorkflow.addStep(DeleteCard, { + card_id: "test", + guru_access_token: "test", + }); + const actual = testWorkflow.steps[0].export(); + + assertEquals(actual.function_id, "A05RT1HSRRU#/functions/delete_card"); + assertEquals(actual.inputs, { card_id: "test", guru_access_token: "test" }); +}); + +Deno.test("All outputs of Slack function DeleteCard should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_DeleteCard_slack_function", + title: "Test DeleteCard", + description: "This is a generated test to test DeleteCard", + }); + const step = testWorkflow.addStep(DeleteCard, { + card_id: "test", + guru_access_token: "test", + }); + assertExists(step.outputs.card_id); +}); diff --git a/src/connectors/guru/functions/unverify_card.ts b/src/connectors/guru/functions/unverify_card.ts new file mode 100644 index 0000000..b2947d8 --- /dev/null +++ b/src/connectors/guru/functions/unverify_card.ts @@ -0,0 +1,27 @@ +/** 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: "A05RT1HSRRU#/functions/unverify_card", + title: "Unverify a card", + input_parameters: { + properties: { + card_id: { + type: Schema.types.string, + description: "Select a card", + title: "Card", + }, + guru_access_token: { + type: Schema.slack.types.oauth2, + description: "Whose account should be used?", + title: "Guru Access Token", + }, + }, + required: ["card_id", "guru_access_token"], + }, + output_parameters: { + properties: { card_id: { type: Schema.types.string, title: "Card ID" } }, + required: ["card_id"], + }, +}); diff --git a/src/connectors/guru/functions/unverify_card_test.ts b/src/connectors/guru/functions/unverify_card_test.ts new file mode 100644 index 0000000..2e2b6e3 --- /dev/null +++ b/src/connectors/guru/functions/unverify_card_test.ts @@ -0,0 +1,33 @@ +/** 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 UnverifyCard from "./unverify_card.ts"; + +Deno.test("UnverifyCard can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_UnverifyCard_slack_function", + title: "Test UnverifyCard", + description: "This is a generated test to test UnverifyCard", + }); + testWorkflow.addStep(UnverifyCard, { + card_id: "test", + guru_access_token: "test", + }); + const actual = testWorkflow.steps[0].export(); + + assertEquals(actual.function_id, "A05RT1HSRRU#/functions/unverify_card"); + assertEquals(actual.inputs, { card_id: "test", guru_access_token: "test" }); +}); + +Deno.test("All outputs of Slack function UnverifyCard should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_UnverifyCard_slack_function", + title: "Test UnverifyCard", + description: "This is a generated test to test UnverifyCard", + }); + const step = testWorkflow.addStep(UnverifyCard, { + card_id: "test", + guru_access_token: "test", + }); + assertExists(step.outputs.card_id); +}); diff --git a/src/connectors/guru/functions/update_card.ts b/src/connectors/guru/functions/update_card.ts new file mode 100644 index 0000000..c61169d --- /dev/null +++ b/src/connectors/guru/functions/update_card.ts @@ -0,0 +1,60 @@ +/** 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: "A05RT1HSRRU#/functions/update_card", + title: "Update a card", + input_parameters: { + properties: { + card_id: { + type: Schema.types.string, + description: "Select a card", + title: "Card", + }, + card_title: { + type: Schema.types.string, + description: "Enter text", + title: "Title", + }, + share_status: { + type: Schema.types.string, + description: "Select an option", + title: "Access", + enum: ["TEAM", "PRIVATE"], + }, + content: { + type: Schema.types.string, + description: "Content of the card", + title: "Content", + }, + guru_access_token: { + type: Schema.slack.types.oauth2, + description: "Whose account should be used?", + title: "Guru Access Token", + }, + }, + required: ["card_id", "share_status", "guru_access_token"], + }, + output_parameters: { + properties: { + card_id: { type: Schema.types.string, title: "Card ID" }, + card_title: { + type: Schema.types.string, + description: "Title of the card", + title: "Card title", + }, + card_url: { + type: Schema.types.string, + description: "URL of the card", + title: "Card URL", + }, + verification_state: { + type: Schema.types.string, + description: "Verification state of the card", + title: "Verification state", + }, + }, + required: ["card_id", "card_title", "card_url"], + }, +}); diff --git a/src/connectors/guru/functions/update_card_test.ts b/src/connectors/guru/functions/update_card_test.ts new file mode 100644 index 0000000..149dac3 --- /dev/null +++ b/src/connectors/guru/functions/update_card_test.ts @@ -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 UpdateCard from "./update_card.ts"; + +Deno.test("UpdateCard can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_UpdateCard_slack_function", + title: "Test UpdateCard", + description: "This is a generated test to test UpdateCard", + }); + testWorkflow.addStep(UpdateCard, { + card_id: "test", + share_status: "test", + guru_access_token: "test", + }); + const actual = testWorkflow.steps[0].export(); + + assertEquals(actual.function_id, "A05RT1HSRRU#/functions/update_card"); + assertEquals(actual.inputs, { + card_id: "test", + share_status: "test", + guru_access_token: "test", + }); +}); + +Deno.test("All outputs of Slack function UpdateCard should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_UpdateCard_slack_function", + title: "Test UpdateCard", + description: "This is a generated test to test UpdateCard", + }); + const step = testWorkflow.addStep(UpdateCard, { + card_id: "test", + share_status: "test", + guru_access_token: "test", + }); + assertExists(step.outputs.card_id); + assertExists(step.outputs.card_title); + assertExists(step.outputs.card_url); + assertExists(step.outputs.verification_state); +}); diff --git a/src/connectors/guru/functions/verify_card.ts b/src/connectors/guru/functions/verify_card.ts new file mode 100644 index 0000000..3756957 --- /dev/null +++ b/src/connectors/guru/functions/verify_card.ts @@ -0,0 +1,27 @@ +/** 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: "A05RT1HSRRU#/functions/verify_card", + title: "Verify a card", + input_parameters: { + properties: { + card_id: { + type: Schema.types.string, + description: "Select a card", + title: "Card", + }, + guru_access_token: { + type: Schema.slack.types.oauth2, + description: "Whose account should be used?", + title: "Guru Access Token", + }, + }, + required: ["card_id", "guru_access_token"], + }, + output_parameters: { + properties: { card_id: { type: Schema.types.string, title: "Card ID" } }, + required: ["card_id"], + }, +}); diff --git a/src/connectors/guru/functions/verify_card_test.ts b/src/connectors/guru/functions/verify_card_test.ts new file mode 100644 index 0000000..e180ecc --- /dev/null +++ b/src/connectors/guru/functions/verify_card_test.ts @@ -0,0 +1,33 @@ +/** 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 VerifyCard from "./verify_card.ts"; + +Deno.test("VerifyCard can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_VerifyCard_slack_function", + title: "Test VerifyCard", + description: "This is a generated test to test VerifyCard", + }); + testWorkflow.addStep(VerifyCard, { + card_id: "test", + guru_access_token: "test", + }); + const actual = testWorkflow.steps[0].export(); + + assertEquals(actual.function_id, "A05RT1HSRRU#/functions/verify_card"); + assertEquals(actual.inputs, { card_id: "test", guru_access_token: "test" }); +}); + +Deno.test("All outputs of Slack function VerifyCard should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_VerifyCard_slack_function", + title: "Test VerifyCard", + description: "This is a generated test to test VerifyCard", + }); + const step = testWorkflow.addStep(VerifyCard, { + card_id: "test", + guru_access_token: "test", + }); + assertExists(step.outputs.card_id); +}); diff --git a/src/connectors/guru/mod.ts b/src/connectors/guru/mod.ts new file mode 100644 index 0000000..ba27b68 --- /dev/null +++ b/src/connectors/guru/mod.ts @@ -0,0 +1,38 @@ +/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ +import AddComment from "./functions/add_comment.ts"; +import CreateCard from "./functions/create_card.ts"; +import DeleteCard from "./functions/delete_card.ts"; +import UnverifyCard from "./functions/unverify_card.ts"; +import UpdateCard from "./functions/update_card.ts"; +import VerifyCard from "./functions/verify_card.ts"; + +const Guru = { + functions: { + /** + * @see The {@link https://api.slack.com/reference/connectors/guru/add_comment AddComment} documentation. + */ + AddComment, + /** + * @see The {@link https://api.slack.com/reference/connectors/guru/create_card CreateCard} documentation. + */ + CreateCard, + /** + * @see The {@link https://api.slack.com/reference/connectors/guru/delete_card DeleteCard} documentation. + */ + DeleteCard, + /** + * @see The {@link https://api.slack.com/reference/connectors/guru/unverify_card UnverifyCard} documentation. + */ + UnverifyCard, + /** + * @see The {@link https://api.slack.com/reference/connectors/guru/update_card UpdateCard} documentation. + */ + UpdateCard, + /** + * @see The {@link https://api.slack.com/reference/connectors/guru/verify_card VerifyCard} documentation. + */ + VerifyCard, + }, +} as const; + +export default Guru; diff --git a/src/connectors/intercom/functions/create_article.ts b/src/connectors/intercom/functions/create_article.ts new file mode 100644 index 0000000..4072499 --- /dev/null +++ b/src/connectors/intercom/functions/create_article.ts @@ -0,0 +1,59 @@ +/** 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: "A05S4UJGUQK#/functions/create_article", + title: "Create an article", + input_parameters: { + properties: { + title: { + type: Schema.types.string, + description: "Enter title", + title: "Title", + }, + description: { + type: Schema.types.string, + description: "Enter description", + title: "Description", + }, + body: { + type: Schema.types.string, + description: "Enter body", + title: "Body", + }, + author_id: { + type: Schema.types.string, + description: "Select an author", + title: "Author", + }, + state: { + type: Schema.types.string, + title: "State", + enum: ["published", "draft"], + }, + intercom_access_token: { + type: Schema.slack.types.oauth2, + title: "Intercom access token", + }, + }, + required: [ + "title", + "description", + "body", + "author_id", + "state", + "intercom_access_token", + ], + }, + output_parameters: { + properties: { + article_id: { type: Schema.types.string, title: "Article ID" }, + title: { type: Schema.types.string, title: "Title" }, + description: { type: Schema.types.string, title: "Description" }, + body: { type: Schema.types.string, title: "Body" }, + state: { type: Schema.types.string, title: "State" }, + }, + required: [], + }, +}); diff --git a/src/connectors/intercom/functions/create_article_test.ts b/src/connectors/intercom/functions/create_article_test.ts new file mode 100644 index 0000000..2c4f392 --- /dev/null +++ b/src/connectors/intercom/functions/create_article_test.ts @@ -0,0 +1,52 @@ +/** 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 CreateArticle from "./create_article.ts"; + +Deno.test("CreateArticle can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_CreateArticle_slack_function", + title: "Test CreateArticle", + description: "This is a generated test to test CreateArticle", + }); + testWorkflow.addStep(CreateArticle, { + title: "test", + description: "test", + body: "test", + author_id: "test", + state: "test", + intercom_access_token: "test", + }); + const actual = testWorkflow.steps[0].export(); + + assertEquals(actual.function_id, "A05S4UJGUQK#/functions/create_article"); + assertEquals(actual.inputs, { + title: "test", + description: "test", + body: "test", + author_id: "test", + state: "test", + intercom_access_token: "test", + }); +}); + +Deno.test("All outputs of Slack function CreateArticle should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_CreateArticle_slack_function", + title: "Test CreateArticle", + description: "This is a generated test to test CreateArticle", + }); + const step = testWorkflow.addStep(CreateArticle, { + title: "test", + description: "test", + body: "test", + author_id: "test", + state: "test", + intercom_access_token: "test", + }); + assertExists(step.outputs.article_id); + assertExists(step.outputs.title); + assertExists(step.outputs.description); + assertExists(step.outputs.body); + assertExists(step.outputs.state); +}); diff --git a/src/connectors/intercom/functions/create_ticket.ts b/src/connectors/intercom/functions/create_ticket.ts new file mode 100644 index 0000000..cebb05e --- /dev/null +++ b/src/connectors/intercom/functions/create_ticket.ts @@ -0,0 +1,60 @@ +/** 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: "A05S4UJGUQK#/functions/create_ticket", + title: "Create a ticket", + input_parameters: { + properties: { + title: { + type: Schema.types.string, + description: "Enter title", + title: "Title", + }, + description: { + type: Schema.types.string, + description: "Enter description", + title: "Description", + }, + ticket_type_id: { type: Schema.types.string, title: "Ticket type" }, + contact_email: { + type: Schema.types.string, + description: "Enter email ID", + title: "Email", + }, + intercom_access_token: { + type: Schema.slack.types.oauth2, + title: "Intercom access token", + }, + }, + required: [ + "title", + "description", + "ticket_type_id", + "contact_email", + "intercom_access_token", + ], + }, + output_parameters: { + properties: { + ticket_id: { type: Schema.types.string, title: "Ticket ID" }, + title: { type: Schema.types.string, title: "Title" }, + description: { type: Schema.types.string, title: "Description" }, + ticket_type: { + type: Schema.types.object, + title: "Ticket type", + properties: { + name: { type: Schema.types.string }, + archived: { type: Schema.types.boolean }, + created_at: { type: Schema.types.string }, + updated_at: { type: Schema.types.string }, + description: { type: Schema.types.string }, + }, + additionalProperties: true, + required: [], + }, + }, + required: [], + }, +}); diff --git a/src/connectors/intercom/functions/create_ticket_test.ts b/src/connectors/intercom/functions/create_ticket_test.ts new file mode 100644 index 0000000..ee9b48b --- /dev/null +++ b/src/connectors/intercom/functions/create_ticket_test.ts @@ -0,0 +1,48 @@ +/** 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 CreateTicket from "./create_ticket.ts"; + +Deno.test("CreateTicket can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_CreateTicket_slack_function", + title: "Test CreateTicket", + description: "This is a generated test to test CreateTicket", + }); + testWorkflow.addStep(CreateTicket, { + title: "test", + description: "test", + ticket_type_id: "test", + contact_email: "test", + intercom_access_token: "test", + }); + const actual = testWorkflow.steps[0].export(); + + assertEquals(actual.function_id, "A05S4UJGUQK#/functions/create_ticket"); + assertEquals(actual.inputs, { + title: "test", + description: "test", + ticket_type_id: "test", + contact_email: "test", + intercom_access_token: "test", + }); +}); + +Deno.test("All outputs of Slack function CreateTicket should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_CreateTicket_slack_function", + title: "Test CreateTicket", + description: "This is a generated test to test CreateTicket", + }); + const step = testWorkflow.addStep(CreateTicket, { + title: "test", + description: "test", + ticket_type_id: "test", + contact_email: "test", + intercom_access_token: "test", + }); + assertExists(step.outputs.ticket_id); + assertExists(step.outputs.title); + assertExists(step.outputs.description); + assertExists(step.outputs.ticket_type); +}); diff --git a/src/connectors/intercom/mod.ts b/src/connectors/intercom/mod.ts new file mode 100644 index 0000000..d774c72 --- /dev/null +++ b/src/connectors/intercom/mod.ts @@ -0,0 +1,18 @@ +/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ +import CreateArticle from "./functions/create_article.ts"; +import CreateTicket from "./functions/create_ticket.ts"; + +const Intercom = { + functions: { + /** + * @see The {@link https://api.slack.com/reference/connectors/intercom/create_article CreateArticle} documentation. + */ + CreateArticle, + /** + * @see The {@link https://api.slack.com/reference/connectors/intercom/create_ticket CreateTicket} documentation. + */ + CreateTicket, + }, +} as const; + +export default Intercom; diff --git a/src/connectors/mod.ts b/src/connectors/mod.ts index ce3bc99..c421759 100644 --- a/src/connectors/mod.ts +++ b/src/connectors/mod.ts @@ -1,13 +1,20 @@ -/** This file was autogenerated on Mon Sep 25 2023. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ +/** This file was autogenerated on Mon Oct 16 2023. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ import Asana from "./asana/mod.ts"; import AtlassianBitbucket from "./atlassian.bitbucket/mod.ts"; import Calendly from "./calendly/mod.ts"; +import Clickup from "./clickup/mod.ts"; import Docusign from "./docusign/mod.ts"; import Giphy from "./giphy/mod.ts"; import GithubCloud from "./github.cloud/mod.ts"; import Gitlab from "./gitlab/mod.ts"; +import GoogleCalendar from "./google.calendar/mod.ts"; import GoogleMail from "./google.mail/mod.ts"; +import GoogleMeet from "./google.meet/mod.ts"; import GoogleSheets from "./google.sheets/mod.ts"; +import GoogleTasks from "./google.tasks/mod.ts"; +import GreenhouseRecruiting from "./greenhouse.recruiting/mod.ts"; +import Guru from "./guru/mod.ts"; +import Intercom from "./intercom/mod.ts"; import JiraCloud from "./jira.cloud/mod.ts"; import Lucid from "./lucid/mod.ts"; import MicrosoftOnedrive from "./microsoft.onedrive/mod.ts"; @@ -15,8 +22,10 @@ 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 Notion from "./notion/mod.ts"; import Pagerduty from "./pagerduty/mod.ts"; import Salesforce from "./salesforce/mod.ts"; +import Smartsheet from "./smartsheet/mod.ts"; import Synk from "./synk/mod.ts"; import Webex from "./webex/mod.ts"; import Wrike from "./wrike/mod.ts"; @@ -26,12 +35,19 @@ const Connectors = { Asana, AtlassianBitbucket, Calendly, + Clickup, Docusign, Giphy, GithubCloud, Gitlab, + GoogleCalendar, GoogleMail, + GoogleMeet, GoogleSheets, + GoogleTasks, + GreenhouseRecruiting, + Guru, + Intercom, JiraCloud, Lucid, MicrosoftOnedrive, @@ -39,8 +55,10 @@ const Connectors = { MicrosoftOutlookEmail, MicrosoftTeams, Miro, + Notion, Pagerduty, Salesforce, + Smartsheet, Synk, Webex, Wrike, diff --git a/src/connectors/notion/functions/archive_page.ts b/src/connectors/notion/functions/archive_page.ts new file mode 100644 index 0000000..e13ad61 --- /dev/null +++ b/src/connectors/notion/functions/archive_page.ts @@ -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: "A05SUU730P2#/functions/archive_page", + title: "Archive a page", + input_parameters: { + properties: { + notion_access_token: { + type: Schema.slack.types.oauth2, + title: "Notion access token", + }, + page_id: { + type: Schema.types.string, + description: "Select page", + title: "Page ID", + }, + }, + required: ["page_id"], + }, + output_parameters: { + properties: { + page_id: { type: Schema.types.string, title: "Page ID" }, + page_url: { type: Schema.types.string, title: "Page URL" }, + }, + required: ["page_id", "page_url"], + }, +}); diff --git a/src/connectors/notion/functions/archive_page_test.ts b/src/connectors/notion/functions/archive_page_test.ts new file mode 100644 index 0000000..dbddd1b --- /dev/null +++ b/src/connectors/notion/functions/archive_page_test.ts @@ -0,0 +1,28 @@ +/** 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 ArchivePage from "./archive_page.ts"; + +Deno.test("ArchivePage can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_ArchivePage_slack_function", + title: "Test ArchivePage", + description: "This is a generated test to test ArchivePage", + }); + testWorkflow.addStep(ArchivePage, { page_id: "test" }); + const actual = testWorkflow.steps[0].export(); + + assertEquals(actual.function_id, "A05SUU730P2#/functions/archive_page"); + assertEquals(actual.inputs, { page_id: "test" }); +}); + +Deno.test("All outputs of Slack function ArchivePage should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_ArchivePage_slack_function", + title: "Test ArchivePage", + description: "This is a generated test to test ArchivePage", + }); + const step = testWorkflow.addStep(ArchivePage, { page_id: "test" }); + assertExists(step.outputs.page_id); + assertExists(step.outputs.page_url); +}); diff --git a/src/connectors/notion/functions/create_page.ts b/src/connectors/notion/functions/create_page.ts new file mode 100644 index 0000000..24d030a --- /dev/null +++ b/src/connectors/notion/functions/create_page.ts @@ -0,0 +1,40 @@ +/** 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: "A05SUU730P2#/functions/create_page", + title: "Create a page", + description: "Creates a page under a parent page", + input_parameters: { + properties: { + notion_access_token: { + type: Schema.slack.types.oauth2, + title: "Notion access token", + }, + parent_page_id: { + type: Schema.types.string, + description: "Enter text", + title: "Parent page", + }, + page_title: { + type: Schema.types.string, + description: "Enter text", + title: "Page title", + }, + content: { + type: Schema.slack.types.rich_text, + description: "Enter text", + title: "Page content", + }, + }, + required: ["parent_page_id", "page_title"], + }, + output_parameters: { + properties: { + page_id: { type: Schema.types.string, title: "Page ID" }, + page_url: { type: Schema.types.string, title: "Page URL" }, + }, + required: ["page_id", "page_url"], + }, +}); diff --git a/src/connectors/notion/functions/create_page_test.ts b/src/connectors/notion/functions/create_page_test.ts new file mode 100644 index 0000000..028eab1 --- /dev/null +++ b/src/connectors/notion/functions/create_page_test.ts @@ -0,0 +1,34 @@ +/** 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 CreatePage from "./create_page.ts"; + +Deno.test("CreatePage can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_CreatePage_slack_function", + title: "Test CreatePage", + description: "This is a generated test to test CreatePage", + }); + testWorkflow.addStep(CreatePage, { + parent_page_id: "test", + page_title: "test", + }); + const actual = testWorkflow.steps[0].export(); + + assertEquals(actual.function_id, "A05SUU730P2#/functions/create_page"); + assertEquals(actual.inputs, { parent_page_id: "test", page_title: "test" }); +}); + +Deno.test("All outputs of Slack function CreatePage should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_CreatePage_slack_function", + title: "Test CreatePage", + description: "This is a generated test to test CreatePage", + }); + const step = testWorkflow.addStep(CreatePage, { + parent_page_id: "test", + page_title: "test", + }); + assertExists(step.outputs.page_id); + assertExists(step.outputs.page_url); +}); diff --git a/src/connectors/notion/mod.ts b/src/connectors/notion/mod.ts new file mode 100644 index 0000000..fd7d6f9 --- /dev/null +++ b/src/connectors/notion/mod.ts @@ -0,0 +1,18 @@ +/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ +import ArchivePage from "./functions/archive_page.ts"; +import CreatePage from "./functions/create_page.ts"; + +const Notion = { + functions: { + /** + * @see The {@link https://api.slack.com/reference/connectors/notion/archive_page ArchivePage} documentation. + */ + ArchivePage, + /** + * @see The {@link https://api.slack.com/reference/connectors/notion/create_page CreatePage} documentation. + */ + CreatePage, + }, +} as const; + +export default Notion; diff --git a/src/connectors/smartsheet/functions/add_row.ts b/src/connectors/smartsheet/functions/add_row.ts new file mode 100644 index 0000000..ee9b25b --- /dev/null +++ b/src/connectors/smartsheet/functions/add_row.ts @@ -0,0 +1,43 @@ +/** 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/add_row", + title: "Add a row to a Smartsheet", + input_parameters: { + properties: { + sheet: { + type: Schema.types.object, + description: "Select a smartsheet", + title: "Smartsheet", + }, + columns: { + type: Schema.types.object, + description: "Columns", + title: "Columns", + }, + smartsheet_access_token: { + type: Schema.slack.types.oauth2, + description: "Which account should we use to fetch Smartsheets?", + title: "Smartsheet Access Token", + }, + }, + required: ["sheet", "columns", "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"], + }, +}); diff --git a/src/connectors/smartsheet/functions/add_row_test.ts b/src/connectors/smartsheet/functions/add_row_test.ts new file mode 100644 index 0000000..875ff99 --- /dev/null +++ b/src/connectors/smartsheet/functions/add_row_test.ts @@ -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 AddRow from "./add_row.ts"; + +Deno.test("AddRow can be used as a Slack function in a workflow step", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_AddRow_slack_function", + title: "Test AddRow", + description: "This is a generated test to test AddRow", + }); + testWorkflow.addStep(AddRow, { + sheet: "test", + columns: "test", + smartsheet_access_token: "test", + }); + const actual = testWorkflow.steps[0].export(); + + assertEquals(actual.function_id, "A05SEF35LQY#/functions/add_row"); + assertEquals(actual.inputs, { + sheet: "test", + columns: "test", + smartsheet_access_token: "test", + }); +}); + +Deno.test("All outputs of Slack function AddRow should exist", () => { + const testWorkflow = DefineWorkflow({ + callback_id: "test_AddRow_slack_function", + title: "Test AddRow", + description: "This is a generated test to test AddRow", + }); + const step = testWorkflow.addStep(AddRow, { + sheet: "test", + columns: "test", + smartsheet_access_token: "test", + }); + assertExists(step.outputs.smartsheet_url); + assertExists(step.outputs.sheet_id); +}); diff --git a/src/connectors/smartsheet/mod.ts b/src/connectors/smartsheet/mod.ts new file mode 100644 index 0000000..ade215f --- /dev/null +++ b/src/connectors/smartsheet/mod.ts @@ -0,0 +1,13 @@ +/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ +import AddRow from "./functions/add_row.ts"; + +const Smartsheet = { + functions: { + /** + * @see The {@link https://api.slack.com/reference/connectors/smartsheet/add_row AddRow} documentation. + */ + AddRow, + }, +} as const; + +export default Smartsheet;