GET | /portal/search-phone-numbers |
---|
"use strict";
export class AppSearchPhoneNumberInfo {
/** @param {{phoneNumber?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
phoneNumber;
}
export class AppSearchPhoneNumbersResponse {
/** @param {{numbers?:AppSearchPhoneNumberInfo[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {AppSearchPhoneNumberInfo[]} */
numbers;
}
/** @typedef {'PhoneNumber'|'User'|'FaxNumber'|'EmailAddress'|'Unused_1'|'Unused_2'|'Unused_3'|'Unused_4'|'Unused_5'|'Team'|'Assistant'} */
export var EndpointTypes;
(function (EndpointTypes) {
EndpointTypes["PhoneNumber"] = "PhoneNumber"
EndpointTypes["User"] = "User"
EndpointTypes["FaxNumber"] = "FaxNumber"
EndpointTypes["EmailAddress"] = "EmailAddress"
EndpointTypes["Unused_1"] = "Unused_1"
EndpointTypes["Unused_2"] = "Unused_2"
EndpointTypes["Unused_3"] = "Unused_3"
EndpointTypes["Unused_4"] = "Unused_4"
EndpointTypes["Unused_5"] = "Unused_5"
EndpointTypes["Team"] = "Team"
EndpointTypes["Assistant"] = "Assistant"
})(EndpointTypes || (EndpointTypes = {}));
export class AppSearchPhoneNumbers {
/** @param {{accountId?:string,customerId?:string,areaCode?:string,countryCode?:string,postalCode?:string,contains?:string,distance?:number,phoneNumberType?:EndpointTypes}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
accountId;
/** @type {string} */
customerId;
/** @type {string} */
areaCode;
/** @type {string} */
countryCode;
/** @type {string} */
postalCode;
/** @type {string} */
contains;
/** @type {?number} */
distance;
/** @type {EndpointTypes} */
phoneNumberType;
}
JavaScript AppSearchPhoneNumbers DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /portal/search-phone-numbers HTTP/1.1 Host: team.evovoice.io Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"numbers":[{"phoneNumber":"String"}]}