-
Notifications
You must be signed in to change notification settings - Fork 151
/
Copy pathprovider-sms.js
48 lines (47 loc) · 915 Bytes
/
provider-sms.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* @flow */
import type { SmsRequestType } from './notification-request'
// TODO?: other SMS providers
export type SmsProviderType = {
type: 'logger'
} | {
type: 'custom',
id: string,
send: (SmsRequestType) => Promise<string>
} | {
type: '46elks',
apiUsername: string,
apiPassword: string
} | {
type: 'callr',
login: string,
password: string
} | {
type: 'clickatell',
apiKey: string // One-way integration API key
} | {
type: 'infobip',
username: string,
password: string
} | {
type: 'nexmo',
apiKey: string,
apiSecret: string
} | {
type: 'ovh',
appKey: string,
appSecret: string,
consumerKey: string,
account: string,
host: string // https://github.com/ovh/node-ovh/blob/master/lib/endpoints.js
} | {
type: 'plivo',
authId: string,
authToken: string
} | {
type: 'twilio',
accountSid: string,
authToken: string
} | {
type: 'seven',
apiKey: string,
}