Skip to content

Commit 0fd8ddd

Browse files
committed
some adjsuts and added List Jobs action
1 parent 9499cf8 commit 0fd8ddd

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import hamsa from "../../hamsa.app.mjs";
2+
3+
export default {
4+
key: "hamsa-list-jobs",
5+
name: "List Jobs",
6+
description: "Fetch the list of jobs from Hamsa. [See the documentation](https://docs.tryhamsa.com/api-reference/endpoint/get-jobs-list)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
hamsa,
11+
},
12+
async run({ $ }) {
13+
const response = await this.hamsa.listJobs({
14+
$,
15+
});
16+
17+
$.export("$summary", `Successfully fetched ${response?.data?.jobs?.legnth} jobs.`);
18+
19+
return response;
20+
},
21+
};

components/hamsa/actions/synthethize-voice/synthethize-voice.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import hamsa from "../../hamsa.app.mjs";
22

33
export default {
44
key: "hamsa-synthethize-voice",
5-
name: "Synthesize Voice",
5+
name: "Synthethize Voice",
66
description: "Converts text input into artificial speech using Hamsa. [See the documentation](https://docs.tryhamsa.com/api-reference/endpoint/generate-tts)",
77
version: "0.0.1",
88
type: "action",

0 commit comments

Comments
 (0)