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
6 changes: 3 additions & 3 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"implementation redis.clients:jedis:5.2.0"
]
},
"originGitCommit": "a9fc73b97dcfa602bff97a7d41d980a55c9c9030",
"originGitCommit": "8cfe954dda14329fc30a4f80b915db0acf608382",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "1.5.4",
"requestedVersion": "1.5.5",
"ciProvider": "github",
"sdkVersion": "1.5.4"
"sdkVersion": "1.5.5"
}
8 changes: 7 additions & 1 deletion .fern/replay.lock

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

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

group = 'com.schematichq'

version = '1.5.4'
version = '1.5.5'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -93,7 +93,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.schematichq'
artifactId = 'schematic-java'
version = '1.5.4'
version = '1.5.5'
from components.java
pom {
name = 'Schematic'
Expand Down
112 changes: 112 additions & 0 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -8709,6 +8709,46 @@ client.companies().listEntityKeyDefinitions(
</dl>


</dd>
</dl>
</details>

<details><summary><code>client.companies.deleteEntityKeyDefinition(entityKeyDefinitionId) -> DeleteEntityKeyDefinitionResponse</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```java
client.companies().deleteEntityKeyDefinition("entity_key_definition_id");
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**entityKeyDefinitionId:** `String` — entity_key_definition_id

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>
Expand Down Expand Up @@ -8792,6 +8832,78 @@ client.companies().countEntityKeyDefinitions(
</dl>


</dd>
</dl>
</details>

<details><summary><code>client.companies.countEntityKeys() -> CountEntityKeysResponse</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```java
client.companies().countEntityKeys(
CountEntityKeysRequest
.builder()
.definitionId("definition_id")
.entityType(EntityType.COMPANY)
.limit(1000000L)
.offset(1000000L)
.build()
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**definitionId:** `Optional<String>`

</dd>
</dl>

<dl>
<dd>

**entityType:** `Optional<EntityType>`

</dd>
</dl>

<dl>
<dd>

**limit:** `Optional<Long>` — Page limit (default 100)

</dd>
</dl>

<dl>
<dd>

**offset:** `Optional<Long>` — Page offset (default 0)

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/schematic/api/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ private ClientOptions(
this.headers.putAll(headers);
this.headers.putAll(new HashMap<String, String>() {
{
put("User-Agent", "com.schematichq:schematic-java/1.5.4");
put("User-Agent", "com.schematichq:schematic-java/1.5.5");
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.schematic.fern:api-sdk");
put("X-Fern-SDK-Version", "1.5.4");
put("X-Fern-SDK-Version", "1.5.5");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.schematic.api.core.RequestOptions;
import com.schematic.api.resources.companies.requests.CountCompaniesRequest;
import com.schematic.api.resources.companies.requests.CountEntityKeyDefinitionsRequest;
import com.schematic.api.resources.companies.requests.CountEntityKeysRequest;
import com.schematic.api.resources.companies.requests.CountEntityTraitDefinitionsRequest;
import com.schematic.api.resources.companies.requests.CountPlanTraitsRequest;
import com.schematic.api.resources.companies.requests.CountUsersRequest;
Expand All @@ -30,6 +31,7 @@
import com.schematic.api.resources.companies.requests.UpdatePlanTraitBulkRequestBody;
import com.schematic.api.resources.companies.types.CountCompaniesResponse;
import com.schematic.api.resources.companies.types.CountEntityKeyDefinitionsResponse;
import com.schematic.api.resources.companies.types.CountEntityKeysResponse;
import com.schematic.api.resources.companies.types.CountEntityTraitDefinitionsResponse;
import com.schematic.api.resources.companies.types.CountPlanTraitsResponse;
import com.schematic.api.resources.companies.types.CountUsersResponse;
Expand All @@ -38,6 +40,7 @@
import com.schematic.api.resources.companies.types.DeleteCompanyByKeysResponse;
import com.schematic.api.resources.companies.types.DeleteCompanyMembershipResponse;
import com.schematic.api.resources.companies.types.DeleteCompanyResponse;
import com.schematic.api.resources.companies.types.DeleteEntityKeyDefinitionResponse;
import com.schematic.api.resources.companies.types.DeleteUserByKeysResponse;
import com.schematic.api.resources.companies.types.DeleteUserResponse;
import com.schematic.api.resources.companies.types.GetActiveCompanySubscriptionResponse;
Expand Down Expand Up @@ -330,6 +333,18 @@ public CompletableFuture<ListEntityKeyDefinitionsResponse> listEntityKeyDefiniti
return this.rawClient.listEntityKeyDefinitions(request, requestOptions).thenApply(response -> response.body());
}

public CompletableFuture<DeleteEntityKeyDefinitionResponse> deleteEntityKeyDefinition(
String entityKeyDefinitionId) {
return this.rawClient.deleteEntityKeyDefinition(entityKeyDefinitionId).thenApply(response -> response.body());
}

public CompletableFuture<DeleteEntityKeyDefinitionResponse> deleteEntityKeyDefinition(
String entityKeyDefinitionId, RequestOptions requestOptions) {
return this.rawClient
.deleteEntityKeyDefinition(entityKeyDefinitionId, requestOptions)
.thenApply(response -> response.body());
}

public CompletableFuture<CountEntityKeyDefinitionsResponse> countEntityKeyDefinitions() {
return this.rawClient.countEntityKeyDefinitions().thenApply(response -> response.body());
}
Expand All @@ -349,6 +364,23 @@ public CompletableFuture<CountEntityKeyDefinitionsResponse> countEntityKeyDefini
return this.rawClient.countEntityKeyDefinitions(request, requestOptions).thenApply(response -> response.body());
}

public CompletableFuture<CountEntityKeysResponse> countEntityKeys() {
return this.rawClient.countEntityKeys().thenApply(response -> response.body());
}

public CompletableFuture<CountEntityKeysResponse> countEntityKeys(RequestOptions requestOptions) {
return this.rawClient.countEntityKeys(requestOptions).thenApply(response -> response.body());
}

public CompletableFuture<CountEntityKeysResponse> countEntityKeys(CountEntityKeysRequest request) {
return this.rawClient.countEntityKeys(request).thenApply(response -> response.body());
}

public CompletableFuture<CountEntityKeysResponse> countEntityKeys(
CountEntityKeysRequest request, RequestOptions requestOptions) {
return this.rawClient.countEntityKeys(request, requestOptions).thenApply(response -> response.body());
}

public CompletableFuture<ListEntityTraitDefinitionsResponse> listEntityTraitDefinitions() {
return this.rawClient.listEntityTraitDefinitions().thenApply(response -> response.body());
}
Expand Down
Loading
Loading