Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
],
"retry-status-codes": "legacy"
},
"originGitCommit": "267ec323a4305eba2c41bd93e26686a26e329107",
"originGitCommit": "b98152f4744d4752cacd615b76d9524eae3eb3a3",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"ciProvider": "github",
"sdkVersion": "2.0.2"
"sdkVersion": "2.0.3"
}
10 changes: 10 additions & 0 deletions .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ src/test/java/com/pipedream/api/TokensWireTest.java
src/test/java/com/pipedream/api/testutil/MockResponse.java
src/test/java/com/pipedream/api/testutil/MockWebServer.java
src/test/java/com/pipedream/api/testutil/RecordedRequest.java
.fern/replay.lock
.fern/replay.yml
.gitattributes
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.fern/replay.lock linguist-generated=true
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Add the dependency in your `build.gradle` file:

```groovy
dependencies {
implementation 'com.pipedream:pipedream:2.0.2'
implementation 'com.pipedream:pipedream:2.0.3'
}
```

Expand All @@ -42,7 +42,7 @@ Add the dependency in your `pom.xml` file:
<dependency>
<groupId>com.pipedream</groupId>
<artifactId>pipedream</artifactId>
<version>2.0.2</version>
<version>2.0.3</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 = '2.0.2'
version = '2.0.3'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -79,7 +79,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.pipedream'
artifactId = 'pipedream'
version = '2.0.2'
version = '2.0.3'
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 @@ -41,10 +41,10 @@ private ClientOptions(
this.headers.putAll(headers);
this.headers.putAll(new HashMap<String, String>() {
{
put("User-Agent", "com.pipedream:pipedream/2.0.2");
put("User-Agent", "com.pipedream:pipedream/2.0.3");
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.pipedream.fern:api-sdk");
put("X-Fern-SDK-Version", "2.0.2");
put("X-Fern-SDK-Version", "2.0.3");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
66 changes: 64 additions & 2 deletions src/main/java/com/pipedream/api/types/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public final class App {

private final double featuredWeight;

private final List<AppScopeProfilesItem> scopeProfiles;

private final Map<String, Object> additionalProperties;

private App(
Expand All @@ -53,6 +55,7 @@ private App(
Optional<String> customFieldsJson,
List<String> categories,
double featuredWeight,
List<AppScopeProfilesItem> scopeProfiles,
Map<String, Object> additionalProperties) {
this.id = id;
this.nameSlug = nameSlug;
Expand All @@ -63,6 +66,7 @@ private App(
this.customFieldsJson = customFieldsJson;
this.categories = categories;
this.featuredWeight = featuredWeight;
this.scopeProfiles = scopeProfiles;
this.additionalProperties = additionalProperties;
}

Expand Down Expand Up @@ -135,6 +139,14 @@ public double getFeaturedWeight() {
return featuredWeight;
}

/**
* @return Named subsets of the app's OAuth scopes that may be requested when users connect their accounts (via the <code>oauth_scope_profile</code> parameter). Empty for apps that don't define any.
*/
@JsonProperty("scope_profiles")
public List<AppScopeProfilesItem> getScopeProfiles() {
return scopeProfiles;
}

@java.lang.Override
public boolean equals(Object other) {
if (this == other) return true;
Expand All @@ -155,7 +167,8 @@ private boolean equalTo(App other) {
&& imgSrc.equals(other.imgSrc)
&& customFieldsJson.equals(other.customFieldsJson)
&& categories.equals(other.categories)
&& featuredWeight == other.featuredWeight;
&& featuredWeight == other.featuredWeight
&& scopeProfiles.equals(other.scopeProfiles);
}

@java.lang.Override
Expand All @@ -169,7 +182,8 @@ public int hashCode() {
this.imgSrc,
this.customFieldsJson,
this.categories,
this.featuredWeight);
this.featuredWeight,
this.scopeProfiles);
}

@java.lang.Override
Expand Down Expand Up @@ -251,6 +265,15 @@ public interface _FinalStage {
_FinalStage addCategories(String categories);

_FinalStage addAllCategories(List<String> categories);

/**
* <p>Named subsets of the app's OAuth scopes that may be requested when users connect their accounts (via the <code>oauth_scope_profile</code> parameter). Empty for apps that don't define any.</p>
*/
_FinalStage scopeProfiles(List<AppScopeProfilesItem> scopeProfiles);

_FinalStage addScopeProfiles(AppScopeProfilesItem scopeProfiles);

_FinalStage addAllScopeProfiles(List<AppScopeProfilesItem> scopeProfiles);
}

@JsonIgnoreProperties(ignoreUnknown = true)
Expand All @@ -264,6 +287,8 @@ public static final class Builder

private double featuredWeight;

private List<AppScopeProfilesItem> scopeProfiles = new ArrayList<>();

private List<String> categories = new ArrayList<>();

private Optional<String> customFieldsJson = Optional.empty();
Expand All @@ -290,6 +315,7 @@ public Builder from(App other) {
customFieldsJson(other.getCustomFieldsJson());
categories(other.getCategories());
featuredWeight(other.getFeaturedWeight());
scopeProfiles(other.getScopeProfiles());
return this;
}

Expand Down Expand Up @@ -341,6 +367,41 @@ public _FinalStage featuredWeight(double featuredWeight) {
return this;
}

/**
* <p>Named subsets of the app's OAuth scopes that may be requested when users connect their accounts (via the <code>oauth_scope_profile</code> parameter). Empty for apps that don't define any.</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
public _FinalStage addAllScopeProfiles(List<AppScopeProfilesItem> scopeProfiles) {
if (scopeProfiles != null) {
this.scopeProfiles.addAll(scopeProfiles);
}
return this;
}

/**
* <p>Named subsets of the app's OAuth scopes that may be requested when users connect their accounts (via the <code>oauth_scope_profile</code> parameter). Empty for apps that don't define any.</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
public _FinalStage addScopeProfiles(AppScopeProfilesItem scopeProfiles) {
this.scopeProfiles.add(scopeProfiles);
return this;
}

/**
* <p>Named subsets of the app's OAuth scopes that may be requested when users connect their accounts (via the <code>oauth_scope_profile</code> parameter). Empty for apps that don't define any.</p>
*/
@java.lang.Override
@JsonSetter(value = "scope_profiles", nulls = Nulls.SKIP)
public _FinalStage scopeProfiles(List<AppScopeProfilesItem> scopeProfiles) {
this.scopeProfiles.clear();
if (scopeProfiles != null) {
this.scopeProfiles.addAll(scopeProfiles);
}
return this;
}

/**
* <p>Categories associated with the app</p>
* @return Reference to {@code this} so that method calls can be chained together.
Expand Down Expand Up @@ -461,6 +522,7 @@ public App build() {
customFieldsJson,
categories,
featuredWeight,
scopeProfiles,
additionalProperties);
}

Expand Down
Loading
Loading