Skip to content

Commit

Permalink
modified node sdk for number masking
Browse files Browse the repository at this point in the history
  • Loading branch information
Abinaya-Shunmugavel committed Jul 21, 2023
1 parent c78eb60 commit 68899e4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 36 deletions.
1 change: 1 addition & 0 deletions lib/resources/call.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ export class CallInterface extends PlivoResourceInterface {
});
});
}

/**
* Hangup A Specific Call
* @method
Expand Down
35 changes: 0 additions & 35 deletions test/calls.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,39 +293,4 @@ describe('calls', function () {
})
});
});
describe('MaskingSession', function () {
it('should create masking session!', function () {
client.calls.createMaskingSession("917708772011", "918220568648",
{
callTimeLimit: 14600,
},
).then(function (response) {
assert.equal(response.message, 'Session created')
})
});
it('should delete a masking session!', function () {
client.calls.deleteMaskingSession("197aa6e0-1abe-4d1c-b887-2b2406764360")
.then(function (response) {
assert.equal(response.message, 'Session expired')
})
});
it('should get masking session by session uuid!', function () {
client.calls.getMaskingSession("197aa6e0-1abe-4d1c-b887-2b2406764360")
.then(function (response) {
assert.equal(response.response.sessionUuid, "197aa6e0-1abe-4d1c-b887-2b2406764360")
})
});
it('should update masking session using session uuid!', function () {
client.calls.updateMaskingSession("63690013-52bb-43fa-9b0b-bf81c9f4d766")
.then(function (response) {
assert.equal(response.message, 'Session updated')
})
});
it('should list masking session!', function () {
client.calls.listMaskingSession()
.then(function (response) {
assert.equal(response.length, 2)
})
});
});
});
2 changes: 1 addition & 1 deletion types/resources/call.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export class CallInterface extends PlivoResourceInterface {
*/
create(from: string, to: string, answerUrl: string, params ? : {}): Promise < CreateCallResponse > ;

/**
/**
* Hangup A Specific Call
* @method
* @param {string} callUUID - call uuid to hangup call
Expand Down

0 comments on commit 68899e4

Please sign in to comment.