You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Send a fax to a contact. [See the documentation](https://developers.sinch.com/docs/fax/api-reference/fax/tag/Faxes/#tag/Faxes/operation/sendFax)",
9
+
version: "0.0.1",
10
+
type: "action",
11
+
annotations: {
12
+
destructiveHint: false,
13
+
openWorldHint: true,
14
+
readOnlyHint: false,
15
+
},
16
+
props: {
17
+
sinch,
18
+
to: {
19
+
type: "string",
20
+
label: "To",
21
+
description: "The phone number to send the fax to",
22
+
},
23
+
file: {
24
+
type: "string",
25
+
label: "File Path or URL",
26
+
description: "Provide either a file URL or a path to a file in the /tmp directory (for example, /tmp/myFile.pdf).",
27
+
},
28
+
from: {
29
+
type: "string",
30
+
label: "From",
31
+
description: "The phone number of the sender",
32
+
optional: true,
33
+
},
34
+
headerText: {
35
+
type: "string",
36
+
label: "Header Text",
37
+
description: "Text that will be displayed at the top of each page of the fax. 50 characters maximum.",
38
+
optional: true,
39
+
},
40
+
retryDelaySeconds: {
41
+
type: "integer",
42
+
label: "Retry Delay Seconds",
43
+
description: "The number of seconds to wait between retries if the fax is not yet completed",
description: "Send a message to a contact. [See the documentation](https://developers.sinch.com/docs/conversation/api-reference/conversation/tag/Messages/#tag/Messages/operation/Messages_SendMessage)",
9
+
version: "0.0.1",
10
+
type: "action",
11
+
annotations: {
12
+
destructiveHint: false,
13
+
openWorldHint: true,
14
+
readOnlyHint: false,
15
+
},
16
+
props: {
17
+
sinch,
18
+
appId: {
19
+
propDefinition: [
20
+
sinch,
21
+
"appId",
22
+
],
23
+
},
24
+
message: {
25
+
type: "string",
26
+
label: "Message",
27
+
description: "The message to send",
28
+
},
29
+
contactId: {
30
+
propDefinition: [
31
+
sinch,
32
+
"contactId",
33
+
],
34
+
description: "The ID of the recipient. Overrides channel and identity",
35
+
optional: true,
36
+
},
37
+
channel: {
38
+
type: "string",
39
+
label: "Channel",
40
+
description: "The channel to send the message to",
41
+
options: constants.CHANNELS,
42
+
optional: true,
43
+
},
44
+
identity: {
45
+
type: "string",
46
+
label: "Identity",
47
+
description: "The channel identity. This will differ from channel to channel. For example, a phone number for SMS, WhatsApp, and Viber Business.",
48
+
optional: true,
49
+
},
50
+
},
51
+
asyncrun({ $ }){
52
+
if(!this.contactId&&!this.identity){
53
+
thrownewConfigurationError("You must provide either a contact ID or an identity.");
54
+
}
55
+
56
+
if(this.identity&&!this.channel){
57
+
thrownewConfigurationError("You must provide a channel when providing an identity.");
0 commit comments