diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index a54bb8f0..67f9c9b1 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -46,6 +46,14 @@ docs/DefaultApi.md docs/Dequeue.md docs/DequeueWebhook.md docs/Enqueue.md +docs/ExportList.md +docs/ExportOutputType.md +docs/ExportRequest.md +docs/ExportRequestOutput.md +docs/ExportResourceType.md +docs/ExportResult.md +docs/ExportResultOutput.md +docs/ExportStatus.md docs/FilterLogsRequest.md docs/GetDigits.md docs/GetDigitsReason.md @@ -202,6 +210,14 @@ src/main/java/com/github/freeclimbapi/DefaultApi.java src/main/java/com/github/freeclimbapi/Dequeue.java src/main/java/com/github/freeclimbapi/DequeueWebhook.java src/main/java/com/github/freeclimbapi/Enqueue.java +src/main/java/com/github/freeclimbapi/ExportList.java +src/main/java/com/github/freeclimbapi/ExportOutputType.java +src/main/java/com/github/freeclimbapi/ExportRequest.java +src/main/java/com/github/freeclimbapi/ExportRequestOutput.java +src/main/java/com/github/freeclimbapi/ExportResourceType.java +src/main/java/com/github/freeclimbapi/ExportResult.java +src/main/java/com/github/freeclimbapi/ExportResultOutput.java +src/main/java/com/github/freeclimbapi/ExportStatus.java src/main/java/com/github/freeclimbapi/FilterLogsRequest.java src/main/java/com/github/freeclimbapi/GetDigits.java src/main/java/com/github/freeclimbapi/GetDigitsReason.java @@ -355,6 +371,14 @@ src/test/java/com/github/freeclimbapi/DefaultApiTest.java src/test/java/com/github/freeclimbapi/DequeueTest.java src/test/java/com/github/freeclimbapi/DequeueWebhookTest.java src/test/java/com/github/freeclimbapi/EnqueueTest.java +src/test/java/com/github/freeclimbapi/ExportListTest.java +src/test/java/com/github/freeclimbapi/ExportOutputTypeTest.java +src/test/java/com/github/freeclimbapi/ExportRequestOutputTest.java +src/test/java/com/github/freeclimbapi/ExportRequestTest.java +src/test/java/com/github/freeclimbapi/ExportResourceTypeTest.java +src/test/java/com/github/freeclimbapi/ExportResultOutputTest.java +src/test/java/com/github/freeclimbapi/ExportResultTest.java +src/test/java/com/github/freeclimbapi/ExportStatusTest.java src/test/java/com/github/freeclimbapi/FilterLogsRequestTest.java src/test/java/com/github/freeclimbapi/GetDigitsReasonTest.java src/test/java/com/github/freeclimbapi/GetDigitsTest.java diff --git a/CHANGELOG.md b/CHANGELOG.md index a8cece52..a5b733fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,19 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm None + + +## [6.2.0] - 2025-09-24 + +### Added + +- Add models for ExportResult and ExportRequest + +### Changed + +- CallResult.callStatus -> CallResult.status +- CreateConference now includes parentCallId + ## [6.1.2] - 2025-02-18 diff --git a/README.md b/README.md index 693fc335..0ba7d498 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Add this dependency to your project's POM: com.github.freeclimbapi freeclimb-java-client - 6.1.2 + 6.2.0 compile ``` @@ -56,7 +56,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "com.github.freeclimbapi:freeclimb-java-client:6.1.2" + implementation "com.github.freeclimbapi:freeclimb-java-client:6.2.0" implementation("com.squareup.okhttp3:okhttp:4.9.3") implementation("com.squareup.okhttp3:logging-interceptor:4.9.3") } @@ -72,7 +72,7 @@ mvn clean package Then manually install the following JARs: -* `target/freeclimb-java-client-6.1.2.jar` +* `target/freeclimb-java-client-6.2.0.jar` * `target/lib/*.jar` ## Getting Started @@ -147,13 +147,16 @@ Class | Method | HTTP request | Description *DefaultApi* | [**createAConference**](docs/DefaultApi.md#createAConference) | **POST** /Accounts/{accountId}/Conferences | Create a Conference *DefaultApi* | [**createAQueue**](docs/DefaultApi.md#createAQueue) | **POST** /Accounts/{accountId}/Queues | Create a Queue *DefaultApi* | [**createAnApplication**](docs/DefaultApi.md#createAnApplication) | **POST** /Accounts/{accountId}/Applications | Create an application +*DefaultApi* | [**createExport**](docs/DefaultApi.md#createExport) | **POST** /Accounts/{accountId}/Exports | Create an Export *DefaultApi* | [**createKnowledgeBaseCompletion**](docs/DefaultApi.md#createKnowledgeBaseCompletion) | **POST** /Accounts/{accountId}/KnowledgeBases/{knowledgeBaseId}/Completion | Query the knowledge base *DefaultApi* | [**deleteARecording**](docs/DefaultApi.md#deleteARecording) | **DELETE** /Accounts/{accountId}/Recordings/{recordingId} | Delete a Recording *DefaultApi* | [**deleteAnApplication**](docs/DefaultApi.md#deleteAnApplication) | **DELETE** /Accounts/{accountId}/Applications/{applicationId} | Delete an application +*DefaultApi* | [**deleteAnExport**](docs/DefaultApi.md#deleteAnExport) | **DELETE** /Accounts/{accountId}/Exports/{exportId} | Delete an Export *DefaultApi* | [**deleteAnIncomingNumber**](docs/DefaultApi.md#deleteAnIncomingNumber) | **DELETE** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Delete an Incoming Number *DefaultApi* | [**dequeueAMember**](docs/DefaultApi.md#dequeueAMember) | **POST** /Accounts/{accountId}/Queues/{queueId}/Members/{callId} | Dequeue a Member *DefaultApi* | [**dequeueHeadMember**](docs/DefaultApi.md#dequeueHeadMember) | **POST** /Accounts/{accountId}/Queues/{queueId}/Members/Front | Dequeue Head Member *DefaultApi* | [**downloadARecordingFile**](docs/DefaultApi.md#downloadARecordingFile) | **GET** /Accounts/{accountId}/Recordings/{recordingId}/Download | Download a Recording File +*DefaultApi* | [**downloadAnExport**](docs/DefaultApi.md#downloadAnExport) | **GET** /Accounts/{accountId}/Exports/{exportId}/Download | Download an Export *DefaultApi* | [**filterLogs**](docs/DefaultApi.md#filterLogs) | **POST** /Accounts/{accountId}/Logs | Filter Logs *DefaultApi* | [**getACall**](docs/DefaultApi.md#getACall) | **GET** /Accounts/{accountId}/Calls/{callId} | Get a Call *DefaultApi* | [**getAConference**](docs/DefaultApi.md#getAConference) | **GET** /Accounts/{accountId}/Conferences/{conferenceId} | Get a Conference @@ -163,6 +166,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**getARecording**](docs/DefaultApi.md#getARecording) | **GET** /Accounts/{accountId}/Recordings/{recordingId} | Get a Recording *DefaultApi* | [**getAnAccount**](docs/DefaultApi.md#getAnAccount) | **GET** /Accounts/{accountId} | Get an Account *DefaultApi* | [**getAnApplication**](docs/DefaultApi.md#getAnApplication) | **GET** /Accounts/{accountId}/Applications/{applicationId} | Get an Application +*DefaultApi* | [**getAnExport**](docs/DefaultApi.md#getAnExport) | **GET** /Accounts/{accountId}/Exports/{exportId} | Get an Export *DefaultApi* | [**getAnIncomingNumber**](docs/DefaultApi.md#getAnIncomingNumber) | **GET** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Get an Incoming Number *DefaultApi* | [**getAnSmsMessage**](docs/DefaultApi.md#getAnSmsMessage) | **GET** /Accounts/{accountId}/Messages/{messageId} | Get an SMS Message *DefaultApi* | [**getHeadMember**](docs/DefaultApi.md#getHeadMember) | **GET** /Accounts/{accountId}/Queues/{queueId}/Members/Front | Get Head Member @@ -183,6 +187,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**listCalls**](docs/DefaultApi.md#listCalls) | **GET** /Accounts/{accountId}/Calls | List Calls *DefaultApi* | [**listConferenceRecordings**](docs/DefaultApi.md#listConferenceRecordings) | **GET** /Accounts/{accountId}/Conferences/{conferenceId}/Recordings | List Conference Recordings *DefaultApi* | [**listConferences**](docs/DefaultApi.md#listConferences) | **GET** /Accounts/{accountId}/Conferences | List Conferences +*DefaultApi* | [**listExports**](docs/DefaultApi.md#listExports) | **GET** /Accounts/{accountId}/Exports | List Exports *DefaultApi* | [**listIncomingNumbers**](docs/DefaultApi.md#listIncomingNumbers) | **GET** /Accounts/{accountId}/IncomingPhoneNumbers | List Incoming Numbers *DefaultApi* | [**listMembers**](docs/DefaultApi.md#listMembers) | **GET** /Accounts/{accountId}/Queues/{queueId}/Members | List Members *DefaultApi* | [**listParticipants**](docs/DefaultApi.md#listParticipants) | **GET** /Accounts/{accountId}/Conferences/{conferenceId}/Participants | List Participants @@ -244,6 +249,14 @@ Class | Method | HTTP request | Description - [Dequeue](docs/Dequeue.md) - [DequeueWebhook](docs/DequeueWebhook.md) - [Enqueue](docs/Enqueue.md) + - [ExportList](docs/ExportList.md) + - [ExportOutputType](docs/ExportOutputType.md) + - [ExportRequest](docs/ExportRequest.md) + - [ExportRequestOutput](docs/ExportRequestOutput.md) + - [ExportResourceType](docs/ExportResourceType.md) + - [ExportResult](docs/ExportResult.md) + - [ExportResultOutput](docs/ExportResultOutput.md) + - [ExportStatus](docs/ExportStatus.md) - [FilterLogsRequest](docs/FilterLogsRequest.md) - [GetDigits](docs/GetDigits.md) - [GetDigitsReason](docs/GetDigitsReason.md) diff --git a/build.gradle b/build.gradle index 70500cd8..d671f8ac 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'com.github.freeclimbapi' -version = '6.1.2' +version = '6.2.0' buildscript { repositories { @@ -83,8 +83,10 @@ if(hasProperty('target') && target == 'android') { apply plugin: 'java' apply plugin: 'maven-publish' - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + java { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + } publishing { publications { @@ -96,7 +98,7 @@ if(hasProperty('target') && target == 'android') { } task execute(type:JavaExec) { - main = System.getProperty('mainClass') + mainClass = System.getProperty('mainClass') classpath = sourceSets.main.runtimeClasspath } } @@ -113,7 +115,7 @@ dependencies { implementation 'com.google.code.gson:gson:2.8.9' implementation 'io.gsonfire:gson-fire:1.8.5' implementation 'org.openapitools:jackson-databind-nullable:0.2.2' - implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0' + implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.18.0' implementation group: 'commons-codec', name: 'commons-codec', version: '1.7' implementation 'org.threeten:threetenbp:1.6.0' implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" diff --git a/build.sbt b/build.sbt index b4ec2543..f67bf7c3 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "com.github.freeclimbapi", name := "freeclimb-java-client", - version := "6.1.2", + version := "6.2.0", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), @@ -13,7 +13,7 @@ lazy val root = (project in file(".")). "com.squareup.okhttp3" % "okhttp" % "4.9.3", "com.squareup.okhttp3" % "logging-interceptor" % "4.9.3", "com.google.code.gson" % "gson" % "2.8.9", - "org.apache.commons" % "commons-lang3" % "3.12.0", + "org.apache.commons" % "commons-lang3" % "3.18.0", "org.openapitools" % "jackson-databind-nullable" % "0.2.2", "org.threeten" % "threetenbp" % "1.6.0" % "compile", "io.gsonfire" % "gson-fire" % "1.8.5" % "compile", diff --git a/docs/CallResult.md b/docs/CallResult.md index 7f7f796a..7e219658 100644 --- a/docs/CallResult.md +++ b/docs/CallResult.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **from** | **String** | Phone number that initiated this Call. | [optional] **to** | **String** | Phone number that received this Call. | [optional] **phoneNumberId** | **String** | If the Call was inbound, this is the ID of the IncomingPhoneNumber that received the Call (DNIS). If the Call was outbound, this is the ID of the phone number from which the Call was placed (ANI). | [optional] -**callStatus** | **CallStatus** | | [optional] +**status** | **CallStatus** | | [optional] **startTime** | **String** | Start time of the Call (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). Empty if the Call has not yet been dialed. | [optional] **connectTime** | **String** | Time the Call was answered (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). Empty if the Call has not yet been dialed. | [optional] **endTime** | **String** | End time of the Call (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). Empty if the Call did not complete successfully. | [optional] diff --git a/docs/CreateConference.md b/docs/CreateConference.md index 597e4222..548c257a 100644 --- a/docs/CreateConference.md +++ b/docs/CreateConference.md @@ -9,11 +9,12 @@ The `CreateConference` command does exactly what its name implies — it creates Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **actionUrl** | **URI** | This URL is invoked once the Conference is successfully created. Actions on the Conference, such as adding Participants, can be performed via the PerCL script returned in the response. | -**alias** | **Boolean** | Descriptive name for the Conference. | [optional] +**alias** | **String** | Descriptive name for the Conference. | [optional] **playBeep** | **PlayBeep** | | [optional] **record** | **Boolean** | When set to `true`, the entire Conference is recorded. The `statusCallbackUrl` of the Conference will receive a `conferenceRecordingEnded` Webhook when the Conference transitions from the `inProgress` to empty state. | [optional] **statusCallbackUrl** | **URI** | This URL is invoked when the status of the Conference changes or when a recording of the Conference has become available. | [optional] **waitUrl** | **URI** | If specified, this URL provides the custom hold music for the Conference when it is in the populated state. This attribute is always fetched using HTTP GET and is fetched just once – when the Conference is created. The URL must be an audio file that is reachable and readable by FreeClimb. | [optional] +**parentCallId** | **String** | ID of the Call that created this leg (child call). | [optional] diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 2aec76dd..6cf8f1f4 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -8,13 +8,16 @@ Method | HTTP request | Description [**createAConference**](DefaultApi.md#createAConference) | **POST** /Accounts/{accountId}/Conferences | Create a Conference [**createAQueue**](DefaultApi.md#createAQueue) | **POST** /Accounts/{accountId}/Queues | Create a Queue [**createAnApplication**](DefaultApi.md#createAnApplication) | **POST** /Accounts/{accountId}/Applications | Create an application +[**createExport**](DefaultApi.md#createExport) | **POST** /Accounts/{accountId}/Exports | Create an Export [**createKnowledgeBaseCompletion**](DefaultApi.md#createKnowledgeBaseCompletion) | **POST** /Accounts/{accountId}/KnowledgeBases/{knowledgeBaseId}/Completion | Query the knowledge base [**deleteARecording**](DefaultApi.md#deleteARecording) | **DELETE** /Accounts/{accountId}/Recordings/{recordingId} | Delete a Recording [**deleteAnApplication**](DefaultApi.md#deleteAnApplication) | **DELETE** /Accounts/{accountId}/Applications/{applicationId} | Delete an application +[**deleteAnExport**](DefaultApi.md#deleteAnExport) | **DELETE** /Accounts/{accountId}/Exports/{exportId} | Delete an Export [**deleteAnIncomingNumber**](DefaultApi.md#deleteAnIncomingNumber) | **DELETE** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Delete an Incoming Number [**dequeueAMember**](DefaultApi.md#dequeueAMember) | **POST** /Accounts/{accountId}/Queues/{queueId}/Members/{callId} | Dequeue a Member [**dequeueHeadMember**](DefaultApi.md#dequeueHeadMember) | **POST** /Accounts/{accountId}/Queues/{queueId}/Members/Front | Dequeue Head Member [**downloadARecordingFile**](DefaultApi.md#downloadARecordingFile) | **GET** /Accounts/{accountId}/Recordings/{recordingId}/Download | Download a Recording File +[**downloadAnExport**](DefaultApi.md#downloadAnExport) | **GET** /Accounts/{accountId}/Exports/{exportId}/Download | Download an Export [**filterLogs**](DefaultApi.md#filterLogs) | **POST** /Accounts/{accountId}/Logs | Filter Logs [**getACall**](DefaultApi.md#getACall) | **GET** /Accounts/{accountId}/Calls/{callId} | Get a Call [**getAConference**](DefaultApi.md#getAConference) | **GET** /Accounts/{accountId}/Conferences/{conferenceId} | Get a Conference @@ -24,6 +27,7 @@ Method | HTTP request | Description [**getARecording**](DefaultApi.md#getARecording) | **GET** /Accounts/{accountId}/Recordings/{recordingId} | Get a Recording [**getAnAccount**](DefaultApi.md#getAnAccount) | **GET** /Accounts/{accountId} | Get an Account [**getAnApplication**](DefaultApi.md#getAnApplication) | **GET** /Accounts/{accountId}/Applications/{applicationId} | Get an Application +[**getAnExport**](DefaultApi.md#getAnExport) | **GET** /Accounts/{accountId}/Exports/{exportId} | Get an Export [**getAnIncomingNumber**](DefaultApi.md#getAnIncomingNumber) | **GET** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Get an Incoming Number [**getAnSmsMessage**](DefaultApi.md#getAnSmsMessage) | **GET** /Accounts/{accountId}/Messages/{messageId} | Get an SMS Message [**getHeadMember**](DefaultApi.md#getHeadMember) | **GET** /Accounts/{accountId}/Queues/{queueId}/Members/Front | Get Head Member @@ -44,6 +48,7 @@ Method | HTTP request | Description [**listCalls**](DefaultApi.md#listCalls) | **GET** /Accounts/{accountId}/Calls | List Calls [**listConferenceRecordings**](DefaultApi.md#listConferenceRecordings) | **GET** /Accounts/{accountId}/Conferences/{conferenceId}/Recordings | List Conference Recordings [**listConferences**](DefaultApi.md#listConferences) | **GET** /Accounts/{accountId}/Conferences | List Conferences +[**listExports**](DefaultApi.md#listExports) | **GET** /Accounts/{accountId}/Exports | List Exports [**listIncomingNumbers**](DefaultApi.md#listIncomingNumbers) | **GET** /Accounts/{accountId}/IncomingPhoneNumbers | List Incoming Numbers [**listMembers**](DefaultApi.md#listMembers) | **GET** /Accounts/{accountId}/Queues/{queueId}/Members | List Members [**listParticipants**](DefaultApi.md#listParticipants) | **GET** /Accounts/{accountId}/Conferences/{conferenceId}/Participants | List Participants @@ -331,6 +336,73 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **201** | Application successfuly created | - | + +# **createExport** +> ExportResult createExport(exportRequest) + +Create an Export + +### Example +```java +// Import classes: +import com.github.freeclimbapi.ApiClient; +import com.github.freeclimbapi.ApiException; +import com.github.freeclimbapi.Configuration; +import com.github.freeclimbapi.auth.*; +import com.github.freeclimbapi.models.*; +import com.github.freeclimbapi.DefaultApi; + +public class Example { + public static void main(String[] args) { + + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://www.freeclimb.com/apiserver"); + defaultClient.setAccountId("YOUR_ACCOUNT_ID"); + defaultClient.setApiKey("YOUR_API_KEY"); + + + DefaultApi apiInstance = new DefaultApi(defaultClient); + + ExportRequest exportRequest = new ExportRequest(resourceType={ }, format={ }, output={ }, query={ }); // ExportRequest | A JSON object containing export creation parameters + try { + ExportResult result = apiInstance.createExport(exportRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#createExport"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **exportRequest** | [**ExportRequest**](ExportRequest.md)| A JSON object containing export creation parameters | [optional] + + +### Return type + +[**ExportResult**](ExportResult.md) + +### Authorization + +[fc](../README.md#fc) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Export successfully created | - | + # **createKnowledgeBaseCompletion** > CompletionResult createKnowledgeBaseCompletion(knowledgeBaseId, completionRequest) @@ -535,6 +607,73 @@ null (empty response body) |-------------|-------------|------------------| **204** | Successful application deletion | - | + +# **deleteAnExport** +> deleteAnExport(exportId) + +Delete an Export + +### Example +```java +// Import classes: +import com.github.freeclimbapi.ApiClient; +import com.github.freeclimbapi.ApiException; +import com.github.freeclimbapi.Configuration; +import com.github.freeclimbapi.auth.*; +import com.github.freeclimbapi.models.*; +import com.github.freeclimbapi.DefaultApi; + +public class Example { + public static void main(String[] args) { + + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://www.freeclimb.com/apiserver"); + defaultClient.setAccountId("YOUR_ACCOUNT_ID"); + defaultClient.setApiKey("YOUR_API_KEY"); + + + DefaultApi apiInstance = new DefaultApi(defaultClient); + + String exportId = "exportId_example"; // String | A string that uniquely identifies this export resource. + + try { + apiInstance.deleteAnExport(exportId); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#deleteAnExport"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **exportId** | **String**| A string that uniquely identifies this export resource. | + + +### Return type + +null (empty response body) + +### Authorization + +[fc](../README.md#fc) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successful Export deletion | - | + # **deleteAnIncomingNumber** > deleteAnIncomingNumber(phoneNumberId) @@ -809,6 +948,74 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Download a Recording file represented with audio/x-wav mime-type | - | + +# **downloadAnExport** +> String downloadAnExport(exportId) + +Download an Export + +### Example +```java +// Import classes: +import com.github.freeclimbapi.ApiClient; +import com.github.freeclimbapi.ApiException; +import com.github.freeclimbapi.Configuration; +import com.github.freeclimbapi.auth.*; +import com.github.freeclimbapi.models.*; +import com.github.freeclimbapi.DefaultApi; + +public class Example { + public static void main(String[] args) { + + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://www.freeclimb.com/apiserver"); + defaultClient.setAccountId("YOUR_ACCOUNT_ID"); + defaultClient.setApiKey("YOUR_API_KEY"); + + + DefaultApi apiInstance = new DefaultApi(defaultClient); + + String exportId = "exportId_example"; // String | A string that uniquely identifies this export resource. + + try { + String result = apiInstance.downloadAnExport(exportId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#downloadAnExport"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **exportId** | **String**| A string that uniquely identifies this export resource. | + + +### Return type + +**String** + +### Authorization + +[fc](../README.md#fc) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/csv + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Export Details | - | + # **filterLogs** > LogList filterLogs(filterLogsRequest) @@ -1421,6 +1628,74 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | Application Details | - | + +# **getAnExport** +> ExportResult getAnExport(exportId) + +Get an Export + +### Example +```java +// Import classes: +import com.github.freeclimbapi.ApiClient; +import com.github.freeclimbapi.ApiException; +import com.github.freeclimbapi.Configuration; +import com.github.freeclimbapi.auth.*; +import com.github.freeclimbapi.models.*; +import com.github.freeclimbapi.DefaultApi; + +public class Example { + public static void main(String[] args) { + + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://www.freeclimb.com/apiserver"); + defaultClient.setAccountId("YOUR_ACCOUNT_ID"); + defaultClient.setApiKey("YOUR_API_KEY"); + + + DefaultApi apiInstance = new DefaultApi(defaultClient); + + String exportId = "exportId_example"; // String | A string that uniquely identifies this export resource. + + try { + ExportResult result = apiInstance.getAnExport(exportId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#getAnExport"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **exportId** | **String**| A string that uniquely identifies this export resource. | + + +### Return type + +[**ExportResult**](ExportResult.md) + +### Authorization + +[fc](../README.md#fc) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Export Details | - | + # **getAnIncomingNumber** > IncomingNumberResult getAnIncomingNumber(phoneNumberId) @@ -2594,7 +2869,7 @@ Name | Type | Description | Notes # **listCalls** -> CallList listCalls(active, to, from, status, startTime, endTime, parentCallId, applicationId) +> CallList listCalls(active, to, from, status, startTime, endTime, parentCallId, applicationId, riskScoreMin, riskScoreMax) List Calls @@ -2633,8 +2908,12 @@ public class Example { String parentCallId = "parentCallId_example"; // String | Only show Calls spawned by the call with this ID. List applicationId = new List(); // List | Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. + Integer riskScoreMin = 56; // Integer | The minimum riskScore that should be included in the list. + + Integer riskScoreMax = 56; // Integer | The maximum riskScore that should be included in the list. + try { - CallList result = apiInstance.listCalls(active, to, from, status, startTime, endTime, parentCallId, applicationId); + CallList result = apiInstance.listCalls(active, to, from, status, startTime, endTime, parentCallId, applicationId, riskScoreMin, riskScoreMax); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DefaultApi#listCalls"); @@ -2659,6 +2938,8 @@ Name | Type | Description | Notes **endTime** | **String**| Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. | [optional] **parentCallId** | **String**| Only show Calls spawned by the call with this ID. | [optional] **applicationId** | [**List<String>**](String.md)| Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. | [optional] + **riskScoreMin** | **Integer**| The minimum riskScore that should be included in the list. | [optional] + **riskScoreMax** | **Integer**| The maximum riskScore that should be included in the list. | [optional] ### Return type @@ -2830,6 +3111,76 @@ Name | Type | Description | Notes |-------------|-------------|------------------| **200** | List of Conferences | - | + +# **listExports** +> ExportList listExports(status, cursor) + +List Exports + +### Example +```java +// Import classes: +import com.github.freeclimbapi.ApiClient; +import com.github.freeclimbapi.ApiException; +import com.github.freeclimbapi.Configuration; +import com.github.freeclimbapi.auth.*; +import com.github.freeclimbapi.models.*; +import com.github.freeclimbapi.DefaultApi; + +public class Example { + public static void main(String[] args) { + + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://www.freeclimb.com/apiserver"); + defaultClient.setAccountId("YOUR_ACCOUNT_ID"); + defaultClient.setApiKey("YOUR_API_KEY"); + + + DefaultApi apiInstance = new DefaultApi(defaultClient); + + ExportStatus status = new ExportStatus(); // ExportStatus | Status of export + String cursor = "cursor_example"; // String | Used to reference pages of a list of exports + + try { + ExportList result = apiInstance.listExports(status, cursor); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#listExports"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **status** | [**ExportStatus**](.md)| Status of export | [optional] [enum: intaking, queued, inProgress, completed, failed, deleted] + **cursor** | **String**| Used to reference pages of a list of exports | [optional] + + +### Return type + +[**ExportList**](ExportList.md) + +### Authorization + +[fc](../README.md#fc) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successful retrieved export list | - | + # **listIncomingNumbers** > IncomingNumberList listIncomingNumbers(phoneNumber, alias, region, country, applicationId, hasApplication, voiceEnabled, smsEnabled, hasCampaign, capabilitiesVoice, capabilitiesSms, capabilitiesTollFree, capabilitiesTenDLC, capabilitiesShortCode, tfnCampaignId, offnet) diff --git a/docs/ExportList.md b/docs/ExportList.md new file mode 100644 index 00000000..865da932 --- /dev/null +++ b/docs/ExportList.md @@ -0,0 +1,20 @@ + + +# ExportList + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | **Integer** | Total amount of requested resource. | [optional] +**start** | **Integer** | Resource index at start of current page | [optional] +**end** | **Integer** | Resource index at end of current page | [optional] +**page** | **Integer** | Current page | [optional] +**numPages** | **Integer** | Total number of pages | [optional] +**pageSize** | **Integer** | Number of items per page | [optional] +**nextPageUri** | **String** | Uri to retrieve the next page of items | [optional] +**exports** | [**List<ExportResult>**](ExportResult.md) | | [optional] + + + diff --git a/docs/ExportOutputType.md b/docs/ExportOutputType.md new file mode 100644 index 00000000..1553fc82 --- /dev/null +++ b/docs/ExportOutputType.md @@ -0,0 +1,11 @@ + + +# ExportOutputType + +## Enum + + +* `CSV` (value: `"csv"`) + + + diff --git a/docs/ExportRequest.md b/docs/ExportRequest.md new file mode 100644 index 00000000..72a51d8e --- /dev/null +++ b/docs/ExportRequest.md @@ -0,0 +1,16 @@ + + +# ExportRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resourceType** | **ExportResourceType** | | +**format** | **List<String>** | | [optional] +**output** | [**ExportRequestOutput**](ExportRequestOutput.md) | | +**query** | **Object** | | [optional] + + + diff --git a/docs/ExportRequestOutput.md b/docs/ExportRequestOutput.md new file mode 100644 index 00000000..1fd8d31b --- /dev/null +++ b/docs/ExportRequestOutput.md @@ -0,0 +1,13 @@ + + +# ExportRequestOutput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **ExportOutputType** | | + + + diff --git a/docs/ExportResourceType.md b/docs/ExportResourceType.md new file mode 100644 index 00000000..991a520b --- /dev/null +++ b/docs/ExportResourceType.md @@ -0,0 +1,13 @@ + + +# ExportResourceType + +## Enum + + +* `MESSAGES` (value: `"Messages"`) + +* `CALLS` (value: `"Calls"`) + + + diff --git a/docs/ExportResult.md b/docs/ExportResult.md new file mode 100644 index 00000000..6a39cb8d --- /dev/null +++ b/docs/ExportResult.md @@ -0,0 +1,24 @@ + + +# ExportResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accountId** | **String** | String that uniquely identifies this account resource. | +**uri** | **String** | | +**dateCreated** | **String** | | +**dateUpdated** | **String** | | +**revision** | **Integer** | | +**exportId** | **String** | String that uniquely identifies this export resource | +**status** | **ExportStatus** | | +**size** | **Integer** | | +**resourceType** | **ExportResourceType** | | +**query** | **Object** | Query params used to filter exported documents | +**format** | **List<String>** | Desired fields of exported documents | +**output** | [**ExportResultOutput**](ExportResultOutput.md) | | + + + diff --git a/docs/ExportResultOutput.md b/docs/ExportResultOutput.md new file mode 100644 index 00000000..3865b2ce --- /dev/null +++ b/docs/ExportResultOutput.md @@ -0,0 +1,13 @@ + + +# ExportResultOutput + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **ExportOutputType** | | + + + diff --git a/docs/ExportStatus.md b/docs/ExportStatus.md new file mode 100644 index 00000000..69515abf --- /dev/null +++ b/docs/ExportStatus.md @@ -0,0 +1,21 @@ + + +# ExportStatus + +## Enum + + +* `INTAKING` (value: `"intaking"`) + +* `QUEUED` (value: `"queued"`) + +* `IN_PROGRESS` (value: `"inProgress"`) + +* `COMPLETED` (value: `"completed"`) + +* `FAILED` (value: `"failed"`) + +* `DELETED` (value: `"deleted"`) + + + diff --git a/openapi.json b/openapi.json index e8f5da9d..7561d699 100644 --- a/openapi.json +++ b/openapi.json @@ -1968,7 +1968,7 @@ }, "alias": { "description": "Descriptive name for the Conference. ", - "type": "boolean" + "type": "string" }, "playBeep": { "$ref": "#/components/schemas/PlayBeep" @@ -1986,6 +1986,10 @@ "description": "If specified, this URL provides the custom hold music for the Conference when it is in the populated state. This attribute is always fetched using HTTP GET and is fetched just once – when the Conference is created. The URL must be an audio file that is reachable and readable by FreeClimb.", "format": "uri", "type": "string" + }, + "parentCallId": { + "description": "ID of the Call that created this leg (child call).", + "type": "string" } } } @@ -3113,7 +3117,7 @@ "description": "If the Call was inbound, this is the ID of the IncomingPhoneNumber that received the Call (DNIS). If the Call was outbound, this is the ID of the phone number from which the Call was placed (ANI).", "nullable": true }, - "callStatus": { + "status": { "$ref": "#/components/schemas/CallStatus" }, "startTime": { @@ -4830,6 +4834,187 @@ "minimum": 1 } } + }, + "ExportStatus": { + "type": "string", + "description": "platform export status", + "enum": [ + "intaking", + "queued", + "inProgress", + "completed", + "failed", + "deleted" + ] + }, + "ExportResourceType": { + "type": "string", + "description": "platform resource type", + "enum": [ + "Messages", + "Calls" + ] + }, + "ExportOutputType": { + "type": "string", + "description": "output type of the export", + "enum": [ + "csv" + ] + }, + "ExportRequestOutput": { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "$ref": "#/components/schemas/ExportOutputType" + } + } + }, + "ExportResultOutput": { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "$ref": "#/components/schemas/ExportOutputType" + } + } + }, + "ExportResult": { + "type": "object", + "required": [ + "accountId", + "uri", + "dateCreated", + "dateUpdated", + "revision", + "exportId", + "status", + "size", + "resourceType", + "query", + "format", + "output" + ], + "properties": { + "accountId": { + "type": "string", + "description": "String that uniquely identifies this account resource.", + "nullable": true + }, + "uri": { + "type": "string", + "format": "uri-reference" + }, + "dateCreated": { + "type": "string" + }, + "dateUpdated": { + "type": "string" + }, + "revision": { + "type": "integer", + "minimum": 0 + }, + "exportId": { + "type": "string", + "description": "String that uniquely identifies this export resource", + "nullable": true + }, + "status": { + "$ref": "#/components/schemas/ExportStatus" + }, + "size": { + "type": "integer" + }, + "resourceType": { + "$ref": "#/components/schemas/ExportResourceType" + }, + "query": { + "description": "Query params used to filter exported documents", + "type": "object" + }, + "format": { + "description": "Desired fields of exported documents", + "type": "array", + "items": { + "type": "string" + } + }, + "output": { + "$ref": "#/components/schemas/ExportResultOutput" + } + }, + "example": { + "accountId": "AC3ff5d5aed7fde9e6659673d850cbd18ea8bfca78", + "uri": "/Accounts/AC3ff5d5aed7fde9e6659673d850cbd18ea8bfca78/Exports/EX4d7500862e3abf4b9f4da24d54f559d3024252f8", + "dateCreated": "Wed, 26 Jun 2024 15:45:06 UTC", + "dateUpdated": "Wed, 26 Jun 2024 15:45:06 UTC", + "revision": 1, + "exportId": "EX4d7500862e3abf4b9f4da24d54f559d3024252f8", + "status": "completed", + "size": 12893786, + "resourceType": "Messages", + "query": { + "direction": "inbound" + }, + "format": [ + "messageId", + "dateUpdated", + "segmentCount", + "status" + ], + "output": { + "type": "csv" + } + } + }, + "ExportList": { + "allOf": [ + { + "$ref": "#/components/schemas/PaginationModel" + }, + { + "type": "object", + "properties": { + "exports": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ExportResult" + }, + "nullable": true + } + } + } + ] + }, + "ExportRequest": { + "type": "object", + "required": [ + "resourceType", + "output" + ], + "properties": { + "resourceType": { + "$ref": "#/components/schemas/ExportResourceType" + }, + "format": { + "type": "array", + "items": { + "type": "string" + } + }, + "output": { + "$ref": "#/components/schemas/ExportRequestOutput" + }, + "query": { + "type": "object" + } + } } } }, @@ -5654,6 +5839,24 @@ }, { "$ref": "#/components/parameters/AccountId" + }, + { + "name": "riskScoreMin", + "in": "query", + "description": "The minimum riskScore that should be included in the list.", + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "riskScoreMax", + "in": "query", + "description": "The maximum riskScore that should be included in the list.", + "required": false, + "schema": { + "type": "integer" + } } ], "deprecated": false, @@ -7331,6 +7534,171 @@ }, "deprecated": false } + }, + "/Accounts/{accountId}/Exports": { + "get": { + "tags": [], + "summary": "List Exports", + "operationId": "list-exports", + "responses": { + "200": { + "description": "Successful retrieved export list", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExportList" + } + } + } + } + }, + "parameters": [ + { + "$ref": "#/components/parameters/AccountId" + }, + { + "schema": { + "$ref": "#/components/schemas/ExportStatus" + }, + "in": "query", + "name": "status", + "description": "Status of export" + }, + { + "schema": { + "type": "string" + }, + "in": "query", + "name": "cursor", + "description": "Used to reference pages of a list of exports" + } + ] + }, + "post": { + "summary": "Create an Export", + "operationId": "create-export", + "tags": [], + "requestBody": { + "description": "A JSON object containing export creation parameters", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExportRequest" + } + } + } + }, + "responses": { + "200": { + "description": "Export successfully created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExportResult" + } + } + } + } + }, + "parameters": [ + { + "$ref": "#/components/parameters/AccountId" + } + ] + } + }, + "/Accounts/{accountId}/Exports/{exportId}": { + "get": { + "tags": [], + "summary": "Get an Export", + "operationId": "get-an-export", + "parameters": [ + { + "$ref": "#/components/parameters/AccountId" + }, + { + "name": "exportId", + "in": "path", + "description": "A string that uniquely identifies this export resource.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "deprecated": false, + "responses": { + "200": { + "description": "Export Details", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExportResult" + } + } + } + } + } + }, + "delete": { + "tags": [], + "summary": "Delete an Export", + "operationId": "delete-an-export", + "parameters": [ + { + "$ref": "#/components/parameters/AccountId" + }, + { + "name": "exportId", + "in": "path", + "description": "A string that uniquely identifies this export resource.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "deprecated": false, + "responses": { + "204": { + "description": "Successful Export deletion" + } + } + } + }, + "/Accounts/{accountId}/Exports/{exportId}/Download": { + "get": { + "tags": [], + "summary": "Download an Export", + "operationId": "download-an-export", + "parameters": [ + { + "$ref": "#/components/parameters/AccountId" + }, + { + "name": "exportId", + "in": "path", + "description": "A string that uniquely identifies this export resource.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "deprecated": false, + "responses": { + "200": { + "description": "Export Details", + "content": { + "text/csv": { + "schema": { + "type": "string" + } + } + } + } + } + } } }, "x-headers": [], diff --git a/pom.xml b/pom.xml index d9ace901..37f2dd14 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ freeclimb-java-client jar freeclimb-java-client - 6.1.2 + 6.2.0 https://github.com/freeclimbapi/java-sdk FreeClimb Java Client @@ -336,11 +336,11 @@ 1.6.3 4.9.3 2.8.9 - 3.12.0 + 3.18.0 0.2.2 1.6.0 1.3.5 - 20171018 + 20231013 4.13.2 UTF-8 2.43.0 diff --git a/src/main/java/com/github/freeclimbapi/ApiClient.java b/src/main/java/com/github/freeclimbapi/ApiClient.java index 00f8266c..7dc1b5a6 100644 --- a/src/main/java/com/github/freeclimbapi/ApiClient.java +++ b/src/main/java/com/github/freeclimbapi/ApiClient.java @@ -121,7 +121,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/6.1.2/java"); + setUserAgent("OpenAPI-Generator/6.2.0/java"); authentications = new HashMap(); } diff --git a/src/main/java/com/github/freeclimbapi/DefaultApi.java b/src/main/java/com/github/freeclimbapi/DefaultApi.java index 0e195f4b..41083cc3 100644 --- a/src/main/java/com/github/freeclimbapi/DefaultApi.java +++ b/src/main/java/com/github/freeclimbapi/DefaultApi.java @@ -664,6 +664,150 @@ public okhttp3.Call createAnApplicationAsync( return localVarCall; } + /** + * Build call for createExport + * + * @param exportRequest A JSON object containing export creation parameters (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 Export successfully created -
+ */ + public okhttp3.Call createExportCall(ExportRequest exportRequest, final ApiCallback _callback) + throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = exportRequest; + + // create path and map variables + String localVarPath = + "/Accounts/{accountId}/Exports" + .replaceAll( + "\\{" + "accountId" + "\\}", + localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {"application/json"}; + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } else { + localVarHeaderParams.put("Content-Type", ""); + } + + String[] localVarAuthNames = new String[] {"fc"}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "POST", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createExportValidateBeforeCall( + ExportRequest exportRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createExportCall(exportRequest, _callback); + return localVarCall; + } + + /** + * Create an Export + * + * @param exportRequest A JSON object containing export creation parameters (optional) + * @return ExportResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 Export successfully created -
+ */ + public ExportResult createExport(ExportRequest exportRequest) throws ApiException { + ApiResponse localVarResp = createExportWithHttpInfo(exportRequest); + return localVarResp.getData(); + } + + /** + * Create an Export + * + * @param exportRequest A JSON object containing export creation parameters (optional) + * @return ApiResponse<ExportResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 Export successfully created -
+ */ + public ApiResponse createExportWithHttpInfo(ExportRequest exportRequest) + throws ApiException { + okhttp3.Call localVarCall = createExportValidateBeforeCall(exportRequest, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Create an Export (asynchronously) + * + * @param exportRequest A JSON object containing export creation parameters (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 Export successfully created -
+ */ + public okhttp3.Call createExportAsync( + ExportRequest exportRequest, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = createExportValidateBeforeCall(exportRequest, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** * Build call for createKnowledgeBaseCompletion * @@ -1142,6 +1286,155 @@ public okhttp3.Call deleteAnApplicationAsync( return localVarCall; } + /** + * Build call for deleteAnExport + * + * @param exportId A string that uniquely identifies this export resource. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
204 Successful Export deletion -
+ */ + public okhttp3.Call deleteAnExportCall(String exportId, final ApiCallback _callback) + throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = + "/Accounts/{accountId}/Exports/{exportId}" + .replaceAll( + "\\{" + "accountId" + "\\}", + localVarApiClient.escapeString(accountId.toString())) + .replaceAll( + "\\{" + "exportId" + "\\}", + localVarApiClient.escapeString(exportId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {}; + + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } else { + localVarHeaderParams.put("Content-Type", ""); + } + + String[] localVarAuthNames = new String[] {"fc"}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "DELETE", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteAnExportValidateBeforeCall( + String exportId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'exportId' is set + if (exportId == null) { + throw new ApiException( + "Missing the required parameter 'exportId' when calling deleteAnExport(Async)"); + } + + okhttp3.Call localVarCall = deleteAnExportCall(exportId, _callback); + return localVarCall; + } + + /** + * Delete an Export + * + * @param exportId A string that uniquely identifies this export resource. (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
204 Successful Export deletion -
+ */ + public void deleteAnExport(String exportId) throws ApiException { + deleteAnExportWithHttpInfo(exportId); + } + + /** + * Delete an Export + * + * @param exportId A string that uniquely identifies this export resource. (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
204 Successful Export deletion -
+ */ + public ApiResponse deleteAnExportWithHttpInfo(String exportId) throws ApiException { + okhttp3.Call localVarCall = deleteAnExportValidateBeforeCall(exportId, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * Delete an Export (asynchronously) + * + * @param exportId A string that uniquely identifies this export resource. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
204 Successful Export deletion -
+ */ + public okhttp3.Call deleteAnExportAsync(String exportId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = deleteAnExportValidateBeforeCall(exportId, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** * Build call for deleteAnIncomingNumber * @@ -1774,6 +2067,159 @@ public okhttp3.Call downloadARecordingFileAsync( return localVarCall; } + /** + * Build call for downloadAnExport + * + * @param exportId A string that uniquely identifies this export resource. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 Export Details -
+ */ + public okhttp3.Call downloadAnExportCall(String exportId, final ApiCallback _callback) + throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = + "/Accounts/{accountId}/Exports/{exportId}/Download" + .replaceAll( + "\\{" + "accountId" + "\\}", + localVarApiClient.escapeString(accountId.toString())) + .replaceAll( + "\\{" + "exportId" + "\\}", + localVarApiClient.escapeString(exportId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"text/csv"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } else { + localVarHeaderParams.put("Content-Type", ""); + } + + String[] localVarAuthNames = new String[] {"fc"}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "GET", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call downloadAnExportValidateBeforeCall( + String exportId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'exportId' is set + if (exportId == null) { + throw new ApiException( + "Missing the required parameter 'exportId' when calling" + + " downloadAnExport(Async)"); + } + + okhttp3.Call localVarCall = downloadAnExportCall(exportId, _callback); + return localVarCall; + } + + /** + * Download an Export + * + * @param exportId A string that uniquely identifies this export resource. (required) + * @return String + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 Export Details -
+ */ + public String downloadAnExport(String exportId) throws ApiException { + ApiResponse localVarResp = downloadAnExportWithHttpInfo(exportId); + return localVarResp.getData(); + } + + /** + * Download an Export + * + * @param exportId A string that uniquely identifies this export resource. (required) + * @return ApiResponse<String> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 Export Details -
+ */ + public ApiResponse downloadAnExportWithHttpInfo(String exportId) throws ApiException { + okhttp3.Call localVarCall = downloadAnExportValidateBeforeCall(exportId, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Download an Export (asynchronously) + * + * @param exportId A string that uniquely identifies this export resource. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 Export Details -
+ */ + public okhttp3.Call downloadAnExportAsync(String exportId, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = downloadAnExportValidateBeforeCall(exportId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** * Build call for filterLogs * @@ -2860,9 +3306,147 @@ public ApiResponse getARecordingWithHttpInfo(String recordingId } /** - * Get a Recording (asynchronously) + * Get a Recording (asynchronously) + * + * @param recordingId String that uniquely identifies this recording resource. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 -
+ */ + public okhttp3.Call getARecordingAsync( + String recordingId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getARecordingValidateBeforeCall(recordingId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + /** + * Build call for getAnAccount + * + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 Account Details -
+ */ + public okhttp3.Call getAnAccountCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = + "/Accounts/{accountId}" + .replaceAll( + "\\{" + "accountId" + "\\}", + localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } else { + localVarHeaderParams.put("Content-Type", ""); + } + + String[] localVarAuthNames = new String[] {"fc"}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "GET", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAnAccountValidateBeforeCall(final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = getAnAccountCall(_callback); + return localVarCall; + } + + /** + * Get an Account + * + * @return AccountResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 Account Details -
+ */ + public AccountResult getAnAccount() throws ApiException { + ApiResponse localVarResp = getAnAccountWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Get an Account + * + * @return ApiResponse<AccountResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 Account Details -
+ */ + public ApiResponse getAnAccountWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAnAccountValidateBeforeCall(null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get an Account (asynchronously) * - * @param recordingId String that uniquely identifies this recording resource. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body @@ -2870,31 +3454,33 @@ public ApiResponse getARecordingWithHttpInfo(String recordingId * @http.response.details * * - * + * *
Status Code Description Response Headers
200 -
200 Account Details -
*/ - public okhttp3.Call getARecordingAsync( - String recordingId, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAnAccountAsync(final ApiCallback _callback) + throws ApiException { - okhttp3.Call localVarCall = getARecordingValidateBeforeCall(recordingId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); + okhttp3.Call localVarCall = getAnAccountValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for getAnAccount + * Build call for getAnApplication * + * @param applicationId A string that uniquely identifies this application resource. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Account Details -
200 Application Details -
*/ - public okhttp3.Call getAnAccountCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call getAnApplicationCall(String applicationId, final ApiCallback _callback) + throws ApiException { String basePath = null; // Operation Servers @@ -2913,10 +3499,13 @@ public okhttp3.Call getAnAccountCall(final ApiCallback _callback) throws ApiExce // create path and map variables String localVarPath = - "/Accounts/{accountId}" + "/Accounts/{accountId}/Applications/{applicationId}" .replaceAll( "\\{" + "accountId" + "\\}", - localVarApiClient.escapeString(accountId.toString())); + localVarApiClient.escapeString(accountId.toString())) + .replaceAll( + "\\{" + "applicationId" + "\\}", + localVarApiClient.escapeString(applicationId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2956,51 +3545,62 @@ public okhttp3.Call getAnAccountCall(final ApiCallback _callback) throws ApiExce } @SuppressWarnings("rawtypes") - private okhttp3.Call getAnAccountValidateBeforeCall(final ApiCallback _callback) - throws ApiException { + private okhttp3.Call getAnApplicationValidateBeforeCall( + String applicationId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAnAccountCall(_callback); + // verify the required parameter 'applicationId' is set + if (applicationId == null) { + throw new ApiException( + "Missing the required parameter 'applicationId' when calling" + + " getAnApplication(Async)"); + } + + okhttp3.Call localVarCall = getAnApplicationCall(applicationId, _callback); return localVarCall; } /** - * Get an Account + * Get an Application * - * @return AccountResult + * @param applicationId A string that uniquely identifies this application resource. (required) + * @return ApplicationResult * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Account Details -
200 Application Details -
*/ - public AccountResult getAnAccount() throws ApiException { - ApiResponse localVarResp = getAnAccountWithHttpInfo(); + public ApplicationResult getAnApplication(String applicationId) throws ApiException { + ApiResponse localVarResp = getAnApplicationWithHttpInfo(applicationId); return localVarResp.getData(); } /** - * Get an Account + * Get an Application * - * @return ApiResponse<AccountResult> + * @param applicationId A string that uniquely identifies this application resource. (required) + * @return ApiResponse<ApplicationResult> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Account Details -
200 Application Details -
*/ - public ApiResponse getAnAccountWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAnAccountValidateBeforeCall(null); - Type localVarReturnType = new TypeToken() {}.getType(); + public ApiResponse getAnApplicationWithHttpInfo(String applicationId) + throws ApiException { + okhttp3.Call localVarCall = getAnApplicationValidateBeforeCall(applicationId, null); + Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * Get an Account (asynchronously) + * Get an Application (asynchronously) * + * @param applicationId A string that uniquely identifies this application resource. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body @@ -3008,32 +3608,33 @@ public ApiResponse getAnAccountWithHttpInfo() throws ApiException * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Account Details -
200 Application Details -
*/ - public okhttp3.Call getAnAccountAsync(final ApiCallback _callback) + public okhttp3.Call getAnApplicationAsync( + String applicationId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAnAccountValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken() {}.getType(); + okhttp3.Call localVarCall = getAnApplicationValidateBeforeCall(applicationId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for getAnApplication + * Build call for getAnExport * - * @param applicationId A string that uniquely identifies this application resource. (required) + * @param exportId A string that uniquely identifies this export resource. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Application Details -
200 Export Details -
*/ - public okhttp3.Call getAnApplicationCall(String applicationId, final ApiCallback _callback) + public okhttp3.Call getAnExportCall(String exportId, final ApiCallback _callback) throws ApiException { String basePath = null; @@ -3053,13 +3654,13 @@ public okhttp3.Call getAnApplicationCall(String applicationId, final ApiCallback // create path and map variables String localVarPath = - "/Accounts/{accountId}/Applications/{applicationId}" + "/Accounts/{accountId}/Exports/{exportId}" .replaceAll( "\\{" + "accountId" + "\\}", localVarApiClient.escapeString(accountId.toString())) .replaceAll( - "\\{" + "applicationId" + "\\}", - localVarApiClient.escapeString(applicationId.toString())); + "\\{" + "exportId" + "\\}", + localVarApiClient.escapeString(exportId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3099,62 +3700,60 @@ public okhttp3.Call getAnApplicationCall(String applicationId, final ApiCallback } @SuppressWarnings("rawtypes") - private okhttp3.Call getAnApplicationValidateBeforeCall( - String applicationId, final ApiCallback _callback) throws ApiException { + private okhttp3.Call getAnExportValidateBeforeCall(String exportId, final ApiCallback _callback) + throws ApiException { - // verify the required parameter 'applicationId' is set - if (applicationId == null) { + // verify the required parameter 'exportId' is set + if (exportId == null) { throw new ApiException( - "Missing the required parameter 'applicationId' when calling" - + " getAnApplication(Async)"); + "Missing the required parameter 'exportId' when calling getAnExport(Async)"); } - okhttp3.Call localVarCall = getAnApplicationCall(applicationId, _callback); + okhttp3.Call localVarCall = getAnExportCall(exportId, _callback); return localVarCall; } /** - * Get an Application + * Get an Export * - * @param applicationId A string that uniquely identifies this application resource. (required) - * @return ApplicationResult + * @param exportId A string that uniquely identifies this export resource. (required) + * @return ExportResult * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Application Details -
200 Export Details -
*/ - public ApplicationResult getAnApplication(String applicationId) throws ApiException { - ApiResponse localVarResp = getAnApplicationWithHttpInfo(applicationId); + public ExportResult getAnExport(String exportId) throws ApiException { + ApiResponse localVarResp = getAnExportWithHttpInfo(exportId); return localVarResp.getData(); } /** - * Get an Application + * Get an Export * - * @param applicationId A string that uniquely identifies this application resource. (required) - * @return ApiResponse<ApplicationResult> + * @param exportId A string that uniquely identifies this export resource. (required) + * @return ApiResponse<ExportResult> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Application Details -
200 Export Details -
*/ - public ApiResponse getAnApplicationWithHttpInfo(String applicationId) - throws ApiException { - okhttp3.Call localVarCall = getAnApplicationValidateBeforeCall(applicationId, null); - Type localVarReturnType = new TypeToken() {}.getType(); + public ApiResponse getAnExportWithHttpInfo(String exportId) throws ApiException { + okhttp3.Call localVarCall = getAnExportValidateBeforeCall(exportId, null); + Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** - * Get an Application (asynchronously) + * Get an Export (asynchronously) * - * @param applicationId A string that uniquely identifies this application resource. (required) + * @param exportId A string that uniquely identifies this export resource. (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body @@ -3162,15 +3761,14 @@ public ApiResponse getAnApplicationWithHttpInfo(String applic * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Application Details -
200 Export Details -
*/ - public okhttp3.Call getAnApplicationAsync( - String applicationId, final ApiCallback _callback) + public okhttp3.Call getAnExportAsync(String exportId, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAnApplicationValidateBeforeCall(applicationId, _callback); - Type localVarReturnType = new TypeToken() {}.getType(); + okhttp3.Call localVarCall = getAnExportValidateBeforeCall(exportId, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -5959,6 +6557,8 @@ public okhttp3.Call listCallRecordingsAsync( * @param parentCallId Only show Calls spawned by the call with this ID. (optional) * @param applicationId Only show calls belonging to the given applicationId. This parameter can * be repeated to return calls from multiple Applications. (optional) + * @param riskScoreMin The minimum riskScore that should be included in the list. (optional) + * @param riskScoreMax The maximum riskScore that should be included in the list. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5977,6 +6577,8 @@ public okhttp3.Call listCallsCall( String endTime, String parentCallId, List applicationId, + Integer riskScoreMin, + Integer riskScoreMax, final ApiCallback _callback) throws ApiException { String basePath = null; @@ -6042,6 +6644,16 @@ public okhttp3.Call listCallsCall( localVarApiClient.parameterToPairs("multi", "applicationId", applicationId)); } + if (riskScoreMin != null) { + localVarQueryParams.addAll( + localVarApiClient.parameterToPair("riskScoreMin", riskScoreMin)); + } + + if (riskScoreMax != null) { + localVarQueryParams.addAll( + localVarApiClient.parameterToPair("riskScoreMax", riskScoreMax)); + } + final String[] localVarAccepts = {"application/json"}; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6083,6 +6695,8 @@ private okhttp3.Call listCallsValidateBeforeCall( String endTime, String parentCallId, List applicationId, + Integer riskScoreMin, + Integer riskScoreMax, final ApiCallback _callback) throws ApiException { @@ -6096,6 +6710,8 @@ private okhttp3.Call listCallsValidateBeforeCall( endTime, parentCallId, applicationId, + riskScoreMin, + riskScoreMax, _callback); return localVarCall; } @@ -6117,6 +6733,8 @@ private okhttp3.Call listCallsValidateBeforeCall( * @param parentCallId Only show Calls spawned by the call with this ID. (optional) * @param applicationId Only show calls belonging to the given applicationId. This parameter can * be repeated to return calls from multiple Applications. (optional) + * @param riskScoreMin The minimum riskScore that should be included in the list. (optional) + * @param riskScoreMax The maximum riskScore that should be included in the list. (optional) * @return CallList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -6134,11 +6752,22 @@ public CallList listCalls( String startTime, String endTime, String parentCallId, - List applicationId) + List applicationId, + Integer riskScoreMin, + Integer riskScoreMax) throws ApiException { ApiResponse localVarResp = listCallsWithHttpInfo( - active, to, from, status, startTime, endTime, parentCallId, applicationId); + active, + to, + from, + status, + startTime, + endTime, + parentCallId, + applicationId, + riskScoreMin, + riskScoreMax); return localVarResp.getData(); } @@ -6159,6 +6788,8 @@ public CallList listCalls( * @param parentCallId Only show Calls spawned by the call with this ID. (optional) * @param applicationId Only show calls belonging to the given applicationId. This parameter can * be repeated to return calls from multiple Applications. (optional) + * @param riskScoreMin The minimum riskScore that should be included in the list. (optional) + * @param riskScoreMax The maximum riskScore that should be included in the list. (optional) * @return ApiResponse<CallList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -6176,7 +6807,9 @@ public ApiResponse listCallsWithHttpInfo( String startTime, String endTime, String parentCallId, - List applicationId) + List applicationId, + Integer riskScoreMin, + Integer riskScoreMax) throws ApiException { okhttp3.Call localVarCall = listCallsValidateBeforeCall( @@ -6188,6 +6821,8 @@ public ApiResponse listCallsWithHttpInfo( endTime, parentCallId, applicationId, + riskScoreMin, + riskScoreMax, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -6210,6 +6845,8 @@ public ApiResponse listCallsWithHttpInfo( * @param parentCallId Only show Calls spawned by the call with this ID. (optional) * @param applicationId Only show calls belonging to the given applicationId. This parameter can * be repeated to return calls from multiple Applications. (optional) + * @param riskScoreMin The minimum riskScore that should be included in the list. (optional) + * @param riskScoreMax The maximum riskScore that should be included in the list. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body @@ -6229,6 +6866,8 @@ public okhttp3.Call listCallsAsync( String endTime, String parentCallId, List applicationId, + Integer riskScoreMin, + Integer riskScoreMax, final ApiCallback _callback) throws ApiException { @@ -6242,6 +6881,8 @@ public okhttp3.Call listCallsAsync( endTime, parentCallId, applicationId, + riskScoreMin, + riskScoreMax, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); @@ -6648,6 +7289,163 @@ public okhttp3.Call listConferencesAsync( return localVarCall; } + /** + * Build call for listExports + * + * @param status Status of export (optional) + * @param cursor Used to reference pages of a list of exports (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 Successful retrieved export list -
+ */ + public okhttp3.Call listExportsCall( + ExportStatus status, String cursor, final ApiCallback _callback) throws ApiException { + String basePath = null; + + // Operation Servers + String[] localBasePaths = new String[] {}; + + // Determine Base Path to Use + if (localCustomBaseUrl != null) { + basePath = localCustomBaseUrl; + } else if (localBasePaths.length > 0) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = + "/Accounts/{accountId}/Exports" + .replaceAll( + "\\{" + "accountId" + "\\}", + localVarApiClient.escapeString(accountId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (status != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("status", status)); + } + + if (cursor != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("cursor", cursor)); + } + + final String[] localVarAccepts = {"application/json"}; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = {}; + + final String localVarContentType = + localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } else { + localVarHeaderParams.put("Content-Type", ""); + } + + String[] localVarAuthNames = new String[] {"fc"}; + return localVarApiClient.buildCall( + basePath, + localVarPath, + "GET", + localVarQueryParams, + localVarCollectionQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarCookieParams, + localVarFormParams, + localVarAuthNames, + _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listExportsValidateBeforeCall( + ExportStatus status, String cursor, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listExportsCall(status, cursor, _callback); + return localVarCall; + } + + /** + * List Exports + * + * @param status Status of export (optional) + * @param cursor Used to reference pages of a list of exports (optional) + * @return ExportList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 Successful retrieved export list -
+ */ + public ExportList listExports(ExportStatus status, String cursor) throws ApiException { + ApiResponse localVarResp = listExportsWithHttpInfo(status, cursor); + return localVarResp.getData(); + } + + /** + * List Exports + * + * @param status Status of export (optional) + * @param cursor Used to reference pages of a list of exports (optional) + * @return ApiResponse<ExportList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the + * response body + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 Successful retrieved export list -
+ */ + public ApiResponse listExportsWithHttpInfo(ExportStatus status, String cursor) + throws ApiException { + okhttp3.Call localVarCall = listExportsValidateBeforeCall(status, cursor, null); + Type localVarReturnType = new TypeToken() {}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List Exports (asynchronously) + * + * @param status Status of export (optional) + * @param cursor Used to reference pages of a list of exports (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body + * object + * @http.response.details + * + * + * + *
Status Code Description Response Headers
200 Successful retrieved export list -
+ */ + public okhttp3.Call listExportsAsync( + ExportStatus status, String cursor, final ApiCallback _callback) + throws ApiException { + + okhttp3.Call localVarCall = listExportsValidateBeforeCall(status, cursor, _callback); + Type localVarReturnType = new TypeToken() {}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** * Build call for listIncomingNumbers * diff --git a/src/main/java/com/github/freeclimbapi/enums/ExportOutputType.java b/src/main/java/com/github/freeclimbapi/enums/ExportOutputType.java new file mode 100644 index 00000000..b59df4d4 --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/enums/ExportOutputType.java @@ -0,0 +1,64 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.enums; + +import com.github.freeclimbapi.models.*; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** output type of the export */ +@JsonAdapter(ExportOutputType.Adapter.class) +public enum ExportOutputType { + CSV("csv"); + + private String value; + + ExportOutputType(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ExportOutputType fromValue(String value) { + for (ExportOutputType b : ExportOutputType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ExportOutputType enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ExportOutputType read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ExportOutputType.fromValue(value); + } + } +} diff --git a/src/main/java/com/github/freeclimbapi/enums/ExportResourceType.java b/src/main/java/com/github/freeclimbapi/enums/ExportResourceType.java new file mode 100644 index 00000000..6d24f756 --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/enums/ExportResourceType.java @@ -0,0 +1,66 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.enums; + +import com.github.freeclimbapi.models.*; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** platform resource type */ +@JsonAdapter(ExportResourceType.Adapter.class) +public enum ExportResourceType { + MESSAGES("Messages"), + + CALLS("Calls"); + + private String value; + + ExportResourceType(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ExportResourceType fromValue(String value) { + for (ExportResourceType b : ExportResourceType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ExportResourceType enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ExportResourceType read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ExportResourceType.fromValue(value); + } + } +} diff --git a/src/main/java/com/github/freeclimbapi/enums/ExportStatus.java b/src/main/java/com/github/freeclimbapi/enums/ExportStatus.java new file mode 100644 index 00000000..9fb58f92 --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/enums/ExportStatus.java @@ -0,0 +1,74 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.enums; + +import com.github.freeclimbapi.models.*; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** platform export status */ +@JsonAdapter(ExportStatus.Adapter.class) +public enum ExportStatus { + INTAKING("intaking"), + + QUEUED("queued"), + + IN_PROGRESS("inProgress"), + + COMPLETED("completed"), + + FAILED("failed"), + + DELETED("deleted"); + + private String value; + + ExportStatus(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ExportStatus fromValue(String value) { + for (ExportStatus b : ExportStatus.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ExportStatus enumeration) + throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ExportStatus read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ExportStatus.fromValue(value); + } + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/CallResult.java b/src/main/java/com/github/freeclimbapi/models/CallResult.java index acf3220a..9e289bca 100644 --- a/src/main/java/com/github/freeclimbapi/models/CallResult.java +++ b/src/main/java/com/github/freeclimbapi/models/CallResult.java @@ -77,10 +77,10 @@ public static String getDiscriminatorValue() { @SerializedName(SERIALIZED_NAME_PHONE_NUMBER_ID) private String phoneNumberId; - public static final String SERIALIZED_NAME_CALL_STATUS = "callStatus"; + public static final String SERIALIZED_NAME_STATUS = "status"; - @SerializedName(SERIALIZED_NAME_CALL_STATUS) - private CallStatus callStatus; + @SerializedName(SERIALIZED_NAME_STATUS) + private CallStatus status; public static final String SERIALIZED_NAME_START_TIME = "startTime"; @@ -357,25 +357,25 @@ public void setPhoneNumberId(String phoneNumberId) { this.phoneNumberId = phoneNumberId; } - public CallResult callStatus(CallStatus callStatus) { + public CallResult status(CallStatus status) { - this.callStatus = callStatus; + this.status = status; return this; } /** - * Get callStatus + * Get status * - * @return callStatus + * @return status */ @javax.annotation.Nullable @ApiModelProperty(value = "") - public CallStatus getCallStatus() { - return callStatus; + public CallStatus getStatus() { + return status; } - public void setCallStatus(CallStatus callStatus) { - this.callStatus = callStatus; + public void setStatus(CallStatus status) { + this.status = status; } public CallResult startTime(String startTime) { @@ -612,7 +612,7 @@ public boolean equals(Object o) { && Objects.equals(this.from, callResult.from) && Objects.equals(this.to, callResult.to) && Objects.equals(this.phoneNumberId, callResult.phoneNumberId) - && Objects.equals(this.callStatus, callResult.callStatus) + && Objects.equals(this.status, callResult.status) && Objects.equals(this.startTime, callResult.startTime) && Objects.equals(this.connectTime, callResult.connectTime) && Objects.equals(this.endTime, callResult.endTime) @@ -646,7 +646,7 @@ public int hashCode() { from, to, phoneNumberId, - callStatus, + status, startTime, connectTime, endTime, @@ -679,7 +679,7 @@ public String toString() { sb.append(" from: ").append(toIndentedString(from)).append("\n"); sb.append(" to: ").append(toIndentedString(to)).append("\n"); sb.append(" phoneNumberId: ").append(toIndentedString(phoneNumberId)).append("\n"); - sb.append(" callStatus: ").append(toIndentedString(callStatus)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); sb.append(" connectTime: ").append(toIndentedString(connectTime)).append("\n"); sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); diff --git a/src/main/java/com/github/freeclimbapi/models/CreateConference.java b/src/main/java/com/github/freeclimbapi/models/CreateConference.java index 1304feb2..9a8b8365 100644 --- a/src/main/java/com/github/freeclimbapi/models/CreateConference.java +++ b/src/main/java/com/github/freeclimbapi/models/CreateConference.java @@ -51,7 +51,7 @@ public static String getDiscriminatorValue() { public static final String SERIALIZED_NAME_ALIAS = "alias"; @SerializedName(SERIALIZED_NAME_ALIAS) - private Boolean alias; + private String alias; public static final String SERIALIZED_NAME_PLAY_BEEP = "playBeep"; @@ -73,6 +73,11 @@ public static String getDiscriminatorValue() { @SerializedName(SERIALIZED_NAME_WAIT_URL) private URI waitUrl; + public static final String SERIALIZED_NAME_PARENT_CALL_ID = "parentCallId"; + + @SerializedName(SERIALIZED_NAME_PARENT_CALL_ID) + private String parentCallId; + public CreateConference() { this.command = this.getClass().getSimpleName(); } @@ -104,7 +109,7 @@ public void setActionUrl(URI actionUrl) { this.actionUrl = actionUrl; } - public CreateConference alias(Boolean alias) { + public CreateConference alias(String alias) { this.alias = alias; return this; @@ -117,11 +122,11 @@ public CreateConference alias(Boolean alias) { */ @javax.annotation.Nullable @ApiModelProperty(value = "Descriptive name for the Conference. ") - public Boolean getAlias() { + public String getAlias() { return alias; } - public void setAlias(Boolean alias) { + public void setAlias(String alias) { this.alias = alias; } @@ -228,6 +233,27 @@ public void setWaitUrl(URI waitUrl) { this.waitUrl = waitUrl; } + public CreateConference parentCallId(String parentCallId) { + + this.parentCallId = parentCallId; + return this; + } + + /** + * ID of the Call that created this leg (child call). + * + * @return parentCallId + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "ID of the Call that created this leg (child call).") + public String getParentCallId() { + return parentCallId; + } + + public void setParentCallId(String parentCallId) { + this.parentCallId = parentCallId; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -243,6 +269,7 @@ public boolean equals(Object o) { && Objects.equals(this.record, createConference.record) && Objects.equals(this.statusCallbackUrl, createConference.statusCallbackUrl) && Objects.equals(this.waitUrl, createConference.waitUrl) + && Objects.equals(this.parentCallId, createConference.parentCallId) && super.equals(o); } @@ -258,7 +285,14 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { return Objects.hash( - actionUrl, alias, playBeep, record, statusCallbackUrl, waitUrl, super.hashCode()); + actionUrl, + alias, + playBeep, + record, + statusCallbackUrl, + waitUrl, + parentCallId, + super.hashCode()); } private static int hashCodeNullable(JsonNullable a) { @@ -281,6 +315,7 @@ public String toString() { .append(toIndentedString(statusCallbackUrl)) .append("\n"); sb.append(" waitUrl: ").append(toIndentedString(waitUrl)).append("\n"); + sb.append(" parentCallId: ").append(toIndentedString(parentCallId)).append("\n"); sb.append("}"); return sb.toString(); } @@ -294,6 +329,7 @@ public Map> attributeTypeMap() { attributes.put("record", () -> this.getRecord()); attributes.put("statusCallbackUrl", () -> this.getStatusCallbackUrl()); attributes.put("waitUrl", () -> this.getWaitUrl()); + attributes.put("parentCallId", () -> this.getParentCallId()); return attributes; } diff --git a/src/main/java/com/github/freeclimbapi/models/ExportList.java b/src/main/java/com/github/freeclimbapi/models/ExportList.java new file mode 100644 index 00000000..5ec6abae --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/ExportList.java @@ -0,0 +1,317 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.utils.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import org.openapitools.jackson.nullable.JsonNullable; + +/** ExportList */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ExportList implements Pagination { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_TOTAL = "total"; + + @SerializedName(SERIALIZED_NAME_TOTAL) + private Integer total; + + public static final String SERIALIZED_NAME_START = "start"; + + @SerializedName(SERIALIZED_NAME_START) + private Integer start; + + public static final String SERIALIZED_NAME_END = "end"; + + @SerializedName(SERIALIZED_NAME_END) + private Integer end; + + public static final String SERIALIZED_NAME_PAGE = "page"; + + @SerializedName(SERIALIZED_NAME_PAGE) + private Integer page; + + public static final String SERIALIZED_NAME_NUM_PAGES = "numPages"; + + @SerializedName(SERIALIZED_NAME_NUM_PAGES) + private Integer numPages; + + public static final String SERIALIZED_NAME_PAGE_SIZE = "pageSize"; + + @SerializedName(SERIALIZED_NAME_PAGE_SIZE) + private Integer pageSize; + + public static final String SERIALIZED_NAME_NEXT_PAGE_URI = "nextPageUri"; + + @SerializedName(SERIALIZED_NAME_NEXT_PAGE_URI) + private String nextPageUri; + + public static final String SERIALIZED_NAME_EXPORTS = "exports"; + + @SerializedName(SERIALIZED_NAME_EXPORTS) + private List exports = null; + + public ExportList() {} + + public ExportList total(Integer total) { + + this.total = total; + return this; + } + + /** + * Total amount of requested resource. + * + * @return total + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "Total amount of requested resource.") + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ExportList start(Integer start) { + + this.start = start; + return this; + } + + /** + * Resource index at start of current page + * + * @return start + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "Resource index at start of current page") + public Integer getStart() { + return start; + } + + public void setStart(Integer start) { + this.start = start; + } + + public ExportList end(Integer end) { + + this.end = end; + return this; + } + + /** + * Resource index at end of current page + * + * @return end + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "Resource index at end of current page") + public Integer getEnd() { + return end; + } + + public void setEnd(Integer end) { + this.end = end; + } + + public ExportList page(Integer page) { + + this.page = page; + return this; + } + + /** + * Current page + * + * @return page + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "Current page") + public Integer getPage() { + return page; + } + + public void setPage(Integer page) { + this.page = page; + } + + public ExportList numPages(Integer numPages) { + + this.numPages = numPages; + return this; + } + + /** + * Total number of pages + * + * @return numPages + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "Total number of pages") + public Integer getNumPages() { + return numPages; + } + + public void setNumPages(Integer numPages) { + this.numPages = numPages; + } + + public ExportList pageSize(Integer pageSize) { + + this.pageSize = pageSize; + return this; + } + + /** + * Number of items per page + * + * @return pageSize + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "Number of items per page") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ExportList nextPageUri(String nextPageUri) { + + this.nextPageUri = nextPageUri; + return this; + } + + /** + * Uri to retrieve the next page of items + * + * @return nextPageUri + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "Uri to retrieve the next page of items") + public String getNextPageUri() { + return nextPageUri; + } + + public void setNextPageUri(String nextPageUri) { + this.nextPageUri = nextPageUri; + } + + public ExportList exports(List exports) { + + this.exports = exports; + return this; + } + + public ExportList addExportsItem(ExportResult exportsItem) { + if (this.exports == null) { + this.exports = new ArrayList(); + } + this.exports.add(exportsItem); + return this; + } + + /** + * Get exports + * + * @return exports + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getExports() { + return exports; + } + + public void setExports(List exports) { + this.exports = exports; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExportList exportList = (ExportList) o; + return Objects.equals(this.total, exportList.total) + && Objects.equals(this.start, exportList.start) + && Objects.equals(this.end, exportList.end) + && Objects.equals(this.page, exportList.page) + && Objects.equals(this.numPages, exportList.numPages) + && Objects.equals(this.pageSize, exportList.pageSize) + && Objects.equals(this.nextPageUri, exportList.nextPageUri) + && Objects.equals(this.exports, exportList.exports); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b + || (a != null + && b != null + && a.isPresent() + && b.isPresent() + && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(total, start, end, page, numPages, pageSize, nextPageUri, exports); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[] {a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExportList {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" start: ").append(toIndentedString(start)).append("\n"); + sb.append(" end: ").append(toIndentedString(end)).append("\n"); + sb.append(" page: ").append(toIndentedString(page)).append("\n"); + sb.append(" numPages: ").append(toIndentedString(numPages)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" nextPageUri: ").append(toIndentedString(nextPageUri)).append("\n"); + sb.append(" exports: ").append(toIndentedString(exports)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/ExportRequest.java b/src/main/java/com/github/freeclimbapi/models/ExportRequest.java new file mode 100644 index 00000000..a69e76a0 --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/ExportRequest.java @@ -0,0 +1,186 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** ExportRequest */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ExportRequest { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_RESOURCE_TYPE = "resourceType"; + + @SerializedName(SERIALIZED_NAME_RESOURCE_TYPE) + private ExportResourceType resourceType; + + public static final String SERIALIZED_NAME_FORMAT = "format"; + + @SerializedName(SERIALIZED_NAME_FORMAT) + private List format = null; + + public static final String SERIALIZED_NAME_OUTPUT = "output"; + + @SerializedName(SERIALIZED_NAME_OUTPUT) + private ExportRequestOutput output; + + public static final String SERIALIZED_NAME_QUERY = "query"; + + @SerializedName(SERIALIZED_NAME_QUERY) + private Object query; + + public ExportRequest() {} + + public ExportRequest resourceType(ExportResourceType resourceType) { + + this.resourceType = resourceType; + return this; + } + + /** + * Get resourceType + * + * @return resourceType + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public ExportResourceType getResourceType() { + return resourceType; + } + + public void setResourceType(ExportResourceType resourceType) { + this.resourceType = resourceType; + } + + public ExportRequest format(List format) { + + this.format = format; + return this; + } + + public ExportRequest addFormatItem(String formatItem) { + if (this.format == null) { + this.format = new ArrayList(); + } + this.format.add(formatItem); + return this; + } + + /** + * Get format + * + * @return format + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public List getFormat() { + return format; + } + + public void setFormat(List format) { + this.format = format; + } + + public ExportRequest output(ExportRequestOutput output) { + + this.output = output; + return this; + } + + /** + * Get output + * + * @return output + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public ExportRequestOutput getOutput() { + return output; + } + + public void setOutput(ExportRequestOutput output) { + this.output = output; + } + + public ExportRequest query(Object query) { + + this.query = query; + return this; + } + + /** + * Get query + * + * @return query + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public Object getQuery() { + return query; + } + + public void setQuery(Object query) { + this.query = query; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExportRequest exportRequest = (ExportRequest) o; + return Objects.equals(this.resourceType, exportRequest.resourceType) + && Objects.equals(this.format, exportRequest.format) + && Objects.equals(this.output, exportRequest.output) + && Objects.equals(this.query, exportRequest.query); + } + + @Override + public int hashCode() { + return Objects.hash(resourceType, format, output, query); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExportRequest {\n"); + sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); + sb.append(" format: ").append(toIndentedString(format)).append("\n"); + sb.append(" output: ").append(toIndentedString(output)).append("\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/ExportRequestOutput.java b/src/main/java/com/github/freeclimbapi/models/ExportRequestOutput.java new file mode 100644 index 00000000..f75f99df --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/ExportRequestOutput.java @@ -0,0 +1,92 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.Objects; + +/** ExportRequestOutput */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ExportRequestOutput { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + + @SerializedName(SERIALIZED_NAME_TYPE) + private ExportOutputType type; + + public ExportRequestOutput() {} + + public ExportRequestOutput type(ExportOutputType type) { + + this.type = type; + return this; + } + + /** + * Get type + * + * @return type + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public ExportOutputType getType() { + return type; + } + + public void setType(ExportOutputType type) { + this.type = type; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExportRequestOutput exportRequestOutput = (ExportRequestOutput) o; + return Objects.equals(this.type, exportRequestOutput.type); + } + + @Override + public int hashCode() { + return Objects.hash(type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExportRequestOutput {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/ExportResult.java b/src/main/java/com/github/freeclimbapi/models/ExportResult.java new file mode 100644 index 00000000..60976090 --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/ExportResult.java @@ -0,0 +1,423 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** ExportResult */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ExportResult { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_ACCOUNT_ID = "accountId"; + + @SerializedName(SERIALIZED_NAME_ACCOUNT_ID) + private String accountId; + + public static final String SERIALIZED_NAME_URI = "uri"; + + @SerializedName(SERIALIZED_NAME_URI) + private String uri; + + public static final String SERIALIZED_NAME_DATE_CREATED = "dateCreated"; + + @SerializedName(SERIALIZED_NAME_DATE_CREATED) + private String dateCreated; + + public static final String SERIALIZED_NAME_DATE_UPDATED = "dateUpdated"; + + @SerializedName(SERIALIZED_NAME_DATE_UPDATED) + private String dateUpdated; + + public static final String SERIALIZED_NAME_REVISION = "revision"; + + @SerializedName(SERIALIZED_NAME_REVISION) + private Integer revision; + + public static final String SERIALIZED_NAME_EXPORT_ID = "exportId"; + + @SerializedName(SERIALIZED_NAME_EXPORT_ID) + private String exportId; + + public static final String SERIALIZED_NAME_STATUS = "status"; + + @SerializedName(SERIALIZED_NAME_STATUS) + private ExportStatus status; + + public static final String SERIALIZED_NAME_SIZE = "size"; + + @SerializedName(SERIALIZED_NAME_SIZE) + private Integer size; + + public static final String SERIALIZED_NAME_RESOURCE_TYPE = "resourceType"; + + @SerializedName(SERIALIZED_NAME_RESOURCE_TYPE) + private ExportResourceType resourceType; + + public static final String SERIALIZED_NAME_QUERY = "query"; + + @SerializedName(SERIALIZED_NAME_QUERY) + private Object query; + + public static final String SERIALIZED_NAME_FORMAT = "format"; + + @SerializedName(SERIALIZED_NAME_FORMAT) + private List format = new ArrayList<>(); + + public static final String SERIALIZED_NAME_OUTPUT = "output"; + + @SerializedName(SERIALIZED_NAME_OUTPUT) + private ExportResultOutput output; + + public ExportResult() {} + + public ExportResult accountId(String accountId) { + + this.accountId = accountId; + return this; + } + + /** + * String that uniquely identifies this account resource. + * + * @return accountId + */ + @javax.annotation.Nullable + @ApiModelProperty( + required = true, + value = "String that uniquely identifies this account resource.") + public String getAccountId() { + return accountId; + } + + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + public ExportResult uri(String uri) { + + this.uri = uri; + return this; + } + + /** + * Get uri + * + * @return uri + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public String getUri() { + return uri; + } + + public void setUri(String uri) { + this.uri = uri; + } + + public ExportResult dateCreated(String dateCreated) { + + this.dateCreated = dateCreated; + return this; + } + + /** + * Get dateCreated + * + * @return dateCreated + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public String getDateCreated() { + return dateCreated; + } + + public void setDateCreated(String dateCreated) { + this.dateCreated = dateCreated; + } + + public ExportResult dateUpdated(String dateUpdated) { + + this.dateUpdated = dateUpdated; + return this; + } + + /** + * Get dateUpdated + * + * @return dateUpdated + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public String getDateUpdated() { + return dateUpdated; + } + + public void setDateUpdated(String dateUpdated) { + this.dateUpdated = dateUpdated; + } + + public ExportResult revision(Integer revision) { + + this.revision = revision; + return this; + } + + /** + * Get revision minimum: 0 + * + * @return revision + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public Integer getRevision() { + return revision; + } + + public void setRevision(Integer revision) { + this.revision = revision; + } + + public ExportResult exportId(String exportId) { + + this.exportId = exportId; + return this; + } + + /** + * String that uniquely identifies this export resource + * + * @return exportId + */ + @javax.annotation.Nullable + @ApiModelProperty( + required = true, + value = "String that uniquely identifies this export resource") + public String getExportId() { + return exportId; + } + + public void setExportId(String exportId) { + this.exportId = exportId; + } + + public ExportResult status(ExportStatus status) { + + this.status = status; + return this; + } + + /** + * Get status + * + * @return status + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public ExportStatus getStatus() { + return status; + } + + public void setStatus(ExportStatus status) { + this.status = status; + } + + public ExportResult size(Integer size) { + + this.size = size; + return this; + } + + /** + * Get size + * + * @return size + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public Integer getSize() { + return size; + } + + public void setSize(Integer size) { + this.size = size; + } + + public ExportResult resourceType(ExportResourceType resourceType) { + + this.resourceType = resourceType; + return this; + } + + /** + * Get resourceType + * + * @return resourceType + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public ExportResourceType getResourceType() { + return resourceType; + } + + public void setResourceType(ExportResourceType resourceType) { + this.resourceType = resourceType; + } + + public ExportResult query(Object query) { + + this.query = query; + return this; + } + + /** + * Query params used to filter exported documents + * + * @return query + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Query params used to filter exported documents") + public Object getQuery() { + return query; + } + + public void setQuery(Object query) { + this.query = query; + } + + public ExportResult format(List format) { + + this.format = format; + return this; + } + + public ExportResult addFormatItem(String formatItem) { + this.format.add(formatItem); + return this; + } + + /** + * Desired fields of exported documents + * + * @return format + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Desired fields of exported documents") + public List getFormat() { + return format; + } + + public void setFormat(List format) { + this.format = format; + } + + public ExportResult output(ExportResultOutput output) { + + this.output = output; + return this; + } + + /** + * Get output + * + * @return output + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public ExportResultOutput getOutput() { + return output; + } + + public void setOutput(ExportResultOutput output) { + this.output = output; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExportResult exportResult = (ExportResult) o; + return Objects.equals(this.accountId, exportResult.accountId) + && Objects.equals(this.uri, exportResult.uri) + && Objects.equals(this.dateCreated, exportResult.dateCreated) + && Objects.equals(this.dateUpdated, exportResult.dateUpdated) + && Objects.equals(this.revision, exportResult.revision) + && Objects.equals(this.exportId, exportResult.exportId) + && Objects.equals(this.status, exportResult.status) + && Objects.equals(this.size, exportResult.size) + && Objects.equals(this.resourceType, exportResult.resourceType) + && Objects.equals(this.query, exportResult.query) + && Objects.equals(this.format, exportResult.format) + && Objects.equals(this.output, exportResult.output); + } + + @Override + public int hashCode() { + return Objects.hash( + accountId, + uri, + dateCreated, + dateUpdated, + revision, + exportId, + status, + size, + resourceType, + query, + format, + output); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExportResult {\n"); + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); + sb.append(" dateCreated: ").append(toIndentedString(dateCreated)).append("\n"); + sb.append(" dateUpdated: ").append(toIndentedString(dateUpdated)).append("\n"); + sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); + sb.append(" exportId: ").append(toIndentedString(exportId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append(" format: ").append(toIndentedString(format)).append("\n"); + sb.append(" output: ").append(toIndentedString(output)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/com/github/freeclimbapi/models/ExportResultOutput.java b/src/main/java/com/github/freeclimbapi/models/ExportResultOutput.java new file mode 100644 index 00000000..7e4077c1 --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/ExportResultOutput.java @@ -0,0 +1,92 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi.models; + +import com.github.freeclimbapi.enums.*; +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.Objects; + +/** ExportResultOutput */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ExportResultOutput { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + + @SerializedName(SERIALIZED_NAME_TYPE) + private ExportOutputType type; + + public ExportResultOutput() {} + + public ExportResultOutput type(ExportOutputType type) { + + this.type = type; + return this; + } + + /** + * Get type + * + * @return type + */ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public ExportOutputType getType() { + return type; + } + + public void setType(ExportOutputType type) { + this.type = type; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExportResultOutput exportResultOutput = (ExportResultOutput) o; + return Objects.equals(this.type, exportResultOutput.type); + } + + @Override + public int hashCode() { + return Objects.hash(type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExportResultOutput {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java b/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java index b97ef2e7..a22a5301 100644 --- a/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java +++ b/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java @@ -100,6 +100,21 @@ public void createAnApplicationTest() throws ApiException { assertEquals(response.getClass(), ApplicationResult.class); } + /** + * Create an Export + * + * @throws ApiException if the Api call fails + */ + @Test + public void createExportTest() throws ApiException { + + ExportRequest exportRequest = exportRequestExportRequestTestValue(); + + ExportResult response = this.apiInstance.createExport(exportRequest); + // TODO: test validations + assertEquals(response.getClass(), ExportResult.class); + } + /** * Query the knowledge base * @@ -148,6 +163,21 @@ public void deleteAnApplicationTest() throws ApiException { } + /** + * Delete an Export + * + * @throws ApiException if the Api call fails + */ + @Test + public void deleteAnExportTest() throws ApiException { + + String exportId = exportIdStringTestValue(); + + this.apiInstance.deleteAnExport(exportId); + // TODO: test validations + + } + /** * Delete an Incoming Number * @@ -210,6 +240,21 @@ public void downloadARecordingFileTest() throws ApiException { assertEquals(response.getClass(), File.class); } + /** + * Download an Export + * + * @throws ApiException if the Api call fails + */ + @Test + public void downloadAnExportTest() throws ApiException { + + String exportId = exportIdStringTestValue(); + + String response = this.apiInstance.downloadAnExport(exportId); + // TODO: test validations + assertEquals(response.getClass(), String.class); + } + /** * Filter Logs * @@ -348,6 +393,21 @@ public void getAnApplicationTest() throws ApiException { assertEquals(response.getClass(), ApplicationResult.class); } + /** + * Get an Export + * + * @throws ApiException if the Api call fails + */ + @Test + public void getAnExportTest() throws ApiException { + + String exportId = exportIdStringTestValue(); + + ExportResult response = this.apiInstance.getAnExport(exportId); + // TODO: test validations + assertEquals(response.getClass(), ExportResult.class); + } + /** * Get an Incoming Number * @@ -654,9 +714,22 @@ public void listCallsTest() throws ApiException { List applicationId = applicationIdTestArray(); + Integer riskScoreMin = riskScoreMinIntegerTestValue(); + + Integer riskScoreMax = riskScoreMaxIntegerTestValue(); + CallList response = this.apiInstance.listCalls( - active, to, from, status, startTime, endTime, parentCallId, applicationId); + active, + to, + from, + status, + startTime, + endTime, + parentCallId, + applicationId, + riskScoreMin, + riskScoreMax); // TODO: test validations assertEquals(response.getClass(), CallList.class); } @@ -703,6 +776,23 @@ public void listConferencesTest() throws ApiException { assertEquals(response.getClass(), ConferenceList.class); } + /** + * List Exports + * + * @throws ApiException if the Api call fails + */ + @Test + public void listExportsTest() throws ApiException { + + ExportStatus status = statusExportStatusTestValue(); + + String cursor = cursorStringTestValue(); + + ExportList response = this.apiInstance.listExports(status, cursor); + // TODO: test validations + assertEquals(response.getClass(), ExportList.class); + } + /** * List Incoming Numbers * @@ -1312,9 +1402,22 @@ public void listCallsGetNextPageTest() throws ApiException { List applicationId = applicationIdTestArray(); + Integer riskScoreMin = riskScoreMinIntegerTestValue(); + + Integer riskScoreMax = riskScoreMaxIntegerTestValue(); + CallList response = this.apiInstance.listCalls( - active, to, from, status, startTime, endTime, parentCallId, applicationId); + active, + to, + from, + status, + startTime, + endTime, + parentCallId, + applicationId, + riskScoreMin, + riskScoreMax); String localVarNextPageUri = "/Accounts/{accountId}/Calls".replaceAll("\\{" + "accountId" + "\\}", "MOCK"); response.setNextPageUri(localVarNextPageUri + "?cursor=1"); @@ -1372,6 +1475,26 @@ public void listConferencesGetNextPageTest() throws ApiException { assertEquals(nextPageResponse.getClass(), ConferenceList.class); } + /** + * Get Next Page for List Exports + * + * @throws ApiException if the Api call fails + */ + @Test + public void listExportsGetNextPageTest() throws ApiException { + + ExportStatus status = statusExportStatusTestValue(); + + String cursor = cursorStringTestValue(); + + ExportList response = this.apiInstance.listExports(status, cursor); + String localVarNextPageUri = + "/Accounts/{accountId}/Exports".replaceAll("\\{" + "accountId" + "\\}", "MOCK"); + response.setNextPageUri(localVarNextPageUri + "?cursor=1"); + ExportList nextPageResponse = this.apiInstance.getNextPage(response); + assertEquals(nextPageResponse.getClass(), ExportList.class); + } + /** * Get Next Page for List Incoming Numbers * @@ -1890,4 +2013,41 @@ private URI buildUri(String uriString) { return null; } } + + private ExportRequest exportRequestExportRequestTestValue() { + ExportRequest request = new ExportRequest(); + ExportRequestOutput output = new ExportRequestOutput(); + List format = new ArrayList(); + format.add("id"); + format.add("from"); + format.add("to"); + format.add("text"); + output.setType(ExportOutputType.CSV); + request.setResourceType(ExportResourceType.MESSAGES); + request.setOutput(output); + request.setFormat(format); + request.setQuery(new Object()); + return request; + } + + private String exportIdStringTestValue() { + return "TEST_EXPORT_ID"; + } + + private Integer riskScoreMinIntegerTestValue() { + return 10; + } + + private Integer riskScoreMaxIntegerTestValue() { + return 90; + } + + private String cursorStringTestValue() { + return "TEST_CURSOR_VALUE"; + } + + private ExportStatus statusExportStatusTestValue() { + ExportStatus status = ExportStatus.COMPLETED; + return status; + } } diff --git a/src/test/java/com/github/freeclimbapi/enums/ExportOutputTypeTest.java b/src/test/java/com/github/freeclimbapi/enums/ExportOutputTypeTest.java new file mode 100644 index 00000000..8be47154 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/enums/ExportOutputTypeTest.java @@ -0,0 +1,46 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for ExportOutputType */ +public class ExportOutputTypeTest { + + @Test + public void testCSVShouldWork() { + + ExportOutputType test = ExportOutputType.CSV; + Assert.assertEquals(test.getClass(), ExportOutputType.class); + } + + @Test + public void testCSVShouldSerializeToEnum() { + + ExportOutputType expectedValue = ExportOutputType.CSV; + ExportOutputType calculatedValue = ExportOutputType.fromValue("csv"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testCSVShouldDeserializeToString() { + ExportOutputType test = ExportOutputType.CSV; + String expectedValue = "csv"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } +} diff --git a/src/test/java/com/github/freeclimbapi/enums/ExportResourceTypeTest.java b/src/test/java/com/github/freeclimbapi/enums/ExportResourceTypeTest.java new file mode 100644 index 00000000..04621753 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/enums/ExportResourceTypeTest.java @@ -0,0 +1,69 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for ExportResourceType */ +public class ExportResourceTypeTest { + + @Test + public void testMESSAGESShouldWork() { + + ExportResourceType test = ExportResourceType.MESSAGES; + Assert.assertEquals(test.getClass(), ExportResourceType.class); + } + + @Test + public void testMESSAGESShouldSerializeToEnum() { + + ExportResourceType expectedValue = ExportResourceType.MESSAGES; + ExportResourceType calculatedValue = ExportResourceType.fromValue("Messages"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testMESSAGESShouldDeserializeToString() { + ExportResourceType test = ExportResourceType.MESSAGES; + String expectedValue = "Messages"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testCALLSShouldWork() { + + ExportResourceType test = ExportResourceType.CALLS; + Assert.assertEquals(test.getClass(), ExportResourceType.class); + } + + @Test + public void testCALLSShouldSerializeToEnum() { + + ExportResourceType expectedValue = ExportResourceType.CALLS; + ExportResourceType calculatedValue = ExportResourceType.fromValue("Calls"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testCALLSShouldDeserializeToString() { + ExportResourceType test = ExportResourceType.CALLS; + String expectedValue = "Calls"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } +} diff --git a/src/test/java/com/github/freeclimbapi/enums/ExportStatusTest.java b/src/test/java/com/github/freeclimbapi/enums/ExportStatusTest.java new file mode 100644 index 00000000..ac980889 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/enums/ExportStatusTest.java @@ -0,0 +1,161 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for ExportStatus */ +public class ExportStatusTest { + + @Test + public void testINTAKINGShouldWork() { + + ExportStatus test = ExportStatus.INTAKING; + Assert.assertEquals(test.getClass(), ExportStatus.class); + } + + @Test + public void testINTAKINGShouldSerializeToEnum() { + + ExportStatus expectedValue = ExportStatus.INTAKING; + ExportStatus calculatedValue = ExportStatus.fromValue("intaking"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testINTAKINGShouldDeserializeToString() { + ExportStatus test = ExportStatus.INTAKING; + String expectedValue = "intaking"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testQUEUEDShouldWork() { + + ExportStatus test = ExportStatus.QUEUED; + Assert.assertEquals(test.getClass(), ExportStatus.class); + } + + @Test + public void testQUEUEDShouldSerializeToEnum() { + + ExportStatus expectedValue = ExportStatus.QUEUED; + ExportStatus calculatedValue = ExportStatus.fromValue("queued"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testQUEUEDShouldDeserializeToString() { + ExportStatus test = ExportStatus.QUEUED; + String expectedValue = "queued"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testIN_PROGRESSShouldWork() { + + ExportStatus test = ExportStatus.IN_PROGRESS; + Assert.assertEquals(test.getClass(), ExportStatus.class); + } + + @Test + public void testIN_PROGRESSShouldSerializeToEnum() { + + ExportStatus expectedValue = ExportStatus.IN_PROGRESS; + ExportStatus calculatedValue = ExportStatus.fromValue("inProgress"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testIN_PROGRESSShouldDeserializeToString() { + ExportStatus test = ExportStatus.IN_PROGRESS; + String expectedValue = "inProgress"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testCOMPLETEDShouldWork() { + + ExportStatus test = ExportStatus.COMPLETED; + Assert.assertEquals(test.getClass(), ExportStatus.class); + } + + @Test + public void testCOMPLETEDShouldSerializeToEnum() { + + ExportStatus expectedValue = ExportStatus.COMPLETED; + ExportStatus calculatedValue = ExportStatus.fromValue("completed"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testCOMPLETEDShouldDeserializeToString() { + ExportStatus test = ExportStatus.COMPLETED; + String expectedValue = "completed"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testFAILEDShouldWork() { + + ExportStatus test = ExportStatus.FAILED; + Assert.assertEquals(test.getClass(), ExportStatus.class); + } + + @Test + public void testFAILEDShouldSerializeToEnum() { + + ExportStatus expectedValue = ExportStatus.FAILED; + ExportStatus calculatedValue = ExportStatus.fromValue("failed"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testFAILEDShouldDeserializeToString() { + ExportStatus test = ExportStatus.FAILED; + String expectedValue = "failed"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testDELETEDShouldWork() { + + ExportStatus test = ExportStatus.DELETED; + Assert.assertEquals(test.getClass(), ExportStatus.class); + } + + @Test + public void testDELETEDShouldSerializeToEnum() { + + ExportStatus expectedValue = ExportStatus.DELETED; + ExportStatus calculatedValue = ExportStatus.fromValue("deleted"); + Assert.assertEquals(expectedValue, calculatedValue); + } + + @Test + public void testDELETEDShouldDeserializeToString() { + ExportStatus test = ExportStatus.DELETED; + String expectedValue = "deleted"; + String calculatedValue = test.toString(); + Assert.assertEquals(expectedValue, calculatedValue); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/CallResultTest.java b/src/test/java/com/github/freeclimbapi/models/CallResultTest.java index 22b32ca8..b01f2fbf 100644 --- a/src/test/java/com/github/freeclimbapi/models/CallResultTest.java +++ b/src/test/java/com/github/freeclimbapi/models/CallResultTest.java @@ -103,25 +103,25 @@ public void phoneNumberIdTest() { Assert.assertEquals("TEST_STRING", model.getPhoneNumberId()); } - /** Test the property 'callStatus' */ + /** Test the property 'status' */ @Test - public void callStatusTest() { - model.setCallStatus(CallStatus.QUEUED); - Assert.assertEquals(model.getCallStatus(), CallStatus.QUEUED); - model.setCallStatus(CallStatus.RINGING); - Assert.assertEquals(model.getCallStatus(), CallStatus.RINGING); - model.setCallStatus(CallStatus.IN_PROGRESS); - Assert.assertEquals(model.getCallStatus(), CallStatus.IN_PROGRESS); - model.setCallStatus(CallStatus.CANCELED); - Assert.assertEquals(model.getCallStatus(), CallStatus.CANCELED); - model.setCallStatus(CallStatus.COMPLETED); - Assert.assertEquals(model.getCallStatus(), CallStatus.COMPLETED); - model.setCallStatus(CallStatus.FAILED); - Assert.assertEquals(model.getCallStatus(), CallStatus.FAILED); - model.setCallStatus(CallStatus.BUSY); - Assert.assertEquals(model.getCallStatus(), CallStatus.BUSY); - model.setCallStatus(CallStatus.NO_ANSWER); - Assert.assertEquals(model.getCallStatus(), CallStatus.NO_ANSWER); + public void statusTest() { + model.setStatus(CallStatus.QUEUED); + Assert.assertEquals(model.getStatus(), CallStatus.QUEUED); + model.setStatus(CallStatus.RINGING); + Assert.assertEquals(model.getStatus(), CallStatus.RINGING); + model.setStatus(CallStatus.IN_PROGRESS); + Assert.assertEquals(model.getStatus(), CallStatus.IN_PROGRESS); + model.setStatus(CallStatus.CANCELED); + Assert.assertEquals(model.getStatus(), CallStatus.CANCELED); + model.setStatus(CallStatus.COMPLETED); + Assert.assertEquals(model.getStatus(), CallStatus.COMPLETED); + model.setStatus(CallStatus.FAILED); + Assert.assertEquals(model.getStatus(), CallStatus.FAILED); + model.setStatus(CallStatus.BUSY); + Assert.assertEquals(model.getStatus(), CallStatus.BUSY); + model.setStatus(CallStatus.NO_ANSWER); + Assert.assertEquals(model.getStatus(), CallStatus.NO_ANSWER); } /** Test the property 'startTime' */ @@ -226,7 +226,7 @@ public void equalsTrueTest() { test1.setPhoneNumberId("TS"); - test1.setCallStatus(CallStatus.QUEUED); + test1.setStatus(CallStatus.QUEUED); test1.setStartTime("TS"); @@ -269,7 +269,7 @@ public void equalsTrueTest() { test2.setPhoneNumberId("TS"); - test2.setCallStatus(CallStatus.QUEUED); + test2.setStatus(CallStatus.QUEUED); test2.setStartTime("TS"); @@ -318,7 +318,7 @@ public void equalsFalseTest() { test1.setPhoneNumberId("TS"); - test1.setCallStatus(CallStatus.RINGING); + test1.setStatus(CallStatus.RINGING); test1.setStartTime("TS"); @@ -361,7 +361,7 @@ public void equalsFalseTest() { test2.setPhoneNumberId("TS2"); - test2.setCallStatus(CallStatus.QUEUED); + test2.setStatus(CallStatus.QUEUED); test2.setStartTime("TS2"); @@ -410,7 +410,7 @@ public void hashCodeTypeTest() { test1.setPhoneNumberId("TS"); - test1.setCallStatus(CallStatus.QUEUED); + test1.setStatus(CallStatus.QUEUED); test1.setStartTime("TS"); @@ -460,7 +460,7 @@ public void toStringEqualsTest() { test1.setPhoneNumberId("TS"); - test1.setCallStatus(CallStatus.QUEUED); + test1.setStatus(CallStatus.QUEUED); test1.setStartTime("TS"); @@ -503,7 +503,7 @@ public void toStringEqualsTest() { test2.setPhoneNumberId("TS"); - test2.setCallStatus(CallStatus.QUEUED); + test2.setStatus(CallStatus.QUEUED); test2.setStartTime("TS"); @@ -554,7 +554,7 @@ public void hashCodeEqualsTrueTest() { test1.setPhoneNumberId("TS"); - test1.setCallStatus(CallStatus.QUEUED); + test1.setStatus(CallStatus.QUEUED); test1.setStartTime("TS"); @@ -597,7 +597,7 @@ public void hashCodeEqualsTrueTest() { test2.setPhoneNumberId("TS"); - test2.setCallStatus(CallStatus.QUEUED); + test2.setStatus(CallStatus.QUEUED); test2.setStartTime("TS"); @@ -646,7 +646,7 @@ public void hashCodeEqualsFalseTest() { test1.setPhoneNumberId("TS"); - test1.setCallStatus(CallStatus.RINGING); + test1.setStatus(CallStatus.RINGING); test1.setStartTime("TS"); @@ -689,7 +689,7 @@ public void hashCodeEqualsFalseTest() { test2.setPhoneNumberId("TS2"); - test2.setCallStatus(CallStatus.QUEUED); + test2.setStatus(CallStatus.QUEUED); test2.setStartTime("TS2"); @@ -738,7 +738,7 @@ public void toStringTypeTest() { test1.setPhoneNumberId("TS"); - test1.setCallStatus(CallStatus.QUEUED); + test1.setStatus(CallStatus.QUEUED); test1.setStartTime("TS"); diff --git a/src/test/java/com/github/freeclimbapi/models/CreateConferenceTest.java b/src/test/java/com/github/freeclimbapi/models/CreateConferenceTest.java index 4de82975..bd289a6b 100644 --- a/src/test/java/com/github/freeclimbapi/models/CreateConferenceTest.java +++ b/src/test/java/com/github/freeclimbapi/models/CreateConferenceTest.java @@ -41,8 +41,9 @@ public void actionUrlTest() { /** Test the property 'alias' */ @Test public void aliasTest() { - model.setAlias(false); - Assert.assertEquals(false, model.getAlias()); + + model.setAlias("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getAlias()); } /** Test the property 'playBeep' */ @@ -91,6 +92,14 @@ public void waitUrlTest() { } } + /** Test the property 'parentCallId' */ + @Test + public void parentCallIdTest() { + + model.setParentCallId("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getParentCallId()); + } + /** Test the method 'equalsTrue' */ @Test public void equalsTrueTest() { @@ -104,7 +113,7 @@ public void equalsTrueTest() { } ; - test1.setAlias(true); + test1.setAlias("TS"); test1.setPlayBeep(PlayBeep.ALWAYS); @@ -126,6 +135,8 @@ public void equalsTrueTest() { } ; + test1.setParentCallId("TS"); + CreateConference test2 = new CreateConference(); try { @@ -136,7 +147,7 @@ public void equalsTrueTest() { } ; - test2.setAlias(true); + test2.setAlias("TS"); test2.setPlayBeep(PlayBeep.ALWAYS); @@ -158,6 +169,8 @@ public void equalsTrueTest() { } ; + test2.setParentCallId("TS"); + Assert.assertTrue(test1.equals(test2)); } @@ -174,7 +187,7 @@ public void equalsFalseTest() { } ; - test1.setAlias(true); + test1.setAlias("TS"); test1.setPlayBeep(PlayBeep.NEVER); @@ -196,6 +209,8 @@ public void equalsFalseTest() { } ; + test1.setParentCallId("TS"); + CreateConference test2 = new CreateConference(); try { @@ -206,7 +221,7 @@ public void equalsFalseTest() { } ; - test2.setAlias(false); + test2.setAlias("TS2"); test2.setPlayBeep(PlayBeep.ALWAYS); @@ -228,6 +243,8 @@ public void equalsFalseTest() { } ; + test2.setParentCallId("TS2"); + Assert.assertFalse(test1.equals(test2)); } @@ -244,7 +261,7 @@ public void hashCodeTypeTest() { } ; - test1.setAlias(true); + test1.setAlias("TS"); test1.setPlayBeep(PlayBeep.ALWAYS); @@ -266,6 +283,8 @@ public void hashCodeTypeTest() { } ; + test1.setParentCallId("TS"); + int hashCode1 = test1.hashCode(); Assert.assertTrue(Integer.class.isInstance(hashCode1)); } @@ -283,7 +302,7 @@ public void toStringEqualsTest() { } ; - test1.setAlias(true); + test1.setAlias("TS"); test1.setPlayBeep(PlayBeep.ALWAYS); @@ -305,6 +324,8 @@ public void toStringEqualsTest() { } ; + test1.setParentCallId("TS"); + CreateConference test2 = new CreateConference(); try { @@ -315,7 +336,7 @@ public void toStringEqualsTest() { } ; - test2.setAlias(true); + test2.setAlias("TS"); test2.setPlayBeep(PlayBeep.ALWAYS); @@ -337,6 +358,8 @@ public void toStringEqualsTest() { } ; + test2.setParentCallId("TS"); + String toString1 = test1.toString(); String toString2 = test2.toString(); Assert.assertEquals(toString1, toString2); @@ -355,7 +378,7 @@ public void hashCodeEqualsTrueTest() { } ; - test1.setAlias(true); + test1.setAlias("TS"); test1.setPlayBeep(PlayBeep.ALWAYS); @@ -377,6 +400,8 @@ public void hashCodeEqualsTrueTest() { } ; + test1.setParentCallId("TS"); + CreateConference test2 = new CreateConference(); try { @@ -387,7 +412,7 @@ public void hashCodeEqualsTrueTest() { } ; - test2.setAlias(true); + test2.setAlias("TS"); test2.setPlayBeep(PlayBeep.ALWAYS); @@ -409,6 +434,8 @@ public void hashCodeEqualsTrueTest() { } ; + test2.setParentCallId("TS"); + Assert.assertEquals(test1.hashCode(), test2.hashCode()); } @@ -425,7 +452,7 @@ public void hashCodeEqualsFalseTest() { } ; - test1.setAlias(true); + test1.setAlias("TS"); test1.setPlayBeep(PlayBeep.NEVER); @@ -447,6 +474,8 @@ public void hashCodeEqualsFalseTest() { } ; + test1.setParentCallId("TS"); + CreateConference test2 = new CreateConference(); try { @@ -457,7 +486,7 @@ public void hashCodeEqualsFalseTest() { } ; - test2.setAlias(false); + test2.setAlias("TS2"); test2.setPlayBeep(PlayBeep.ALWAYS); @@ -479,6 +508,8 @@ public void hashCodeEqualsFalseTest() { } ; + test2.setParentCallId("TS2"); + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); } @@ -495,7 +526,7 @@ public void toStringTypeTest() { } ; - test1.setAlias(true); + test1.setAlias("TS"); test1.setPlayBeep(PlayBeep.ALWAYS); @@ -517,6 +548,8 @@ public void toStringTypeTest() { } ; + test1.setParentCallId("TS"); + String toString1 = test1.toString(); Assert.assertTrue(String.class.isInstance(toString1)); } @@ -536,7 +569,10 @@ public void buildTest() throws Exception { } catch (Exception e) { e.printStackTrace(); } - model.setAlias(false); + + model.setAlias("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getAlias()); + model.setRecord(false); try { @@ -554,6 +590,10 @@ public void buildTest() throws Exception { } catch (Exception e) { e.printStackTrace(); } + + model.setParentCallId("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getParentCallId()); + Map> build = model.build(); Map attributes = build.get(model.getCommand()); Assert.assertEquals(attributes.get("actionUrl"), model.getActionUrl()); @@ -562,5 +602,6 @@ public void buildTest() throws Exception { Assert.assertEquals(attributes.get("record"), model.getRecord()); Assert.assertEquals(attributes.get("statusCallbackUrl"), model.getStatusCallbackUrl()); Assert.assertEquals(attributes.get("waitUrl"), model.getWaitUrl()); + Assert.assertEquals(attributes.get("parentCallId"), model.getParentCallId()); } } diff --git a/src/test/java/com/github/freeclimbapi/models/ExportListTest.java b/src/test/java/com/github/freeclimbapi/models/ExportListTest.java new file mode 100644 index 00000000..e66a13d9 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/ExportListTest.java @@ -0,0 +1,347 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for ExportList */ +public class ExportListTest { + + private final ExportList model = new ExportList(); + + /** Test the property 'total' */ + @Test + public void totalTest() { + + model.setTotal(1); + Assert.assertEquals(1, (int) model.getTotal()); + } + + /** Test the property 'start' */ + @Test + public void startTest() { + + model.setStart(1); + Assert.assertEquals(1, (int) model.getStart()); + } + + /** Test the property 'end' */ + @Test + public void endTest() { + + model.setEnd(1); + Assert.assertEquals(1, (int) model.getEnd()); + } + + /** Test the property 'page' */ + @Test + public void pageTest() { + + model.setPage(1); + Assert.assertEquals(1, (int) model.getPage()); + } + + /** Test the property 'numPages' */ + @Test + public void numPagesTest() { + + model.setNumPages(1); + Assert.assertEquals(1, (int) model.getNumPages()); + } + + /** Test the property 'pageSize' */ + @Test + public void pageSizeTest() { + + model.setPageSize(1); + Assert.assertEquals(1, (int) model.getPageSize()); + } + + /** Test the property 'nextPageUri' */ + @Test + public void nextPageUriTest() { + + model.setNextPageUri("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getNextPageUri()); + } + + /** Test the property 'exports' */ + @Test + public void exportsTest() { + + List testList = new ArrayList(); + model.setExports(testList); + Assert.assertEquals(testList, model.getExports()); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + ExportList test1 = new ExportList(); + test1.setTotal(1); + + test1.setStart(1); + + test1.setEnd(1); + + test1.setPage(1); + + test1.setNumPages(1); + + test1.setPageSize(1); + + test1.setNextPageUri("TS"); + + List testList = new ArrayList(); + test1.setExports(testList); + ExportList test2 = new ExportList(); + test2.setTotal(1); + + test2.setStart(1); + + test2.setEnd(1); + + test2.setPage(1); + + test2.setNumPages(1); + + test2.setPageSize(1); + + test2.setNextPageUri("TS"); + + List testList2 = testList; + test2.setExports(testList2); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + ExportList test1 = new ExportList(); + test1.setTotal(1); + + test1.setStart(1); + + test1.setEnd(1); + + test1.setPage(1); + + test1.setNumPages(1); + + test1.setPageSize(1); + + test1.setNextPageUri("TS"); + + List testList = new ArrayList(); + test1.setExports(testList); + ExportList test2 = new ExportList(); + test2.setTotal(0); + + test2.setStart(0); + + test2.setEnd(0); + + test2.setPage(0); + + test2.setNumPages(0); + + test2.setPageSize(0); + + test2.setNextPageUri("TS2"); + + List testList2 = null; + test2.setExports(testList2); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + ExportList test1 = new ExportList(); + test1.setTotal(1); + + test1.setStart(1); + + test1.setEnd(1); + + test1.setPage(1); + + test1.setNumPages(1); + + test1.setPageSize(1); + + test1.setNextPageUri("TS"); + + List testList = new ArrayList(); + test1.setExports(testList); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + ExportList test1 = new ExportList(); + test1.setTotal(1); + + test1.setStart(1); + + test1.setEnd(1); + + test1.setPage(1); + + test1.setNumPages(1); + + test1.setPageSize(1); + + test1.setNextPageUri("TS"); + + List testList = new ArrayList(); + test1.setExports(testList); + ExportList test2 = new ExportList(); + test2.setTotal(1); + + test2.setStart(1); + + test2.setEnd(1); + + test2.setPage(1); + + test2.setNumPages(1); + + test2.setPageSize(1); + + test2.setNextPageUri("TS"); + + List testList2 = testList; + test2.setExports(testList2); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + ExportList test1 = new ExportList(); + test1.setTotal(1); + + test1.setStart(1); + + test1.setEnd(1); + + test1.setPage(1); + + test1.setNumPages(1); + + test1.setPageSize(1); + + test1.setNextPageUri("TS"); + + List testList = new ArrayList(); + test1.setExports(testList); + ExportList test2 = new ExportList(); + test2.setTotal(1); + + test2.setStart(1); + + test2.setEnd(1); + + test2.setPage(1); + + test2.setNumPages(1); + + test2.setPageSize(1); + + test2.setNextPageUri("TS"); + + List testList2 = testList; + test2.setExports(testList2); + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + ExportList test1 = new ExportList(); + test1.setTotal(1); + + test1.setStart(1); + + test1.setEnd(1); + + test1.setPage(1); + + test1.setNumPages(1); + + test1.setPageSize(1); + + test1.setNextPageUri("TS"); + + List testList = new ArrayList(); + test1.setExports(testList); + ExportList test2 = new ExportList(); + test2.setTotal(0); + + test2.setStart(0); + + test2.setEnd(0); + + test2.setPage(0); + + test2.setNumPages(0); + + test2.setPageSize(0); + + test2.setNextPageUri("TS2"); + + List testList2 = null; + test2.setExports(testList2); + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + ExportList test1 = new ExportList(); + test1.setTotal(1); + + test1.setStart(1); + + test1.setEnd(1); + + test1.setPage(1); + + test1.setNumPages(1); + + test1.setPageSize(1); + + test1.setNextPageUri("TS"); + + List testList = new ArrayList(); + test1.setExports(testList); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/ExportRequestOutputTest.java b/src/test/java/com/github/freeclimbapi/models/ExportRequestOutputTest.java new file mode 100644 index 00000000..0352c12e --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/ExportRequestOutputTest.java @@ -0,0 +1,116 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for ExportRequestOutput */ +public class ExportRequestOutputTest { + + private final ExportRequestOutput model = new ExportRequestOutput(); + + /** Test the property 'type' */ + @Test + public void typeTest() { + model.setType(ExportOutputType.CSV); + Assert.assertEquals(model.getType(), ExportOutputType.CSV); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + ExportRequestOutput test1 = new ExportRequestOutput(); + test1.setType(ExportOutputType.CSV); + + ExportRequestOutput test2 = new ExportRequestOutput(); + test2.setType(ExportOutputType.CSV); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + ExportRequestOutput test1 = new ExportRequestOutput(); + + test1.setType(null); + + ExportRequestOutput test2 = new ExportRequestOutput(); + test2.setType(ExportOutputType.CSV); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + ExportRequestOutput test1 = new ExportRequestOutput(); + test1.setType(ExportOutputType.CSV); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + ExportRequestOutput test1 = new ExportRequestOutput(); + test1.setType(ExportOutputType.CSV); + + ExportRequestOutput test2 = new ExportRequestOutput(); + test2.setType(ExportOutputType.CSV); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + ExportRequestOutput test1 = new ExportRequestOutput(); + test1.setType(ExportOutputType.CSV); + + ExportRequestOutput test2 = new ExportRequestOutput(); + test2.setType(ExportOutputType.CSV); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + ExportRequestOutput test1 = new ExportRequestOutput(); + + test1.setType(null); + + ExportRequestOutput test2 = new ExportRequestOutput(); + test2.setType(ExportOutputType.CSV); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + ExportRequestOutput test1 = new ExportRequestOutput(); + test1.setType(ExportOutputType.CSV); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/ExportRequestTest.java b/src/test/java/com/github/freeclimbapi/models/ExportRequestTest.java new file mode 100644 index 00000000..28a1d9b9 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/ExportRequestTest.java @@ -0,0 +1,255 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for ExportRequest */ +public class ExportRequestTest { + + private final ExportRequest model = new ExportRequest(); + + /** Test the property 'resourceType' */ + @Test + public void resourceTypeTest() { + model.setResourceType(ExportResourceType.MESSAGES); + Assert.assertEquals(model.getResourceType(), ExportResourceType.MESSAGES); + model.setResourceType(ExportResourceType.CALLS); + Assert.assertEquals(model.getResourceType(), ExportResourceType.CALLS); + } + + /** Test the property 'format' */ + @Test + public void formatTest() { + + List testList = new ArrayList(); + model.setFormat(testList); + Assert.assertEquals(testList, model.getFormat()); + } + + /** Test the property 'output' */ + @Test + public void outputTest() { + + ExportRequestOutput object = new ExportRequestOutput(); + model.setOutput(object); + Assert.assertEquals(object.getClass(), ExportRequestOutput.class); + } + + /** Test the property 'query' */ + @Test + public void queryTest() { + + Object object = new Object(); + model.setQuery(object); + Assert.assertEquals(object.getClass(), Object.class); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + ExportRequest test1 = new ExportRequest(); + test1.setResourceType(ExportResourceType.MESSAGES); + + List testList = new ArrayList(); + test1.setFormat(testList); + + ExportRequestOutput testExportRequestOutputObject = new ExportRequestOutput(); + test1.setOutput(testExportRequestOutputObject); + + Object testObjectObject = new Object(); + test1.setQuery(testObjectObject); + + ExportRequest test2 = new ExportRequest(); + test2.setResourceType(ExportResourceType.MESSAGES); + + List testList2 = testList; + test2.setFormat(testList2); + + ExportRequestOutput testExportRequestOutputObject2 = testExportRequestOutputObject; + test2.setOutput(testExportRequestOutputObject2); + + Object testObjectObject2 = testObjectObject; + test2.setQuery(testObjectObject2); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + ExportRequest test1 = new ExportRequest(); + + test1.setResourceType(ExportResourceType.CALLS); + + List testList = new ArrayList(); + test1.setFormat(testList); + + ExportRequestOutput testExportRequestOutputObject = new ExportRequestOutput(); + test1.setOutput(testExportRequestOutputObject); + + Object testObjectObject = new Object(); + test1.setQuery(testObjectObject); + + ExportRequest test2 = new ExportRequest(); + test2.setResourceType(ExportResourceType.MESSAGES); + + List testList2 = null; + test2.setFormat(testList2); + + ExportRequestOutput testExportRequestOutputObject2 = new ExportRequestOutput(); + test2.setOutput(testExportRequestOutputObject2); + + Object testObjectObject2 = new Object(); + test2.setQuery(testObjectObject2); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + ExportRequest test1 = new ExportRequest(); + test1.setResourceType(ExportResourceType.MESSAGES); + + List testList = new ArrayList(); + test1.setFormat(testList); + + ExportRequestOutput testExportRequestOutputObject = new ExportRequestOutput(); + test1.setOutput(testExportRequestOutputObject); + + Object testObjectObject = new Object(); + test1.setQuery(testObjectObject); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + ExportRequest test1 = new ExportRequest(); + test1.setResourceType(ExportResourceType.MESSAGES); + + List testList = new ArrayList(); + test1.setFormat(testList); + + ExportRequestOutput testExportRequestOutputObject = new ExportRequestOutput(); + test1.setOutput(testExportRequestOutputObject); + + Object testObjectObject = new Object(); + test1.setQuery(testObjectObject); + + ExportRequest test2 = new ExportRequest(); + test2.setResourceType(ExportResourceType.MESSAGES); + + List testList2 = testList; + test2.setFormat(testList2); + + ExportRequestOutput testExportRequestOutputObject2 = testExportRequestOutputObject; + test2.setOutput(testExportRequestOutputObject2); + + Object testObjectObject2 = testObjectObject; + test2.setQuery(testObjectObject2); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + ExportRequest test1 = new ExportRequest(); + test1.setResourceType(ExportResourceType.MESSAGES); + + List testList = new ArrayList(); + test1.setFormat(testList); + + ExportRequestOutput testExportRequestOutputObject = new ExportRequestOutput(); + test1.setOutput(testExportRequestOutputObject); + + Object testObjectObject = new Object(); + test1.setQuery(testObjectObject); + + ExportRequest test2 = new ExportRequest(); + test2.setResourceType(ExportResourceType.MESSAGES); + + List testList2 = testList; + test2.setFormat(testList2); + + ExportRequestOutput testExportRequestOutputObject2 = testExportRequestOutputObject; + test2.setOutput(testExportRequestOutputObject2); + + Object testObjectObject2 = testObjectObject; + test2.setQuery(testObjectObject2); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + ExportRequest test1 = new ExportRequest(); + + test1.setResourceType(ExportResourceType.CALLS); + + List testList = new ArrayList(); + test1.setFormat(testList); + + ExportRequestOutput testExportRequestOutputObject = new ExportRequestOutput(); + test1.setOutput(testExportRequestOutputObject); + + Object testObjectObject = new Object(); + test1.setQuery(testObjectObject); + + ExportRequest test2 = new ExportRequest(); + test2.setResourceType(ExportResourceType.MESSAGES); + + List testList2 = null; + test2.setFormat(testList2); + + ExportRequestOutput testExportRequestOutputObject2 = new ExportRequestOutput(); + test2.setOutput(testExportRequestOutputObject2); + + Object testObjectObject2 = new Object(); + test2.setQuery(testObjectObject2); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + ExportRequest test1 = new ExportRequest(); + test1.setResourceType(ExportResourceType.MESSAGES); + + List testList = new ArrayList(); + test1.setFormat(testList); + + ExportRequestOutput testExportRequestOutputObject = new ExportRequestOutput(); + test1.setOutput(testExportRequestOutputObject); + + Object testObjectObject = new Object(); + test1.setQuery(testObjectObject); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/ExportResultOutputTest.java b/src/test/java/com/github/freeclimbapi/models/ExportResultOutputTest.java new file mode 100644 index 00000000..4c977b5f --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/ExportResultOutputTest.java @@ -0,0 +1,116 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for ExportResultOutput */ +public class ExportResultOutputTest { + + private final ExportResultOutput model = new ExportResultOutput(); + + /** Test the property 'type' */ + @Test + public void typeTest() { + model.setType(ExportOutputType.CSV); + Assert.assertEquals(model.getType(), ExportOutputType.CSV); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + ExportResultOutput test1 = new ExportResultOutput(); + test1.setType(ExportOutputType.CSV); + + ExportResultOutput test2 = new ExportResultOutput(); + test2.setType(ExportOutputType.CSV); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + ExportResultOutput test1 = new ExportResultOutput(); + + test1.setType(null); + + ExportResultOutput test2 = new ExportResultOutput(); + test2.setType(ExportOutputType.CSV); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + ExportResultOutput test1 = new ExportResultOutput(); + test1.setType(ExportOutputType.CSV); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + ExportResultOutput test1 = new ExportResultOutput(); + test1.setType(ExportOutputType.CSV); + + ExportResultOutput test2 = new ExportResultOutput(); + test2.setType(ExportOutputType.CSV); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + ExportResultOutput test1 = new ExportResultOutput(); + test1.setType(ExportOutputType.CSV); + + ExportResultOutput test2 = new ExportResultOutput(); + test2.setType(ExportOutputType.CSV); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + ExportResultOutput test1 = new ExportResultOutput(); + + test1.setType(null); + + ExportResultOutput test2 = new ExportResultOutput(); + test2.setType(ExportOutputType.CSV); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + ExportResultOutput test1 = new ExportResultOutput(); + test1.setType(ExportOutputType.CSV); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/ExportResultTest.java b/src/test/java/com/github/freeclimbapi/models/ExportResultTest.java new file mode 100644 index 00000000..efa014e9 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/ExportResultTest.java @@ -0,0 +1,530 @@ +/* + * FreeClimb API + * FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@freeclimb.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.github.freeclimbapi; + +import com.github.freeclimbapi.enums.*; +import com.github.freeclimbapi.models.*; +import java.util.*; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Test; + +/** Model tests for ExportResult */ +public class ExportResultTest { + + private final ExportResult model = new ExportResult(); + + /** Test the property 'accountId' */ + @Test + public void accountIdTest() { + + model.setAccountId("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getAccountId()); + } + + /** Test the property 'uri' */ + @Test + public void uriTest() { + + model.setUri("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getUri()); + } + + /** Test the property 'dateCreated' */ + @Test + public void dateCreatedTest() { + + model.setDateCreated("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getDateCreated()); + } + + /** Test the property 'dateUpdated' */ + @Test + public void dateUpdatedTest() { + + model.setDateUpdated("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getDateUpdated()); + } + + /** Test the property 'revision' */ + @Test + public void revisionTest() { + + model.setRevision(1); + Assert.assertEquals(1, (int) model.getRevision()); + } + + /** Test the property 'exportId' */ + @Test + public void exportIdTest() { + + model.setExportId("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getExportId()); + } + + /** Test the property 'status' */ + @Test + public void statusTest() { + model.setStatus(ExportStatus.INTAKING); + Assert.assertEquals(model.getStatus(), ExportStatus.INTAKING); + model.setStatus(ExportStatus.QUEUED); + Assert.assertEquals(model.getStatus(), ExportStatus.QUEUED); + model.setStatus(ExportStatus.IN_PROGRESS); + Assert.assertEquals(model.getStatus(), ExportStatus.IN_PROGRESS); + model.setStatus(ExportStatus.COMPLETED); + Assert.assertEquals(model.getStatus(), ExportStatus.COMPLETED); + model.setStatus(ExportStatus.FAILED); + Assert.assertEquals(model.getStatus(), ExportStatus.FAILED); + model.setStatus(ExportStatus.DELETED); + Assert.assertEquals(model.getStatus(), ExportStatus.DELETED); + } + + /** Test the property 'size' */ + @Test + public void sizeTest() { + + model.setSize(1); + Assert.assertEquals(1, (int) model.getSize()); + } + + /** Test the property 'resourceType' */ + @Test + public void resourceTypeTest() { + model.setResourceType(ExportResourceType.MESSAGES); + Assert.assertEquals(model.getResourceType(), ExportResourceType.MESSAGES); + model.setResourceType(ExportResourceType.CALLS); + Assert.assertEquals(model.getResourceType(), ExportResourceType.CALLS); + } + + /** Test the property 'query' */ + @Test + public void queryTest() { + + Object object = new Object(); + model.setQuery(object); + Assert.assertEquals(object.getClass(), Object.class); + } + + /** Test the property 'format' */ + @Test + public void formatTest() { + + List testList = new ArrayList(); + model.setFormat(testList); + Assert.assertEquals(testList, model.getFormat()); + } + + /** Test the property 'output' */ + @Test + public void outputTest() { + + ExportResultOutput object = new ExportResultOutput(); + model.setOutput(object); + Assert.assertEquals(object.getClass(), ExportResultOutput.class); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + ExportResult test1 = new ExportResult(); + + test1.setAccountId("TS"); + + test1.setUri("TS"); + + test1.setDateCreated("TS"); + + test1.setDateUpdated("TS"); + + test1.setRevision(1); + + test1.setExportId("TS"); + + test1.setStatus(ExportStatus.INTAKING); + + test1.setSize(1); + + test1.setResourceType(ExportResourceType.MESSAGES); + + Object testObjectObject = new Object(); + test1.setQuery(testObjectObject); + + List testList = new ArrayList(); + test1.setFormat(testList); + + ExportResultOutput testExportResultOutputObject = new ExportResultOutput(); + test1.setOutput(testExportResultOutputObject); + + ExportResult test2 = new ExportResult(); + + test2.setAccountId("TS"); + + test2.setUri("TS"); + + test2.setDateCreated("TS"); + + test2.setDateUpdated("TS"); + + test2.setRevision(1); + + test2.setExportId("TS"); + + test2.setStatus(ExportStatus.INTAKING); + + test2.setSize(1); + + test2.setResourceType(ExportResourceType.MESSAGES); + + Object testObjectObject2 = testObjectObject; + test2.setQuery(testObjectObject2); + + List testList2 = testList; + test2.setFormat(testList2); + + ExportResultOutput testExportResultOutputObject2 = testExportResultOutputObject; + test2.setOutput(testExportResultOutputObject2); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + ExportResult test1 = new ExportResult(); + + test1.setAccountId("TS"); + + test1.setUri("TS"); + + test1.setDateCreated("TS"); + + test1.setDateUpdated("TS"); + + test1.setRevision(1); + + test1.setExportId("TS"); + + test1.setStatus(ExportStatus.QUEUED); + + test1.setSize(1); + + test1.setResourceType(ExportResourceType.CALLS); + + Object testObjectObject = new Object(); + test1.setQuery(testObjectObject); + + List testList = new ArrayList(); + test1.setFormat(testList); + + ExportResultOutput testExportResultOutputObject = new ExportResultOutput(); + test1.setOutput(testExportResultOutputObject); + + ExportResult test2 = new ExportResult(); + + test2.setAccountId("TS2"); + + test2.setUri("TS2"); + + test2.setDateCreated("TS2"); + + test2.setDateUpdated("TS2"); + + test2.setRevision(0); + + test2.setExportId("TS2"); + + test2.setStatus(ExportStatus.INTAKING); + + test2.setSize(0); + + test2.setResourceType(ExportResourceType.MESSAGES); + + Object testObjectObject2 = new Object(); + test2.setQuery(testObjectObject2); + + List testList2 = null; + test2.setFormat(testList2); + + ExportResultOutput testExportResultOutputObject2 = new ExportResultOutput(); + test2.setOutput(testExportResultOutputObject2); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + ExportResult test1 = new ExportResult(); + + test1.setAccountId("TS"); + + test1.setUri("TS"); + + test1.setDateCreated("TS"); + + test1.setDateUpdated("TS"); + + test1.setRevision(1); + + test1.setExportId("TS"); + + test1.setStatus(ExportStatus.INTAKING); + + test1.setSize(1); + + test1.setResourceType(ExportResourceType.MESSAGES); + + Object testObjectObject = new Object(); + test1.setQuery(testObjectObject); + + List testList = new ArrayList(); + test1.setFormat(testList); + + ExportResultOutput testExportResultOutputObject = new ExportResultOutput(); + test1.setOutput(testExportResultOutputObject); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + ExportResult test1 = new ExportResult(); + + test1.setAccountId("TS"); + + test1.setUri("TS"); + + test1.setDateCreated("TS"); + + test1.setDateUpdated("TS"); + + test1.setRevision(1); + + test1.setExportId("TS"); + + test1.setStatus(ExportStatus.INTAKING); + + test1.setSize(1); + + test1.setResourceType(ExportResourceType.MESSAGES); + + Object testObjectObject = new Object(); + test1.setQuery(testObjectObject); + + List testList = new ArrayList(); + test1.setFormat(testList); + + ExportResultOutput testExportResultOutputObject = new ExportResultOutput(); + test1.setOutput(testExportResultOutputObject); + + ExportResult test2 = new ExportResult(); + + test2.setAccountId("TS"); + + test2.setUri("TS"); + + test2.setDateCreated("TS"); + + test2.setDateUpdated("TS"); + + test2.setRevision(1); + + test2.setExportId("TS"); + + test2.setStatus(ExportStatus.INTAKING); + + test2.setSize(1); + + test2.setResourceType(ExportResourceType.MESSAGES); + + Object testObjectObject2 = testObjectObject; + test2.setQuery(testObjectObject2); + + List testList2 = testList; + test2.setFormat(testList2); + + ExportResultOutput testExportResultOutputObject2 = testExportResultOutputObject; + test2.setOutput(testExportResultOutputObject2); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + ExportResult test1 = new ExportResult(); + + test1.setAccountId("TS"); + + test1.setUri("TS"); + + test1.setDateCreated("TS"); + + test1.setDateUpdated("TS"); + + test1.setRevision(1); + + test1.setExportId("TS"); + + test1.setStatus(ExportStatus.INTAKING); + + test1.setSize(1); + + test1.setResourceType(ExportResourceType.MESSAGES); + + Object testObjectObject = new Object(); + test1.setQuery(testObjectObject); + + List testList = new ArrayList(); + test1.setFormat(testList); + + ExportResultOutput testExportResultOutputObject = new ExportResultOutput(); + test1.setOutput(testExportResultOutputObject); + + ExportResult test2 = new ExportResult(); + + test2.setAccountId("TS"); + + test2.setUri("TS"); + + test2.setDateCreated("TS"); + + test2.setDateUpdated("TS"); + + test2.setRevision(1); + + test2.setExportId("TS"); + + test2.setStatus(ExportStatus.INTAKING); + + test2.setSize(1); + + test2.setResourceType(ExportResourceType.MESSAGES); + + Object testObjectObject2 = testObjectObject; + test2.setQuery(testObjectObject2); + + List testList2 = testList; + test2.setFormat(testList2); + + ExportResultOutput testExportResultOutputObject2 = testExportResultOutputObject; + test2.setOutput(testExportResultOutputObject2); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + ExportResult test1 = new ExportResult(); + + test1.setAccountId("TS"); + + test1.setUri("TS"); + + test1.setDateCreated("TS"); + + test1.setDateUpdated("TS"); + + test1.setRevision(1); + + test1.setExportId("TS"); + + test1.setStatus(ExportStatus.QUEUED); + + test1.setSize(1); + + test1.setResourceType(ExportResourceType.CALLS); + + Object testObjectObject = new Object(); + test1.setQuery(testObjectObject); + + List testList = new ArrayList(); + test1.setFormat(testList); + + ExportResultOutput testExportResultOutputObject = new ExportResultOutput(); + test1.setOutput(testExportResultOutputObject); + + ExportResult test2 = new ExportResult(); + + test2.setAccountId("TS2"); + + test2.setUri("TS2"); + + test2.setDateCreated("TS2"); + + test2.setDateUpdated("TS2"); + + test2.setRevision(0); + + test2.setExportId("TS2"); + + test2.setStatus(ExportStatus.INTAKING); + + test2.setSize(0); + + test2.setResourceType(ExportResourceType.MESSAGES); + + Object testObjectObject2 = new Object(); + test2.setQuery(testObjectObject2); + + List testList2 = null; + test2.setFormat(testList2); + + ExportResultOutput testExportResultOutputObject2 = new ExportResultOutput(); + test2.setOutput(testExportResultOutputObject2); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + ExportResult test1 = new ExportResult(); + + test1.setAccountId("TS"); + + test1.setUri("TS"); + + test1.setDateCreated("TS"); + + test1.setDateUpdated("TS"); + + test1.setRevision(1); + + test1.setExportId("TS"); + + test1.setStatus(ExportStatus.INTAKING); + + test1.setSize(1); + + test1.setResourceType(ExportResourceType.MESSAGES); + + Object testObjectObject = new Object(); + test1.setQuery(testObjectObject); + + List testList = new ArrayList(); + test1.setFormat(testList); + + ExportResultOutput testExportResultOutputObject = new ExportResultOutput(); + test1.setOutput(testExportResultOutputObject); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/UpdateCallRequestTest.java b/src/test/java/com/github/freeclimbapi/models/UpdateCallRequestTest.java index a26bf3e2..022f9196 100644 --- a/src/test/java/com/github/freeclimbapi/models/UpdateCallRequestTest.java +++ b/src/test/java/com/github/freeclimbapi/models/UpdateCallRequestTest.java @@ -48,6 +48,7 @@ public void equalsTrueTest() { @Test public void equalsFalseTest() { UpdateCallRequest test1 = new UpdateCallRequest(); + test1.setStatus(UpdateCallRequestStatus.COMPLETED); UpdateCallRequest test2 = new UpdateCallRequest(); @@ -96,6 +97,7 @@ public void hashCodeEqualsTrueTest() { @Test public void hashCodeEqualsFalseTest() { UpdateCallRequest test1 = new UpdateCallRequest(); + test1.setStatus(UpdateCallRequestStatus.COMPLETED); UpdateCallRequest test2 = new UpdateCallRequest(); diff --git a/yarn.lock b/yarn.lock index 962ed376..8c15a9eb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -17,22 +17,12 @@ resolved "https://registry.yarnpkg.com/@jsdevtools/ono/-/ono-7.1.3.tgz#9df03bbd7c696a5c58885c34aa06da41c8543796" integrity sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg== -"@jsep-plugin/assignment@^1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@jsep-plugin/assignment/-/assignment-1.2.1.tgz#07277bdd7862451a865d391e2142efba33f46c9b" - integrity sha512-gaHqbubTi29aZpVbBlECRpmdia+L5/lh2BwtIJTmtxdbecEyyX/ejAOg7eQDGNvGOUmPY7Z2Yxdy9ioyH/VJeA== - -"@jsep-plugin/assignment@^1.3.0": +"@jsep-plugin/assignment@^1.2.1", "@jsep-plugin/assignment@^1.3.0": version "1.3.0" resolved "https://registry.yarnpkg.com/@jsep-plugin/assignment/-/assignment-1.3.0.tgz#fcfc5417a04933f7ceee786e8ab498aa3ce2b242" integrity sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ== -"@jsep-plugin/regex@^1.0.3": - version "1.0.3" - resolved "https://registry.yarnpkg.com/@jsep-plugin/regex/-/regex-1.0.3.tgz#3aeaa2e5fa45d89de116aeafbfa41c95935b7f6d" - integrity sha512-XfZgry4DwEZvSFtS/6Y+R48D7qJYJK6R9/yJFyUFHCIUMEEHuJ4X95TDgJp5QkmzfLYvapMPzskV5HpIDrREug== - -"@jsep-plugin/regex@^1.0.4": +"@jsep-plugin/regex@^1.0.3", "@jsep-plugin/regex@^1.0.4": version "1.0.4" resolved "https://registry.yarnpkg.com/@jsep-plugin/regex/-/regex-1.0.4.tgz#cb2fc423220fa71c609323b9ba7f7d344a755fcc" integrity sha512-q7qL4Mgjs1vByCaTnDFcBnV9HS7GVPJX5vyVoCgZHNSC9rjwIlmbXG5sUuorR5ndfHAIlJ8pVStxvjXHbNvtUg== @@ -96,7 +86,7 @@ "@types/json-schema" "^7.0.7" json-pointer "^0.6.1" -"@stoplight/json@3.20.0", "@stoplight/json@^3.18.1": +"@stoplight/json@3.20.0", "@stoplight/json@3.21.7", "@stoplight/json@^3.18.1": version "3.20.0" resolved "https://registry.yarnpkg.com/@stoplight/json/-/json-3.20.0.tgz#3acd893c6ed3394ac0a32b383038bd9710a167f9" integrity sha512-xR5nnO2HSy7hGzchUAv1/p7V94EXwHmpbm5ORim4BQm8w/u1sF2ttIYqDx8BesTLWTybRxLysyDH+QHjpQnQdw== @@ -155,12 +145,12 @@ tslib "^2.3.1" "@stoplight/prism-http-server@^5.6.0": - version "5.8.3" - resolved "https://registry.yarnpkg.com/@stoplight/prism-http-server/-/prism-http-server-5.8.3.tgz#da4185778e83d18d72d4c2f287865276823fac17" - integrity sha512-7SOBjccS+czl9F2eKxY1Y3bjFefq+1aX2PdSHC5+HcZ2oupffRKMA0gIL2/lsvgcPGBO0HJvl6WXPLnRJ3q2yw== + version "5.12.2" + resolved "https://registry.yarnpkg.com/@stoplight/prism-http-server/-/prism-http-server-5.12.2.tgz#d8de94f6b3506b464a5c89ff049b1e0fc9822ef9" + integrity sha512-h7MpOuv/WPvf4MhQmXw3CygAZp64Ts0SOM4BdoafcgAOJZyvRAOjUNJeelGJsHYdPK0aB9NZsqsaKBtNfkYj+A== dependencies: "@stoplight/prism-core" "^5.8.0" - "@stoplight/prism-http" "^5.8.3" + "@stoplight/prism-http" "^5.12.0" "@stoplight/types" "^14.1.0" fast-xml-parser "^4.2.0" fp-ts "^2.11.5" @@ -172,14 +162,14 @@ tslib "^2.3.1" type-is "^1.6.18" -"@stoplight/prism-http@^5.6.0", "@stoplight/prism-http@^5.8.3": - version "5.8.3" - resolved "https://registry.yarnpkg.com/@stoplight/prism-http/-/prism-http-5.8.3.tgz#a0d10faf5bb375587fde9e58523b7a47b2340a47" - integrity sha512-v58g0d4zhLbGiKkXSIE4ineYkIK8IZ/FT3im2Sg78hhp69TkF9bZc8+XdVYPLZxt1jkLDcm2SepM/InDtaK0xA== +"@stoplight/prism-http@^5.12.0", "@stoplight/prism-http@^5.6.0": + version "5.12.0" + resolved "https://registry.yarnpkg.com/@stoplight/prism-http/-/prism-http-5.12.0.tgz#b763292c5044e9213b558cbc44e5a2187cfffea4" + integrity sha512-H+B/SO4SgQ6DT3CHIDCMQFGOe48Yecj0Eu+6rXwrs5m1JFyA2nlDwz+r73QJLGQanN4Biod2s0V9pZRcs2JnPA== dependencies: "@faker-js/faker" "^6.0.0" "@stoplight/http-spec" "^7.0.3" - "@stoplight/json" "^3.18.1" + "@stoplight/json" "3.21.7" "@stoplight/json-schema-merge-allof" "0.7.8" "@stoplight/json-schema-ref-parser" "9.2.7" "@stoplight/json-schema-sampler" "0.3.0" @@ -196,11 +186,12 @@ fp-ts "^2.11.5" http-proxy-agent "^5.0.0" https-proxy-agent "^5.0.0" - json-schema-faker "0.5.3" + json-schema-faker "0.5.8" lodash "^4.17.21" node-fetch "^2.6.5" parse-multipart-data "^1.5.0" pino "^6.13.3" + seedrandom "^3.0.5" tslib "^2.3.1" type-is "^1.6.18" uri-template-lite "^22.9.0" @@ -261,11 +252,11 @@ integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== "@types/node@*": - version "20.14.11" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.11.tgz#09b300423343460455043ddd4d0ded6ac579b74b" - integrity sha512-kprQpL8MMeszbz6ojB5/tU8PLN4kesnN8Gjzw349rDlNgsSzg90lAVj3llK99Dh7JON+t9AuscPPFW6mPbTnSA== + version "24.5.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-24.5.2.tgz#52ceb83f50fe0fcfdfbd2a9fab6db2e9e7ef6446" + integrity sha512-FYxk1I7wPv3K2XBaoyH2cTnocQEu8AOZ60hPbsyukMPLv5/5qr7V1i8PLHdl6Zf87I+xZXFvPCXYjiTFq+YSDQ== dependencies: - undici-types "~5.26.4" + undici-types "~7.12.0" "@types/swagger-schema-official@~2.0.22": version "2.0.25" @@ -273,9 +264,9 @@ integrity sha512-T92Xav+Gf/Ik1uPW581nA+JftmjWPgskw/WBf4TJzxRG/SJ+DfNnNE+WuZ4mrXuzflQMqMkm1LSYjzYW7MB1Cg== "@types/type-is@^1.6.3": - version "1.6.6" - resolved "https://registry.yarnpkg.com/@types/type-is/-/type-is-1.6.6.tgz#0adeafa0d6879f0ce17c81228d487270e8b80d7d" - integrity sha512-fs1KHv/f9OvmTMsu4sBNaUu32oyda9Y9uK25naJG8gayxNrfqGIjPQsbLIYyfe7xFkppnPlJB+BuTldOaX9bXw== + version "1.6.7" + resolved "https://registry.yarnpkg.com/@types/type-is/-/type-is-1.6.7.tgz#4d7934d2c795749800e767cd9af7ffbd4f16cf1c" + integrity sha512-gEsh7n8824nusZ2Sidh6POxNsIdTSvIAl5gXbeFj+TUaD1CO2r4i7MQYNMfEQkChU42s2bVWAda6x6BzIhtFbQ== dependencies: "@types/node" "*" @@ -477,18 +468,18 @@ content-type@^1.0.4: integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== cross-fetch@^3.1.5: - version "3.1.8" - resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.1.8.tgz#0327eba65fd68a7d119f8fb2bf9334a1a7956f82" - integrity sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg== + version "3.2.0" + resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.2.0.tgz#34e9192f53bc757d6614304d9e5e6fb4edb782e3" + integrity sha512-Q+xVJLoGOeIMXZmbUK4HYk+69cQH6LudR0Vu/pRm2YlU/hDV9CiS0gKUMaWY5f2NeUH9C1nV3bsTlCo0FsTV1Q== dependencies: - node-fetch "^2.6.12" + node-fetch "^2.7.0" debug@4: - version "4.3.5" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.5.tgz#e83444eceb9fedd4a1da56d671ae2446a01a6e1e" - integrity sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg== + version "4.4.3" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.3.tgz#c6ae432d9bd9662582fce08709b038c58e9e3d6a" + integrity sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA== dependencies: - ms "2.1.2" + ms "^2.1.3" emoji-regex@^8.0.0: version "8.0.0" @@ -496,16 +487,16 @@ emoji-regex@^8.0.0: integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== error-ex@^1.3.1: - version "1.3.2" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" - integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== + version "1.3.4" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.4.tgz#b3a8d8bb6f92eecc1629e3e27d3c8607a8a32414" + integrity sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ== dependencies: is-arrayish "^0.2.1" escalade@^3.1.1: - version "3.1.2" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27" - integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA== + version "3.2.0" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" + integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== escape-string-regexp@^1.0.5: version "1.0.5" @@ -533,9 +524,9 @@ fast-safe-stringify@^2.0.8: integrity sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA== fast-uri@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.0.1.tgz#cddd2eecfc83a71c1be2cc2ef2061331be8a7134" - integrity sha512-MWipKbbYiYI0UC7cl8m/i/IWTqfC8YXsqjzybjddLsFjStroQzsHXkc73JutMvBiXmOvapk+axIl79ig5t55Bw== + version "3.1.0" + resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.1.0.tgz#66eecff6c764c0df9b762e62ca7edcfb53b4edfa" + integrity sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA== fast-xml-parser@^4.2.0, fast-xml-parser@^4.5.0: version "4.5.0" @@ -596,9 +587,9 @@ format-util@^1.0.3: integrity sha512-varLbTj0e0yVyRpqQhuWV+8hlePAgaoFRhNFj50BNjEIrw1/DphHSObtqwskVCPWNgzwPoQrZAbfa/SBiicNeg== fp-ts@^2.11.5: - version "2.16.8" - resolved "https://registry.yarnpkg.com/fp-ts/-/fp-ts-2.16.8.tgz#dfa1ea1c967ac6794c43ce877aeb8ed76f5e0df7" - integrity sha512-nmDtNqmMZkOxu0M5hkrS9YA15/KPkYkILb6Axg9XBAoUoYEtzg+LFmVWqZrl9FNttsW0qIUpx9RCA9INbv+Bxw== + version "2.16.11" + resolved "https://registry.yarnpkg.com/fp-ts/-/fp-ts-2.16.11.tgz#831a10514bf4e22adf12065732fc5a20c85d9623" + integrity sha512-LaI+KaX2NFkfn1ZGHoKCmcfv7yrZsC3b8NtWsTVQeHkq4F27vI5igUuO53sxqDEa2gNQMHFPmpojDw/1zmUK7w== fsevents@~2.3.2: version "2.3.3" @@ -672,9 +663,9 @@ inherits@^2.0.3: integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== io-ts@^2.2.16: - version "2.2.21" - resolved "https://registry.yarnpkg.com/io-ts/-/io-ts-2.2.21.tgz#4ef754176f7082a1099d04c7d5c4ea53267c530a" - integrity sha512-zz2Z69v9ZIC3mMLYWIeoUcwWD6f+O7yP92FMVVaXEOSZH1jnVBmET/urd/uoarD1WGBY4rCj8TAyMPzsGNzMFQ== + version "2.2.22" + resolved "https://registry.yarnpkg.com/io-ts/-/io-ts-2.2.22.tgz#5ab0d3636fe8494a275f0266461ab019da4b8d0b" + integrity sha512-FHCCztTkHoV9mdBsHpocLpdTAfh956ZQcIkWQxxS0U5HT53vtrcuYdQneEJKH6xILaLNzXVl2Cvwtoy8XNN0AA== is-arrayish@^0.2.1: version "0.2.1" @@ -726,12 +717,7 @@ js-yaml@^3.12.1: argparse "^1.0.7" esprima "^4.0.0" -jsep@^1.3.9: - version "1.3.9" - resolved "https://registry.yarnpkg.com/jsep/-/jsep-1.3.9.tgz#8ce42df80ee9c1b39e52d0dd062a465342f35440" - integrity sha512-i1rBX5N7VPl0eYb6+mHNp52sEuaS2Wi8CDYx1X5sn9naevL78+265XJqy1qENEk7mRKwS06NHpUqiBwR7qeodw== - -jsep@^1.4.0: +jsep@^1.3.9, jsep@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/jsep/-/jsep-1.4.0.tgz#19feccbfa51d8a79f72480b4b8e40ce2e17152f0" integrity sha512-B7qPcEVE3NVkmSJbaYxvv4cHkVW7DQsZz13pUMrfS8z8Q/BuShN+gcTXrUlPiGqM2/t/EEaI030bpxMqY8gMlw== @@ -770,6 +756,14 @@ json-schema-faker@0.5.3: json-schema-ref-parser "^6.1.0" jsonpath-plus "^7.2.0" +json-schema-faker@0.5.8: + version "0.5.8" + resolved "https://registry.yarnpkg.com/json-schema-faker/-/json-schema-faker-0.5.8.tgz#13e8b53fef4d86de5c5d164763c80427da892b0c" + integrity sha512-sqzPEbEDlpiH8U1tfmJHScXHy52onvMxITPsHyhe/jhS83g8TX6ruvRqt/ot1bXUPRsh7Ps1sWqJiBxIXmW5Xw== + dependencies: + json-schema-ref-parser "^6.1.0" + jsonpath-plus "^10.1.0" + json-schema-ref-parser@^6.1.0: version "6.1.0" resolved "https://registry.yarnpkg.com/json-schema-ref-parser/-/json-schema-ref-parser-6.1.0.tgz#30af34aeab5bee0431da805dac0eb21b574bf63d" @@ -789,7 +783,7 @@ jsonc-parser@~2.2.1: resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-2.2.1.tgz#db73cd59d78cce28723199466b2a03d1be1df2bc" integrity sha512-o6/yDBYccGvTz1+QFevz6l6OBZ2+fMVu2JZ9CIhzsYRX4mjaK5IyX9eldUdCmga16zlgQxyrj5pt9kzuj2C02w== -jsonpath-plus@^10.0.0, jsonpath-plus@^7.2.0: +jsonpath-plus@^10.0.0, jsonpath-plus@^10.1.0, jsonpath-plus@^7.2.0: version "10.0.1" resolved "https://registry.yarnpkg.com/jsonpath-plus/-/jsonpath-plus-10.0.1.tgz#a61f4dc6c7489955af0872b0956cc42fbbacb5ab" integrity sha512-30DeH2QD4nL1IpDLPIFz09G5XyLvh+oNMUI2Zxf4tbrlsVHs0e3VPnwpOnSTFb4yM0dfQK2WGKLsSaAS8V62rw== @@ -840,13 +834,6 @@ lodash@4.17.21, lodash@^4.17.21, lodash@^4.17.4: resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== -lru-cache@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" - integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== - dependencies: - yallist "^4.0.0" - media-typer@0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" @@ -895,10 +882,10 @@ mkdirp@0.5.x: dependencies: minimist "^1.2.6" -ms@2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== +ms@^2.1.3: + version "2.1.3" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== negotiator@0.6.3: version "0.6.3" @@ -910,7 +897,7 @@ node-abort-controller@^3.0.1: resolved "https://registry.yarnpkg.com/node-abort-controller/-/node-abort-controller-3.1.1.tgz#a94377e964a9a37ac3976d848cb5c765833b8548" integrity sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ== -node-fetch@^2.6.1, node-fetch@^2.6.12, node-fetch@^2.6.5: +node-fetch@^2.6.1, node-fetch@^2.6.5, node-fetch@^2.7.0: version "2.7.0" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d" integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A== @@ -1017,9 +1004,9 @@ pkg-conf@^2.1.0: load-json-file "^4.0.0" postman-collection@^4.1.3: - version "4.4.0" - resolved "https://registry.yarnpkg.com/postman-collection/-/postman-collection-4.4.0.tgz#6acb6e3796fcd9f6ac5a94e6894185e42387d7da" - integrity sha512-2BGDFcUwlK08CqZFUlIC8kwRJueVzPjZnnokWPtJCd9f2J06HBQpGL7t2P1Ud1NEsK9NHq9wdipUhWLOPj5s/Q== + version "4.5.0" + resolved "https://registry.yarnpkg.com/postman-collection/-/postman-collection-4.5.0.tgz#cc485d67f2177d6f4c5c5f4bc75c257efd23f221" + integrity sha512-152JSW9pdbaoJihwjc7Q8lc3nPg/PC9lPTHdMk7SHnHhu/GBJB7b2yb9zG7Qua578+3PxkQ/HYBuXpDSvsf7GQ== dependencies: "@faker-js/faker" "5.5.3" file-type "3.9.0" @@ -1030,7 +1017,7 @@ postman-collection@^4.1.3: mime-format "2.0.1" mime-types "2.1.35" postman-url-encoder "3.0.5" - semver "7.5.4" + semver "7.6.3" uuid "8.3.2" postman-url-encoder@3.0.5: @@ -1101,12 +1088,15 @@ safe-stable-stringify@^1.1: resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== -semver@7.5.4: - version "7.5.4" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" - integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA== - dependencies: - lru-cache "^6.0.0" +seedrandom@^3.0.5: + version "3.0.5" + resolved "https://registry.yarnpkg.com/seedrandom/-/seedrandom-3.0.5.tgz#54edc85c95222525b0c7a6f6b3543d8e0b3aa0a7" + integrity sha512-8OwmbklUNzwezjGInmZ+2clQmExQPvomqjL7LFqOYqtmuxRgQYqOD3mHaU+MvZn5FLUeVxVfQjwLZW/n/JFuqg== + +semver@7.6.3: + version "7.6.3" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" + integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== signale@^1.4.0: version "1.4.0" @@ -1166,9 +1156,9 @@ strip-bom@^3.0.0: integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA== strnum@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/strnum/-/strnum-1.0.5.tgz#5c4e829fe15ad4ff0d20c3db5ac97b73c9b072db" - integrity sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA== + version "1.1.2" + resolved "https://registry.yarnpkg.com/strnum/-/strnum-1.1.2.tgz#57bca4fbaa6f271081715dbc9ed7cee5493e28e4" + integrity sha512-vrN+B7DBIoTTZjnPNewwhx6cBA/H+IS7rfW68n7XxC1y7uoiGQBxaKzqucGUgavX15dJgiGztLJ8vxuEzwqBdA== supports-color@^5.3.0: version "5.5.0" @@ -1197,9 +1187,9 @@ tr46@~0.0.3: integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== tslib@^2.2.0, tslib@^2.3.1, tslib@^2.6.2: - version "2.6.3" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.3.tgz#0438f810ad7a9edcde7a241c3d80db693c8cbfe0" - integrity sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ== + version "2.8.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.8.1.tgz#612efe4ed235d567e8aba5f2a5fab70280ade83f" + integrity sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w== type-is@^1.6.18: version "1.6.18" @@ -1209,10 +1199,10 @@ type-is@^1.6.18: media-typer "0.3.0" mime-types "~2.1.24" -undici-types@~5.26.4: - version "5.26.5" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" - integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== +undici-types@~7.12.0: + version "7.12.0" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.12.0.tgz#15c5c7475c2a3ba30659529f5cdb4674b622fafb" + integrity sha512-goOacqME2GYyOZZfb5Lgtu+1IDmAlAEu5xnD3+xTzS10hT0vzpf0SPjkXwAw9Jm+4n/mQGDP3LO8CPbYROeBfQ== uri-template-lite@^22.9.0: version "22.9.0" @@ -1306,11 +1296,6 @@ y18n@^5.0.5: resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== -yallist@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" - integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== - yaml@^1.10.2: version "1.10.2" resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b"