Skip to content

Commit 2c2130c

Browse files
Automated commit: Latest generated changes from schedule action (#89)
Co-authored-by: github-actions <wbergamin@salesforce.com>
1 parent e022f45 commit 2c2130c

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

src/connectors/giphy/functions/get_random_gif.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Schema } from "../../../deps.ts";
44

55
export default DefineConnector({
66
callback_id: "A04U5QUE5EX#/functions/get_random_gif",
7-
title: "Random GIF",
7+
title: "Get a Random GIF",
88
description: "Get a random Giphy GIF",
99
input_parameters: {
1010
properties: {

src/connectors/giphy/functions/get_translated_gif.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,14 @@ export default DefineConnector({
1919
title: "Weirdness",
2020
enum: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"],
2121
},
22+
rating: {
23+
type: Schema.types.string,
24+
description: "Filter results by a specified rating",
25+
title: "Rating",
26+
enum: ["g", "pg", "pg-13"],
27+
},
2228
},
23-
required: ["search_term"],
29+
required: ["search_term", "rating"],
2430
},
2531
output_parameters: {
2632
properties: {

src/connectors/giphy/functions/get_translated_gif_test.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@ Deno.test("GetTranslatedGif can be used as a Slack function in a workflow step",
99
title: "Test GetTranslatedGif",
1010
description: "This is a generated test to test GetTranslatedGif",
1111
});
12-
testWorkflow.addStep(GetTranslatedGif, { search_term: "test" });
12+
testWorkflow.addStep(GetTranslatedGif, {
13+
search_term: "test",
14+
rating: "test",
15+
});
1316
const actual = testWorkflow.steps[0].export();
1417

1518
assertEquals(actual.function_id, "A04U5QUE5EX#/functions/get_translated_gif");
16-
assertEquals(actual.inputs, { search_term: "test" });
19+
assertEquals(actual.inputs, { search_term: "test", rating: "test" });
1720
});
1821

1922
Deno.test("All outputs of Slack function GetTranslatedGif should exist", () => {
@@ -22,7 +25,10 @@ Deno.test("All outputs of Slack function GetTranslatedGif should exist", () => {
2225
title: "Test GetTranslatedGif",
2326
description: "This is a generated test to test GetTranslatedGif",
2427
});
25-
const step = testWorkflow.addStep(GetTranslatedGif, { search_term: "test" });
28+
const step = testWorkflow.addStep(GetTranslatedGif, {
29+
search_term: "test",
30+
rating: "test",
31+
});
2632
assertExists(step.outputs.gif_title_url);
2733
assertExists(step.outputs.search_term);
2834
});

src/connectors/mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** This file was autogenerated on Mon Sep 08 2025. Follow the steps in src/schema/slack/functions/README.md to rebuild **/
1+
/** This file was autogenerated on Mon Nov 03 2025. Follow the steps in src/schema/slack/functions/README.md to rebuild **/
22
import AdobeSign from "./adobe.sign/mod.ts";
33
import Airtable from "./airtable/mod.ts";
44
import Asana from "./asana/mod.ts";

0 commit comments

Comments
 (0)