Skip to content

Commit 95a012b

Browse files
committed
Resolve VCSWP-23999
1 parent c800898 commit 95a012b

12 files changed

Lines changed: 424 additions & 58 deletions

File tree

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Add this dependency to your project's POM:
4040
<dependency>
4141
<groupId>com.github.freeclimbapi</groupId>
4242
<artifactId>freeclimb-java-client</artifactId>
43-
<version>6.3.0</version>
43+
<version>6.2.1</version>
4444
<scope>compile</scope>
4545
</dependency>
4646
```
@@ -56,7 +56,9 @@ Add this dependency to your project's build file:
5656
}
5757
5858
dependencies {
59-
implementation "com.github.freeclimbapi:freeclimb-java-client:6.3.0"
59+
implementation "com.github.freeclimbapi:freeclimb-java-client:6.2.1"
60+
implementation("com.squareup.okhttp3:okhttp:4.9.3")
61+
implementation("com.squareup.okhttp3:logging-interceptor:4.9.3")
6062
}
6163
```
6264

@@ -70,7 +72,7 @@ mvn clean package
7072

7173
Then manually install the following JARs:
7274

73-
* `target/freeclimb-java-client-6.3.0.jar`
75+
* `target/freeclimb-java-client-6.2.1.jar`
7476
* `target/lib/*.jar`
7577

7678
## Getting Started
@@ -93,7 +95,7 @@ public class Example {
9395
// Configure API client
9496
ApiClient defaultClient = Configuration.getDefaultApiClient();
9597
defaultClient.setBasePath("https://www.freeclimb.com/apiserver");
96-
defaultClient.setAccountId("YOUR_ACCOUNT_ID");
98+
defaultClient.setAccountId("AC0123456789abcdefABCDEF0123456789abcdef00");
9799
defaultClient.setApiKey("YOUR_API_KEY");
98100

99101
DefaultApi apiInstance = new DefaultApi(defaultClient);

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'com.github.freeclimbapi'
7-
version = '6.3.0'
7+
version = '6.2.1'
88

99
buildscript {
1010
repositories {
@@ -154,7 +154,7 @@ spotless {
154154
// don't need to set target, it is inferred from java
155155

156156
// apply a specific flavor of google-java-format
157-
googleJavaFormat('1.19.2').aosp().reflowLongStrings()
157+
googleJavaFormat('1.24.0').aosp().reflowLongStrings()
158158

159159
removeUnusedImports()
160160
importOrder()

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.github.freeclimbapi",
44
name := "freeclimb-java-client",
5-
version := "6.3.0",
5+
version := "6.2.1",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/CallResult.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Name | Type | Description | Notes
2323
**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]
2424
**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]
2525
**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]
26+
**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]
2627
**direction** | **CallDirection** | | [optional]
2728
**answeredBy** | **AnsweredBy** | | [optional]
2829
**subresourceUris** | **Object** | The list of subresources for this Call. These include things like logs and recordings associated with the Call. | [optional]

docs/DefaultApi.md

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ Name | Type | Description | Notes
273273
### HTTP response details
274274
| Status code | Description | Response headers |
275275
|-------------|-------------|------------------|
276-
**200** | Successfuly created queue | - |
276+
**201** | Successfuly created queue | - |
277277

278278
<a name="createAnApplication"></a>
279279
# **createAnApplication**
@@ -3094,7 +3094,7 @@ Name | Type | Description | Notes
30943094

30953095
<a name="listCallRecordings"></a>
30963096
# **listCallRecordings**
3097-
> RecordingList listCallRecordings(callId, dateCreated)
3097+
> RecordingList listCallRecordings(callId, dateCreated, startTime, endTime)
30983098

30993099
List Call Recordings
31003100

