Add time between queries

This commit is contained in:
Jake Barnby
2025-09-05 01:29:00 +12:00
parent 96fc295fb6
commit 2de03f06f3
8 changed files with 32 additions and 10 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ repositories {
Next, add the dependency to your project's `build.gradle(.kts)` file:
```groovy
implementation("io.appwrite:sdk-for-android:9.0.0")
implementation("io.appwrite:sdk-for-android:9.1.0")
```
### Maven
@@ -49,7 +49,7 @@ Add this to your project's `pom.xml` file:
<dependency>
<groupId>io.appwrite</groupId>
<artifactId>sdk-for-android</artifactId>
<version>9.0.0</version>
<version>9.1.0</version>
</dependency>
</dependencies>
```
+1 -1
View File
@@ -87,7 +87,7 @@ class Client @JvmOverloads constructor(
"x-sdk-name" to "Android",
"x-sdk-platform" to "client",
"x-sdk-language" to "android",
"x-sdk-version" to "9.0.0",
"x-sdk-version" to "9.1.0",
"x-appwrite-response-format" to "1.8.0"
)
config = mutableMapOf()
@@ -254,6 +254,15 @@ class Query(
*/
fun createdAfter(value: String) = Query("createdAfter", null, listOf(value)).toJson()
/**
* Filter resources where document was created between start and end dates (inclusive).
*
* @param start The start date value.
* @param end The end date value.
* @returns The query string.
*/
fun createdBetween(start: String, end: String) = Query("createdBetween", null, listOf(start, end)).toJson()
/**
* Filter resources where document was updated before date.
*
@@ -270,6 +279,15 @@ class Query(
*/
fun updatedAfter(value: String) = Query("updatedAfter", null, listOf(value)).toJson()
/**
* Filter resources where document was updated between start and end dates (inclusive).
*
* @param start The start date value.
* @param end The end date value.
* @returns The query string.
*/
fun updatedBetween(start: String, end: String) = Query("updatedBetween", null, listOf(start, end)).toJson()
/**
* Combine multiple queries using logical OR operator.
*
@@ -27,8 +27,8 @@ enum class CreditCard(val value: String) {
NARANJA("naranja"),
@SerializedName("targeta-shopping")
TARJETA_SHOPPING("targeta-shopping"),
@SerializedName("union-china-pay")
UNION_CHINA_PAY("union-china-pay"),
@SerializedName("unionpay")
UNION_PAY("unionpay"),
@SerializedName("visa")
VISA("visa"),
@SerializedName("mir")
@@ -14,7 +14,9 @@ enum class ExecutionMethod(val value: String) {
@SerializedName("DELETE")
DELETE("DELETE"),
@SerializedName("OPTIONS")
OPTIONS("OPTIONS");
OPTIONS("OPTIONS"),
@SerializedName("HEAD")
HEAD("HEAD");
override fun toString() = value
}
@@ -1408,7 +1408,8 @@ class Account(client: Client) : Service(client) {
* @return [io.appwrite.models.Session]
*/
@Deprecated(
message = "This API has been deprecated."
message = "This API has been deprecated since 1.6.0. Please use `Account.createSession` instead.",
replaceWith = ReplaceWith("io.appwrite.services.Account.createSession")
)
suspend fun updateMagicURLSession(
userId: String,
@@ -1523,7 +1524,8 @@ class Account(client: Client) : Service(client) {
* @return [io.appwrite.models.Session]
*/
@Deprecated(
message = "This API has been deprecated."
message = "This API has been deprecated since 1.6.0. Please use `Account.createSession` instead.",
replaceWith = ReplaceWith("io.appwrite.services.Account.createSession")
)
suspend fun updatePhoneSession(
userId: String,
@@ -59,7 +59,7 @@ class Avatars(client: Client) : Service(client) {
* 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.
*
*
* @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.
* @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.
* @param width Image width. Pass an integer between 0 to 2000. Defaults to 100.
* @param height Image height. Pass an integer between 0 to 2000. Defaults to 100.
* @param quality Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.
@@ -57,7 +57,7 @@ class Functions(client: Client) : Service(client) {
* @param body HTTP body of execution. Default value is empty string.
* @param async Execute code in the background. Default value is false.
* @param path HTTP path of execution. Path can include query params. Default value is /
* @param method HTTP method of execution. Default value is GET.
* @param method HTTP method of execution. Default value is POST.
* @param headers HTTP headers of execution. Defaults to empty.
* @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.
* @return [io.appwrite.models.Execution]