Skip to content

Commit 4e533db

Browse files
committed
Adjustments
1 parent 89f40af commit 4e533db

File tree

5 files changed

+10
-24
lines changed

5 files changed

+10
-24
lines changed

components/yay_com/actions/create-outbound-call/create-outbound-call.mjs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import yayCom from "../../yay_com.app.mjs";
44
export default {
55
key: "yay_com-create-outbound-call",
66
name: "Create Outbound Call",
7-
description: "Initiates an outbound call to a specified number. [See documentation](https://www.yay.com/voip/api-docs/calls/outbound-call/)",
7+
description: "Initiates an outbound call to a specified number. [See the documentation](https://www.yay.com/voip/api-docs/calls/outbound-call/)",
88
version: "0.0.1",
99
type: "action",
1010
props: {
@@ -30,8 +30,11 @@ export default {
3030
sipUsers: {
3131
propDefinition: [
3232
yayCom,
33-
"sipUsers",
33+
"sipUser",
3434
],
35+
type: "string[]",
36+
description: "One or more SIP users who will receive the outbound call request",
37+
optional: true,
3538
},
3639
huntGroups: {
3740
propDefinition: [
@@ -63,9 +66,7 @@ export default {
6366
user_uuid: this.userUuid,
6467
destination: this.destination,
6568
display_name: this.displayName,
66-
...(targets.length > 0 && {
67-
targets,
68-
}),
69+
targets,
6970
},
7071
});
7172

components/yay_com/actions/get-documents/get-documents.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "yay_com-get-documents",
55
name: "Get Documents",
66
description:
7-
"Retrieves a list of documents. [See documentation](https://www.yay.com/voip/api-docs/account/document/)",
7+
"Retrieves all documents available. [See the documentation](https://www.yay.com/voip/api-docs/account/document/)",
88
version: "0.0.1",
99
type: "action",
1010
props: {

components/yay_com/actions/get-phone-books/get-phone-books.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import yayCom from "../../yay_com.app.mjs";
33
export default {
44
key: "yay_com-get-phone-books",
55
name: "Get Phone Books",
6-
description: "Retrieves a list of phone books. [See documentation](https://www.yay.com/voip/api-docs/phone-books/phone-book/)",
6+
description: "Retrieves all phone books available. [See the documentation](https://www.yay.com/voip/api-docs/phone-books/phone-book/)",
77
version: "0.0.1",
88
type: "action",
99
props: {

components/yay_com/sources/new-contact-added/new-contact-added.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
...common,
55
key: "yay_com-new-contact-added",
66
name: "New Contact Added",
7-
description: "Emit new event when a new contact is added to a phone book. [See the documentation](https://www.yay.com/voip/api-docs/phone-books/phone-book-contact/)",
7+
description: "Emit new event when a contact is added to a phone book. [See the documentation](https://www.yay.com/voip/api-docs/phone-books/phone-book-contact/)",
88
version: "0.0.1",
99
type: "source",
1010
dedupe: "unique",

components/yay_com/yay_com.app.mjs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,10 @@ export default {
1818
})) || [];
1919
},
2020
},
21-
sipUsers: {
22-
type: "string[]",
23-
label: "SIP Users",
24-
description: "List of SIP users who will receive the outbound call request",
25-
optional: true,
26-
async options() {
27-
const users = await this.listSipUsers();
28-
return users?.map(({
29-
uuid: value, display_name, user_name,
30-
}) => ({
31-
label: display_name || user_name,
32-
value,
33-
})) || [];
34-
},
35-
},
3621
huntGroups: {
3722
type: "string[]",
3823
label: "Hunt Groups",
39-
description: "List of hunt groups who will receive the outbound call request",
24+
description: "One or more hunt groups who will receive the outbound call request",
4025
optional: true,
4126
async options() {
4227
const groups = await this.listHuntGroups();

0 commit comments

Comments
 (0)