diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 2ee06e4..37a1eff 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -27,6 +27,7 @@ docs/CallDirection.md docs/CallEndedReason.md docs/CallList.md docs/CallResult.md +docs/CallResultAllOfSubresourceUris.md docs/CallStatus.md docs/CallStatusWebhook.md docs/Capabilities.md @@ -198,6 +199,7 @@ src/main/java/com/github/freeclimbapi/CallDirection.java src/main/java/com/github/freeclimbapi/CallEndedReason.java src/main/java/com/github/freeclimbapi/CallList.java src/main/java/com/github/freeclimbapi/CallResult.java +src/main/java/com/github/freeclimbapi/CallResultAllOfSubresourceUris.java src/main/java/com/github/freeclimbapi/CallStatus.java src/main/java/com/github/freeclimbapi/CallStatusWebhook.java src/main/java/com/github/freeclimbapi/Capabilities.java @@ -367,6 +369,7 @@ src/test/java/com/github/freeclimbapi/CallControlWebhookTest.java src/test/java/com/github/freeclimbapi/CallDirectionTest.java src/test/java/com/github/freeclimbapi/CallEndedReasonTest.java src/test/java/com/github/freeclimbapi/CallListTest.java +src/test/java/com/github/freeclimbapi/CallResultAllOfSubresourceUrisTest.java src/test/java/com/github/freeclimbapi/CallResultTest.java src/test/java/com/github/freeclimbapi/CallStatusTest.java src/test/java/com/github/freeclimbapi/CallStatusWebhookTest.java diff --git a/CHANGELOG.md b/CHANGELOG.md index 7de68cc..bb85a3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,15 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm None + + +## [6.3.1] - 2026-03-04 + +### Added + +- New parameters for fetching recordings (start time and end time) +- Audio Streaming feature + ## [6.3.0] - 2025-10-21 diff --git a/README.md b/README.md index c67f818..a96e713 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.3.0 + 6.3.1 compile ``` @@ -56,7 +56,9 @@ Add this dependency to your project's build file: } dependencies { - implementation "com.github.freeclimbapi:freeclimb-java-client:6.3.0" + implementation "com.github.freeclimbapi:freeclimb-java-client:6.3.1" + implementation("com.squareup.okhttp3:okhttp:4.9.3") + implementation("com.squareup.okhttp3:logging-interceptor:4.9.3") } ``` @@ -70,7 +72,7 @@ mvn clean package Then manually install the following JARs: -* `target/freeclimb-java-client-6.3.0.jar` +* `target/freeclimb-java-client-6.3.1.jar` * `target/lib/*.jar` ## Getting Started @@ -93,7 +95,7 @@ public class Example { // Configure API client ApiClient defaultClient = Configuration.getDefaultApiClient(); defaultClient.setBasePath("https://www.freeclimb.com/apiserver"); - defaultClient.setAccountId("YOUR_ACCOUNT_ID"); + defaultClient.setAccountId("AC0123456789abcdefABCDEF0123456789abcdef00"); defaultClient.setApiKey("YOUR_API_KEY"); DefaultApi apiInstance = new DefaultApi(defaultClient); @@ -235,6 +237,7 @@ Class | Method | HTTP request | Description - [CallEndedReason](docs/CallEndedReason.md) - [CallList](docs/CallList.md) - [CallResult](docs/CallResult.md) + - [CallResultAllOfSubresourceUris](docs/CallResultAllOfSubresourceUris.md) - [CallStatus](docs/CallStatus.md) - [CallStatusWebhook](docs/CallStatusWebhook.md) - [Capabilities](docs/Capabilities.md) diff --git a/build.gradle b/build.gradle index cb6f3c4..ddc6cea 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.3.0' +version = '6.3.1' buildscript { repositories { @@ -154,7 +154,7 @@ spotless { // don't need to set target, it is inferred from java // apply a specific flavor of google-java-format - googleJavaFormat('1.19.2').aosp().reflowLongStrings() + googleJavaFormat('1.24.0').aosp().reflowLongStrings() removeUnusedImports() importOrder() diff --git a/build.sbt b/build.sbt index a74d244..6f12298 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.3.0", + version := "6.3.1", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/docs/AvailableNumber.md b/docs/AvailableNumber.md index 7b8e584..8cd356f 100644 --- a/docs/AvailableNumber.md +++ b/docs/AvailableNumber.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **capabilities** | [**Capabilities**](Capabilities.md) | | [optional] **campaignId** | **String** | The campaign ID generated by the campaign registry | [optional] **phoneNumber** | **String** | The phone number, in E.164 format (+ country code and phone number: +18003608245). | [optional] +**alias** | **String** | A nicely-formatted version of the phone number. | [optional] **region** | **String** | The state or province of this phone number. | [optional] **country** | **String** | The country of this phone number. | [optional] diff --git a/docs/CallResult.md b/docs/CallResult.md index 7e21965..5907fe0 100644 --- a/docs/CallResult.md +++ b/docs/CallResult.md @@ -11,6 +11,8 @@ Name | Type | Description | Notes **dateCreated** | **String** | The date that this resource was created (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). | [optional] **dateUpdated** | **String** | The date that this resource was last updated (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). | [optional] **revision** | **Integer** | Revision count for the resource. This count is set to 1 on creation and is incremented every time it is updated. | [optional] +**dateCreatedISO** | **OffsetDateTime** | The date that this resource was created in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z). | [optional] +**dateUpdatedISO** | **OffsetDateTime** | The date that this resource was last updated in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z). | [optional] **callId** | **String** | String that uniquely identifies this Call resource. | [optional] **parentCallId** | **String** | ID of the Call that created this leg (child Call). | [optional] **accountId** | **String** | ID of the account that owns this Call. | [optional] @@ -19,13 +21,19 @@ Name | Type | Description | Notes **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] **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] +**startTimeISO** | **OffsetDateTime** | Start time of the Call in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z). 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] +**connectTimeISO** | **OffsetDateTime** | Time the Call was answered in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z). 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] +**endTimeISO** | **OffsetDateTime** | End time of the Call in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z). Empty if the Call did not complete successfully. | [optional] **duration** | **Integer** | Total length of the Call in seconds. Measures time between startTime and endTime. This value is empty for busy, failed, unanswered or ongoing Calls. | [optional] **connectDuration** | **Integer** | Length of time that the Call was connected in seconds. Measures time between connectTime and endTime. This value is empty for busy, failed, unanswered or ongoing Calls. | [optional] +**audioStreamDuration** | **Integer** | Length of time that the Call used the audio stream in seconds. This value is empty or zero when the Call did not use the audio stream. | [optional] **direction** | **CallDirection** | | [optional] **answeredBy** | **AnsweredBy** | | [optional] -**subresourceUris** | **Object** | The list of subresources for this Call. These include things like logs and recordings associated with the Call. | [optional] +**callerName** | **String** | The caller ID name (CNAM) for this Call. Empty if unavailable. | [optional] +**webRTC** | **Boolean** | Indicates whether this Call was initiated via WebRTC. | [optional] +**subresourceUris** | [**CallResultAllOfSubresourceUris**](CallResultAllOfSubresourceUris.md) | | [optional] **applicationId** | **String** | ApplicationId associated with the Call. | [optional] diff --git a/docs/CallResultAllOfSubresourceUris.md b/docs/CallResultAllOfSubresourceUris.md new file mode 100644 index 0000000..209cf19 --- /dev/null +++ b/docs/CallResultAllOfSubresourceUris.md @@ -0,0 +1,15 @@ + + +# CallResultAllOfSubresourceUris + +The list of subresources for this Call. These include things like logs and recordings associated with the Call. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logs** | **String** | The URI for the logs associated with this Call. | [optional] +**recordings** | **String** | The URI for the recordings associated with this Call. | [optional] + + + diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index c890004..7cb9f7e 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -273,7 +273,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Successfuly created queue | - | +**201** | Successfuly created queue | - | # **createAnApplication** @@ -3094,7 +3094,7 @@ Name | Type | Description | Notes # **listCallRecordings** -> RecordingList listCallRecordings(callId, dateCreated) +> RecordingList listCallRecordings(callId, dateCreated, startTime, endTime) List Call Recordings @@ -3123,8 +3123,12 @@ public class Example { String dateCreated = "dateCreated_example"; // String | Only show recordings created on the specified date, in the form *YYYY-MM-DD*. + String startTime = "startTime_example"; // String | Only show Recordings created at or after this time, given as YYYY-MM-DD hh:mm:ss. + + String endTime = "endTime_example"; // String | Only show Recordings created at or before this time, given as YYYY-MM-DD hh:mm:ss. + try { - RecordingList result = apiInstance.listCallRecordings(callId, dateCreated); + RecordingList result = apiInstance.listCallRecordings(callId, dateCreated, startTime, endTime); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DefaultApi#listCallRecordings"); @@ -3143,6 +3147,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **callId** | **String**| String that uniquely identifies this call resource. | **dateCreated** | **String**| Only show recordings created on the specified date, in the form *YYYY-MM-DD*. | [optional] + **startTime** | **String**| Only show Recordings created at or after this time, given as YYYY-MM-DD hh:mm:ss. | [optional] + **endTime** | **String**| Only show Recordings created at or before this time, given as YYYY-MM-DD hh:mm:ss. | [optional] ### Return type @@ -3165,7 +3171,7 @@ Name | Type | Description | Notes # **listCalls** -> CallList listCalls(active, to, from, status, startTime, endTime, parentCallId, applicationId, riskScoreMin, riskScoreMax) +> CallList listCalls(usedAudioStream, active, to, from, status, startTime, endTime, parentCallId, applicationId, riskScoreMin, riskScoreMax, webRTC) List Calls @@ -3190,6 +3196,8 @@ public class Example { DefaultApi apiInstance = new DefaultApi(defaultClient); + Boolean usedAudioStream = false; // Boolean | If usedAudioStream is set to true then all calls that have a audioStreamDuration > 0 will be returned + Boolean active = false; // Boolean | If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. String to = "to_example"; // String | Only show Calls to this phone number. @@ -3208,8 +3216,10 @@ public class Example { Integer riskScoreMax = 56; // Integer | The maximum riskScore that should be included in the list. + Boolean webRTC = false; // Boolean | Only show Calls that were originated via WebRTC. + try { - CallList result = apiInstance.listCalls(active, to, from, status, startTime, endTime, parentCallId, applicationId, riskScoreMin, riskScoreMax); + CallList result = apiInstance.listCalls(usedAudioStream, active, to, from, status, startTime, endTime, parentCallId, applicationId, riskScoreMin, riskScoreMax, webRTC); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DefaultApi#listCalls"); @@ -3226,6 +3236,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **usedAudioStream** | **Boolean**| If usedAudioStream is set to true then all calls that have a audioStreamDuration > 0 will be returned | [optional] [default to false] **active** | **Boolean**| If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. | [optional] [default to false] **to** | **String**| Only show Calls to this phone number. | [optional] **from** | **String**| Only show Calls from this phone number. | [optional] @@ -3236,6 +3247,7 @@ Name | Type | Description | Notes **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] + **webRTC** | **Boolean**| Only show Calls that were originated via WebRTC. | [optional] [default to false] ### Return type @@ -3258,7 +3270,7 @@ Name | Type | Description | Notes # **listConferenceRecordings** -> RecordingList listConferenceRecordings(conferenceId, callId, dateCreated) +> RecordingList listConferenceRecordings(conferenceId, callId, dateCreated, startTime, endTime) List Conference Recordings @@ -3289,8 +3301,12 @@ public class Example { String dateCreated = "dateCreated_example"; // String | Only show Recordings created on this date, formatted as *YYYY-MM-DD*. + String startTime = "startTime_example"; // String | Only show Recordings created at or after this time, given as YYYY-MM-DD hh:mm:ss. + + String endTime = "endTime_example"; // String | Only show Recordings created at or before this time, given as YYYY-MM-DD hh:mm:ss. + try { - RecordingList result = apiInstance.listConferenceRecordings(conferenceId, callId, dateCreated); + RecordingList result = apiInstance.listConferenceRecordings(conferenceId, callId, dateCreated, startTime, endTime); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DefaultApi#listConferenceRecordings"); @@ -3310,6 +3326,8 @@ Name | Type | Description | Notes **conferenceId** | **String**| Show only Recordings made during the conference with this ID. | **callId** | **String**| Show only Recordings made during the Call with this ID. | [optional] **dateCreated** | **String**| Only show Recordings created on this date, formatted as *YYYY-MM-DD*. | [optional] + **startTime** | **String**| Only show Recordings created at or after this time, given as YYYY-MM-DD hh:mm:ss. | [optional] + **endTime** | **String**| Only show Recordings created at or before this time, given as YYYY-MM-DD hh:mm:ss. | [optional] ### Return type @@ -3731,7 +3749,7 @@ Name | Type | Description | Notes # **listRecordings** -> RecordingList listRecordings(callId, conferenceId, dateCreated) +> RecordingList listRecordings(callId, conferenceId, dateCreated, startTime, endTime) List Recordings @@ -3762,8 +3780,12 @@ public class Example { String dateCreated = "dateCreated_example"; // String | Only show Recordings created on this date, formatted as *YYYY-MM-DD*. + String startTime = "startTime_example"; // String | Only show Recordings created at or after this time, given as YYYY-MM-DD hh:mm:ss. + + String endTime = "endTime_example"; // String | Only show Recordings created at or before this time, given as YYYY-MM-DD hh:mm:ss. + try { - RecordingList result = apiInstance.listRecordings(callId, conferenceId, dateCreated); + RecordingList result = apiInstance.listRecordings(callId, conferenceId, dateCreated, startTime, endTime); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DefaultApi#listRecordings"); @@ -3783,6 +3805,8 @@ Name | Type | Description | Notes **callId** | **String**| Show only Recordings made during the Call with this ID. | [optional] **conferenceId** | **String**| Show only Recordings made during the conference with this ID. | [optional] **dateCreated** | **String**| Only show Recordings created on this date, formatted as *YYYY-MM-DD*. | [optional] + **startTime** | **String**| Only show Recordings created at or after this time, given as YYYY-MM-DD hh:mm:ss. | [optional] + **endTime** | **String**| Only show Recordings created at or before this time, given as YYYY-MM-DD hh:mm:ss. | [optional] ### Return type diff --git a/docs/QueueResult.md b/docs/QueueResult.md index 8bfde50..50dfc3a 100644 --- a/docs/QueueResult.md +++ b/docs/QueueResult.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **maxSize** | **Integer** | The maximum number of Calls permitted in the Queue. Default is 100. Maximum is 1000. | [optional] **currentSize** | **Integer** | Count of Calls currently in the Queue. | [optional] **averageQueueRemovalTime** | **Integer** | The average amount of time (in seconds) for a call to be removed from the queue. | [optional] +**averageWaitTime** | **Integer** | The average wait time (in seconds) of all Calls in the Queue. | [optional] **subresourceUris** | **Object** | List of subresources for this Queue (which includes Queue members). | [optional] diff --git a/openapi.json b/openapi.json index d89e37c..c759411 100644 --- a/openapi.json +++ b/openapi.json @@ -2935,6 +2935,11 @@ "description": "The phone number, in E.164 format (+ country code and phone number: +18003608245).", "nullable": true }, + "alias": { + "type": "string", + "description": "A nicely-formatted version of the phone number.", + "nullable": true + }, "voiceEnabled": { "type": "boolean", "description": "Typically set to true for all numbers.", @@ -3109,6 +3114,21 @@ } } }, + "CallResultAllOfSubresourceUris": { + "type": "object", + "description": "The list of subresources for this Call. These include things like logs and recordings associated with the Call.", + "nullable": true, + "properties": { + "logs": { + "type": "string", + "description": "The URI for the logs associated with this Call." + }, + "recordings": { + "type": "string", + "description": "The URI for the recordings associated with this Call." + } + } + }, "CallResult": { "allOf": [ { @@ -3117,6 +3137,18 @@ { "type": "object", "properties": { + "dateCreatedISO": { + "type": "string", + "format": "date-time", + "description": "The date that this resource was created in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z).", + "nullable": true + }, + "dateUpdatedISO": { + "type": "string", + "format": "date-time", + "description": "The date that this resource was last updated in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z).", + "nullable": true + }, "callId": { "type": "string", "description": "String that uniquely identifies this Call resource.", @@ -3155,16 +3187,34 @@ "description": "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.", "nullable": true }, + "startTimeISO": { + "type": "string", + "format": "date-time", + "description": "Start time of the Call in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z). Empty if the Call has not yet been dialed.", + "nullable": true + }, "connectTime": { "type": "string", "description": "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.", "nullable": true }, + "connectTimeISO": { + "type": "string", + "format": "date-time", + "description": "Time the Call was answered in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z). Empty if the Call has not yet been dialed.", + "nullable": true + }, "endTime": { "type": "string", "description": "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.", "nullable": true }, + "endTimeISO": { + "type": "string", + "format": "date-time", + "description": "End time of the Call in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z). Empty if the Call did not complete successfully.", + "nullable": true + }, "duration": { "type": "integer", "description": "Total length of the Call in seconds. Measures time between startTime and endTime. This value is empty for busy, failed, unanswered or ongoing Calls.", @@ -3175,17 +3225,30 @@ "description": "Length of time that the Call was connected in seconds. Measures time between connectTime and endTime. This value is empty for busy, failed, unanswered or ongoing Calls.", "nullable": true }, + "audioStreamDuration": { + "type": "integer", + "description": "Length of time that the Call used the audio stream in seconds. This value is empty or zero when the Call did not use the audio stream.", + "nullable": true + }, "direction": { "$ref": "#/components/schemas/CallDirection" }, "answeredBy": { "$ref": "#/components/schemas/AnsweredBy" }, - "subresourceUris": { - "type": "object", - "description": "The list of subresources for this Call. These include things like logs and recordings associated with the Call.", + "callerName": { + "type": "string", + "description": "The caller ID name (CNAM) for this Call. Empty if unavailable.", "nullable": true }, + "webRTC": { + "type": "boolean", + "description": "Indicates whether this Call was initiated via WebRTC.", + "nullable": true + }, + "subresourceUris": { + "$ref": "#/components/schemas/CallResultAllOfSubresourceUris" + }, "applicationId": { "type": "string", "description": "ApplicationId associated with the Call.", @@ -3853,6 +3916,11 @@ "description": "The average amount of time (in seconds) for a call to be removed from the queue.", "nullable": true }, + "averageWaitTime": { + "type": "integer", + "description": "The average wait time (in seconds) of all Calls in the Queue.", + "nullable": true + }, "subresourceUris": { "type": "object", "description": "List of subresources for this Queue (which includes Queue members).", @@ -6003,6 +6071,16 @@ "summary": "List Calls", "operationId": "list-calls", "parameters": [ + { + "name": "usedAudioStream", + "in": "query", + "description": "If usedAudioStream is set to true then all calls that have a audioStreamDuration > 0 will be returned ", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + }, { "name": "active", "in": "query", @@ -6102,6 +6180,16 @@ "schema": { "type": "integer" } + }, + { + "name": "webRTC", + "in": "query", + "description": "Only show Calls that were originated via WebRTC.", + "required": false, + "schema": { + "type": "boolean", + "default": false + } } ], "deprecated": false, @@ -6145,6 +6233,24 @@ "schema": { "type": "string" } + }, + { + "name": "startTime", + "in": "query", + "description": "Only show Recordings created at or after this time, given as YYYY-MM-DD hh:mm:ss.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "endTime", + "in": "query", + "description": "Only show Recordings created at or before this time, given as YYYY-MM-DD hh:mm:ss.", + "required": false, + "schema": { + "type": "string" + } } ], "deprecated": false, @@ -6619,6 +6725,24 @@ "schema": { "type": "string" } + }, + { + "name": "startTime", + "in": "query", + "description": "Only show Recordings created at or after this time, given as YYYY-MM-DD hh:mm:ss.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "endTime", + "in": "query", + "description": "Only show Recordings created at or before this time, given as YYYY-MM-DD hh:mm:ss.", + "required": false, + "schema": { + "type": "string" + } } ], "responses": { @@ -6766,7 +6890,7 @@ }, "deprecated": false, "responses": { - "200": { + "201": { "description": "Successfuly created queue", "content": { "application/json": { @@ -7057,6 +7181,24 @@ }, { "$ref": "#/components/parameters/AccountId" + }, + { + "name": "startTime", + "in": "query", + "description": "Only show Recordings created at or after this time, given as YYYY-MM-DD hh:mm:ss.", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "endTime", + "in": "query", + "description": "Only show Recordings created at or before this time, given as YYYY-MM-DD hh:mm:ss.", + "required": false, + "schema": { + "type": "string" + } } ], "responses": { diff --git a/package.json b/package.json index f06550a..036ebec 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,7 @@ { "dependencies": { - "@stoplight/prism-cli": "5.6.0", + "@stoplight/prism-cli": "5.14.2", + "fast-xml-parser": "^5.3.8", "jsonpath-plus": "^10.3.0" - }, - "resolutions": { - "@stoplight/json": "3.20.0", - "jsonpath-plus": "^10.0.0", - "fast-xml-parser": "^4.5.0" } } diff --git a/pom.xml b/pom.xml index 48cb645..92729f7 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ freeclimb-java-client jar freeclimb-java-client - 6.3.0 + 6.3.1 https://github.com/freeclimbapi/java-sdk FreeClimb Java Client @@ -16,8 +16,8 @@ - MIT - https://mit-license.org/ + Unlicense + http://unlicense.org repo @@ -209,7 +209,7 @@ - 1.19.2 + 1.34.0 true @@ -343,6 +343,6 @@ 20231013 4.13.2 UTF-8 - 2.43.0 + 3.2.1 diff --git a/src/main/java/com/github/freeclimbapi/ApiClient.java b/src/main/java/com/github/freeclimbapi/ApiClient.java index fbcc5fb..a9295ac 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.3.0/java"); + setUserAgent("OpenAPI-Generator/6.3.1/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 fca75d1..06d4c68 100644 --- a/src/main/java/com/github/freeclimbapi/DefaultApi.java +++ b/src/main/java/com/github/freeclimbapi/DefaultApi.java @@ -381,7 +381,7 @@ public okhttp3.Call createAConferenceAsync( * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Successfuly created queue -
201 Successfuly created queue -
*/ public okhttp3.Call createAQueueCall(QueueRequest queueRequest, final ApiCallback _callback) @@ -463,7 +463,7 @@ private okhttp3.Call createAQueueValidateBeforeCall( * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Successfuly created queue -
201 Successfuly created queue -
*/ public QueueResult createAQueue(QueueRequest queueRequest) throws ApiException { @@ -481,7 +481,7 @@ public QueueResult createAQueue(QueueRequest queueRequest) throws ApiException { * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Successfuly created queue -
201 Successfuly created queue -
*/ public ApiResponse createAQueueWithHttpInfo(QueueRequest queueRequest) @@ -502,7 +502,7 @@ public ApiResponse createAQueueWithHttpInfo(QueueRequest queueReque * @http.response.details * * - * + * *
Status Code Description Response Headers
200 Successfuly created queue -
201 Successfuly created queue -
*/ public okhttp3.Call createAQueueAsync( @@ -7046,6 +7046,10 @@ public okhttp3.Call listCallLogsAsync(String callId, final ApiCallback * @param callId String that uniquely identifies this call resource. (required) * @param dateCreated Only show recordings created on the specified date, in the form * *YYYY-MM-DD*. (optional) + * @param startTime Only show Recordings created at or after this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) + * @param endTime Only show Recordings created at or before this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7056,7 +7060,12 @@ public okhttp3.Call listCallLogsAsync(String callId, final ApiCallback * */ public okhttp3.Call listCallRecordingsCall( - String callId, String dateCreated, final ApiCallback _callback) throws ApiException { + String callId, + String dateCreated, + String startTime, + String endTime, + final ApiCallback _callback) + throws ApiException { String basePath = null; // Operation Servers @@ -7094,6 +7103,14 @@ public okhttp3.Call listCallRecordingsCall( localVarApiClient.parameterToPair("dateCreated", dateCreated)); } + if (startTime != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); + } + + if (endTime != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); + } + final String[] localVarAccepts = {"application/json"}; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7127,7 +7144,12 @@ public okhttp3.Call listCallRecordingsCall( @SuppressWarnings("rawtypes") private okhttp3.Call listCallRecordingsValidateBeforeCall( - String callId, String dateCreated, final ApiCallback _callback) throws ApiException { + String callId, + String dateCreated, + String startTime, + String endTime, + final ApiCallback _callback) + throws ApiException { // verify the required parameter 'callId' is set if (callId == null) { @@ -7136,7 +7158,8 @@ private okhttp3.Call listCallRecordingsValidateBeforeCall( + " listCallRecordings(Async)"); } - okhttp3.Call localVarCall = listCallRecordingsCall(callId, dateCreated, _callback); + okhttp3.Call localVarCall = + listCallRecordingsCall(callId, dateCreated, startTime, endTime, _callback); return localVarCall; } @@ -7146,6 +7169,10 @@ private okhttp3.Call listCallRecordingsValidateBeforeCall( * @param callId String that uniquely identifies this call resource. (required) * @param dateCreated Only show recordings created on the specified date, in the form * *YYYY-MM-DD*. (optional) + * @param startTime Only show Recordings created at or after this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) + * @param endTime Only show Recordings created at or before this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) * @return RecordingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -7155,9 +7182,11 @@ private okhttp3.Call listCallRecordingsValidateBeforeCall( * 200 List of recordings for a call - * */ - public RecordingList listCallRecordings(String callId, String dateCreated) throws ApiException { + public RecordingList listCallRecordings( + String callId, String dateCreated, String startTime, String endTime) + throws ApiException { ApiResponse localVarResp = - listCallRecordingsWithHttpInfo(callId, dateCreated); + listCallRecordingsWithHttpInfo(callId, dateCreated, startTime, endTime); return localVarResp.getData(); } @@ -7167,6 +7196,10 @@ public RecordingList listCallRecordings(String callId, String dateCreated) throw * @param callId String that uniquely identifies this call resource. (required) * @param dateCreated Only show recordings created on the specified date, in the form * *YYYY-MM-DD*. (optional) + * @param startTime Only show Recordings created at or after this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) + * @param endTime Only show Recordings created at or before this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) * @return ApiResponse<RecordingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -7177,8 +7210,10 @@ public RecordingList listCallRecordings(String callId, String dateCreated) throw * */ public ApiResponse listCallRecordingsWithHttpInfo( - String callId, String dateCreated) throws ApiException { - okhttp3.Call localVarCall = listCallRecordingsValidateBeforeCall(callId, dateCreated, null); + String callId, String dateCreated, String startTime, String endTime) + throws ApiException { + okhttp3.Call localVarCall = + listCallRecordingsValidateBeforeCall(callId, dateCreated, startTime, endTime, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -7189,6 +7224,10 @@ public ApiResponse listCallRecordingsWithHttpInfo( * @param callId String that uniquely identifies this call resource. (required) * @param dateCreated Only show recordings created on the specified date, in the form * *YYYY-MM-DD*. (optional) + * @param startTime Only show Recordings created at or after this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) + * @param endTime Only show Recordings created at or before this time, given as YYYY-MM-DD + * hh:mm:ss. (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 @@ -7200,11 +7239,16 @@ public ApiResponse listCallRecordingsWithHttpInfo( * */ public okhttp3.Call listCallRecordingsAsync( - String callId, String dateCreated, final ApiCallback _callback) + String callId, + String dateCreated, + String startTime, + String endTime, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = - listCallRecordingsValidateBeforeCall(callId, dateCreated, _callback); + listCallRecordingsValidateBeforeCall( + callId, dateCreated, startTime, endTime, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -7213,6 +7257,8 @@ public okhttp3.Call listCallRecordingsAsync( /** * Build call for listCalls * + * @param usedAudioStream If usedAudioStream is set to true then all calls that have a + * audioStreamDuration > 0 will be returned (optional, default to false) * @param active If active is set to true then all calls of the nature queued, ringing, * inProgress are returned in the query. (optional, default to false) * @param to Only show Calls to this phone number. (optional) @@ -7229,6 +7275,7 @@ public okhttp3.Call listCallRecordingsAsync( * 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 webRTC Only show Calls that were originated via WebRTC. (optional, default to false) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7239,6 +7286,7 @@ public okhttp3.Call listCallRecordingsAsync( * */ public okhttp3.Call listCallsCall( + Boolean usedAudioStream, Boolean active, String to, String from, @@ -7249,6 +7297,7 @@ public okhttp3.Call listCallsCall( List applicationId, Integer riskScoreMin, Integer riskScoreMax, + Boolean webRTC, final ApiCallback _callback) throws ApiException { String basePath = null; @@ -7280,6 +7329,11 @@ public okhttp3.Call listCallsCall( Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (usedAudioStream != null) { + localVarQueryParams.addAll( + localVarApiClient.parameterToPair("usedAudioStream", usedAudioStream)); + } + if (active != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("active", active)); } @@ -7324,6 +7378,10 @@ public okhttp3.Call listCallsCall( localVarApiClient.parameterToPair("riskScoreMax", riskScoreMax)); } + if (webRTC != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("webRTC", webRTC)); + } + final String[] localVarAccepts = {"application/json"}; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7357,6 +7415,7 @@ public okhttp3.Call listCallsCall( @SuppressWarnings("rawtypes") private okhttp3.Call listCallsValidateBeforeCall( + Boolean usedAudioStream, Boolean active, String to, String from, @@ -7367,11 +7426,13 @@ private okhttp3.Call listCallsValidateBeforeCall( List applicationId, Integer riskScoreMin, Integer riskScoreMax, + Boolean webRTC, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCallsCall( + usedAudioStream, active, to, from, @@ -7382,6 +7443,7 @@ private okhttp3.Call listCallsValidateBeforeCall( applicationId, riskScoreMin, riskScoreMax, + webRTC, _callback); return localVarCall; } @@ -7389,6 +7451,8 @@ private okhttp3.Call listCallsValidateBeforeCall( /** * List Calls * + * @param usedAudioStream If usedAudioStream is set to true then all calls that have a + * audioStreamDuration > 0 will be returned (optional, default to false) * @param active If active is set to true then all calls of the nature queued, ringing, * inProgress are returned in the query. (optional, default to false) * @param to Only show Calls to this phone number. (optional) @@ -7405,6 +7469,7 @@ private okhttp3.Call listCallsValidateBeforeCall( * 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 webRTC Only show Calls that were originated via WebRTC. (optional, default to false) * @return CallList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -7415,6 +7480,7 @@ private okhttp3.Call listCallsValidateBeforeCall( * */ public CallList listCalls( + Boolean usedAudioStream, Boolean active, String to, String from, @@ -7424,10 +7490,12 @@ public CallList listCalls( String parentCallId, List applicationId, Integer riskScoreMin, - Integer riskScoreMax) + Integer riskScoreMax, + Boolean webRTC) throws ApiException { ApiResponse localVarResp = listCallsWithHttpInfo( + usedAudioStream, active, to, from, @@ -7437,13 +7505,16 @@ public CallList listCalls( parentCallId, applicationId, riskScoreMin, - riskScoreMax); + riskScoreMax, + webRTC); return localVarResp.getData(); } /** * List Calls * + * @param usedAudioStream If usedAudioStream is set to true then all calls that have a + * audioStreamDuration > 0 will be returned (optional, default to false) * @param active If active is set to true then all calls of the nature queued, ringing, * inProgress are returned in the query. (optional, default to false) * @param to Only show Calls to this phone number. (optional) @@ -7460,6 +7531,7 @@ public CallList listCalls( * 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 webRTC Only show Calls that were originated via WebRTC. (optional, default to false) * @return ApiResponse<CallList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -7470,6 +7542,7 @@ public CallList listCalls( * */ public ApiResponse listCallsWithHttpInfo( + Boolean usedAudioStream, Boolean active, String to, String from, @@ -7479,10 +7552,12 @@ public ApiResponse listCallsWithHttpInfo( String parentCallId, List applicationId, Integer riskScoreMin, - Integer riskScoreMax) + Integer riskScoreMax, + Boolean webRTC) throws ApiException { okhttp3.Call localVarCall = listCallsValidateBeforeCall( + usedAudioStream, active, to, from, @@ -7493,6 +7568,7 @@ public ApiResponse listCallsWithHttpInfo( applicationId, riskScoreMin, riskScoreMax, + webRTC, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); @@ -7501,6 +7577,8 @@ public ApiResponse listCallsWithHttpInfo( /** * List Calls (asynchronously) * + * @param usedAudioStream If usedAudioStream is set to true then all calls that have a + * audioStreamDuration > 0 will be returned (optional, default to false) * @param active If active is set to true then all calls of the nature queued, ringing, * inProgress are returned in the query. (optional, default to false) * @param to Only show Calls to this phone number. (optional) @@ -7517,6 +7595,7 @@ public ApiResponse listCallsWithHttpInfo( * 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 webRTC Only show Calls that were originated via WebRTC. (optional, default to false) * @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 @@ -7528,6 +7607,7 @@ public ApiResponse listCallsWithHttpInfo( * */ public okhttp3.Call listCallsAsync( + Boolean usedAudioStream, Boolean active, String to, String from, @@ -7538,11 +7618,13 @@ public okhttp3.Call listCallsAsync( List applicationId, Integer riskScoreMin, Integer riskScoreMax, + Boolean webRTC, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCallsValidateBeforeCall( + usedAudioStream, active, to, from, @@ -7553,6 +7635,7 @@ public okhttp3.Call listCallsAsync( applicationId, riskScoreMin, riskScoreMax, + webRTC, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); @@ -7566,6 +7649,10 @@ public okhttp3.Call listCallsAsync( * @param callId Show only Recordings made during the Call with this ID. (optional) * @param dateCreated Only show Recordings created on this date, formatted as *YYYY-MM-DD*. * (optional) + * @param startTime Only show Recordings created at or after this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) + * @param endTime Only show Recordings created at or before this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7576,7 +7663,12 @@ public okhttp3.Call listCallsAsync( * */ public okhttp3.Call listConferenceRecordingsCall( - String conferenceId, String callId, String dateCreated, final ApiCallback _callback) + String conferenceId, + String callId, + String dateCreated, + String startTime, + String endTime, + final ApiCallback _callback) throws ApiException { String basePath = null; @@ -7619,6 +7711,14 @@ public okhttp3.Call listConferenceRecordingsCall( localVarApiClient.parameterToPair("dateCreated", dateCreated)); } + if (startTime != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); + } + + if (endTime != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); + } + final String[] localVarAccepts = {"application/json"}; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7652,7 +7752,12 @@ public okhttp3.Call listConferenceRecordingsCall( @SuppressWarnings("rawtypes") private okhttp3.Call listConferenceRecordingsValidateBeforeCall( - String conferenceId, String callId, String dateCreated, final ApiCallback _callback) + String conferenceId, + String callId, + String dateCreated, + String startTime, + String endTime, + final ApiCallback _callback) throws ApiException { // verify the required parameter 'conferenceId' is set @@ -7663,7 +7768,8 @@ private okhttp3.Call listConferenceRecordingsValidateBeforeCall( } okhttp3.Call localVarCall = - listConferenceRecordingsCall(conferenceId, callId, dateCreated, _callback); + listConferenceRecordingsCall( + conferenceId, callId, dateCreated, startTime, endTime, _callback); return localVarCall; } @@ -7674,6 +7780,10 @@ private okhttp3.Call listConferenceRecordingsValidateBeforeCall( * @param callId Show only Recordings made during the Call with this ID. (optional) * @param dateCreated Only show Recordings created on this date, formatted as *YYYY-MM-DD*. * (optional) + * @param startTime Only show Recordings created at or after this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) + * @param endTime Only show Recordings created at or before this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) * @return RecordingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -7684,9 +7794,15 @@ private okhttp3.Call listConferenceRecordingsValidateBeforeCall( * */ public RecordingList listConferenceRecordings( - String conferenceId, String callId, String dateCreated) throws ApiException { + String conferenceId, + String callId, + String dateCreated, + String startTime, + String endTime) + throws ApiException { ApiResponse localVarResp = - listConferenceRecordingsWithHttpInfo(conferenceId, callId, dateCreated); + listConferenceRecordingsWithHttpInfo( + conferenceId, callId, dateCreated, startTime, endTime); return localVarResp.getData(); } @@ -7697,6 +7813,10 @@ public RecordingList listConferenceRecordings( * @param callId Show only Recordings made during the Call with this ID. (optional) * @param dateCreated Only show Recordings created on this date, formatted as *YYYY-MM-DD*. * (optional) + * @param startTime Only show Recordings created at or after this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) + * @param endTime Only show Recordings created at or before this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) * @return ApiResponse<RecordingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -7707,9 +7827,15 @@ public RecordingList listConferenceRecordings( * */ public ApiResponse listConferenceRecordingsWithHttpInfo( - String conferenceId, String callId, String dateCreated) throws ApiException { + String conferenceId, + String callId, + String dateCreated, + String startTime, + String endTime) + throws ApiException { okhttp3.Call localVarCall = - listConferenceRecordingsValidateBeforeCall(conferenceId, callId, dateCreated, null); + listConferenceRecordingsValidateBeforeCall( + conferenceId, callId, dateCreated, startTime, endTime, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -7721,6 +7847,10 @@ public ApiResponse listConferenceRecordingsWithHttpInfo( * @param callId Show only Recordings made during the Call with this ID. (optional) * @param dateCreated Only show Recordings created on this date, formatted as *YYYY-MM-DD*. * (optional) + * @param startTime Only show Recordings created at or after this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) + * @param endTime Only show Recordings created at or before this time, given as YYYY-MM-DD + * hh:mm:ss. (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 @@ -7735,12 +7865,14 @@ public okhttp3.Call listConferenceRecordingsAsync( String conferenceId, String callId, String dateCreated, + String startTime, + String endTime, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listConferenceRecordingsValidateBeforeCall( - conferenceId, callId, dateCreated, _callback); + conferenceId, callId, dateCreated, startTime, endTime, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -8916,6 +9048,10 @@ public okhttp3.Call listParticipantsAsync( * @param conferenceId Show only Recordings made during the conference with this ID. (optional) * @param dateCreated Only show Recordings created on this date, formatted as *YYYY-MM-DD*. * (optional) + * @param startTime Only show Recordings created at or after this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) + * @param endTime Only show Recordings created at or before this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -8926,7 +9062,12 @@ public okhttp3.Call listParticipantsAsync( * */ public okhttp3.Call listRecordingsCall( - String callId, String conferenceId, String dateCreated, final ApiCallback _callback) + String callId, + String conferenceId, + String dateCreated, + String startTime, + String endTime, + final ApiCallback _callback) throws ApiException { String basePath = null; @@ -8971,6 +9112,14 @@ public okhttp3.Call listRecordingsCall( localVarApiClient.parameterToPair("dateCreated", dateCreated)); } + if (startTime != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("startTime", startTime)); + } + + if (endTime != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("endTime", endTime)); + } + final String[] localVarAccepts = {"application/json"}; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -9004,11 +9153,17 @@ public okhttp3.Call listRecordingsCall( @SuppressWarnings("rawtypes") private okhttp3.Call listRecordingsValidateBeforeCall( - String callId, String conferenceId, String dateCreated, final ApiCallback _callback) + String callId, + String conferenceId, + String dateCreated, + String startTime, + String endTime, + final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = - listRecordingsCall(callId, conferenceId, dateCreated, _callback); + listRecordingsCall( + callId, conferenceId, dateCreated, startTime, endTime, _callback); return localVarCall; } @@ -9019,6 +9174,10 @@ private okhttp3.Call listRecordingsValidateBeforeCall( * @param conferenceId Show only Recordings made during the conference with this ID. (optional) * @param dateCreated Only show Recordings created on this date, formatted as *YYYY-MM-DD*. * (optional) + * @param startTime Only show Recordings created at or after this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) + * @param endTime Only show Recordings created at or before this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) * @return RecordingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -9028,10 +9187,15 @@ private okhttp3.Call listRecordingsValidateBeforeCall( * 200 List of Recordings - * */ - public RecordingList listRecordings(String callId, String conferenceId, String dateCreated) + public RecordingList listRecordings( + String callId, + String conferenceId, + String dateCreated, + String startTime, + String endTime) throws ApiException { ApiResponse localVarResp = - listRecordingsWithHttpInfo(callId, conferenceId, dateCreated); + listRecordingsWithHttpInfo(callId, conferenceId, dateCreated, startTime, endTime); return localVarResp.getData(); } @@ -9042,6 +9206,10 @@ public RecordingList listRecordings(String callId, String conferenceId, String d * @param conferenceId Show only Recordings made during the conference with this ID. (optional) * @param dateCreated Only show Recordings created on this date, formatted as *YYYY-MM-DD*. * (optional) + * @param startTime Only show Recordings created at or after this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) + * @param endTime Only show Recordings created at or before this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) * @return ApiResponse<RecordingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the * response body @@ -9052,9 +9220,15 @@ public RecordingList listRecordings(String callId, String conferenceId, String d * */ public ApiResponse listRecordingsWithHttpInfo( - String callId, String conferenceId, String dateCreated) throws ApiException { + String callId, + String conferenceId, + String dateCreated, + String startTime, + String endTime) + throws ApiException { okhttp3.Call localVarCall = - listRecordingsValidateBeforeCall(callId, conferenceId, dateCreated, null); + listRecordingsValidateBeforeCall( + callId, conferenceId, dateCreated, startTime, endTime, null); Type localVarReturnType = new TypeToken() {}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -9066,6 +9240,10 @@ public ApiResponse listRecordingsWithHttpInfo( * @param conferenceId Show only Recordings made during the conference with this ID. (optional) * @param dateCreated Only show Recordings created on this date, formatted as *YYYY-MM-DD*. * (optional) + * @param startTime Only show Recordings created at or after this time, given as YYYY-MM-DD + * hh:mm:ss. (optional) + * @param endTime Only show Recordings created at or before this time, given as YYYY-MM-DD + * hh:mm:ss. (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 @@ -9080,11 +9258,14 @@ public okhttp3.Call listRecordingsAsync( String callId, String conferenceId, String dateCreated, + String startTime, + String endTime, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = - listRecordingsValidateBeforeCall(callId, conferenceId, dateCreated, _callback); + listRecordingsValidateBeforeCall( + callId, conferenceId, dateCreated, startTime, endTime, _callback); Type localVarReturnType = new TypeToken() {}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/src/main/java/com/github/freeclimbapi/models/AvailableNumber.java b/src/main/java/com/github/freeclimbapi/models/AvailableNumber.java index 2a2f1b9..8c7d8cc 100644 --- a/src/main/java/com/github/freeclimbapi/models/AvailableNumber.java +++ b/src/main/java/com/github/freeclimbapi/models/AvailableNumber.java @@ -42,6 +42,11 @@ public static String getDiscriminatorValue() { @SerializedName(SERIALIZED_NAME_PHONE_NUMBER) private String phoneNumber; + public static final String SERIALIZED_NAME_ALIAS = "alias"; + + @SerializedName(SERIALIZED_NAME_ALIAS) + private String alias; + public static final String SERIALIZED_NAME_REGION = "region"; @SerializedName(SERIALIZED_NAME_REGION) @@ -120,6 +125,27 @@ public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } + public AvailableNumber alias(String alias) { + + this.alias = alias; + return this; + } + + /** + * A nicely-formatted version of the phone number. + * + * @return alias + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "A nicely-formatted version of the phone number.") + public String getAlias() { + return alias; + } + + public void setAlias(String alias) { + this.alias = alias; + } + public AvailableNumber region(String region) { this.region = region; @@ -174,6 +200,7 @@ public boolean equals(Object o) { return Objects.equals(this.capabilities, availableNumber.capabilities) && Objects.equals(this.campaignId, availableNumber.campaignId) && Objects.equals(this.phoneNumber, availableNumber.phoneNumber) + && Objects.equals(this.alias, availableNumber.alias) && Objects.equals(this.region, availableNumber.region) && Objects.equals(this.country, availableNumber.country); } @@ -189,7 +216,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(capabilities, campaignId, phoneNumber, region, country); + return Objects.hash(capabilities, campaignId, phoneNumber, alias, region, country); } private static int hashCodeNullable(JsonNullable a) { @@ -206,6 +233,7 @@ public String toString() { sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n"); sb.append(" campaignId: ").append(toIndentedString(campaignId)).append("\n"); sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); + sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); sb.append(" region: ").append(toIndentedString(region)).append("\n"); sb.append(" country: ").append(toIndentedString(country)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/github/freeclimbapi/models/CallResult.java b/src/main/java/com/github/freeclimbapi/models/CallResult.java index 9e289bc..7d2b849 100644 --- a/src/main/java/com/github/freeclimbapi/models/CallResult.java +++ b/src/main/java/com/github/freeclimbapi/models/CallResult.java @@ -19,6 +19,7 @@ import java.util.Arrays; import java.util.Objects; import org.openapitools.jackson.nullable.JsonNullable; +import org.threeten.bp.OffsetDateTime; /** CallResult */ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") @@ -47,6 +48,16 @@ public static String getDiscriminatorValue() { @SerializedName(SERIALIZED_NAME_REVISION) private Integer revision; + public static final String SERIALIZED_NAME_DATE_CREATED_I_S_O = "dateCreatedISO"; + + @SerializedName(SERIALIZED_NAME_DATE_CREATED_I_S_O) + private OffsetDateTime dateCreatedISO; + + public static final String SERIALIZED_NAME_DATE_UPDATED_I_S_O = "dateUpdatedISO"; + + @SerializedName(SERIALIZED_NAME_DATE_UPDATED_I_S_O) + private OffsetDateTime dateUpdatedISO; + public static final String SERIALIZED_NAME_CALL_ID = "callId"; @SerializedName(SERIALIZED_NAME_CALL_ID) @@ -87,16 +98,31 @@ public static String getDiscriminatorValue() { @SerializedName(SERIALIZED_NAME_START_TIME) private String startTime; + public static final String SERIALIZED_NAME_START_TIME_I_S_O = "startTimeISO"; + + @SerializedName(SERIALIZED_NAME_START_TIME_I_S_O) + private OffsetDateTime startTimeISO; + public static final String SERIALIZED_NAME_CONNECT_TIME = "connectTime"; @SerializedName(SERIALIZED_NAME_CONNECT_TIME) private String connectTime; + public static final String SERIALIZED_NAME_CONNECT_TIME_I_S_O = "connectTimeISO"; + + @SerializedName(SERIALIZED_NAME_CONNECT_TIME_I_S_O) + private OffsetDateTime connectTimeISO; + public static final String SERIALIZED_NAME_END_TIME = "endTime"; @SerializedName(SERIALIZED_NAME_END_TIME) private String endTime; + public static final String SERIALIZED_NAME_END_TIME_I_S_O = "endTimeISO"; + + @SerializedName(SERIALIZED_NAME_END_TIME_I_S_O) + private OffsetDateTime endTimeISO; + public static final String SERIALIZED_NAME_DURATION = "duration"; @SerializedName(SERIALIZED_NAME_DURATION) @@ -107,6 +133,11 @@ public static String getDiscriminatorValue() { @SerializedName(SERIALIZED_NAME_CONNECT_DURATION) private Integer connectDuration; + public static final String SERIALIZED_NAME_AUDIO_STREAM_DURATION = "audioStreamDuration"; + + @SerializedName(SERIALIZED_NAME_AUDIO_STREAM_DURATION) + private Integer audioStreamDuration; + public static final String SERIALIZED_NAME_DIRECTION = "direction"; @SerializedName(SERIALIZED_NAME_DIRECTION) @@ -117,10 +148,20 @@ public static String getDiscriminatorValue() { @SerializedName(SERIALIZED_NAME_ANSWERED_BY) private AnsweredBy answeredBy; + public static final String SERIALIZED_NAME_CALLER_NAME = "callerName"; + + @SerializedName(SERIALIZED_NAME_CALLER_NAME) + private String callerName; + + public static final String SERIALIZED_NAME_WEB_R_T_C = "webRTC"; + + @SerializedName(SERIALIZED_NAME_WEB_R_T_C) + private Boolean webRTC; + public static final String SERIALIZED_NAME_SUBRESOURCE_URIS = "subresourceUris"; @SerializedName(SERIALIZED_NAME_SUBRESOURCE_URIS) - private Object subresourceUris; + private CallResultAllOfSubresourceUris subresourceUris; public static final String SERIALIZED_NAME_APPLICATION_ID = "applicationId"; @@ -225,6 +266,55 @@ public void setRevision(Integer revision) { this.revision = revision; } + public CallResult dateCreatedISO(OffsetDateTime dateCreatedISO) { + + this.dateCreatedISO = dateCreatedISO; + return this; + } + + /** + * The date that this resource was created in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z). + * + * @return dateCreatedISO + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "The date that this resource was created in ISO 8601 format (e.g.," + + " 2022-01-01T00:00:00.000Z).") + public OffsetDateTime getDateCreatedISO() { + return dateCreatedISO; + } + + public void setDateCreatedISO(OffsetDateTime dateCreatedISO) { + this.dateCreatedISO = dateCreatedISO; + } + + public CallResult dateUpdatedISO(OffsetDateTime dateUpdatedISO) { + + this.dateUpdatedISO = dateUpdatedISO; + return this; + } + + /** + * The date that this resource was last updated in ISO 8601 format (e.g., + * 2022-01-01T00:00:00.000Z). + * + * @return dateUpdatedISO + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "The date that this resource was last updated in ISO 8601 format (e.g.," + + " 2022-01-01T00:00:00.000Z).") + public OffsetDateTime getDateUpdatedISO() { + return dateUpdatedISO; + } + + public void setDateUpdatedISO(OffsetDateTime dateUpdatedISO) { + this.dateUpdatedISO = dateUpdatedISO; + } + public CallResult callId(String callId) { this.callId = callId; @@ -403,6 +493,31 @@ public void setStartTime(String startTime) { this.startTime = startTime; } + public CallResult startTimeISO(OffsetDateTime startTimeISO) { + + this.startTimeISO = startTimeISO; + return this; + } + + /** + * Start time of the Call in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z). Empty if the Call + * has not yet been dialed. + * + * @return startTimeISO + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "Start time of the Call in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z)." + + " Empty if the Call has not yet been dialed.") + public OffsetDateTime getStartTimeISO() { + return startTimeISO; + } + + public void setStartTimeISO(OffsetDateTime startTimeISO) { + this.startTimeISO = startTimeISO; + } + public CallResult connectTime(String connectTime) { this.connectTime = connectTime; @@ -428,6 +543,31 @@ public void setConnectTime(String connectTime) { this.connectTime = connectTime; } + public CallResult connectTimeISO(OffsetDateTime connectTimeISO) { + + this.connectTimeISO = connectTimeISO; + return this; + } + + /** + * Time the Call was answered in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z). Empty if the + * Call has not yet been dialed. + * + * @return connectTimeISO + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "Time the Call was answered in ISO 8601 format (e.g.," + + " 2022-01-01T00:00:00.000Z). Empty if the Call has not yet been dialed.") + public OffsetDateTime getConnectTimeISO() { + return connectTimeISO; + } + + public void setConnectTimeISO(OffsetDateTime connectTimeISO) { + this.connectTimeISO = connectTimeISO; + } + public CallResult endTime(String endTime) { this.endTime = endTime; @@ -453,6 +593,31 @@ public void setEndTime(String endTime) { this.endTime = endTime; } + public CallResult endTimeISO(OffsetDateTime endTimeISO) { + + this.endTimeISO = endTimeISO; + return this; + } + + /** + * End time of the Call in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z). Empty if the Call + * did not complete successfully. + * + * @return endTimeISO + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "End time of the Call in ISO 8601 format (e.g., 2022-01-01T00:00:00.000Z)." + + " Empty if the Call did not complete successfully.") + public OffsetDateTime getEndTimeISO() { + return endTimeISO; + } + + public void setEndTimeISO(OffsetDateTime endTimeISO) { + this.endTimeISO = endTimeISO; + } + public CallResult duration(Integer duration) { this.duration = duration; @@ -505,6 +670,31 @@ public void setConnectDuration(Integer connectDuration) { this.connectDuration = connectDuration; } + public CallResult audioStreamDuration(Integer audioStreamDuration) { + + this.audioStreamDuration = audioStreamDuration; + return this; + } + + /** + * Length of time that the Call used the audio stream in seconds. This value is empty or zero + * when the Call did not use the audio stream. + * + * @return audioStreamDuration + */ + @javax.annotation.Nullable + @ApiModelProperty( + value = + "Length of time that the Call used the audio stream in seconds. This value is" + + " empty or zero when the Call did not use the audio stream.") + public Integer getAudioStreamDuration() { + return audioStreamDuration; + } + + public void setAudioStreamDuration(Integer audioStreamDuration) { + this.audioStreamDuration = audioStreamDuration; + } + public CallResult direction(CallDirection direction) { this.direction = direction; @@ -547,28 +737,66 @@ public void setAnsweredBy(AnsweredBy answeredBy) { this.answeredBy = answeredBy; } - public CallResult subresourceUris(Object subresourceUris) { + public CallResult callerName(String callerName) { + + this.callerName = callerName; + return this; + } + + /** + * The caller ID name (CNAM) for this Call. Empty if unavailable. + * + * @return callerName + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "The caller ID name (CNAM) for this Call. Empty if unavailable.") + public String getCallerName() { + return callerName; + } + + public void setCallerName(String callerName) { + this.callerName = callerName; + } + + public CallResult webRTC(Boolean webRTC) { + + this.webRTC = webRTC; + return this; + } + + /** + * Indicates whether this Call was initiated via WebRTC. + * + * @return webRTC + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "Indicates whether this Call was initiated via WebRTC.") + public Boolean getWebRTC() { + return webRTC; + } + + public void setWebRTC(Boolean webRTC) { + this.webRTC = webRTC; + } + + public CallResult subresourceUris(CallResultAllOfSubresourceUris subresourceUris) { this.subresourceUris = subresourceUris; return this; } /** - * The list of subresources for this Call. These include things like logs and recordings - * associated with the Call. + * Get subresourceUris * * @return subresourceUris */ @javax.annotation.Nullable - @ApiModelProperty( - value = - "The list of subresources for this Call. These include things like logs and" - + " recordings associated with the Call.") - public Object getSubresourceUris() { + @ApiModelProperty(value = "") + public CallResultAllOfSubresourceUris getSubresourceUris() { return subresourceUris; } - public void setSubresourceUris(Object subresourceUris) { + public void setSubresourceUris(CallResultAllOfSubresourceUris subresourceUris) { this.subresourceUris = subresourceUris; } @@ -606,6 +834,8 @@ public boolean equals(Object o) { && Objects.equals(this.dateCreated, callResult.dateCreated) && Objects.equals(this.dateUpdated, callResult.dateUpdated) && Objects.equals(this.revision, callResult.revision) + && Objects.equals(this.dateCreatedISO, callResult.dateCreatedISO) + && Objects.equals(this.dateUpdatedISO, callResult.dateUpdatedISO) && Objects.equals(this.callId, callResult.callId) && Objects.equals(this.parentCallId, callResult.parentCallId) && Objects.equals(this.accountId, callResult.accountId) @@ -614,12 +844,18 @@ public boolean equals(Object o) { && Objects.equals(this.phoneNumberId, callResult.phoneNumberId) && Objects.equals(this.status, callResult.status) && Objects.equals(this.startTime, callResult.startTime) + && Objects.equals(this.startTimeISO, callResult.startTimeISO) && Objects.equals(this.connectTime, callResult.connectTime) + && Objects.equals(this.connectTimeISO, callResult.connectTimeISO) && Objects.equals(this.endTime, callResult.endTime) + && Objects.equals(this.endTimeISO, callResult.endTimeISO) && Objects.equals(this.duration, callResult.duration) && Objects.equals(this.connectDuration, callResult.connectDuration) + && Objects.equals(this.audioStreamDuration, callResult.audioStreamDuration) && Objects.equals(this.direction, callResult.direction) && Objects.equals(this.answeredBy, callResult.answeredBy) + && Objects.equals(this.callerName, callResult.callerName) + && Objects.equals(this.webRTC, callResult.webRTC) && Objects.equals(this.subresourceUris, callResult.subresourceUris) && Objects.equals(this.applicationId, callResult.applicationId); } @@ -640,6 +876,8 @@ public int hashCode() { dateCreated, dateUpdated, revision, + dateCreatedISO, + dateUpdatedISO, callId, parentCallId, accountId, @@ -648,12 +886,18 @@ public int hashCode() { phoneNumberId, status, startTime, + startTimeISO, connectTime, + connectTimeISO, endTime, + endTimeISO, duration, connectDuration, + audioStreamDuration, direction, answeredBy, + callerName, + webRTC, subresourceUris, applicationId); } @@ -673,6 +917,8 @@ public String toString() { 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(" dateCreatedISO: ").append(toIndentedString(dateCreatedISO)).append("\n"); + sb.append(" dateUpdatedISO: ").append(toIndentedString(dateUpdatedISO)).append("\n"); sb.append(" callId: ").append(toIndentedString(callId)).append("\n"); sb.append(" parentCallId: ").append(toIndentedString(parentCallId)).append("\n"); sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); @@ -681,12 +927,20 @@ public String toString() { sb.append(" phoneNumberId: ").append(toIndentedString(phoneNumberId)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" startTimeISO: ").append(toIndentedString(startTimeISO)).append("\n"); sb.append(" connectTime: ").append(toIndentedString(connectTime)).append("\n"); + sb.append(" connectTimeISO: ").append(toIndentedString(connectTimeISO)).append("\n"); sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" endTimeISO: ").append(toIndentedString(endTimeISO)).append("\n"); sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); sb.append(" connectDuration: ").append(toIndentedString(connectDuration)).append("\n"); + sb.append(" audioStreamDuration: ") + .append(toIndentedString(audioStreamDuration)) + .append("\n"); sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); sb.append(" answeredBy: ").append(toIndentedString(answeredBy)).append("\n"); + sb.append(" callerName: ").append(toIndentedString(callerName)).append("\n"); + sb.append(" webRTC: ").append(toIndentedString(webRTC)).append("\n"); sb.append(" subresourceUris: ").append(toIndentedString(subresourceUris)).append("\n"); sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/github/freeclimbapi/models/CallResultAllOfSubresourceUris.java b/src/main/java/com/github/freeclimbapi/models/CallResultAllOfSubresourceUris.java new file mode 100644 index 0000000..1f4b181 --- /dev/null +++ b/src/main/java/com/github/freeclimbapi/models/CallResultAllOfSubresourceUris.java @@ -0,0 +1,129 @@ +/* + * 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.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.*; +import java.util.Objects; + +/** + * The list of subresources for this Call. These include things like logs and recordings associated + * with the Call. + */ +@ApiModel( + description = + "The list of subresources for this Call. These include things like logs and" + + " recordings associated with the Call.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CallResultAllOfSubresourceUris { + public static String getDiscriminatorValue() { + return null; + } + + public static final String SERIALIZED_NAME_LOGS = "logs"; + + @SerializedName(SERIALIZED_NAME_LOGS) + private String logs; + + public static final String SERIALIZED_NAME_RECORDINGS = "recordings"; + + @SerializedName(SERIALIZED_NAME_RECORDINGS) + private String recordings; + + public CallResultAllOfSubresourceUris() {} + + public CallResultAllOfSubresourceUris logs(String logs) { + + this.logs = logs; + return this; + } + + /** + * The URI for the logs associated with this Call. + * + * @return logs + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "The URI for the logs associated with this Call.") + public String getLogs() { + return logs; + } + + public void setLogs(String logs) { + this.logs = logs; + } + + public CallResultAllOfSubresourceUris recordings(String recordings) { + + this.recordings = recordings; + return this; + } + + /** + * The URI for the recordings associated with this Call. + * + * @return recordings + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "The URI for the recordings associated with this Call.") + public String getRecordings() { + return recordings; + } + + public void setRecordings(String recordings) { + this.recordings = recordings; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CallResultAllOfSubresourceUris callResultAllOfSubresourceUris = + (CallResultAllOfSubresourceUris) o; + return Objects.equals(this.logs, callResultAllOfSubresourceUris.logs) + && Objects.equals(this.recordings, callResultAllOfSubresourceUris.recordings); + } + + @Override + public int hashCode() { + return Objects.hash(logs, recordings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CallResultAllOfSubresourceUris {\n"); + sb.append(" logs: ").append(toIndentedString(logs)).append("\n"); + sb.append(" recordings: ").append(toIndentedString(recordings)).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/QueueResult.java b/src/main/java/com/github/freeclimbapi/models/QueueResult.java index 0793ae3..07b7369 100644 --- a/src/main/java/com/github/freeclimbapi/models/QueueResult.java +++ b/src/main/java/com/github/freeclimbapi/models/QueueResult.java @@ -78,6 +78,11 @@ public static String getDiscriminatorValue() { @SerializedName(SERIALIZED_NAME_AVERAGE_QUEUE_REMOVAL_TIME) private Integer averageQueueRemovalTime; + public static final String SERIALIZED_NAME_AVERAGE_WAIT_TIME = "averageWaitTime"; + + @SerializedName(SERIALIZED_NAME_AVERAGE_WAIT_TIME) + private Integer averageWaitTime; + public static final String SERIALIZED_NAME_SUBRESOURCE_URIS = "subresourceUris"; @SerializedName(SERIALIZED_NAME_SUBRESOURCE_URIS) @@ -313,6 +318,27 @@ public void setAverageQueueRemovalTime(Integer averageQueueRemovalTime) { this.averageQueueRemovalTime = averageQueueRemovalTime; } + public QueueResult averageWaitTime(Integer averageWaitTime) { + + this.averageWaitTime = averageWaitTime; + return this; + } + + /** + * The average wait time (in seconds) of all Calls in the Queue. + * + * @return averageWaitTime + */ + @javax.annotation.Nullable + @ApiModelProperty(value = "The average wait time (in seconds) of all Calls in the Queue.") + public Integer getAverageWaitTime() { + return averageWaitTime; + } + + public void setAverageWaitTime(Integer averageWaitTime) { + this.averageWaitTime = averageWaitTime; + } + public QueueResult subresourceUris(Object subresourceUris) { this.subresourceUris = subresourceUris; @@ -353,6 +379,7 @@ public boolean equals(Object o) { && Objects.equals(this.maxSize, queueResult.maxSize) && Objects.equals(this.currentSize, queueResult.currentSize) && Objects.equals(this.averageQueueRemovalTime, queueResult.averageQueueRemovalTime) + && Objects.equals(this.averageWaitTime, queueResult.averageWaitTime) && Objects.equals(this.subresourceUris, queueResult.subresourceUris); } @@ -378,6 +405,7 @@ public int hashCode() { maxSize, currentSize, averageQueueRemovalTime, + averageWaitTime, subresourceUris); } @@ -404,6 +432,7 @@ public String toString() { sb.append(" averageQueueRemovalTime: ") .append(toIndentedString(averageQueueRemovalTime)) .append("\n"); + sb.append(" averageWaitTime: ").append(toIndentedString(averageWaitTime)).append("\n"); sb.append(" subresourceUris: ").append(toIndentedString(subresourceUris)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java b/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java index 70ac114..2d117c1 100644 --- a/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java +++ b/src/test/java/com/github/freeclimbapi/api/DefaultApiTest.java @@ -754,7 +754,12 @@ public void listCallRecordingsTest() throws ApiException { String dateCreated = dateCreatedStringTestValue(); - RecordingList response = this.apiInstance.listCallRecordings(callId, dateCreated); + String startTime = startTimeStringTestValue(); + + String endTime = endTimeStringTestValue(); + + RecordingList response = + this.apiInstance.listCallRecordings(callId, dateCreated, startTime, endTime); // TODO: test validations assertEquals(response.getClass(), RecordingList.class); } @@ -767,6 +772,8 @@ public void listCallRecordingsTest() throws ApiException { @Test public void listCallsTest() throws ApiException { + Boolean usedAudioStream = usedAudioStreamBooleanTestValue(); + Boolean active = activeBooleanTestValue(); String to = toStringTestValue(); @@ -787,8 +794,11 @@ public void listCallsTest() throws ApiException { Integer riskScoreMax = riskScoreMaxIntegerTestValue(); + Boolean webRTC = webRTCBooleanTestValue(); + CallList response = this.apiInstance.listCalls( + usedAudioStream, active, to, from, @@ -798,7 +808,8 @@ public void listCallsTest() throws ApiException { parentCallId, applicationId, riskScoreMin, - riskScoreMax); + riskScoreMax, + webRTC); // TODO: test validations assertEquals(response.getClass(), CallList.class); } @@ -817,8 +828,13 @@ public void listConferenceRecordingsTest() throws ApiException { String dateCreated = dateCreatedStringTestValue(); + String startTime = startTimeStringTestValue(); + + String endTime = endTimeStringTestValue(); + RecordingList response = - this.apiInstance.listConferenceRecordings(conferenceId, callId, dateCreated); + this.apiInstance.listConferenceRecordings( + conferenceId, callId, dateCreated, startTime, endTime); // TODO: test validations assertEquals(response.getClass(), RecordingList.class); } @@ -969,7 +985,13 @@ public void listRecordingsTest() throws ApiException { String dateCreated = dateCreatedStringTestValue(); - RecordingList response = this.apiInstance.listRecordings(callId, conferenceId, dateCreated); + String startTime = startTimeStringTestValue(); + + String endTime = endTimeStringTestValue(); + + RecordingList response = + this.apiInstance.listRecordings( + callId, conferenceId, dateCreated, startTime, endTime); // TODO: test validations assertEquals(response.getClass(), RecordingList.class); } @@ -1514,7 +1536,12 @@ public void listCallRecordingsGetNextPageTest() throws ApiException { String dateCreated = dateCreatedStringTestValue(); - RecordingList response = this.apiInstance.listCallRecordings(callId, dateCreated); + String startTime = startTimeStringTestValue(); + + String endTime = endTimeStringTestValue(); + + RecordingList response = + this.apiInstance.listCallRecordings(callId, dateCreated, startTime, endTime); String localVarNextPageUri = "/Accounts/{accountId}/Calls/{callId}/Recordings" .replaceAll( @@ -1536,6 +1563,8 @@ public void listCallRecordingsGetNextPageTest() throws ApiException { @Test public void listCallsGetNextPageTest() throws ApiException { + Boolean usedAudioStream = usedAudioStreamBooleanTestValue(); + Boolean active = activeBooleanTestValue(); String to = toStringTestValue(); @@ -1556,8 +1585,11 @@ public void listCallsGetNextPageTest() throws ApiException { Integer riskScoreMax = riskScoreMaxIntegerTestValue(); + Boolean webRTC = webRTCBooleanTestValue(); + CallList response = this.apiInstance.listCalls( + usedAudioStream, active, to, from, @@ -1567,7 +1599,8 @@ public void listCallsGetNextPageTest() throws ApiException { parentCallId, applicationId, riskScoreMin, - riskScoreMax); + riskScoreMax, + webRTC); String localVarNextPageUri = "/Accounts/{accountId}/Calls" .replaceAll( @@ -1592,8 +1625,13 @@ public void listConferenceRecordingsGetNextPageTest() throws ApiException { String dateCreated = dateCreatedStringTestValue(); + String startTime = startTimeStringTestValue(); + + String endTime = endTimeStringTestValue(); + RecordingList response = - this.apiInstance.listConferenceRecordings(conferenceId, callId, dateCreated); + this.apiInstance.listConferenceRecordings( + conferenceId, callId, dateCreated, startTime, endTime); String localVarNextPageUri = "/Accounts/{accountId}/Conferences/{conferenceId}/Recordings" .replaceAll( @@ -1789,7 +1827,13 @@ public void listRecordingsGetNextPageTest() throws ApiException { String dateCreated = dateCreatedStringTestValue(); - RecordingList response = this.apiInstance.listRecordings(callId, conferenceId, dateCreated); + String startTime = startTimeStringTestValue(); + + String endTime = endTimeStringTestValue(); + + RecordingList response = + this.apiInstance.listRecordings( + callId, conferenceId, dateCreated, startTime, endTime); String localVarNextPageUri = "/Accounts/{accountId}/Recordings" .replaceAll( @@ -2257,4 +2301,12 @@ private ReplaceBlobRequest replaceBlobRequestReplaceBlobRequestTestValue() { request.setBlob(new Object()); return request; } + + private Boolean usedAudioStreamBooleanTestValue() { + return true; + } + + private Boolean webRTCBooleanTestValue() { + return true; + } } diff --git a/src/test/java/com/github/freeclimbapi/models/AvailableNumberTest.java b/src/test/java/com/github/freeclimbapi/models/AvailableNumberTest.java index 144dc37..11e308b 100644 --- a/src/test/java/com/github/freeclimbapi/models/AvailableNumberTest.java +++ b/src/test/java/com/github/freeclimbapi/models/AvailableNumberTest.java @@ -48,6 +48,14 @@ public void phoneNumberTest() { Assert.assertEquals("TEST_STRING", model.getPhoneNumber()); } + /** Test the property 'alias' */ + @Test + public void aliasTest() { + + model.setAlias("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getAlias()); + } + /** Test the property 'region' */ @Test public void regionTest() { @@ -76,6 +84,8 @@ public void equalsTrueTest() { test1.setPhoneNumber("TS"); + test1.setAlias("TS"); + test1.setRegion("TS"); test1.setCountry("TS"); @@ -89,6 +99,8 @@ public void equalsTrueTest() { test2.setPhoneNumber("TS"); + test2.setAlias("TS"); + test2.setRegion("TS"); test2.setCountry("TS"); @@ -108,6 +120,8 @@ public void equalsFalseTest() { test1.setPhoneNumber("TS"); + test1.setAlias("TS"); + test1.setRegion("TS"); test1.setCountry("TS"); @@ -121,6 +135,8 @@ public void equalsFalseTest() { test2.setPhoneNumber("TS2"); + test2.setAlias("TS2"); + test2.setRegion("TS2"); test2.setCountry("TS2"); @@ -140,6 +156,8 @@ public void hashCodeTypeTest() { test1.setPhoneNumber("TS"); + test1.setAlias("TS"); + test1.setRegion("TS"); test1.setCountry("TS"); @@ -160,6 +178,8 @@ public void toStringEqualsTest() { test1.setPhoneNumber("TS"); + test1.setAlias("TS"); + test1.setRegion("TS"); test1.setCountry("TS"); @@ -173,6 +193,8 @@ public void toStringEqualsTest() { test2.setPhoneNumber("TS"); + test2.setAlias("TS"); + test2.setRegion("TS"); test2.setCountry("TS"); @@ -194,6 +216,8 @@ public void hashCodeEqualsTrueTest() { test1.setPhoneNumber("TS"); + test1.setAlias("TS"); + test1.setRegion("TS"); test1.setCountry("TS"); @@ -207,6 +231,8 @@ public void hashCodeEqualsTrueTest() { test2.setPhoneNumber("TS"); + test2.setAlias("TS"); + test2.setRegion("TS"); test2.setCountry("TS"); @@ -226,6 +252,8 @@ public void hashCodeEqualsFalseTest() { test1.setPhoneNumber("TS"); + test1.setAlias("TS"); + test1.setRegion("TS"); test1.setCountry("TS"); @@ -239,6 +267,8 @@ public void hashCodeEqualsFalseTest() { test2.setPhoneNumber("TS2"); + test2.setAlias("TS2"); + test2.setRegion("TS2"); test2.setCountry("TS2"); @@ -258,6 +288,8 @@ public void toStringTypeTest() { test1.setPhoneNumber("TS"); + test1.setAlias("TS"); + test1.setRegion("TS"); test1.setCountry("TS"); diff --git a/src/test/java/com/github/freeclimbapi/models/CallResultAllOfSubresourceUrisTest.java b/src/test/java/com/github/freeclimbapi/models/CallResultAllOfSubresourceUrisTest.java new file mode 100644 index 0000000..62e6154 --- /dev/null +++ b/src/test/java/com/github/freeclimbapi/models/CallResultAllOfSubresourceUrisTest.java @@ -0,0 +1,159 @@ +/* + * 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 CallResultAllOfSubresourceUris */ +public class CallResultAllOfSubresourceUrisTest { + + private final CallResultAllOfSubresourceUris model = new CallResultAllOfSubresourceUris(); + + /** Test the property 'logs' */ + @Test + public void logsTest() { + + model.setLogs("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getLogs()); + } + + /** Test the property 'recordings' */ + @Test + public void recordingsTest() { + + model.setRecordings("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getRecordings()); + } + + /** Test the method 'equalsTrue' */ + @Test + public void equalsTrueTest() { + CallResultAllOfSubresourceUris test1 = new CallResultAllOfSubresourceUris(); + + test1.setLogs("TS"); + + test1.setRecordings("TS"); + + CallResultAllOfSubresourceUris test2 = new CallResultAllOfSubresourceUris(); + + test2.setLogs("TS"); + + test2.setRecordings("TS"); + + Assert.assertTrue(test1.equals(test2)); + } + + /** Test the method 'equalsFalse' */ + @Test + public void equalsFalseTest() { + CallResultAllOfSubresourceUris test1 = new CallResultAllOfSubresourceUris(); + + test1.setLogs("TS"); + + test1.setRecordings("TS"); + + CallResultAllOfSubresourceUris test2 = new CallResultAllOfSubresourceUris(); + + test2.setLogs("TS2"); + + test2.setRecordings("TS2"); + + Assert.assertFalse(test1.equals(test2)); + } + + /** Test the method 'hashCodeType' */ + @Test + public void hashCodeTypeTest() { + CallResultAllOfSubresourceUris test1 = new CallResultAllOfSubresourceUris(); + + test1.setLogs("TS"); + + test1.setRecordings("TS"); + + int hashCode1 = test1.hashCode(); + Assert.assertTrue(Integer.class.isInstance(hashCode1)); + } + + /** Test the method 'toStringEquals' */ + @Test + public void toStringEqualsTest() { + CallResultAllOfSubresourceUris test1 = new CallResultAllOfSubresourceUris(); + + test1.setLogs("TS"); + + test1.setRecordings("TS"); + + CallResultAllOfSubresourceUris test2 = new CallResultAllOfSubresourceUris(); + + test2.setLogs("TS"); + + test2.setRecordings("TS"); + + String toString1 = test1.toString(); + String toString2 = test2.toString(); + Assert.assertEquals(toString1, toString2); + } + + /** Test the method 'hashCodeEqualsTrue' */ + @Test + public void hashCodeEqualsTrueTest() { + CallResultAllOfSubresourceUris test1 = new CallResultAllOfSubresourceUris(); + + test1.setLogs("TS"); + + test1.setRecordings("TS"); + + CallResultAllOfSubresourceUris test2 = new CallResultAllOfSubresourceUris(); + + test2.setLogs("TS"); + + test2.setRecordings("TS"); + + Assert.assertEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'hashCodeEqualsFalse' */ + @Test + public void hashCodeEqualsFalseTest() { + CallResultAllOfSubresourceUris test1 = new CallResultAllOfSubresourceUris(); + + test1.setLogs("TS"); + + test1.setRecordings("TS"); + + CallResultAllOfSubresourceUris test2 = new CallResultAllOfSubresourceUris(); + + test2.setLogs("TS2"); + + test2.setRecordings("TS2"); + + Assert.assertNotEquals(test1.hashCode(), test2.hashCode()); + } + + /** Test the method 'toStringType' */ + @Test + public void toStringTypeTest() { + CallResultAllOfSubresourceUris test1 = new CallResultAllOfSubresourceUris(); + + test1.setLogs("TS"); + + test1.setRecordings("TS"); + + String toString1 = test1.toString(); + Assert.assertTrue(String.class.isInstance(toString1)); + } +} diff --git a/src/test/java/com/github/freeclimbapi/models/CallResultTest.java b/src/test/java/com/github/freeclimbapi/models/CallResultTest.java index b01f2fb..2c07677 100644 --- a/src/test/java/com/github/freeclimbapi/models/CallResultTest.java +++ b/src/test/java/com/github/freeclimbapi/models/CallResultTest.java @@ -17,6 +17,7 @@ import java.util.*; import org.junit.Assert; import org.junit.Test; +import org.threeten.bp.OffsetDateTime; /** Model tests for CallResult */ public class CallResultTest { @@ -55,6 +56,22 @@ public void revisionTest() { Assert.assertEquals(1, (int) model.getRevision()); } + /** Test the property 'dateCreatedISO' */ + @Test + public void dateCreatedISOTest() { + model.setDateCreatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + Assert.assertEquals( + OffsetDateTime.parse("2022-07-05T15:17:05Z"), model.getDateCreatedISO()); + } + + /** Test the property 'dateUpdatedISO' */ + @Test + public void dateUpdatedISOTest() { + model.setDateUpdatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + Assert.assertEquals( + OffsetDateTime.parse("2022-07-05T15:17:05Z"), model.getDateUpdatedISO()); + } + /** Test the property 'callId' */ @Test public void callIdTest() { @@ -132,6 +149,13 @@ public void startTimeTest() { Assert.assertEquals("TEST_STRING", model.getStartTime()); } + /** Test the property 'startTimeISO' */ + @Test + public void startTimeISOTest() { + model.setStartTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + Assert.assertEquals(OffsetDateTime.parse("2022-07-05T15:17:05Z"), model.getStartTimeISO()); + } + /** Test the property 'connectTime' */ @Test public void connectTimeTest() { @@ -140,6 +164,14 @@ public void connectTimeTest() { Assert.assertEquals("TEST_STRING", model.getConnectTime()); } + /** Test the property 'connectTimeISO' */ + @Test + public void connectTimeISOTest() { + model.setConnectTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + Assert.assertEquals( + OffsetDateTime.parse("2022-07-05T15:17:05Z"), model.getConnectTimeISO()); + } + /** Test the property 'endTime' */ @Test public void endTimeTest() { @@ -148,6 +180,13 @@ public void endTimeTest() { Assert.assertEquals("TEST_STRING", model.getEndTime()); } + /** Test the property 'endTimeISO' */ + @Test + public void endTimeISOTest() { + model.setEndTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + Assert.assertEquals(OffsetDateTime.parse("2022-07-05T15:17:05Z"), model.getEndTimeISO()); + } + /** Test the property 'duration' */ @Test public void durationTest() { @@ -164,6 +203,14 @@ public void connectDurationTest() { Assert.assertEquals(1, (int) model.getConnectDuration()); } + /** Test the property 'audioStreamDuration' */ + @Test + public void audioStreamDurationTest() { + + model.setAudioStreamDuration(1); + Assert.assertEquals(1, (int) model.getAudioStreamDuration()); + } + /** Test the property 'direction' */ @Test public void directionTest() { @@ -184,13 +231,28 @@ public void answeredByTest() { Assert.assertEquals(model.getAnsweredBy(), AnsweredBy.MACHINE); } + /** Test the property 'callerName' */ + @Test + public void callerNameTest() { + + model.setCallerName("TEST_STRING"); + Assert.assertEquals("TEST_STRING", model.getCallerName()); + } + + /** Test the property 'webRTC' */ + @Test + public void webRTCTest() { + model.setWebRTC(false); + Assert.assertEquals(false, model.getWebRTC()); + } + /** Test the property 'subresourceUris' */ @Test public void subresourceUrisTest() { - Object object = new Object(); + CallResultAllOfSubresourceUris object = new CallResultAllOfSubresourceUris(); model.setSubresourceUris(object); - Assert.assertEquals(object.getClass(), Object.class); + Assert.assertEquals(object.getClass(), CallResultAllOfSubresourceUris.class); } /** Test the property 'applicationId' */ @@ -214,6 +276,10 @@ public void equalsTrueTest() { test1.setRevision(1); + test1.setDateCreatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setDateUpdatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setCallId("TS"); test1.setParentCallId("TS"); @@ -230,20 +296,33 @@ public void equalsTrueTest() { test1.setStartTime("TS"); + test1.setStartTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setConnectTime("TS"); + test1.setConnectTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setEndTime("TS"); + test1.setEndTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setDuration(1); test1.setConnectDuration(1); + test1.setAudioStreamDuration(1); + test1.setDirection(CallDirection.INBOUND); test1.setAnsweredBy(AnsweredBy.HUMAN); - Object testObjectObject = new Object(); - test1.setSubresourceUris(testObjectObject); + test1.setCallerName("TS"); + + test1.setWebRTC(true); + + CallResultAllOfSubresourceUris testCallResultAllOfSubresourceUrisObject = + new CallResultAllOfSubresourceUris(); + test1.setSubresourceUris(testCallResultAllOfSubresourceUrisObject); test1.setApplicationId("TS"); @@ -257,6 +336,10 @@ public void equalsTrueTest() { test2.setRevision(1); + test2.setDateCreatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test2.setDateUpdatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test2.setCallId("TS"); test2.setParentCallId("TS"); @@ -273,20 +356,33 @@ public void equalsTrueTest() { test2.setStartTime("TS"); + test2.setStartTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test2.setConnectTime("TS"); + test2.setConnectTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test2.setEndTime("TS"); + test2.setEndTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test2.setDuration(1); test2.setConnectDuration(1); + test2.setAudioStreamDuration(1); + test2.setDirection(CallDirection.INBOUND); test2.setAnsweredBy(AnsweredBy.HUMAN); - Object testObjectObject2 = testObjectObject; - test2.setSubresourceUris(testObjectObject2); + test2.setCallerName("TS"); + + test2.setWebRTC(true); + + CallResultAllOfSubresourceUris testCallResultAllOfSubresourceUrisObject2 = + testCallResultAllOfSubresourceUrisObject; + test2.setSubresourceUris(testCallResultAllOfSubresourceUrisObject2); test2.setApplicationId("TS"); @@ -306,6 +402,10 @@ public void equalsFalseTest() { test1.setRevision(1); + test1.setDateCreatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setDateUpdatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setCallId("TS"); test1.setParentCallId("TS"); @@ -322,20 +422,33 @@ public void equalsFalseTest() { test1.setStartTime("TS"); + test1.setStartTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setConnectTime("TS"); + test1.setConnectTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setEndTime("TS"); + test1.setEndTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setDuration(1); test1.setConnectDuration(1); + test1.setAudioStreamDuration(1); + test1.setDirection(CallDirection.OUTBOUND_API); test1.setAnsweredBy(AnsweredBy.MACHINE); - Object testObjectObject = new Object(); - test1.setSubresourceUris(testObjectObject); + test1.setCallerName("TS"); + + test1.setWebRTC(true); + + CallResultAllOfSubresourceUris testCallResultAllOfSubresourceUrisObject = + new CallResultAllOfSubresourceUris(); + test1.setSubresourceUris(testCallResultAllOfSubresourceUrisObject); test1.setApplicationId("TS"); @@ -349,6 +462,10 @@ public void equalsFalseTest() { test2.setRevision(0); + test2.setDateCreatedISO(OffsetDateTime.parse("2024-07-05T15:17:05Z")); + + test2.setDateUpdatedISO(OffsetDateTime.parse("2024-07-05T15:17:05Z")); + test2.setCallId("TS2"); test2.setParentCallId("TS2"); @@ -365,20 +482,33 @@ public void equalsFalseTest() { test2.setStartTime("TS2"); + test2.setStartTimeISO(OffsetDateTime.parse("2024-07-05T15:17:05Z")); + test2.setConnectTime("TS2"); + test2.setConnectTimeISO(OffsetDateTime.parse("2024-07-05T15:17:05Z")); + test2.setEndTime("TS2"); + test2.setEndTimeISO(OffsetDateTime.parse("2024-07-05T15:17:05Z")); + test2.setDuration(0); test2.setConnectDuration(0); + test2.setAudioStreamDuration(0); + test2.setDirection(CallDirection.INBOUND); test2.setAnsweredBy(AnsweredBy.HUMAN); - Object testObjectObject2 = new Object(); - test2.setSubresourceUris(testObjectObject2); + test2.setCallerName("TS2"); + + test2.setWebRTC(false); + + CallResultAllOfSubresourceUris testCallResultAllOfSubresourceUrisObject2 = + new CallResultAllOfSubresourceUris(); + test2.setSubresourceUris(testCallResultAllOfSubresourceUrisObject2); test2.setApplicationId("TS2"); @@ -398,6 +528,10 @@ public void hashCodeTypeTest() { test1.setRevision(1); + test1.setDateCreatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setDateUpdatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setCallId("TS"); test1.setParentCallId("TS"); @@ -414,20 +548,33 @@ public void hashCodeTypeTest() { test1.setStartTime("TS"); + test1.setStartTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setConnectTime("TS"); + test1.setConnectTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setEndTime("TS"); + test1.setEndTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setDuration(1); test1.setConnectDuration(1); + test1.setAudioStreamDuration(1); + test1.setDirection(CallDirection.INBOUND); test1.setAnsweredBy(AnsweredBy.HUMAN); - Object testObjectObject = new Object(); - test1.setSubresourceUris(testObjectObject); + test1.setCallerName("TS"); + + test1.setWebRTC(true); + + CallResultAllOfSubresourceUris testCallResultAllOfSubresourceUrisObject = + new CallResultAllOfSubresourceUris(); + test1.setSubresourceUris(testCallResultAllOfSubresourceUrisObject); test1.setApplicationId("TS"); @@ -448,6 +595,10 @@ public void toStringEqualsTest() { test1.setRevision(1); + test1.setDateCreatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setDateUpdatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setCallId("TS"); test1.setParentCallId("TS"); @@ -464,20 +615,33 @@ public void toStringEqualsTest() { test1.setStartTime("TS"); + test1.setStartTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setConnectTime("TS"); + test1.setConnectTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setEndTime("TS"); + test1.setEndTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setDuration(1); test1.setConnectDuration(1); + test1.setAudioStreamDuration(1); + test1.setDirection(CallDirection.INBOUND); test1.setAnsweredBy(AnsweredBy.HUMAN); - Object testObjectObject = new Object(); - test1.setSubresourceUris(testObjectObject); + test1.setCallerName("TS"); + + test1.setWebRTC(true); + + CallResultAllOfSubresourceUris testCallResultAllOfSubresourceUrisObject = + new CallResultAllOfSubresourceUris(); + test1.setSubresourceUris(testCallResultAllOfSubresourceUrisObject); test1.setApplicationId("TS"); @@ -491,6 +655,10 @@ public void toStringEqualsTest() { test2.setRevision(1); + test2.setDateCreatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test2.setDateUpdatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test2.setCallId("TS"); test2.setParentCallId("TS"); @@ -507,20 +675,33 @@ public void toStringEqualsTest() { test2.setStartTime("TS"); + test2.setStartTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test2.setConnectTime("TS"); + test2.setConnectTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test2.setEndTime("TS"); + test2.setEndTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test2.setDuration(1); test2.setConnectDuration(1); + test2.setAudioStreamDuration(1); + test2.setDirection(CallDirection.INBOUND); test2.setAnsweredBy(AnsweredBy.HUMAN); - Object testObjectObject2 = testObjectObject; - test2.setSubresourceUris(testObjectObject2); + test2.setCallerName("TS"); + + test2.setWebRTC(true); + + CallResultAllOfSubresourceUris testCallResultAllOfSubresourceUrisObject2 = + testCallResultAllOfSubresourceUrisObject; + test2.setSubresourceUris(testCallResultAllOfSubresourceUrisObject2); test2.setApplicationId("TS"); @@ -542,6 +723,10 @@ public void hashCodeEqualsTrueTest() { test1.setRevision(1); + test1.setDateCreatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setDateUpdatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setCallId("TS"); test1.setParentCallId("TS"); @@ -558,20 +743,33 @@ public void hashCodeEqualsTrueTest() { test1.setStartTime("TS"); + test1.setStartTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setConnectTime("TS"); + test1.setConnectTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setEndTime("TS"); + test1.setEndTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setDuration(1); test1.setConnectDuration(1); + test1.setAudioStreamDuration(1); + test1.setDirection(CallDirection.INBOUND); test1.setAnsweredBy(AnsweredBy.HUMAN); - Object testObjectObject = new Object(); - test1.setSubresourceUris(testObjectObject); + test1.setCallerName("TS"); + + test1.setWebRTC(true); + + CallResultAllOfSubresourceUris testCallResultAllOfSubresourceUrisObject = + new CallResultAllOfSubresourceUris(); + test1.setSubresourceUris(testCallResultAllOfSubresourceUrisObject); test1.setApplicationId("TS"); @@ -585,6 +783,10 @@ public void hashCodeEqualsTrueTest() { test2.setRevision(1); + test2.setDateCreatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test2.setDateUpdatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test2.setCallId("TS"); test2.setParentCallId("TS"); @@ -601,20 +803,33 @@ public void hashCodeEqualsTrueTest() { test2.setStartTime("TS"); + test2.setStartTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test2.setConnectTime("TS"); + test2.setConnectTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test2.setEndTime("TS"); + test2.setEndTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test2.setDuration(1); test2.setConnectDuration(1); + test2.setAudioStreamDuration(1); + test2.setDirection(CallDirection.INBOUND); test2.setAnsweredBy(AnsweredBy.HUMAN); - Object testObjectObject2 = testObjectObject; - test2.setSubresourceUris(testObjectObject2); + test2.setCallerName("TS"); + + test2.setWebRTC(true); + + CallResultAllOfSubresourceUris testCallResultAllOfSubresourceUrisObject2 = + testCallResultAllOfSubresourceUrisObject; + test2.setSubresourceUris(testCallResultAllOfSubresourceUrisObject2); test2.setApplicationId("TS"); @@ -634,6 +849,10 @@ public void hashCodeEqualsFalseTest() { test1.setRevision(1); + test1.setDateCreatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setDateUpdatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setCallId("TS"); test1.setParentCallId("TS"); @@ -650,20 +869,33 @@ public void hashCodeEqualsFalseTest() { test1.setStartTime("TS"); + test1.setStartTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setConnectTime("TS"); + test1.setConnectTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setEndTime("TS"); + test1.setEndTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setDuration(1); test1.setConnectDuration(1); + test1.setAudioStreamDuration(1); + test1.setDirection(CallDirection.OUTBOUND_API); test1.setAnsweredBy(AnsweredBy.MACHINE); - Object testObjectObject = new Object(); - test1.setSubresourceUris(testObjectObject); + test1.setCallerName("TS"); + + test1.setWebRTC(true); + + CallResultAllOfSubresourceUris testCallResultAllOfSubresourceUrisObject = + new CallResultAllOfSubresourceUris(); + test1.setSubresourceUris(testCallResultAllOfSubresourceUrisObject); test1.setApplicationId("TS"); @@ -677,6 +909,10 @@ public void hashCodeEqualsFalseTest() { test2.setRevision(0); + test2.setDateCreatedISO(OffsetDateTime.parse("2024-07-05T15:17:05Z")); + + test2.setDateUpdatedISO(OffsetDateTime.parse("2024-07-05T15:17:05Z")); + test2.setCallId("TS2"); test2.setParentCallId("TS2"); @@ -693,20 +929,33 @@ public void hashCodeEqualsFalseTest() { test2.setStartTime("TS2"); + test2.setStartTimeISO(OffsetDateTime.parse("2024-07-05T15:17:05Z")); + test2.setConnectTime("TS2"); + test2.setConnectTimeISO(OffsetDateTime.parse("2024-07-05T15:17:05Z")); + test2.setEndTime("TS2"); + test2.setEndTimeISO(OffsetDateTime.parse("2024-07-05T15:17:05Z")); + test2.setDuration(0); test2.setConnectDuration(0); + test2.setAudioStreamDuration(0); + test2.setDirection(CallDirection.INBOUND); test2.setAnsweredBy(AnsweredBy.HUMAN); - Object testObjectObject2 = new Object(); - test2.setSubresourceUris(testObjectObject2); + test2.setCallerName("TS2"); + + test2.setWebRTC(false); + + CallResultAllOfSubresourceUris testCallResultAllOfSubresourceUrisObject2 = + new CallResultAllOfSubresourceUris(); + test2.setSubresourceUris(testCallResultAllOfSubresourceUrisObject2); test2.setApplicationId("TS2"); @@ -726,6 +975,10 @@ public void toStringTypeTest() { test1.setRevision(1); + test1.setDateCreatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + + test1.setDateUpdatedISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setCallId("TS"); test1.setParentCallId("TS"); @@ -742,20 +995,33 @@ public void toStringTypeTest() { test1.setStartTime("TS"); + test1.setStartTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setConnectTime("TS"); + test1.setConnectTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setEndTime("TS"); + test1.setEndTimeISO(OffsetDateTime.parse("2022-07-05T15:17:05Z")); + test1.setDuration(1); test1.setConnectDuration(1); + test1.setAudioStreamDuration(1); + test1.setDirection(CallDirection.INBOUND); test1.setAnsweredBy(AnsweredBy.HUMAN); - Object testObjectObject = new Object(); - test1.setSubresourceUris(testObjectObject); + test1.setCallerName("TS"); + + test1.setWebRTC(true); + + CallResultAllOfSubresourceUris testCallResultAllOfSubresourceUrisObject = + new CallResultAllOfSubresourceUris(); + test1.setSubresourceUris(testCallResultAllOfSubresourceUrisObject); test1.setApplicationId("TS"); diff --git a/src/test/java/com/github/freeclimbapi/models/QueueResultTest.java b/src/test/java/com/github/freeclimbapi/models/QueueResultTest.java index 63dbfa4..ded1d96 100644 --- a/src/test/java/com/github/freeclimbapi/models/QueueResultTest.java +++ b/src/test/java/com/github/freeclimbapi/models/QueueResultTest.java @@ -103,6 +103,14 @@ public void averageQueueRemovalTimeTest() { Assert.assertEquals(1, (int) model.getAverageQueueRemovalTime()); } + /** Test the property 'averageWaitTime' */ + @Test + public void averageWaitTimeTest() { + + model.setAverageWaitTime(1); + Assert.assertEquals(1, (int) model.getAverageWaitTime()); + } + /** Test the property 'subresourceUris' */ @Test public void subresourceUrisTest() { @@ -137,6 +145,8 @@ public void equalsTrueTest() { test1.setAverageQueueRemovalTime(1); + test1.setAverageWaitTime(1); + Object testObjectObject = new Object(); test1.setSubresourceUris(testObjectObject); @@ -162,6 +172,8 @@ public void equalsTrueTest() { test2.setAverageQueueRemovalTime(1); + test2.setAverageWaitTime(1); + Object testObjectObject2 = testObjectObject; test2.setSubresourceUris(testObjectObject2); @@ -193,6 +205,8 @@ public void equalsFalseTest() { test1.setAverageQueueRemovalTime(1); + test1.setAverageWaitTime(1); + Object testObjectObject = new Object(); test1.setSubresourceUris(testObjectObject); @@ -218,6 +232,8 @@ public void equalsFalseTest() { test2.setAverageQueueRemovalTime(0); + test2.setAverageWaitTime(0); + Object testObjectObject2 = new Object(); test2.setSubresourceUris(testObjectObject2); @@ -249,6 +265,8 @@ public void hashCodeTypeTest() { test1.setAverageQueueRemovalTime(1); + test1.setAverageWaitTime(1); + Object testObjectObject = new Object(); test1.setSubresourceUris(testObjectObject); @@ -281,6 +299,8 @@ public void toStringEqualsTest() { test1.setAverageQueueRemovalTime(1); + test1.setAverageWaitTime(1); + Object testObjectObject = new Object(); test1.setSubresourceUris(testObjectObject); @@ -306,6 +326,8 @@ public void toStringEqualsTest() { test2.setAverageQueueRemovalTime(1); + test2.setAverageWaitTime(1); + Object testObjectObject2 = testObjectObject; test2.setSubresourceUris(testObjectObject2); @@ -339,6 +361,8 @@ public void hashCodeEqualsTrueTest() { test1.setAverageQueueRemovalTime(1); + test1.setAverageWaitTime(1); + Object testObjectObject = new Object(); test1.setSubresourceUris(testObjectObject); @@ -364,6 +388,8 @@ public void hashCodeEqualsTrueTest() { test2.setAverageQueueRemovalTime(1); + test2.setAverageWaitTime(1); + Object testObjectObject2 = testObjectObject; test2.setSubresourceUris(testObjectObject2); @@ -395,6 +421,8 @@ public void hashCodeEqualsFalseTest() { test1.setAverageQueueRemovalTime(1); + test1.setAverageWaitTime(1); + Object testObjectObject = new Object(); test1.setSubresourceUris(testObjectObject); @@ -420,6 +448,8 @@ public void hashCodeEqualsFalseTest() { test2.setAverageQueueRemovalTime(0); + test2.setAverageWaitTime(0); + Object testObjectObject2 = new Object(); test2.setSubresourceUris(testObjectObject2); @@ -451,6 +481,8 @@ public void toStringTypeTest() { test1.setAverageQueueRemovalTime(1); + test1.setAverageWaitTime(1); + Object testObjectObject = new Object(); test1.setSubresourceUris(testObjectObject); diff --git a/yarn.lock b/yarn.lock index 8c15a9e..ad43cfa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -17,17 +17,17 @@ 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", "@jsep-plugin/assignment@^1.3.0": +"@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", "@jsep-plugin/regex@^1.0.4": +"@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== -"@stoplight/http-spec@^7.0.2", "@stoplight/http-spec@^7.0.3": +"@stoplight/http-spec@^7.0.3": version "7.1.0" resolved "https://registry.yarnpkg.com/@stoplight/http-spec/-/http-spec-7.1.0.tgz#516fec5f4b08cc93dadfb4969a6f9616165b0553" integrity sha512-Z2XqKX2SV8a1rrgSzFqccX2TolfcblT+l4pNvUU+THaLl50tKDoeidwWWZTzYUzqU0+UV97ponvqEbWWN3PaXg== @@ -86,7 +86,19 @@ "@types/json-schema" "^7.0.7" json-pointer "^0.6.1" -"@stoplight/json@3.20.0", "@stoplight/json@3.21.7", "@stoplight/json@^3.18.1": +"@stoplight/json@3.21.7": + version "3.21.7" + resolved "https://registry.yarnpkg.com/@stoplight/json/-/json-3.21.7.tgz#102f5fd11921984c96672ce4307850daa1cbfc7b" + integrity sha512-xcJXgKFqv/uCEgtGlPxy3tPA+4I+ZI4vAuMJ885+ThkTHFVkC+0Fm58lA9NlsyjnkpxFh4YiQWpH+KefHdbA0A== + dependencies: + "@stoplight/ordered-object-literal" "^1.0.3" + "@stoplight/path" "^1.3.2" + "@stoplight/types" "^13.6.0" + jsonc-parser "~2.2.1" + lodash "^4.17.21" + safe-stable-stringify "^1.1" + +"@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== @@ -108,33 +120,33 @@ resolved "https://registry.yarnpkg.com/@stoplight/path/-/path-1.3.2.tgz#96e591496b72fde0f0cdae01a61d64f065bd9ede" integrity sha512-lyIc6JUlUA8Ve5ELywPC8I2Sdnh1zc1zmbYgVarhXIp9YeAB0ReeqmGEOWNtlHkbP2DAA1AL65Wfn2ncjK/jtQ== -"@stoplight/prism-cli@5.6.0": - version "5.6.0" - resolved "https://registry.yarnpkg.com/@stoplight/prism-cli/-/prism-cli-5.6.0.tgz#fc6590936eb290bf60bfe289eb6ac3b3366c2031" - integrity sha512-BCCeWKjmjtFDQQv0qCATIE3L0HtnQQa3tUNvcMoCfZWIEe2McSGZkudckBsmGFfv6xycUrTkHSI/HNxhKYp5fg== +"@stoplight/prism-cli@5.14.2": + version "5.14.2" + resolved "https://registry.yarnpkg.com/@stoplight/prism-cli/-/prism-cli-5.14.2.tgz#4729662fddb08f4ce03a7ccb98817f368e3940e1" + integrity sha512-S/x47zQa7NgoGAD0Q1JlijV7GRDd1zP/FcIpxSh+cJRUUImfALJJm1R3ONLweP97oG/b9BrwRyC+0GNYuzrviw== dependencies: - "@stoplight/http-spec" "^7.0.2" - "@stoplight/json" "^3.18.1" + "@stoplight/json" "3.21.7" "@stoplight/json-schema-ref-parser" "9.2.7" - "@stoplight/prism-core" "^5.6.0" - "@stoplight/prism-http" "^5.6.0" - "@stoplight/prism-http-server" "^5.6.0" + "@stoplight/prism-core" "^5.8.0" + "@stoplight/prism-http" "5.12.0" + "@stoplight/prism-http-server" "^5.12.0" "@stoplight/types" "^14.1.0" chalk "^4.1.2" chokidar "^3.5.2" fp-ts "^2.11.5" - json-schema-faker "0.5.3" + json-schema-faker "0.5.8" + jsonrepair "^3.12.0" lodash "^4.17.21" node-fetch "^2.6.5" pino "^6.13.3" signale "^1.4.0" - split2 "^3.2.2" + split2 "^4.2.0" tslib "^2.3.1" uri-template-lite "^22.9.0" urijs "^1.19.11" yargs "^16.2.0" -"@stoplight/prism-core@^5.6.0", "@stoplight/prism-core@^5.8.0": +"@stoplight/prism-core@^5.8.0": version "5.8.0" resolved "https://registry.yarnpkg.com/@stoplight/prism-core/-/prism-core-5.8.0.tgz#850917e1c45bfcd92012b3b235d20e3087600372" integrity sha512-fmH7n6e0thzOGcD5uZBu/Xx1iFNfpc9ACTxPie+lFD54SJ214M2FIFXD7kV+NCFlC+w5OFw+lJRaYM859uMnAg== @@ -144,7 +156,7 @@ pino "^6.13.3" tslib "^2.3.1" -"@stoplight/prism-http-server@^5.6.0": +"@stoplight/prism-http-server@^5.12.0": 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== @@ -162,7 +174,7 @@ tslib "^2.3.1" type-is "^1.6.18" -"@stoplight/prism-http@^5.12.0", "@stoplight/prism-http@^5.6.0": +"@stoplight/prism-http@5.12.0", "@stoplight/prism-http@^5.12.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== @@ -528,13 +540,26 @@ fast-uri@^3.0.1: 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: +fast-xml-builder@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fast-xml-builder/-/fast-xml-builder-1.0.0.tgz#a485d7e8381f1db983cf006f849d1066e2935241" + integrity sha512-fpZuDogrAgnyt9oDDz+5DBz0zgPdPZz6D4IR7iESxRXElrlGTRkHJ9eEt+SACRJwT0FNFrt71DFQIUFBJfX/uQ== + +fast-xml-parser@^4.2.0: version "4.5.0" resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.5.0.tgz#2882b7d01a6825dfdf909638f2de0256351def37" integrity sha512-/PlTQCI96+fZMAOLMZK4CWG1ItCbfZ/0jx7UIJFChPNrx7tcEgerUgWbeieCM9MfHInUDyK8DWYZ+YrywDJuTg== dependencies: strnum "^1.0.5" +fast-xml-parser@^5.3.8: + version "5.4.2" + resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-5.4.2.tgz#7fc66463b59260b0c5fd57edf46148a418bde68b" + integrity sha512-pw/6pIl4k0CSpElPEJhDppLzaixDEuWui2CUQQBH/ECDf7+y6YwA4Gf7Tyb0Rfe4DIMuZipYj4AEL0nACKglvQ== + dependencies: + fast-xml-builder "^1.0.0" + strnum "^2.1.2" + fastestsmallesttextencoderdecoder@^1.0.22: version "1.0.22" resolved "https://registry.yarnpkg.com/fastestsmallesttextencoderdecoder/-/fastestsmallesttextencoderdecoder-1.0.22.tgz#59b47e7b965f45258629cc6c127bf783281c5e93" @@ -657,11 +682,6 @@ iconv-lite@0.6.3: dependencies: safer-buffer ">= 2.1.2 < 3.0.0" -inherits@^2.0.3: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - io-ts@^2.2.16: version "2.2.22" resolved "https://registry.yarnpkg.com/io-ts/-/io-ts-2.2.22.tgz#5ab0d3636fe8494a275f0266461ab019da4b8d0b" @@ -717,7 +737,7 @@ js-yaml@^3.12.1: argparse "^1.0.7" esprima "^4.0.0" -jsep@^1.3.9, jsep@^1.4.0: +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== @@ -748,14 +768,6 @@ json-schema-compare@^0.2.2: dependencies: lodash "^4.17.4" -json-schema-faker@0.5.3: - version "0.5.3" - resolved "https://registry.yarnpkg.com/json-schema-faker/-/json-schema-faker-0.5.3.tgz#92f8a102037acf68e1c8e3a2e7c85726d285512d" - integrity sha512-BeIrR0+YSrTbAR9dOMnjbFl1MvHyXnq+Wpdw1FpWZDHWKLzK229hZ5huyPcmzFUfVq1ODwf40WdGVoE266UBUg== - dependencies: - 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" @@ -783,14 +795,14 @@ 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@^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== +jsonpath-plus@^10.1.0: + version "10.4.0" + resolved "https://registry.yarnpkg.com/jsonpath-plus/-/jsonpath-plus-10.4.0.tgz#73cf545c231afda21452150b7a2a58e48e109702" + integrity sha512-T92WWatJXmhBbKsgH/0hl+jxjdXrifi5IKeMY02DWggRxX0UElcbVzPlmgLTbvsPeW1PasQ6xE2Q75stkhGbsA== dependencies: - "@jsep-plugin/assignment" "^1.2.1" - "@jsep-plugin/regex" "^1.0.3" - jsep "^1.3.9" + "@jsep-plugin/assignment" "^1.3.0" + "@jsep-plugin/regex" "^1.0.4" + jsep "^1.4.0" jsonpath-plus@^10.3.0: version "10.3.0" @@ -801,6 +813,11 @@ jsonpath-plus@^10.3.0: "@jsep-plugin/regex" "^1.0.4" jsep "^1.4.0" +jsonrepair@^3.12.0: + version "3.13.2" + resolved "https://registry.yarnpkg.com/jsonrepair/-/jsonrepair-3.13.2.tgz#cdc35669241482969d0ef5c7a2e4673abccd76e1" + integrity sha512-Leuly0nbM4R+S5SVJk3VHfw1oxnlEK9KygdZvfUtEtTawNDyzB4qa1xWTmFt1aeoA7sXZkVTRuIixJ8bAvqVUg== + liquid-json@0.3.1: version "0.3.1" resolved "https://registry.yarnpkg.com/liquid-json/-/liquid-json-0.3.1.tgz#9155a18136d8a6b2615e5f16f9a2448ab6b50eea" @@ -1047,15 +1064,6 @@ quick-format-unescaped@^4.0.3: resolved "https://registry.yarnpkg.com/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz#93ef6dd8d3453cbc7970dd614fad4c5954d6b5a7" integrity sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg== -readable-stream@^3.0.0: - version "3.6.2" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967" - integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== - dependencies: - inherits "^2.0.3" - string_decoder "^1.1.1" - util-deprecate "^1.0.1" - readdirp@~3.6.0: version "3.6.0" resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" @@ -1073,11 +1081,6 @@ require-from-string@^2.0.2: resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== -safe-buffer@~5.2.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" - integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== - safe-stable-stringify@^1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz#c8a220ab525cd94e60ebf47ddc404d610dc5d84a" @@ -1115,12 +1118,10 @@ sonic-boom@^1.0.2: atomic-sleep "^1.0.0" flatstr "^1.0.12" -split2@^3.2.2: - version "3.2.2" - resolved "https://registry.yarnpkg.com/split2/-/split2-3.2.2.tgz#bf2cf2a37d838312c249c89206fd7a17dd12365f" - integrity sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg== - dependencies: - readable-stream "^3.0.0" +split2@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/split2/-/split2-4.2.0.tgz#c9c5920904d148bab0b9f67145f245a86aadbfa4" + integrity sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg== sprintf-js@~1.0.2: version "1.0.3" @@ -1136,13 +1137,6 @@ string-width@^4.1.0, string-width@^4.2.0: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.1" -string_decoder@^1.1.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" - integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== - dependencies: - safe-buffer "~5.2.0" - strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" @@ -1160,6 +1154,11 @@ strnum@^1.0.5: resolved "https://registry.yarnpkg.com/strnum/-/strnum-1.1.2.tgz#57bca4fbaa6f271081715dbc9ed7cee5493e28e4" integrity sha512-vrN+B7DBIoTTZjnPNewwhx6cBA/H+IS7rfW68n7XxC1y7uoiGQBxaKzqucGUgavX15dJgiGztLJ8vxuEzwqBdA== +strnum@^2.1.2: + version "2.2.0" + resolved "https://registry.yarnpkg.com/strnum/-/strnum-2.2.0.tgz#8b582b637e4621f62ff714493e0ce30846f903a6" + integrity sha512-Y7Bj8XyJxnPAORMZj/xltsfo55uOiyHcU2tnAVzHUnSJR/KsEX+9RoDeXEnsXtl/CX4fAcrt64gZ13aGaWPeBg== + supports-color@^5.3.0: version "5.5.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" @@ -1214,11 +1213,6 @@ urijs@^1.19.11: resolved "https://registry.yarnpkg.com/urijs/-/urijs-1.19.11.tgz#204b0d6b605ae80bea54bea39280cdb7c9f923cc" integrity sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ== -util-deprecate@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== - utility-types@^3.10.0: version "3.11.0" resolved "https://registry.yarnpkg.com/utility-types/-/utility-types-3.11.0.tgz#607c40edb4f258915e901ea7995607fdf319424c"