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
30 changes: 10 additions & 20 deletions library/src/main/java/io/appwrite/services/Account.kt
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,7 @@ class Account(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `Account.createMFAAuthenticator` instead.",
replaceWith = ReplaceWith("io.appwrite.services.Account.createMFAAuthenticator"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.Account.createMFAAuthenticator")
)
suspend fun createMfaAuthenticator(
type: io.appwrite.enums.AuthenticatorType,
Expand Down Expand Up @@ -424,8 +423,7 @@ class Account(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `Account.updateMFAAuthenticator` instead.",
replaceWith = ReplaceWith("io.appwrite.services.Account.updateMFAAuthenticator"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.Account.updateMFAAuthenticator")
)
suspend fun <T> updateMfaAuthenticator(
type: io.appwrite.enums.AuthenticatorType,
Expand Down Expand Up @@ -464,8 +462,7 @@ class Account(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `Account.updateMFAAuthenticator` instead.",
replaceWith = ReplaceWith("io.appwrite.services.Account.updateMFAAuthenticator"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.Account.updateMFAAuthenticator")
)
@Throws(AppwriteException::class)
suspend fun updateMfaAuthenticator(
Expand Down Expand Up @@ -537,8 +534,7 @@ class Account(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `Account.deleteMFAAuthenticator` instead.",
replaceWith = ReplaceWith("io.appwrite.services.Account.deleteMFAAuthenticator"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.Account.deleteMFAAuthenticator")
)
suspend fun deleteMfaAuthenticator(
type: io.appwrite.enums.AuthenticatorType,
Expand Down Expand Up @@ -596,8 +592,7 @@ class Account(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `Account.createMFAChallenge` instead.",
replaceWith = ReplaceWith("io.appwrite.services.Account.createMFAChallenge"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.Account.createMFAChallenge")
)
suspend fun createMfaChallenge(
factor: io.appwrite.enums.AuthenticationFactor,
Expand Down Expand Up @@ -666,8 +661,7 @@ class Account(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `Account.updateMFAChallenge` instead.",
replaceWith = ReplaceWith("io.appwrite.services.Account.updateMFAChallenge"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.Account.updateMFAChallenge")
)
suspend fun updateMfaChallenge(
challengeId: String,
Expand Down Expand Up @@ -739,8 +733,7 @@ class Account(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `Account.listMFAFactors` instead.",
replaceWith = ReplaceWith("io.appwrite.services.Account.listMFAFactors"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.Account.listMFAFactors")
)
suspend fun listMfaFactors(
): io.appwrite.models.MfaFactors {
Expand Down Expand Up @@ -800,8 +793,7 @@ class Account(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `Account.getMFARecoveryCodes` instead.",
replaceWith = ReplaceWith("io.appwrite.services.Account.getMFARecoveryCodes"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.Account.getMFARecoveryCodes")
)
suspend fun getMfaRecoveryCodes(
): io.appwrite.models.MfaRecoveryCodes {
Expand Down Expand Up @@ -861,8 +853,7 @@ class Account(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `Account.createMFARecoveryCodes` instead.",
replaceWith = ReplaceWith("io.appwrite.services.Account.createMFARecoveryCodes"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.Account.createMFARecoveryCodes")
)
suspend fun createMfaRecoveryCodes(
): io.appwrite.models.MfaRecoveryCodes {
Expand Down Expand Up @@ -924,8 +915,7 @@ class Account(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `Account.updateMFARecoveryCodes` instead.",
replaceWith = ReplaceWith("io.appwrite.services.Account.updateMFARecoveryCodes"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.Account.updateMFARecoveryCodes")
)
suspend fun updateMfaRecoveryCodes(
): io.appwrite.models.MfaRecoveryCodes {
Expand Down
45 changes: 15 additions & 30 deletions library/src/main/java/io/appwrite/services/Databases.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ class Databases(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `TablesDB.listRows` instead.",
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.listRows"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.listRows")
)
@JvmOverloads
suspend fun <T> listDocuments(
Expand Down Expand Up @@ -68,8 +67,7 @@ class Databases(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `TablesDB.listRows` instead.",
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.listRows"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.listRows")
)
@JvmOverloads
@Throws(AppwriteException::class)
Expand All @@ -96,8 +94,7 @@ class Databases(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `TablesDB.createRow` instead.",
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.createRow"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.createRow")
)
@JvmOverloads
suspend fun <T> createDocument(
Expand Down Expand Up @@ -146,8 +143,7 @@ class Databases(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `TablesDB.createRow` instead.",
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.createRow"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.createRow")
)
@JvmOverloads
@Throws(AppwriteException::class)
Expand Down Expand Up @@ -177,8 +173,7 @@ class Databases(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `TablesDB.getRow` instead.",
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.getRow"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.getRow")
)
@JvmOverloads
suspend fun <T> getDocument(
Expand Down Expand Up @@ -223,8 +218,7 @@ class Databases(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `TablesDB.getRow` instead.",
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.getRow"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.getRow")
)
@JvmOverloads
@Throws(AppwriteException::class)
Expand Down Expand Up @@ -253,8 +247,7 @@ class Databases(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `TablesDB.upsertRow` instead.",
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.upsertRow"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.upsertRow")
)
@JvmOverloads
suspend fun <T> upsertDocument(
Expand Down Expand Up @@ -303,8 +296,7 @@ class Databases(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `TablesDB.upsertRow` instead.",
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.upsertRow"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.upsertRow")
)
@JvmOverloads
@Throws(AppwriteException::class)
Expand Down Expand Up @@ -335,8 +327,7 @@ class Databases(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `TablesDB.updateRow` instead.",
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.updateRow"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.updateRow")
)
@JvmOverloads
suspend fun <T> updateDocument(
Expand Down Expand Up @@ -385,8 +376,7 @@ class Databases(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `TablesDB.updateRow` instead.",
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.updateRow"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.updateRow")
)
@JvmOverloads
@Throws(AppwriteException::class)
Expand Down Expand Up @@ -415,8 +405,7 @@ class Databases(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `TablesDB.deleteRow` instead.",
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.deleteRow"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.deleteRow")
)
suspend fun deleteDocument(
databaseId: String,
Expand Down Expand Up @@ -456,8 +445,7 @@ class Databases(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `TablesDB.decrementRowColumn` instead.",
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.decrementRowColumn"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.decrementRowColumn")
)
@JvmOverloads
suspend fun <T> decrementDocumentAttribute(
Expand Down Expand Up @@ -509,8 +497,7 @@ class Databases(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `TablesDB.decrementRowColumn` instead.",
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.decrementRowColumn"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.decrementRowColumn")
)
@JvmOverloads
@Throws(AppwriteException::class)
Expand Down Expand Up @@ -544,8 +531,7 @@ class Databases(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `TablesDB.incrementRowColumn` instead.",
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.incrementRowColumn"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.incrementRowColumn")
)
@JvmOverloads
suspend fun <T> incrementDocumentAttribute(
Expand Down Expand Up @@ -597,8 +583,7 @@ class Databases(client: Client) : Service(client) {
*/
@Deprecated(
message = "This API has been deprecated since 1.8.0. Please use `TablesDB.incrementRowColumn` instead.",
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.incrementRowColumn"),
since = "1.8.0"
replaceWith = ReplaceWith("io.appwrite.services.TablesDB.incrementRowColumn")
)
@JvmOverloads
@Throws(AppwriteException::class)
Expand Down