Skip to content

Commit 9600602

Browse files
authored
Merge pull request #42 from appwrite/dev
Update attributes
2 parents 80cfc9b + 513f468 commit 9600602

23 files changed

+78
-14
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -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:6.0.0")
42+
implementation("io.appwrite:sdk-for-kotlin:6.1.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>6.0.0</version>
53+
<version>6.1.0</version>
5454
</dependency>
5555
</dependencies>
5656
```

docs/examples/java/databases/update-boolean-attribute.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ databases.updateBooleanAttribute(
1515
"", // key
1616
false, // required
1717
false, // default
18+
"", // newKey (optional)
1819
new CoroutineCallback<>((result, error) -> {
1920
if (error != null) {
2021
error.printStackTrace();

docs/examples/java/databases/update-datetime-attribute.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ databases.updateDatetimeAttribute(
1515
"", // key
1616
false, // required
1717
"", // default
18+
"", // newKey (optional)
1819
new CoroutineCallback<>((result, error) -> {
1920
if (error != null) {
2021
error.printStackTrace();

docs/examples/java/databases/update-email-attribute.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ databases.updateEmailAttribute(
1515
"", // key
1616
false, // required
1717
"[email protected]", // default
18+
"", // newKey (optional)
1819
new CoroutineCallback<>((result, error) -> {
1920
if (error != null) {
2021
error.printStackTrace();

docs/examples/java/databases/update-enum-attribute.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ databases.updateEnumAttribute(
1616
listOf(), // elements
1717
false, // required
1818
"<DEFAULT>", // default
19+
"", // newKey (optional)
1920
new CoroutineCallback<>((result, error) -> {
2021
if (error != null) {
2122
error.printStackTrace();

docs/examples/java/databases/update-float-attribute.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ databases.updateFloatAttribute(
1717
0, // min
1818
0, // max
1919
0, // default
20+
"", // newKey (optional)
2021
new CoroutineCallback<>((result, error) -> {
2122
if (error != null) {
2223
error.printStackTrace();

docs/examples/java/databases/update-integer-attribute.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ databases.updateIntegerAttribute(
1717
0, // min
1818
0, // max
1919
0, // default
20+
"", // newKey (optional)
2021
new CoroutineCallback<>((result, error) -> {
2122
if (error != null) {
2223
error.printStackTrace();

docs/examples/java/databases/update-ip-attribute.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ databases.updateIpAttribute(
1515
"", // key
1616
false, // required
1717
"", // default
18+
"", // newKey (optional)
1819
new CoroutineCallback<>((result, error) -> {
1920
if (error != null) {
2021
error.printStackTrace();

docs/examples/java/databases/update-relationship-attribute.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ databases.updateRelationshipAttribute(
1414
"<COLLECTION_ID>", // collectionId
1515
"", // key
1616
RelationMutate.CASCADE, // onDelete (optional)
17+
"", // newKey (optional)
1718
new CoroutineCallback<>((result, error) -> {
1819
if (error != null) {
1920
error.printStackTrace();

docs/examples/java/databases/update-string-attribute.md

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ databases.updateStringAttribute(
1515
"", // key
1616
false, // required
1717
"<DEFAULT>", // default
18+
0, // size (optional)
19+
"", // newKey (optional)
1820
new CoroutineCallback<>((result, error) -> {
1921
if (error != null) {
2022
error.printStackTrace();

docs/examples/java/databases/update-url-attribute.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ databases.updateUrlAttribute(
1515
"", // key
1616
false, // required
1717
"https://example.com", // default
18+
"", // newKey (optional)
1819
new CoroutineCallback<>((result, error) -> {
1920
if (error != null) {
2021
error.printStackTrace();

docs/examples/kotlin/databases/update-boolean-attribute.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ val response = databases.updateBooleanAttribute(
1414
collectionId = "<COLLECTION_ID>",
1515
key = "",
1616
required = false,
17-
default = false
17+
default = false,
18+
newKey = "" // optional
1819
)

docs/examples/kotlin/databases/update-datetime-attribute.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ val response = databases.updateDatetimeAttribute(
1414
collectionId = "<COLLECTION_ID>",
1515
key = "",
1616
required = false,
17-
default = ""
17+
default = "",
18+
newKey = "" // optional
1819
)

docs/examples/kotlin/databases/update-email-attribute.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ val response = databases.updateEmailAttribute(
1414
collectionId = "<COLLECTION_ID>",
1515
key = "",
1616
required = false,
17-
default = "[email protected]"
17+
default = "[email protected]",
18+
newKey = "" // optional
1819
)

docs/examples/kotlin/databases/update-enum-attribute.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ val response = databases.updateEnumAttribute(
1515
key = "",
1616
elements = listOf(),
1717
required = false,
18-
default = "<DEFAULT>"
18+
default = "<DEFAULT>",
19+
newKey = "" // optional
1920
)

docs/examples/kotlin/databases/update-float-attribute.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ val response = databases.updateFloatAttribute(
1616
required = false,
1717
min = 0,
1818
max = 0,
19-
default = 0
19+
default = 0,
20+
newKey = "" // optional
2021
)

docs/examples/kotlin/databases/update-integer-attribute.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ val response = databases.updateIntegerAttribute(
1616
required = false,
1717
min = 0,
1818
max = 0,
19-
default = 0
19+
default = 0,
20+
newKey = "" // optional
2021
)

docs/examples/kotlin/databases/update-ip-attribute.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ val response = databases.updateIpAttribute(
1414
collectionId = "<COLLECTION_ID>",
1515
key = "",
1616
required = false,
17-
default = ""
17+
default = "",
18+
newKey = "" // optional
1819
)

docs/examples/kotlin/databases/update-relationship-attribute.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ val response = databases.updateRelationshipAttribute(
1313
databaseId = "<DATABASE_ID>",
1414
collectionId = "<COLLECTION_ID>",
1515
key = "",
16-
onDelete = "cascade" // optional
16+
onDelete = "cascade", // optional
17+
newKey = "" // optional
1718
)

docs/examples/kotlin/databases/update-string-attribute.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ val response = databases.updateStringAttribute(
1414
collectionId = "<COLLECTION_ID>",
1515
key = "",
1616
required = false,
17-
default = "<DEFAULT>"
17+
default = "<DEFAULT>",
18+
size = 0, // optional
19+
newKey = "" // optional
1820
)

docs/examples/kotlin/databases/update-url-attribute.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ val response = databases.updateUrlAttribute(
1414
collectionId = "<COLLECTION_ID>",
1515
key = "",
1616
required = false,
17-
default = "https://example.com"
17+
default = "https://example.com",
18+
newKey = "" // optional
1819
)

src/main/kotlin/io/appwrite/Client.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ class Client @JvmOverloads constructor(
5757
init {
5858
headers = mutableMapOf(
5959
"content-type" to "application/json",
60-
"user-agent" to "AppwriteKotlinSDK/6.0.0 ${System.getProperty("http.agent")}",
60+
"user-agent" to "AppwriteKotlinSDK/6.1.0 ${System.getProperty("http.agent")}",
6161
"x-sdk-name" to "Kotlin",
6262
"x-sdk-platform" to "server",
6363
"x-sdk-language" to "kotlin",
64-
"x-sdk-version" to "6.0.0",
64+
"x-sdk-version" to "6.1.0",
6565
"x-appwrite-response-format" to "1.6.0",
6666
)
6767

0 commit comments

Comments
 (0)