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 @@ -12,7 +12,6 @@
import com.fasterxml.jackson.annotation.Nulls;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.pipedream.api.core.ObjectMappers;
import com.pipedream.api.types.ConfiguredPropValue;
import com.pipedream.api.types.RunActionOptsStashId;
import java.util.HashMap;
import java.util.Map;
Expand All @@ -27,7 +26,7 @@ public final class RunActionOpts {

private final String externalUserId;

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

private final Optional<String> dynamicPropsId;

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

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

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

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

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

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

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

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

@JsonAnySetter
private Map<String, Object> additionalProperties = new HashMap<>();
Expand Down Expand Up @@ -236,15 +241,22 @@ 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, ConfiguredPropValue> configuredProps) {
public _FinalStage configuredProps(Map<String, Object> 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, ConfiguredPropValue>> configuredProps) {
public _FinalStage configuredProps(Optional<Map<String, Object>> configuredProps) {
this.configuredProps = configuredProps;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ public CompletableFuture<BaseClientHttpResponse<SyncPagingIterable<Component>>>
if (request.getApp().isPresent()) {
QueryStringMapper.addQueryParameter(httpUrl, "app", request.getApp().get(), false);
}
if (request.getComponentType().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "component_type", request.getComponentType().get(), false);
}
Request.Builder _requestBuilder = new Request.Builder()
.url(httpUrl.build())
.method("GET", null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ public BaseClientHttpResponse<SyncPagingIterable<Component>> list(
if (request.getApp().isPresent()) {
QueryStringMapper.addQueryParameter(httpUrl, "app", request.getApp().get(), false);
}
if (request.getComponentType().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "component_type", request.getComponentType().get(), false);
}
Request.Builder _requestBuilder = new Request.Builder()
.url(httpUrl.build())
.method("GET", null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import com.fasterxml.jackson.annotation.Nulls;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.pipedream.api.core.ObjectMappers;
import com.pipedream.api.types.ComponentType;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
Expand All @@ -31,8 +30,6 @@ public final class ComponentsListRequest {

private final Optional<String> app;

private final Optional<ComponentType> componentType;

private final Map<String, Object> additionalProperties;

private ComponentsListRequest(
Expand All @@ -41,14 +38,12 @@ private ComponentsListRequest(
Optional<Integer> limit,
Optional<String> q,
Optional<String> app,
Optional<ComponentType> componentType,
Map<String, Object> additionalProperties) {
this.after = after;
this.before = before;
this.limit = limit;
this.q = q;
this.app = app;
this.componentType = componentType;
this.additionalProperties = additionalProperties;
}

Expand Down Expand Up @@ -92,14 +87,6 @@ public Optional<String> getApp() {
return app;
}

/**
* @return The type of the component to filter the components
*/
@JsonProperty("component_type")
public Optional<ComponentType> getComponentType() {
return componentType;
}

@java.lang.Override
public boolean equals(Object other) {
if (this == other) return true;
Expand All @@ -116,13 +103,12 @@ private boolean equalTo(ComponentsListRequest other) {
&& before.equals(other.before)
&& limit.equals(other.limit)
&& q.equals(other.q)
&& app.equals(other.app)
&& componentType.equals(other.componentType);
&& app.equals(other.app);
}

@java.lang.Override
public int hashCode() {
return Objects.hash(this.after, this.before, this.limit, this.q, this.app, this.componentType);
return Objects.hash(this.after, this.before, this.limit, this.q, this.app);
}

@java.lang.Override
Expand All @@ -146,8 +132,6 @@ public static final class Builder {

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

private Optional<ComponentType> componentType = Optional.empty();

@JsonAnySetter
private Map<String, Object> additionalProperties = new HashMap<>();

Expand All @@ -159,7 +143,6 @@ public Builder from(ComponentsListRequest other) {
limit(other.getLimit());
q(other.getQ());
app(other.getApp());
componentType(other.getComponentType());
return this;
}

Expand Down Expand Up @@ -233,22 +216,8 @@ public Builder app(String app) {
return this;
}

/**
* <p>The type of the component to filter the components</p>
*/
@JsonSetter(value = "component_type", nulls = Nulls.SKIP)
public Builder componentType(Optional<ComponentType> componentType) {
this.componentType = componentType;
return this;
}

public Builder componentType(ComponentType componentType) {
this.componentType = Optional.ofNullable(componentType);
return this;
}

public ComponentsListRequest build() {
return new ComponentsListRequest(after, before, limit, q, app, componentType, additionalProperties);
return new ComponentsListRequest(after, before, limit, q, app, additionalProperties);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import com.fasterxml.jackson.annotation.Nulls;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.pipedream.api.core.ObjectMappers;
import com.pipedream.api.types.ConfiguredPropValue;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
Expand All @@ -26,7 +25,7 @@ public final class UpdateTriggerOpts {

private final Optional<Boolean> active;

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

private final Optional<String> name;

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

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

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

_FinalStage active(Boolean active);

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

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

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

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

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

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

Expand Down Expand Up @@ -193,15 +198,22 @@ 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, ConfiguredPropValue> configuredProps) {
public _FinalStage configuredProps(Map<String, Object> 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, ConfiguredPropValue>> configuredProps) {
public _FinalStage configuredProps(Optional<Map<String, Object>> configuredProps) {
this.configuredProps = configuredProps;
return this;
}
Expand Down
Loading