-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from sreeteja06/v2.x
extra_param parameter in send request.
- Loading branch information
Showing
4 changed files
with
35 additions
and
2 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
interface IMsg91OtpConstructorArgs { | ||
authKey: string; | ||
templateId: string; | ||
baseUrl?: string; | ||
apiVersion?: string; | ||
otpExpiry?: number; | ||
otpLength?: number; | ||
} | ||
|
||
interface IMsg91SendOtpArgs { | ||
templateId?: string; | ||
expiry?: number; | ||
otpLength?: number; | ||
email?: string; | ||
invisible?: 0 | 1; | ||
extra_param: any; | ||
} | ||
|
||
declare class Msg91Otp { | ||
constructor(args: IMsg91OtpConstructorArgs); | ||
|
||
send(contactNumber: string | number, args?: IMsg91SendOtpArgs): Promise<any>; | ||
|
||
retry(contactNumber: string | number, retryType?: string): Promise<any>; | ||
|
||
verify(contactNumber: string | number, otp: number | string): Promise<any>; | ||
} | ||
|
||
export { Msg91Otp as msg91OTP }; |