Skip to content

Commit 2de03f0

Browse files
committed
Add time between queries
1 parent 96fc295 commit 2de03f0

File tree

8 files changed

+32
-10
lines changed

8 files changed

+32
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ repositories {
3838
Next, add the dependency to your project's `build.gradle(.kts)` file:
3939

4040
```groovy
41-
implementation("io.appwrite:sdk-for-android:9.0.0")
41+
implementation("io.appwrite:sdk-for-android:9.1.0")
4242
```
4343

4444
### Maven
@@ -49,7 +49,7 @@ Add this to your project's `pom.xml` file:
4949
<dependency>
5050
<groupId>io.appwrite</groupId>
5151
<artifactId>sdk-for-android</artifactId>
52-
<version>9.0.0</version>
52+
<version>9.1.0</version>
5353
</dependency>
5454
</dependencies>
5555
```

library/src/main/java/io/appwrite/Client.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class Client @JvmOverloads constructor(
8787
"x-sdk-name" to "Android",
8888
"x-sdk-platform" to "client",
8989
"x-sdk-language" to "android",
90-
"x-sdk-version" to "9.0.0",
90+
"x-sdk-version" to "9.1.0",
9191
"x-appwrite-response-format" to "1.8.0"
9292
)
9393
config = mutableMapOf()

library/src/main/java/io/appwrite/Query.kt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,15 @@ class Query(
254254
*/
255255
fun createdAfter(value: String) = Query("createdAfter", null, listOf(value)).toJson()
256256

257+
/**
258+
* Filter resources where document was created between start and end dates (inclusive).
259+
*
260+
* @param start The start date value.
261+
* @param end The end date value.
262+
* @returns The query string.
263+
*/
264+
fun createdBetween(start: String, end: String) = Query("createdBetween", null, listOf(start, end)).toJson()
265+
257266
/**
258267
* Filter resources where document was updated before date.
259268
*
@@ -270,6 +279,15 @@ class Query(
270279
*/
271280
fun updatedAfter(value: String) = Query("updatedAfter", null, listOf(value)).toJson()
272281

282+
/**
283+
* Filter resources where document was updated between start and end dates (inclusive).
284+
*
285+
* @param start The start date value.
286+
* @param end The end date value.
287+
* @returns The query string.
288+
*/
289+
fun updatedBetween(start: String, end: String) = Query("updatedBetween", null, listOf(start, end)).toJson()
290+
273291
/**
274292
* Combine multiple queries using logical OR operator.
275293
*

library/src/main/java/io/appwrite/enums/CreditCard.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ enum class CreditCard(val value: String) {
2727
NARANJA("naranja"),
2828
@SerializedName("targeta-shopping")
2929
TARJETA_SHOPPING("targeta-shopping"),
30-
@SerializedName("union-china-pay")
31-
UNION_CHINA_PAY("union-china-pay"),
30+
@SerializedName("unionpay")
31+
UNION_PAY("unionpay"),
3232
@SerializedName("visa")
3333
VISA("visa"),
3434
@SerializedName("mir")

library/src/main/java/io/appwrite/enums/ExecutionMethod.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ enum class ExecutionMethod(val value: String) {
1414
@SerializedName("DELETE")
1515
DELETE("DELETE"),
1616
@SerializedName("OPTIONS")
17-
OPTIONS("OPTIONS");
17+
OPTIONS("OPTIONS"),
18+
@SerializedName("HEAD")
19+
HEAD("HEAD");
1820

1921
override fun toString() = value
2022
}

library/src/main/java/io/appwrite/services/Account.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,8 @@ class Account(client: Client) : Service(client) {
14081408
* @return [io.appwrite.models.Session]
14091409
*/
14101410
@Deprecated(
1411-
message = "This API has been deprecated."
1411+
message = "This API has been deprecated since 1.6.0. Please use `Account.createSession` instead.",
1412+
replaceWith = ReplaceWith("io.appwrite.services.Account.createSession")
14121413
)
14131414
suspend fun updateMagicURLSession(
14141415
userId: String,
@@ -1523,7 +1524,8 @@ class Account(client: Client) : Service(client) {
15231524
* @return [io.appwrite.models.Session]
15241525
*/
15251526
@Deprecated(
1526-
message = "This API has been deprecated."
1527+
message = "This API has been deprecated since 1.6.0. Please use `Account.createSession` instead.",
1528+
replaceWith = ReplaceWith("io.appwrite.services.Account.createSession")
15271529
)
15281530
suspend fun updatePhoneSession(
15291531
userId: String,

library/src/main/java/io/appwrite/services/Avatars.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Avatars(client: Client) : Service(client) {
5959
* When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
6060
*
6161
*
62-
* @param code Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.
62+
* @param code Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, unionpay, visa, mir, maestro, rupay.
6363
* @param width Image width. Pass an integer between 0 to 2000. Defaults to 100.
6464
* @param height Image height. Pass an integer between 0 to 2000. Defaults to 100.
6565
* @param quality Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.

library/src/main/java/io/appwrite/services/Functions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Functions(client: Client) : Service(client) {
5757
* @param body HTTP body of execution. Default value is empty string.
5858
* @param async Execute code in the background. Default value is false.
5959
* @param path HTTP path of execution. Path can include query params. Default value is /
60-
* @param method HTTP method of execution. Default value is GET.
60+
* @param method HTTP method of execution. Default value is POST.
6161
* @param headers HTTP headers of execution. Defaults to empty.
6262
* @param scheduledAt Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.
6363
* @return [io.appwrite.models.Execution]

0 commit comments

Comments
 (0)