Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Add the dependency in your `pom.xml` file:
<dependency>
<groupId>com.pipedream</groupId>
<artifactId>pipedream</artifactId>
<version>1.0.5</version>
<version>1.0.6</version>
</dependency>
```

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ java {

group = 'com.pipedream'

version = '1.0.5'
version = '1.0.6'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -79,7 +79,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.pipedream'
artifactId = 'pipedream'
version = '1.0.5'
version = '1.0.6'
from components.java
pom {
name = 'pipedream'
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/pipedream/api/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ private ClientOptions(
this.headers.putAll(headers);
this.headers.putAll(new HashMap<String, String>() {
{
put("User-Agent", "com.pipedream:pipedream/1.0.5");
put("User-Agent", "com.pipedream:pipedream/1.0.6");
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.pipedream.fern:api-sdk");
put("X-Fern-SDK-Version", "1.0.5");
put("X-Fern-SDK-Version", "1.0.6");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,8 @@ public CompletableFuture<BaseClientHttpResponse<SyncPagingIterable<Account>>> li
.addPathSegments("v1/connect")
.addPathSegment(clientOptions.projectId())
.addPathSegments("accounts");
if (request.getAppId().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "app_id", request.getAppId().get(), false);
if (request.getApp().isPresent()) {
QueryStringMapper.addQueryParameter(httpUrl, "app", request.getApp().get(), false);
}
if (request.getExternalUserId().isPresent()) {
QueryStringMapper.addQueryParameter(
Expand Down Expand Up @@ -183,9 +182,8 @@ public CompletableFuture<BaseClientHttpResponse<Account>> create(
.addPathSegments("v1/connect")
.addPathSegment(clientOptions.projectId())
.addPathSegments("accounts");
if (request.getAppId().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "app_id", request.getAppId().get(), false);
if (request.getApp().isPresent()) {
QueryStringMapper.addQueryParameter(httpUrl, "app", request.getApp().get(), false);
}
if (request.getExternalUserId().isPresent()) {
QueryStringMapper.addQueryParameter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ public BaseClientHttpResponse<SyncPagingIterable<Account>> list(
.addPathSegments("v1/connect")
.addPathSegment(clientOptions.projectId())
.addPathSegments("accounts");
if (request.getAppId().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "app_id", request.getAppId().get(), false);
if (request.getApp().isPresent()) {
QueryStringMapper.addQueryParameter(httpUrl, "app", request.getApp().get(), false);
}
if (request.getExternalUserId().isPresent()) {
QueryStringMapper.addQueryParameter(
Expand Down Expand Up @@ -156,9 +155,8 @@ public BaseClientHttpResponse<Account> create(CreateAccountOpts request, Request
.addPathSegments("v1/connect")
.addPathSegment(clientOptions.projectId())
.addPathSegments("accounts");
if (request.getAppId().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "app_id", request.getAppId().get(), false);
if (request.getApp().isPresent()) {
QueryStringMapper.addQueryParameter(httpUrl, "app", request.getApp().get(), false);
}
if (request.getExternalUserId().isPresent()) {
QueryStringMapper.addQueryParameter(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = AccountsListRequest.Builder.class)
public final class AccountsListRequest {
private final Optional<String> appId;
private final Optional<String> app;

private final Optional<String> externalUserId;

Expand All @@ -37,15 +37,15 @@ public final class AccountsListRequest {
private final Map<String, Object> additionalProperties;

private AccountsListRequest(
Optional<String> appId,
Optional<String> app,
Optional<String> externalUserId,
Optional<String> oauthAppId,
Optional<String> after,
Optional<String> before,
Optional<Integer> limit,
Optional<Boolean> includeCredentials,
Map<String, Object> additionalProperties) {
this.appId = appId;
this.app = app;
this.externalUserId = externalUserId;
this.oauthAppId = oauthAppId;
this.after = after;
Expand All @@ -58,9 +58,9 @@ private AccountsListRequest(
/**
* @return The app slug or ID to filter accounts by.
*/
@JsonProperty("app_id")
public Optional<String> getAppId() {
return appId;
@JsonProperty("app")
public Optional<String> getApp() {
return app;
}

@JsonProperty("external_user_id")
Expand Down Expand Up @@ -120,7 +120,7 @@ public Map<String, Object> getAdditionalProperties() {
}

private boolean equalTo(AccountsListRequest other) {
return appId.equals(other.appId)
return app.equals(other.app)
&& externalUserId.equals(other.externalUserId)
&& oauthAppId.equals(other.oauthAppId)
&& after.equals(other.after)
Expand All @@ -132,7 +132,7 @@ private boolean equalTo(AccountsListRequest other) {
@java.lang.Override
public int hashCode() {
return Objects.hash(
this.appId,
this.app,
this.externalUserId,
this.oauthAppId,
this.after,
Expand All @@ -152,7 +152,7 @@ public static Builder builder() {

@JsonIgnoreProperties(ignoreUnknown = true)
public static final class Builder {
private Optional<String> appId = Optional.empty();
private Optional<String> app = Optional.empty();

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

Expand All @@ -172,7 +172,7 @@ public static final class Builder {
private Builder() {}

public Builder from(AccountsListRequest other) {
appId(other.getAppId());
app(other.getApp());
externalUserId(other.getExternalUserId());
oauthAppId(other.getOauthAppId());
after(other.getAfter());
Expand All @@ -185,14 +185,14 @@ public Builder from(AccountsListRequest other) {
/**
* <p>The app slug or ID to filter accounts by.</p>
*/
@JsonSetter(value = "app_id", nulls = Nulls.SKIP)
public Builder appId(Optional<String> appId) {
this.appId = appId;
@JsonSetter(value = "app", nulls = Nulls.SKIP)
public Builder app(Optional<String> app) {
this.app = app;
return this;
}

public Builder appId(String appId) {
this.appId = Optional.ofNullable(appId);
public Builder app(String app) {
this.app = Optional.ofNullable(app);
return this;
}

Expand Down Expand Up @@ -279,7 +279,7 @@ public Builder includeCredentials(Boolean includeCredentials) {

public AccountsListRequest build() {
return new AccountsListRequest(
appId, externalUserId, oauthAppId, after, before, limit, includeCredentials, additionalProperties);
app, externalUserId, oauthAppId, after, before, limit, includeCredentials, additionalProperties);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = CreateAccountOpts.Builder.class)
public final class CreateAccountOpts {
private final Optional<String> appId;
private final Optional<String> app;

private final Optional<String> externalUserId;

Expand All @@ -38,15 +38,15 @@ public final class CreateAccountOpts {
private final Map<String, Object> additionalProperties;

private CreateAccountOpts(
Optional<String> appId,
Optional<String> app,
Optional<String> externalUserId,
Optional<String> oauthAppId,
String appSlug,
String cfmapJson,
String connectToken,
Optional<String> name,
Map<String, Object> additionalProperties) {
this.appId = appId;
this.app = app;
this.externalUserId = externalUserId;
this.oauthAppId = oauthAppId;
this.appSlug = appSlug;
Expand All @@ -59,9 +59,9 @@ private CreateAccountOpts(
/**
* @return The app slug or ID to filter accounts by.
*/
@JsonProperty("app_id")
public Optional<String> getAppId() {
return appId;
@JsonProperty("app")
public Optional<String> getApp() {
return app;
}

@JsonProperty("external_user_id")
Expand Down Expand Up @@ -121,7 +121,7 @@ public Map<String, Object> getAdditionalProperties() {
}

private boolean equalTo(CreateAccountOpts other) {
return appId.equals(other.appId)
return app.equals(other.app)
&& externalUserId.equals(other.externalUserId)
&& oauthAppId.equals(other.oauthAppId)
&& appSlug.equals(other.appSlug)
Expand All @@ -133,7 +133,7 @@ private boolean equalTo(CreateAccountOpts other) {
@java.lang.Override
public int hashCode() {
return Objects.hash(
this.appId,
this.app,
this.externalUserId,
this.oauthAppId,
this.appSlug,
Expand Down Expand Up @@ -180,9 +180,9 @@ public interface _FinalStage {
/**
* <p>The app slug or ID to filter accounts by.</p>
*/
_FinalStage appId(Optional<String> appId);
_FinalStage app(Optional<String> app);

_FinalStage appId(String appId);
_FinalStage app(String app);

_FinalStage externalUserId(Optional<String> externalUserId);

Expand Down Expand Up @@ -217,7 +217,7 @@ public static final class Builder implements AppSlugStage, CfmapJsonStage, Conne

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

private Optional<String> appId = Optional.empty();
private Optional<String> app = Optional.empty();

@JsonAnySetter
private Map<String, Object> additionalProperties = new HashMap<>();
Expand All @@ -226,7 +226,7 @@ private Builder() {}

@java.lang.Override
public Builder from(CreateAccountOpts other) {
appId(other.getAppId());
app(other.getApp());
externalUserId(other.getExternalUserId());
oauthAppId(other.getOauthAppId());
appSlug(other.getAppSlug());
Expand Down Expand Up @@ -330,25 +330,25 @@ public _FinalStage externalUserId(Optional<String> externalUserId) {
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
public _FinalStage appId(String appId) {
this.appId = Optional.ofNullable(appId);
public _FinalStage app(String app) {
this.app = Optional.ofNullable(app);
return this;
}

/**
* <p>The app slug or ID to filter accounts by.</p>
*/
@java.lang.Override
@JsonSetter(value = "app_id", nulls = Nulls.SKIP)
public _FinalStage appId(Optional<String> appId) {
this.appId = appId;
@JsonSetter(value = "app", nulls = Nulls.SKIP)
public _FinalStage app(Optional<String> app) {
this.app = app;
return this;
}

@java.lang.Override
public CreateAccountOpts build() {
return new CreateAccountOpts(
appId, externalUserId, oauthAppId, appSlug, cfmapJson, connectToken, name, additionalProperties);
app, externalUserId, oauthAppId, appSlug, cfmapJson, connectToken, name, additionalProperties);
}
}
}
Loading