wavix-sdk 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/types/http.d.ts +5 -5
- package/lib/cjs/types/http.d.ts.map +1 -1
- package/lib/cjs/types/services/billing/billing.service.d.ts +2 -2
- package/lib/cjs/types/services/buy/buy.service.d.ts +5 -5
- package/lib/cjs/types/services/call/call.service.d.ts +2 -2
- package/lib/cjs/types/services/call/call.service.d.ts.map +1 -1
- package/lib/cjs/types/services/cart/cart.service.d.ts +3 -3
- package/lib/cjs/types/services/did/did.service.d.ts +4 -4
- package/lib/cjs/types/services/e911/e911.service.d.ts +4 -4
- package/lib/cjs/types/services/link-shortener/link-shortener.service.d.ts +2 -2
- package/lib/cjs/types/services/number-validation/number-validation.interface.d.ts +7 -7
- package/lib/cjs/types/services/number-validation/number-validation.interface.d.ts.map +1 -1
- package/lib/cjs/types/services/number-validation/number-validation.service.d.ts +4 -4
- package/lib/cjs/types/services/number-validation/number-validation.service.d.ts.map +1 -1
- package/lib/cjs/types/services/profile/profile.service.d.ts +3 -3
- package/lib/cjs/types/services/sip-trunk/sip-trunk.service.d.ts +5 -5
- package/lib/cjs/types/services/sms-and-mms/sms-and-mms.service.d.ts +8 -8
- package/lib/cjs/types/services/speech-analytics/speech-analytics.service.d.ts +2 -2
- package/lib/cjs/types/services/two-fa/two-fa.service.d.ts +5 -5
- package/lib/cjs/types/services/voice-campaigns/voice-campaigns.service.d.ts +1 -1
- package/lib/esm/types/http.d.ts +5 -5
- package/lib/esm/types/http.d.ts.map +1 -1
- package/lib/esm/types/services/billing/billing.service.d.ts +2 -2
- package/lib/esm/types/services/buy/buy.service.d.ts +5 -5
- package/lib/esm/types/services/call/call.service.d.ts +2 -2
- package/lib/esm/types/services/call/call.service.d.ts.map +1 -1
- package/lib/esm/types/services/cart/cart.service.d.ts +3 -3
- package/lib/esm/types/services/did/did.service.d.ts +4 -4
- package/lib/esm/types/services/e911/e911.service.d.ts +4 -4
- package/lib/esm/types/services/link-shortener/link-shortener.service.d.ts +2 -2
- package/lib/esm/types/services/number-validation/number-validation.interface.d.ts +7 -7
- package/lib/esm/types/services/number-validation/number-validation.interface.d.ts.map +1 -1
- package/lib/esm/types/services/number-validation/number-validation.service.d.ts +4 -4
- package/lib/esm/types/services/number-validation/number-validation.service.d.ts.map +1 -1
- package/lib/esm/types/services/profile/profile.service.d.ts +3 -3
- package/lib/esm/types/services/sip-trunk/sip-trunk.service.d.ts +5 -5
- package/lib/esm/types/services/sms-and-mms/sms-and-mms.service.d.ts +8 -8
- package/lib/esm/types/services/speech-analytics/speech-analytics.service.d.ts +2 -2
- package/lib/esm/types/services/two-fa/two-fa.service.d.ts +5 -5
- package/lib/esm/types/services/voice-campaigns/voice-campaigns.service.d.ts +1 -1
- package/package.json +1 -1
package/lib/cjs/types/http.d.ts
CHANGED
|
@@ -4,11 +4,11 @@ declare class Http {
|
|
|
4
4
|
private appid;
|
|
5
5
|
private instance;
|
|
6
6
|
constructor(baseURL: string, appid: string);
|
|
7
|
-
get<T>(path: string, config?: AxiosRequestConfig): Promise<T>;
|
|
8
|
-
post<T, U>(path: string, payload?: U, config?: AxiosRequestConfig): Promise<T>;
|
|
9
|
-
put<T, U>(path: string, payload?: U): Promise<T>;
|
|
10
|
-
patch<T, U>(path: string, payload?: U): Promise<T>;
|
|
11
|
-
delete<T>(path: string): Promise<T>;
|
|
7
|
+
get<T>(path: string, config?: AxiosRequestConfig): Promise<T | ErrorResponse>;
|
|
8
|
+
post<T, U>(path: string, payload?: U, config?: AxiosRequestConfig): Promise<T | ErrorResponse>;
|
|
9
|
+
put<T, U>(path: string, payload?: U): Promise<T | ErrorResponse>;
|
|
10
|
+
patch<T, U>(path: string, payload?: U): Promise<T | ErrorResponse>;
|
|
11
|
+
delete<T>(path: string): Promise<T | ErrorResponse>;
|
|
12
12
|
paramsToQueryString(params?: object): string;
|
|
13
13
|
private parsePayload;
|
|
14
14
|
private getUrl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/http.ts"],"names":[],"mappings":"AAAA,OAAc,EAA6B,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAM5E,cAAM,IAAI;IAKN,OAAO,CAAC,OAAO;IAJjB,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,QAAQ,CAAe;gBAGrB,OAAO,EAAE,MAAM,EACvB,KAAK,EAAE,MAAM;IAWF,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/http.ts"],"names":[],"mappings":"AAAA,OAAc,EAA6B,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAM5E,cAAM,IAAI;IAKN,OAAO,CAAC,OAAO;IAJjB,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,QAAQ,CAAe;gBAGrB,OAAO,EAAE,MAAM,EACvB,KAAK,EAAE,MAAM;IAWF,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,CAAC,GAAG,aAAa,CAAC;IAS7E,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,CAAC,GAAG,aAAa,CAAC;IAS9F,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,aAAa,CAAC;IAShE,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,aAAa,CAAC;IASlE,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,aAAa,CAAC;IASzD,mBAAmB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM;IAUnD,OAAO,CAAC,YAAY;IAcpB,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,YAAY;IAYpB,OAAO,CAAC,UAAU;CAOnB;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { AccountInvoicesItem, AccountTransactionsItem, GetAccountInvoicesQueryParameters, GetAccountTransactionsQueryParameters } from "./billing.interface";
|
|
3
3
|
declare class Billing extends ServiceBase {
|
|
4
|
-
getAccountTransactions(queryParameters: GetAccountTransactionsQueryParameters): Promise<PaginatedResponse<AccountTransactionsItem, "transactions">>;
|
|
5
|
-
getAccountInvoices(queryParameters?: GetAccountInvoicesQueryParameters): Promise<PaginatedResponse<AccountInvoicesItem, "invoices">>;
|
|
4
|
+
getAccountTransactions(queryParameters: GetAccountTransactionsQueryParameters): Promise<ErrorResponse | PaginatedResponse<AccountTransactionsItem, "transactions">>;
|
|
5
|
+
getAccountInvoices(queryParameters?: GetAccountInvoicesQueryParameters): Promise<ErrorResponse | PaginatedResponse<AccountInvoicesItem, "invoices">>;
|
|
6
6
|
downloadInvoiceById(id: number): Promise<unknown>;
|
|
7
7
|
}
|
|
8
8
|
export { Billing };
|
|
@@ -2,11 +2,11 @@ import { Did } from "services/cart/cart.interface";
|
|
|
2
2
|
import ServiceBase from "../service.base";
|
|
3
3
|
import { GetAvailableToPurchaseDidsQueryParameters, GetCountriesListResponse, GetCountryCitiesListResponse, GetRegionCitiesListResponse, GetRegionsListResponse } from "./buy.interface";
|
|
4
4
|
declare class Buy extends ServiceBase {
|
|
5
|
-
getCountriesList(): Promise<GetCountriesListResponse>;
|
|
6
|
-
getRegionsList(countryId: number): Promise<GetRegionsListResponse>;
|
|
7
|
-
getCountryCitiesList(countryId: number): Promise<GetCountryCitiesListResponse>;
|
|
8
|
-
getRegionCitiesList(countryId: number, regionId: number): Promise<GetRegionCitiesListResponse>;
|
|
9
|
-
getAvailableToPurchaseDids(countryId: number, cityId: number, queryParameters?: GetAvailableToPurchaseDidsQueryParameters): Promise<PaginatedResponse<Did, "dids">>;
|
|
5
|
+
getCountriesList(): Promise<ErrorResponse | GetCountriesListResponse>;
|
|
6
|
+
getRegionsList(countryId: number): Promise<ErrorResponse | GetRegionsListResponse>;
|
|
7
|
+
getCountryCitiesList(countryId: number): Promise<ErrorResponse | GetCountryCitiesListResponse>;
|
|
8
|
+
getRegionCitiesList(countryId: number, regionId: number): Promise<ErrorResponse | GetRegionCitiesListResponse>;
|
|
9
|
+
getAvailableToPurchaseDids(countryId: number, cityId: number, queryParameters?: GetAvailableToPurchaseDidsQueryParameters): Promise<ErrorResponse | PaginatedResponse<Did, "dids">>;
|
|
10
10
|
}
|
|
11
11
|
export { Buy };
|
|
12
12
|
//# sourceMappingURL=buy.service.d.ts.map
|
|
@@ -6,8 +6,8 @@ declare class Call extends ServiceBase {
|
|
|
6
6
|
private callback;
|
|
7
7
|
connect(): Promise<void | Error>;
|
|
8
8
|
onEvent(callback: (event: CallEvent) => void): void;
|
|
9
|
-
getList(): Promise<CallResponse>;
|
|
10
|
-
start(payload: StartCall): Promise<CallEvent & StartCallErrorResponse>;
|
|
9
|
+
getList(): Promise<CallResponse | ErrorResponse>;
|
|
10
|
+
start(payload: StartCall): Promise<(CallEvent & StartCallErrorResponse) | ErrorResponse>;
|
|
11
11
|
playAudio(callUUID: string, url: string, options?: PlayAudioOptions): Promise<BasicSuccess>;
|
|
12
12
|
/**
|
|
13
13
|
* Voice list
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/call/call.service.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,iBAAiB,CAAA;AACzC,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EAGV,eAAe,EAChB,MAAM,kBAAkB,CAAA;AAMzB,cAAM,IAAK,SAAQ,WAAW;IAC5B,MAAM,CAAC,iBAAiB,SAAO;IAE/B,OAAO,CAAC,EAAE,CAAyB;IACnC,OAAO,CAAC,QAAQ,CAEf;IAEM,OAAO,IAAI,OAAO,CAAC,IAAI,GAAG,KAAK,CAAC;IAwBhC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,GAAG,IAAI;IAcnD,OAAO,IAAI,OAAO,CAAC,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"call.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/call/call.service.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,iBAAiB,CAAA;AACzC,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EAGV,eAAe,EAChB,MAAM,kBAAkB,CAAA;AAMzB,cAAM,IAAK,SAAQ,WAAW;IAC5B,MAAM,CAAC,iBAAiB,SAAO;IAE/B,OAAO,CAAC,EAAE,CAAyB;IACnC,OAAO,CAAC,QAAQ,CAEf;IAEM,OAAO,IAAI,OAAO,CAAC,IAAI,GAAG,KAAK,CAAC;IAwBhC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,GAAG,IAAI;IAcnD,OAAO,IAAI,OAAO,CAAC,YAAY,GAAG,aAAa,CAAC;IAIhD,KAAK,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC,CAAC,SAAS,GAAG,sBAAsB,CAAC,GAAG,aAAa,CAAC;IAQxF,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC;IAQlG;;;OAGG;IACI,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC;IAShF,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,YAAY,CAAC;IAY3E,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,YAAY,CAAC;IAIjF,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAI9C,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,aAAa,CAAC;CAG/E;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { AddDidNumbersToCartPayload, AddDidNumbersToCartResponse, CheckoutPayload, CheckoutResponse, GetCartContentResponse } from "./cart.interface";
|
|
3
3
|
declare class Cart extends ServiceBase {
|
|
4
|
-
getCartContent(): Promise<GetCartContentResponse>;
|
|
5
|
-
addDidNumbersToCart(payload: AddDidNumbersToCartPayload): Promise<AddDidNumbersToCartResponse>;
|
|
6
|
-
checkoutDidNumbers(payload: CheckoutPayload): Promise<CheckoutResponse>;
|
|
4
|
+
getCartContent(): Promise<ErrorResponse | GetCartContentResponse>;
|
|
5
|
+
addDidNumbersToCart(payload: AddDidNumbersToCartPayload): Promise<ErrorResponse | AddDidNumbersToCartResponse>;
|
|
6
|
+
checkoutDidNumbers(payload: CheckoutPayload): Promise<ErrorResponse | CheckoutResponse>;
|
|
7
7
|
}
|
|
8
8
|
export { Cart };
|
|
9
9
|
//# sourceMappingURL=cart.service.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { DidListItem, GetAccountDidsQueryParameters, ReturnDidsToStockResponse, UpdateDidDestinationsPayload, UpdateDidDestinationsResponse, UploadDidDocumentPayload, UploadDidDocumentResponse } from "./did.interface";
|
|
3
3
|
declare class Did extends ServiceBase {
|
|
4
|
-
getAccountDids(queryParameters?: GetAccountDidsQueryParameters): Promise<PaginatedResponse<DidListItem, "items">>;
|
|
5
|
-
updateDidDestinations(payload: UpdateDidDestinationsPayload): Promise<UpdateDidDestinationsResponse>;
|
|
6
|
-
uploadDidDocument(payload: UploadDidDocumentPayload): Promise<UploadDidDocumentResponse>;
|
|
7
|
-
returnDidsToStock(ids: Array<number>): Promise<ReturnDidsToStockResponse>;
|
|
4
|
+
getAccountDids(queryParameters?: GetAccountDidsQueryParameters): Promise<ErrorResponse | PaginatedResponse<DidListItem, "items">>;
|
|
5
|
+
updateDidDestinations(payload: UpdateDidDestinationsPayload): Promise<ErrorResponse | UpdateDidDestinationsResponse>;
|
|
6
|
+
uploadDidDocument(payload: UploadDidDocumentPayload): Promise<ErrorResponse | UploadDidDocumentResponse>;
|
|
7
|
+
returnDidsToStock(ids: Array<number>): Promise<ErrorResponse | ReturnDidsToStockResponse>;
|
|
8
8
|
}
|
|
9
9
|
export { Did };
|
|
10
10
|
//# sourceMappingURL=did.service.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { CreateE911Payload, CreateE911Response, DeleteE911QueryParameters, DeleteE911Response, E911ListItem, GetListQueryParameters, ValidateAddressPayload, ValidateAddressResponse } from "./e911.interface";
|
|
3
3
|
declare class E911 extends ServiceBase {
|
|
4
|
-
getList(params?: GetListQueryParameters): Promise<PaginatedResponse<E911ListItem, "items">>;
|
|
5
|
-
validateAddress(payload: ValidateAddressPayload): Promise<ValidateAddressResponse>;
|
|
6
|
-
create(payload: CreateE911Payload): Promise<CreateE911Response>;
|
|
7
|
-
delete(params: DeleteE911QueryParameters): Promise<DeleteE911Response>;
|
|
4
|
+
getList(params?: GetListQueryParameters): Promise<ErrorResponse | PaginatedResponse<E911ListItem, "items">>;
|
|
5
|
+
validateAddress(payload: ValidateAddressPayload): Promise<ErrorResponse | ValidateAddressResponse>;
|
|
6
|
+
create(payload: CreateE911Payload): Promise<ErrorResponse | CreateE911Response>;
|
|
7
|
+
delete(params: DeleteE911QueryParameters): Promise<ErrorResponse | DeleteE911Response>;
|
|
8
8
|
}
|
|
9
9
|
export { E911 };
|
|
10
10
|
//# sourceMappingURL=e911.service.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { CreateShortLinkPayload, CreateShortLinkResponse, GetShortLinksMetricsQueryParameters, GetShortLinksMetricsResponse } from "./link-shortener.interface";
|
|
3
3
|
declare class LinkShortener extends ServiceBase {
|
|
4
|
-
getShortLinksMetrics(params: GetShortLinksMetricsQueryParameters): Promise<GetShortLinksMetricsResponse>;
|
|
5
|
-
createShortLink(payload: CreateShortLinkPayload): Promise<CreateShortLinkResponse>;
|
|
4
|
+
getShortLinksMetrics(params: GetShortLinksMetricsQueryParameters): Promise<ErrorResponse | GetShortLinksMetricsResponse>;
|
|
5
|
+
createShortLink(payload: CreateShortLinkPayload): Promise<ErrorResponse | CreateShortLinkResponse>;
|
|
6
6
|
}
|
|
7
7
|
export { LinkShortener };
|
|
8
8
|
//# sourceMappingURL=link-shortener.service.d.ts.map
|
|
@@ -2,22 +2,22 @@ type ValidationStatus = "success" | "progress";
|
|
|
2
2
|
export type NumberValidationType = "format" | "analysis" | "validation";
|
|
3
3
|
export interface NumberValidationBody {
|
|
4
4
|
phone_number: string;
|
|
5
|
-
|
|
5
|
+
valid: boolean;
|
|
6
6
|
country_code: string;
|
|
7
7
|
e164_format: string;
|
|
8
8
|
national_format: string;
|
|
9
|
-
|
|
9
|
+
charge: number;
|
|
10
10
|
mcc: string;
|
|
11
11
|
mnc: string;
|
|
12
|
-
|
|
12
|
+
ported: boolean;
|
|
13
|
+
number_type: string;
|
|
13
14
|
carrier_name: string;
|
|
14
15
|
risky_destination: boolean;
|
|
15
16
|
unallocated_range: boolean;
|
|
16
|
-
reachable: boolean;
|
|
17
|
-
roaming: boolean;
|
|
18
17
|
timezone: string;
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
reachable: boolean | null;
|
|
19
|
+
roaming: boolean | null;
|
|
20
|
+
error_code: number;
|
|
21
21
|
}
|
|
22
22
|
export interface NumberValidationBatchPayload {
|
|
23
23
|
phone_numbers: Array<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-validation.interface.d.ts","sourceRoot":"","sources":["../../../../../src/services/number-validation/number-validation.interface.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,SAAS,GAAG,UAAU,CAAA;AAC9C,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,CAAA;AAEvE,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAA;IACpB,
|
|
1
|
+
{"version":3,"file":"number-validation.interface.d.ts","sourceRoot":"","sources":["../../../../../src/services/number-validation/number-validation.interface.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,SAAS,GAAG,UAAU,CAAA;AAC9C,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,CAAA;AAEvE,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,OAAO,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE,MAAM,CAAA;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,OAAO,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,iBAAiB,EAAE,OAAO,CAAA;IAC1B,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,OAAO,GAAG,IAAI,CAAA;IACzB,OAAO,EAAE,OAAO,GAAG,IAAI,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAC5B,KAAK,EAAE,OAAO,CAAA;IACd,IAAI,EAAE,oBAAoB,CAAA;CAC3B;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,gBAAgB,CAAA;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,6BAA6B;IAC5C,YAAY,EAAE,MAAM,CAAA;CACrB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import type { NumberValidationType, NumberValidationBody, NumberValidationResponse, NumberValidationAsyncResponse } from "./number-validation.interface";
|
|
3
3
|
declare class NumberValidation extends ServiceBase {
|
|
4
|
-
validateSingle(number: string, type: NumberValidationType): Promise<NumberValidationBody>;
|
|
5
|
-
validateBatchSync(numbers: Array<string>, type: NumberValidationType): Promise<NumberValidationResponse>;
|
|
6
|
-
validateBatchAsync(numbers: Array<string>, type: NumberValidationType): Promise<NumberValidationAsyncResponse>;
|
|
7
|
-
getValidationResult(uuid: string): Promise<NumberValidationResponse>;
|
|
4
|
+
validateSingle(number: string, type: NumberValidationType): Promise<NumberValidationBody | ErrorResponse>;
|
|
5
|
+
validateBatchSync(numbers: Array<string>, type: NumberValidationType): Promise<NumberValidationResponse | ErrorResponse>;
|
|
6
|
+
validateBatchAsync(numbers: Array<string>, type: NumberValidationType): Promise<NumberValidationAsyncResponse | ErrorResponse>;
|
|
7
|
+
getValidationResult(uuid: string): Promise<NumberValidationResponse | ErrorResponse>;
|
|
8
8
|
}
|
|
9
9
|
export { NumberValidation };
|
|
10
10
|
//# sourceMappingURL=number-validation.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-validation.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/number-validation/number-validation.service.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,iBAAiB,CAAA;AACzC,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EAEpB,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,+BAA+B,CAAA;AAEtC,cAAM,gBAAiB,SAAQ,WAAW;IACjC,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"number-validation.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/number-validation/number-validation.service.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,iBAAiB,CAAA;AACzC,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EAEpB,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,+BAA+B,CAAA;AAEtC,cAAM,gBAAiB,SAAQ,WAAW;IACjC,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,GAAG,aAAa,CAAC;IAIzG,iBAAiB,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,wBAAwB,GAAG,aAAa,CAAC;IAQxH,kBAAkB,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,6BAA6B,GAAG,aAAa,CAAC;IAQ9H,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,GAAG,aAAa,CAAC;CAG5F;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { GetAccountSettingsResponse, GetCustomerInfoResponse, UpdateCustomerInfoPayload } from "./profile.interface";
|
|
3
3
|
declare class Profile extends ServiceBase {
|
|
4
|
-
getCustomerInfo(): Promise<GetCustomerInfoResponse>;
|
|
5
|
-
getAccountSettings(): Promise<GetAccountSettingsResponse>;
|
|
6
|
-
updateCustomerInfo(payload: UpdateCustomerInfoPayload): Promise<GetCustomerInfoResponse>;
|
|
4
|
+
getCustomerInfo(): Promise<ErrorResponse | GetCustomerInfoResponse>;
|
|
5
|
+
getAccountSettings(): Promise<ErrorResponse | GetAccountSettingsResponse>;
|
|
6
|
+
updateCustomerInfo(payload: UpdateCustomerInfoPayload): Promise<ErrorResponse | GetCustomerInfoResponse>;
|
|
7
7
|
}
|
|
8
8
|
export { Profile };
|
|
9
9
|
//# sourceMappingURL=profile.service.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { CreateSipTrunkPayload, DeleteSipTrunkResponse, GetAccountSipTrunksQueryParameters, SipTrunkConfigurationItem, SipTrunkListItem, UpdateSipTrunkPayload } from "./sip-trunk.interface";
|
|
3
3
|
declare class SipTrunk extends ServiceBase {
|
|
4
|
-
getAccountSipTrunks(queryParameters?: GetAccountSipTrunksQueryParameters): Promise<PaginatedResponse<SipTrunkListItem, "sip_trunks">>;
|
|
5
|
-
getSipTrunkConfiguration(sipTrunkId: number): Promise<SipTrunkConfigurationItem>;
|
|
6
|
-
createSipTrunk(payload: CreateSipTrunkPayload): Promise<SipTrunkConfigurationItem>;
|
|
7
|
-
updateSipTrunk(sipTrunkId: number, payload: UpdateSipTrunkPayload): Promise<SipTrunkConfigurationItem>;
|
|
8
|
-
deleteSipTrunk(sipTrunkId: number): Promise<DeleteSipTrunkResponse>;
|
|
4
|
+
getAccountSipTrunks(queryParameters?: GetAccountSipTrunksQueryParameters): Promise<ErrorResponse | PaginatedResponse<SipTrunkListItem, "sip_trunks">>;
|
|
5
|
+
getSipTrunkConfiguration(sipTrunkId: number): Promise<ErrorResponse | SipTrunkConfigurationItem>;
|
|
6
|
+
createSipTrunk(payload: CreateSipTrunkPayload): Promise<ErrorResponse | SipTrunkConfigurationItem>;
|
|
7
|
+
updateSipTrunk(sipTrunkId: number, payload: UpdateSipTrunkPayload): Promise<ErrorResponse | SipTrunkConfigurationItem>;
|
|
8
|
+
deleteSipTrunk(sipTrunkId: number): Promise<ErrorResponse | DeleteSipTrunkResponse>;
|
|
9
9
|
}
|
|
10
10
|
export { SipTrunk };
|
|
11
11
|
//# sourceMappingURL=sip-trunk.service.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { AccountMessageListItem, CreateSenderIdPayload, DeleteSenderIdResponse, GetAccountMessagesQueryParameters, GetAccountSenderIdsResponse, GetSenderIdRestrictionsQueryParameters, GetSenderIdRestrictionsResponse, OptOutSmsMessagesPhoneNumberPayload, OptOutSmsMessagesPhoneNumberResponse, SendHighVolumeTrafficMessagePayload, SendHighVolumeTrafficMessageResponse, SendMessagePayload, SendMessageResponse, SenderIdListItem } from "./sms-and-mms.interface";
|
|
3
3
|
declare class SmsAndMms extends ServiceBase {
|
|
4
|
-
getAccountSenderIds(): Promise<GetAccountSenderIdsResponse>;
|
|
5
|
-
getSenderIdRestrictions(queryParameters: GetSenderIdRestrictionsQueryParameters): Promise<GetSenderIdRestrictionsResponse>;
|
|
6
|
-
getAccountMessages(queryParameters: GetAccountMessagesQueryParameters): Promise<PaginatedResponse<AccountMessageListItem, "items">>;
|
|
7
|
-
createSenderId(payload: CreateSenderIdPayload): Promise<SenderIdListItem>;
|
|
8
|
-
deleteSenderId(id: string): Promise<DeleteSenderIdResponse>;
|
|
9
|
-
sendMessage(payload: SendMessagePayload): Promise<SendMessageResponse>;
|
|
10
|
-
sendHighVolumeTrafficMessage(payload: SendHighVolumeTrafficMessagePayload): Promise<SendHighVolumeTrafficMessageResponse>;
|
|
11
|
-
optOutSmsMessagesPhoneNumber(payload: OptOutSmsMessagesPhoneNumberPayload): Promise<OptOutSmsMessagesPhoneNumberResponse>;
|
|
4
|
+
getAccountSenderIds(): Promise<ErrorResponse | GetAccountSenderIdsResponse>;
|
|
5
|
+
getSenderIdRestrictions(queryParameters: GetSenderIdRestrictionsQueryParameters): Promise<ErrorResponse | GetSenderIdRestrictionsResponse>;
|
|
6
|
+
getAccountMessages(queryParameters: GetAccountMessagesQueryParameters): Promise<ErrorResponse | PaginatedResponse<AccountMessageListItem, "items">>;
|
|
7
|
+
createSenderId(payload: CreateSenderIdPayload): Promise<ErrorResponse | SenderIdListItem>;
|
|
8
|
+
deleteSenderId(id: string): Promise<ErrorResponse | DeleteSenderIdResponse>;
|
|
9
|
+
sendMessage(payload: SendMessagePayload): Promise<ErrorResponse | SendMessageResponse>;
|
|
10
|
+
sendHighVolumeTrafficMessage(payload: SendHighVolumeTrafficMessagePayload): Promise<ErrorResponse | SendHighVolumeTrafficMessageResponse>;
|
|
11
|
+
optOutSmsMessagesPhoneNumber(payload: OptOutSmsMessagesPhoneNumberPayload): Promise<ErrorResponse | OptOutSmsMessagesPhoneNumberResponse>;
|
|
12
12
|
}
|
|
13
13
|
export { SmsAndMms };
|
|
14
14
|
//# sourceMappingURL=sms-and-mms.service.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { RequestTranscriptionByCallIdResponse, SearchCallsBySpecificKeywordsOrPhrasesRequestBody, SearchCallsBySpecificKeywordsOrPhrasesResponseItem, TranscribeCallByIdPayload } from "./speech-analytics.interface";
|
|
3
3
|
declare class SpeechAnalytics extends ServiceBase {
|
|
4
|
-
requestTranscriptionByCallId(id: string): Promise<RequestTranscriptionByCallIdResponse>;
|
|
4
|
+
requestTranscriptionByCallId(id: string): Promise<ErrorResponse | RequestTranscriptionByCallIdResponse>;
|
|
5
5
|
transcribeCallById(id: string, payload: TranscribeCallByIdPayload): Promise<unknown>;
|
|
6
|
-
searchCallsBySpecificKeywordsOrPhrases(body: SearchCallsBySpecificKeywordsOrPhrasesRequestBody): Promise<PaginatedResponse<SearchCallsBySpecificKeywordsOrPhrasesResponseItem, "items">>;
|
|
6
|
+
searchCallsBySpecificKeywordsOrPhrases(body: SearchCallsBySpecificKeywordsOrPhrasesRequestBody): Promise<ErrorResponse | PaginatedResponse<SearchCallsBySpecificKeywordsOrPhrasesResponseItem, "items">>;
|
|
7
7
|
}
|
|
8
8
|
export { SpeechAnalytics };
|
|
9
9
|
//# sourceMappingURL=speech-analytics.service.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { CreateTwoFaVerificationPayload, CreateTwoFaVerificationResponse, GetServiceVerificationEventsResponse, GetServiceVerificationsQueryParameters, GetServiceVerificationsResponse, ResendTwoFaVerificationCodePayload, ResendTwoFaVerificationCodeResponse, ValidateTwoFaCodePayload, ValidateTwoFaCodeResponse } from "./two-fa.interface";
|
|
3
3
|
declare class TwoFa extends ServiceBase {
|
|
4
|
-
createVerification(payload: CreateTwoFaVerificationPayload): Promise<CreateTwoFaVerificationResponse>;
|
|
5
|
-
resendVerificationCode(sessionId: string, payload: ResendTwoFaVerificationCodePayload): Promise<ResendTwoFaVerificationCodeResponse>;
|
|
6
|
-
validateCode(sessionId: string, payload: ValidateTwoFaCodePayload): Promise<ValidateTwoFaCodeResponse>;
|
|
4
|
+
createVerification(payload: CreateTwoFaVerificationPayload): Promise<ErrorResponse | CreateTwoFaVerificationResponse>;
|
|
5
|
+
resendVerificationCode(sessionId: string, payload: ResendTwoFaVerificationCodePayload): Promise<ErrorResponse | ResendTwoFaVerificationCodeResponse>;
|
|
6
|
+
validateCode(sessionId: string, payload: ValidateTwoFaCodePayload): Promise<ErrorResponse | ValidateTwoFaCodeResponse>;
|
|
7
7
|
cancelVerification(sessionId: string): Promise<unknown>;
|
|
8
|
-
getServiceVerifications(serviceId: string, params: GetServiceVerificationsQueryParameters): Promise<GetServiceVerificationsResponse>;
|
|
9
|
-
getServiceVerificationEvents(sessionId: string): Promise<GetServiceVerificationEventsResponse>;
|
|
8
|
+
getServiceVerifications(serviceId: string, params: GetServiceVerificationsQueryParameters): Promise<ErrorResponse | GetServiceVerificationsResponse>;
|
|
9
|
+
getServiceVerificationEvents(sessionId: string): Promise<ErrorResponse | GetServiceVerificationEventsResponse>;
|
|
10
10
|
}
|
|
11
11
|
export { TwoFa };
|
|
12
12
|
//# sourceMappingURL=two-fa.service.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { TriggerScenarioPayload, TriggerScenarioResponse } from "./voice-campaigns.interface";
|
|
3
3
|
declare class VoiceCampaigns extends ServiceBase {
|
|
4
|
-
triggerScenario(payload: TriggerScenarioPayload): Promise<TriggerScenarioResponse>;
|
|
4
|
+
triggerScenario(payload: TriggerScenarioPayload): Promise<ErrorResponse | TriggerScenarioResponse>;
|
|
5
5
|
}
|
|
6
6
|
export { VoiceCampaigns };
|
|
7
7
|
//# sourceMappingURL=voice-campaigns.service.d.ts.map
|
package/lib/esm/types/http.d.ts
CHANGED
|
@@ -4,11 +4,11 @@ declare class Http {
|
|
|
4
4
|
private appid;
|
|
5
5
|
private instance;
|
|
6
6
|
constructor(baseURL: string, appid: string);
|
|
7
|
-
get<T>(path: string, config?: AxiosRequestConfig): Promise<T>;
|
|
8
|
-
post<T, U>(path: string, payload?: U, config?: AxiosRequestConfig): Promise<T>;
|
|
9
|
-
put<T, U>(path: string, payload?: U): Promise<T>;
|
|
10
|
-
patch<T, U>(path: string, payload?: U): Promise<T>;
|
|
11
|
-
delete<T>(path: string): Promise<T>;
|
|
7
|
+
get<T>(path: string, config?: AxiosRequestConfig): Promise<T | ErrorResponse>;
|
|
8
|
+
post<T, U>(path: string, payload?: U, config?: AxiosRequestConfig): Promise<T | ErrorResponse>;
|
|
9
|
+
put<T, U>(path: string, payload?: U): Promise<T | ErrorResponse>;
|
|
10
|
+
patch<T, U>(path: string, payload?: U): Promise<T | ErrorResponse>;
|
|
11
|
+
delete<T>(path: string): Promise<T | ErrorResponse>;
|
|
12
12
|
paramsToQueryString(params?: object): string;
|
|
13
13
|
private parsePayload;
|
|
14
14
|
private getUrl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/http.ts"],"names":[],"mappings":"AAAA,OAAc,EAA6B,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAM5E,cAAM,IAAI;IAKN,OAAO,CAAC,OAAO;IAJjB,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,QAAQ,CAAe;gBAGrB,OAAO,EAAE,MAAM,EACvB,KAAK,EAAE,MAAM;IAWF,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/http.ts"],"names":[],"mappings":"AAAA,OAAc,EAA6B,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAM5E,cAAM,IAAI;IAKN,OAAO,CAAC,OAAO;IAJjB,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,QAAQ,CAAe;gBAGrB,OAAO,EAAE,MAAM,EACvB,KAAK,EAAE,MAAM;IAWF,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,CAAC,GAAG,aAAa,CAAC;IAS7E,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,CAAC,GAAG,aAAa,CAAC;IAS9F,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,aAAa,CAAC;IAShE,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,aAAa,CAAC;IASlE,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,aAAa,CAAC;IASzD,mBAAmB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM;IAUnD,OAAO,CAAC,YAAY;IAcpB,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,YAAY;IAYpB,OAAO,CAAC,UAAU;CAOnB;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { AccountInvoicesItem, AccountTransactionsItem, GetAccountInvoicesQueryParameters, GetAccountTransactionsQueryParameters } from "./billing.interface";
|
|
3
3
|
declare class Billing extends ServiceBase {
|
|
4
|
-
getAccountTransactions(queryParameters: GetAccountTransactionsQueryParameters): Promise<PaginatedResponse<AccountTransactionsItem, "transactions">>;
|
|
5
|
-
getAccountInvoices(queryParameters?: GetAccountInvoicesQueryParameters): Promise<PaginatedResponse<AccountInvoicesItem, "invoices">>;
|
|
4
|
+
getAccountTransactions(queryParameters: GetAccountTransactionsQueryParameters): Promise<ErrorResponse | PaginatedResponse<AccountTransactionsItem, "transactions">>;
|
|
5
|
+
getAccountInvoices(queryParameters?: GetAccountInvoicesQueryParameters): Promise<ErrorResponse | PaginatedResponse<AccountInvoicesItem, "invoices">>;
|
|
6
6
|
downloadInvoiceById(id: number): Promise<unknown>;
|
|
7
7
|
}
|
|
8
8
|
export { Billing };
|
|
@@ -2,11 +2,11 @@ import { Did } from "services/cart/cart.interface";
|
|
|
2
2
|
import ServiceBase from "../service.base";
|
|
3
3
|
import { GetAvailableToPurchaseDidsQueryParameters, GetCountriesListResponse, GetCountryCitiesListResponse, GetRegionCitiesListResponse, GetRegionsListResponse } from "./buy.interface";
|
|
4
4
|
declare class Buy extends ServiceBase {
|
|
5
|
-
getCountriesList(): Promise<GetCountriesListResponse>;
|
|
6
|
-
getRegionsList(countryId: number): Promise<GetRegionsListResponse>;
|
|
7
|
-
getCountryCitiesList(countryId: number): Promise<GetCountryCitiesListResponse>;
|
|
8
|
-
getRegionCitiesList(countryId: number, regionId: number): Promise<GetRegionCitiesListResponse>;
|
|
9
|
-
getAvailableToPurchaseDids(countryId: number, cityId: number, queryParameters?: GetAvailableToPurchaseDidsQueryParameters): Promise<PaginatedResponse<Did, "dids">>;
|
|
5
|
+
getCountriesList(): Promise<ErrorResponse | GetCountriesListResponse>;
|
|
6
|
+
getRegionsList(countryId: number): Promise<ErrorResponse | GetRegionsListResponse>;
|
|
7
|
+
getCountryCitiesList(countryId: number): Promise<ErrorResponse | GetCountryCitiesListResponse>;
|
|
8
|
+
getRegionCitiesList(countryId: number, regionId: number): Promise<ErrorResponse | GetRegionCitiesListResponse>;
|
|
9
|
+
getAvailableToPurchaseDids(countryId: number, cityId: number, queryParameters?: GetAvailableToPurchaseDidsQueryParameters): Promise<ErrorResponse | PaginatedResponse<Did, "dids">>;
|
|
10
10
|
}
|
|
11
11
|
export { Buy };
|
|
12
12
|
//# sourceMappingURL=buy.service.d.ts.map
|
|
@@ -6,8 +6,8 @@ declare class Call extends ServiceBase {
|
|
|
6
6
|
private callback;
|
|
7
7
|
connect(): Promise<void | Error>;
|
|
8
8
|
onEvent(callback: (event: CallEvent) => void): void;
|
|
9
|
-
getList(): Promise<CallResponse>;
|
|
10
|
-
start(payload: StartCall): Promise<CallEvent & StartCallErrorResponse>;
|
|
9
|
+
getList(): Promise<CallResponse | ErrorResponse>;
|
|
10
|
+
start(payload: StartCall): Promise<(CallEvent & StartCallErrorResponse) | ErrorResponse>;
|
|
11
11
|
playAudio(callUUID: string, url: string, options?: PlayAudioOptions): Promise<BasicSuccess>;
|
|
12
12
|
/**
|
|
13
13
|
* Voice list
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/call/call.service.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,iBAAiB,CAAA;AACzC,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EAGV,eAAe,EAChB,MAAM,kBAAkB,CAAA;AAMzB,cAAM,IAAK,SAAQ,WAAW;IAC5B,MAAM,CAAC,iBAAiB,SAAO;IAE/B,OAAO,CAAC,EAAE,CAAyB;IACnC,OAAO,CAAC,QAAQ,CAEf;IAEM,OAAO,IAAI,OAAO,CAAC,IAAI,GAAG,KAAK,CAAC;IAwBhC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,GAAG,IAAI;IAcnD,OAAO,IAAI,OAAO,CAAC,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"call.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/call/call.service.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,iBAAiB,CAAA;AACzC,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EAGV,eAAe,EAChB,MAAM,kBAAkB,CAAA;AAMzB,cAAM,IAAK,SAAQ,WAAW;IAC5B,MAAM,CAAC,iBAAiB,SAAO;IAE/B,OAAO,CAAC,EAAE,CAAyB;IACnC,OAAO,CAAC,QAAQ,CAEf;IAEM,OAAO,IAAI,OAAO,CAAC,IAAI,GAAG,KAAK,CAAC;IAwBhC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,GAAG,IAAI;IAcnD,OAAO,IAAI,OAAO,CAAC,YAAY,GAAG,aAAa,CAAC;IAIhD,KAAK,CAAC,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC,CAAC,SAAS,GAAG,sBAAsB,CAAC,GAAG,aAAa,CAAC;IAQxF,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC;IAQlG;;;OAGG;IACI,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC;IAShF,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,YAAY,CAAC;IAY3E,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,YAAY,CAAC;IAIjF,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAI9C,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,aAAa,CAAC;CAG/E;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { AddDidNumbersToCartPayload, AddDidNumbersToCartResponse, CheckoutPayload, CheckoutResponse, GetCartContentResponse } from "./cart.interface";
|
|
3
3
|
declare class Cart extends ServiceBase {
|
|
4
|
-
getCartContent(): Promise<GetCartContentResponse>;
|
|
5
|
-
addDidNumbersToCart(payload: AddDidNumbersToCartPayload): Promise<AddDidNumbersToCartResponse>;
|
|
6
|
-
checkoutDidNumbers(payload: CheckoutPayload): Promise<CheckoutResponse>;
|
|
4
|
+
getCartContent(): Promise<ErrorResponse | GetCartContentResponse>;
|
|
5
|
+
addDidNumbersToCart(payload: AddDidNumbersToCartPayload): Promise<ErrorResponse | AddDidNumbersToCartResponse>;
|
|
6
|
+
checkoutDidNumbers(payload: CheckoutPayload): Promise<ErrorResponse | CheckoutResponse>;
|
|
7
7
|
}
|
|
8
8
|
export { Cart };
|
|
9
9
|
//# sourceMappingURL=cart.service.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { DidListItem, GetAccountDidsQueryParameters, ReturnDidsToStockResponse, UpdateDidDestinationsPayload, UpdateDidDestinationsResponse, UploadDidDocumentPayload, UploadDidDocumentResponse } from "./did.interface";
|
|
3
3
|
declare class Did extends ServiceBase {
|
|
4
|
-
getAccountDids(queryParameters?: GetAccountDidsQueryParameters): Promise<PaginatedResponse<DidListItem, "items">>;
|
|
5
|
-
updateDidDestinations(payload: UpdateDidDestinationsPayload): Promise<UpdateDidDestinationsResponse>;
|
|
6
|
-
uploadDidDocument(payload: UploadDidDocumentPayload): Promise<UploadDidDocumentResponse>;
|
|
7
|
-
returnDidsToStock(ids: Array<number>): Promise<ReturnDidsToStockResponse>;
|
|
4
|
+
getAccountDids(queryParameters?: GetAccountDidsQueryParameters): Promise<ErrorResponse | PaginatedResponse<DidListItem, "items">>;
|
|
5
|
+
updateDidDestinations(payload: UpdateDidDestinationsPayload): Promise<ErrorResponse | UpdateDidDestinationsResponse>;
|
|
6
|
+
uploadDidDocument(payload: UploadDidDocumentPayload): Promise<ErrorResponse | UploadDidDocumentResponse>;
|
|
7
|
+
returnDidsToStock(ids: Array<number>): Promise<ErrorResponse | ReturnDidsToStockResponse>;
|
|
8
8
|
}
|
|
9
9
|
export { Did };
|
|
10
10
|
//# sourceMappingURL=did.service.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { CreateE911Payload, CreateE911Response, DeleteE911QueryParameters, DeleteE911Response, E911ListItem, GetListQueryParameters, ValidateAddressPayload, ValidateAddressResponse } from "./e911.interface";
|
|
3
3
|
declare class E911 extends ServiceBase {
|
|
4
|
-
getList(params?: GetListQueryParameters): Promise<PaginatedResponse<E911ListItem, "items">>;
|
|
5
|
-
validateAddress(payload: ValidateAddressPayload): Promise<ValidateAddressResponse>;
|
|
6
|
-
create(payload: CreateE911Payload): Promise<CreateE911Response>;
|
|
7
|
-
delete(params: DeleteE911QueryParameters): Promise<DeleteE911Response>;
|
|
4
|
+
getList(params?: GetListQueryParameters): Promise<ErrorResponse | PaginatedResponse<E911ListItem, "items">>;
|
|
5
|
+
validateAddress(payload: ValidateAddressPayload): Promise<ErrorResponse | ValidateAddressResponse>;
|
|
6
|
+
create(payload: CreateE911Payload): Promise<ErrorResponse | CreateE911Response>;
|
|
7
|
+
delete(params: DeleteE911QueryParameters): Promise<ErrorResponse | DeleteE911Response>;
|
|
8
8
|
}
|
|
9
9
|
export { E911 };
|
|
10
10
|
//# sourceMappingURL=e911.service.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { CreateShortLinkPayload, CreateShortLinkResponse, GetShortLinksMetricsQueryParameters, GetShortLinksMetricsResponse } from "./link-shortener.interface";
|
|
3
3
|
declare class LinkShortener extends ServiceBase {
|
|
4
|
-
getShortLinksMetrics(params: GetShortLinksMetricsQueryParameters): Promise<GetShortLinksMetricsResponse>;
|
|
5
|
-
createShortLink(payload: CreateShortLinkPayload): Promise<CreateShortLinkResponse>;
|
|
4
|
+
getShortLinksMetrics(params: GetShortLinksMetricsQueryParameters): Promise<ErrorResponse | GetShortLinksMetricsResponse>;
|
|
5
|
+
createShortLink(payload: CreateShortLinkPayload): Promise<ErrorResponse | CreateShortLinkResponse>;
|
|
6
6
|
}
|
|
7
7
|
export { LinkShortener };
|
|
8
8
|
//# sourceMappingURL=link-shortener.service.d.ts.map
|
|
@@ -2,22 +2,22 @@ type ValidationStatus = "success" | "progress";
|
|
|
2
2
|
export type NumberValidationType = "format" | "analysis" | "validation";
|
|
3
3
|
export interface NumberValidationBody {
|
|
4
4
|
phone_number: string;
|
|
5
|
-
|
|
5
|
+
valid: boolean;
|
|
6
6
|
country_code: string;
|
|
7
7
|
e164_format: string;
|
|
8
8
|
national_format: string;
|
|
9
|
-
|
|
9
|
+
charge: number;
|
|
10
10
|
mcc: string;
|
|
11
11
|
mnc: string;
|
|
12
|
-
|
|
12
|
+
ported: boolean;
|
|
13
|
+
number_type: string;
|
|
13
14
|
carrier_name: string;
|
|
14
15
|
risky_destination: boolean;
|
|
15
16
|
unallocated_range: boolean;
|
|
16
|
-
reachable: boolean;
|
|
17
|
-
roaming: boolean;
|
|
18
17
|
timezone: string;
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
reachable: boolean | null;
|
|
19
|
+
roaming: boolean | null;
|
|
20
|
+
error_code: number;
|
|
21
21
|
}
|
|
22
22
|
export interface NumberValidationBatchPayload {
|
|
23
23
|
phone_numbers: Array<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-validation.interface.d.ts","sourceRoot":"","sources":["../../../../../src/services/number-validation/number-validation.interface.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,SAAS,GAAG,UAAU,CAAA;AAC9C,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,CAAA;AAEvE,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAA;IACpB,
|
|
1
|
+
{"version":3,"file":"number-validation.interface.d.ts","sourceRoot":"","sources":["../../../../../src/services/number-validation/number-validation.interface.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,SAAS,GAAG,UAAU,CAAA;AAC9C,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,CAAA;AAEvE,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,OAAO,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE,MAAM,CAAA;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,OAAO,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,iBAAiB,EAAE,OAAO,CAAA;IAC1B,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,OAAO,GAAG,IAAI,CAAA;IACzB,OAAO,EAAE,OAAO,GAAG,IAAI,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,4BAA4B;IAC3C,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAC5B,KAAK,EAAE,OAAO,CAAA;IACd,IAAI,EAAE,oBAAoB,CAAA;CAC3B;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,gBAAgB,CAAA;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,6BAA6B;IAC5C,YAAY,EAAE,MAAM,CAAA;CACrB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import type { NumberValidationType, NumberValidationBody, NumberValidationResponse, NumberValidationAsyncResponse } from "./number-validation.interface";
|
|
3
3
|
declare class NumberValidation extends ServiceBase {
|
|
4
|
-
validateSingle(number: string, type: NumberValidationType): Promise<NumberValidationBody>;
|
|
5
|
-
validateBatchSync(numbers: Array<string>, type: NumberValidationType): Promise<NumberValidationResponse>;
|
|
6
|
-
validateBatchAsync(numbers: Array<string>, type: NumberValidationType): Promise<NumberValidationAsyncResponse>;
|
|
7
|
-
getValidationResult(uuid: string): Promise<NumberValidationResponse>;
|
|
4
|
+
validateSingle(number: string, type: NumberValidationType): Promise<NumberValidationBody | ErrorResponse>;
|
|
5
|
+
validateBatchSync(numbers: Array<string>, type: NumberValidationType): Promise<NumberValidationResponse | ErrorResponse>;
|
|
6
|
+
validateBatchAsync(numbers: Array<string>, type: NumberValidationType): Promise<NumberValidationAsyncResponse | ErrorResponse>;
|
|
7
|
+
getValidationResult(uuid: string): Promise<NumberValidationResponse | ErrorResponse>;
|
|
8
8
|
}
|
|
9
9
|
export { NumberValidation };
|
|
10
10
|
//# sourceMappingURL=number-validation.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-validation.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/number-validation/number-validation.service.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,iBAAiB,CAAA;AACzC,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EAEpB,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,+BAA+B,CAAA;AAEtC,cAAM,gBAAiB,SAAQ,WAAW;IACjC,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"number-validation.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/number-validation/number-validation.service.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,iBAAiB,CAAA;AACzC,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EAEpB,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,+BAA+B,CAAA;AAEtC,cAAM,gBAAiB,SAAQ,WAAW;IACjC,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,GAAG,aAAa,CAAC;IAIzG,iBAAiB,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,wBAAwB,GAAG,aAAa,CAAC;IAQxH,kBAAkB,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,6BAA6B,GAAG,aAAa,CAAC;IAQ9H,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,GAAG,aAAa,CAAC;CAG5F;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { GetAccountSettingsResponse, GetCustomerInfoResponse, UpdateCustomerInfoPayload } from "./profile.interface";
|
|
3
3
|
declare class Profile extends ServiceBase {
|
|
4
|
-
getCustomerInfo(): Promise<GetCustomerInfoResponse>;
|
|
5
|
-
getAccountSettings(): Promise<GetAccountSettingsResponse>;
|
|
6
|
-
updateCustomerInfo(payload: UpdateCustomerInfoPayload): Promise<GetCustomerInfoResponse>;
|
|
4
|
+
getCustomerInfo(): Promise<ErrorResponse | GetCustomerInfoResponse>;
|
|
5
|
+
getAccountSettings(): Promise<ErrorResponse | GetAccountSettingsResponse>;
|
|
6
|
+
updateCustomerInfo(payload: UpdateCustomerInfoPayload): Promise<ErrorResponse | GetCustomerInfoResponse>;
|
|
7
7
|
}
|
|
8
8
|
export { Profile };
|
|
9
9
|
//# sourceMappingURL=profile.service.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { CreateSipTrunkPayload, DeleteSipTrunkResponse, GetAccountSipTrunksQueryParameters, SipTrunkConfigurationItem, SipTrunkListItem, UpdateSipTrunkPayload } from "./sip-trunk.interface";
|
|
3
3
|
declare class SipTrunk extends ServiceBase {
|
|
4
|
-
getAccountSipTrunks(queryParameters?: GetAccountSipTrunksQueryParameters): Promise<PaginatedResponse<SipTrunkListItem, "sip_trunks">>;
|
|
5
|
-
getSipTrunkConfiguration(sipTrunkId: number): Promise<SipTrunkConfigurationItem>;
|
|
6
|
-
createSipTrunk(payload: CreateSipTrunkPayload): Promise<SipTrunkConfigurationItem>;
|
|
7
|
-
updateSipTrunk(sipTrunkId: number, payload: UpdateSipTrunkPayload): Promise<SipTrunkConfigurationItem>;
|
|
8
|
-
deleteSipTrunk(sipTrunkId: number): Promise<DeleteSipTrunkResponse>;
|
|
4
|
+
getAccountSipTrunks(queryParameters?: GetAccountSipTrunksQueryParameters): Promise<ErrorResponse | PaginatedResponse<SipTrunkListItem, "sip_trunks">>;
|
|
5
|
+
getSipTrunkConfiguration(sipTrunkId: number): Promise<ErrorResponse | SipTrunkConfigurationItem>;
|
|
6
|
+
createSipTrunk(payload: CreateSipTrunkPayload): Promise<ErrorResponse | SipTrunkConfigurationItem>;
|
|
7
|
+
updateSipTrunk(sipTrunkId: number, payload: UpdateSipTrunkPayload): Promise<ErrorResponse | SipTrunkConfigurationItem>;
|
|
8
|
+
deleteSipTrunk(sipTrunkId: number): Promise<ErrorResponse | DeleteSipTrunkResponse>;
|
|
9
9
|
}
|
|
10
10
|
export { SipTrunk };
|
|
11
11
|
//# sourceMappingURL=sip-trunk.service.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { AccountMessageListItem, CreateSenderIdPayload, DeleteSenderIdResponse, GetAccountMessagesQueryParameters, GetAccountSenderIdsResponse, GetSenderIdRestrictionsQueryParameters, GetSenderIdRestrictionsResponse, OptOutSmsMessagesPhoneNumberPayload, OptOutSmsMessagesPhoneNumberResponse, SendHighVolumeTrafficMessagePayload, SendHighVolumeTrafficMessageResponse, SendMessagePayload, SendMessageResponse, SenderIdListItem } from "./sms-and-mms.interface";
|
|
3
3
|
declare class SmsAndMms extends ServiceBase {
|
|
4
|
-
getAccountSenderIds(): Promise<GetAccountSenderIdsResponse>;
|
|
5
|
-
getSenderIdRestrictions(queryParameters: GetSenderIdRestrictionsQueryParameters): Promise<GetSenderIdRestrictionsResponse>;
|
|
6
|
-
getAccountMessages(queryParameters: GetAccountMessagesQueryParameters): Promise<PaginatedResponse<AccountMessageListItem, "items">>;
|
|
7
|
-
createSenderId(payload: CreateSenderIdPayload): Promise<SenderIdListItem>;
|
|
8
|
-
deleteSenderId(id: string): Promise<DeleteSenderIdResponse>;
|
|
9
|
-
sendMessage(payload: SendMessagePayload): Promise<SendMessageResponse>;
|
|
10
|
-
sendHighVolumeTrafficMessage(payload: SendHighVolumeTrafficMessagePayload): Promise<SendHighVolumeTrafficMessageResponse>;
|
|
11
|
-
optOutSmsMessagesPhoneNumber(payload: OptOutSmsMessagesPhoneNumberPayload): Promise<OptOutSmsMessagesPhoneNumberResponse>;
|
|
4
|
+
getAccountSenderIds(): Promise<ErrorResponse | GetAccountSenderIdsResponse>;
|
|
5
|
+
getSenderIdRestrictions(queryParameters: GetSenderIdRestrictionsQueryParameters): Promise<ErrorResponse | GetSenderIdRestrictionsResponse>;
|
|
6
|
+
getAccountMessages(queryParameters: GetAccountMessagesQueryParameters): Promise<ErrorResponse | PaginatedResponse<AccountMessageListItem, "items">>;
|
|
7
|
+
createSenderId(payload: CreateSenderIdPayload): Promise<ErrorResponse | SenderIdListItem>;
|
|
8
|
+
deleteSenderId(id: string): Promise<ErrorResponse | DeleteSenderIdResponse>;
|
|
9
|
+
sendMessage(payload: SendMessagePayload): Promise<ErrorResponse | SendMessageResponse>;
|
|
10
|
+
sendHighVolumeTrafficMessage(payload: SendHighVolumeTrafficMessagePayload): Promise<ErrorResponse | SendHighVolumeTrafficMessageResponse>;
|
|
11
|
+
optOutSmsMessagesPhoneNumber(payload: OptOutSmsMessagesPhoneNumberPayload): Promise<ErrorResponse | OptOutSmsMessagesPhoneNumberResponse>;
|
|
12
12
|
}
|
|
13
13
|
export { SmsAndMms };
|
|
14
14
|
//# sourceMappingURL=sms-and-mms.service.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { RequestTranscriptionByCallIdResponse, SearchCallsBySpecificKeywordsOrPhrasesRequestBody, SearchCallsBySpecificKeywordsOrPhrasesResponseItem, TranscribeCallByIdPayload } from "./speech-analytics.interface";
|
|
3
3
|
declare class SpeechAnalytics extends ServiceBase {
|
|
4
|
-
requestTranscriptionByCallId(id: string): Promise<RequestTranscriptionByCallIdResponse>;
|
|
4
|
+
requestTranscriptionByCallId(id: string): Promise<ErrorResponse | RequestTranscriptionByCallIdResponse>;
|
|
5
5
|
transcribeCallById(id: string, payload: TranscribeCallByIdPayload): Promise<unknown>;
|
|
6
|
-
searchCallsBySpecificKeywordsOrPhrases(body: SearchCallsBySpecificKeywordsOrPhrasesRequestBody): Promise<PaginatedResponse<SearchCallsBySpecificKeywordsOrPhrasesResponseItem, "items">>;
|
|
6
|
+
searchCallsBySpecificKeywordsOrPhrases(body: SearchCallsBySpecificKeywordsOrPhrasesRequestBody): Promise<ErrorResponse | PaginatedResponse<SearchCallsBySpecificKeywordsOrPhrasesResponseItem, "items">>;
|
|
7
7
|
}
|
|
8
8
|
export { SpeechAnalytics };
|
|
9
9
|
//# sourceMappingURL=speech-analytics.service.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { CreateTwoFaVerificationPayload, CreateTwoFaVerificationResponse, GetServiceVerificationEventsResponse, GetServiceVerificationsQueryParameters, GetServiceVerificationsResponse, ResendTwoFaVerificationCodePayload, ResendTwoFaVerificationCodeResponse, ValidateTwoFaCodePayload, ValidateTwoFaCodeResponse } from "./two-fa.interface";
|
|
3
3
|
declare class TwoFa extends ServiceBase {
|
|
4
|
-
createVerification(payload: CreateTwoFaVerificationPayload): Promise<CreateTwoFaVerificationResponse>;
|
|
5
|
-
resendVerificationCode(sessionId: string, payload: ResendTwoFaVerificationCodePayload): Promise<ResendTwoFaVerificationCodeResponse>;
|
|
6
|
-
validateCode(sessionId: string, payload: ValidateTwoFaCodePayload): Promise<ValidateTwoFaCodeResponse>;
|
|
4
|
+
createVerification(payload: CreateTwoFaVerificationPayload): Promise<ErrorResponse | CreateTwoFaVerificationResponse>;
|
|
5
|
+
resendVerificationCode(sessionId: string, payload: ResendTwoFaVerificationCodePayload): Promise<ErrorResponse | ResendTwoFaVerificationCodeResponse>;
|
|
6
|
+
validateCode(sessionId: string, payload: ValidateTwoFaCodePayload): Promise<ErrorResponse | ValidateTwoFaCodeResponse>;
|
|
7
7
|
cancelVerification(sessionId: string): Promise<unknown>;
|
|
8
|
-
getServiceVerifications(serviceId: string, params: GetServiceVerificationsQueryParameters): Promise<GetServiceVerificationsResponse>;
|
|
9
|
-
getServiceVerificationEvents(sessionId: string): Promise<GetServiceVerificationEventsResponse>;
|
|
8
|
+
getServiceVerifications(serviceId: string, params: GetServiceVerificationsQueryParameters): Promise<ErrorResponse | GetServiceVerificationsResponse>;
|
|
9
|
+
getServiceVerificationEvents(sessionId: string): Promise<ErrorResponse | GetServiceVerificationEventsResponse>;
|
|
10
10
|
}
|
|
11
11
|
export { TwoFa };
|
|
12
12
|
//# sourceMappingURL=two-fa.service.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ServiceBase from "../service.base";
|
|
2
2
|
import { TriggerScenarioPayload, TriggerScenarioResponse } from "./voice-campaigns.interface";
|
|
3
3
|
declare class VoiceCampaigns extends ServiceBase {
|
|
4
|
-
triggerScenario(payload: TriggerScenarioPayload): Promise<TriggerScenarioResponse>;
|
|
4
|
+
triggerScenario(payload: TriggerScenarioPayload): Promise<ErrorResponse | TriggerScenarioResponse>;
|
|
5
5
|
}
|
|
6
6
|
export { VoiceCampaigns };
|
|
7
7
|
//# sourceMappingURL=voice-campaigns.service.d.ts.map
|