-
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 (#25)
Co-authored-by: github-actions <[email protected]>
- Loading branch information
1 parent
0eb687d
commit 5a0a5cb
Showing
52 changed files
with
1,902 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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"], | ||
}, | ||
}); |
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,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); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ | ||
import 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; |
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,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: [], | ||
}, | ||
}); |
40 changes: 40 additions & 0 deletions
40
src/connectors/google.calendar/functions/add_to_event_test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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); | ||
}); |
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,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: [], | ||
}, | ||
}); |
30 changes: 30 additions & 0 deletions
30
src/connectors/google.calendar/functions/create_event_test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** This file was autogenerated. Follow the steps in src/schema/slack/functions/README.md to rebuild **/ | ||
import 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; |
Oops, something went wrong.