Skip to content

Commit 8d863ec

Browse files
committed
SDK regeneration
1 parent fd6995d commit 8d863ec

File tree

52 files changed

+1146
-1934
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1146
-1934
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Add the dependency in your `pom.xml` file:
2525
<dependency>
2626
<groupId>com.pipedream</groupId>
2727
<artifactId>pipedream</artifactId>
28-
<version>1.0.5</version>
28+
<version>1.0.6</version>
2929
</dependency>
3030
```
3131

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ java {
4848

4949
group = 'com.pipedream'
5050

51-
version = '1.0.5'
51+
version = '1.0.6'
5252

5353
jar {
5454
dependsOn(":generatePomFileForMavenPublication")
@@ -79,7 +79,7 @@ publishing {
7979
maven(MavenPublication) {
8080
groupId = 'com.pipedream'
8181
artifactId = 'pipedream'
82-
version = '1.0.5'
82+
version = '1.0.6'
8383
from components.java
8484
pom {
8585
name = 'pipedream'

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ private ClientOptions(
3535
this.headers.putAll(headers);
3636
this.headers.putAll(new HashMap<String, String>() {
3737
{
38-
put("User-Agent", "com.pipedream:pipedream/1.0.5");
38+
put("User-Agent", "com.pipedream:pipedream/1.0.6");
3939
put("X-Fern-Language", "JAVA");
4040
put("X-Fern-SDK-Name", "com.pipedream.fern:api-sdk");
41-
put("X-Fern-SDK-Version", "1.0.5");
41+
put("X-Fern-SDK-Version", "1.0.6");
4242
}
4343
});
4444
this.headerSuppliers = headerSuppliers;

src/main/java/com/pipedream/api/resources/accounts/AsyncRawAccountsClient.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ public CompletableFuture<BaseClientHttpResponse<SyncPagingIterable<Account>>> li
6868
.addPathSegments("v1/connect")
6969
.addPathSegment(clientOptions.projectId())
7070
.addPathSegments("accounts");
71-
if (request.getAppId().isPresent()) {
72-
QueryStringMapper.addQueryParameter(
73-
httpUrl, "app_id", request.getAppId().get(), false);
74-
}
7571
if (request.getExternalUserId().isPresent()) {
7672
QueryStringMapper.addQueryParameter(
7773
httpUrl, "external_user_id", request.getExternalUserId().get(), false);
@@ -92,6 +88,9 @@ public CompletableFuture<BaseClientHttpResponse<SyncPagingIterable<Account>>> li
9288
QueryStringMapper.addQueryParameter(
9389
httpUrl, "limit", request.getLimit().get(), false);
9490
}
91+
if (request.getApp().isPresent()) {
92+
QueryStringMapper.addQueryParameter(httpUrl, "app", request.getApp().get(), false);
93+
}
9594
if (request.getIncludeCredentials().isPresent()) {
9695
QueryStringMapper.addQueryParameter(
9796
httpUrl,
@@ -183,10 +182,6 @@ public CompletableFuture<BaseClientHttpResponse<Account>> create(
183182
.addPathSegments("v1/connect")
184183
.addPathSegment(clientOptions.projectId())
185184
.addPathSegments("accounts");
186-
if (request.getAppId().isPresent()) {
187-
QueryStringMapper.addQueryParameter(
188-
httpUrl, "app_id", request.getAppId().get(), false);
189-
}
190185
if (request.getExternalUserId().isPresent()) {
191186
QueryStringMapper.addQueryParameter(
192187
httpUrl, "external_user_id", request.getExternalUserId().get(), false);

src/main/java/com/pipedream/api/resources/accounts/RawAccountsClient.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ public BaseClientHttpResponse<SyncPagingIterable<Account>> list(
6363
.addPathSegments("v1/connect")
6464
.addPathSegment(clientOptions.projectId())
6565
.addPathSegments("accounts");
66-
if (request.getAppId().isPresent()) {
67-
QueryStringMapper.addQueryParameter(
68-
httpUrl, "app_id", request.getAppId().get(), false);
69-
}
7066
if (request.getExternalUserId().isPresent()) {
7167
QueryStringMapper.addQueryParameter(
7268
httpUrl, "external_user_id", request.getExternalUserId().get(), false);
@@ -87,6 +83,9 @@ public BaseClientHttpResponse<SyncPagingIterable<Account>> list(
8783
QueryStringMapper.addQueryParameter(
8884
httpUrl, "limit", request.getLimit().get(), false);
8985
}
86+
if (request.getApp().isPresent()) {
87+
QueryStringMapper.addQueryParameter(httpUrl, "app", request.getApp().get(), false);
88+
}
9089
if (request.getIncludeCredentials().isPresent()) {
9190
QueryStringMapper.addQueryParameter(
9291
httpUrl,
@@ -156,10 +155,6 @@ public BaseClientHttpResponse<Account> create(CreateAccountOpts request, Request
156155
.addPathSegments("v1/connect")
157156
.addPathSegment(clientOptions.projectId())
158157
.addPathSegments("accounts");
159-
if (request.getAppId().isPresent()) {
160-
QueryStringMapper.addQueryParameter(
161-
httpUrl, "app_id", request.getAppId().get(), false);
162-
}
163158
if (request.getExternalUserId().isPresent()) {
164159
QueryStringMapper.addQueryParameter(
165160
httpUrl, "external_user_id", request.getExternalUserId().get(), false);

src/main/java/com/pipedream/api/resources/accounts/requests/AccountsListRequest.java

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
@JsonInclude(JsonInclude.Include.NON_ABSENT)
2121
@JsonDeserialize(builder = AccountsListRequest.Builder.class)
2222
public final class AccountsListRequest {
23-
private final Optional<String> appId;
24-
2523
private final Optional<String> externalUserId;
2624

2725
private final Optional<String> oauthAppId;
@@ -32,37 +30,31 @@ public final class AccountsListRequest {
3230

3331
private final Optional<Integer> limit;
3432

33+
private final Optional<String> app;
34+
3535
private final Optional<Boolean> includeCredentials;
3636

3737
private final Map<String, Object> additionalProperties;
3838

3939
private AccountsListRequest(
40-
Optional<String> appId,
4140
Optional<String> externalUserId,
4241
Optional<String> oauthAppId,
4342
Optional<String> after,
4443
Optional<String> before,
4544
Optional<Integer> limit,
45+
Optional<String> app,
4646
Optional<Boolean> includeCredentials,
4747
Map<String, Object> additionalProperties) {
48-
this.appId = appId;
4948
this.externalUserId = externalUserId;
5049
this.oauthAppId = oauthAppId;
5150
this.after = after;
5251
this.before = before;
5352
this.limit = limit;
53+
this.app = app;
5454
this.includeCredentials = includeCredentials;
5555
this.additionalProperties = additionalProperties;
5656
}
5757

58-
/**
59-
* @return The app slug or ID to filter accounts by.
60-
*/
61-
@JsonProperty("app_id")
62-
public Optional<String> getAppId() {
63-
return appId;
64-
}
65-
6658
@JsonProperty("external_user_id")
6759
public Optional<String> getExternalUserId() {
6860
return externalUserId;
@@ -100,6 +92,14 @@ public Optional<Integer> getLimit() {
10092
return limit;
10193
}
10294

95+
/**
96+
* @return The app slug or ID to filter accounts by.
97+
*/
98+
@JsonProperty("app")
99+
public Optional<String> getApp() {
100+
return app;
101+
}
102+
103103
/**
104104
* @return Whether to retrieve the account's credentials or not
105105
*/
@@ -120,24 +120,24 @@ public Map<String, Object> getAdditionalProperties() {
120120
}
121121

122122
private boolean equalTo(AccountsListRequest other) {
123-
return appId.equals(other.appId)
124-
&& externalUserId.equals(other.externalUserId)
123+
return externalUserId.equals(other.externalUserId)
125124
&& oauthAppId.equals(other.oauthAppId)
126125
&& after.equals(other.after)
127126
&& before.equals(other.before)
128127
&& limit.equals(other.limit)
128+
&& app.equals(other.app)
129129
&& includeCredentials.equals(other.includeCredentials);
130130
}
131131

132132
@java.lang.Override
133133
public int hashCode() {
134134
return Objects.hash(
135-
this.appId,
136135
this.externalUserId,
137136
this.oauthAppId,
138137
this.after,
139138
this.before,
140139
this.limit,
140+
this.app,
141141
this.includeCredentials);
142142
}
143143

@@ -152,8 +152,6 @@ public static Builder builder() {
152152

153153
@JsonIgnoreProperties(ignoreUnknown = true)
154154
public static final class Builder {
155-
private Optional<String> appId = Optional.empty();
156-
157155
private Optional<String> externalUserId = Optional.empty();
158156

159157
private Optional<String> oauthAppId = Optional.empty();
@@ -164,6 +162,8 @@ public static final class Builder {
164162

165163
private Optional<Integer> limit = Optional.empty();
166164

165+
private Optional<String> app = Optional.empty();
166+
167167
private Optional<Boolean> includeCredentials = Optional.empty();
168168

169169
@JsonAnySetter
@@ -172,30 +172,16 @@ public static final class Builder {
172172
private Builder() {}
173173

174174
public Builder from(AccountsListRequest other) {
175-
appId(other.getAppId());
176175
externalUserId(other.getExternalUserId());
177176
oauthAppId(other.getOauthAppId());
178177
after(other.getAfter());
179178
before(other.getBefore());
180179
limit(other.getLimit());
180+
app(other.getApp());
181181
includeCredentials(other.getIncludeCredentials());
182182
return this;
183183
}
184184

185-
/**
186-
* <p>The app slug or ID to filter accounts by.</p>
187-
*/
188-
@JsonSetter(value = "app_id", nulls = Nulls.SKIP)
189-
public Builder appId(Optional<String> appId) {
190-
this.appId = appId;
191-
return this;
192-
}
193-
194-
public Builder appId(String appId) {
195-
this.appId = Optional.ofNullable(appId);
196-
return this;
197-
}
198-
199185
@JsonSetter(value = "external_user_id", nulls = Nulls.SKIP)
200186
public Builder externalUserId(Optional<String> externalUserId) {
201187
this.externalUserId = externalUserId;
@@ -263,6 +249,20 @@ public Builder limit(Integer limit) {
263249
return this;
264250
}
265251

252+
/**
253+
* <p>The app slug or ID to filter accounts by.</p>
254+
*/
255+
@JsonSetter(value = "app", nulls = Nulls.SKIP)
256+
public Builder app(Optional<String> app) {
257+
this.app = app;
258+
return this;
259+
}
260+
261+
public Builder app(String app) {
262+
this.app = Optional.ofNullable(app);
263+
return this;
264+
}
265+
266266
/**
267267
* <p>Whether to retrieve the account's credentials or not</p>
268268
*/
@@ -279,7 +279,7 @@ public Builder includeCredentials(Boolean includeCredentials) {
279279

280280
public AccountsListRequest build() {
281281
return new AccountsListRequest(
282-
appId, externalUserId, oauthAppId, after, before, limit, includeCredentials, additionalProperties);
282+
externalUserId, oauthAppId, after, before, limit, app, includeCredentials, additionalProperties);
283283
}
284284
}
285285
}

0 commit comments

Comments
 (0)