Skip to content

Commit 2799d06

Browse files
committed
Release 0.1.0
1 parent 0c8fca4 commit 2799d06

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ publishing {
4646
maven(MavenPublication) {
4747
groupId = 'dev.vapi'
4848
artifactId = 'server-sdk'
49-
version = '0.0.0-alpha6'
49+
version = '0.1.0'
5050
from components.java
5151
pom {
5252
scm {

src/main/java/com/vapi/api/core/ClientOptions.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private ClientOptions(
3030
{
3131
put("X-Fern-Language", "JAVA");
3232
put("X-Fern-SDK-Name", "com.vapi.fern:api-sdk");
33-
put("X-Fern-SDK-Version", "0.0.0-alpha6");
33+
put("X-Fern-SDK-Version", "0.1.0");
3434
}
3535
});
3636
this.headerSuppliers = headerSuppliers;

src/main/java/com/vapi/api/resources/logs/LogsClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public SyncPagingIterable<Log> get(LogsGetRequest request, RequestOptions reques
118118
if (response.isSuccessful()) {
119119
LogsPaginatedResponse parsedResponse =
120120
ObjectMappers.JSON_MAPPER.readValue(responseBody.string(), LogsPaginatedResponse.class);
121-
double newPageNumber = request.getPage().map(page -> page + 1).orElse(1);
121+
int newPageNumber = request.getPage().map(page -> page + 1).orElse(1);
122122
LogsGetRequest nextRequest = LogsGetRequest.builder()
123123
.from(request)
124124
.page(newPageNumber)

src/main/java/com/vapi/api/resources/logs/requests/LogsGetRequest.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public final class LogsGetRequest {
3737

3838
private final Optional<String> callId;
3939

40-
private final Optional<Double> page;
40+
private final Optional<Integer> page;
4141

4242
private final Optional<LogsGetRequestSortOrder> sortOrder;
4343

@@ -69,7 +69,7 @@ private LogsGetRequest(
6969
Optional<String> customerId,
7070
Optional<String> squadId,
7171
Optional<String> callId,
72-
Optional<Double> page,
72+
Optional<Integer> page,
7373
Optional<LogsGetRequestSortOrder> sortOrder,
7474
Optional<Double> limit,
7575
Optional<OffsetDateTime> createdAtGt,
@@ -162,7 +162,7 @@ public Optional<String> getCallId() {
162162
* @return This is the page number to return. Defaults to 1.
163163
*/
164164
@JsonProperty("page")
165-
public Optional<Double> getPage() {
165+
public Optional<Integer> getPage() {
166166
return page;
167167
}
168168

@@ -326,7 +326,7 @@ public static final class Builder {
326326

327327
private Optional<String> callId = Optional.empty();
328328

329-
private Optional<Double> page = Optional.empty();
329+
private Optional<Integer> page = Optional.empty();
330330

331331
private Optional<LogsGetRequestSortOrder> sortOrder = Optional.empty();
332332

@@ -453,12 +453,12 @@ public Builder callId(String callId) {
453453
}
454454

455455
@JsonSetter(value = "page", nulls = Nulls.SKIP)
456-
public Builder page(Optional<Double> page) {
456+
public Builder page(Optional<Integer> page) {
457457
this.page = page;
458458
return this;
459459
}
460460

461-
public Builder page(Double page) {
461+
public Builder page(Integer page) {
462462
this.page = Optional.ofNullable(page);
463463
return this;
464464
}

0 commit comments

Comments
 (0)