Skip to content
Closed
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FPipedreamHQ%2Fpipedream-sdk-java)
[![Maven Central](https://img.shields.io/maven-central/v/com.pipedream/pipedream)](https://central.sonatype.com/artifact/com.pipedream/pipedream)

The Pipedream Java library provides convenient access to the Pipedream API from Java.
The Pipedream Java library provides convenient access to the Pipedream APIs from Java.

## Installation

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

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -79,7 +79,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.pipedream'
artifactId = 'pipedream'
version = '1.0.2'
version = '1.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 @@ -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.2");
put("User-Agent", "com.pipedream:pipedream/1.0.3");
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.pipedream.fern:api-sdk");
put("X-Fern-SDK-Version", "1.0.2");
put("X-Fern-SDK-Version", "1.0.3");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.fasterxml.jackson.annotation.Nulls;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.pipedream.api.core.ObjectMappers;
import com.pipedream.api.types.ConfiguredPropsValue;
import com.pipedream.api.types.RunActionOptsStashId;
import java.util.HashMap;
import java.util.Map;
Expand All @@ -26,7 +27,7 @@ public final class RunActionOpts {

private final String externalUserId;

private final Optional<Map<String, Object>> configuredProps;
private final Optional<Map<String, ConfiguredPropsValue>> configuredProps;

private final Optional<String> dynamicPropsId;

Expand All @@ -37,7 +38,7 @@ public final class RunActionOpts {
private RunActionOpts(
String id,
String externalUserId,
Optional<Map<String, Object>> configuredProps,
Optional<Map<String, ConfiguredPropsValue>> configuredProps,
Optional<String> dynamicPropsId,
Optional<RunActionOptsStashId> stashId,
Map<String, Object> additionalProperties) {
Expand Down Expand Up @@ -65,11 +66,8 @@ public String getExternalUserId() {
return externalUserId;
}

/**
* @return The configured properties for the action
*/
@JsonProperty("configured_props")
public Optional<Map<String, Object>> getConfiguredProps() {
public Optional<Map<String, ConfiguredPropsValue>> getConfiguredProps() {
return configuredProps;
}

Expand Down Expand Up @@ -138,12 +136,9 @@ public interface ExternalUserIdStage {
public interface _FinalStage {
RunActionOpts build();

/**
* <p>The configured properties for the action</p>
*/
_FinalStage configuredProps(Optional<Map<String, Object>> configuredProps);
_FinalStage configuredProps(Optional<Map<String, ConfiguredPropsValue>> configuredProps);

_FinalStage configuredProps(Map<String, Object> configuredProps);
_FinalStage configuredProps(Map<String, ConfiguredPropsValue> configuredProps);

/**
* <p>The ID for dynamic props</p>
Expand All @@ -167,7 +162,7 @@ public static final class Builder implements IdStage, ExternalUserIdStage, _Fina

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

private Optional<Map<String, Object>> configuredProps = Optional.empty();
private Optional<Map<String, ConfiguredPropsValue>> configuredProps = Optional.empty();

@JsonAnySetter
private Map<String, Object> additionalProperties = new HashMap<>();
Expand Down Expand Up @@ -241,22 +236,15 @@ public _FinalStage dynamicPropsId(Optional<String> dynamicPropsId) {
return this;
}

/**
* <p>The configured properties for the action</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
public _FinalStage configuredProps(Map<String, Object> configuredProps) {
public _FinalStage configuredProps(Map<String, ConfiguredPropsValue> configuredProps) {
this.configuredProps = Optional.ofNullable(configuredProps);
return this;
}

/**
* <p>The configured properties for the action</p>
*/
@java.lang.Override
@JsonSetter(value = "configured_props", nulls = Nulls.SKIP)
public _FinalStage configuredProps(Optional<Map<String, Object>> configuredProps) {
public _FinalStage configuredProps(Optional<Map<String, ConfiguredPropsValue>> configuredProps) {
this.configuredProps = configuredProps;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.fasterxml.jackson.annotation.Nulls;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.pipedream.api.core.ObjectMappers;
import com.pipedream.api.types.ConfiguredPropsValue;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
Expand All @@ -25,7 +26,7 @@ public final class UpdateTriggerOpts {

private final Optional<Boolean> active;

private final Optional<Map<String, Object>> configuredProps;
private final Optional<Map<String, ConfiguredPropsValue>> configuredProps;

private final Optional<String> name;

Expand All @@ -34,7 +35,7 @@ public final class UpdateTriggerOpts {
private UpdateTriggerOpts(
String externalUserId,
Optional<Boolean> active,
Optional<Map<String, Object>> configuredProps,
Optional<Map<String, ConfiguredPropsValue>> configuredProps,
Optional<String> name,
Map<String, Object> additionalProperties) {
this.externalUserId = externalUserId;
Expand All @@ -60,11 +61,8 @@ public Optional<Boolean> getActive() {
return active;
}

/**
* @return The configured properties for the trigger
*/
@JsonProperty("configured_props")
public Optional<Map<String, Object>> getConfiguredProps() {
public Optional<Map<String, ConfiguredPropsValue>> getConfiguredProps() {
return configuredProps;
}

Expand Down Expand Up @@ -127,12 +125,9 @@ public interface _FinalStage {

_FinalStage active(Boolean active);

/**
* <p>The configured properties for the trigger</p>
*/
_FinalStage configuredProps(Optional<Map<String, Object>> configuredProps);
_FinalStage configuredProps(Optional<Map<String, ConfiguredPropsValue>> configuredProps);

_FinalStage configuredProps(Map<String, Object> configuredProps);
_FinalStage configuredProps(Map<String, ConfiguredPropsValue> configuredProps);

/**
* <p>The name of the trigger</p>
Expand All @@ -148,7 +143,7 @@ public static final class Builder implements ExternalUserIdStage, _FinalStage {

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

private Optional<Map<String, Object>> configuredProps = Optional.empty();
private Optional<Map<String, ConfiguredPropsValue>> configuredProps = Optional.empty();

private Optional<Boolean> active = Optional.empty();

Expand Down Expand Up @@ -198,22 +193,15 @@ public _FinalStage name(Optional<String> name) {
return this;
}

/**
* <p>The configured properties for the trigger</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
public _FinalStage configuredProps(Map<String, Object> configuredProps) {
public _FinalStage configuredProps(Map<String, ConfiguredPropsValue> configuredProps) {
this.configuredProps = Optional.ofNullable(configuredProps);
return this;
}

/**
* <p>The configured properties for the trigger</p>
*/
@java.lang.Override
@JsonSetter(value = "configured_props", nulls = Nulls.SKIP)
public _FinalStage configuredProps(Optional<Map<String, Object>> configuredProps) {
public _FinalStage configuredProps(Optional<Map<String, ConfiguredPropsValue>> configuredProps) {
this.configuredProps = configuredProps;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.fasterxml.jackson.annotation.Nulls;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.pipedream.api.core.ObjectMappers;
import com.pipedream.api.types.ConfiguredPropsValue;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
Expand All @@ -25,7 +26,7 @@ public final class DeployTriggerOpts {

private final String externalUserId;

private final Optional<Map<String, Object>> configuredProps;
private final Optional<Map<String, ConfiguredPropsValue>> configuredProps;

private final Optional<String> dynamicPropsId;

Expand All @@ -36,7 +37,7 @@ public final class DeployTriggerOpts {
private DeployTriggerOpts(
String id,
String externalUserId,
Optional<Map<String, Object>> configuredProps,
Optional<Map<String, ConfiguredPropsValue>> configuredProps,
Optional<String> dynamicPropsId,
Optional<String> webhookUrl,
Map<String, Object> additionalProperties) {
Expand Down Expand Up @@ -64,11 +65,8 @@ public String getExternalUserId() {
return externalUserId;
}

/**
* @return The configured properties for the trigger
*/
@JsonProperty("configured_props")
public Optional<Map<String, Object>> getConfiguredProps() {
public Optional<Map<String, ConfiguredPropsValue>> getConfiguredProps() {
return configuredProps;
}

Expand Down Expand Up @@ -140,12 +138,9 @@ public interface ExternalUserIdStage {
public interface _FinalStage {
DeployTriggerOpts build();

/**
* <p>The configured properties for the trigger</p>
*/
_FinalStage configuredProps(Optional<Map<String, Object>> configuredProps);
_FinalStage configuredProps(Optional<Map<String, ConfiguredPropsValue>> configuredProps);

_FinalStage configuredProps(Map<String, Object> configuredProps);
_FinalStage configuredProps(Map<String, ConfiguredPropsValue> configuredProps);

/**
* <p>The ID for dynamic props</p>
Expand All @@ -172,7 +167,7 @@ public static final class Builder implements IdStage, ExternalUserIdStage, _Fina

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

private Optional<Map<String, Object>> configuredProps = Optional.empty();
private Optional<Map<String, ConfiguredPropsValue>> configuredProps = Optional.empty();

@JsonAnySetter
private Map<String, Object> additionalProperties = new HashMap<>();
Expand Down Expand Up @@ -253,22 +248,15 @@ public _FinalStage dynamicPropsId(Optional<String> dynamicPropsId) {
return this;
}

/**
* <p>The configured properties for the trigger</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
public _FinalStage configuredProps(Map<String, Object> configuredProps) {
public _FinalStage configuredProps(Map<String, ConfiguredPropsValue> configuredProps) {
this.configuredProps = Optional.ofNullable(configuredProps);
return this;
}

/**
* <p>The configured properties for the trigger</p>
*/
@java.lang.Override
@JsonSetter(value = "configured_props", nulls = Nulls.SKIP)
public _FinalStage configuredProps(Optional<Map<String, Object>> configuredProps) {
public _FinalStage configuredProps(Optional<Map<String, ConfiguredPropsValue>> configuredProps) {
this.configuredProps = configuredProps;
return this;
}
Expand Down
11 changes: 0 additions & 11 deletions src/main/java/com/pipedream/api/types/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ private Account(
this.additionalProperties = additionalProperties;
}

/**
* @return The unique ID of the account.
*/
@JsonProperty("id")
public String getId() {
return id;
Expand Down Expand Up @@ -237,9 +234,6 @@ public static IdStage builder() {
}

public interface IdStage {
/**
* <p>The unique ID of the account.</p>
*/
_FinalStage id(@NotNull String id);

Builder from(Account other);
Expand Down Expand Up @@ -381,11 +375,6 @@ public Builder from(Account other) {
return this;
}

/**
* <p>The unique ID of the account.</p>
* <p>The unique ID of the account.</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
@JsonSetter("id")
public _FinalStage id(@NotNull String id) {
Expand Down
Loading