@@ -3123,8 +3123,12 @@ public class Example {
31233123

31243124
String dateCreated = "dateCreated_example"; // String | Only show recordings created on the specified date, in the form *YYYY-MM-DD*.
31253125

3126+
String startTime = "startTime_example"; // String | Only show Recordings created at or after this time, given as YYYY-MM-DD hh:mm:ss.
3127+
3128+
String endTime = "endTime_example"; // String | Only show Recordings created at or before this time, given as YYYY-MM-DD hh:mm:ss.
3129+
31263130
try {
3127-
RecordingList result = apiInstance.listCallRecordings(callId, dateCreated);
3131+
RecordingList result = apiInstance.listCallRecordings(callId, dateCreated, startTime, endTime);
31283132
System.out.println(result);
31293133
} catch (ApiException e) {
31303134
System.err.println("Exception when calling DefaultApi#listCallRecordings");
@@ -3143,6 +3147,8 @@ Name | Type | Description | Notes
31433147
------------- | ------------- | ------------- | -------------
31443148
**callId** | **String**| String that uniquely identifies this call resource. |
31453149
**dateCreated** | **String**| Only show recordings created on the specified date, in the form *YYYY-MM-DD*. | [optional]
3150+
**startTime** | **String**| Only show Recordings created at or after this time, given as YYYY-MM-DD hh:mm:ss. | [optional]
3151+
**endTime** | **String**| Only show Recordings created at or before this time, given as YYYY-MM-DD hh:mm:ss. | [optional]
31463152

31473153

31483154
### Return type
@@ -3165,7 +3171,7 @@ Name | Type | Description | Notes
31653171

31663172
<a name="listCalls"></a>
31673173
# **listCalls**
3168-
> CallList listCalls(active, to, from, status, startTime, endTime, parentCallId, applicationId, riskScoreMin, riskScoreMax)
3174+
> CallList listCalls(usedAudioStream, active, to, from, status, startTime, endTime, parentCallId, applicationId, riskScoreMin, riskScoreMax)
31693175

31703176
List Calls
31713177

@@ -3190,6 +3196,8 @@ public class Example {
31903196

31913197
DefaultApi apiInstance = new DefaultApi(defaultClient);
31923198

3199+
Boolean usedAudioStream = false; // Boolean | If usedAudioStream is set to true then all calls that have a audioStreamDuration > 0 will be returned
3200+
31933201
Boolean active = false; // Boolean | If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query.
31943202

31953203
String to = "to_example"; // String | Only show Calls to this phone number.
@@ -3209,7 +3217,7 @@ public class Example {
32093217
Integer riskScoreMax = 56; // Integer | The maximum riskScore that should be included in the list.
32103218

32113219
try {
3212-
CallList result = apiInstance.listCalls(active, to, from, status, startTime, endTime, parentCallId, applicationId, riskScoreMin, riskScoreMax);
3220+
CallList result = apiInstance.listCalls(usedAudioStream, active, to, from, status, startTime, endTime, parentCallId, applicationId, riskScoreMin, riskScoreMax);
32133221
System.out.println(result);
32143222
} catch (ApiException e) {
32153223
System.err.println("Exception when calling DefaultApi#listCalls");
@@ -3226,6 +3234,7 @@ public class Example {
32263234

32273235
Name | Type | Description | Notes
32283236
------------- | ------------- | ------------- | -------------
3237+
**usedAudioStream** | **Boolean**| If usedAudioStream is set to true then all calls that have a audioStreamDuration &gt; 0 will be returned | [optional] [default to false]
32293238
**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]
32303239
**to** | **String**| Only show Calls to this phone number. | [optional]
32313240
**from** | **String**| Only show Calls from this phone number. | [optional]
@@ -3258,7 +3267,7 @@ Name | Type | Description | Notes
32583267

32593268
<a name="listConferenceRecordings"></a>
32603269
# **listConferenceRecordings**
3261-
> RecordingList listConferenceRecordings(conferenceId, callId, dateCreated)
3270+
> RecordingList listConferenceRecordings(conferenceId, callId, dateCreated, startTime, endTime)
32623271

32633272
List Conference Recordings
32643273

@@ -3289,8 +3298,12 @@ public class Example {
32893298

32903299
String dateCreated = "dateCreated_example"; // String | Only show Recordings created on this date, formatted as *YYYY-MM-DD*.
32913300

3301+
String startTime = "startTime_example"; // String | Only show Recordings created at or after this time, given as YYYY-MM-DD hh:mm:ss.
3302+
3303+
String endTime = "endTime_example"; // String | Only show Recordings created at or before this time, given as YYYY-MM-DD hh:mm:ss.
3304+
32923305
try {
3293-
RecordingList result = apiInstance.listConferenceRecordings(conferenceId, callId, dateCreated);
3306+
RecordingList result = apiInstance.listConferenceRecordings(conferenceId, callId, dateCreated, startTime, endTime);
32943307
System.out.println(result);
32953308
} catch (ApiException e) {
32963309
System.err.println("Exception when calling DefaultApi#listConferenceRecordings");
@@ -3310,6 +3323,8 @@ Name | Type | Description | Notes
33103323
**conferenceId** | **String**| Show only Recordings made during the conference with this ID. |
33113324
**callId** | **String**| Show only Recordings made during the Call with this ID. | [optional]
33123325
**dateCreated** | **String**| Only show Recordings created on this date, formatted as *YYYY-MM-DD*. | [optional]
3326+
**startTime** | **String**| Only show Recordings created at or after this time, given as YYYY-MM-DD hh:mm:ss. | [optional]
3327+
**endTime** | **String**| Only show Recordings created at or before this time, given as YYYY-MM-DD hh:mm:ss. | [optional]
33133328

33143329

33153330
### Return type
@@ -3731,7 +3746,7 @@ Name | Type | Description | Notes
37313746

37323747
<a name="listRecordings"></a>
37333748
# **listRecordings**
3734-
> RecordingList listRecordings(callId, conferenceId, dateCreated)
3749+
> RecordingList listRecordings(callId, conferenceId, dateCreated, startTime, endTime)
37353750

37363751
List Recordings
37373752

@@ -3762,8 +3777,12 @@ public class Example {
37623777

37633778
String dateCreated = "dateCreated_example"; // String | Only show Recordings created on this date, formatted as *YYYY-MM-DD*.
37643779

3780+
String startTime = "startTime_example"; // String | Only show Recordings created at or after this time, given as YYYY-MM-DD hh:mm:ss.
3781+
3782+
String endTime = "endTime_example"; // String | Only show Recordings created at or before this time, given as YYYY-MM-DD hh:mm:ss.
3783+
37653784
try {
3766-
RecordingList result = apiInstance.listRecordings(callId, conferenceId, dateCreated);
3785+
RecordingList result = apiInstance.listRecordings(callId, conferenceId, dateCreated, startTime, endTime);
37673786
System.out.println(result);
37683787
} catch (ApiException e) {
37693788
System.err.println("Exception when calling DefaultApi#listRecordings");
@@ -3783,6 +3802,8 @@ Name | Type | Description | Notes
37833802
**callId** | **String**| Show only Recordings made during the Call with this ID. | [optional]
37843803
**conferenceId** | **String**| Show only Recordings made during the conference with this ID. | [optional]
37853804
**dateCreated** | **String**| Only show Recordings created on this date, formatted as *YYYY-MM-DD*. | [optional]
3805+
**startTime** | **String**| Only show Recordings created at or after this time, given as YYYY-MM-DD hh:mm:ss. | [optional]
3806+
**endTime** | **String**| Only show Recordings created at or before this time, given as YYYY-MM-DD hh:mm:ss. | [optional]
37863807

37873808

37883809
### Return type

openapi.json

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3175,6 +3175,11 @@
31753175
"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.",
31763176
"nullable": true
31773177
},
3178+
"audioStreamDuration": {
3179+
"type": "integer",
3180+
"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.",
3181+
"nullable": true
3182+
},
31783183
"direction": {
31793184
"$ref": "#/components/schemas/CallDirection"
31803185
},
@@ -6003,6 +6008,16 @@
60036008
"summary": "List Calls",
60046009
"operationId": "list-calls",
60056010
"parameters": [
6011+
{
6012+
"name": "usedAudioStream",
6013+
"in": "query",
6014+
"description": "If usedAudioStream is set to true then all calls that have a audioStreamDuration > 0 will be returned ",
6015+
"required": false,
6016+
"schema": {
6017+
"type": "boolean",
6018+
"default": false
6019+
}
6020+
},
60066021
{
60076022
"name": "active",
60086023
"in": "query",
@@ -6145,6 +6160,24 @@
61456160
"schema": {
61466161
"type": "string"
61476162
}
6163+
},
6164+
{
6165+
"name": "startTime",
6166+
"in": "query",
6167+
"description": "Only show Recordings created at or after this time, given as YYYY-MM-DD hh:mm:ss.",
6168+
"required": false,
6169+
"schema": {
6170+
"type": "string"
6171+
}
6172+
},
6173+
{
6174+
"name": "endTime",
6175+
"in": "query",
6176+
"description": "Only show Recordings created at or before this time, given as YYYY-MM-DD hh:mm:ss.",
6177+
"required": false,
6178+
"schema": {
6179+
"type": "string"
6180+
}
61486181
}
61496182
],
61506183
"deprecated": false,
@@ -6619,6 +6652,24 @@
66196652
"schema": {
66206653
"type": "string"
66216654
}
6655+
},
6656+
{
6657+
"name": "startTime",
6658+
"in": "query",
6659+
"description": "Only show Recordings created at or after this time, given as YYYY-MM-DD hh:mm:ss.",
6660+
"required": false,
6661+
"schema": {
6662+
"type": "string"
6663+
}
6664+
},
6665+
{
6666+
"name": "endTime",
6667+
"in": "query",
6668+
"description": "Only show Recordings created at or before this time, given as YYYY-MM-DD hh:mm:ss.",
6669+
"required": false,
6670+
"schema": {
6671+
"type": "string"
6672+
}
66226673
}
66236674
],
66246675
"responses": {
@@ -6766,7 +6817,7 @@
67666817
},
67676818
"deprecated": false,
67686819
"responses": {
6769-
"200": {
6820+
"201": {
67706821
"description": "Successfuly created queue",
67716822
"content": {
67726823
"application/json": {
@@ -7057,6 +7108,24 @@
70577108
},
70587109
{
70597110
"$ref": "#/components/parameters/AccountId"
7111+
},
7112+
{
7113+
"name": "startTime",
7114+
"in": "query",
7115+
"description": "Only show Recordings created at or after this time, given as YYYY-MM-DD hh:mm:ss.",
7116+
"required": false,
7117+
"schema": {
7118+
"type": "string"
7119+
}
7120+
},
7121+
{
7122+
"name": "endTime",
7123+
"in": "query",
7124+
"description": "Only show Recordings created at or before this time, given as YYYY-MM-DD hh:mm:ss.",
7125+
"required": false,
7126+
"schema": {
7127+
"type": "string"
7128+
}
70607129
}
70617130
],
70627131
"responses": {

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>freeclimb-java-client</artifactId>
66
<packaging>jar</packaging>
77
<name>freeclimb-java-client</name>
8-
<version>6.3.0</version>
8+
<version>6.2.1</version>
99
<url>https://github.com/freeclimbapi/java-sdk</url>
1010
<description>FreeClimb Java Client</description>
1111
<scm>
@@ -16,8 +16,8 @@
1616

1717
<licenses>
1818
<license>
19-
<name>MIT</name>
20-
<url>https://mit-license.org/</url>
19+
<name>Unlicense</name>
20+
<url>http://unlicense.org</url>
2121
<distribution>repo</distribution>
2222
</license>
2323
</licenses>
@@ -209,7 +209,7 @@
209209
<!-- no need to specify files, inferred automatically, but you can if you want -->
210210
<!-- apply a specific flavor of google-java-format and reflow long strings -->
211211
<googleJavaFormat>
212-
<version>1.19.2</version>
212+
<version>1.34.0</version>
213213
<style>AOSP</style>
214214
<reflowLongStrings>true</reflowLongStrings>
215215
</googleJavaFormat>
@@ -343,6 +343,6 @@
343343
<org-json-version>20231013</org-json-version>
344344
<junit-version>4.13.2</junit-version>
345345
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
346-
<spotless.version>2.43.0</spotless.version>
346+
<spotless.version>3.2.1</spotless.version>
347347
</properties>
348348
</project>

src/main/java/com/github/freeclimbapi/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private void init() {
121121
json = new JSON();
122122

123123
// Set default User-Agent.
124-
setUserAgent("OpenAPI-Generator/6.3.0/java");
124+
setUserAgent("OpenAPI-Generator/6.2.1/java");
125125

126126
authentications = new HashMap<String, Authentication>();
127127
}

0 commit comments

Comments
 (0)