Skip to content

Commit

Permalink
Merge pull request #235 from plivo/make-appId-non-mandatory
Browse files Browse the repository at this point in the history
Make appId non mandatory for Typescript
  • Loading branch information
huzaif-plivo authored Jan 21, 2022
2 parents 7450f68 + 7a09186 commit c557dcc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [v4.26.1](https://github.com/plivo/plivo-node/tree/v4.26.1) (2022-01-21)
**Bug Fix**
- Making AppId non mandatory for Buy number and update number APIs(https://github.com/plivo/plivo-node/pull/234)

## [v4.26.0](https://github.com/plivo/plivo-node/tree/v4.26.0) (2021-12-14)
**Features - Voice**
- Routing SDK traffic through Akamai endpoints for all the [Voice APIs](https://www.plivo.com/docs/voice/api/overview/)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plivo",
"version": "4.26.0",
"version": "4.26.1",
"description": "A Node.js SDK to make voice calls and send SMS using Plivo and to generate Plivo XML",
"homepage": "https://github.com/plivo/plivo-node",
"files": [
Expand Down
8 changes: 4 additions & 4 deletions types/resources/numbers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class PhoneNumber extends PlivoResource {
* @promise {@link PlivoGenericResponse} return PlivoGenericResponse Object if success
* @fail {Error} return Error
*/
buy(appId: string): Promise < any > ;
buy(appId?: string): Promise < any > ;
[clientKey]: symbol;
}
/**
Expand All @@ -67,7 +67,7 @@ export class PhoneNumberInterface extends PlivoResourceInterface {
* @promise {@link PlivoGenericResponse} return PlivoGenericResponse Object if success
* @fail {Error} return Error
*/
buy(number: string, appId: string): Promise < any > ;
buy(number: string, appId?: string): Promise < any > ;
[clientKey]: symbol;
}
/**
Expand Down Expand Up @@ -104,7 +104,7 @@ export class NumberInterface extends PlivoResourceInterface {
* @promise {@link PlivoGenericResponse} return PlivoGenericResponse Object if success
* @fail {Error} return Error
*/
buy(number: string, appId: string): Promise < BuyNumberResponse > ;
buy(number: string, appId?: string): Promise < BuyNumberResponse > ;
/**
* Add own number from carrier
* @method
Expand All @@ -124,7 +124,7 @@ export class NumberInterface extends PlivoResourceInterface {
* @promise {@link PhoneNumberInterface} return PhoneNumbers Object if success
* @fail {Error} return Error
*/
search(countryISO: string, optionalParams: object): Promise < SearchNumberResponse > ;
search(countryISO: string, optionalParams: object): Promise < SearchNumberResponse[] > ;
/**
* Update Number
* @method
Expand Down

0 comments on commit c557dcc

Please sign in to comment.