-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(providers): Upgrade vonage sdk to latest version (#4937)
* fix: version up of nexmo provider * fix: removed dep * fix: add vonage lockfile --------- Co-authored-by: Dima Grossman <[email protected]>
- Loading branch information
Showing
8 changed files
with
301 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
packages/application-generic/src/factories/sms/handlers/nexmo.handler.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { ChannelTypeEnum, ICredentials } from '@novu/shared'; | ||
import { BaseSmsHandler } from './base.handler'; | ||
import { NexmoSmsProvider } from '@novu/nexmo'; | ||
|
||
export class NexmoHandler extends BaseSmsHandler { | ||
constructor() { | ||
super('nexmo', ChannelTypeEnum.SMS); | ||
} | ||
|
||
buildProvider(credentials: ICredentials) { | ||
this.provider = new NexmoSmsProvider({ | ||
apiKey: credentials.apiKey, | ||
from: credentials.from, | ||
apiSecret: credentials.secretKey, | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.