Skip to content

Commit 6f0f887

Browse files
committed
chore: regenerate
1 parent 928d9ce commit 6f0f887

File tree

150 files changed

+6118
-125
lines changed

Some content is hidden

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

150 files changed

+6118
-125
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
![Maven Central](https://img.shields.io/maven-central/v/io.appwrite/sdk-for-kotlin.svg?color=green&style=flat-square)
44
![License](https://img.shields.io/github/license/appwrite/sdk-for-kotlin.svg?style=flat-square)
5-
![Version](https://img.shields.io/badge/api%20version-1.7.4-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.8.0-blue.svg?style=flat-square)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
88

9-
**This SDK is compatible with Appwrite server version 1.7.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-kotlin/releases).**
9+
**This SDK is compatible with Appwrite server version 1.8.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-kotlin/releases).**
1010

1111
> This is the Kotlin SDK for integrating with Appwrite from your Kotlin server-side code. If you're looking for the Android SDK you should check [appwrite/sdk-for-android](https://github.com/appwrite/sdk-for-android)
1212
@@ -39,7 +39,7 @@ repositories {
3939
Next, add the dependency to your project's `build.gradle(.kts)` file:
4040

4141
```groovy
42-
implementation("io.appwrite:sdk-for-kotlin:9.1.0")
42+
implementation("io.appwrite:sdk-for-kotlin:10.0.0")
4343
```
4444

4545
### Maven
@@ -50,7 +50,7 @@ Add this to your project's `pom.xml` file:
5050
<dependency>
5151
<groupId>io.appwrite</groupId>
5252
<artifactId>sdk-for-kotlin</artifactId>
53-
<version>9.1.0</version>
53+
<version>10.0.0</version>
5454
</dependency>
5555
</dependencies>
5656
```

docs/examples/java/databases/create-document.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import io.appwrite.services.Databases;
44

55
Client client = new Client()
66
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7-
.setAdmin("") //
87
.setSession("") // The user session to authenticate with
98
.setKey("<YOUR_API_KEY>") // Your secret API key
109
.setJWT("<YOUR_JWT>"); // Your secret JSON Web Token

docs/examples/java/databases/create-documents.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import io.appwrite.services.Databases;
44

55
Client client = new Client()
66
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7+
.setAdmin("") //
78
.setKey("<YOUR_API_KEY>"); // Your secret API key
89

910
Databases databases = new Databases(client);

docs/examples/java/databases/upsert-document.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@ import io.appwrite.services.Databases;
44

55
Client client = new Client()
66
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7-
.setProject("<YOUR_PROJECT_ID>") // Your project ID
8-
.setSession(""); // The user session to authenticate with
7+
.setSession("") // The user session to authenticate with
8+
.setKey("<YOUR_API_KEY>") // Your secret API key
9+
.setJWT("<YOUR_JWT>"); // Your secret JSON Web Token
910

1011
Databases databases = new Databases(client);
1112

1213
databases.upsertDocument(
1314
"<DATABASE_ID>", // databaseId
1415
"<COLLECTION_ID>", // collectionId
1516
"<DOCUMENT_ID>", // documentId
16-
mapOf( "a" to "b" ), // data
17-
listOf("read("any")"), // permissions (optional)
1817
new CoroutineCallback<>((result, error) -> {
1918
if (error != null) {
2019
error.printStackTrace();

docs/examples/java/databases/upsert-documents.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ import io.appwrite.services.Databases;
44

55
Client client = new Client()
66
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7-
.setProject("<YOUR_PROJECT_ID>") // Your project ID
7+
.setAdmin("") //
88
.setKey("<YOUR_API_KEY>"); // Your secret API key
99

1010
Databases databases = new Databases(client);
1111

1212
databases.upsertDocuments(
1313
"<DATABASE_ID>", // databaseId
1414
"<COLLECTION_ID>", // collectionId
15-
listOf(), // documents
1615
new CoroutineCallback<>((result, error) -> {
1716
if (error != null) {
1817
error.printStackTrace();
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Tables;
4+
5+
Client client = new Client()
6+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7+
.setProject("<YOUR_PROJECT_ID>") // Your project ID
8+
.setKey("<YOUR_API_KEY>"); // Your secret API key
9+
10+
Tables tables = new Tables(client);
11+
12+
tables.createBooleanColumn(
13+
"<DATABASE_ID>", // databaseId
14+
"<TABLE_ID>", // tableId
15+
"", // key
16+
false, // required
17+
false, // default (optional)
18+
false, // array (optional)
19+
new CoroutineCallback<>((result, error) -> {
20+
if (error != null) {
21+
error.printStackTrace();
22+
return;
23+
}
24+
25+
System.out.println(result);
26+
})
27+
);
28+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Tables;
4+
5+
Client client = new Client()
6+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7+
.setProject("<YOUR_PROJECT_ID>") // Your project ID
8+
.setKey("<YOUR_API_KEY>"); // Your secret API key
9+
10+
Tables tables = new Tables(client);
11+
12+
tables.createDatetimeColumn(
13+
"<DATABASE_ID>", // databaseId
14+
"<TABLE_ID>", // tableId
15+
"", // key
16+
false, // required
17+
"", // default (optional)
18+
false, // array (optional)
19+
new CoroutineCallback<>((result, error) -> {
20+
if (error != null) {
21+
error.printStackTrace();
22+
return;
23+
}
24+
25+
System.out.println(result);
26+
})
27+
);
28+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Tables;
4+
5+
Client client = new Client()
6+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7+
.setProject("<YOUR_PROJECT_ID>") // Your project ID
8+
.setKey("<YOUR_API_KEY>"); // Your secret API key
9+
10+
Tables tables = new Tables(client);
11+
12+
tables.createEmailColumn(
13+
"<DATABASE_ID>", // databaseId
14+
"<TABLE_ID>", // tableId
15+
"", // key
16+
false, // required
17+
"email@example.com", // default (optional)
18+
false, // array (optional)
19+
new CoroutineCallback<>((result, error) -> {
20+
if (error != null) {
21+
error.printStackTrace();
22+
return;
23+
}
24+
25+
System.out.println(result);
26+
})
27+
);
28+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Tables;
4+
5+
Client client = new Client()
6+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7+
.setProject("<YOUR_PROJECT_ID>") // Your project ID
8+
.setKey("<YOUR_API_KEY>"); // Your secret API key
9+
10+
Tables tables = new Tables(client);
11+
12+
tables.createEnumColumn(
13+
"<DATABASE_ID>", // databaseId
14+
"<TABLE_ID>", // tableId
15+
"", // key
16+
listOf(), // elements
17+
false, // required
18+
"<DEFAULT>", // default (optional)
19+
false, // array (optional)
20+
new CoroutineCallback<>((result, error) -> {
21+
if (error != null) {
22+
error.printStackTrace();
23+
return;
24+
}
25+
26+
System.out.println(result);
27+
})
28+
);
29+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Tables;
4+
5+
Client client = new Client()
6+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7+
.setProject("<YOUR_PROJECT_ID>") // Your project ID
8+
.setKey("<YOUR_API_KEY>"); // Your secret API key
9+
10+
Tables tables = new Tables(client);
11+
12+
tables.createFloatColumn(
13+
"<DATABASE_ID>", // databaseId
14+
"<TABLE_ID>", // tableId
15+
"", // key
16+
false, // required
17+
0, // min (optional)
18+
0, // max (optional)
19+
0, // default (optional)
20+
false, // array (optional)
21+
new CoroutineCallback<>((result, error) -> {
22+
if (error != null) {
23+
error.printStackTrace();
24+
return;
25+
}
26+
27+
System.out.println(result);
28+
})
29+
);
30+

0 commit comments

Comments
 (0)