// This is Generated Source. import GetExtensionPhoneNumbersResponse from "../definitions/GetExtensionPhoneNumbersResponse"; import PhoneNumberInfo from "../definitions/PhoneNumberInfo"; import PathSegment from "../PathSegment"; export default class PhoneNumber extends PathSegment { constructor(prv: PathSegment, id?: string, service?) { super("phone-number", id, prv, service); } /** *
Since 1.0.2
Returns the list of phone numbers that are used by a particular extension, and can be filtered by the phone number type. The returned list contains all numbers which are directly mapped to a given extension plus the features and also company-level numbers which may be used when performing different operations on behalf of this extension.
| Permission | Description |
|---|---|
| ReadAccounts | Viewing user account info (including name, business name, address and phone number/account number) |
Light
*/ list(query?: ListQuery): PromiseSince 1.0.2
Returns the list of phone numbers that are used by a particular extension, and can be filtered by the phone number type. The returned list contains all numbers which are directly mapped to a given extension plus the features and also company-level numbers which may be used when performing different operations on behalf of this extension.
| Permission | Description |
|---|---|
| ReadAccounts | Viewing user account info (including name, business name, address and phone number/account number) |
Light
* return {ApiResponse} */ listRaw(query?: ListQuery): Promise| Permission | Description |
|---|---|
| ReadAccounts | Viewing user account info (including name, business name, address and phone number/account number) |
Light
*/ get(): Promise| Permission | Description |
|---|---|
| ReadAccounts | Viewing user account info (including name, business name, address and phone number/account number) |
Light
* return {ApiResponse} */ getRaw(): Promise