UNPKG

@ringer-tel/ivy

Version:
64 lines (53 loc) 2.45 kB
/* tslint:disable */ /* eslint-disable */ /** * Ringer Business API * This API provides comprehensive endpoints for the Ringer Business system. It includes functionality for managing customer accounts, addresses, sites, phone numbers, payments, users, and other business resources. Operations typically require authentication and appropriate permissions. * * The version of the OpenAPI document: 1.0.6 * Contact: support@ringer.tel * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import type { ThinClientListResponse, } from '../models/index'; import { ThinClientListResponseFromJSON, ThinClientListResponseToJSON, } from '../models/index'; /** * */ export class ThinClientsApi extends runtime.BaseAPI { /** * Retrieves a list of all available Thin Clients that can be assigned to Sites. This information is typically used during Site setup or modification to select the appropriate call processing node. * List Available Thin Clients */ async listAvailableThinClientsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ThinClientListResponse>> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.accessToken) { // oauth required headerParameters["Authorization"] = await this.configuration.accessToken("oAuth2", []); } const response = await this.request({ path: `/thin-clients`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => ThinClientListResponseFromJSON(jsonValue)); } /** * Retrieves a list of all available Thin Clients that can be assigned to Sites. This information is typically used during Site setup or modification to select the appropriate call processing node. * List Available Thin Clients */ async listAvailableThinClients(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ThinClientListResponse> { const response = await this.listAvailableThinClientsRaw(initOverrides); return await response.value(); } }