Skip to content

Commit

Permalink
Release 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Oct 26, 2024
1 parent 0c8fca4 commit 2799d06
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ publishing {
maven(MavenPublication) {
groupId = 'dev.vapi'
artifactId = 'server-sdk'
version = '0.0.0-alpha6'
version = '0.1.0'
from components.java
pom {
scm {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/vapi/api/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private ClientOptions(
{
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.vapi.fern:api-sdk");
put("X-Fern-SDK-Version", "0.0.0-alpha6");
put("X-Fern-SDK-Version", "0.1.0");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/vapi/api/resources/logs/LogsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public SyncPagingIterable<Log> get(LogsGetRequest request, RequestOptions reques
if (response.isSuccessful()) {
LogsPaginatedResponse parsedResponse =
ObjectMappers.JSON_MAPPER.readValue(responseBody.string(), LogsPaginatedResponse.class);
double newPageNumber = request.getPage().map(page -> page + 1).orElse(1);
int newPageNumber = request.getPage().map(page -> page + 1).orElse(1);
LogsGetRequest nextRequest = LogsGetRequest.builder()
.from(request)
.page(newPageNumber)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public final class LogsGetRequest {

private final Optional<String> callId;

private final Optional<Double> page;
private final Optional<Integer> page;

private final Optional<LogsGetRequestSortOrder> sortOrder;

Expand Down Expand Up @@ -69,7 +69,7 @@ private LogsGetRequest(
Optional<String> customerId,
Optional<String> squadId,
Optional<String> callId,
Optional<Double> page,
Optional<Integer> page,
Optional<LogsGetRequestSortOrder> sortOrder,
Optional<Double> limit,
Optional<OffsetDateTime> createdAtGt,
Expand Down Expand Up @@ -162,7 +162,7 @@ public Optional<String> getCallId() {
* @return This is the page number to return. Defaults to 1.
*/
@JsonProperty("page")
public Optional<Double> getPage() {
public Optional<Integer> getPage() {
return page;
}

Expand Down Expand Up @@ -326,7 +326,7 @@ public static final class Builder {

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

private Optional<Double> page = Optional.empty();
private Optional<Integer> page = Optional.empty();

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

Expand Down Expand Up @@ -453,12 +453,12 @@ public Builder callId(String callId) {
}

@JsonSetter(value = "page", nulls = Nulls.SKIP)
public Builder page(Optional<Double> page) {
public Builder page(Optional<Integer> page) {
this.page = page;
return this;
}

public Builder page(Double page) {
public Builder page(Integer page) {
this.page = Optional.ofNullable(page);
return this;
}
Expand Down

0 comments on commit 2799d06

Please sign in to comment.